") {
+ return text
+ }
+ var sb strings.Builder
+ err := godown.Convert(&sb, strings.NewReader(text), nil)
+ if err != nil {
+ b.Log.Errorf("Couldn't convert message to markdown %s", text)
+ return text
+ }
+ return sb.String()
+}
diff --git a/gateway/bridgemap/bridgemap.go b/gateway/bridgemap/bridgemap.go
index cb9a3932..88d777b6 100644
--- a/gateway/bridgemap/bridgemap.go
+++ b/gateway/bridgemap/bridgemap.go
@@ -9,6 +9,7 @@ import (
bkeybase "github.com/42wim/matterbridge/bridge/keybase"
bmatrix "github.com/42wim/matterbridge/bridge/matrix"
bmattermost "github.com/42wim/matterbridge/bridge/mattermost"
+ bmsteams "github.com/42wim/matterbridge/bridge/msteams"
brocketchat "github.com/42wim/matterbridge/bridge/rocketchat"
bslack "github.com/42wim/matterbridge/bridge/slack"
bsshchat "github.com/42wim/matterbridge/bridge/sshchat"
@@ -37,6 +38,7 @@ var (
"xmpp": bxmpp.New,
"zulip": bzulip.New,
"keybase": bkeybase.New,
+ "msteams": bmsteams.New,
}
UserTypingSupport = map[string]struct{}{
diff --git a/go.mod b/go.mod
index a1a11f1a..bb1b69af 100644
--- a/go.mod
+++ b/go.mod
@@ -29,6 +29,8 @@ require (
github.com/matterbridge/gozulipbot v0.0.0-20190212232658-7aa251978a18
github.com/matterbridge/logrus-prefixed-formatter v0.0.0-20180806162718-01618749af61
github.com/mattermost/mattermost-server v5.5.0+incompatible
+ github.com/mattn/go-runewidth v0.0.7 // indirect
+ github.com/mattn/godown v0.0.0-20180312012330-2e9e17e0ea51
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect
github.com/mreiferson/go-httpclient v0.0.0-20160630210159-31f0106b4474 // indirect
github.com/mrexodia/wray v0.0.0-20160318003008-78a2c1f284ff // indirect
@@ -48,8 +50,10 @@ require (
github.com/stretchr/testify v1.4.0
github.com/technoweenie/multipartstreamer v1.0.1 // indirect
github.com/x-cray/logrus-prefixed-formatter v0.5.2 // indirect
+ github.com/yaegashi/msgraph.go v0.0.0-00010101000000-000000000000
github.com/zfjagann/golang-ring v0.0.0-20190106091943-a88bb6aef447
golang.org/x/image v0.0.0-20191214001246-9130b4cfad52
+ golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
gopkg.in/fsnotify.v1 v1.4.7 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
diff --git a/go.sum b/go.sum
index ba42345f..58fe341c 100644
--- a/go.sum
+++ b/go.sum
@@ -1,4 +1,5 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
+cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
github.com/42wim/go-gitter v0.0.0-20170828205020-017310c2d557 h1:IZtuWGfzQnKnCSu+vl8WGLhpVQ5Uvy3rlSwqXSg+sQg=
github.com/42wim/go-gitter v0.0.0-20170828205020-017310c2d557/go.mod h1:jL0YSXMs/txjtGJ4PWrmETOk6KUHMDPMshgQZlTeB3Y=
github.com/Baozisoftware/qrcode-terminal-go v0.0.0-20170407111555-c0650d8dff0f h1:2dk3eOnYllh+wUOuDhOoC2vUVoJF/5z478ryJ+wzEII=
@@ -17,11 +18,9 @@ github.com/Rhymen/go-whatsapp/examples/echo v0.0.0-20190325075644-cc2581bbf24d/g
github.com/Rhymen/go-whatsapp/examples/restoreSession v0.0.0-20190325075644-cc2581bbf24d/go.mod h1:5sCUSpG616ZoSJhlt9iBNI/KXBqrVLcNUJqg7J9+8pU=
github.com/Rhymen/go-whatsapp/examples/sendImage v0.0.0-20190325075644-cc2581bbf24d/go.mod h1:RdiyhanVEGXTam+mZ3k6Y3VDCCvXYCwReOoxGozqhHw=
github.com/Rhymen/go-whatsapp/examples/sendTextMessages v0.0.0-20190325075644-cc2581bbf24d/go.mod h1:suwzklatySS3Q0+NCxCDh5hYfgXdQUWU1DNcxwAxStM=
-github.com/StackExchange/wmi v0.0.0-20170410192909-ea383cf3ba6e h1:IHXQQIpxASe3m0Jtcd3XongL+lxHNd5nUmvHxJARUmg=
github.com/StackExchange/wmi v0.0.0-20170410192909-ea383cf3ba6e/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
-github.com/alexcesaro/log v0.0.0-20150915221235-61e686294e58 h1:MkpmYfld/S8kXqTYI68DfL8/hHXjHogL120Dy00TIxc=
github.com/alexcesaro/log v0.0.0-20150915221235-61e686294e58/go.mod h1:YNfsMyWSs+h+PaYkxGeMVmVCX75Zj/pqdjbu12ciCYE=
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
@@ -49,7 +48,6 @@ github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeME
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
-github.com/go-ole/go-ole v1.2.1 h1:2lOsA72HgjxAuMlKpFiCbHTvu44PIVkZ5hqm3RSdI/E=
github.com/go-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dTyBNF8=
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
github.com/go-telegram-bot-api/telegram-bot-api v4.6.5-0.20181225215658-ec221ba9ea45+incompatible h1:i64CCJcSqkRIkm5OSdZQjZq84/gJsk2zNwHWIRYWlKE=
@@ -62,7 +60,6 @@ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfU
github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
-github.com/golang/protobuf v1.3.0 h1:kbxbvI4Un1LUWKxufD+BiE6AEExYYgkQLQmLFqA1LFk=
github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0=
github.com/golang/protobuf v1.3.1 h1:YF8+flBXS5eO826T4nzqPrxfhQThhXl0YzfuUPu4SBg=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
@@ -72,6 +69,7 @@ github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
github.com/google/gops v0.3.6 h1:6akvbMlpZrEYOuoebn2kR+ZJekbZqJ28fJXTs84+8to=
github.com/google/gops v0.3.6/go.mod h1:RZ1rH95wsAGX4vMWKmqBOIWynmWisBf4QFdgT/k/xOI=
+github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/gopackage/ddp v0.0.0-20170117053602-652027933df4 h1:4EZlYQIiyecYJlUbVkFXCXHz1QPhVXcHnQKAzBTPfQo=
github.com/gopackage/ddp v0.0.0-20170117053602-652027933df4/go.mod h1:lEO7XoHJ/xNRBCxrn4h/CEB67h0kW1B0t4ooP2yrjUA=
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
@@ -79,7 +77,6 @@ github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORR
github.com/gorilla/schema v1.1.0 h1:CamqUDOFUBqzrvxuz2vEwo8+SUdwsluFh7IlzJh30LY=
github.com/gorilla/schema v1.1.0/go.mod h1:kgLaKoK1FELgZqMAVxx/5cbj0kT+57qxUrAlIO2eleU=
github.com/gorilla/websocket v1.2.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
-github.com/gorilla/websocket v1.4.0 h1:WDFjx/TMzVgy9VdMMQi2K2Emtwi2QcUQsztZ/zLaH/Q=
github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
github.com/gorilla/websocket v1.4.1 h1:q7AeDBpnBk8AogcD4DSag/Ukw/KV+YhzLj2bP5HvKCM=
github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
@@ -140,22 +137,23 @@ github.com/matterbridge/gozulipbot v0.0.0-20190212232658-7aa251978a18 h1:fLhwXtW
github.com/matterbridge/gozulipbot v0.0.0-20190212232658-7aa251978a18/go.mod h1:yAjnZ34DuDyPHMPHHjOsTk/FefW4JJjoMMCGt/8uuQA=
github.com/matterbridge/logrus-prefixed-formatter v0.0.0-20180806162718-01618749af61 h1:R/MgM/eUyRBQx2FiH6JVmXck8PaAuKfe2M1tWIzW7nE=
github.com/matterbridge/logrus-prefixed-formatter v0.0.0-20180806162718-01618749af61/go.mod h1:iXGEotOvwI1R1SjLxRc+BF5rUORTMtE0iMZBT2lxqAU=
+github.com/matterbridge/msgraph.go v0.0.0-20191226214848-9e5d9c08a4e1 h1:Yzi9wh9al/7R84U+TETBdNW1XkE/Nbvz7RFPN4y2o2o=
+github.com/matterbridge/msgraph.go v0.0.0-20191226214848-9e5d9c08a4e1/go.mod h1:l0kx9L8Z+NbBCGrQ/y+ldKZ/fiwBZjPoXwDS55LTumI=
github.com/mattermost/mattermost-server v5.5.0+incompatible h1:0wcLGgYtd+YImtLDPf2AOfpBHxbU4suATx+6XKw1XbU=
github.com/mattermost/mattermost-server v5.5.0+incompatible/go.mod h1:5L6MjAec+XXQwMIt791Ganu45GKsSiM+I0tLR9wUj8Y=
-github.com/mattn/go-colorable v0.1.1 h1:G1f5SKeVxmagw/IyvzvtZE4Gybcc4Tr1tf7I8z0XgOg=
github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ=
-github.com/mattn/go-colorable v0.1.2 h1:/bC9yWikZXAL9uJdulbSfyVNIR3n3trXl+v8+1sx8mU=
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA=
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
-github.com/mattn/go-isatty v0.0.5 h1:tHXDdz1cpzGaovsTB+TVB8q90WEokoVmfMqoVcrLUgw=
github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
-github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE=
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
-github.com/mattn/go-isatty v0.0.9 h1:d5US/mDsogSGW37IV293h//ZFaeajb69h+EHFsv2xGg=
github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ=
github.com/mattn/go-isatty v0.0.11 h1:FxPOTFNqGkuDUGi3H/qkUbQO4ZiBa2brKq5r0l8TGeM=
github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
+github.com/mattn/go-runewidth v0.0.7 h1:Ei8KR0497xHyKJPAv59M1dkC+rOZCMBJ+t3fZ+twI54=
+github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
+github.com/mattn/godown v0.0.0-20180312012330-2e9e17e0ea51 h1:MpI7hy3MiCnrggmZI/s8LaPbLVOOWpzDbjA4F+XaXaM=
+github.com/mattn/godown v0.0.0-20180312012330-2e9e17e0ea51/go.mod h1:s3KUdOIXJ+jaGM++XHiXA6gikdleaWVATCcQGD4h734=
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4=
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
@@ -206,9 +204,7 @@ github.com/shazow/rateio v0.0.0-20150116013248-e8e00881e5c1 h1:Lx3BlDGFElJt4u/zK
github.com/shazow/rateio v0.0.0-20150116013248-e8e00881e5c1/go.mod h1:vt2jWY/3Qw1bIzle5thrJWucsLuuX9iUNnp20CqCciI=
github.com/shazow/ssh-chat v1.8.2 h1:MMso9eWfCnPBelRsusYxKcRBUwHIPEQkR9WrO89II38=
github.com/shazow/ssh-chat v1.8.2/go.mod h1:cXTZK/D1zujEwB0y8DIT1GX8rIKjyLDYeWd+jitPX84=
-github.com/shirou/gopsutil v0.0.0-20180427012116-c95755e4bcd7 h1:80VN+vGkqM773Br/uNNTSheo3KatTgV8IpjIKjvVLng=
github.com/shirou/gopsutil v0.0.0-20180427012116-c95755e4bcd7/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA=
-github.com/shirou/w32 v0.0.0-20160930032740-bb4de0191aa4 h1:udFKJ0aHUL60LboW/A+DfgoHVedieIzIXE8uylPue0U=
github.com/shirou/w32 v0.0.0-20160930032740-bb4de0191aa4/go.mod h1:qsXQc7+bwAM3Q1u/4XEfrquwF8Lw7D7y5cD8CuHnfIc=
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=
@@ -234,7 +230,6 @@ github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnIn
github.com/spf13/viper v1.6.1 h1:VPZzIkznI1YhVMRi6vNFLHSwhnhReBfgTxIPccpfdZk=
github.com/spf13/viper v1.6.1/go.mod h1:t3iDnF5Jlj76alVNuyFBk5oUMCvsrkbvZK0WQdfDi5k=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
-github.com/stretchr/objx v0.1.1 h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
@@ -247,14 +242,12 @@ github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1
github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
-github.com/valyala/fasttemplate v1.0.1 h1:tY9CJiPnMXf1ERmG2EyK7gNUd+c6RKGD0IfU8WdUSz8=
github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8=
github.com/valyala/fasttemplate v1.1.0 h1:RZqt0yGBsps8NGvLSGW804QQqCUYYLsaOjTVHy1Ocw4=
github.com/valyala/fasttemplate v1.1.0/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8=
github.com/x-cray/logrus-prefixed-formatter v0.5.2 h1:00txxvfBM9muc0jiLIEAkAcIMJzfthRT6usrui8uGmg=
github.com/x-cray/logrus-prefixed-formatter v0.5.2/go.mod h1:2duySbKsL6M18s5GU7VPsoEPHyzalCE06qoARUCeBBE=
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
-github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6 h1:YdYsPAZ2pC6Tow/nPZOPQ96O3hm/ToAkGsPLzedXERk=
github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg=
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
github.com/zfjagann/golang-ring v0.0.0-20190106091943-a88bb6aef447 h1:CHgPZh8bFkZmislPrr/0gd7MciDAX+JJB70A2/5Lvmo=
@@ -270,7 +263,6 @@ golang.org/dl v0.0.0-20190829154251-82a15e2f2ead/go.mod h1:IUMfjQLJQd4UTqG1Z90te
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190131182504-b8fe1690c613/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
-golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 h1:VklqNMn3ovrHsnt90PveolxSbWFaJdECFbxSq0Mqo2M=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190320223903-b7391e95e576/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191227163750-53104e6ec876 h1:sKJQZMuxjOAR/Uo2LBfU90onWEf1dF4C+0hPJCc9Mpc=
@@ -279,20 +271,22 @@ golang.org/x/image v0.0.0-20191214001246-9130b4cfad52 h1:2fktqPPvDiVEEVT/vSTeoUP
golang.org/x/image v0.0.0-20191214001246-9130b4cfad52/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20190522155817-f3200d17e092 h1:4QSRKanuywn15aTZvI/mIDEgPQpswuFndXpOj3rKEco=
golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553 h1:efeOvDhwQ29Dj3SdAV/MJf8oukgn+8D8WgaCaRMchF8=
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
+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/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-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/sys v0.0.0-20171017063910-8dbc5d05d6ed/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
@@ -304,12 +298,10 @@ golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5h
golang.org/x/sys v0.0.0-20190321052220-f7bb7a8bee54/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a h1:aYOabOQFp6Vj6W1F80affTUvO9UxmJRx8K0gsfABByQ=
golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8 h1:JA8d3MPx/IToSyXZG/RhwYEtfrKO1Fxrqe8KrkiLXKM=
golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
@@ -320,6 +312,8 @@ golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGm
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
+google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508=
+google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
@@ -339,10 +333,8 @@ gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkep
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I=
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
-rsc.io/goversion v1.0.0 h1:/IhXBiai89TyuerPquiZZ39IQkTfAUbZB2awsyYZ/2c=
rsc.io/goversion v1.0.0/go.mod h1:Eih9y/uIBS3ulggl7KNJ09xGSLcuNaLgmvvqa07sgfo=
diff --git a/vendor/github.com/mattn/go-runewidth/.travis.yml b/vendor/github.com/mattn/go-runewidth/.travis.yml
new file mode 100644
index 00000000..5c9c2a30
--- /dev/null
+++ b/vendor/github.com/mattn/go-runewidth/.travis.yml
@@ -0,0 +1,8 @@
+language: go
+go:
+ - tip
+before_install:
+ - go get github.com/mattn/goveralls
+ - go get golang.org/x/tools/cmd/cover
+script:
+ - $HOME/gopath/bin/goveralls -repotoken lAKAWPzcGsD3A8yBX3BGGtRUdJ6CaGERL
diff --git a/vendor/github.com/mattn/go-runewidth/LICENSE b/vendor/github.com/mattn/go-runewidth/LICENSE
new file mode 100644
index 00000000..91b5cef3
--- /dev/null
+++ b/vendor/github.com/mattn/go-runewidth/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 Yasuhiro Matsumoto
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/vendor/github.com/mattn/go-runewidth/README.mkd b/vendor/github.com/mattn/go-runewidth/README.mkd
new file mode 100644
index 00000000..66663a94
--- /dev/null
+++ b/vendor/github.com/mattn/go-runewidth/README.mkd
@@ -0,0 +1,27 @@
+go-runewidth
+============
+
+[![Build Status](https://travis-ci.org/mattn/go-runewidth.png?branch=master)](https://travis-ci.org/mattn/go-runewidth)
+[![Coverage Status](https://coveralls.io/repos/mattn/go-runewidth/badge.png?branch=HEAD)](https://coveralls.io/r/mattn/go-runewidth?branch=HEAD)
+[![GoDoc](https://godoc.org/github.com/mattn/go-runewidth?status.svg)](http://godoc.org/github.com/mattn/go-runewidth)
+[![Go Report Card](https://goreportcard.com/badge/github.com/mattn/go-runewidth)](https://goreportcard.com/report/github.com/mattn/go-runewidth)
+
+Provides functions to get fixed width of the character or string.
+
+Usage
+-----
+
+```go
+runewidth.StringWidth("つのだ☆HIRO") == 12
+```
+
+
+Author
+------
+
+Yasuhiro Matsumoto
+
+License
+-------
+
+under the MIT License: http://mattn.mit-license.org/2013
diff --git a/vendor/github.com/mattn/go-runewidth/go.mod b/vendor/github.com/mattn/go-runewidth/go.mod
new file mode 100644
index 00000000..fa7f4d86
--- /dev/null
+++ b/vendor/github.com/mattn/go-runewidth/go.mod
@@ -0,0 +1,3 @@
+module github.com/mattn/go-runewidth
+
+go 1.9
diff --git a/vendor/github.com/mattn/go-runewidth/runewidth.go b/vendor/github.com/mattn/go-runewidth/runewidth.go
new file mode 100644
index 00000000..8d64da07
--- /dev/null
+++ b/vendor/github.com/mattn/go-runewidth/runewidth.go
@@ -0,0 +1,258 @@
+package runewidth
+
+import (
+ "os"
+)
+
+//go:generate go run script/generate.go
+
+var (
+ // EastAsianWidth will be set true if the current locale is CJK
+ EastAsianWidth bool
+
+ // ZeroWidthJoiner is flag to set to use UTR#51 ZWJ
+ ZeroWidthJoiner bool
+
+ // DefaultCondition is a condition in current locale
+ DefaultCondition = &Condition{}
+)
+
+func init() {
+ handleEnv()
+}
+
+func handleEnv() {
+ env := os.Getenv("RUNEWIDTH_EASTASIAN")
+ if env == "" {
+ EastAsianWidth = IsEastAsian()
+ } else {
+ EastAsianWidth = env == "1"
+ }
+ // update DefaultCondition
+ DefaultCondition.EastAsianWidth = EastAsianWidth
+ DefaultCondition.ZeroWidthJoiner = ZeroWidthJoiner
+}
+
+type interval struct {
+ first rune
+ last rune
+}
+
+type table []interval
+
+func inTables(r rune, ts ...table) bool {
+ for _, t := range ts {
+ if inTable(r, t) {
+ return true
+ }
+ }
+ return false
+}
+
+func inTable(r rune, t table) bool {
+ // func (t table) IncludesRune(r rune) bool {
+ if r < t[0].first {
+ return false
+ }
+
+ bot := 0
+ top := len(t) - 1
+ for top >= bot {
+ mid := (bot + top) >> 1
+
+ switch {
+ case t[mid].last < r:
+ bot = mid + 1
+ case t[mid].first > r:
+ top = mid - 1
+ default:
+ return true
+ }
+ }
+
+ return false
+}
+
+var private = table{
+ {0x00E000, 0x00F8FF}, {0x0F0000, 0x0FFFFD}, {0x100000, 0x10FFFD},
+}
+
+var nonprint = table{
+ {0x0000, 0x001F}, {0x007F, 0x009F}, {0x00AD, 0x00AD},
+ {0x070F, 0x070F}, {0x180B, 0x180E}, {0x200B, 0x200F},
+ {0x2028, 0x202E}, {0x206A, 0x206F}, {0xD800, 0xDFFF},
+ {0xFEFF, 0xFEFF}, {0xFFF9, 0xFFFB}, {0xFFFE, 0xFFFF},
+}
+
+// Condition have flag EastAsianWidth whether the current locale is CJK or not.
+type Condition struct {
+ EastAsianWidth bool
+ ZeroWidthJoiner bool
+}
+
+// NewCondition return new instance of Condition which is current locale.
+func NewCondition() *Condition {
+ return &Condition{
+ EastAsianWidth: EastAsianWidth,
+ ZeroWidthJoiner: ZeroWidthJoiner,
+ }
+}
+
+// RuneWidth returns the number of cells in r.
+// See http://www.unicode.org/reports/tr11/
+func (c *Condition) RuneWidth(r rune) int {
+ switch {
+ case r < 0 || r > 0x10FFFF || inTables(r, nonprint, combining, notassigned):
+ return 0
+ case (c.EastAsianWidth && IsAmbiguousWidth(r)) || inTables(r, doublewidth):
+ return 2
+ default:
+ return 1
+ }
+}
+
+func (c *Condition) stringWidth(s string) (width int) {
+ for _, r := range []rune(s) {
+ width += c.RuneWidth(r)
+ }
+ return width
+}
+
+func (c *Condition) stringWidthZeroJoiner(s string) (width int) {
+ r1, r2 := rune(0), rune(0)
+ for _, r := range []rune(s) {
+ if r == 0xFE0E || r == 0xFE0F {
+ continue
+ }
+ w := c.RuneWidth(r)
+ if r2 == 0x200D && inTables(r, emoji) && inTables(r1, emoji) {
+ if width < w {
+ width = w
+ }
+ } else {
+ width += w
+ }
+ r1, r2 = r2, r
+ }
+ return width
+}
+
+// StringWidth return width as you can see
+func (c *Condition) StringWidth(s string) (width int) {
+ if c.ZeroWidthJoiner {
+ return c.stringWidthZeroJoiner(s)
+ }
+ return c.stringWidth(s)
+}
+
+// Truncate return string truncated with w cells
+func (c *Condition) Truncate(s string, w int, tail string) string {
+ if c.StringWidth(s) <= w {
+ return s
+ }
+ r := []rune(s)
+ tw := c.StringWidth(tail)
+ w -= tw
+ width := 0
+ i := 0
+ for ; i < len(r); i++ {
+ cw := c.RuneWidth(r[i])
+ if width+cw > w {
+ break
+ }
+ width += cw
+ }
+ return string(r[0:i]) + tail
+}
+
+// Wrap return string wrapped with w cells
+func (c *Condition) Wrap(s string, w int) string {
+ width := 0
+ out := ""
+ for _, r := range []rune(s) {
+ cw := RuneWidth(r)
+ if r == '\n' {
+ out += string(r)
+ width = 0
+ continue
+ } else if width+cw > w {
+ out += "\n"
+ width = 0
+ out += string(r)
+ width += cw
+ continue
+ }
+ out += string(r)
+ width += cw
+ }
+ return out
+}
+
+// FillLeft return string filled in left by spaces in w cells
+func (c *Condition) FillLeft(s string, w int) string {
+ width := c.StringWidth(s)
+ count := w - width
+ if count > 0 {
+ b := make([]byte, count)
+ for i := range b {
+ b[i] = ' '
+ }
+ return string(b) + s
+ }
+ return s
+}
+
+// FillRight return string filled in left by spaces in w cells
+func (c *Condition) FillRight(s string, w int) string {
+ width := c.StringWidth(s)
+ count := w - width
+ if count > 0 {
+ b := make([]byte, count)
+ for i := range b {
+ b[i] = ' '
+ }
+ return s + string(b)
+ }
+ return s
+}
+
+// RuneWidth returns the number of cells in r.
+// See http://www.unicode.org/reports/tr11/
+func RuneWidth(r rune) int {
+ return DefaultCondition.RuneWidth(r)
+}
+
+// IsAmbiguousWidth returns whether is ambiguous width or not.
+func IsAmbiguousWidth(r rune) bool {
+ return inTables(r, private, ambiguous)
+}
+
+// IsNeutralWidth returns whether is neutral width or not.
+func IsNeutralWidth(r rune) bool {
+ return inTable(r, neutral)
+}
+
+// StringWidth return width as you can see
+func StringWidth(s string) (width int) {
+ return DefaultCondition.StringWidth(s)
+}
+
+// Truncate return string truncated with w cells
+func Truncate(s string, w int, tail string) string {
+ return DefaultCondition.Truncate(s, w, tail)
+}
+
+// Wrap return string wrapped with w cells
+func Wrap(s string, w int) string {
+ return DefaultCondition.Wrap(s, w)
+}
+
+// FillLeft return string filled in left by spaces in w cells
+func FillLeft(s string, w int) string {
+ return DefaultCondition.FillLeft(s, w)
+}
+
+// FillRight return string filled in left by spaces in w cells
+func FillRight(s string, w int) string {
+ return DefaultCondition.FillRight(s, w)
+}
diff --git a/vendor/github.com/mattn/go-runewidth/runewidth_appengine.go b/vendor/github.com/mattn/go-runewidth/runewidth_appengine.go
new file mode 100644
index 00000000..7d99f6e5
--- /dev/null
+++ b/vendor/github.com/mattn/go-runewidth/runewidth_appengine.go
@@ -0,0 +1,8 @@
+// +build appengine
+
+package runewidth
+
+// IsEastAsian return true if the current locale is CJK
+func IsEastAsian() bool {
+ return false
+}
diff --git a/vendor/github.com/mattn/go-runewidth/runewidth_js.go b/vendor/github.com/mattn/go-runewidth/runewidth_js.go
new file mode 100644
index 00000000..c5fdf40b
--- /dev/null
+++ b/vendor/github.com/mattn/go-runewidth/runewidth_js.go
@@ -0,0 +1,9 @@
+// +build js
+// +build !appengine
+
+package runewidth
+
+func IsEastAsian() bool {
+ // TODO: Implement this for the web. Detect east asian in a compatible way, and return true.
+ return false
+}
diff --git a/vendor/github.com/mattn/go-runewidth/runewidth_posix.go b/vendor/github.com/mattn/go-runewidth/runewidth_posix.go
new file mode 100644
index 00000000..66a58b5d
--- /dev/null
+++ b/vendor/github.com/mattn/go-runewidth/runewidth_posix.go
@@ -0,0 +1,79 @@
+// +build !windows
+// +build !js
+// +build !appengine
+
+package runewidth
+
+import (
+ "os"
+ "regexp"
+ "strings"
+)
+
+var reLoc = regexp.MustCompile(`^[a-z][a-z][a-z]?(?:_[A-Z][A-Z])?\.(.+)`)
+
+var mblenTable = map[string]int{
+ "utf-8": 6,
+ "utf8": 6,
+ "jis": 8,
+ "eucjp": 3,
+ "euckr": 2,
+ "euccn": 2,
+ "sjis": 2,
+ "cp932": 2,
+ "cp51932": 2,
+ "cp936": 2,
+ "cp949": 2,
+ "cp950": 2,
+ "big5": 2,
+ "gbk": 2,
+ "gb2312": 2,
+}
+
+func isEastAsian(locale string) bool {
+ charset := strings.ToLower(locale)
+ r := reLoc.FindStringSubmatch(locale)
+ if len(r) == 2 {
+ charset = strings.ToLower(r[1])
+ }
+
+ if strings.HasSuffix(charset, "@cjk_narrow") {
+ return false
+ }
+
+ for pos, b := range []byte(charset) {
+ if b == '@' {
+ charset = charset[:pos]
+ break
+ }
+ }
+ max := 1
+ if m, ok := mblenTable[charset]; ok {
+ max = m
+ }
+ if max > 1 && (charset[0] != 'u' ||
+ strings.HasPrefix(locale, "ja") ||
+ strings.HasPrefix(locale, "ko") ||
+ strings.HasPrefix(locale, "zh")) {
+ return true
+ }
+ return false
+}
+
+// IsEastAsian return true if the current locale is CJK
+func IsEastAsian() bool {
+ locale := os.Getenv("LC_CTYPE")
+ if locale == "" {
+ locale = os.Getenv("LANG")
+ }
+
+ // ignore C locale
+ if locale == "POSIX" || locale == "C" {
+ return false
+ }
+ if len(locale) > 1 && locale[0] == 'C' && (locale[1] == '.' || locale[1] == '-') {
+ return false
+ }
+
+ return isEastAsian(locale)
+}
diff --git a/vendor/github.com/mattn/go-runewidth/runewidth_table.go b/vendor/github.com/mattn/go-runewidth/runewidth_table.go
new file mode 100644
index 00000000..9ca6d0e2
--- /dev/null
+++ b/vendor/github.com/mattn/go-runewidth/runewidth_table.go
@@ -0,0 +1,427 @@
+package runewidth
+
+var combining = table{
+ {0x0300, 0x036F}, {0x0483, 0x0489}, {0x07EB, 0x07F3},
+ {0x0C00, 0x0C00}, {0x0C04, 0x0C04}, {0x0D00, 0x0D01},
+ {0x135D, 0x135F}, {0x1A7F, 0x1A7F}, {0x1AB0, 0x1ABE},
+ {0x1B6B, 0x1B73}, {0x1DC0, 0x1DF9}, {0x1DFB, 0x1DFF},
+ {0x20D0, 0x20F0}, {0x2CEF, 0x2CF1}, {0x2DE0, 0x2DFF},
+ {0x3099, 0x309A}, {0xA66F, 0xA672}, {0xA674, 0xA67D},
+ {0xA69E, 0xA69F}, {0xA6F0, 0xA6F1}, {0xA8E0, 0xA8F1},
+ {0xFE20, 0xFE2F}, {0x101FD, 0x101FD}, {0x10376, 0x1037A},
+ {0x10F46, 0x10F50}, {0x11300, 0x11301}, {0x1133B, 0x1133C},
+ {0x11366, 0x1136C}, {0x11370, 0x11374}, {0x16AF0, 0x16AF4},
+ {0x1D165, 0x1D169}, {0x1D16D, 0x1D172}, {0x1D17B, 0x1D182},
+ {0x1D185, 0x1D18B}, {0x1D1AA, 0x1D1AD}, {0x1D242, 0x1D244},
+ {0x1E000, 0x1E006}, {0x1E008, 0x1E018}, {0x1E01B, 0x1E021},
+ {0x1E023, 0x1E024}, {0x1E026, 0x1E02A}, {0x1E8D0, 0x1E8D6},
+}
+
+var doublewidth = table{
+ {0x1100, 0x115F}, {0x231A, 0x231B}, {0x2329, 0x232A},
+ {0x23E9, 0x23EC}, {0x23F0, 0x23F0}, {0x23F3, 0x23F3},
+ {0x25FD, 0x25FE}, {0x2614, 0x2615}, {0x2648, 0x2653},
+ {0x267F, 0x267F}, {0x2693, 0x2693}, {0x26A1, 0x26A1},
+ {0x26AA, 0x26AB}, {0x26BD, 0x26BE}, {0x26C4, 0x26C5},
+ {0x26CE, 0x26CE}, {0x26D4, 0x26D4}, {0x26EA, 0x26EA},
+ {0x26F2, 0x26F3}, {0x26F5, 0x26F5}, {0x26FA, 0x26FA},
+ {0x26FD, 0x26FD}, {0x2705, 0x2705}, {0x270A, 0x270B},
+ {0x2728, 0x2728}, {0x274C, 0x274C}, {0x274E, 0x274E},
+ {0x2753, 0x2755}, {0x2757, 0x2757}, {0x2795, 0x2797},
+ {0x27B0, 0x27B0}, {0x27BF, 0x27BF}, {0x2B1B, 0x2B1C},
+ {0x2B50, 0x2B50}, {0x2B55, 0x2B55}, {0x2E80, 0x2E99},
+ {0x2E9B, 0x2EF3}, {0x2F00, 0x2FD5}, {0x2FF0, 0x2FFB},
+ {0x3000, 0x303E}, {0x3041, 0x3096}, {0x3099, 0x30FF},
+ {0x3105, 0x312F}, {0x3131, 0x318E}, {0x3190, 0x31BA},
+ {0x31C0, 0x31E3}, {0x31F0, 0x321E}, {0x3220, 0x3247},
+ {0x3250, 0x4DBF}, {0x4E00, 0xA48C}, {0xA490, 0xA4C6},
+ {0xA960, 0xA97C}, {0xAC00, 0xD7A3}, {0xF900, 0xFAFF},
+ {0xFE10, 0xFE19}, {0xFE30, 0xFE52}, {0xFE54, 0xFE66},
+ {0xFE68, 0xFE6B}, {0xFF01, 0xFF60}, {0xFFE0, 0xFFE6},
+ {0x16FE0, 0x16FE3}, {0x17000, 0x187F7}, {0x18800, 0x18AF2},
+ {0x1B000, 0x1B11E}, {0x1B150, 0x1B152}, {0x1B164, 0x1B167},
+ {0x1B170, 0x1B2FB}, {0x1F004, 0x1F004}, {0x1F0CF, 0x1F0CF},
+ {0x1F18E, 0x1F18E}, {0x1F191, 0x1F19A}, {0x1F200, 0x1F202},
+ {0x1F210, 0x1F23B}, {0x1F240, 0x1F248}, {0x1F250, 0x1F251},
+ {0x1F260, 0x1F265}, {0x1F300, 0x1F320}, {0x1F32D, 0x1F335},
+ {0x1F337, 0x1F37C}, {0x1F37E, 0x1F393}, {0x1F3A0, 0x1F3CA},
+ {0x1F3CF, 0x1F3D3}, {0x1F3E0, 0x1F3F0}, {0x1F3F4, 0x1F3F4},
+ {0x1F3F8, 0x1F43E}, {0x1F440, 0x1F440}, {0x1F442, 0x1F4FC},
+ {0x1F4FF, 0x1F53D}, {0x1F54B, 0x1F54E}, {0x1F550, 0x1F567},
+ {0x1F57A, 0x1F57A}, {0x1F595, 0x1F596}, {0x1F5A4, 0x1F5A4},
+ {0x1F5FB, 0x1F64F}, {0x1F680, 0x1F6C5}, {0x1F6CC, 0x1F6CC},
+ {0x1F6D0, 0x1F6D2}, {0x1F6D5, 0x1F6D5}, {0x1F6EB, 0x1F6EC},
+ {0x1F6F4, 0x1F6FA}, {0x1F7E0, 0x1F7EB}, {0x1F90D, 0x1F971},
+ {0x1F973, 0x1F976}, {0x1F97A, 0x1F9A2}, {0x1F9A5, 0x1F9AA},
+ {0x1F9AE, 0x1F9CA}, {0x1F9CD, 0x1F9FF}, {0x1FA70, 0x1FA73},
+ {0x1FA78, 0x1FA7A}, {0x1FA80, 0x1FA82}, {0x1FA90, 0x1FA95},
+ {0x20000, 0x2FFFD}, {0x30000, 0x3FFFD},
+}
+
+var ambiguous = table{
+ {0x00A1, 0x00A1}, {0x00A4, 0x00A4}, {0x00A7, 0x00A8},
+ {0x00AA, 0x00AA}, {0x00AD, 0x00AE}, {0x00B0, 0x00B4},
+ {0x00B6, 0x00BA}, {0x00BC, 0x00BF}, {0x00C6, 0x00C6},
+ {0x00D0, 0x00D0}, {0x00D7, 0x00D8}, {0x00DE, 0x00E1},
+ {0x00E6, 0x00E6}, {0x00E8, 0x00EA}, {0x00EC, 0x00ED},
+ {0x00F0, 0x00F0}, {0x00F2, 0x00F3}, {0x00F7, 0x00FA},
+ {0x00FC, 0x00FC}, {0x00FE, 0x00FE}, {0x0101, 0x0101},
+ {0x0111, 0x0111}, {0x0113, 0x0113}, {0x011B, 0x011B},
+ {0x0126, 0x0127}, {0x012B, 0x012B}, {0x0131, 0x0133},
+ {0x0138, 0x0138}, {0x013F, 0x0142}, {0x0144, 0x0144},
+ {0x0148, 0x014B}, {0x014D, 0x014D}, {0x0152, 0x0153},
+ {0x0166, 0x0167}, {0x016B, 0x016B}, {0x01CE, 0x01CE},
+ {0x01D0, 0x01D0}, {0x01D2, 0x01D2}, {0x01D4, 0x01D4},
+ {0x01D6, 0x01D6}, {0x01D8, 0x01D8}, {0x01DA, 0x01DA},
+ {0x01DC, 0x01DC}, {0x0251, 0x0251}, {0x0261, 0x0261},
+ {0x02C4, 0x02C4}, {0x02C7, 0x02C7}, {0x02C9, 0x02CB},
+ {0x02CD, 0x02CD}, {0x02D0, 0x02D0}, {0x02D8, 0x02DB},
+ {0x02DD, 0x02DD}, {0x02DF, 0x02DF}, {0x0300, 0x036F},
+ {0x0391, 0x03A1}, {0x03A3, 0x03A9}, {0x03B1, 0x03C1},
+ {0x03C3, 0x03C9}, {0x0401, 0x0401}, {0x0410, 0x044F},
+ {0x0451, 0x0451}, {0x2010, 0x2010}, {0x2013, 0x2016},
+ {0x2018, 0x2019}, {0x201C, 0x201D}, {0x2020, 0x2022},
+ {0x2024, 0x2027}, {0x2030, 0x2030}, {0x2032, 0x2033},
+ {0x2035, 0x2035}, {0x203B, 0x203B}, {0x203E, 0x203E},
+ {0x2074, 0x2074}, {0x207F, 0x207F}, {0x2081, 0x2084},
+ {0x20AC, 0x20AC}, {0x2103, 0x2103}, {0x2105, 0x2105},
+ {0x2109, 0x2109}, {0x2113, 0x2113}, {0x2116, 0x2116},
+ {0x2121, 0x2122}, {0x2126, 0x2126}, {0x212B, 0x212B},
+ {0x2153, 0x2154}, {0x215B, 0x215E}, {0x2160, 0x216B},
+ {0x2170, 0x2179}, {0x2189, 0x2189}, {0x2190, 0x2199},
+ {0x21B8, 0x21B9}, {0x21D2, 0x21D2}, {0x21D4, 0x21D4},
+ {0x21E7, 0x21E7}, {0x2200, 0x2200}, {0x2202, 0x2203},
+ {0x2207, 0x2208}, {0x220B, 0x220B}, {0x220F, 0x220F},
+ {0x2211, 0x2211}, {0x2215, 0x2215}, {0x221A, 0x221A},
+ {0x221D, 0x2220}, {0x2223, 0x2223}, {0x2225, 0x2225},
+ {0x2227, 0x222C}, {0x222E, 0x222E}, {0x2234, 0x2237},
+ {0x223C, 0x223D}, {0x2248, 0x2248}, {0x224C, 0x224C},
+ {0x2252, 0x2252}, {0x2260, 0x2261}, {0x2264, 0x2267},
+ {0x226A, 0x226B}, {0x226E, 0x226F}, {0x2282, 0x2283},
+ {0x2286, 0x2287}, {0x2295, 0x2295}, {0x2299, 0x2299},
+ {0x22A5, 0x22A5}, {0x22BF, 0x22BF}, {0x2312, 0x2312},
+ {0x2460, 0x24E9}, {0x24EB, 0x254B}, {0x2550, 0x2573},
+ {0x2580, 0x258F}, {0x2592, 0x2595}, {0x25A0, 0x25A1},
+ {0x25A3, 0x25A9}, {0x25B2, 0x25B3}, {0x25B6, 0x25B7},
+ {0x25BC, 0x25BD}, {0x25C0, 0x25C1}, {0x25C6, 0x25C8},
+ {0x25CB, 0x25CB}, {0x25CE, 0x25D1}, {0x25E2, 0x25E5},
+ {0x25EF, 0x25EF}, {0x2605, 0x2606}, {0x2609, 0x2609},
+ {0x260E, 0x260F}, {0x261C, 0x261C}, {0x261E, 0x261E},
+ {0x2640, 0x2640}, {0x2642, 0x2642}, {0x2660, 0x2661},
+ {0x2663, 0x2665}, {0x2667, 0x266A}, {0x266C, 0x266D},
+ {0x266F, 0x266F}, {0x269E, 0x269F}, {0x26BF, 0x26BF},
+ {0x26C6, 0x26CD}, {0x26CF, 0x26D3}, {0x26D5, 0x26E1},
+ {0x26E3, 0x26E3}, {0x26E8, 0x26E9}, {0x26EB, 0x26F1},
+ {0x26F4, 0x26F4}, {0x26F6, 0x26F9}, {0x26FB, 0x26FC},
+ {0x26FE, 0x26FF}, {0x273D, 0x273D}, {0x2776, 0x277F},
+ {0x2B56, 0x2B59}, {0x3248, 0x324F}, {0xE000, 0xF8FF},
+ {0xFE00, 0xFE0F}, {0xFFFD, 0xFFFD}, {0x1F100, 0x1F10A},
+ {0x1F110, 0x1F12D}, {0x1F130, 0x1F169}, {0x1F170, 0x1F18D},
+ {0x1F18F, 0x1F190}, {0x1F19B, 0x1F1AC}, {0xE0100, 0xE01EF},
+ {0xF0000, 0xFFFFD}, {0x100000, 0x10FFFD},
+}
+var notassigned = table{
+ {0x27E6, 0x27ED}, {0x2985, 0x2986},
+}
+
+var neutral = table{
+ {0x0000, 0x001F}, {0x007F, 0x00A0}, {0x00A9, 0x00A9},
+ {0x00AB, 0x00AB}, {0x00B5, 0x00B5}, {0x00BB, 0x00BB},
+ {0x00C0, 0x00C5}, {0x00C7, 0x00CF}, {0x00D1, 0x00D6},
+ {0x00D9, 0x00DD}, {0x00E2, 0x00E5}, {0x00E7, 0x00E7},
+ {0x00EB, 0x00EB}, {0x00EE, 0x00EF}, {0x00F1, 0x00F1},
+ {0x00F4, 0x00F6}, {0x00FB, 0x00FB}, {0x00FD, 0x00FD},
+ {0x00FF, 0x0100}, {0x0102, 0x0110}, {0x0112, 0x0112},
+ {0x0114, 0x011A}, {0x011C, 0x0125}, {0x0128, 0x012A},
+ {0x012C, 0x0130}, {0x0134, 0x0137}, {0x0139, 0x013E},
+ {0x0143, 0x0143}, {0x0145, 0x0147}, {0x014C, 0x014C},
+ {0x014E, 0x0151}, {0x0154, 0x0165}, {0x0168, 0x016A},
+ {0x016C, 0x01CD}, {0x01CF, 0x01CF}, {0x01D1, 0x01D1},
+ {0x01D3, 0x01D3}, {0x01D5, 0x01D5}, {0x01D7, 0x01D7},
+ {0x01D9, 0x01D9}, {0x01DB, 0x01DB}, {0x01DD, 0x0250},
+ {0x0252, 0x0260}, {0x0262, 0x02C3}, {0x02C5, 0x02C6},
+ {0x02C8, 0x02C8}, {0x02CC, 0x02CC}, {0x02CE, 0x02CF},
+ {0x02D1, 0x02D7}, {0x02DC, 0x02DC}, {0x02DE, 0x02DE},
+ {0x02E0, 0x02FF}, {0x0370, 0x0377}, {0x037A, 0x037F},
+ {0x0384, 0x038A}, {0x038C, 0x038C}, {0x038E, 0x0390},
+ {0x03AA, 0x03B0}, {0x03C2, 0x03C2}, {0x03CA, 0x0400},
+ {0x0402, 0x040F}, {0x0450, 0x0450}, {0x0452, 0x052F},
+ {0x0531, 0x0556}, {0x0559, 0x058A}, {0x058D, 0x058F},
+ {0x0591, 0x05C7}, {0x05D0, 0x05EA}, {0x05EF, 0x05F4},
+ {0x0600, 0x061C}, {0x061E, 0x070D}, {0x070F, 0x074A},
+ {0x074D, 0x07B1}, {0x07C0, 0x07FA}, {0x07FD, 0x082D},
+ {0x0830, 0x083E}, {0x0840, 0x085B}, {0x085E, 0x085E},
+ {0x0860, 0x086A}, {0x08A0, 0x08B4}, {0x08B6, 0x08BD},
+ {0x08D3, 0x0983}, {0x0985, 0x098C}, {0x098F, 0x0990},
+ {0x0993, 0x09A8}, {0x09AA, 0x09B0}, {0x09B2, 0x09B2},
+ {0x09B6, 0x09B9}, {0x09BC, 0x09C4}, {0x09C7, 0x09C8},
+ {0x09CB, 0x09CE}, {0x09D7, 0x09D7}, {0x09DC, 0x09DD},
+ {0x09DF, 0x09E3}, {0x09E6, 0x09FE}, {0x0A01, 0x0A03},
+ {0x0A05, 0x0A0A}, {0x0A0F, 0x0A10}, {0x0A13, 0x0A28},
+ {0x0A2A, 0x0A30}, {0x0A32, 0x0A33}, {0x0A35, 0x0A36},
+ {0x0A38, 0x0A39}, {0x0A3C, 0x0A3C}, {0x0A3E, 0x0A42},
+ {0x0A47, 0x0A48}, {0x0A4B, 0x0A4D}, {0x0A51, 0x0A51},
+ {0x0A59, 0x0A5C}, {0x0A5E, 0x0A5E}, {0x0A66, 0x0A76},
+ {0x0A81, 0x0A83}, {0x0A85, 0x0A8D}, {0x0A8F, 0x0A91},
+ {0x0A93, 0x0AA8}, {0x0AAA, 0x0AB0}, {0x0AB2, 0x0AB3},
+ {0x0AB5, 0x0AB9}, {0x0ABC, 0x0AC5}, {0x0AC7, 0x0AC9},
+ {0x0ACB, 0x0ACD}, {0x0AD0, 0x0AD0}, {0x0AE0, 0x0AE3},
+ {0x0AE6, 0x0AF1}, {0x0AF9, 0x0AFF}, {0x0B01, 0x0B03},
+ {0x0B05, 0x0B0C}, {0x0B0F, 0x0B10}, {0x0B13, 0x0B28},
+ {0x0B2A, 0x0B30}, {0x0B32, 0x0B33}, {0x0B35, 0x0B39},
+ {0x0B3C, 0x0B44}, {0x0B47, 0x0B48}, {0x0B4B, 0x0B4D},
+ {0x0B56, 0x0B57}, {0x0B5C, 0x0B5D}, {0x0B5F, 0x0B63},
+ {0x0B66, 0x0B77}, {0x0B82, 0x0B83}, {0x0B85, 0x0B8A},
+ {0x0B8E, 0x0B90}, {0x0B92, 0x0B95}, {0x0B99, 0x0B9A},
+ {0x0B9C, 0x0B9C}, {0x0B9E, 0x0B9F}, {0x0BA3, 0x0BA4},
+ {0x0BA8, 0x0BAA}, {0x0BAE, 0x0BB9}, {0x0BBE, 0x0BC2},
+ {0x0BC6, 0x0BC8}, {0x0BCA, 0x0BCD}, {0x0BD0, 0x0BD0},
+ {0x0BD7, 0x0BD7}, {0x0BE6, 0x0BFA}, {0x0C00, 0x0C0C},
+ {0x0C0E, 0x0C10}, {0x0C12, 0x0C28}, {0x0C2A, 0x0C39},
+ {0x0C3D, 0x0C44}, {0x0C46, 0x0C48}, {0x0C4A, 0x0C4D},
+ {0x0C55, 0x0C56}, {0x0C58, 0x0C5A}, {0x0C60, 0x0C63},
+ {0x0C66, 0x0C6F}, {0x0C77, 0x0C8C}, {0x0C8E, 0x0C90},
+ {0x0C92, 0x0CA8}, {0x0CAA, 0x0CB3}, {0x0CB5, 0x0CB9},
+ {0x0CBC, 0x0CC4}, {0x0CC6, 0x0CC8}, {0x0CCA, 0x0CCD},
+ {0x0CD5, 0x0CD6}, {0x0CDE, 0x0CDE}, {0x0CE0, 0x0CE3},
+ {0x0CE6, 0x0CEF}, {0x0CF1, 0x0CF2}, {0x0D00, 0x0D03},
+ {0x0D05, 0x0D0C}, {0x0D0E, 0x0D10}, {0x0D12, 0x0D44},
+ {0x0D46, 0x0D48}, {0x0D4A, 0x0D4F}, {0x0D54, 0x0D63},
+ {0x0D66, 0x0D7F}, {0x0D82, 0x0D83}, {0x0D85, 0x0D96},
+ {0x0D9A, 0x0DB1}, {0x0DB3, 0x0DBB}, {0x0DBD, 0x0DBD},
+ {0x0DC0, 0x0DC6}, {0x0DCA, 0x0DCA}, {0x0DCF, 0x0DD4},
+ {0x0DD6, 0x0DD6}, {0x0DD8, 0x0DDF}, {0x0DE6, 0x0DEF},
+ {0x0DF2, 0x0DF4}, {0x0E01, 0x0E3A}, {0x0E3F, 0x0E5B},
+ {0x0E81, 0x0E82}, {0x0E84, 0x0E84}, {0x0E86, 0x0E8A},
+ {0x0E8C, 0x0EA3}, {0x0EA5, 0x0EA5}, {0x0EA7, 0x0EBD},
+ {0x0EC0, 0x0EC4}, {0x0EC6, 0x0EC6}, {0x0EC8, 0x0ECD},
+ {0x0ED0, 0x0ED9}, {0x0EDC, 0x0EDF}, {0x0F00, 0x0F47},
+ {0x0F49, 0x0F6C}, {0x0F71, 0x0F97}, {0x0F99, 0x0FBC},
+ {0x0FBE, 0x0FCC}, {0x0FCE, 0x0FDA}, {0x1000, 0x10C5},
+ {0x10C7, 0x10C7}, {0x10CD, 0x10CD}, {0x10D0, 0x10FF},
+ {0x1160, 0x1248}, {0x124A, 0x124D}, {0x1250, 0x1256},
+ {0x1258, 0x1258}, {0x125A, 0x125D}, {0x1260, 0x1288},
+ {0x128A, 0x128D}, {0x1290, 0x12B0}, {0x12B2, 0x12B5},
+ {0x12B8, 0x12BE}, {0x12C0, 0x12C0}, {0x12C2, 0x12C5},
+ {0x12C8, 0x12D6}, {0x12D8, 0x1310}, {0x1312, 0x1315},
+ {0x1318, 0x135A}, {0x135D, 0x137C}, {0x1380, 0x1399},
+ {0x13A0, 0x13F5}, {0x13F8, 0x13FD}, {0x1400, 0x169C},
+ {0x16A0, 0x16F8}, {0x1700, 0x170C}, {0x170E, 0x1714},
+ {0x1720, 0x1736}, {0x1740, 0x1753}, {0x1760, 0x176C},
+ {0x176E, 0x1770}, {0x1772, 0x1773}, {0x1780, 0x17DD},
+ {0x17E0, 0x17E9}, {0x17F0, 0x17F9}, {0x1800, 0x180E},
+ {0x1810, 0x1819}, {0x1820, 0x1878}, {0x1880, 0x18AA},
+ {0x18B0, 0x18F5}, {0x1900, 0x191E}, {0x1920, 0x192B},
+ {0x1930, 0x193B}, {0x1940, 0x1940}, {0x1944, 0x196D},
+ {0x1970, 0x1974}, {0x1980, 0x19AB}, {0x19B0, 0x19C9},
+ {0x19D0, 0x19DA}, {0x19DE, 0x1A1B}, {0x1A1E, 0x1A5E},
+ {0x1A60, 0x1A7C}, {0x1A7F, 0x1A89}, {0x1A90, 0x1A99},
+ {0x1AA0, 0x1AAD}, {0x1AB0, 0x1ABE}, {0x1B00, 0x1B4B},
+ {0x1B50, 0x1B7C}, {0x1B80, 0x1BF3}, {0x1BFC, 0x1C37},
+ {0x1C3B, 0x1C49}, {0x1C4D, 0x1C88}, {0x1C90, 0x1CBA},
+ {0x1CBD, 0x1CC7}, {0x1CD0, 0x1CFA}, {0x1D00, 0x1DF9},
+ {0x1DFB, 0x1F15}, {0x1F18, 0x1F1D}, {0x1F20, 0x1F45},
+ {0x1F48, 0x1F4D}, {0x1F50, 0x1F57}, {0x1F59, 0x1F59},
+ {0x1F5B, 0x1F5B}, {0x1F5D, 0x1F5D}, {0x1F5F, 0x1F7D},
+ {0x1F80, 0x1FB4}, {0x1FB6, 0x1FC4}, {0x1FC6, 0x1FD3},
+ {0x1FD6, 0x1FDB}, {0x1FDD, 0x1FEF}, {0x1FF2, 0x1FF4},
+ {0x1FF6, 0x1FFE}, {0x2000, 0x200F}, {0x2011, 0x2012},
+ {0x2017, 0x2017}, {0x201A, 0x201B}, {0x201E, 0x201F},
+ {0x2023, 0x2023}, {0x2028, 0x202F}, {0x2031, 0x2031},
+ {0x2034, 0x2034}, {0x2036, 0x203A}, {0x203C, 0x203D},
+ {0x203F, 0x2064}, {0x2066, 0x2071}, {0x2075, 0x207E},
+ {0x2080, 0x2080}, {0x2085, 0x208E}, {0x2090, 0x209C},
+ {0x20A0, 0x20A8}, {0x20AA, 0x20AB}, {0x20AD, 0x20BF},
+ {0x20D0, 0x20F0}, {0x2100, 0x2102}, {0x2104, 0x2104},
+ {0x2106, 0x2108}, {0x210A, 0x2112}, {0x2114, 0x2115},
+ {0x2117, 0x2120}, {0x2123, 0x2125}, {0x2127, 0x212A},
+ {0x212C, 0x2152}, {0x2155, 0x215A}, {0x215F, 0x215F},
+ {0x216C, 0x216F}, {0x217A, 0x2188}, {0x218A, 0x218B},
+ {0x219A, 0x21B7}, {0x21BA, 0x21D1}, {0x21D3, 0x21D3},
+ {0x21D5, 0x21E6}, {0x21E8, 0x21FF}, {0x2201, 0x2201},
+ {0x2204, 0x2206}, {0x2209, 0x220A}, {0x220C, 0x220E},
+ {0x2210, 0x2210}, {0x2212, 0x2214}, {0x2216, 0x2219},
+ {0x221B, 0x221C}, {0x2221, 0x2222}, {0x2224, 0x2224},
+ {0x2226, 0x2226}, {0x222D, 0x222D}, {0x222F, 0x2233},
+ {0x2238, 0x223B}, {0x223E, 0x2247}, {0x2249, 0x224B},
+ {0x224D, 0x2251}, {0x2253, 0x225F}, {0x2262, 0x2263},
+ {0x2268, 0x2269}, {0x226C, 0x226D}, {0x2270, 0x2281},
+ {0x2284, 0x2285}, {0x2288, 0x2294}, {0x2296, 0x2298},
+ {0x229A, 0x22A4}, {0x22A6, 0x22BE}, {0x22C0, 0x2311},
+ {0x2313, 0x2319}, {0x231C, 0x2328}, {0x232B, 0x23E8},
+ {0x23ED, 0x23EF}, {0x23F1, 0x23F2}, {0x23F4, 0x2426},
+ {0x2440, 0x244A}, {0x24EA, 0x24EA}, {0x254C, 0x254F},
+ {0x2574, 0x257F}, {0x2590, 0x2591}, {0x2596, 0x259F},
+ {0x25A2, 0x25A2}, {0x25AA, 0x25B1}, {0x25B4, 0x25B5},
+ {0x25B8, 0x25BB}, {0x25BE, 0x25BF}, {0x25C2, 0x25C5},
+ {0x25C9, 0x25CA}, {0x25CC, 0x25CD}, {0x25D2, 0x25E1},
+ {0x25E6, 0x25EE}, {0x25F0, 0x25FC}, {0x25FF, 0x2604},
+ {0x2607, 0x2608}, {0x260A, 0x260D}, {0x2610, 0x2613},
+ {0x2616, 0x261B}, {0x261D, 0x261D}, {0x261F, 0x263F},
+ {0x2641, 0x2641}, {0x2643, 0x2647}, {0x2654, 0x265F},
+ {0x2662, 0x2662}, {0x2666, 0x2666}, {0x266B, 0x266B},
+ {0x266E, 0x266E}, {0x2670, 0x267E}, {0x2680, 0x2692},
+ {0x2694, 0x269D}, {0x26A0, 0x26A0}, {0x26A2, 0x26A9},
+ {0x26AC, 0x26BC}, {0x26C0, 0x26C3}, {0x26E2, 0x26E2},
+ {0x26E4, 0x26E7}, {0x2700, 0x2704}, {0x2706, 0x2709},
+ {0x270C, 0x2727}, {0x2729, 0x273C}, {0x273E, 0x274B},
+ {0x274D, 0x274D}, {0x274F, 0x2752}, {0x2756, 0x2756},
+ {0x2758, 0x2775}, {0x2780, 0x2794}, {0x2798, 0x27AF},
+ {0x27B1, 0x27BE}, {0x27C0, 0x27E5}, {0x27EE, 0x2984},
+ {0x2987, 0x2B1A}, {0x2B1D, 0x2B4F}, {0x2B51, 0x2B54},
+ {0x2B5A, 0x2B73}, {0x2B76, 0x2B95}, {0x2B98, 0x2C2E},
+ {0x2C30, 0x2C5E}, {0x2C60, 0x2CF3}, {0x2CF9, 0x2D25},
+ {0x2D27, 0x2D27}, {0x2D2D, 0x2D2D}, {0x2D30, 0x2D67},
+ {0x2D6F, 0x2D70}, {0x2D7F, 0x2D96}, {0x2DA0, 0x2DA6},
+ {0x2DA8, 0x2DAE}, {0x2DB0, 0x2DB6}, {0x2DB8, 0x2DBE},
+ {0x2DC0, 0x2DC6}, {0x2DC8, 0x2DCE}, {0x2DD0, 0x2DD6},
+ {0x2DD8, 0x2DDE}, {0x2DE0, 0x2E4F}, {0x303F, 0x303F},
+ {0x4DC0, 0x4DFF}, {0xA4D0, 0xA62B}, {0xA640, 0xA6F7},
+ {0xA700, 0xA7BF}, {0xA7C2, 0xA7C6}, {0xA7F7, 0xA82B},
+ {0xA830, 0xA839}, {0xA840, 0xA877}, {0xA880, 0xA8C5},
+ {0xA8CE, 0xA8D9}, {0xA8E0, 0xA953}, {0xA95F, 0xA95F},
+ {0xA980, 0xA9CD}, {0xA9CF, 0xA9D9}, {0xA9DE, 0xA9FE},
+ {0xAA00, 0xAA36}, {0xAA40, 0xAA4D}, {0xAA50, 0xAA59},
+ {0xAA5C, 0xAAC2}, {0xAADB, 0xAAF6}, {0xAB01, 0xAB06},
+ {0xAB09, 0xAB0E}, {0xAB11, 0xAB16}, {0xAB20, 0xAB26},
+ {0xAB28, 0xAB2E}, {0xAB30, 0xAB67}, {0xAB70, 0xABED},
+ {0xABF0, 0xABF9}, {0xD7B0, 0xD7C6}, {0xD7CB, 0xD7FB},
+ {0xD800, 0xDFFF}, {0xFB00, 0xFB06}, {0xFB13, 0xFB17},
+ {0xFB1D, 0xFB36}, {0xFB38, 0xFB3C}, {0xFB3E, 0xFB3E},
+ {0xFB40, 0xFB41}, {0xFB43, 0xFB44}, {0xFB46, 0xFBC1},
+ {0xFBD3, 0xFD3F}, {0xFD50, 0xFD8F}, {0xFD92, 0xFDC7},
+ {0xFDF0, 0xFDFD}, {0xFE20, 0xFE2F}, {0xFE70, 0xFE74},
+ {0xFE76, 0xFEFC}, {0xFEFF, 0xFEFF}, {0xFFF9, 0xFFFC},
+ {0x10000, 0x1000B}, {0x1000D, 0x10026}, {0x10028, 0x1003A},
+ {0x1003C, 0x1003D}, {0x1003F, 0x1004D}, {0x10050, 0x1005D},
+ {0x10080, 0x100FA}, {0x10100, 0x10102}, {0x10107, 0x10133},
+ {0x10137, 0x1018E}, {0x10190, 0x1019B}, {0x101A0, 0x101A0},
+ {0x101D0, 0x101FD}, {0x10280, 0x1029C}, {0x102A0, 0x102D0},
+ {0x102E0, 0x102FB}, {0x10300, 0x10323}, {0x1032D, 0x1034A},
+ {0x10350, 0x1037A}, {0x10380, 0x1039D}, {0x1039F, 0x103C3},
+ {0x103C8, 0x103D5}, {0x10400, 0x1049D}, {0x104A0, 0x104A9},
+ {0x104B0, 0x104D3}, {0x104D8, 0x104FB}, {0x10500, 0x10527},
+ {0x10530, 0x10563}, {0x1056F, 0x1056F}, {0x10600, 0x10736},
+ {0x10740, 0x10755}, {0x10760, 0x10767}, {0x10800, 0x10805},
+ {0x10808, 0x10808}, {0x1080A, 0x10835}, {0x10837, 0x10838},
+ {0x1083C, 0x1083C}, {0x1083F, 0x10855}, {0x10857, 0x1089E},
+ {0x108A7, 0x108AF}, {0x108E0, 0x108F2}, {0x108F4, 0x108F5},
+ {0x108FB, 0x1091B}, {0x1091F, 0x10939}, {0x1093F, 0x1093F},
+ {0x10980, 0x109B7}, {0x109BC, 0x109CF}, {0x109D2, 0x10A03},
+ {0x10A05, 0x10A06}, {0x10A0C, 0x10A13}, {0x10A15, 0x10A17},
+ {0x10A19, 0x10A35}, {0x10A38, 0x10A3A}, {0x10A3F, 0x10A48},
+ {0x10A50, 0x10A58}, {0x10A60, 0x10A9F}, {0x10AC0, 0x10AE6},
+ {0x10AEB, 0x10AF6}, {0x10B00, 0x10B35}, {0x10B39, 0x10B55},
+ {0x10B58, 0x10B72}, {0x10B78, 0x10B91}, {0x10B99, 0x10B9C},
+ {0x10BA9, 0x10BAF}, {0x10C00, 0x10C48}, {0x10C80, 0x10CB2},
+ {0x10CC0, 0x10CF2}, {0x10CFA, 0x10D27}, {0x10D30, 0x10D39},
+ {0x10E60, 0x10E7E}, {0x10F00, 0x10F27}, {0x10F30, 0x10F59},
+ {0x10FE0, 0x10FF6}, {0x11000, 0x1104D}, {0x11052, 0x1106F},
+ {0x1107F, 0x110C1}, {0x110CD, 0x110CD}, {0x110D0, 0x110E8},
+ {0x110F0, 0x110F9}, {0x11100, 0x11134}, {0x11136, 0x11146},
+ {0x11150, 0x11176}, {0x11180, 0x111CD}, {0x111D0, 0x111DF},
+ {0x111E1, 0x111F4}, {0x11200, 0x11211}, {0x11213, 0x1123E},
+ {0x11280, 0x11286}, {0x11288, 0x11288}, {0x1128A, 0x1128D},
+ {0x1128F, 0x1129D}, {0x1129F, 0x112A9}, {0x112B0, 0x112EA},
+ {0x112F0, 0x112F9}, {0x11300, 0x11303}, {0x11305, 0x1130C},
+ {0x1130F, 0x11310}, {0x11313, 0x11328}, {0x1132A, 0x11330},
+ {0x11332, 0x11333}, {0x11335, 0x11339}, {0x1133B, 0x11344},
+ {0x11347, 0x11348}, {0x1134B, 0x1134D}, {0x11350, 0x11350},
+ {0x11357, 0x11357}, {0x1135D, 0x11363}, {0x11366, 0x1136C},
+ {0x11370, 0x11374}, {0x11400, 0x11459}, {0x1145B, 0x1145B},
+ {0x1145D, 0x1145F}, {0x11480, 0x114C7}, {0x114D0, 0x114D9},
+ {0x11580, 0x115B5}, {0x115B8, 0x115DD}, {0x11600, 0x11644},
+ {0x11650, 0x11659}, {0x11660, 0x1166C}, {0x11680, 0x116B8},
+ {0x116C0, 0x116C9}, {0x11700, 0x1171A}, {0x1171D, 0x1172B},
+ {0x11730, 0x1173F}, {0x11800, 0x1183B}, {0x118A0, 0x118F2},
+ {0x118FF, 0x118FF}, {0x119A0, 0x119A7}, {0x119AA, 0x119D7},
+ {0x119DA, 0x119E4}, {0x11A00, 0x11A47}, {0x11A50, 0x11AA2},
+ {0x11AC0, 0x11AF8}, {0x11C00, 0x11C08}, {0x11C0A, 0x11C36},
+ {0x11C38, 0x11C45}, {0x11C50, 0x11C6C}, {0x11C70, 0x11C8F},
+ {0x11C92, 0x11CA7}, {0x11CA9, 0x11CB6}, {0x11D00, 0x11D06},
+ {0x11D08, 0x11D09}, {0x11D0B, 0x11D36}, {0x11D3A, 0x11D3A},
+ {0x11D3C, 0x11D3D}, {0x11D3F, 0x11D47}, {0x11D50, 0x11D59},
+ {0x11D60, 0x11D65}, {0x11D67, 0x11D68}, {0x11D6A, 0x11D8E},
+ {0x11D90, 0x11D91}, {0x11D93, 0x11D98}, {0x11DA0, 0x11DA9},
+ {0x11EE0, 0x11EF8}, {0x11FC0, 0x11FF1}, {0x11FFF, 0x12399},
+ {0x12400, 0x1246E}, {0x12470, 0x12474}, {0x12480, 0x12543},
+ {0x13000, 0x1342E}, {0x13430, 0x13438}, {0x14400, 0x14646},
+ {0x16800, 0x16A38}, {0x16A40, 0x16A5E}, {0x16A60, 0x16A69},
+ {0x16A6E, 0x16A6F}, {0x16AD0, 0x16AED}, {0x16AF0, 0x16AF5},
+ {0x16B00, 0x16B45}, {0x16B50, 0x16B59}, {0x16B5B, 0x16B61},
+ {0x16B63, 0x16B77}, {0x16B7D, 0x16B8F}, {0x16E40, 0x16E9A},
+ {0x16F00, 0x16F4A}, {0x16F4F, 0x16F87}, {0x16F8F, 0x16F9F},
+ {0x1BC00, 0x1BC6A}, {0x1BC70, 0x1BC7C}, {0x1BC80, 0x1BC88},
+ {0x1BC90, 0x1BC99}, {0x1BC9C, 0x1BCA3}, {0x1D000, 0x1D0F5},
+ {0x1D100, 0x1D126}, {0x1D129, 0x1D1E8}, {0x1D200, 0x1D245},
+ {0x1D2E0, 0x1D2F3}, {0x1D300, 0x1D356}, {0x1D360, 0x1D378},
+ {0x1D400, 0x1D454}, {0x1D456, 0x1D49C}, {0x1D49E, 0x1D49F},
+ {0x1D4A2, 0x1D4A2}, {0x1D4A5, 0x1D4A6}, {0x1D4A9, 0x1D4AC},
+ {0x1D4AE, 0x1D4B9}, {0x1D4BB, 0x1D4BB}, {0x1D4BD, 0x1D4C3},
+ {0x1D4C5, 0x1D505}, {0x1D507, 0x1D50A}, {0x1D50D, 0x1D514},
+ {0x1D516, 0x1D51C}, {0x1D51E, 0x1D539}, {0x1D53B, 0x1D53E},
+ {0x1D540, 0x1D544}, {0x1D546, 0x1D546}, {0x1D54A, 0x1D550},
+ {0x1D552, 0x1D6A5}, {0x1D6A8, 0x1D7CB}, {0x1D7CE, 0x1DA8B},
+ {0x1DA9B, 0x1DA9F}, {0x1DAA1, 0x1DAAF}, {0x1E000, 0x1E006},
+ {0x1E008, 0x1E018}, {0x1E01B, 0x1E021}, {0x1E023, 0x1E024},
+ {0x1E026, 0x1E02A}, {0x1E100, 0x1E12C}, {0x1E130, 0x1E13D},
+ {0x1E140, 0x1E149}, {0x1E14E, 0x1E14F}, {0x1E2C0, 0x1E2F9},
+ {0x1E2FF, 0x1E2FF}, {0x1E800, 0x1E8C4}, {0x1E8C7, 0x1E8D6},
+ {0x1E900, 0x1E94B}, {0x1E950, 0x1E959}, {0x1E95E, 0x1E95F},
+ {0x1EC71, 0x1ECB4}, {0x1ED01, 0x1ED3D}, {0x1EE00, 0x1EE03},
+ {0x1EE05, 0x1EE1F}, {0x1EE21, 0x1EE22}, {0x1EE24, 0x1EE24},
+ {0x1EE27, 0x1EE27}, {0x1EE29, 0x1EE32}, {0x1EE34, 0x1EE37},
+ {0x1EE39, 0x1EE39}, {0x1EE3B, 0x1EE3B}, {0x1EE42, 0x1EE42},
+ {0x1EE47, 0x1EE47}, {0x1EE49, 0x1EE49}, {0x1EE4B, 0x1EE4B},
+ {0x1EE4D, 0x1EE4F}, {0x1EE51, 0x1EE52}, {0x1EE54, 0x1EE54},
+ {0x1EE57, 0x1EE57}, {0x1EE59, 0x1EE59}, {0x1EE5B, 0x1EE5B},
+ {0x1EE5D, 0x1EE5D}, {0x1EE5F, 0x1EE5F}, {0x1EE61, 0x1EE62},
+ {0x1EE64, 0x1EE64}, {0x1EE67, 0x1EE6A}, {0x1EE6C, 0x1EE72},
+ {0x1EE74, 0x1EE77}, {0x1EE79, 0x1EE7C}, {0x1EE7E, 0x1EE7E},
+ {0x1EE80, 0x1EE89}, {0x1EE8B, 0x1EE9B}, {0x1EEA1, 0x1EEA3},
+ {0x1EEA5, 0x1EEA9}, {0x1EEAB, 0x1EEBB}, {0x1EEF0, 0x1EEF1},
+ {0x1F000, 0x1F003}, {0x1F005, 0x1F02B}, {0x1F030, 0x1F093},
+ {0x1F0A0, 0x1F0AE}, {0x1F0B1, 0x1F0BF}, {0x1F0C1, 0x1F0CE},
+ {0x1F0D1, 0x1F0F5}, {0x1F10B, 0x1F10C}, {0x1F12E, 0x1F12F},
+ {0x1F16A, 0x1F16C}, {0x1F1E6, 0x1F1FF}, {0x1F321, 0x1F32C},
+ {0x1F336, 0x1F336}, {0x1F37D, 0x1F37D}, {0x1F394, 0x1F39F},
+ {0x1F3CB, 0x1F3CE}, {0x1F3D4, 0x1F3DF}, {0x1F3F1, 0x1F3F3},
+ {0x1F3F5, 0x1F3F7}, {0x1F43F, 0x1F43F}, {0x1F441, 0x1F441},
+ {0x1F4FD, 0x1F4FE}, {0x1F53E, 0x1F54A}, {0x1F54F, 0x1F54F},
+ {0x1F568, 0x1F579}, {0x1F57B, 0x1F594}, {0x1F597, 0x1F5A3},
+ {0x1F5A5, 0x1F5FA}, {0x1F650, 0x1F67F}, {0x1F6C6, 0x1F6CB},
+ {0x1F6CD, 0x1F6CF}, {0x1F6D3, 0x1F6D4}, {0x1F6E0, 0x1F6EA},
+ {0x1F6F0, 0x1F6F3}, {0x1F700, 0x1F773}, {0x1F780, 0x1F7D8},
+ {0x1F800, 0x1F80B}, {0x1F810, 0x1F847}, {0x1F850, 0x1F859},
+ {0x1F860, 0x1F887}, {0x1F890, 0x1F8AD}, {0x1F900, 0x1F90B},
+ {0x1FA00, 0x1FA53}, {0x1FA60, 0x1FA6D}, {0xE0001, 0xE0001},
+ {0xE0020, 0xE007F},
+}
+
+var emoji = table{
+ {0x203C, 0x203C}, {0x2049, 0x2049}, {0x2122, 0x2122},
+ {0x2139, 0x2139}, {0x2194, 0x2199}, {0x21A9, 0x21AA},
+ {0x231A, 0x231B}, {0x2328, 0x2328}, {0x2388, 0x2388},
+ {0x23CF, 0x23CF}, {0x23E9, 0x23F3}, {0x23F8, 0x23FA},
+ {0x24C2, 0x24C2}, {0x25AA, 0x25AB}, {0x25B6, 0x25B6},
+ {0x25C0, 0x25C0}, {0x25FB, 0x25FE}, {0x2600, 0x2605},
+ {0x2607, 0x2612}, {0x2614, 0x2685}, {0x2690, 0x2705},
+ {0x2708, 0x2712}, {0x2714, 0x2714}, {0x2716, 0x2716},
+ {0x271D, 0x271D}, {0x2721, 0x2721}, {0x2728, 0x2728},
+ {0x2733, 0x2734}, {0x2744, 0x2744}, {0x2747, 0x2747},
+ {0x274C, 0x274C}, {0x274E, 0x274E}, {0x2753, 0x2755},
+ {0x2757, 0x2757}, {0x2763, 0x2767}, {0x2795, 0x2797},
+ {0x27A1, 0x27A1}, {0x27B0, 0x27B0}, {0x27BF, 0x27BF},
+ {0x2934, 0x2935}, {0x2B05, 0x2B07}, {0x2B1B, 0x2B1C},
+ {0x2B50, 0x2B50}, {0x2B55, 0x2B55}, {0x3030, 0x3030},
+ {0x303D, 0x303D}, {0x3297, 0x3297}, {0x3299, 0x3299},
+ {0x1F000, 0x1F0FF}, {0x1F10D, 0x1F10F}, {0x1F12F, 0x1F12F},
+ {0x1F16C, 0x1F171}, {0x1F17E, 0x1F17F}, {0x1F18E, 0x1F18E},
+ {0x1F191, 0x1F19A}, {0x1F1AD, 0x1F1E5}, {0x1F201, 0x1F20F},
+ {0x1F21A, 0x1F21A}, {0x1F22F, 0x1F22F}, {0x1F232, 0x1F23A},
+ {0x1F23C, 0x1F23F}, {0x1F249, 0x1F3FA}, {0x1F400, 0x1F53D},
+ {0x1F546, 0x1F64F}, {0x1F680, 0x1F6FF}, {0x1F774, 0x1F77F},
+ {0x1F7D5, 0x1F7FF}, {0x1F80C, 0x1F80F}, {0x1F848, 0x1F84F},
+ {0x1F85A, 0x1F85F}, {0x1F888, 0x1F88F}, {0x1F8AE, 0x1F8FF},
+ {0x1F90C, 0x1F93A}, {0x1F93C, 0x1F945}, {0x1F947, 0x1FFFD},
+}
diff --git a/vendor/github.com/mattn/go-runewidth/runewidth_windows.go b/vendor/github.com/mattn/go-runewidth/runewidth_windows.go
new file mode 100644
index 00000000..d6a61777
--- /dev/null
+++ b/vendor/github.com/mattn/go-runewidth/runewidth_windows.go
@@ -0,0 +1,28 @@
+// +build windows
+// +build !appengine
+
+package runewidth
+
+import (
+ "syscall"
+)
+
+var (
+ kernel32 = syscall.NewLazyDLL("kernel32")
+ procGetConsoleOutputCP = kernel32.NewProc("GetConsoleOutputCP")
+)
+
+// IsEastAsian return true if the current locale is CJK
+func IsEastAsian() bool {
+ r1, _, _ := procGetConsoleOutputCP.Call()
+ if r1 == 0 {
+ return false
+ }
+
+ switch int(r1) {
+ case 932, 51932, 936, 949, 950:
+ return true
+ }
+
+ return false
+}
diff --git a/vendor/github.com/mattn/godown/.gitignore b/vendor/github.com/mattn/godown/.gitignore
new file mode 100644
index 00000000..2c77a177
--- /dev/null
+++ b/vendor/github.com/mattn/godown/.gitignore
@@ -0,0 +1,2 @@
+*.swp
+godown
diff --git a/vendor/github.com/mattn/godown/.travis.yml b/vendor/github.com/mattn/godown/.travis.yml
new file mode 100644
index 00000000..4a9344d1
--- /dev/null
+++ b/vendor/github.com/mattn/godown/.travis.yml
@@ -0,0 +1,14 @@
+language: go
+
+go:
+ - 1.8
+ - 1.9.3
+
+env:
+ secure: "sssm68fvzltcAnFd0Vc+OJV0eOicaTUO4I/CRX9LsnqzSsiNmaFT5o1O0Mx622ApYxCfiG3G53B8wuPzSMQxdPaSiMqzoXNLjD8gURaZBWTXc+kj9WFUoS4KW5L8KF3zrmS1u6Ja9U/elIpNqbpuwqT7sZUUJJM1JR50uEVmtP9oc/iqTKh3JK1HZCkb/PDVKs7xY5AEOhx1x0QOn9SegMUK2b83WeuSbta3Z6Rp4EW3p3WwI1WHZmm8+IYjvbwu18foQSetfro+pXCyDBpw1zLbBTDR8W02VwkH2vECMm4N7GYPmHWNx2lZFqoFp9zY5zCRUQG9KmxqbappalBCsT1ZyesUt7Wp/qYw5W+1Np7/vQhe8eeyyKMzsS7FBq8Imn4JiBPbj/1KAhVoZZKyv0qU4hgxHPZMC/JtVoTkIH3IXvTE88P92z9pFL30afQ692BXPe+XmCBph4zBdH88vksdiky9DWuXJ+O0rDCcLes45ij/wk6psdTPx3IXuMohfkO81F0pveksBYFkff8dXXxCABUzZbPaawEDnLAQKJ1m+oF3UYhPzVwrelNjFDOUq3mxsTU36uyhB9fb8sJ+BmorTD9AvqNvobcwKlQ6TaVJEhHjDJRxho82OG2gof9UbsJF3+6IM8uuUVy3TP7b1o+t8PQ3iNKTB4RUzGjJCOs="
+
+script:
+ go test -v -race -coverprofile=coverage.txt -covermode=atomic
+
+after_success:
+ - bash <(curl -s https://codecov.io/bash)
diff --git a/vendor/github.com/mattn/godown/LICENSE b/vendor/github.com/mattn/godown/LICENSE
new file mode 100644
index 00000000..e364750d
--- /dev/null
+++ b/vendor/github.com/mattn/godown/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2018 Yasuhiro Matsumoto
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/vendor/github.com/mattn/godown/README.md b/vendor/github.com/mattn/godown/README.md
new file mode 100644
index 00000000..a94f4157
--- /dev/null
+++ b/vendor/github.com/mattn/godown/README.md
@@ -0,0 +1,42 @@
+# godown
+
+[![Build Status](https://travis-ci.org/mattn/godown.png?branch=master)](https://travis-ci.org/mattn/godown)
+[![Codecov](https://codecov.io/gh/mattn/godown/branch/master/graph/badge.svg)](https://codecov.io/gh/mattn/godown)
+[![GoDoc](https://godoc.org/github.com/mattn/godown?status.svg)](http://godoc.org/github.com/mattn/godown)
+[![Go Report Card](https://goreportcard.com/badge/github.com/mattn/godown)](https://goreportcard.com/report/github.com/mattn/godown)
+
+Convert HTML into Markdown
+
+This is work in progress.
+
+## Usage
+
+```
+err := godown.Convert(w, r)
+checkError(err)
+```
+
+
+## Command Line
+
+```
+$ godown < index.html > index.md
+```
+
+## Installation
+
+```
+$ go get github.com/mattn/godown/cmd/godown
+```
+
+## TODO
+
+* escape strings in HTML
+
+## License
+
+MIT
+
+## Author
+
+Yasuhiro Matsumoto (a.k.a. mattn)
diff --git a/vendor/github.com/mattn/godown/godown.go b/vendor/github.com/mattn/godown/godown.go
new file mode 100644
index 00000000..10423be9
--- /dev/null
+++ b/vendor/github.com/mattn/godown/godown.go
@@ -0,0 +1,372 @@
+package godown
+
+import (
+ "bytes"
+ "fmt"
+ "io"
+ "regexp"
+ "strings"
+
+ "github.com/mattn/go-runewidth"
+
+ "golang.org/x/net/html"
+)
+
+func isChildOf(node *html.Node, name string) bool {
+ node = node.Parent
+ return node != nil && node.Type == html.ElementNode && strings.ToLower(node.Data) == name
+}
+
+func hasClass(node *html.Node, clazz string) bool {
+ for _, attr := range node.Attr {
+ if attr.Key == "class" {
+ for _, c := range strings.Fields(attr.Val) {
+ if c == clazz {
+ return true
+ }
+ }
+ }
+ }
+ return false
+}
+
+func attr(node *html.Node, key string) string {
+ for _, attr := range node.Attr {
+ if attr.Key == key {
+ return attr.Val
+ }
+ }
+ return ""
+}
+
+func br(node *html.Node, w io.Writer, option *Option) {
+ node = node.PrevSibling
+ if node == nil {
+ return
+ }
+ switch node.Type {
+ case html.TextNode:
+ text := strings.Trim(node.Data, " \t")
+ if text != "" && !strings.HasSuffix(text, "\n") {
+ fmt.Fprint(w, "\n")
+ }
+ case html.ElementNode:
+ switch strings.ToLower(node.Data) {
+ case "br", "p", "ul", "ol", "div", "blockquote", "h1", "h2", "h3", "h4", "h5", "h6":
+ fmt.Fprint(w, "\n")
+ }
+ }
+}
+
+func table(node *html.Node, w io.Writer, option *Option) {
+ for tr := node.FirstChild; tr != nil; tr = tr.NextSibling {
+ if tr.Type == html.ElementNode && strings.ToLower(tr.Data) == "tbody" {
+ node = tr
+ break
+ }
+ }
+ var header bool
+ var rows [][]string
+ for tr := node.FirstChild; tr != nil; tr = tr.NextSibling {
+ if tr.Type != html.ElementNode || strings.ToLower(tr.Data) != "tr" {
+ continue
+ }
+ var cols []string
+ if !header {
+ for th := tr.FirstChild; th != nil; th = th.NextSibling {
+ if th.Type != html.ElementNode || strings.ToLower(th.Data) != "th" {
+ continue
+ }
+ var buf bytes.Buffer
+ walk(th, &buf, 0, option)
+ cols = append(cols, buf.String())
+ }
+ if len(cols) > 0 {
+ rows = append(rows, cols)
+ header = true
+ continue
+ }
+ }
+ for td := tr.FirstChild; td != nil; td = td.NextSibling {
+ if td.Type != html.ElementNode || strings.ToLower(td.Data) != "td" {
+ continue
+ }
+ var buf bytes.Buffer
+ walk(td, &buf, 0, option)
+ cols = append(cols, buf.String())
+ }
+ rows = append(rows, cols)
+ }
+ maxcol := 0
+ for _, cols := range rows {
+ if len(cols) > maxcol {
+ maxcol = len(cols)
+ }
+ }
+ widths := make([]int, maxcol)
+ for _, cols := range rows {
+ for i := 0; i < maxcol; i++ {
+ if i < len(cols) {
+ width := runewidth.StringWidth(cols[i])
+ if widths[i] < width {
+ widths[i] = width
+ }
+ }
+ }
+ }
+ for i, cols := range rows {
+ for j := 0; j < maxcol; j++ {
+ fmt.Fprint(w, "|")
+ if j < len(cols) {
+ width := runewidth.StringWidth(cols[j])
+ fmt.Fprint(w, cols[j])
+ fmt.Fprint(w, strings.Repeat(" ", widths[j]-width))
+ } else {
+ fmt.Fprint(w, strings.Repeat(" ", widths[j]))
+ }
+ }
+ fmt.Fprint(w, "|\n")
+ if i == 0 && header {
+ for j := 0; j < maxcol; j++ {
+ fmt.Fprint(w, "|")
+ fmt.Fprint(w, strings.Repeat("-", widths[j]))
+ }
+ fmt.Fprint(w, "|\n")
+ }
+ }
+ fmt.Fprint(w, "\n")
+}
+
+var emptyElements = []string{
+ "area",
+ "base",
+ "br",
+ "col",
+ "embed",
+ "hr",
+ "img",
+ "input",
+ "keygen",
+ "link",
+ "meta",
+ "param",
+ "source",
+ "track",
+ "wbr",
+}
+
+func raw(node *html.Node, w io.Writer, option *Option) {
+ switch node.Type {
+ case html.ElementNode:
+ fmt.Fprintf(w, "<%s", node.Data)
+ for _, attr := range node.Attr {
+ fmt.Fprintf(w, " %s=%q", attr.Key, attr.Val)
+ }
+ found := false
+ tag := strings.ToLower(node.Data)
+ for _, e := range emptyElements {
+ if e == tag {
+ found = true
+ break
+ }
+ }
+ if found {
+ fmt.Fprint(w, "/>")
+ } else {
+ fmt.Fprint(w, ">")
+ for c := node.FirstChild; c != nil; c = c.NextSibling {
+ raw(c, w, option)
+ }
+ fmt.Fprintf(w, "%s>", node.Data)
+ }
+ case html.TextNode:
+ fmt.Fprint(w, node.Data)
+ }
+}
+
+func bq(node *html.Node, w io.Writer, option *Option) {
+ if node.Type == html.TextNode {
+ fmt.Fprint(w, strings.Replace(node.Data, "\u00a0", " ", -1))
+ } else {
+ for c := node.FirstChild; c != nil; c = c.NextSibling {
+ bq(c, w, option)
+ }
+ }
+}
+
+func pre(node *html.Node, w io.Writer, option *Option) {
+ if node.Type == html.TextNode {
+ fmt.Fprint(w, node.Data)
+ } else {
+ for c := node.FirstChild; c != nil; c = c.NextSibling {
+ pre(c, w, option)
+ }
+ }
+}
+
+func walk(node *html.Node, w io.Writer, nest int, option *Option) {
+ if node.Type == html.TextNode {
+ if strings.TrimSpace(node.Data) != "" {
+ text := regexp.MustCompile(`[[:space:]][[:space:]]*`).ReplaceAllString(strings.Trim(node.Data, "\t\r\n"), " ")
+ fmt.Fprint(w, text)
+ }
+ }
+ n := 0
+ for c := node.FirstChild; c != nil; c = c.NextSibling {
+ switch c.Type {
+ case html.CommentNode:
+ fmt.Fprint(w, "\n")
+ case html.ElementNode:
+ switch strings.ToLower(c.Data) {
+ case "a":
+ fmt.Fprint(w, "[")
+ walk(c, w, nest, option)
+ fmt.Fprint(w, "]("+attr(c, "href")+")")
+ case "b", "strong":
+ fmt.Fprint(w, "**")
+ walk(c, w, nest, option)
+ fmt.Fprint(w, "**")
+ case "i", "em":
+ fmt.Fprint(w, "_")
+ walk(c, w, nest, option)
+ fmt.Fprint(w, "_")
+ case "del":
+ fmt.Fprint(w, "~~")
+ walk(c, w, nest, option)
+ fmt.Fprint(w, "~~")
+ case "br":
+ br(c, w, option)
+ fmt.Fprint(w, "\n\n")
+ case "p":
+ br(c, w, option)
+ walk(c, w, nest, option)
+ br(c, w, option)
+ fmt.Fprint(w, "\n\n")
+ case "code":
+ if !isChildOf(c, "pre") {
+ fmt.Fprint(w, "`")
+ pre(c, w, option)
+ fmt.Fprint(w, "`")
+ }
+ case "pre":
+ br(c, w, option)
+ var buf bytes.Buffer
+ pre(c, &buf, option)
+ var lang string
+ if option != nil && option.GuessLang != nil {
+ if guess, err := option.GuessLang(buf.String()); err == nil {
+ lang = guess
+ }
+ }
+ fmt.Fprint(w, "```"+lang+"\n")
+ fmt.Fprint(w, buf.String())
+ if !strings.HasSuffix(buf.String(), "\n") {
+ fmt.Fprint(w, "\n")
+ }
+ fmt.Fprint(w, "```\n\n")
+ case "div":
+ br(c, w, option)
+ walk(c, w, nest, option)
+ fmt.Fprint(w, "\n")
+ case "blockquote":
+ br(c, w, option)
+ var buf bytes.Buffer
+ if hasClass(c, "code") {
+ bq(c, &buf, option)
+ var lang string
+ if option != nil && option.GuessLang != nil {
+ if guess, err := option.GuessLang(buf.String()); err == nil {
+ lang = guess
+ }
+ }
+ fmt.Fprint(w, "```"+lang+"\n")
+ fmt.Fprint(w, strings.TrimLeft(buf.String(), "\n"))
+ if !strings.HasSuffix(buf.String(), "\n") {
+ fmt.Fprint(w, "\n")
+ }
+ fmt.Fprint(w, "```\n\n")
+ } else {
+ walk(c, &buf, nest+1, option)
+
+ if lines := strings.Split(strings.TrimSpace(buf.String()), "\n"); len(lines) > 0 {
+ for _, l := range lines {
+ fmt.Fprint(w, "> "+strings.TrimSpace(l)+"\n")
+ }
+ fmt.Fprint(w, "\n")
+ }
+ }
+ case "ul", "ol":
+ br(c, w, option)
+ var buf bytes.Buffer
+ walk(c, &buf, 1, option)
+ if lines := strings.Split(strings.TrimSpace(buf.String()), "\n"); len(lines) > 0 {
+ for i, l := range lines {
+ if i > 0 || nest > 0 {
+ fmt.Fprint(w, "\n")
+ }
+ fmt.Fprint(w, strings.Repeat(" ", nest)+strings.TrimSpace(l))
+ }
+ fmt.Fprint(w, "\n")
+ }
+ case "li":
+ br(c, w, option)
+ if isChildOf(c, "ul") {
+ fmt.Fprint(w, "* ")
+ } else if isChildOf(c, "ol") {
+ n++
+ fmt.Fprint(w, fmt.Sprintf("%d. ", n))
+ }
+ walk(c, w, nest, option)
+ fmt.Fprint(w, "\n")
+ case "h1", "h2", "h3", "h4", "h5", "h6":
+ br(c, w, option)
+ fmt.Fprint(w, strings.Repeat("#", int(rune(c.Data[1])-rune('0')))+" ")
+ walk(c, w, nest, option)
+ fmt.Fprint(w, "\n\n")
+ case "img":
+ fmt.Fprint(w, "!["+attr(c, "alt")+"]("+attr(c, "src")+")")
+ case "hr":
+ br(c, w, option)
+ fmt.Fprint(w, "\n---\n\n")
+ case "table":
+ br(c, w, option)
+ table(c, w, option)
+ case "style":
+ if option != nil && option.Style {
+ br(c, w, option)
+ raw(c, w, option)
+ fmt.Fprint(w, "\n\n")
+ }
+ case "script":
+ if option != nil && option.Script {
+ br(c, w, option)
+ raw(c, w, option)
+ fmt.Fprint(w, "\n\n")
+ }
+ default:
+ walk(c, w, nest, option)
+ }
+ default:
+ walk(c, w, nest, option)
+ }
+ }
+}
+
+type Option struct {
+ GuessLang func(string) (string, error)
+ Script bool
+ Style bool
+}
+
+// Convert convert HTML to Markdown. Read HTML from r and write to w.
+func Convert(w io.Writer, r io.Reader, option *Option) error {
+ doc, err := html.Parse(r)
+ if err != nil {
+ return err
+ }
+ walk(doc, w, 0, option)
+ fmt.Fprint(w, "\n")
+ return nil
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/LICENSE b/vendor/github.com/yaegashi/msgraph.go/LICENSE
new file mode 100644
index 00000000..261eeb9e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ACLModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ACLModel.go
new file mode 100644
index 00000000..5b8d85d4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ACLModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ACL undocumented
+type ACL struct {
+ // Object is the base model of ACL
+ Object
+ // Type undocumented
+ Type *ACLType `json:"type,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+ // AccessType undocumented
+ AccessType *AccessType `json:"accessType,omitempty"`
+ // IdentitySource undocumented
+ IdentitySource *string `json:"identitySource,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ACLTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ACLTypeEnum.go
new file mode 100644
index 00000000..8fbbb779
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ACLTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ACLType undocumented
+type ACLType int
+
+const (
+ // ACLTypeVUser undocumented
+ ACLTypeVUser ACLType = 1
+ // ACLTypeVGroup undocumented
+ ACLTypeVGroup ACLType = 2
+ // ACLTypeVEveryone undocumented
+ ACLTypeVEveryone ACLType = 3
+ // ACLTypeVEveryoneExceptGuests undocumented
+ ACLTypeVEveryoneExceptGuests ACLType = 4
+)
+
+// ACLTypePUser returns a pointer to ACLTypeVUser
+func ACLTypePUser() *ACLType {
+ v := ACLTypeVUser
+ return &v
+}
+
+// ACLTypePGroup returns a pointer to ACLTypeVGroup
+func ACLTypePGroup() *ACLType {
+ v := ACLTypeVGroup
+ return &v
+}
+
+// ACLTypePEveryone returns a pointer to ACLTypeVEveryone
+func ACLTypePEveryone() *ACLType {
+ v := ACLTypeVEveryone
+ return &v
+}
+
+// ACLTypePEveryoneExceptGuests returns a pointer to ACLTypeVEveryoneExceptGuests
+func ACLTypePEveryoneExceptGuests() *ACLType {
+ v := ACLTypeVEveryoneExceptGuests
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/APIApplicationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/APIApplicationModel.go
new file mode 100644
index 00000000..c0e379cd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/APIApplicationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// APIApplication undocumented
+type APIApplication struct {
+ // Object is the base model of APIApplication
+ Object
+ // AcceptMappedClaims undocumented
+ AcceptMappedClaims *bool `json:"acceptMappedClaims,omitempty"`
+ // KnownClientApplications undocumented
+ KnownClientApplications []UUID `json:"knownClientApplications,omitempty"`
+ // PreAuthorizedApplications undocumented
+ PreAuthorizedApplications []PreAuthorizedApplication `json:"preAuthorizedApplications,omitempty"`
+ // RequestedAccessTokenVersion undocumented
+ RequestedAccessTokenVersion *int `json:"requestedAccessTokenVersion,omitempty"`
+ // Oauth2PermissionScopes undocumented
+ Oauth2PermissionScopes []PermissionScope `json:"oauth2PermissionScopes,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/APIServicePrincipalModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/APIServicePrincipalModel.go
new file mode 100644
index 00000000..509cb4ca
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/APIServicePrincipalModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// APIServicePrincipal undocumented
+type APIServicePrincipal struct {
+ // Object is the base model of APIServicePrincipal
+ Object
+ // ResourceSpecificApplicationPermissions undocumented
+ ResourceSpecificApplicationPermissions []ResourceSpecificPermission `json:"resourceSpecificApplicationPermissions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AadUserConversationMemberModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AadUserConversationMemberModel.go
new file mode 100644
index 00000000..0ea6c88e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AadUserConversationMemberModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AadUserConversationMember undocumented
+type AadUserConversationMember struct {
+ // ConversationMember is the base model of AadUserConversationMember
+ ConversationMember
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // User undocumented
+ User *User `json:"user,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AadUserConversationMemberRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AadUserConversationMemberRequest.go
new file mode 100644
index 00000000..336954e0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AadUserConversationMemberRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AadUserConversationMemberRequestBuilder is request builder for AadUserConversationMember
+type AadUserConversationMemberRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AadUserConversationMemberRequest
+func (b *AadUserConversationMemberRequestBuilder) Request() *AadUserConversationMemberRequest {
+ return &AadUserConversationMemberRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AadUserConversationMemberRequest is request for AadUserConversationMember
+type AadUserConversationMemberRequest struct{ BaseRequest }
+
+// Get performs GET request for AadUserConversationMember
+func (r *AadUserConversationMemberRequest) Get(ctx context.Context) (resObj *AadUserConversationMember, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AadUserConversationMember
+func (r *AadUserConversationMemberRequest) Update(ctx context.Context, reqObj *AadUserConversationMember) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AadUserConversationMember
+func (r *AadUserConversationMemberRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// User is navigation property
+func (b *AadUserConversationMemberRequestBuilder) User() *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/user"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessActionModel.go
new file mode 100644
index 00000000..3edb6007
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessActionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccessAction undocumented
+type AccessAction struct {
+ // Object is the base model of AccessAction
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessLevelEnum.go
new file mode 100644
index 00000000..89b0a98e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessLevelEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccessLevel undocumented
+type AccessLevel int
+
+const (
+ // AccessLevelVEveryone undocumented
+ AccessLevelVEveryone AccessLevel = 0
+ // AccessLevelVInvited undocumented
+ AccessLevelVInvited AccessLevel = 1
+ // AccessLevelVLocked undocumented
+ AccessLevelVLocked AccessLevel = 2
+ // AccessLevelVSameEnterprise undocumented
+ AccessLevelVSameEnterprise AccessLevel = 3
+ // AccessLevelVSameEnterpriseAndFederated undocumented
+ AccessLevelVSameEnterpriseAndFederated AccessLevel = 4
+)
+
+// AccessLevelPEveryone returns a pointer to AccessLevelVEveryone
+func AccessLevelPEveryone() *AccessLevel {
+ v := AccessLevelVEveryone
+ return &v
+}
+
+// AccessLevelPInvited returns a pointer to AccessLevelVInvited
+func AccessLevelPInvited() *AccessLevel {
+ v := AccessLevelVInvited
+ return &v
+}
+
+// AccessLevelPLocked returns a pointer to AccessLevelVLocked
+func AccessLevelPLocked() *AccessLevel {
+ v := AccessLevelVLocked
+ return &v
+}
+
+// AccessLevelPSameEnterprise returns a pointer to AccessLevelVSameEnterprise
+func AccessLevelPSameEnterprise() *AccessLevel {
+ v := AccessLevelVSameEnterprise
+ return &v
+}
+
+// AccessLevelPSameEnterpriseAndFederated returns a pointer to AccessLevelVSameEnterpriseAndFederated
+func AccessLevelPSameEnterpriseAndFederated() *AccessLevel {
+ v := AccessLevelVSameEnterpriseAndFederated
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentModel.go
new file mode 100644
index 00000000..f214be9d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AccessPackageAssignment undocumented
+type AccessPackageAssignment struct {
+ // Entity is the base model of AccessPackageAssignment
+ Entity
+ // CatalogID undocumented
+ CatalogID *string `json:"catalogId,omitempty"`
+ // AccessPackageID undocumented
+ AccessPackageID *string `json:"accessPackageId,omitempty"`
+ // AssignmentPolicyID undocumented
+ AssignmentPolicyID *string `json:"assignmentPolicyId,omitempty"`
+ // TargetID undocumented
+ TargetID *string `json:"targetId,omitempty"`
+ // AssignmentStatus undocumented
+ AssignmentStatus *string `json:"assignmentStatus,omitempty"`
+ // AssignmentState undocumented
+ AssignmentState *string `json:"assignmentState,omitempty"`
+ // IsExtended undocumented
+ IsExtended *bool `json:"isExtended,omitempty"`
+ // ExpiredDateTime undocumented
+ ExpiredDateTime *time.Time `json:"expiredDateTime,omitempty"`
+ // AccessPackage undocumented
+ AccessPackage *AccessPackage `json:"accessPackage,omitempty"`
+ // AccessPackageAssignmentPolicy undocumented
+ AccessPackageAssignmentPolicy *AccessPackageAssignmentPolicy `json:"accessPackageAssignmentPolicy,omitempty"`
+ // Target undocumented
+ Target *AccessPackageSubject `json:"target,omitempty"`
+ // AccessPackageAssignmentRequests undocumented
+ AccessPackageAssignmentRequests []AccessPackageAssignmentRequestObject `json:"accessPackageAssignmentRequests,omitempty"`
+ // AccessPackageAssignmentResourceRoles undocumented
+ AccessPackageAssignmentResourceRoles []AccessPackageAssignmentResourceRole `json:"accessPackageAssignmentResourceRoles,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentPolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentPolicyModel.go
new file mode 100644
index 00000000..f944844f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentPolicyModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AccessPackageAssignmentPolicy undocumented
+type AccessPackageAssignmentPolicy struct {
+ // Entity is the base model of AccessPackageAssignmentPolicy
+ Entity
+ // UserType undocumented
+ UserType *string `json:"userType,omitempty"`
+ // AccessPackageID undocumented
+ AccessPackageID *string `json:"accessPackageId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // CanExtend undocumented
+ CanExtend *bool `json:"canExtend,omitempty"`
+ // DurationInDays undocumented
+ DurationInDays *int `json:"durationInDays,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *string `json:"createdBy,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedBy undocumented
+ ModifiedBy *string `json:"modifiedBy,omitempty"`
+ // ModifiedDateTime undocumented
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // AccessPackage undocumented
+ AccessPackage *AccessPackage `json:"accessPackage,omitempty"`
+ // AccessPackageCatalog undocumented
+ AccessPackageCatalog *AccessPackageCatalog `json:"accessPackageCatalog,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentPolicyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentPolicyRequest.go
new file mode 100644
index 00000000..65f23f37
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentPolicyRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AccessPackageAssignmentPolicyRequestBuilder is request builder for AccessPackageAssignmentPolicy
+type AccessPackageAssignmentPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageAssignmentPolicyRequest
+func (b *AccessPackageAssignmentPolicyRequestBuilder) Request() *AccessPackageAssignmentPolicyRequest {
+ return &AccessPackageAssignmentPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageAssignmentPolicyRequest is request for AccessPackageAssignmentPolicy
+type AccessPackageAssignmentPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageAssignmentPolicy
+func (r *AccessPackageAssignmentPolicyRequest) Get(ctx context.Context) (resObj *AccessPackageAssignmentPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageAssignmentPolicy
+func (r *AccessPackageAssignmentPolicyRequest) Update(ctx context.Context, reqObj *AccessPackageAssignmentPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageAssignmentPolicy
+func (r *AccessPackageAssignmentPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackage is navigation property
+func (b *AccessPackageAssignmentPolicyRequestBuilder) AccessPackage() *AccessPackageRequestBuilder {
+ bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackage"
+ return bb
+}
+
+// AccessPackageCatalog is navigation property
+func (b *AccessPackageAssignmentPolicyRequestBuilder) AccessPackageCatalog() *AccessPackageCatalogRequestBuilder {
+ bb := &AccessPackageCatalogRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageCatalog"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentRequest.go
new file mode 100644
index 00000000..120b0867
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentRequest.go
@@ -0,0 +1,254 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AccessPackageAssignmentRequestBuilder is request builder for AccessPackageAssignment
+type AccessPackageAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageAssignmentRequest
+func (b *AccessPackageAssignmentRequestBuilder) Request() *AccessPackageAssignmentRequest {
+ return &AccessPackageAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageAssignmentRequest is request for AccessPackageAssignment
+type AccessPackageAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageAssignment
+func (r *AccessPackageAssignmentRequest) Get(ctx context.Context) (resObj *AccessPackageAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageAssignment
+func (r *AccessPackageAssignmentRequest) Update(ctx context.Context, reqObj *AccessPackageAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageAssignment
+func (r *AccessPackageAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackage is navigation property
+func (b *AccessPackageAssignmentRequestBuilder) AccessPackage() *AccessPackageRequestBuilder {
+ bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackage"
+ return bb
+}
+
+// AccessPackageAssignmentPolicy is navigation property
+func (b *AccessPackageAssignmentRequestBuilder) AccessPackageAssignmentPolicy() *AccessPackageAssignmentPolicyRequestBuilder {
+ bb := &AccessPackageAssignmentPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentPolicy"
+ return bb
+}
+
+// AccessPackageAssignmentRequests returns request builder for AccessPackageAssignmentRequestObject collection
+func (b *AccessPackageAssignmentRequestBuilder) AccessPackageAssignmentRequests() *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder {
+ bb := &AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentRequests"
+ return bb
+}
+
+// AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder is request builder for AccessPackageAssignmentRequestObject collection
+type AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentRequestObject collection
+func (b *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder) Request() *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest {
+ return &AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentRequestObject item
+func (b *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestObjectRequestBuilder {
+ bb := &AccessPackageAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest is request for AccessPackageAssignmentRequestObject collection
+type AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentRequestObject collection
+func (r *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageAssignmentRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentRequestObject collection
+func (r *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageAssignmentRequestObject collection
+func (r *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentRequestObject) (resObj *AccessPackageAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageAssignmentResourceRoles returns request builder for AccessPackageAssignmentResourceRole collection
+func (b *AccessPackageAssignmentRequestBuilder) AccessPackageAssignmentResourceRoles() *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder {
+ bb := &AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentResourceRoles"
+ return bb
+}
+
+// AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder is request builder for AccessPackageAssignmentResourceRole collection
+type AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentResourceRole collection
+func (b *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder) Request() *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest {
+ return &AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentResourceRole item
+func (b *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentResourceRoleRequestBuilder {
+ bb := &AccessPackageAssignmentResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest is request for AccessPackageAssignmentResourceRole collection
+type AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentResourceRole collection
+func (r *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageAssignmentResourceRole, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentResourceRole
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentResourceRole
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentResourceRole collection
+func (r *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentResourceRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageAssignmentResourceRole collection
+func (r *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentResourceRole) (resObj *AccessPackageAssignmentResourceRole, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Target is navigation property
+func (b *AccessPackageAssignmentRequestBuilder) Target() *AccessPackageSubjectRequestBuilder {
+ bb := &AccessPackageSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/target"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentRequestObjectAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentRequestObjectAction.go
new file mode 100644
index 00000000..8c1edaee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentRequestObjectAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AccessPackageAssignmentRequestObjectCancelRequestParameter undocumented
+type AccessPackageAssignmentRequestObjectCancelRequestParameter struct {
+}
+
+//
+type AccessPackageAssignmentRequestObjectCancelRequestBuilder struct{ BaseRequestBuilder }
+
+// Cancel action undocumented
+func (b *AccessPackageAssignmentRequestObjectRequestBuilder) Cancel(reqObj *AccessPackageAssignmentRequestObjectCancelRequestParameter) *AccessPackageAssignmentRequestObjectCancelRequestBuilder {
+ bb := &AccessPackageAssignmentRequestObjectCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/Cancel"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AccessPackageAssignmentRequestObjectCancelRequest struct{ BaseRequest }
+
+//
+func (b *AccessPackageAssignmentRequestObjectCancelRequestBuilder) Request() *AccessPackageAssignmentRequestObjectCancelRequest {
+ return &AccessPackageAssignmentRequestObjectCancelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AccessPackageAssignmentRequestObjectCancelRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentRequestObjectModel.go
new file mode 100644
index 00000000..57aef4f8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentRequestObjectModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AccessPackageAssignmentRequestObject undocumented
+type AccessPackageAssignmentRequestObject struct {
+ // Entity is the base model of AccessPackageAssignmentRequestObject
+ Entity
+ // RequestType undocumented
+ RequestType *string `json:"requestType,omitempty"`
+ // RequestState undocumented
+ RequestState *string `json:"requestState,omitempty"`
+ // RequestStatus undocumented
+ RequestStatus *string `json:"requestStatus,omitempty"`
+ // IsValidationOnly undocumented
+ IsValidationOnly *bool `json:"isValidationOnly,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // CompletedDate undocumented
+ CompletedDate *time.Time `json:"completedDate,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // Justification undocumented
+ Justification *string `json:"justification,omitempty"`
+ // AccessPackage undocumented
+ AccessPackage *AccessPackage `json:"accessPackage,omitempty"`
+ // AccessPackageAssignment undocumented
+ AccessPackageAssignment *AccessPackageAssignment `json:"accessPackageAssignment,omitempty"`
+ // Requestor undocumented
+ Requestor *AccessPackageSubject `json:"requestor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentRequestObjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentRequestObjectRequest.go
new file mode 100644
index 00000000..e9be8160
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentRequestObjectRequest.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AccessPackageAssignmentRequestObjectRequestBuilder is request builder for AccessPackageAssignmentRequestObject
+type AccessPackageAssignmentRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageAssignmentRequestObjectRequest
+func (b *AccessPackageAssignmentRequestObjectRequestBuilder) Request() *AccessPackageAssignmentRequestObjectRequest {
+ return &AccessPackageAssignmentRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageAssignmentRequestObjectRequest is request for AccessPackageAssignmentRequestObject
+type AccessPackageAssignmentRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageAssignmentRequestObject
+func (r *AccessPackageAssignmentRequestObjectRequest) Get(ctx context.Context) (resObj *AccessPackageAssignmentRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageAssignmentRequestObject
+func (r *AccessPackageAssignmentRequestObjectRequest) Update(ctx context.Context, reqObj *AccessPackageAssignmentRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageAssignmentRequestObject
+func (r *AccessPackageAssignmentRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackage is navigation property
+func (b *AccessPackageAssignmentRequestObjectRequestBuilder) AccessPackage() *AccessPackageRequestBuilder {
+ bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackage"
+ return bb
+}
+
+// AccessPackageAssignment is navigation property
+func (b *AccessPackageAssignmentRequestObjectRequestBuilder) AccessPackageAssignment() *AccessPackageAssignmentRequestBuilder {
+ bb := &AccessPackageAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignment"
+ return bb
+}
+
+// Requestor is navigation property
+func (b *AccessPackageAssignmentRequestObjectRequestBuilder) Requestor() *AccessPackageSubjectRequestBuilder {
+ bb := &AccessPackageSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/requestor"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentResourceRoleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentResourceRoleModel.go
new file mode 100644
index 00000000..bf4cac48
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentResourceRoleModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccessPackageAssignmentResourceRole undocumented
+type AccessPackageAssignmentResourceRole struct {
+ // Entity is the base model of AccessPackageAssignmentResourceRole
+ Entity
+ // OriginID undocumented
+ OriginID *string `json:"originId,omitempty"`
+ // OriginSystem undocumented
+ OriginSystem *string `json:"originSystem,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // AccessPackageResourceScope undocumented
+ AccessPackageResourceScope *AccessPackageResourceScope `json:"accessPackageResourceScope,omitempty"`
+ // AccessPackageResourceRole undocumented
+ AccessPackageResourceRole *AccessPackageResourceRole `json:"accessPackageResourceRole,omitempty"`
+ // AccessPackageSubject undocumented
+ AccessPackageSubject *AccessPackageSubject `json:"accessPackageSubject,omitempty"`
+ // AccessPackageAssignments undocumented
+ AccessPackageAssignments []AccessPackageAssignment `json:"accessPackageAssignments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentResourceRoleRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentResourceRoleRequest.go
new file mode 100644
index 00000000..2fabf959
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageAssignmentResourceRoleRequest.go
@@ -0,0 +1,160 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AccessPackageAssignmentResourceRoleRequestBuilder is request builder for AccessPackageAssignmentResourceRole
+type AccessPackageAssignmentResourceRoleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageAssignmentResourceRoleRequest
+func (b *AccessPackageAssignmentResourceRoleRequestBuilder) Request() *AccessPackageAssignmentResourceRoleRequest {
+ return &AccessPackageAssignmentResourceRoleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageAssignmentResourceRoleRequest is request for AccessPackageAssignmentResourceRole
+type AccessPackageAssignmentResourceRoleRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageAssignmentResourceRole
+func (r *AccessPackageAssignmentResourceRoleRequest) Get(ctx context.Context) (resObj *AccessPackageAssignmentResourceRole, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageAssignmentResourceRole
+func (r *AccessPackageAssignmentResourceRoleRequest) Update(ctx context.Context, reqObj *AccessPackageAssignmentResourceRole) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageAssignmentResourceRole
+func (r *AccessPackageAssignmentResourceRoleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageAssignments returns request builder for AccessPackageAssignment collection
+func (b *AccessPackageAssignmentResourceRoleRequestBuilder) AccessPackageAssignments() *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder {
+ bb := &AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignments"
+ return bb
+}
+
+// AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder is request builder for AccessPackageAssignment collection
+type AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignment collection
+func (b *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder) Request() *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest {
+ return &AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignment item
+func (b *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestBuilder {
+ bb := &AccessPackageAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest is request for AccessPackageAssignment collection
+type AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignment collection
+func (r *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignment collection
+func (r *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageAssignment collection
+func (r *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignment) (resObj *AccessPackageAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResourceRole is navigation property
+func (b *AccessPackageAssignmentResourceRoleRequestBuilder) AccessPackageResourceRole() *AccessPackageResourceRoleRequestBuilder {
+ bb := &AccessPackageResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRole"
+ return bb
+}
+
+// AccessPackageResourceScope is navigation property
+func (b *AccessPackageAssignmentResourceRoleRequestBuilder) AccessPackageResourceScope() *AccessPackageResourceScopeRequestBuilder {
+ bb := &AccessPackageResourceScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceScope"
+ return bb
+}
+
+// AccessPackageSubject is navigation property
+func (b *AccessPackageAssignmentResourceRoleRequestBuilder) AccessPackageSubject() *AccessPackageSubjectRequestBuilder {
+ bb := &AccessPackageSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageSubject"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageCatalogModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageCatalogModel.go
new file mode 100644
index 00000000..c56d718b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageCatalogModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AccessPackageCatalog undocumented
+type AccessPackageCatalog struct {
+ // Entity is the base model of AccessPackageCatalog
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // CatalogType undocumented
+ CatalogType *string `json:"catalogType,omitempty"`
+ // CatalogStatus undocumented
+ CatalogStatus *string `json:"catalogStatus,omitempty"`
+ // IsExternallyVisible undocumented
+ IsExternallyVisible *bool `json:"isExternallyVisible,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *string `json:"createdBy,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedBy undocumented
+ ModifiedBy *string `json:"modifiedBy,omitempty"`
+ // ModifiedDateTime undocumented
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // AccessPackageResources undocumented
+ AccessPackageResources []AccessPackageResource `json:"accessPackageResources,omitempty"`
+ // AccessPackageResourceRoles undocumented
+ AccessPackageResourceRoles []AccessPackageResourceRole `json:"accessPackageResourceRoles,omitempty"`
+ // AccessPackageResourceScopes undocumented
+ AccessPackageResourceScopes []AccessPackageResourceScope `json:"accessPackageResourceScopes,omitempty"`
+ // AccessPackages undocumented
+ AccessPackages []AccessPackage `json:"accessPackages,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageCatalogRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageCatalogRequest.go
new file mode 100644
index 00000000..c0346104
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageCatalogRequest.go
@@ -0,0 +1,421 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AccessPackageCatalogRequestBuilder is request builder for AccessPackageCatalog
+type AccessPackageCatalogRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageCatalogRequest
+func (b *AccessPackageCatalogRequestBuilder) Request() *AccessPackageCatalogRequest {
+ return &AccessPackageCatalogRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageCatalogRequest is request for AccessPackageCatalog
+type AccessPackageCatalogRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageCatalog
+func (r *AccessPackageCatalogRequest) Get(ctx context.Context) (resObj *AccessPackageCatalog, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageCatalog
+func (r *AccessPackageCatalogRequest) Update(ctx context.Context, reqObj *AccessPackageCatalog) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageCatalog
+func (r *AccessPackageCatalogRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageResourceRoles returns request builder for AccessPackageResourceRole collection
+func (b *AccessPackageCatalogRequestBuilder) AccessPackageResourceRoles() *AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder {
+ bb := &AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRoles"
+ return bb
+}
+
+// AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder is request builder for AccessPackageResourceRole collection
+type AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceRole collection
+func (b *AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder) Request() *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest {
+ return &AccessPackageCatalogAccessPackageResourceRolesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceRole item
+func (b *AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleRequestBuilder {
+ bb := &AccessPackageResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageCatalogAccessPackageResourceRolesCollectionRequest is request for AccessPackageResourceRole collection
+type AccessPackageCatalogAccessPackageResourceRolesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceRole collection
+func (r *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResourceRole, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceRole
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceRole
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceRole collection
+func (r *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageResourceRole collection
+func (r *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRole) (resObj *AccessPackageResourceRole, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResourceScopes returns request builder for AccessPackageResourceScope collection
+func (b *AccessPackageCatalogRequestBuilder) AccessPackageResourceScopes() *AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder {
+ bb := &AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceScopes"
+ return bb
+}
+
+// AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder is request builder for AccessPackageResourceScope collection
+type AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceScope collection
+func (b *AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder) Request() *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest {
+ return &AccessPackageCatalogAccessPackageResourceScopesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceScope item
+func (b *AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceScopeRequestBuilder {
+ bb := &AccessPackageResourceScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageCatalogAccessPackageResourceScopesCollectionRequest is request for AccessPackageResourceScope collection
+type AccessPackageCatalogAccessPackageResourceScopesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceScope collection
+func (r *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResourceScope, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceScope
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceScope
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceScope collection
+func (r *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceScope, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageResourceScope collection
+func (r *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceScope) (resObj *AccessPackageResourceScope, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResources returns request builder for AccessPackageResource collection
+func (b *AccessPackageCatalogRequestBuilder) AccessPackageResources() *AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder {
+ bb := &AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResources"
+ return bb
+}
+
+// AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder is request builder for AccessPackageResource collection
+type AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResource collection
+func (b *AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder) Request() *AccessPackageCatalogAccessPackageResourcesCollectionRequest {
+ return &AccessPackageCatalogAccessPackageResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResource item
+func (b *AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRequestBuilder {
+ bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageCatalogAccessPackageResourcesCollectionRequest is request for AccessPackageResource collection
+type AccessPackageCatalogAccessPackageResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResource collection
+func (r *AccessPackageCatalogAccessPackageResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResource collection
+func (r *AccessPackageCatalogAccessPackageResourcesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageResource collection
+func (r *AccessPackageCatalogAccessPackageResourcesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResource) (resObj *AccessPackageResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackages returns request builder for AccessPackage collection
+func (b *AccessPackageCatalogRequestBuilder) AccessPackages() *AccessPackageCatalogAccessPackagesCollectionRequestBuilder {
+ bb := &AccessPackageCatalogAccessPackagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackages"
+ return bb
+}
+
+// AccessPackageCatalogAccessPackagesCollectionRequestBuilder is request builder for AccessPackage collection
+type AccessPackageCatalogAccessPackagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackage collection
+func (b *AccessPackageCatalogAccessPackagesCollectionRequestBuilder) Request() *AccessPackageCatalogAccessPackagesCollectionRequest {
+ return &AccessPackageCatalogAccessPackagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackage item
+func (b *AccessPackageCatalogAccessPackagesCollectionRequestBuilder) ID(id string) *AccessPackageRequestBuilder {
+ bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageCatalogAccessPackagesCollectionRequest is request for AccessPackage collection
+type AccessPackageCatalogAccessPackagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackage collection
+func (r *AccessPackageCatalogAccessPackagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackage collection
+func (r *AccessPackageCatalogAccessPackagesCollectionRequest) Get(ctx context.Context) ([]AccessPackage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackage collection
+func (r *AccessPackageCatalogAccessPackagesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackage) (resObj *AccessPackage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageModel.go
new file mode 100644
index 00000000..7164d2a1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AccessPackage undocumented
+type AccessPackage struct {
+ // Entity is the base model of AccessPackage
+ Entity
+ // CatalogID undocumented
+ CatalogID *string `json:"catalogId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // IsHidden undocumented
+ IsHidden *bool `json:"isHidden,omitempty"`
+ // IsRoleScopesVisible undocumented
+ IsRoleScopesVisible *bool `json:"isRoleScopesVisible,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *string `json:"createdBy,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedBy undocumented
+ ModifiedBy *string `json:"modifiedBy,omitempty"`
+ // ModifiedDateTime undocumented
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // AccessPackageCatalog undocumented
+ AccessPackageCatalog *AccessPackageCatalog `json:"accessPackageCatalog,omitempty"`
+ // AccessPackageResourceRoleScopes undocumented
+ AccessPackageResourceRoleScopes []AccessPackageResourceRoleScope `json:"accessPackageResourceRoleScopes,omitempty"`
+ // AccessPackageAssignmentPolicies undocumented
+ AccessPackageAssignmentPolicies []AccessPackageAssignmentPolicy `json:"accessPackageAssignmentPolicies,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageRequest.go
new file mode 100644
index 00000000..85580b36
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageRequest.go
@@ -0,0 +1,240 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AccessPackageRequestBuilder is request builder for AccessPackage
+type AccessPackageRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageRequest
+func (b *AccessPackageRequestBuilder) Request() *AccessPackageRequest {
+ return &AccessPackageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageRequest is request for AccessPackage
+type AccessPackageRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackage
+func (r *AccessPackageRequest) Get(ctx context.Context) (resObj *AccessPackage, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackage
+func (r *AccessPackageRequest) Update(ctx context.Context, reqObj *AccessPackage) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackage
+func (r *AccessPackageRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageAssignmentPolicies returns request builder for AccessPackageAssignmentPolicy collection
+func (b *AccessPackageRequestBuilder) AccessPackageAssignmentPolicies() *AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder {
+ bb := &AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentPolicies"
+ return bb
+}
+
+// AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder is request builder for AccessPackageAssignmentPolicy collection
+type AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentPolicy collection
+func (b *AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder) Request() *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest {
+ return &AccessPackageAccessPackageAssignmentPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentPolicy item
+func (b *AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentPolicyRequestBuilder {
+ bb := &AccessPackageAssignmentPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageAccessPackageAssignmentPoliciesCollectionRequest is request for AccessPackageAssignmentPolicy collection
+type AccessPackageAccessPackageAssignmentPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentPolicy collection
+func (r *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageAssignmentPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentPolicy collection
+func (r *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageAssignmentPolicy collection
+func (r *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentPolicy) (resObj *AccessPackageAssignmentPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageCatalog is navigation property
+func (b *AccessPackageRequestBuilder) AccessPackageCatalog() *AccessPackageCatalogRequestBuilder {
+ bb := &AccessPackageCatalogRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageCatalog"
+ return bb
+}
+
+// AccessPackageResourceRoleScopes returns request builder for AccessPackageResourceRoleScope collection
+func (b *AccessPackageRequestBuilder) AccessPackageResourceRoleScopes() *AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder {
+ bb := &AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRoleScopes"
+ return bb
+}
+
+// AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder is request builder for AccessPackageResourceRoleScope collection
+type AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceRoleScope collection
+func (b *AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder) Request() *AccessPackageAccessPackageResourceRoleScopesCollectionRequest {
+ return &AccessPackageAccessPackageResourceRoleScopesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceRoleScope item
+func (b *AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleScopeRequestBuilder {
+ bb := &AccessPackageResourceRoleScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageAccessPackageResourceRoleScopesCollectionRequest is request for AccessPackageResourceRoleScope collection
+type AccessPackageAccessPackageResourceRoleScopesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceRoleScope collection
+func (r *AccessPackageAccessPackageResourceRoleScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResourceRoleScope, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceRoleScope
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceRoleScope
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceRoleScope collection
+func (r *AccessPackageAccessPackageResourceRoleScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRoleScope, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageResourceRoleScope collection
+func (r *AccessPackageAccessPackageResourceRoleScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRoleScope) (resObj *AccessPackageResourceRoleScope, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceModel.go
new file mode 100644
index 00000000..dcd9fb10
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AccessPackageResource undocumented
+type AccessPackageResource struct {
+ // Entity is the base model of AccessPackageResource
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+ // ResourceType undocumented
+ ResourceType *string `json:"resourceType,omitempty"`
+ // OriginID undocumented
+ OriginID *string `json:"originId,omitempty"`
+ // OriginSystem undocumented
+ OriginSystem *string `json:"originSystem,omitempty"`
+ // IsPendingOnboarding undocumented
+ IsPendingOnboarding *bool `json:"isPendingOnboarding,omitempty"`
+ // AddedBy undocumented
+ AddedBy *string `json:"addedBy,omitempty"`
+ // AddedOn undocumented
+ AddedOn *time.Time `json:"addedOn,omitempty"`
+ // AccessPackageResourceScopes undocumented
+ AccessPackageResourceScopes []AccessPackageResourceScope `json:"accessPackageResourceScopes,omitempty"`
+ // AccessPackageResourceRoles undocumented
+ AccessPackageResourceRoles []AccessPackageResourceRole `json:"accessPackageResourceRoles,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRequest.go
new file mode 100644
index 00000000..bafa3a7b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AccessPackageResourceRequestBuilder is request builder for AccessPackageResource
+type AccessPackageResourceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageResourceRequest
+func (b *AccessPackageResourceRequestBuilder) Request() *AccessPackageResourceRequest {
+ return &AccessPackageResourceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageResourceRequest is request for AccessPackageResource
+type AccessPackageResourceRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageResource
+func (r *AccessPackageResourceRequest) Get(ctx context.Context) (resObj *AccessPackageResource, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageResource
+func (r *AccessPackageResourceRequest) Update(ctx context.Context, reqObj *AccessPackageResource) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageResource
+func (r *AccessPackageResourceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageResourceRoles returns request builder for AccessPackageResourceRole collection
+func (b *AccessPackageResourceRequestBuilder) AccessPackageResourceRoles() *AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder {
+ bb := &AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRoles"
+ return bb
+}
+
+// AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder is request builder for AccessPackageResourceRole collection
+type AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceRole collection
+func (b *AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder) Request() *AccessPackageResourceAccessPackageResourceRolesCollectionRequest {
+ return &AccessPackageResourceAccessPackageResourceRolesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceRole item
+func (b *AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleRequestBuilder {
+ bb := &AccessPackageResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageResourceAccessPackageResourceRolesCollectionRequest is request for AccessPackageResourceRole collection
+type AccessPackageResourceAccessPackageResourceRolesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceRole collection
+func (r *AccessPackageResourceAccessPackageResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResourceRole, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceRole
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceRole
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceRole collection
+func (r *AccessPackageResourceAccessPackageResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageResourceRole collection
+func (r *AccessPackageResourceAccessPackageResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRole) (resObj *AccessPackageResourceRole, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResourceScopes returns request builder for AccessPackageResourceScope collection
+func (b *AccessPackageResourceRequestBuilder) AccessPackageResourceScopes() *AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder {
+ bb := &AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceScopes"
+ return bb
+}
+
+// AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder is request builder for AccessPackageResourceScope collection
+type AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceScope collection
+func (b *AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder) Request() *AccessPackageResourceAccessPackageResourceScopesCollectionRequest {
+ return &AccessPackageResourceAccessPackageResourceScopesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceScope item
+func (b *AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceScopeRequestBuilder {
+ bb := &AccessPackageResourceScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageResourceAccessPackageResourceScopesCollectionRequest is request for AccessPackageResourceScope collection
+type AccessPackageResourceAccessPackageResourceScopesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceScope collection
+func (r *AccessPackageResourceAccessPackageResourceScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResourceScope, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceScope
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceScope
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceScope collection
+func (r *AccessPackageResourceAccessPackageResourceScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceScope, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageResourceScope collection
+func (r *AccessPackageResourceAccessPackageResourceScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceScope) (resObj *AccessPackageResourceScope, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRequestObjectModel.go
new file mode 100644
index 00000000..8f2fa971
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRequestObjectModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AccessPackageResourceRequestObject undocumented
+type AccessPackageResourceRequestObject struct {
+ // Entity is the base model of AccessPackageResourceRequestObject
+ Entity
+ // CatalogID undocumented
+ CatalogID *string `json:"catalogId,omitempty"`
+ // ExecuteImmediately undocumented
+ ExecuteImmediately *bool `json:"executeImmediately,omitempty"`
+ // IsValidationOnly undocumented
+ IsValidationOnly *bool `json:"isValidationOnly,omitempty"`
+ // RequestType undocumented
+ RequestType *string `json:"requestType,omitempty"`
+ // RequestState undocumented
+ RequestState *string `json:"requestState,omitempty"`
+ // RequestStatus undocumented
+ RequestStatus *string `json:"requestStatus,omitempty"`
+ // Justification undocumented
+ Justification *string `json:"justification,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // AccessPackageResource undocumented
+ AccessPackageResource *AccessPackageResource `json:"accessPackageResource,omitempty"`
+ // Requestor undocumented
+ Requestor *AccessPackageSubject `json:"requestor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRequestObjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRequestObjectRequest.go
new file mode 100644
index 00000000..20c75bae
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRequestObjectRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AccessPackageResourceRequestObjectRequestBuilder is request builder for AccessPackageResourceRequestObject
+type AccessPackageResourceRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageResourceRequestObjectRequest
+func (b *AccessPackageResourceRequestObjectRequestBuilder) Request() *AccessPackageResourceRequestObjectRequest {
+ return &AccessPackageResourceRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageResourceRequestObjectRequest is request for AccessPackageResourceRequestObject
+type AccessPackageResourceRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageResourceRequestObject
+func (r *AccessPackageResourceRequestObjectRequest) Get(ctx context.Context) (resObj *AccessPackageResourceRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageResourceRequestObject
+func (r *AccessPackageResourceRequestObjectRequest) Update(ctx context.Context, reqObj *AccessPackageResourceRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageResourceRequestObject
+func (r *AccessPackageResourceRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageResource is navigation property
+func (b *AccessPackageResourceRequestObjectRequestBuilder) AccessPackageResource() *AccessPackageResourceRequestBuilder {
+ bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResource"
+ return bb
+}
+
+// Requestor is navigation property
+func (b *AccessPackageResourceRequestObjectRequestBuilder) Requestor() *AccessPackageSubjectRequestBuilder {
+ bb := &AccessPackageSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/requestor"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRoleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRoleModel.go
new file mode 100644
index 00000000..eebdd213
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRoleModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccessPackageResourceRole undocumented
+type AccessPackageResourceRole struct {
+ // Entity is the base model of AccessPackageResourceRole
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // OriginID undocumented
+ OriginID *string `json:"originId,omitempty"`
+ // OriginSystem undocumented
+ OriginSystem *string `json:"originSystem,omitempty"`
+ // AccessPackageResource undocumented
+ AccessPackageResource *AccessPackageResource `json:"accessPackageResource,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRoleRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRoleRequest.go
new file mode 100644
index 00000000..65a6bf90
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRoleRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AccessPackageResourceRoleRequestBuilder is request builder for AccessPackageResourceRole
+type AccessPackageResourceRoleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageResourceRoleRequest
+func (b *AccessPackageResourceRoleRequestBuilder) Request() *AccessPackageResourceRoleRequest {
+ return &AccessPackageResourceRoleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageResourceRoleRequest is request for AccessPackageResourceRole
+type AccessPackageResourceRoleRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageResourceRole
+func (r *AccessPackageResourceRoleRequest) Get(ctx context.Context) (resObj *AccessPackageResourceRole, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageResourceRole
+func (r *AccessPackageResourceRoleRequest) Update(ctx context.Context, reqObj *AccessPackageResourceRole) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageResourceRole
+func (r *AccessPackageResourceRoleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageResource is navigation property
+func (b *AccessPackageResourceRoleRequestBuilder) AccessPackageResource() *AccessPackageResourceRequestBuilder {
+ bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResource"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRoleScopeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRoleScopeModel.go
new file mode 100644
index 00000000..7da8949e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRoleScopeModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AccessPackageResourceRoleScope undocumented
+type AccessPackageResourceRoleScope struct {
+ // Entity is the base model of AccessPackageResourceRoleScope
+ Entity
+ // CreatedBy undocumented
+ CreatedBy *string `json:"createdBy,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedBy undocumented
+ ModifiedBy *string `json:"modifiedBy,omitempty"`
+ // ModifiedDateTime undocumented
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // AccessPackageResourceRole undocumented
+ AccessPackageResourceRole *AccessPackageResourceRole `json:"accessPackageResourceRole,omitempty"`
+ // AccessPackageResourceScope undocumented
+ AccessPackageResourceScope *AccessPackageResourceScope `json:"accessPackageResourceScope,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRoleScopeRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRoleScopeRequest.go
new file mode 100644
index 00000000..583e5027
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceRoleScopeRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AccessPackageResourceRoleScopeRequestBuilder is request builder for AccessPackageResourceRoleScope
+type AccessPackageResourceRoleScopeRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageResourceRoleScopeRequest
+func (b *AccessPackageResourceRoleScopeRequestBuilder) Request() *AccessPackageResourceRoleScopeRequest {
+ return &AccessPackageResourceRoleScopeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageResourceRoleScopeRequest is request for AccessPackageResourceRoleScope
+type AccessPackageResourceRoleScopeRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageResourceRoleScope
+func (r *AccessPackageResourceRoleScopeRequest) Get(ctx context.Context) (resObj *AccessPackageResourceRoleScope, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageResourceRoleScope
+func (r *AccessPackageResourceRoleScopeRequest) Update(ctx context.Context, reqObj *AccessPackageResourceRoleScope) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageResourceRoleScope
+func (r *AccessPackageResourceRoleScopeRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageResourceRole is navigation property
+func (b *AccessPackageResourceRoleScopeRequestBuilder) AccessPackageResourceRole() *AccessPackageResourceRoleRequestBuilder {
+ bb := &AccessPackageResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRole"
+ return bb
+}
+
+// AccessPackageResourceScope is navigation property
+func (b *AccessPackageResourceRoleScopeRequestBuilder) AccessPackageResourceScope() *AccessPackageResourceScopeRequestBuilder {
+ bb := &AccessPackageResourceScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceScope"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceScopeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceScopeModel.go
new file mode 100644
index 00000000..e7067bb9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceScopeModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccessPackageResourceScope undocumented
+type AccessPackageResourceScope struct {
+ // Entity is the base model of AccessPackageResourceScope
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // OriginID undocumented
+ OriginID *string `json:"originId,omitempty"`
+ // OriginSystem undocumented
+ OriginSystem *string `json:"originSystem,omitempty"`
+ // RoleOriginID undocumented
+ RoleOriginID *string `json:"roleOriginId,omitempty"`
+ // IsRootScope undocumented
+ IsRootScope *bool `json:"isRootScope,omitempty"`
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+ // AccessPackageResource undocumented
+ AccessPackageResource *AccessPackageResource `json:"accessPackageResource,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceScopeRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceScopeRequest.go
new file mode 100644
index 00000000..6ca35647
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageResourceScopeRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AccessPackageResourceScopeRequestBuilder is request builder for AccessPackageResourceScope
+type AccessPackageResourceScopeRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageResourceScopeRequest
+func (b *AccessPackageResourceScopeRequestBuilder) Request() *AccessPackageResourceScopeRequest {
+ return &AccessPackageResourceScopeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageResourceScopeRequest is request for AccessPackageResourceScope
+type AccessPackageResourceScopeRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageResourceScope
+func (r *AccessPackageResourceScopeRequest) Get(ctx context.Context) (resObj *AccessPackageResourceScope, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageResourceScope
+func (r *AccessPackageResourceScopeRequest) Update(ctx context.Context, reqObj *AccessPackageResourceScope) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageResourceScope
+func (r *AccessPackageResourceScopeRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageResource is navigation property
+func (b *AccessPackageResourceScopeRequestBuilder) AccessPackageResource() *AccessPackageResourceRequestBuilder {
+ bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResource"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageSubjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageSubjectModel.go
new file mode 100644
index 00000000..2b55bc3b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageSubjectModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccessPackageSubject undocumented
+type AccessPackageSubject struct {
+ // Entity is the base model of AccessPackageSubject
+ Entity
+ // ObjectID undocumented
+ ObjectID *string `json:"objectId,omitempty"`
+ // AltSecID undocumented
+ AltSecID *string `json:"altSecId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // PrincipalName undocumented
+ PrincipalName *string `json:"principalName,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // OnPremisesSecurityIdentifier undocumented
+ OnPremisesSecurityIdentifier *string `json:"onPremisesSecurityIdentifier,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageSubjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageSubjectRequest.go
new file mode 100644
index 00000000..b1507ab1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessPackageSubjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AccessPackageSubjectRequestBuilder is request builder for AccessPackageSubject
+type AccessPackageSubjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageSubjectRequest
+func (b *AccessPackageSubjectRequestBuilder) Request() *AccessPackageSubjectRequest {
+ return &AccessPackageSubjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageSubjectRequest is request for AccessPackageSubject
+type AccessPackageSubjectRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageSubject
+func (r *AccessPackageSubjectRequest) Get(ctx context.Context) (resObj *AccessPackageSubject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageSubject
+func (r *AccessPackageSubjectRequest) Update(ctx context.Context, reqObj *AccessPackageSubject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageSubject
+func (r *AccessPackageSubjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewAction.go
new file mode 100644
index 00000000..fac16218
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewAction.go
@@ -0,0 +1,125 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AccessReviewStopRequestParameter undocumented
+type AccessReviewStopRequestParameter struct {
+}
+
+// AccessReviewSendReminderRequestParameter undocumented
+type AccessReviewSendReminderRequestParameter struct {
+}
+
+// AccessReviewResetDecisionsRequestParameter undocumented
+type AccessReviewResetDecisionsRequestParameter struct {
+}
+
+// AccessReviewApplyDecisionsRequestParameter undocumented
+type AccessReviewApplyDecisionsRequestParameter struct {
+}
+
+//
+type AccessReviewStopRequestBuilder struct{ BaseRequestBuilder }
+
+// Stop action undocumented
+func (b *AccessReviewRequestBuilder) Stop(reqObj *AccessReviewStopRequestParameter) *AccessReviewStopRequestBuilder {
+ bb := &AccessReviewStopRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/stop"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AccessReviewStopRequest struct{ BaseRequest }
+
+//
+func (b *AccessReviewStopRequestBuilder) Request() *AccessReviewStopRequest {
+ return &AccessReviewStopRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AccessReviewStopRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AccessReviewSendReminderRequestBuilder struct{ BaseRequestBuilder }
+
+// SendReminder action undocumented
+func (b *AccessReviewRequestBuilder) SendReminder(reqObj *AccessReviewSendReminderRequestParameter) *AccessReviewSendReminderRequestBuilder {
+ bb := &AccessReviewSendReminderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sendReminder"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AccessReviewSendReminderRequest struct{ BaseRequest }
+
+//
+func (b *AccessReviewSendReminderRequestBuilder) Request() *AccessReviewSendReminderRequest {
+ return &AccessReviewSendReminderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AccessReviewSendReminderRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AccessReviewResetDecisionsRequestBuilder struct{ BaseRequestBuilder }
+
+// ResetDecisions action undocumented
+func (b *AccessReviewRequestBuilder) ResetDecisions(reqObj *AccessReviewResetDecisionsRequestParameter) *AccessReviewResetDecisionsRequestBuilder {
+ bb := &AccessReviewResetDecisionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/resetDecisions"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AccessReviewResetDecisionsRequest struct{ BaseRequest }
+
+//
+func (b *AccessReviewResetDecisionsRequestBuilder) Request() *AccessReviewResetDecisionsRequest {
+ return &AccessReviewResetDecisionsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AccessReviewResetDecisionsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AccessReviewApplyDecisionsRequestBuilder struct{ BaseRequestBuilder }
+
+// ApplyDecisions action undocumented
+func (b *AccessReviewRequestBuilder) ApplyDecisions(reqObj *AccessReviewApplyDecisionsRequestParameter) *AccessReviewApplyDecisionsRequestBuilder {
+ bb := &AccessReviewApplyDecisionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/applyDecisions"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AccessReviewApplyDecisionsRequest struct{ BaseRequest }
+
+//
+func (b *AccessReviewApplyDecisionsRequestBuilder) Request() *AccessReviewApplyDecisionsRequest {
+ return &AccessReviewApplyDecisionsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AccessReviewApplyDecisionsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewDecisionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewDecisionModel.go
new file mode 100644
index 00000000..5f8f8045
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewDecisionModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AccessReviewDecision undocumented
+type AccessReviewDecision struct {
+ // Entity is the base model of AccessReviewDecision
+ Entity
+ // AccessReviewID undocumented
+ AccessReviewID *string `json:"accessReviewId,omitempty"`
+ // ReviewedBy undocumented
+ ReviewedBy *UserIdentity `json:"reviewedBy,omitempty"`
+ // ReviewedDateTime undocumented
+ ReviewedDateTime *time.Time `json:"reviewedDateTime,omitempty"`
+ // ReviewResult undocumented
+ ReviewResult *string `json:"reviewResult,omitempty"`
+ // Justification undocumented
+ Justification *string `json:"justification,omitempty"`
+ // AppliedBy undocumented
+ AppliedBy *UserIdentity `json:"appliedBy,omitempty"`
+ // AppliedDateTime undocumented
+ AppliedDateTime *time.Time `json:"appliedDateTime,omitempty"`
+ // ApplyResult undocumented
+ ApplyResult *string `json:"applyResult,omitempty"`
+ // AccessRecommendation undocumented
+ AccessRecommendation *string `json:"accessRecommendation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewDecisionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewDecisionRequest.go
new file mode 100644
index 00000000..df3309c5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewDecisionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AccessReviewDecisionRequestBuilder is request builder for AccessReviewDecision
+type AccessReviewDecisionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessReviewDecisionRequest
+func (b *AccessReviewDecisionRequestBuilder) Request() *AccessReviewDecisionRequest {
+ return &AccessReviewDecisionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessReviewDecisionRequest is request for AccessReviewDecision
+type AccessReviewDecisionRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessReviewDecision
+func (r *AccessReviewDecisionRequest) Get(ctx context.Context) (resObj *AccessReviewDecision, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessReviewDecision
+func (r *AccessReviewDecisionRequest) Update(ctx context.Context, reqObj *AccessReviewDecision) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessReviewDecision
+func (r *AccessReviewDecisionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewModel.go
new file mode 100644
index 00000000..0c19d40c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AccessReview undocumented
+type AccessReview struct {
+ // Entity is the base model of AccessReview
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *UserIdentity `json:"createdBy,omitempty"`
+ // BusinessFlowTemplateID undocumented
+ BusinessFlowTemplateID *string `json:"businessFlowTemplateId,omitempty"`
+ // ReviewerType undocumented
+ ReviewerType *string `json:"reviewerType,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Settings undocumented
+ Settings *AccessReviewSettings `json:"settings,omitempty"`
+ // ReviewedEntity undocumented
+ ReviewedEntity *Identity `json:"reviewedEntity,omitempty"`
+ // Reviewers undocumented
+ Reviewers []AccessReviewReviewer `json:"reviewers,omitempty"`
+ // Decisions undocumented
+ Decisions []AccessReviewDecision `json:"decisions,omitempty"`
+ // MyDecisions undocumented
+ MyDecisions []AccessReviewDecision `json:"myDecisions,omitempty"`
+ // Instances undocumented
+ Instances []AccessReview `json:"instances,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewRecurrenceSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewRecurrenceSettingsModel.go
new file mode 100644
index 00000000..a7663fac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewRecurrenceSettingsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccessReviewRecurrenceSettings undocumented
+type AccessReviewRecurrenceSettings struct {
+ // Object is the base model of AccessReviewRecurrenceSettings
+ Object
+ // RecurrenceType undocumented
+ RecurrenceType *string `json:"recurrenceType,omitempty"`
+ // RecurrenceEndType undocumented
+ RecurrenceEndType *string `json:"recurrenceEndType,omitempty"`
+ // DurationInDays undocumented
+ DurationInDays *int `json:"durationInDays,omitempty"`
+ // RecurrenceCount undocumented
+ RecurrenceCount *int `json:"recurrenceCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewRequest.go
new file mode 100644
index 00000000..8faa9672
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewRequest.go
@@ -0,0 +1,421 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AccessReviewRequestBuilder is request builder for AccessReview
+type AccessReviewRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessReviewRequest
+func (b *AccessReviewRequestBuilder) Request() *AccessReviewRequest {
+ return &AccessReviewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessReviewRequest is request for AccessReview
+type AccessReviewRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessReview
+func (r *AccessReviewRequest) Get(ctx context.Context) (resObj *AccessReview, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessReview
+func (r *AccessReviewRequest) Update(ctx context.Context, reqObj *AccessReview) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessReview
+func (r *AccessReviewRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Decisions returns request builder for AccessReviewDecision collection
+func (b *AccessReviewRequestBuilder) Decisions() *AccessReviewDecisionsCollectionRequestBuilder {
+ bb := &AccessReviewDecisionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/decisions"
+ return bb
+}
+
+// AccessReviewDecisionsCollectionRequestBuilder is request builder for AccessReviewDecision collection
+type AccessReviewDecisionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessReviewDecision collection
+func (b *AccessReviewDecisionsCollectionRequestBuilder) Request() *AccessReviewDecisionsCollectionRequest {
+ return &AccessReviewDecisionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessReviewDecision item
+func (b *AccessReviewDecisionsCollectionRequestBuilder) ID(id string) *AccessReviewDecisionRequestBuilder {
+ bb := &AccessReviewDecisionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessReviewDecisionsCollectionRequest is request for AccessReviewDecision collection
+type AccessReviewDecisionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessReviewDecision collection
+func (r *AccessReviewDecisionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessReviewDecision, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessReviewDecision
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessReviewDecision
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessReviewDecision collection
+func (r *AccessReviewDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessReviewDecision collection
+func (r *AccessReviewDecisionsCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewDecision) (resObj *AccessReviewDecision, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Instances returns request builder for AccessReview collection
+func (b *AccessReviewRequestBuilder) Instances() *AccessReviewInstancesCollectionRequestBuilder {
+ bb := &AccessReviewInstancesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/instances"
+ return bb
+}
+
+// AccessReviewInstancesCollectionRequestBuilder is request builder for AccessReview collection
+type AccessReviewInstancesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessReview collection
+func (b *AccessReviewInstancesCollectionRequestBuilder) Request() *AccessReviewInstancesCollectionRequest {
+ return &AccessReviewInstancesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessReview item
+func (b *AccessReviewInstancesCollectionRequestBuilder) ID(id string) *AccessReviewRequestBuilder {
+ bb := &AccessReviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessReviewInstancesCollectionRequest is request for AccessReview collection
+type AccessReviewInstancesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessReview collection
+func (r *AccessReviewInstancesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessReview, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessReview
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessReview
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessReview collection
+func (r *AccessReviewInstancesCollectionRequest) Get(ctx context.Context) ([]AccessReview, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessReview collection
+func (r *AccessReviewInstancesCollectionRequest) Add(ctx context.Context, reqObj *AccessReview) (resObj *AccessReview, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MyDecisions returns request builder for AccessReviewDecision collection
+func (b *AccessReviewRequestBuilder) MyDecisions() *AccessReviewMyDecisionsCollectionRequestBuilder {
+ bb := &AccessReviewMyDecisionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/myDecisions"
+ return bb
+}
+
+// AccessReviewMyDecisionsCollectionRequestBuilder is request builder for AccessReviewDecision collection
+type AccessReviewMyDecisionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessReviewDecision collection
+func (b *AccessReviewMyDecisionsCollectionRequestBuilder) Request() *AccessReviewMyDecisionsCollectionRequest {
+ return &AccessReviewMyDecisionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessReviewDecision item
+func (b *AccessReviewMyDecisionsCollectionRequestBuilder) ID(id string) *AccessReviewDecisionRequestBuilder {
+ bb := &AccessReviewDecisionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessReviewMyDecisionsCollectionRequest is request for AccessReviewDecision collection
+type AccessReviewMyDecisionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessReviewDecision collection
+func (r *AccessReviewMyDecisionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessReviewDecision, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessReviewDecision
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessReviewDecision
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessReviewDecision collection
+func (r *AccessReviewMyDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessReviewDecision collection
+func (r *AccessReviewMyDecisionsCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewDecision) (resObj *AccessReviewDecision, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Reviewers returns request builder for AccessReviewReviewer collection
+func (b *AccessReviewRequestBuilder) Reviewers() *AccessReviewReviewersCollectionRequestBuilder {
+ bb := &AccessReviewReviewersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/reviewers"
+ return bb
+}
+
+// AccessReviewReviewersCollectionRequestBuilder is request builder for AccessReviewReviewer collection
+type AccessReviewReviewersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessReviewReviewer collection
+func (b *AccessReviewReviewersCollectionRequestBuilder) Request() *AccessReviewReviewersCollectionRequest {
+ return &AccessReviewReviewersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessReviewReviewer item
+func (b *AccessReviewReviewersCollectionRequestBuilder) ID(id string) *AccessReviewReviewerRequestBuilder {
+ bb := &AccessReviewReviewerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessReviewReviewersCollectionRequest is request for AccessReviewReviewer collection
+type AccessReviewReviewersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessReviewReviewer collection
+func (r *AccessReviewReviewersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessReviewReviewer, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessReviewReviewer
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessReviewReviewer
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessReviewReviewer collection
+func (r *AccessReviewReviewersCollectionRequest) Get(ctx context.Context) ([]AccessReviewReviewer, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessReviewReviewer collection
+func (r *AccessReviewReviewersCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewReviewer) (resObj *AccessReviewReviewer, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewReviewerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewReviewerModel.go
new file mode 100644
index 00000000..e461bb63
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewReviewerModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccessReviewReviewer undocumented
+type AccessReviewReviewer struct {
+ // Entity is the base model of AccessReviewReviewer
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewReviewerRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewReviewerRequest.go
new file mode 100644
index 00000000..a98827ed
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewReviewerRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AccessReviewReviewerRequestBuilder is request builder for AccessReviewReviewer
+type AccessReviewReviewerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessReviewReviewerRequest
+func (b *AccessReviewReviewerRequestBuilder) Request() *AccessReviewReviewerRequest {
+ return &AccessReviewReviewerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessReviewReviewerRequest is request for AccessReviewReviewer
+type AccessReviewReviewerRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessReviewReviewer
+func (r *AccessReviewReviewerRequest) Get(ctx context.Context) (resObj *AccessReviewReviewer, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessReviewReviewer
+func (r *AccessReviewReviewerRequest) Update(ctx context.Context, reqObj *AccessReviewReviewer) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessReviewReviewer
+func (r *AccessReviewReviewerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewSettingsModel.go
new file mode 100644
index 00000000..ac42c59a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessReviewSettingsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccessReviewSettings undocumented
+type AccessReviewSettings struct {
+ // Object is the base model of AccessReviewSettings
+ Object
+ // MailNotificationsEnabled undocumented
+ MailNotificationsEnabled *bool `json:"mailNotificationsEnabled,omitempty"`
+ // RemindersEnabled undocumented
+ RemindersEnabled *bool `json:"remindersEnabled,omitempty"`
+ // JustificationRequiredOnApproval undocumented
+ JustificationRequiredOnApproval *bool `json:"justificationRequiredOnApproval,omitempty"`
+ // RecurrenceSettings undocumented
+ RecurrenceSettings *AccessReviewRecurrenceSettings `json:"recurrenceSettings,omitempty"`
+ // AutoReviewEnabled undocumented
+ AutoReviewEnabled *bool `json:"autoReviewEnabled,omitempty"`
+ // ActivityDurationInDays undocumented
+ ActivityDurationInDays *int `json:"activityDurationInDays,omitempty"`
+ // AutoReviewSettings undocumented
+ AutoReviewSettings *AutoReviewSettings `json:"autoReviewSettings,omitempty"`
+ // AutoApplyReviewResultsEnabled undocumented
+ AutoApplyReviewResultsEnabled *bool `json:"autoApplyReviewResultsEnabled,omitempty"`
+ // AccessRecommendationsEnabled undocumented
+ AccessRecommendationsEnabled *bool `json:"accessRecommendationsEnabled,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessScopeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessScopeEnum.go
new file mode 100644
index 00000000..39e7e972
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessScopeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccessScope undocumented
+type AccessScope int
+
+const (
+ // AccessScopeVInOrganization undocumented
+ AccessScopeVInOrganization AccessScope = 0
+ // AccessScopeVNotInOrganization undocumented
+ AccessScopeVNotInOrganization AccessScope = 1
+)
+
+// AccessScopePInOrganization returns a pointer to AccessScopeVInOrganization
+func AccessScopePInOrganization() *AccessScope {
+ v := AccessScopeVInOrganization
+ return &v
+}
+
+// AccessScopePNotInOrganization returns a pointer to AccessScopeVNotInOrganization
+func AccessScopePNotInOrganization() *AccessScope {
+ v := AccessScopeVNotInOrganization
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccessTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccessTypeEnum.go
new file mode 100644
index 00000000..7095434b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccessTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccessType undocumented
+type AccessType int
+
+const (
+ // AccessTypeVGrant undocumented
+ AccessTypeVGrant AccessType = 1
+ // AccessTypeVDeny undocumented
+ AccessTypeVDeny AccessType = 2
+)
+
+// AccessTypePGrant returns a pointer to AccessTypeVGrant
+func AccessTypePGrant() *AccessType {
+ v := AccessTypeVGrant
+ return &v
+}
+
+// AccessTypePDeny returns a pointer to AccessTypeVDeny
+func AccessTypePDeny() *AccessType {
+ v := AccessTypeVDeny
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccountAliasModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccountAliasModel.go
new file mode 100644
index 00000000..93061477
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccountAliasModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccountAlias undocumented
+type AccountAlias struct {
+ // Object is the base model of AccountAlias
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // IDType undocumented
+ IDType *string `json:"idType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccountModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccountModel.go
new file mode 100644
index 00000000..535a6e27
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccountModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Account undocumented
+type Account struct {
+ // Entity is the base model of Account
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Category undocumented
+ Category *string `json:"category,omitempty"`
+ // SubCategory undocumented
+ SubCategory *string `json:"subCategory,omitempty"`
+ // Blocked undocumented
+ Blocked *bool `json:"blocked,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccountRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccountRequest.go
new file mode 100644
index 00000000..8dcf76f6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccountRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AccountRequestBuilder is request builder for Account
+type AccountRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccountRequest
+func (b *AccountRequestBuilder) Request() *AccountRequest {
+ return &AccountRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccountRequest is request for Account
+type AccountRequest struct{ BaseRequest }
+
+// Get performs GET request for Account
+func (r *AccountRequest) Get(ctx context.Context) (resObj *Account, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Account
+func (r *AccountRequest) Update(ctx context.Context, reqObj *Account) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Account
+func (r *AccountRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AccountStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AccountStatusEnum.go
new file mode 100644
index 00000000..9f1f8696
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AccountStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccountStatus undocumented
+type AccountStatus int
+
+const (
+ // AccountStatusVUnknown undocumented
+ AccountStatusVUnknown AccountStatus = 0
+ // AccountStatusVStaged undocumented
+ AccountStatusVStaged AccountStatus = 1
+ // AccountStatusVActive undocumented
+ AccountStatusVActive AccountStatus = 2
+ // AccountStatusVSuspended undocumented
+ AccountStatusVSuspended AccountStatus = 3
+ // AccountStatusVDeleted undocumented
+ AccountStatusVDeleted AccountStatus = 4
+ // AccountStatusVUnknownFutureValue undocumented
+ AccountStatusVUnknownFutureValue AccountStatus = 127
+)
+
+// AccountStatusPUnknown returns a pointer to AccountStatusVUnknown
+func AccountStatusPUnknown() *AccountStatus {
+ v := AccountStatusVUnknown
+ return &v
+}
+
+// AccountStatusPStaged returns a pointer to AccountStatusVStaged
+func AccountStatusPStaged() *AccountStatus {
+ v := AccountStatusVStaged
+ return &v
+}
+
+// AccountStatusPActive returns a pointer to AccountStatusVActive
+func AccountStatusPActive() *AccountStatus {
+ v := AccountStatusVActive
+ return &v
+}
+
+// AccountStatusPSuspended returns a pointer to AccountStatusVSuspended
+func AccountStatusPSuspended() *AccountStatus {
+ v := AccountStatusVSuspended
+ return &v
+}
+
+// AccountStatusPDeleted returns a pointer to AccountStatusVDeleted
+func AccountStatusPDeleted() *AccountStatus {
+ v := AccountStatusVDeleted
+ return &v
+}
+
+// AccountStatusPUnknownFutureValue returns a pointer to AccountStatusVUnknownFutureValue
+func AccountStatusPUnknownFutureValue() *AccountStatus {
+ v := AccountStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSourceEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSourceEnum.go
new file mode 100644
index 00000000..c086893c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSourceEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ActionSource undocumented
+type ActionSource int
+
+const (
+ // ActionSourceVManual undocumented
+ ActionSourceVManual ActionSource = 0
+ // ActionSourceVAutomatic undocumented
+ ActionSourceVAutomatic ActionSource = 1
+ // ActionSourceVRecommended undocumented
+ ActionSourceVRecommended ActionSource = 2
+ // ActionSourceVDefault undocumented
+ ActionSourceVDefault ActionSource = 3
+)
+
+// ActionSourcePManual returns a pointer to ActionSourceVManual
+func ActionSourcePManual() *ActionSource {
+ v := ActionSourceVManual
+ return &v
+}
+
+// ActionSourcePAutomatic returns a pointer to ActionSourceVAutomatic
+func ActionSourcePAutomatic() *ActionSource {
+ v := ActionSourceVAutomatic
+ return &v
+}
+
+// ActionSourcePRecommended returns a pointer to ActionSourceVRecommended
+func ActionSourcePRecommended() *ActionSource {
+ v := ActionSourceVRecommended
+ return &v
+}
+
+// ActionSourcePDefault returns a pointer to ActionSourceVDefault
+func ActionSourcePDefault() *ActionSource {
+ v := ActionSourceVDefault
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionStateEnum.go
new file mode 100644
index 00000000..6ecda429
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionStateEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ActionState undocumented
+type ActionState int
+
+const (
+ // ActionStateVNone undocumented
+ ActionStateVNone ActionState = 0
+ // ActionStateVPending undocumented
+ ActionStateVPending ActionState = 1
+ // ActionStateVCanceled undocumented
+ ActionStateVCanceled ActionState = 2
+ // ActionStateVActive undocumented
+ ActionStateVActive ActionState = 3
+ // ActionStateVDone undocumented
+ ActionStateVDone ActionState = 4
+ // ActionStateVFailed undocumented
+ ActionStateVFailed ActionState = 5
+ // ActionStateVNotSupported undocumented
+ ActionStateVNotSupported ActionState = 6
+)
+
+// ActionStatePNone returns a pointer to ActionStateVNone
+func ActionStatePNone() *ActionState {
+ v := ActionStateVNone
+ return &v
+}
+
+// ActionStatePPending returns a pointer to ActionStateVPending
+func ActionStatePPending() *ActionState {
+ v := ActionStateVPending
+ return &v
+}
+
+// ActionStatePCanceled returns a pointer to ActionStateVCanceled
+func ActionStatePCanceled() *ActionState {
+ v := ActionStateVCanceled
+ return &v
+}
+
+// ActionStatePActive returns a pointer to ActionStateVActive
+func ActionStatePActive() *ActionState {
+ v := ActionStateVActive
+ return &v
+}
+
+// ActionStatePDone returns a pointer to ActionStateVDone
+func ActionStatePDone() *ActionState {
+ v := ActionStateVDone
+ return &v
+}
+
+// ActionStatePFailed returns a pointer to ActionStateVFailed
+func ActionStatePFailed() *ActionState {
+ v := ActionStateVFailed
+ return &v
+}
+
+// ActionStatePNotSupported returns a pointer to ActionStateVNotSupported
+func ActionStatePNotSupported() *ActionState {
+ v := ActionStateVNotSupported
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileModel.go
new file mode 100644
index 00000000..d0358053
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ActiveDirectoryWindowsAutopilotDeploymentProfile Windows Autopilot Deployment Profile
+type ActiveDirectoryWindowsAutopilotDeploymentProfile struct {
+ // WindowsAutopilotDeploymentProfile is the base model of ActiveDirectoryWindowsAutopilotDeploymentProfile
+ WindowsAutopilotDeploymentProfile
+ // HybridAzureADJoinSkipConnectivityCheck The Autopilot Hybrid Azure AD join flow will continue even if it does not establish domain controller connectivity during OOBE.
+ HybridAzureADJoinSkipConnectivityCheck *bool `json:"hybridAzureADJoinSkipConnectivityCheck,omitempty"`
+ // DomainJoinConfiguration undocumented
+ DomainJoinConfiguration *WindowsDomainJoinConfiguration `json:"domainJoinConfiguration,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileRequest.go
new file mode 100644
index 00000000..568da822
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActiveDirectoryWindowsAutopilotDeploymentProfileRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ActiveDirectoryWindowsAutopilotDeploymentProfileRequestBuilder is request builder for ActiveDirectoryWindowsAutopilotDeploymentProfile
+type ActiveDirectoryWindowsAutopilotDeploymentProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ActiveDirectoryWindowsAutopilotDeploymentProfileRequest
+func (b *ActiveDirectoryWindowsAutopilotDeploymentProfileRequestBuilder) Request() *ActiveDirectoryWindowsAutopilotDeploymentProfileRequest {
+ return &ActiveDirectoryWindowsAutopilotDeploymentProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ActiveDirectoryWindowsAutopilotDeploymentProfileRequest is request for ActiveDirectoryWindowsAutopilotDeploymentProfile
+type ActiveDirectoryWindowsAutopilotDeploymentProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for ActiveDirectoryWindowsAutopilotDeploymentProfile
+func (r *ActiveDirectoryWindowsAutopilotDeploymentProfileRequest) Get(ctx context.Context) (resObj *ActiveDirectoryWindowsAutopilotDeploymentProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ActiveDirectoryWindowsAutopilotDeploymentProfile
+func (r *ActiveDirectoryWindowsAutopilotDeploymentProfileRequest) Update(ctx context.Context, reqObj *ActiveDirectoryWindowsAutopilotDeploymentProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ActiveDirectoryWindowsAutopilotDeploymentProfile
+func (r *ActiveDirectoryWindowsAutopilotDeploymentProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DomainJoinConfiguration is navigation property
+func (b *ActiveDirectoryWindowsAutopilotDeploymentProfileRequestBuilder) DomainJoinConfiguration() *WindowsDomainJoinConfigurationRequestBuilder {
+ bb := &WindowsDomainJoinConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/domainJoinConfiguration"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActivityDomainEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActivityDomainEnum.go
new file mode 100644
index 00000000..349244fb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActivityDomainEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ActivityDomain undocumented
+type ActivityDomain int
+
+const (
+ // ActivityDomainVUnknown undocumented
+ ActivityDomainVUnknown ActivityDomain = 0
+ // ActivityDomainVWork undocumented
+ ActivityDomainVWork ActivityDomain = 1
+ // ActivityDomainVPersonal undocumented
+ ActivityDomainVPersonal ActivityDomain = 2
+ // ActivityDomainVUnrestricted undocumented
+ ActivityDomainVUnrestricted ActivityDomain = 3
+)
+
+// ActivityDomainPUnknown returns a pointer to ActivityDomainVUnknown
+func ActivityDomainPUnknown() *ActivityDomain {
+ v := ActivityDomainVUnknown
+ return &v
+}
+
+// ActivityDomainPWork returns a pointer to ActivityDomainVWork
+func ActivityDomainPWork() *ActivityDomain {
+ v := ActivityDomainVWork
+ return &v
+}
+
+// ActivityDomainPPersonal returns a pointer to ActivityDomainVPersonal
+func ActivityDomainPPersonal() *ActivityDomain {
+ v := ActivityDomainVPersonal
+ return &v
+}
+
+// ActivityDomainPUnrestricted returns a pointer to ActivityDomainVUnrestricted
+func ActivityDomainPUnrestricted() *ActivityDomain {
+ v := ActivityDomainVUnrestricted
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActivityHistoryItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActivityHistoryItemModel.go
new file mode 100644
index 00000000..78560a89
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActivityHistoryItemModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ActivityHistoryItem undocumented
+type ActivityHistoryItem struct {
+ // Entity is the base model of ActivityHistoryItem
+ Entity
+ // Status undocumented
+ Status *Status `json:"status,omitempty"`
+ // ActiveDurationSeconds undocumented
+ ActiveDurationSeconds *int `json:"activeDurationSeconds,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastActiveDateTime undocumented
+ LastActiveDateTime *time.Time `json:"lastActiveDateTime,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // StartedDateTime undocumented
+ StartedDateTime *time.Time `json:"startedDateTime,omitempty"`
+ // UserTimezone undocumented
+ UserTimezone *string `json:"userTimezone,omitempty"`
+ // Activity undocumented
+ Activity *UserActivity `json:"activity,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActivityHistoryItemRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActivityHistoryItemRequest.go
new file mode 100644
index 00000000..0590acdd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActivityHistoryItemRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ActivityHistoryItemRequestBuilder is request builder for ActivityHistoryItem
+type ActivityHistoryItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ActivityHistoryItemRequest
+func (b *ActivityHistoryItemRequestBuilder) Request() *ActivityHistoryItemRequest {
+ return &ActivityHistoryItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ActivityHistoryItemRequest is request for ActivityHistoryItem
+type ActivityHistoryItemRequest struct{ BaseRequest }
+
+// Get performs GET request for ActivityHistoryItem
+func (r *ActivityHistoryItemRequest) Get(ctx context.Context) (resObj *ActivityHistoryItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ActivityHistoryItem
+func (r *ActivityHistoryItemRequest) Update(ctx context.Context, reqObj *ActivityHistoryItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ActivityHistoryItem
+func (r *ActivityHistoryItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Activity is navigation property
+func (b *ActivityHistoryItemRequestBuilder) Activity() *UserActivityRequestBuilder {
+ bb := &UserActivityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activity"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActivityStatisticsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActivityStatisticsModel.go
new file mode 100644
index 00000000..76e83ae9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActivityStatisticsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ActivityStatistics undocumented
+type ActivityStatistics struct {
+ // Entity is the base model of ActivityStatistics
+ Entity
+ // Activity undocumented
+ Activity *AnalyticsActivityType `json:"activity,omitempty"`
+ // StartDate undocumented
+ StartDate *time.Time `json:"startDate,omitempty"`
+ // EndDate undocumented
+ EndDate *time.Time `json:"endDate,omitempty"`
+ // TimeZoneUsed undocumented
+ TimeZoneUsed *string `json:"timeZoneUsed,omitempty"`
+ // Duration undocumented
+ Duration *time.Duration `json:"duration,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActivityStatisticsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActivityStatisticsRequest.go
new file mode 100644
index 00000000..5dcbe600
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActivityStatisticsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ActivityStatisticsRequestBuilder is request builder for ActivityStatistics
+type ActivityStatisticsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ActivityStatisticsRequest
+func (b *ActivityStatisticsRequestBuilder) Request() *ActivityStatisticsRequest {
+ return &ActivityStatisticsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ActivityStatisticsRequest is request for ActivityStatistics
+type ActivityStatisticsRequest struct{ BaseRequest }
+
+// Get performs GET request for ActivityStatistics
+func (r *ActivityStatisticsRequest) Get(ctx context.Context) (resObj *ActivityStatistics, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ActivityStatistics
+func (r *ActivityStatisticsRequest) Update(ctx context.Context, reqObj *ActivityStatistics) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ActivityStatistics
+func (r *ActivityStatisticsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActivityTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActivityTypeEnum.go
new file mode 100644
index 00000000..4601c1ec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActivityTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ActivityType undocumented
+type ActivityType int
+
+const (
+ // ActivityTypeVSignin undocumented
+ ActivityTypeVSignin ActivityType = 0
+ // ActivityTypeVUser undocumented
+ ActivityTypeVUser ActivityType = 1
+ // ActivityTypeVUnknownFutureValue undocumented
+ ActivityTypeVUnknownFutureValue ActivityType = 2
+)
+
+// ActivityTypePSignin returns a pointer to ActivityTypeVSignin
+func ActivityTypePSignin() *ActivityType {
+ v := ActivityTypeVSignin
+ return &v
+}
+
+// ActivityTypePUser returns a pointer to ActivityTypeVUser
+func ActivityTypePUser() *ActivityType {
+ v := ActivityTypeVUser
+ return &v
+}
+
+// ActivityTypePUnknownFutureValue returns a pointer to ActivityTypeVUnknownFutureValue
+func ActivityTypePUnknownFutureValue() *ActivityType {
+ v := ActivityTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AddContentFooterActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AddContentFooterActionModel.go
new file mode 100644
index 00000000..9b1d1eec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AddContentFooterActionModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AddContentFooterAction undocumented
+type AddContentFooterAction struct {
+ // InformationProtectionAction is the base model of AddContentFooterAction
+ InformationProtectionAction
+ // UIElementName undocumented
+ UIElementName *string `json:"uiElementName,omitempty"`
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+ // FontName undocumented
+ FontName *string `json:"fontName,omitempty"`
+ // FontSize undocumented
+ FontSize *int `json:"fontSize,omitempty"`
+ // FontColor undocumented
+ FontColor *string `json:"fontColor,omitempty"`
+ // Alignment undocumented
+ Alignment *ContentAlignment `json:"alignment,omitempty"`
+ // Margin undocumented
+ Margin *int `json:"margin,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AddContentHeaderActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AddContentHeaderActionModel.go
new file mode 100644
index 00000000..982db1ca
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AddContentHeaderActionModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AddContentHeaderAction undocumented
+type AddContentHeaderAction struct {
+ // InformationProtectionAction is the base model of AddContentHeaderAction
+ InformationProtectionAction
+ // UIElementName undocumented
+ UIElementName *string `json:"uiElementName,omitempty"`
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+ // FontName undocumented
+ FontName *string `json:"fontName,omitempty"`
+ // FontSize undocumented
+ FontSize *int `json:"fontSize,omitempty"`
+ // FontColor undocumented
+ FontColor *string `json:"fontColor,omitempty"`
+ // Alignment undocumented
+ Alignment *ContentAlignment `json:"alignment,omitempty"`
+ // Margin undocumented
+ Margin *int `json:"margin,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AddFooterModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AddFooterModel.go
new file mode 100644
index 00000000..4e56be3f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AddFooterModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AddFooter undocumented
+type AddFooter struct {
+ // MarkContent is the base model of AddFooter
+ MarkContent
+ // Margin undocumented
+ Margin *int `json:"margin,omitempty"`
+ // Alignment undocumented
+ Alignment *Alignment `json:"alignment,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AddHeaderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AddHeaderModel.go
new file mode 100644
index 00000000..7e08b8cf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AddHeaderModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AddHeader undocumented
+type AddHeader struct {
+ // MarkContent is the base model of AddHeader
+ MarkContent
+ // Margin undocumented
+ Margin *int `json:"margin,omitempty"`
+ // Alignment undocumented
+ Alignment *Alignment `json:"alignment,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AddInModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AddInModel.go
new file mode 100644
index 00000000..94cae21d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AddInModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AddIn undocumented
+type AddIn struct {
+ // Object is the base model of AddIn
+ Object
+ // ID undocumented
+ ID *UUID `json:"id,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Properties undocumented
+ Properties []KeyValue `json:"properties,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AddWatermarkActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AddWatermarkActionModel.go
new file mode 100644
index 00000000..869560fb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AddWatermarkActionModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AddWatermarkAction undocumented
+type AddWatermarkAction struct {
+ // InformationProtectionAction is the base model of AddWatermarkAction
+ InformationProtectionAction
+ // UIElementName undocumented
+ UIElementName *string `json:"uiElementName,omitempty"`
+ // Layout undocumented
+ Layout *WatermarkLayout `json:"layout,omitempty"`
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+ // FontName undocumented
+ FontName *string `json:"fontName,omitempty"`
+ // FontSize undocumented
+ FontSize *int `json:"fontSize,omitempty"`
+ // FontColor undocumented
+ FontColor *string `json:"fontColor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AddWatermarkModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AddWatermarkModel.go
new file mode 100644
index 00000000..f79de2a8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AddWatermarkModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AddWatermark undocumented
+type AddWatermark struct {
+ // MarkContent is the base model of AddWatermark
+ MarkContent
+ // Orientation undocumented
+ Orientation *PageOrientation `json:"orientation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AdminConsentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AdminConsentModel.go
new file mode 100644
index 00000000..10e968fa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AdminConsentModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AdminConsent undocumented
+type AdminConsent struct {
+ // Object is the base model of AdminConsent
+ Object
+ // ShareAPNSData The admin consent state of sharing user and device data to Apple.
+ ShareAPNSData *AdminConsentState `json:"shareAPNSData,omitempty"`
+ // ShareUserExperienceAnalyticsData Gets or sets the admin consent for sharing User experience analytics data.
+ ShareUserExperienceAnalyticsData *AdminConsentState `json:"shareUserExperienceAnalyticsData,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AdminConsentStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AdminConsentStateEnum.go
new file mode 100644
index 00000000..dabb3ceb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AdminConsentStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AdminConsentState undocumented
+type AdminConsentState int
+
+const (
+ // AdminConsentStateVNotConfigured undocumented
+ AdminConsentStateVNotConfigured AdminConsentState = 0
+ // AdminConsentStateVGranted undocumented
+ AdminConsentStateVGranted AdminConsentState = 1
+ // AdminConsentStateVNotGranted undocumented
+ AdminConsentStateVNotGranted AdminConsentState = 2
+)
+
+// AdminConsentStatePNotConfigured returns a pointer to AdminConsentStateVNotConfigured
+func AdminConsentStatePNotConfigured() *AdminConsentState {
+ v := AdminConsentStateVNotConfigured
+ return &v
+}
+
+// AdminConsentStatePGranted returns a pointer to AdminConsentStateVGranted
+func AdminConsentStatePGranted() *AdminConsentState {
+ v := AdminConsentStateVGranted
+ return &v
+}
+
+// AdminConsentStatePNotGranted returns a pointer to AdminConsentStateVNotGranted
+func AdminConsentStatePNotGranted() *AdminConsentState {
+ v := AdminConsentStateVNotGranted
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AdministrativeUnitModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AdministrativeUnitModel.go
new file mode 100644
index 00000000..8e9d3ec2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AdministrativeUnitModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AdministrativeUnit undocumented
+type AdministrativeUnit struct {
+ // DirectoryObject is the base model of AdministrativeUnit
+ DirectoryObject
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Visibility undocumented
+ Visibility *string `json:"visibility,omitempty"`
+ // Members undocumented
+ Members []DirectoryObject `json:"members,omitempty"`
+ // ScopedRoleMembers undocumented
+ ScopedRoleMembers []ScopedRoleMembership `json:"scopedRoleMembers,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AdministrativeUnitRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AdministrativeUnitRequest.go
new file mode 100644
index 00000000..687b2f54
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AdministrativeUnitRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AdministrativeUnitRequestBuilder is request builder for AdministrativeUnit
+type AdministrativeUnitRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AdministrativeUnitRequest
+func (b *AdministrativeUnitRequestBuilder) Request() *AdministrativeUnitRequest {
+ return &AdministrativeUnitRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AdministrativeUnitRequest is request for AdministrativeUnit
+type AdministrativeUnitRequest struct{ BaseRequest }
+
+// Get performs GET request for AdministrativeUnit
+func (r *AdministrativeUnitRequest) Get(ctx context.Context) (resObj *AdministrativeUnit, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AdministrativeUnit
+func (r *AdministrativeUnitRequest) Update(ctx context.Context, reqObj *AdministrativeUnit) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AdministrativeUnit
+func (r *AdministrativeUnitRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Extensions returns request builder for Extension collection
+func (b *AdministrativeUnitRequestBuilder) Extensions() *AdministrativeUnitExtensionsCollectionRequestBuilder {
+ bb := &AdministrativeUnitExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// AdministrativeUnitExtensionsCollectionRequestBuilder is request builder for Extension collection
+type AdministrativeUnitExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *AdministrativeUnitExtensionsCollectionRequestBuilder) Request() *AdministrativeUnitExtensionsCollectionRequest {
+ return &AdministrativeUnitExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *AdministrativeUnitExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AdministrativeUnitExtensionsCollectionRequest is request for Extension collection
+type AdministrativeUnitExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *AdministrativeUnitExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *AdministrativeUnitExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Extension collection
+func (r *AdministrativeUnitExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Members returns request builder for DirectoryObject collection
+func (b *AdministrativeUnitRequestBuilder) Members() *AdministrativeUnitMembersCollectionRequestBuilder {
+ bb := &AdministrativeUnitMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/members"
+ return bb
+}
+
+// AdministrativeUnitMembersCollectionRequestBuilder is request builder for DirectoryObject collection
+type AdministrativeUnitMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *AdministrativeUnitMembersCollectionRequestBuilder) Request() *AdministrativeUnitMembersCollectionRequest {
+ return &AdministrativeUnitMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *AdministrativeUnitMembersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AdministrativeUnitMembersCollectionRequest is request for DirectoryObject collection
+type AdministrativeUnitMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *AdministrativeUnitMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *AdministrativeUnitMembersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *AdministrativeUnitMembersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ScopedRoleMembers returns request builder for ScopedRoleMembership collection
+func (b *AdministrativeUnitRequestBuilder) ScopedRoleMembers() *AdministrativeUnitScopedRoleMembersCollectionRequestBuilder {
+ bb := &AdministrativeUnitScopedRoleMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/scopedRoleMembers"
+ return bb
+}
+
+// AdministrativeUnitScopedRoleMembersCollectionRequestBuilder is request builder for ScopedRoleMembership collection
+type AdministrativeUnitScopedRoleMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ScopedRoleMembership collection
+func (b *AdministrativeUnitScopedRoleMembersCollectionRequestBuilder) Request() *AdministrativeUnitScopedRoleMembersCollectionRequest {
+ return &AdministrativeUnitScopedRoleMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ScopedRoleMembership item
+func (b *AdministrativeUnitScopedRoleMembersCollectionRequestBuilder) ID(id string) *ScopedRoleMembershipRequestBuilder {
+ bb := &ScopedRoleMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AdministrativeUnitScopedRoleMembersCollectionRequest is request for ScopedRoleMembership collection
+type AdministrativeUnitScopedRoleMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ScopedRoleMembership collection
+func (r *AdministrativeUnitScopedRoleMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ScopedRoleMembership, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ScopedRoleMembership
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ScopedRoleMembership
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ScopedRoleMembership collection
+func (r *AdministrativeUnitScopedRoleMembersCollectionRequest) Get(ctx context.Context) ([]ScopedRoleMembership, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ScopedRoleMembership collection
+func (r *AdministrativeUnitScopedRoleMembersCollectionRequest) Add(ctx context.Context, reqObj *ScopedRoleMembership) (resObj *ScopedRoleMembership, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AdministratorConfiguredDeviceComplianceStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AdministratorConfiguredDeviceComplianceStateEnum.go
new file mode 100644
index 00000000..3823caa0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AdministratorConfiguredDeviceComplianceStateEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AdministratorConfiguredDeviceComplianceState undocumented
+type AdministratorConfiguredDeviceComplianceState int
+
+const (
+ // AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy undocumented
+ AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy AdministratorConfiguredDeviceComplianceState = 0
+ // AdministratorConfiguredDeviceComplianceStateVNonCompliant undocumented
+ AdministratorConfiguredDeviceComplianceStateVNonCompliant AdministratorConfiguredDeviceComplianceState = 1
+)
+
+// AdministratorConfiguredDeviceComplianceStatePBasedOnDeviceCompliancePolicy returns a pointer to AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy
+func AdministratorConfiguredDeviceComplianceStatePBasedOnDeviceCompliancePolicy() *AdministratorConfiguredDeviceComplianceState {
+ v := AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy
+ return &v
+}
+
+// AdministratorConfiguredDeviceComplianceStatePNonCompliant returns a pointer to AdministratorConfiguredDeviceComplianceStateVNonCompliant
+func AdministratorConfiguredDeviceComplianceStatePNonCompliant() *AdministratorConfiguredDeviceComplianceState {
+ v := AdministratorConfiguredDeviceComplianceStateVNonCompliant
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AdvancedBitLockerStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AdvancedBitLockerStateEnum.go
new file mode 100644
index 00000000..fcea170c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AdvancedBitLockerStateEnum.go
@@ -0,0 +1,145 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AdvancedBitLockerState undocumented
+type AdvancedBitLockerState int
+
+const (
+ // AdvancedBitLockerStateVSuccess undocumented
+ AdvancedBitLockerStateVSuccess AdvancedBitLockerState = 0
+ // AdvancedBitLockerStateVNoUserConsent undocumented
+ AdvancedBitLockerStateVNoUserConsent AdvancedBitLockerState = 1
+ // AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch undocumented
+ AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch AdvancedBitLockerState = 2
+ // AdvancedBitLockerStateVOsVolumeTpmRequired undocumented
+ AdvancedBitLockerStateVOsVolumeTpmRequired AdvancedBitLockerState = 4
+ // AdvancedBitLockerStateVOsVolumeTpmOnlyRequired undocumented
+ AdvancedBitLockerStateVOsVolumeTpmOnlyRequired AdvancedBitLockerState = 8
+ // AdvancedBitLockerStateVOsVolumeTpmPinRequired undocumented
+ AdvancedBitLockerStateVOsVolumeTpmPinRequired AdvancedBitLockerState = 16
+ // AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired undocumented
+ AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired AdvancedBitLockerState = 32
+ // AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired undocumented
+ AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired AdvancedBitLockerState = 64
+ // AdvancedBitLockerStateVOsVolumeUnprotected undocumented
+ AdvancedBitLockerStateVOsVolumeUnprotected AdvancedBitLockerState = 128
+ // AdvancedBitLockerStateVRecoveryKeyBackupFailed undocumented
+ AdvancedBitLockerStateVRecoveryKeyBackupFailed AdvancedBitLockerState = 256
+ // AdvancedBitLockerStateVFixedDriveNotEncrypted undocumented
+ AdvancedBitLockerStateVFixedDriveNotEncrypted AdvancedBitLockerState = 512
+ // AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch undocumented
+ AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch AdvancedBitLockerState = 1024
+ // AdvancedBitLockerStateVLoggedOnUserNonAdmin undocumented
+ AdvancedBitLockerStateVLoggedOnUserNonAdmin AdvancedBitLockerState = 2048
+ // AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured undocumented
+ AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured AdvancedBitLockerState = 4096
+ // AdvancedBitLockerStateVTpmNotAvailable undocumented
+ AdvancedBitLockerStateVTpmNotAvailable AdvancedBitLockerState = 8192
+ // AdvancedBitLockerStateVTpmNotReady undocumented
+ AdvancedBitLockerStateVTpmNotReady AdvancedBitLockerState = 16384
+ // AdvancedBitLockerStateVNetworkError undocumented
+ AdvancedBitLockerStateVNetworkError AdvancedBitLockerState = 32768
+)
+
+// AdvancedBitLockerStatePSuccess returns a pointer to AdvancedBitLockerStateVSuccess
+func AdvancedBitLockerStatePSuccess() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVSuccess
+ return &v
+}
+
+// AdvancedBitLockerStatePNoUserConsent returns a pointer to AdvancedBitLockerStateVNoUserConsent
+func AdvancedBitLockerStatePNoUserConsent() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVNoUserConsent
+ return &v
+}
+
+// AdvancedBitLockerStatePOsVolumeEncryptionMethodMismatch returns a pointer to AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch
+func AdvancedBitLockerStatePOsVolumeEncryptionMethodMismatch() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch
+ return &v
+}
+
+// AdvancedBitLockerStatePOsVolumeTpmRequired returns a pointer to AdvancedBitLockerStateVOsVolumeTpmRequired
+func AdvancedBitLockerStatePOsVolumeTpmRequired() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVOsVolumeTpmRequired
+ return &v
+}
+
+// AdvancedBitLockerStatePOsVolumeTpmOnlyRequired returns a pointer to AdvancedBitLockerStateVOsVolumeTpmOnlyRequired
+func AdvancedBitLockerStatePOsVolumeTpmOnlyRequired() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVOsVolumeTpmOnlyRequired
+ return &v
+}
+
+// AdvancedBitLockerStatePOsVolumeTpmPinRequired returns a pointer to AdvancedBitLockerStateVOsVolumeTpmPinRequired
+func AdvancedBitLockerStatePOsVolumeTpmPinRequired() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVOsVolumeTpmPinRequired
+ return &v
+}
+
+// AdvancedBitLockerStatePOsVolumeTpmStartupKeyRequired returns a pointer to AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired
+func AdvancedBitLockerStatePOsVolumeTpmStartupKeyRequired() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired
+ return &v
+}
+
+// AdvancedBitLockerStatePOsVolumeTpmPinStartupKeyRequired returns a pointer to AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired
+func AdvancedBitLockerStatePOsVolumeTpmPinStartupKeyRequired() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired
+ return &v
+}
+
+// AdvancedBitLockerStatePOsVolumeUnprotected returns a pointer to AdvancedBitLockerStateVOsVolumeUnprotected
+func AdvancedBitLockerStatePOsVolumeUnprotected() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVOsVolumeUnprotected
+ return &v
+}
+
+// AdvancedBitLockerStatePRecoveryKeyBackupFailed returns a pointer to AdvancedBitLockerStateVRecoveryKeyBackupFailed
+func AdvancedBitLockerStatePRecoveryKeyBackupFailed() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVRecoveryKeyBackupFailed
+ return &v
+}
+
+// AdvancedBitLockerStatePFixedDriveNotEncrypted returns a pointer to AdvancedBitLockerStateVFixedDriveNotEncrypted
+func AdvancedBitLockerStatePFixedDriveNotEncrypted() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVFixedDriveNotEncrypted
+ return &v
+}
+
+// AdvancedBitLockerStatePFixedDriveEncryptionMethodMismatch returns a pointer to AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch
+func AdvancedBitLockerStatePFixedDriveEncryptionMethodMismatch() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch
+ return &v
+}
+
+// AdvancedBitLockerStatePLoggedOnUserNonAdmin returns a pointer to AdvancedBitLockerStateVLoggedOnUserNonAdmin
+func AdvancedBitLockerStatePLoggedOnUserNonAdmin() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVLoggedOnUserNonAdmin
+ return &v
+}
+
+// AdvancedBitLockerStatePWindowsRecoveryEnvironmentNotConfigured returns a pointer to AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured
+func AdvancedBitLockerStatePWindowsRecoveryEnvironmentNotConfigured() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured
+ return &v
+}
+
+// AdvancedBitLockerStatePTpmNotAvailable returns a pointer to AdvancedBitLockerStateVTpmNotAvailable
+func AdvancedBitLockerStatePTpmNotAvailable() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVTpmNotAvailable
+ return &v
+}
+
+// AdvancedBitLockerStatePTpmNotReady returns a pointer to AdvancedBitLockerStateVTpmNotReady
+func AdvancedBitLockerStatePTpmNotReady() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVTpmNotReady
+ return &v
+}
+
+// AdvancedBitLockerStatePNetworkError returns a pointer to AdvancedBitLockerStateVNetworkError
+func AdvancedBitLockerStatePNetworkError() *AdvancedBitLockerState {
+ v := AdvancedBitLockerStateVNetworkError
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateModel.go
new file mode 100644
index 00000000..f42f45e5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AdvancedThreatProtectionOnboardingDeviceSettingState ATP onboarding State for a given device.
+type AdvancedThreatProtectionOnboardingDeviceSettingState struct {
+ // Entity is the base model of AdvancedThreatProtectionOnboardingDeviceSettingState
+ Entity
+ // PlatformType Device platform type
+ PlatformType *DeviceType `json:"platformType,omitempty"`
+ // Setting The setting class name and property name.
+ Setting *string `json:"setting,omitempty"`
+ // SettingName The Setting Name that is being reported
+ SettingName *string `json:"settingName,omitempty"`
+ // DeviceID The Device Id that is being reported
+ DeviceID *string `json:"deviceId,omitempty"`
+ // DeviceName The Device Name that is being reported
+ DeviceName *string `json:"deviceName,omitempty"`
+ // UserID The user Id that is being reported
+ UserID *string `json:"userId,omitempty"`
+ // UserEmail The User email address that is being reported
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserName The User Name that is being reported
+ UserName *string `json:"userName,omitempty"`
+ // UserPrincipalName The User PrincipalName that is being reported
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DeviceModel The device model that is being reported
+ DeviceModel *string `json:"deviceModel,omitempty"`
+ // State The compliance state of the setting
+ State *ComplianceStatus `json:"state,omitempty"`
+ // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires
+ ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateRequest.go
new file mode 100644
index 00000000..d5ef7288
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AdvancedThreatProtectionOnboardingDeviceSettingStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder is request builder for AdvancedThreatProtectionOnboardingDeviceSettingState
+type AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AdvancedThreatProtectionOnboardingDeviceSettingStateRequest
+func (b *AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder) Request() *AdvancedThreatProtectionOnboardingDeviceSettingStateRequest {
+ return &AdvancedThreatProtectionOnboardingDeviceSettingStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AdvancedThreatProtectionOnboardingDeviceSettingStateRequest is request for AdvancedThreatProtectionOnboardingDeviceSettingState
+type AdvancedThreatProtectionOnboardingDeviceSettingStateRequest struct{ BaseRequest }
+
+// Get performs GET request for AdvancedThreatProtectionOnboardingDeviceSettingState
+func (r *AdvancedThreatProtectionOnboardingDeviceSettingStateRequest) Get(ctx context.Context) (resObj *AdvancedThreatProtectionOnboardingDeviceSettingState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AdvancedThreatProtectionOnboardingDeviceSettingState
+func (r *AdvancedThreatProtectionOnboardingDeviceSettingStateRequest) Update(ctx context.Context, reqObj *AdvancedThreatProtectionOnboardingDeviceSettingState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AdvancedThreatProtectionOnboardingDeviceSettingState
+func (r *AdvancedThreatProtectionOnboardingDeviceSettingStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryModel.go
new file mode 100644
index 00000000..2f5d464b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AdvancedThreatProtectionOnboardingStateSummary Windows defender advanced threat protection onboarding state summary across the account.
+type AdvancedThreatProtectionOnboardingStateSummary struct {
+ // Entity is the base model of AdvancedThreatProtectionOnboardingStateSummary
+ Entity
+ // UnknownDeviceCount Number of unknown devices
+ UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"`
+ // NotApplicableDeviceCount Number of not applicable devices
+ NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"`
+ // CompliantDeviceCount Number of compliant devices
+ CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"`
+ // RemediatedDeviceCount Number of remediated devices
+ RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"`
+ // NonCompliantDeviceCount Number of NonCompliant devices
+ NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"`
+ // ErrorDeviceCount Number of error devices
+ ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"`
+ // ConflictDeviceCount Number of conflict devices
+ ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"`
+ // NotAssignedDeviceCount Number of not assigned devices
+ NotAssignedDeviceCount *int `json:"notAssignedDeviceCount,omitempty"`
+ // AdvancedThreatProtectionOnboardingDeviceSettingStates undocumented
+ AdvancedThreatProtectionOnboardingDeviceSettingStates []AdvancedThreatProtectionOnboardingDeviceSettingState `json:"advancedThreatProtectionOnboardingDeviceSettingStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryRequest.go
new file mode 100644
index 00000000..e9aa13af
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AdvancedThreatProtectionOnboardingStateSummaryRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder is request builder for AdvancedThreatProtectionOnboardingStateSummary
+type AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AdvancedThreatProtectionOnboardingStateSummaryRequest
+func (b *AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder) Request() *AdvancedThreatProtectionOnboardingStateSummaryRequest {
+ return &AdvancedThreatProtectionOnboardingStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AdvancedThreatProtectionOnboardingStateSummaryRequest is request for AdvancedThreatProtectionOnboardingStateSummary
+type AdvancedThreatProtectionOnboardingStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for AdvancedThreatProtectionOnboardingStateSummary
+func (r *AdvancedThreatProtectionOnboardingStateSummaryRequest) Get(ctx context.Context) (resObj *AdvancedThreatProtectionOnboardingStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AdvancedThreatProtectionOnboardingStateSummary
+func (r *AdvancedThreatProtectionOnboardingStateSummaryRequest) Update(ctx context.Context, reqObj *AdvancedThreatProtectionOnboardingStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AdvancedThreatProtectionOnboardingStateSummary
+func (r *AdvancedThreatProtectionOnboardingStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AdvancedThreatProtectionOnboardingDeviceSettingStates returns request builder for AdvancedThreatProtectionOnboardingDeviceSettingState collection
+func (b *AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder) AdvancedThreatProtectionOnboardingDeviceSettingStates() *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder {
+ bb := &AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/advancedThreatProtectionOnboardingDeviceSettingStates"
+ return bb
+}
+
+// AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder is request builder for AdvancedThreatProtectionOnboardingDeviceSettingState collection
+type AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AdvancedThreatProtectionOnboardingDeviceSettingState collection
+func (b *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder) Request() *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest {
+ return &AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AdvancedThreatProtectionOnboardingDeviceSettingState item
+func (b *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder) ID(id string) *AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder {
+ bb := &AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest is request for AdvancedThreatProtectionOnboardingDeviceSettingState collection
+type AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AdvancedThreatProtectionOnboardingDeviceSettingState collection
+func (r *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AdvancedThreatProtectionOnboardingDeviceSettingState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AdvancedThreatProtectionOnboardingDeviceSettingState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AdvancedThreatProtectionOnboardingDeviceSettingState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AdvancedThreatProtectionOnboardingDeviceSettingState collection
+func (r *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest) Get(ctx context.Context) ([]AdvancedThreatProtectionOnboardingDeviceSettingState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AdvancedThreatProtectionOnboardingDeviceSettingState collection
+func (r *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest) Add(ctx context.Context, reqObj *AdvancedThreatProtectionOnboardingDeviceSettingState) (resObj *AdvancedThreatProtectionOnboardingDeviceSettingState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AgedAccountsPayableModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AgedAccountsPayableModel.go
new file mode 100644
index 00000000..af0615c1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AgedAccountsPayableModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AgedAccountsPayable undocumented
+type AgedAccountsPayable struct {
+ // Entity is the base model of AgedAccountsPayable
+ Entity
+ // VendorNumber undocumented
+ VendorNumber *string `json:"vendorNumber,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // BalanceDue undocumented
+ BalanceDue *int `json:"balanceDue,omitempty"`
+ // CurrentAmount undocumented
+ CurrentAmount *int `json:"currentAmount,omitempty"`
+ // Period1Amount undocumented
+ Period1Amount *int `json:"period1Amount,omitempty"`
+ // Period2Amount undocumented
+ Period2Amount *int `json:"period2Amount,omitempty"`
+ // Period3Amount undocumented
+ Period3Amount *int `json:"period3Amount,omitempty"`
+ // AgedAsOfDate undocumented
+ AgedAsOfDate *time.Time `json:"agedAsOfDate,omitempty"`
+ // PeriodLengthFilter undocumented
+ PeriodLengthFilter *string `json:"periodLengthFilter,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AgedAccountsPayableRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AgedAccountsPayableRequest.go
new file mode 100644
index 00000000..b31f3be1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AgedAccountsPayableRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AgedAccountsPayableRequestBuilder is request builder for AgedAccountsPayable
+type AgedAccountsPayableRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AgedAccountsPayableRequest
+func (b *AgedAccountsPayableRequestBuilder) Request() *AgedAccountsPayableRequest {
+ return &AgedAccountsPayableRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AgedAccountsPayableRequest is request for AgedAccountsPayable
+type AgedAccountsPayableRequest struct{ BaseRequest }
+
+// Get performs GET request for AgedAccountsPayable
+func (r *AgedAccountsPayableRequest) Get(ctx context.Context) (resObj *AgedAccountsPayable, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AgedAccountsPayable
+func (r *AgedAccountsPayableRequest) Update(ctx context.Context, reqObj *AgedAccountsPayable) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AgedAccountsPayable
+func (r *AgedAccountsPayableRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AgedAccountsReceivableModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AgedAccountsReceivableModel.go
new file mode 100644
index 00000000..1124bef3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AgedAccountsReceivableModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AgedAccountsReceivable undocumented
+type AgedAccountsReceivable struct {
+ // Entity is the base model of AgedAccountsReceivable
+ Entity
+ // CustomerNumber undocumented
+ CustomerNumber *string `json:"customerNumber,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // BalanceDue undocumented
+ BalanceDue *int `json:"balanceDue,omitempty"`
+ // CurrentAmount undocumented
+ CurrentAmount *int `json:"currentAmount,omitempty"`
+ // Period1Amount undocumented
+ Period1Amount *int `json:"period1Amount,omitempty"`
+ // Period2Amount undocumented
+ Period2Amount *int `json:"period2Amount,omitempty"`
+ // Period3Amount undocumented
+ Period3Amount *int `json:"period3Amount,omitempty"`
+ // AgedAsOfDate undocumented
+ AgedAsOfDate *time.Time `json:"agedAsOfDate,omitempty"`
+ // PeriodLengthFilter undocumented
+ PeriodLengthFilter *string `json:"periodLengthFilter,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AgedAccountsReceivableRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AgedAccountsReceivableRequest.go
new file mode 100644
index 00000000..38f5bd81
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AgedAccountsReceivableRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AgedAccountsReceivableRequestBuilder is request builder for AgedAccountsReceivable
+type AgedAccountsReceivableRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AgedAccountsReceivableRequest
+func (b *AgedAccountsReceivableRequestBuilder) Request() *AgedAccountsReceivableRequest {
+ return &AgedAccountsReceivableRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AgedAccountsReceivableRequest is request for AgedAccountsReceivable
+type AgedAccountsReceivableRequest struct{ BaseRequest }
+
+// Get performs GET request for AgedAccountsReceivable
+func (r *AgedAccountsReceivableRequest) Get(ctx context.Context) (resObj *AgedAccountsReceivable, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AgedAccountsReceivable
+func (r *AgedAccountsReceivableRequest) Update(ctx context.Context, reqObj *AgedAccountsReceivable) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AgedAccountsReceivable
+func (r *AgedAccountsReceivableRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AgentStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AgentStatusEnum.go
new file mode 100644
index 00000000..687bf26f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AgentStatusEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AgentStatus undocumented
+type AgentStatus int
+
+const (
+ // AgentStatusVActive undocumented
+ AgentStatusVActive AgentStatus = 0
+ // AgentStatusVInactive undocumented
+ AgentStatusVInactive AgentStatus = 1
+)
+
+// AgentStatusPActive returns a pointer to AgentStatusVActive
+func AgentStatusPActive() *AgentStatus {
+ v := AgentStatusVActive
+ return &v
+}
+
+// AgentStatusPInactive returns a pointer to AgentStatusVInactive
+func AgentStatusPInactive() *AgentStatus {
+ v := AgentStatusVInactive
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AgreementAcceptanceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AgreementAcceptanceModel.go
new file mode 100644
index 00000000..b82a1b74
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AgreementAcceptanceModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AgreementAcceptance undocumented
+type AgreementAcceptance struct {
+ // Entity is the base model of AgreementAcceptance
+ Entity
+ // AgreementID undocumented
+ AgreementID *string `json:"agreementId,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // AgreementFileID undocumented
+ AgreementFileID *string `json:"agreementFileId,omitempty"`
+ // RecordedDateTime undocumented
+ RecordedDateTime *time.Time `json:"recordedDateTime,omitempty"`
+ // UserDisplayName undocumented
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // UserEmail undocumented
+ UserEmail *string `json:"userEmail,omitempty"`
+ // State undocumented
+ State *AgreementAcceptanceState `json:"state,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AgreementAcceptanceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AgreementAcceptanceRequest.go
new file mode 100644
index 00000000..b84f4e42
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AgreementAcceptanceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AgreementAcceptanceRequestBuilder is request builder for AgreementAcceptance
+type AgreementAcceptanceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AgreementAcceptanceRequest
+func (b *AgreementAcceptanceRequestBuilder) Request() *AgreementAcceptanceRequest {
+ return &AgreementAcceptanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AgreementAcceptanceRequest is request for AgreementAcceptance
+type AgreementAcceptanceRequest struct{ BaseRequest }
+
+// Get performs GET request for AgreementAcceptance
+func (r *AgreementAcceptanceRequest) Get(ctx context.Context) (resObj *AgreementAcceptance, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AgreementAcceptance
+func (r *AgreementAcceptanceRequest) Update(ctx context.Context, reqObj *AgreementAcceptance) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AgreementAcceptance
+func (r *AgreementAcceptanceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AgreementAcceptanceStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AgreementAcceptanceStateEnum.go
new file mode 100644
index 00000000..368c4cc8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AgreementAcceptanceStateEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AgreementAcceptanceState undocumented
+type AgreementAcceptanceState int
+
+const (
+ // AgreementAcceptanceStateVAccepted undocumented
+ AgreementAcceptanceStateVAccepted AgreementAcceptanceState = 2
+ // AgreementAcceptanceStateVDeclined undocumented
+ AgreementAcceptanceStateVDeclined AgreementAcceptanceState = 3
+)
+
+// AgreementAcceptanceStatePAccepted returns a pointer to AgreementAcceptanceStateVAccepted
+func AgreementAcceptanceStatePAccepted() *AgreementAcceptanceState {
+ v := AgreementAcceptanceStateVAccepted
+ return &v
+}
+
+// AgreementAcceptanceStatePDeclined returns a pointer to AgreementAcceptanceStateVDeclined
+func AgreementAcceptanceStatePDeclined() *AgreementAcceptanceState {
+ v := AgreementAcceptanceStateVDeclined
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AgreementFileDataModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AgreementFileDataModel.go
new file mode 100644
index 00000000..f238e25a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AgreementFileDataModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AgreementFileData undocumented
+type AgreementFileData struct {
+ // Object is the base model of AgreementFileData
+ Object
+ // Data undocumented
+ Data *Binary `json:"data,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AgreementFileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AgreementFileModel.go
new file mode 100644
index 00000000..7e020509
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AgreementFileModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AgreementFile undocumented
+type AgreementFile struct {
+ // Entity is the base model of AgreementFile
+ Entity
+ // Language undocumented
+ Language *string `json:"language,omitempty"`
+ // FileName undocumented
+ FileName *string `json:"fileName,omitempty"`
+ // FileData undocumented
+ FileData *AgreementFileData `json:"fileData,omitempty"`
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AgreementFileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AgreementFileRequest.go
new file mode 100644
index 00000000..dec4ffb9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AgreementFileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AgreementFileRequestBuilder is request builder for AgreementFile
+type AgreementFileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AgreementFileRequest
+func (b *AgreementFileRequestBuilder) Request() *AgreementFileRequest {
+ return &AgreementFileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AgreementFileRequest is request for AgreementFile
+type AgreementFileRequest struct{ BaseRequest }
+
+// Get performs GET request for AgreementFile
+func (r *AgreementFileRequest) Get(ctx context.Context) (resObj *AgreementFile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AgreementFile
+func (r *AgreementFileRequest) Update(ctx context.Context, reqObj *AgreementFile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AgreementFile
+func (r *AgreementFileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AgreementModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AgreementModel.go
new file mode 100644
index 00000000..486d6c47
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AgreementModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Agreement undocumented
+type Agreement struct {
+ // Entity is the base model of Agreement
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsViewingBeforeAcceptanceRequired undocumented
+ IsViewingBeforeAcceptanceRequired *bool `json:"isViewingBeforeAcceptanceRequired,omitempty"`
+ // Files undocumented
+ Files []AgreementFile `json:"files,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AgreementRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AgreementRequest.go
new file mode 100644
index 00000000..edff5a1d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AgreementRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AgreementRequestBuilder is request builder for Agreement
+type AgreementRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AgreementRequest
+func (b *AgreementRequestBuilder) Request() *AgreementRequest {
+ return &AgreementRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AgreementRequest is request for Agreement
+type AgreementRequest struct{ BaseRequest }
+
+// Get performs GET request for Agreement
+func (r *AgreementRequest) Get(ctx context.Context) (resObj *Agreement, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Agreement
+func (r *AgreementRequest) Update(ctx context.Context, reqObj *Agreement) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Agreement
+func (r *AgreementRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Files returns request builder for AgreementFile collection
+func (b *AgreementRequestBuilder) Files() *AgreementFilesCollectionRequestBuilder {
+ bb := &AgreementFilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/files"
+ return bb
+}
+
+// AgreementFilesCollectionRequestBuilder is request builder for AgreementFile collection
+type AgreementFilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AgreementFile collection
+func (b *AgreementFilesCollectionRequestBuilder) Request() *AgreementFilesCollectionRequest {
+ return &AgreementFilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AgreementFile item
+func (b *AgreementFilesCollectionRequestBuilder) ID(id string) *AgreementFileRequestBuilder {
+ bb := &AgreementFileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AgreementFilesCollectionRequest is request for AgreementFile collection
+type AgreementFilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AgreementFile collection
+func (r *AgreementFilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AgreementFile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AgreementFile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AgreementFile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AgreementFile collection
+func (r *AgreementFilesCollectionRequest) Get(ctx context.Context) ([]AgreementFile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AgreementFile collection
+func (r *AgreementFilesCollectionRequest) Add(ctx context.Context, reqObj *AgreementFile) (resObj *AgreementFile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AirPrintDestinationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AirPrintDestinationModel.go
new file mode 100644
index 00000000..f8f9b2eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AirPrintDestinationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AirPrintDestination undocumented
+type AirPrintDestination struct {
+ // Object is the base model of AirPrintDestination
+ Object
+ // IPAddress The IP Address of the AirPrint destination.
+ IPAddress *string `json:"ipAddress,omitempty"`
+ // ResourcePath undocumented
+ ResourcePath *string `json:"resourcePath,omitempty"`
+ // Port The listening port of the AirPrint destination. If this key is not specified AirPrint will use the default port. Available in iOS 11.0 and later.
+ Port *int `json:"port,omitempty"`
+ // ForceTLS If true AirPrint connections are secured by Transport Layer Security (TLS). Default is false. Available in iOS 11.0 and later.
+ ForceTLS *bool `json:"forceTls,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AlbumModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AlbumModel.go
new file mode 100644
index 00000000..fb0f47b3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AlbumModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Album undocumented
+type Album struct {
+ // Object is the base model of Album
+ Object
+ // CoverImageItemID undocumented
+ CoverImageItemID *string `json:"coverImageItemId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AlertAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/AlertAction.go
new file mode 100644
index 00000000..b7204ac9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AlertAction.go
@@ -0,0 +1,100 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AlertCollectionUpdateAlertsRequestParameter undocumented
+type AlertCollectionUpdateAlertsRequestParameter struct {
+ // Value undocumented
+ Value []Alert `json:"value,omitempty"`
+}
+
+//
+type AlertCollectionUpdateAlertsRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateAlerts action undocumented
+func (b *SecurityAlertsCollectionRequestBuilder) UpdateAlerts(reqObj *AlertCollectionUpdateAlertsRequestParameter) *AlertCollectionUpdateAlertsRequestBuilder {
+ bb := &AlertCollectionUpdateAlertsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateAlerts"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AlertCollectionUpdateAlertsRequest struct{ BaseRequest }
+
+//
+func (b *AlertCollectionUpdateAlertsRequestBuilder) Request() *AlertCollectionUpdateAlertsRequest {
+ return &AlertCollectionUpdateAlertsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AlertCollectionUpdateAlertsRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]Alert, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]Alert
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]Alert
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *AlertCollectionUpdateAlertsRequest) Get(ctx context.Context) ([][]Alert, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AlertFeedbackEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AlertFeedbackEnum.go
new file mode 100644
index 00000000..a61fedaf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AlertFeedbackEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AlertFeedback undocumented
+type AlertFeedback int
+
+const (
+ // AlertFeedbackVUnknown undocumented
+ AlertFeedbackVUnknown AlertFeedback = 0
+ // AlertFeedbackVTruePositive undocumented
+ AlertFeedbackVTruePositive AlertFeedback = 1
+ // AlertFeedbackVFalsePositive undocumented
+ AlertFeedbackVFalsePositive AlertFeedback = 2
+ // AlertFeedbackVBenignPositive undocumented
+ AlertFeedbackVBenignPositive AlertFeedback = 3
+ // AlertFeedbackVUnknownFutureValue undocumented
+ AlertFeedbackVUnknownFutureValue AlertFeedback = 127
+)
+
+// AlertFeedbackPUnknown returns a pointer to AlertFeedbackVUnknown
+func AlertFeedbackPUnknown() *AlertFeedback {
+ v := AlertFeedbackVUnknown
+ return &v
+}
+
+// AlertFeedbackPTruePositive returns a pointer to AlertFeedbackVTruePositive
+func AlertFeedbackPTruePositive() *AlertFeedback {
+ v := AlertFeedbackVTruePositive
+ return &v
+}
+
+// AlertFeedbackPFalsePositive returns a pointer to AlertFeedbackVFalsePositive
+func AlertFeedbackPFalsePositive() *AlertFeedback {
+ v := AlertFeedbackVFalsePositive
+ return &v
+}
+
+// AlertFeedbackPBenignPositive returns a pointer to AlertFeedbackVBenignPositive
+func AlertFeedbackPBenignPositive() *AlertFeedback {
+ v := AlertFeedbackVBenignPositive
+ return &v
+}
+
+// AlertFeedbackPUnknownFutureValue returns a pointer to AlertFeedbackVUnknownFutureValue
+func AlertFeedbackPUnknownFutureValue() *AlertFeedback {
+ v := AlertFeedbackVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AlertHistoryStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AlertHistoryStateModel.go
new file mode 100644
index 00000000..00914605
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AlertHistoryStateModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AlertHistoryState undocumented
+type AlertHistoryState struct {
+ // Object is the base model of AlertHistoryState
+ Object
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // AssignedTo undocumented
+ AssignedTo *string `json:"assignedTo,omitempty"`
+ // Comments undocumented
+ Comments []string `json:"comments,omitempty"`
+ // Feedback undocumented
+ Feedback *AlertFeedback `json:"feedback,omitempty"`
+ // Status undocumented
+ Status *AlertStatus `json:"status,omitempty"`
+ // UpdatedDateTime undocumented
+ UpdatedDateTime *time.Time `json:"updatedDateTime,omitempty"`
+ // User undocumented
+ User *string `json:"user,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AlertModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AlertModel.go
new file mode 100644
index 00000000..0e5967c5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AlertModel.go
@@ -0,0 +1,75 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Alert undocumented
+type Alert struct {
+ // Entity is the base model of Alert
+ Entity
+ // ActivityGroupName undocumented
+ ActivityGroupName *string `json:"activityGroupName,omitempty"`
+ // AssignedTo undocumented
+ AssignedTo *string `json:"assignedTo,omitempty"`
+ // AzureSubscriptionID undocumented
+ AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // Category undocumented
+ Category *string `json:"category,omitempty"`
+ // ClosedDateTime undocumented
+ ClosedDateTime *time.Time `json:"closedDateTime,omitempty"`
+ // CloudAppStates undocumented
+ CloudAppStates []CloudAppSecurityState `json:"cloudAppStates,omitempty"`
+ // Comments undocumented
+ Comments []string `json:"comments,omitempty"`
+ // Confidence undocumented
+ Confidence *int `json:"confidence,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DetectionIDs undocumented
+ DetectionIDs []string `json:"detectionIds,omitempty"`
+ // EventDateTime undocumented
+ EventDateTime *time.Time `json:"eventDateTime,omitempty"`
+ // Feedback undocumented
+ Feedback *AlertFeedback `json:"feedback,omitempty"`
+ // FileStates undocumented
+ FileStates []FileSecurityState `json:"fileStates,omitempty"`
+ // HistoryStates undocumented
+ HistoryStates []AlertHistoryState `json:"historyStates,omitempty"`
+ // HostStates undocumented
+ HostStates []HostSecurityState `json:"hostStates,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // MalwareStates undocumented
+ MalwareStates []MalwareState `json:"malwareStates,omitempty"`
+ // NetworkConnections undocumented
+ NetworkConnections []NetworkConnection `json:"networkConnections,omitempty"`
+ // Processes undocumented
+ Processes []Process `json:"processes,omitempty"`
+ // RecommendedActions undocumented
+ RecommendedActions []string `json:"recommendedActions,omitempty"`
+ // RegistryKeyStates undocumented
+ RegistryKeyStates []RegistryKeyState `json:"registryKeyStates,omitempty"`
+ // Severity undocumented
+ Severity *AlertSeverity `json:"severity,omitempty"`
+ // SourceMaterials undocumented
+ SourceMaterials []string `json:"sourceMaterials,omitempty"`
+ // Status undocumented
+ Status *AlertStatus `json:"status,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // Triggers undocumented
+ Triggers []AlertTrigger `json:"triggers,omitempty"`
+ // UserStates undocumented
+ UserStates []UserSecurityState `json:"userStates,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+ // VulnerabilityStates undocumented
+ VulnerabilityStates []VulnerabilityState `json:"vulnerabilityStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AlertRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AlertRequest.go
new file mode 100644
index 00000000..393f6e0a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AlertRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AlertRequestBuilder is request builder for Alert
+type AlertRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AlertRequest
+func (b *AlertRequestBuilder) Request() *AlertRequest {
+ return &AlertRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AlertRequest is request for Alert
+type AlertRequest struct{ BaseRequest }
+
+// Get performs GET request for Alert
+func (r *AlertRequest) Get(ctx context.Context) (resObj *Alert, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Alert
+func (r *AlertRequest) Update(ctx context.Context, reqObj *Alert) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Alert
+func (r *AlertRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AlertSeverityEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AlertSeverityEnum.go
new file mode 100644
index 00000000..0d823b35
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AlertSeverityEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AlertSeverity undocumented
+type AlertSeverity int
+
+const (
+ // AlertSeverityVUnknown undocumented
+ AlertSeverityVUnknown AlertSeverity = 0
+ // AlertSeverityVInformational undocumented
+ AlertSeverityVInformational AlertSeverity = 1
+ // AlertSeverityVLow undocumented
+ AlertSeverityVLow AlertSeverity = 2
+ // AlertSeverityVMedium undocumented
+ AlertSeverityVMedium AlertSeverity = 3
+ // AlertSeverityVHigh undocumented
+ AlertSeverityVHigh AlertSeverity = 4
+ // AlertSeverityVUnknownFutureValue undocumented
+ AlertSeverityVUnknownFutureValue AlertSeverity = 127
+)
+
+// AlertSeverityPUnknown returns a pointer to AlertSeverityVUnknown
+func AlertSeverityPUnknown() *AlertSeverity {
+ v := AlertSeverityVUnknown
+ return &v
+}
+
+// AlertSeverityPInformational returns a pointer to AlertSeverityVInformational
+func AlertSeverityPInformational() *AlertSeverity {
+ v := AlertSeverityVInformational
+ return &v
+}
+
+// AlertSeverityPLow returns a pointer to AlertSeverityVLow
+func AlertSeverityPLow() *AlertSeverity {
+ v := AlertSeverityVLow
+ return &v
+}
+
+// AlertSeverityPMedium returns a pointer to AlertSeverityVMedium
+func AlertSeverityPMedium() *AlertSeverity {
+ v := AlertSeverityVMedium
+ return &v
+}
+
+// AlertSeverityPHigh returns a pointer to AlertSeverityVHigh
+func AlertSeverityPHigh() *AlertSeverity {
+ v := AlertSeverityVHigh
+ return &v
+}
+
+// AlertSeverityPUnknownFutureValue returns a pointer to AlertSeverityVUnknownFutureValue
+func AlertSeverityPUnknownFutureValue() *AlertSeverity {
+ v := AlertSeverityVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AlertStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AlertStatusEnum.go
new file mode 100644
index 00000000..e49ac7ea
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AlertStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AlertStatus undocumented
+type AlertStatus int
+
+const (
+ // AlertStatusVUnknown undocumented
+ AlertStatusVUnknown AlertStatus = 0
+ // AlertStatusVNewAlert undocumented
+ AlertStatusVNewAlert AlertStatus = 1
+ // AlertStatusVInProgress undocumented
+ AlertStatusVInProgress AlertStatus = 2
+ // AlertStatusVResolved undocumented
+ AlertStatusVResolved AlertStatus = 3
+ // AlertStatusVDismissed undocumented
+ AlertStatusVDismissed AlertStatus = 4
+ // AlertStatusVUnknownFutureValue undocumented
+ AlertStatusVUnknownFutureValue AlertStatus = 127
+)
+
+// AlertStatusPUnknown returns a pointer to AlertStatusVUnknown
+func AlertStatusPUnknown() *AlertStatus {
+ v := AlertStatusVUnknown
+ return &v
+}
+
+// AlertStatusPNewAlert returns a pointer to AlertStatusVNewAlert
+func AlertStatusPNewAlert() *AlertStatus {
+ v := AlertStatusVNewAlert
+ return &v
+}
+
+// AlertStatusPInProgress returns a pointer to AlertStatusVInProgress
+func AlertStatusPInProgress() *AlertStatus {
+ v := AlertStatusVInProgress
+ return &v
+}
+
+// AlertStatusPResolved returns a pointer to AlertStatusVResolved
+func AlertStatusPResolved() *AlertStatus {
+ v := AlertStatusVResolved
+ return &v
+}
+
+// AlertStatusPDismissed returns a pointer to AlertStatusVDismissed
+func AlertStatusPDismissed() *AlertStatus {
+ v := AlertStatusVDismissed
+ return &v
+}
+
+// AlertStatusPUnknownFutureValue returns a pointer to AlertStatusVUnknownFutureValue
+func AlertStatusPUnknownFutureValue() *AlertStatus {
+ v := AlertStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AlertTriggerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AlertTriggerModel.go
new file mode 100644
index 00000000..4f8e90a6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AlertTriggerModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AlertTrigger undocumented
+type AlertTrigger struct {
+ // Object is the base model of AlertTrigger
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AlignmentEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AlignmentEnum.go
new file mode 100644
index 00000000..e807d71f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AlignmentEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Alignment undocumented
+type Alignment int
+
+const (
+ // AlignmentVLeft undocumented
+ AlignmentVLeft Alignment = 0
+ // AlignmentVRight undocumented
+ AlignmentVRight Alignment = 1
+ // AlignmentVCenter undocumented
+ AlignmentVCenter Alignment = 2
+)
+
+// AlignmentPLeft returns a pointer to AlignmentVLeft
+func AlignmentPLeft() *Alignment {
+ v := AlignmentVLeft
+ return &v
+}
+
+// AlignmentPRight returns a pointer to AlignmentVRight
+func AlignmentPRight() *Alignment {
+ v := AlignmentVRight
+ return &v
+}
+
+// AlignmentPCenter returns a pointer to AlignmentVCenter
+func AlignmentPCenter() *Alignment {
+ v := AlignmentVCenter
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AllDevicesAssignmentTargetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AllDevicesAssignmentTargetModel.go
new file mode 100644
index 00000000..9137ae13
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AllDevicesAssignmentTargetModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AllDevicesAssignmentTarget undocumented
+type AllDevicesAssignmentTarget struct {
+ // DeviceAndAppManagementAssignmentTarget is the base model of AllDevicesAssignmentTarget
+ DeviceAndAppManagementAssignmentTarget
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AllLicensedUsersAssignmentTargetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AllLicensedUsersAssignmentTargetModel.go
new file mode 100644
index 00000000..6dca3f76
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AllLicensedUsersAssignmentTargetModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AllLicensedUsersAssignmentTarget undocumented
+type AllLicensedUsersAssignmentTarget struct {
+ // DeviceAndAppManagementAssignmentTarget is the base model of AllLicensedUsersAssignmentTarget
+ DeviceAndAppManagementAssignmentTarget
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AllowedAudiencesEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AllowedAudiencesEnum.go
new file mode 100644
index 00000000..6d1bcabd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AllowedAudiencesEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AllowedAudiences undocumented
+type AllowedAudiences int
+
+const (
+ // AllowedAudiencesVMe undocumented
+ AllowedAudiencesVMe AllowedAudiences = 0
+ // AllowedAudiencesVFamily undocumented
+ AllowedAudiencesVFamily AllowedAudiences = 1
+ // AllowedAudiencesVContacts undocumented
+ AllowedAudiencesVContacts AllowedAudiences = 2
+ // AllowedAudiencesVGroupMembers undocumented
+ AllowedAudiencesVGroupMembers AllowedAudiences = 4
+ // AllowedAudiencesVOrganization undocumented
+ AllowedAudiencesVOrganization AllowedAudiences = 8
+ // AllowedAudiencesVFederatedOrganizations undocumented
+ AllowedAudiencesVFederatedOrganizations AllowedAudiences = 16
+ // AllowedAudiencesVEveryone undocumented
+ AllowedAudiencesVEveryone AllowedAudiences = 32
+ // AllowedAudiencesVUnknownFutureValue undocumented
+ AllowedAudiencesVUnknownFutureValue AllowedAudiences = 64
+)
+
+// AllowedAudiencesPMe returns a pointer to AllowedAudiencesVMe
+func AllowedAudiencesPMe() *AllowedAudiences {
+ v := AllowedAudiencesVMe
+ return &v
+}
+
+// AllowedAudiencesPFamily returns a pointer to AllowedAudiencesVFamily
+func AllowedAudiencesPFamily() *AllowedAudiences {
+ v := AllowedAudiencesVFamily
+ return &v
+}
+
+// AllowedAudiencesPContacts returns a pointer to AllowedAudiencesVContacts
+func AllowedAudiencesPContacts() *AllowedAudiences {
+ v := AllowedAudiencesVContacts
+ return &v
+}
+
+// AllowedAudiencesPGroupMembers returns a pointer to AllowedAudiencesVGroupMembers
+func AllowedAudiencesPGroupMembers() *AllowedAudiences {
+ v := AllowedAudiencesVGroupMembers
+ return &v
+}
+
+// AllowedAudiencesPOrganization returns a pointer to AllowedAudiencesVOrganization
+func AllowedAudiencesPOrganization() *AllowedAudiences {
+ v := AllowedAudiencesVOrganization
+ return &v
+}
+
+// AllowedAudiencesPFederatedOrganizations returns a pointer to AllowedAudiencesVFederatedOrganizations
+func AllowedAudiencesPFederatedOrganizations() *AllowedAudiences {
+ v := AllowedAudiencesVFederatedOrganizations
+ return &v
+}
+
+// AllowedAudiencesPEveryone returns a pointer to AllowedAudiencesVEveryone
+func AllowedAudiencesPEveryone() *AllowedAudiences {
+ v := AllowedAudiencesVEveryone
+ return &v
+}
+
+// AllowedAudiencesPUnknownFutureValue returns a pointer to AllowedAudiencesVUnknownFutureValue
+func AllowedAudiencesPUnknownFutureValue() *AllowedAudiences {
+ v := AllowedAudiencesVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AllowedDataLocationInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AllowedDataLocationInfoModel.go
new file mode 100644
index 00000000..f716bfee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AllowedDataLocationInfoModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AllowedDataLocationInfo undocumented
+type AllowedDataLocationInfo struct {
+ // Object is the base model of AllowedDataLocationInfo
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AllowedDataLocationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AllowedDataLocationModel.go
new file mode 100644
index 00000000..81f69264
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AllowedDataLocationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AllowedDataLocation undocumented
+type AllowedDataLocation struct {
+ // Entity is the base model of AllowedDataLocation
+ Entity
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // Location undocumented
+ Location *string `json:"location,omitempty"`
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // Domain undocumented
+ Domain *string `json:"domain,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AllowedDataLocationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AllowedDataLocationRequest.go
new file mode 100644
index 00000000..ececc01e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AllowedDataLocationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AllowedDataLocationRequestBuilder is request builder for AllowedDataLocation
+type AllowedDataLocationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AllowedDataLocationRequest
+func (b *AllowedDataLocationRequestBuilder) Request() *AllowedDataLocationRequest {
+ return &AllowedDataLocationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AllowedDataLocationRequest is request for AllowedDataLocation
+type AllowedDataLocationRequest struct{ BaseRequest }
+
+// Get performs GET request for AllowedDataLocation
+func (r *AllowedDataLocationRequest) Get(ctx context.Context) (resObj *AllowedDataLocation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AllowedDataLocation
+func (r *AllowedDataLocationRequest) Update(ctx context.Context, reqObj *AllowedDataLocation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AllowedDataLocation
+func (r *AllowedDataLocationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AlternativeSecurityIDModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AlternativeSecurityIDModel.go
new file mode 100644
index 00000000..19ce9531
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AlternativeSecurityIDModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AlternativeSecurityID undocumented
+type AlternativeSecurityID struct {
+ // Object is the base model of AlternativeSecurityID
+ Object
+ // Type undocumented
+ Type *int `json:"type,omitempty"`
+ // IdentityProvider undocumented
+ IdentityProvider *string `json:"identityProvider,omitempty"`
+ // Key undocumented
+ Key *Binary `json:"key,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AnalyticsActivityTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AnalyticsActivityTypeEnum.go
new file mode 100644
index 00000000..77a1510c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AnalyticsActivityTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AnalyticsActivityType undocumented
+type AnalyticsActivityType int
+
+const (
+ // AnalyticsActivityTypeVEmail undocumented
+ AnalyticsActivityTypeVEmail AnalyticsActivityType = 0
+ // AnalyticsActivityTypeVMeeting undocumented
+ AnalyticsActivityTypeVMeeting AnalyticsActivityType = 1
+ // AnalyticsActivityTypeVFocus undocumented
+ AnalyticsActivityTypeVFocus AnalyticsActivityType = 2
+ // AnalyticsActivityTypeVChat undocumented
+ AnalyticsActivityTypeVChat AnalyticsActivityType = 3
+ // AnalyticsActivityTypeVCall undocumented
+ AnalyticsActivityTypeVCall AnalyticsActivityType = 4
+)
+
+// AnalyticsActivityTypePEmail returns a pointer to AnalyticsActivityTypeVEmail
+func AnalyticsActivityTypePEmail() *AnalyticsActivityType {
+ v := AnalyticsActivityTypeVEmail
+ return &v
+}
+
+// AnalyticsActivityTypePMeeting returns a pointer to AnalyticsActivityTypeVMeeting
+func AnalyticsActivityTypePMeeting() *AnalyticsActivityType {
+ v := AnalyticsActivityTypeVMeeting
+ return &v
+}
+
+// AnalyticsActivityTypePFocus returns a pointer to AnalyticsActivityTypeVFocus
+func AnalyticsActivityTypePFocus() *AnalyticsActivityType {
+ v := AnalyticsActivityTypeVFocus
+ return &v
+}
+
+// AnalyticsActivityTypePChat returns a pointer to AnalyticsActivityTypeVChat
+func AnalyticsActivityTypePChat() *AnalyticsActivityType {
+ v := AnalyticsActivityTypeVChat
+ return &v
+}
+
+// AnalyticsActivityTypePCall returns a pointer to AnalyticsActivityTypeVCall
+func AnalyticsActivityTypePCall() *AnalyticsActivityType {
+ v := AnalyticsActivityTypeVCall
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidCertificateProfileBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidCertificateProfileBaseModel.go
new file mode 100644
index 00000000..394621f5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidCertificateProfileBaseModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidCertificateProfileBase Android certificate profile base.
+type AndroidCertificateProfileBase struct {
+ // DeviceConfiguration is the base model of AndroidCertificateProfileBase
+ DeviceConfiguration
+ // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99
+ RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
+ // SubjectNameFormat Certificate Subject Name Format.
+ SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"`
+ // SubjectAlternativeNameType Certificate Subject Alternative Name Type.
+ SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"`
+ // CertificateValidityPeriodValue Value for the Certificate Validity Period.
+ CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
+ // CertificateValidityPeriodScale Scale for the Certificate Validity Period.
+ CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
+ // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
+ ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
+ // RootCertificate undocumented
+ RootCertificate *AndroidTrustedRootCertificate `json:"rootCertificate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidCertificateProfileBaseRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidCertificateProfileBaseRequest.go
new file mode 100644
index 00000000..4e3d2c0b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidCertificateProfileBaseRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidCertificateProfileBaseRequestBuilder is request builder for AndroidCertificateProfileBase
+type AndroidCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidCertificateProfileBaseRequest
+func (b *AndroidCertificateProfileBaseRequestBuilder) Request() *AndroidCertificateProfileBaseRequest {
+ return &AndroidCertificateProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidCertificateProfileBaseRequest is request for AndroidCertificateProfileBase
+type AndroidCertificateProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidCertificateProfileBase
+func (r *AndroidCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidCertificateProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidCertificateProfileBase
+func (r *AndroidCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidCertificateProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidCertificateProfileBase
+func (r *AndroidCertificateProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RootCertificate is navigation property
+func (b *AndroidCertificateProfileBaseRequestBuilder) RootCertificate() *AndroidTrustedRootCertificateRequestBuilder {
+ bb := &AndroidTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidCompliancePolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidCompliancePolicyModel.go
new file mode 100644
index 00000000..ee0ebffa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidCompliancePolicyModel.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidCompliancePolicy This class contains compliance settings for Android.
+type AndroidCompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of AndroidCompliancePolicy
+ DeviceCompliancePolicy
+ // PasswordRequired Require a password to unlock device.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordMinimumLength Minimum password length. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordRequiredType Type of characters in password
+ PasswordRequiredType *AndroidRequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 1 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset Number of sign-in failures allowed before factory reset. Valid values 1 to 16
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // SecurityPreventInstallAppsFromUnknownSources Require that devices disallow installation of apps from unknown sources.
+ SecurityPreventInstallAppsFromUnknownSources *bool `json:"securityPreventInstallAppsFromUnknownSources,omitempty"`
+ // SecurityDisableUsbDebugging Disable USB debugging on Android devices.
+ SecurityDisableUsbDebugging *bool `json:"securityDisableUsbDebugging,omitempty"`
+ // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on.
+ SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"`
+ // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection.
+ DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"`
+ // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance.
+ DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"`
+ // SecurityBlockJailbrokenDevices Devices must not be jailbroken or rooted.
+ SecurityBlockJailbrokenDevices *bool `json:"securityBlockJailbrokenDevices,omitempty"`
+ // OsMinimumVersion Minimum Android version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum Android version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // MinAndroidSecurityPatchLevel Minimum Android security patch level.
+ MinAndroidSecurityPatchLevel *string `json:"minAndroidSecurityPatchLevel,omitempty"`
+ // StorageRequireEncryption Require encryption on Android devices.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+ // SecurityRequireSafetyNetAttestationBasicIntegrity Require the device to pass the SafetyNet basic integrity check.
+ SecurityRequireSafetyNetAttestationBasicIntegrity *bool `json:"securityRequireSafetyNetAttestationBasicIntegrity,omitempty"`
+ // SecurityRequireSafetyNetAttestationCertifiedDevice Require the device to pass the SafetyNet certified device check.
+ SecurityRequireSafetyNetAttestationCertifiedDevice *bool `json:"securityRequireSafetyNetAttestationCertifiedDevice,omitempty"`
+ // SecurityRequireGooglePlayServices Require Google Play Services to be installed and enabled on the device.
+ SecurityRequireGooglePlayServices *bool `json:"securityRequireGooglePlayServices,omitempty"`
+ // SecurityRequireUpToDateSecurityProviders Require the device to have up to date security providers. The device will require Google Play Services to be enabled and up to date.
+ SecurityRequireUpToDateSecurityProviders *bool `json:"securityRequireUpToDateSecurityProviders,omitempty"`
+ // SecurityRequireCompanyPortalAppIntegrity Require the device to pass the Company Portal client app runtime integrity check.
+ SecurityRequireCompanyPortalAppIntegrity *bool `json:"securityRequireCompanyPortalAppIntegrity,omitempty"`
+ // ConditionStatementID Condition statement id.
+ ConditionStatementID *string `json:"conditionStatementId,omitempty"`
+ // RestrictedApps Require the device to not have the specified apps installed. This collection can contain a maximum of 100 elements.
+ RestrictedApps []AppListItem `json:"restrictedApps,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidCustomConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidCustomConfigurationModel.go
new file mode 100644
index 00000000..9ff27033
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidCustomConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidCustomConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the androidCustomConfiguration resource.
+type AndroidCustomConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidCustomConfiguration
+ DeviceConfiguration
+ // OMASettings OMA settings. This collection can contain a maximum of 1000 elements.
+ OMASettings []OMASetting `json:"omaSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceComplianceLocalActionBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceComplianceLocalActionBaseModel.go
new file mode 100644
index 00000000..1765985a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceComplianceLocalActionBaseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceComplianceLocalActionBase Local Action Configuration
+type AndroidDeviceComplianceLocalActionBase struct {
+ // Entity is the base model of AndroidDeviceComplianceLocalActionBase
+ Entity
+ // GracePeriodInMinutes Number of minutes to wait till a local action is enforced. Valid values 0 to 2147483647
+ GracePeriodInMinutes *int `json:"gracePeriodInMinutes,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceModel.go
new file mode 100644
index 00000000..95fcbf87
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceComplianceLocalActionLockDevice Local Action Lock Device Only Configuration
+type AndroidDeviceComplianceLocalActionLockDevice struct {
+ // AndroidDeviceComplianceLocalActionBase is the base model of AndroidDeviceComplianceLocalActionLockDevice
+ AndroidDeviceComplianceLocalActionBase
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceWithPasscodeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceWithPasscodeModel.go
new file mode 100644
index 00000000..c87ba7f4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceComplianceLocalActionLockDeviceWithPasscodeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceComplianceLocalActionLockDeviceWithPasscode Local Action Lock Device with Passcode Configuration
+type AndroidDeviceComplianceLocalActionLockDeviceWithPasscode struct {
+ // AndroidDeviceComplianceLocalActionBase is the base model of AndroidDeviceComplianceLocalActionLockDeviceWithPasscode
+ AndroidDeviceComplianceLocalActionBase
+ // Passcode Passcode to reset to Android device. This property is read-only.
+ Passcode *string `json:"passcode,omitempty"`
+ // PasscodeSignInFailureCountBeforeWipe Number of sign in failures before wiping device, the value can be 4-11. Valid values 4 to 11
+ PasscodeSignInFailureCountBeforeWipe *int `json:"passcodeSignInFailureCountBeforeWipe,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerAppAutoUpdatePolicyTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerAppAutoUpdatePolicyTypeEnum.go
new file mode 100644
index 00000000..b88c2e88
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerAppAutoUpdatePolicyTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerAppAutoUpdatePolicyType undocumented
+type AndroidDeviceOwnerAppAutoUpdatePolicyType int
+
+const (
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNotConfigured undocumented
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNotConfigured AndroidDeviceOwnerAppAutoUpdatePolicyType = 0
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVUserChoice undocumented
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypeVUserChoice AndroidDeviceOwnerAppAutoUpdatePolicyType = 1
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNever undocumented
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNever AndroidDeviceOwnerAppAutoUpdatePolicyType = 2
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVWiFiOnly undocumented
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypeVWiFiOnly AndroidDeviceOwnerAppAutoUpdatePolicyType = 3
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVAlways undocumented
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypeVAlways AndroidDeviceOwnerAppAutoUpdatePolicyType = 4
+)
+
+// AndroidDeviceOwnerAppAutoUpdatePolicyTypePNotConfigured returns a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNotConfigured
+func AndroidDeviceOwnerAppAutoUpdatePolicyTypePNotConfigured() *AndroidDeviceOwnerAppAutoUpdatePolicyType {
+ v := AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNotConfigured
+ return &v
+}
+
+// AndroidDeviceOwnerAppAutoUpdatePolicyTypePUserChoice returns a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVUserChoice
+func AndroidDeviceOwnerAppAutoUpdatePolicyTypePUserChoice() *AndroidDeviceOwnerAppAutoUpdatePolicyType {
+ v := AndroidDeviceOwnerAppAutoUpdatePolicyTypeVUserChoice
+ return &v
+}
+
+// AndroidDeviceOwnerAppAutoUpdatePolicyTypePNever returns a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNever
+func AndroidDeviceOwnerAppAutoUpdatePolicyTypePNever() *AndroidDeviceOwnerAppAutoUpdatePolicyType {
+ v := AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNever
+ return &v
+}
+
+// AndroidDeviceOwnerAppAutoUpdatePolicyTypePWiFiOnly returns a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVWiFiOnly
+func AndroidDeviceOwnerAppAutoUpdatePolicyTypePWiFiOnly() *AndroidDeviceOwnerAppAutoUpdatePolicyType {
+ v := AndroidDeviceOwnerAppAutoUpdatePolicyTypeVWiFiOnly
+ return &v
+}
+
+// AndroidDeviceOwnerAppAutoUpdatePolicyTypePAlways returns a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVAlways
+func AndroidDeviceOwnerAppAutoUpdatePolicyTypePAlways() *AndroidDeviceOwnerAppAutoUpdatePolicyType {
+ v := AndroidDeviceOwnerAppAutoUpdatePolicyTypeVAlways
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerBatteryPluggedModeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerBatteryPluggedModeEnum.go
new file mode 100644
index 00000000..3b42ea75
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerBatteryPluggedModeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerBatteryPluggedMode undocumented
+type AndroidDeviceOwnerBatteryPluggedMode int
+
+const (
+ // AndroidDeviceOwnerBatteryPluggedModeVNotConfigured undocumented
+ AndroidDeviceOwnerBatteryPluggedModeVNotConfigured AndroidDeviceOwnerBatteryPluggedMode = 0
+ // AndroidDeviceOwnerBatteryPluggedModeVAc undocumented
+ AndroidDeviceOwnerBatteryPluggedModeVAc AndroidDeviceOwnerBatteryPluggedMode = 1
+ // AndroidDeviceOwnerBatteryPluggedModeVUsb undocumented
+ AndroidDeviceOwnerBatteryPluggedModeVUsb AndroidDeviceOwnerBatteryPluggedMode = 2
+ // AndroidDeviceOwnerBatteryPluggedModeVWireless undocumented
+ AndroidDeviceOwnerBatteryPluggedModeVWireless AndroidDeviceOwnerBatteryPluggedMode = 3
+)
+
+// AndroidDeviceOwnerBatteryPluggedModePNotConfigured returns a pointer to AndroidDeviceOwnerBatteryPluggedModeVNotConfigured
+func AndroidDeviceOwnerBatteryPluggedModePNotConfigured() *AndroidDeviceOwnerBatteryPluggedMode {
+ v := AndroidDeviceOwnerBatteryPluggedModeVNotConfigured
+ return &v
+}
+
+// AndroidDeviceOwnerBatteryPluggedModePAc returns a pointer to AndroidDeviceOwnerBatteryPluggedModeVAc
+func AndroidDeviceOwnerBatteryPluggedModePAc() *AndroidDeviceOwnerBatteryPluggedMode {
+ v := AndroidDeviceOwnerBatteryPluggedModeVAc
+ return &v
+}
+
+// AndroidDeviceOwnerBatteryPluggedModePUsb returns a pointer to AndroidDeviceOwnerBatteryPluggedModeVUsb
+func AndroidDeviceOwnerBatteryPluggedModePUsb() *AndroidDeviceOwnerBatteryPluggedMode {
+ v := AndroidDeviceOwnerBatteryPluggedModeVUsb
+ return &v
+}
+
+// AndroidDeviceOwnerBatteryPluggedModePWireless returns a pointer to AndroidDeviceOwnerBatteryPluggedModeVWireless
+func AndroidDeviceOwnerBatteryPluggedModePWireless() *AndroidDeviceOwnerBatteryPluggedMode {
+ v := AndroidDeviceOwnerBatteryPluggedModeVWireless
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseModel.go
new file mode 100644
index 00000000..a2b0ab72
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerCertificateProfileBase Android Device Owner certificate profile base.
+type AndroidDeviceOwnerCertificateProfileBase struct {
+ // DeviceConfiguration is the base model of AndroidDeviceOwnerCertificateProfileBase
+ DeviceConfiguration
+ // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99
+ RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
+ // SubjectNameFormat Certificate Subject Name Format.
+ SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"`
+ // CertificateValidityPeriodValue Value for the Certificate Validity Period.
+ CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
+ // CertificateValidityPeriodScale Scale for the Certificate Validity Period.
+ CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
+ // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
+ ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
+ // SubjectAlternativeNameType Certificate Subject Alternative Name Type.
+ SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"`
+ // RootCertificate undocumented
+ RootCertificate *AndroidDeviceOwnerTrustedRootCertificate `json:"rootCertificate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseRequest.go
new file mode 100644
index 00000000..dc59494a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerCertificateProfileBaseRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidDeviceOwnerCertificateProfileBaseRequestBuilder is request builder for AndroidDeviceOwnerCertificateProfileBase
+type AndroidDeviceOwnerCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidDeviceOwnerCertificateProfileBaseRequest
+func (b *AndroidDeviceOwnerCertificateProfileBaseRequestBuilder) Request() *AndroidDeviceOwnerCertificateProfileBaseRequest {
+ return &AndroidDeviceOwnerCertificateProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidDeviceOwnerCertificateProfileBaseRequest is request for AndroidDeviceOwnerCertificateProfileBase
+type AndroidDeviceOwnerCertificateProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidDeviceOwnerCertificateProfileBase
+func (r *AndroidDeviceOwnerCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerCertificateProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidDeviceOwnerCertificateProfileBase
+func (r *AndroidDeviceOwnerCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerCertificateProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidDeviceOwnerCertificateProfileBase
+func (r *AndroidDeviceOwnerCertificateProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RootCertificate is navigation property
+func (b *AndroidDeviceOwnerCertificateProfileBaseRequestBuilder) RootCertificate() *AndroidDeviceOwnerTrustedRootCertificateRequestBuilder {
+ bb := &AndroidDeviceOwnerTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerCompliancePolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerCompliancePolicyModel.go
new file mode 100644
index 00000000..a93ab8db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerCompliancePolicyModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerCompliancePolicy This topic provides descriptions of the declared methods, properties and relationships exposed by the AndroidDeviceOwnerCompliancePolicy resource.
+type AndroidDeviceOwnerCompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of AndroidDeviceOwnerCompliancePolicy
+ DeviceCompliancePolicy
+ // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection.
+ DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"`
+ // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance.
+ DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"`
+ // SecurityRequireSafetyNetAttestationBasicIntegrity Require the device to pass the SafetyNet basic integrity check.
+ SecurityRequireSafetyNetAttestationBasicIntegrity *bool `json:"securityRequireSafetyNetAttestationBasicIntegrity,omitempty"`
+ // SecurityRequireSafetyNetAttestationCertifiedDevice Require the device to pass the SafetyNet certified device check.
+ SecurityRequireSafetyNetAttestationCertifiedDevice *bool `json:"securityRequireSafetyNetAttestationCertifiedDevice,omitempty"`
+ // OsMinimumVersion Minimum Android version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum Android version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // MinAndroidSecurityPatchLevel Minimum Android security patch level.
+ MinAndroidSecurityPatchLevel *string `json:"minAndroidSecurityPatchLevel,omitempty"`
+ // PasswordRequired Require a password to unlock device.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordMinimumLength Minimum password length. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinimumLetterCharacters Indicates the minimum number of letter characters required for device password. Valid values 1 to 16
+ PasswordMinimumLetterCharacters *int `json:"passwordMinimumLetterCharacters,omitempty"`
+ // PasswordMinimumLowerCaseCharacters Indicates the minimum number of lower case characters required for device password. Valid values 1 to 16
+ PasswordMinimumLowerCaseCharacters *int `json:"passwordMinimumLowerCaseCharacters,omitempty"`
+ // PasswordMinimumNonLetterCharacters Indicates the minimum number of non-letter characters required for device password. Valid values 1 to 16
+ PasswordMinimumNonLetterCharacters *int `json:"passwordMinimumNonLetterCharacters,omitempty"`
+ // PasswordMinimumNumericCharacters Indicates the minimum number of numeric characters required for device password. Valid values 1 to 16
+ PasswordMinimumNumericCharacters *int `json:"passwordMinimumNumericCharacters,omitempty"`
+ // PasswordMinimumSymbolCharacters Indicates the minimum number of symbol characters required for device password. Valid values 1 to 16
+ PasswordMinimumSymbolCharacters *int `json:"passwordMinimumSymbolCharacters,omitempty"`
+ // PasswordMinimumUpperCaseCharacters Indicates the minimum number of upper case letter characters required for device password. Valid values 1 to 16
+ PasswordMinimumUpperCaseCharacters *int `json:"passwordMinimumUpperCaseCharacters,omitempty"`
+ // PasswordRequiredType Type of characters in password
+ PasswordRequiredType *AndroidDeviceOwnerRequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordPreviousPasswordCountToBlock Number of previous passwords to block. Valid values 1 to 24
+ PasswordPreviousPasswordCountToBlock *int `json:"passwordPreviousPasswordCountToBlock,omitempty"`
+ // StorageRequireEncryption Require encryption on Android devices.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerDefaultAppPermissionPolicyTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerDefaultAppPermissionPolicyTypeEnum.go
new file mode 100644
index 00000000..47ed7c2e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerDefaultAppPermissionPolicyTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerDefaultAppPermissionPolicyType undocumented
+type AndroidDeviceOwnerDefaultAppPermissionPolicyType int
+
+const (
+ // AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVDeviceDefault undocumented
+ AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVDeviceDefault AndroidDeviceOwnerDefaultAppPermissionPolicyType = 0
+ // AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVPrompt undocumented
+ AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVPrompt AndroidDeviceOwnerDefaultAppPermissionPolicyType = 1
+ // AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoGrant undocumented
+ AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoGrant AndroidDeviceOwnerDefaultAppPermissionPolicyType = 2
+ // AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoDeny undocumented
+ AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoDeny AndroidDeviceOwnerDefaultAppPermissionPolicyType = 3
+)
+
+// AndroidDeviceOwnerDefaultAppPermissionPolicyTypePDeviceDefault returns a pointer to AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVDeviceDefault
+func AndroidDeviceOwnerDefaultAppPermissionPolicyTypePDeviceDefault() *AndroidDeviceOwnerDefaultAppPermissionPolicyType {
+ v := AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVDeviceDefault
+ return &v
+}
+
+// AndroidDeviceOwnerDefaultAppPermissionPolicyTypePPrompt returns a pointer to AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVPrompt
+func AndroidDeviceOwnerDefaultAppPermissionPolicyTypePPrompt() *AndroidDeviceOwnerDefaultAppPermissionPolicyType {
+ v := AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVPrompt
+ return &v
+}
+
+// AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoGrant returns a pointer to AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoGrant
+func AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoGrant() *AndroidDeviceOwnerDefaultAppPermissionPolicyType {
+ v := AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoGrant
+ return &v
+}
+
+// AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoDeny returns a pointer to AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoDeny
+func AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoDeny() *AndroidDeviceOwnerDefaultAppPermissionPolicyType {
+ v := AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoDeny
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileAction.go
new file mode 100644
index 00000000..b180719c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileAction.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestParameter undocumented
+type AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestParameter struct {
+}
+
+// AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestParameter undocumented
+type AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestParameter struct {
+ // TokenValidityInSeconds undocumented
+ TokenValidityInSeconds *int `json:"tokenValidityInSeconds,omitempty"`
+}
+
+//
+type AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestBuilder struct{ BaseRequestBuilder }
+
+// RevokeToken action undocumented
+func (b *AndroidDeviceOwnerEnrollmentProfileRequestBuilder) RevokeToken(reqObj *AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestParameter) *AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestBuilder {
+ bb := &AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/revokeToken"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequest struct{ BaseRequest }
+
+//
+func (b *AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestBuilder) Request() *AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequest {
+ return &AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateToken action undocumented
+func (b *AndroidDeviceOwnerEnrollmentProfileRequestBuilder) CreateToken(reqObj *AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestParameter) *AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestBuilder {
+ bb := &AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createToken"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidDeviceOwnerEnrollmentProfileCreateTokenRequest struct{ BaseRequest }
+
+//
+func (b *AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestBuilder) Request() *AndroidDeviceOwnerEnrollmentProfileCreateTokenRequest {
+ return &AndroidDeviceOwnerEnrollmentProfileCreateTokenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidDeviceOwnerEnrollmentProfileCreateTokenRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileModel.go
new file mode 100644
index 00000000..a342919d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AndroidDeviceOwnerEnrollmentProfile Enrollment Profile used to enroll COSU devices using Google's Cloud Management.
+type AndroidDeviceOwnerEnrollmentProfile struct {
+ // Entity is the base model of AndroidDeviceOwnerEnrollmentProfile
+ Entity
+ // AccountID Tenant GUID the enrollment profile belongs to.
+ AccountID *string `json:"accountId,omitempty"`
+ // DisplayName Display name for the enrollment profile.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description for the enrollment profile.
+ Description *string `json:"description,omitempty"`
+ // CreatedDateTime Date time the enrollment profile was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Date time the enrollment profile was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // TokenValue Value of the most recently created token for this enrollment profile.
+ TokenValue *string `json:"tokenValue,omitempty"`
+ // TokenCreationDateTime Date time the most recently created token was created.
+ TokenCreationDateTime *time.Time `json:"tokenCreationDateTime,omitempty"`
+ // TokenExpirationDateTime Date time the most recently created token will expire.
+ TokenExpirationDateTime *time.Time `json:"tokenExpirationDateTime,omitempty"`
+ // EnrolledDeviceCount Total number of Android devices that have enrolled using this enrollment profile.
+ EnrolledDeviceCount *int `json:"enrolledDeviceCount,omitempty"`
+ // QrCodeContent String used to generate a QR code for the token.
+ QrCodeContent *string `json:"qrCodeContent,omitempty"`
+ // QrCodeImage String used to generate a QR code for the token.
+ QrCodeImage *MimeContent `json:"qrCodeImage,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileRequest.go
new file mode 100644
index 00000000..6699185a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerEnrollmentProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidDeviceOwnerEnrollmentProfileRequestBuilder is request builder for AndroidDeviceOwnerEnrollmentProfile
+type AndroidDeviceOwnerEnrollmentProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidDeviceOwnerEnrollmentProfileRequest
+func (b *AndroidDeviceOwnerEnrollmentProfileRequestBuilder) Request() *AndroidDeviceOwnerEnrollmentProfileRequest {
+ return &AndroidDeviceOwnerEnrollmentProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidDeviceOwnerEnrollmentProfileRequest is request for AndroidDeviceOwnerEnrollmentProfile
+type AndroidDeviceOwnerEnrollmentProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidDeviceOwnerEnrollmentProfile
+func (r *AndroidDeviceOwnerEnrollmentProfileRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerEnrollmentProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidDeviceOwnerEnrollmentProfile
+func (r *AndroidDeviceOwnerEnrollmentProfileRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerEnrollmentProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidDeviceOwnerEnrollmentProfile
+func (r *AndroidDeviceOwnerEnrollmentProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationModel.go
new file mode 100644
index 00000000..62cd5053
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerEnterpriseWiFiConfiguration By providing the configurations in this profile you can instruct the Android Device Owner device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user.
+type AndroidDeviceOwnerEnterpriseWiFiConfiguration struct {
+ // AndroidDeviceOwnerWiFiConfiguration is the base model of AndroidDeviceOwnerEnterpriseWiFiConfiguration
+ AndroidDeviceOwnerWiFiConfiguration
+ // EapType Indicates the type of EAP protocol set on the Wi-Fi endpoint (router).
+ EapType *AndroidEapType `json:"eapType,omitempty"`
+ // AuthenticationMethod Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS.
+ AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"`
+ // InnerAuthenticationProtocolForPeap Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForPeap *NonEapAuthenticationMethodForPeap `json:"innerAuthenticationProtocolForPeap,omitempty"`
+ // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS or PEAP. The String provided here is used to mask the username of individual users when they attempt to connect to Wi-Fi network.
+ OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"`
+ // RootCertificateForServerValidation undocumented
+ RootCertificateForServerValidation *AndroidDeviceOwnerTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"`
+ // IdentityCertificateForClientAuthentication undocumented
+ IdentityCertificateForClientAuthentication *AndroidDeviceOwnerCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest.go
new file mode 100644
index 00000000..db75b6ad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidDeviceOwnerEnterpriseWiFiConfigurationRequestBuilder is request builder for AndroidDeviceOwnerEnterpriseWiFiConfiguration
+type AndroidDeviceOwnerEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest
+func (b *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequestBuilder) Request() *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest {
+ return &AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest is request for AndroidDeviceOwnerEnterpriseWiFiConfiguration
+type AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidDeviceOwnerEnterpriseWiFiConfiguration
+func (r *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerEnterpriseWiFiConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidDeviceOwnerEnterpriseWiFiConfiguration
+func (r *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerEnterpriseWiFiConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidDeviceOwnerEnterpriseWiFiConfiguration
+func (r *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityCertificateForClientAuthentication is navigation property
+func (b *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *AndroidDeviceOwnerCertificateProfileBaseRequestBuilder {
+ bb := &AndroidDeviceOwnerCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificateForClientAuthentication"
+ return bb
+}
+
+// RootCertificateForServerValidation is navigation property
+func (b *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequestBuilder) RootCertificateForServerValidation() *AndroidDeviceOwnerTrustedRootCertificateRequestBuilder {
+ bb := &AndroidDeviceOwnerTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificateForServerValidation"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerGeneralDeviceConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerGeneralDeviceConfigurationModel.go
new file mode 100644
index 00000000..c8b2efa7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerGeneralDeviceConfigurationModel.go
@@ -0,0 +1,143 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerGeneralDeviceConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the androidDeviceOwnerGeneralDeviceConfiguration resource.
+type AndroidDeviceOwnerGeneralDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidDeviceOwnerGeneralDeviceConfiguration
+ DeviceConfiguration
+ // AccountsBlockModification Indicates whether or not adding or removing accounts is disabled.
+ AccountsBlockModification *bool `json:"accountsBlockModification,omitempty"`
+ // AppsAllowInstallFromUnknownSources Indicates whether or not the user is allowed to enable to unknown sources setting.
+ AppsAllowInstallFromUnknownSources *bool `json:"appsAllowInstallFromUnknownSources,omitempty"`
+ // AppsAutoUpdatePolicy Indicates the value of the app auto update policy.
+ AppsAutoUpdatePolicy *AndroidDeviceOwnerAppAutoUpdatePolicyType `json:"appsAutoUpdatePolicy,omitempty"`
+ // AppsDefaultPermissionPolicy Indicates the permission policy for requests for runtime permissions if one is not defined for the app specifically.
+ AppsDefaultPermissionPolicy *AndroidDeviceOwnerDefaultAppPermissionPolicyType `json:"appsDefaultPermissionPolicy,omitempty"`
+ // AppsRecommendSkippingFirstUseHints Whether or not to recommend all apps skip any first-time-use hints they may have added.
+ AppsRecommendSkippingFirstUseHints *bool `json:"appsRecommendSkippingFirstUseHints,omitempty"`
+ // BluetoothBlockConfiguration Indicates whether or not to block a user from configuring bluetooth.
+ BluetoothBlockConfiguration *bool `json:"bluetoothBlockConfiguration,omitempty"`
+ // BluetoothBlockContactSharing Indicates whether or not to block a user from sharing contacts via bluetooth.
+ BluetoothBlockContactSharing *bool `json:"bluetoothBlockContactSharing,omitempty"`
+ // CameraBlocked Indicates whether or not to disable the use of the camera.
+ CameraBlocked *bool `json:"cameraBlocked,omitempty"`
+ // CellularBlockWiFiTethering Indicates whether or not to block Wi-Fi tethering.
+ CellularBlockWiFiTethering *bool `json:"cellularBlockWiFiTethering,omitempty"`
+ // DataRoamingBlocked Indicates whether or not to block a user from data roaming.
+ DataRoamingBlocked *bool `json:"dataRoamingBlocked,omitempty"`
+ // DateTimeConfigurationBlocked Indicates whether or not to block the user from manually changing the date or time on the device
+ DateTimeConfigurationBlocked *bool `json:"dateTimeConfigurationBlocked,omitempty"`
+ // FactoryResetDeviceAdministratorEmails List of Google account emails that will be required to authenticate after a device is factory reset before it can be set up.
+ FactoryResetDeviceAdministratorEmails []string `json:"factoryResetDeviceAdministratorEmails,omitempty"`
+ // FactoryResetBlocked Indicates whether or not the factory reset option in settings is disabled.
+ FactoryResetBlocked *bool `json:"factoryResetBlocked,omitempty"`
+ // GlobalProxy Proxy is set up directly with host, port and excluded hosts.
+ GlobalProxy *AndroidDeviceOwnerGlobalProxy `json:"globalProxy,omitempty"`
+ // GoogleAccountsBlocked Indicates whether or not google accounts will be blocked.
+ GoogleAccountsBlocked *bool `json:"googleAccountsBlocked,omitempty"`
+ // KioskModeScreenSaverConfigurationEnabled Whether or not to enable screen saver mode or not in Kiosk Mode.
+ KioskModeScreenSaverConfigurationEnabled *bool `json:"kioskModeScreenSaverConfigurationEnabled,omitempty"`
+ // KioskModeScreenSaverImageURL URL for an image that will be the device's screen saver in Kiosk Mode.
+ KioskModeScreenSaverImageURL *string `json:"kioskModeScreenSaverImageUrl,omitempty"`
+ // KioskModeScreenSaverDisplayTimeInSeconds The number of seconds that the device will display the screen saver for in Kiosk Mode. Valid values 0 to 9999999
+ KioskModeScreenSaverDisplayTimeInSeconds *int `json:"kioskModeScreenSaverDisplayTimeInSeconds,omitempty"`
+ // KioskModeScreenSaverStartDelayInSeconds The number of seconds the device needs to be inactive for before the screen saver is shown in Kiosk Mode. Valid values 1 to 9999999
+ KioskModeScreenSaverStartDelayInSeconds *int `json:"kioskModeScreenSaverStartDelayInSeconds,omitempty"`
+ // KioskModeScreenSaverDetectMediaDisabled Whether or not the device screen should show the screen saver if audio/video is playing in Kiosk Mode.
+ KioskModeScreenSaverDetectMediaDisabled *bool `json:"kioskModeScreenSaverDetectMediaDisabled,omitempty"`
+ // KioskModeApps A list of managed apps that will be shown when the device is in Kiosk Mode. This collection can contain a maximum of 500 elements.
+ KioskModeApps []AppListItem `json:"kioskModeApps,omitempty"`
+ // KioskModeWallpaperURL URL to a publicly accessible image to use for the wallpaper when the device is in Kiosk Mode.
+ KioskModeWallpaperURL *string `json:"kioskModeWallpaperUrl,omitempty"`
+ // KioskModeExitCode Exit code to allow a user to escape from Kiosk Mode when the device is in Kiosk Mode.
+ KioskModeExitCode *string `json:"kioskModeExitCode,omitempty"`
+ // KioskModeVirtualHomeButtonEnabled Whether or not to display a virtual home button when the device is in Kiosk Mode.
+ KioskModeVirtualHomeButtonEnabled *bool `json:"kioskModeVirtualHomeButtonEnabled,omitempty"`
+ // KioskModeVirtualHomeButtonType Indicates whether the virtual home button is a swipe up home button or a floating home button.
+ KioskModeVirtualHomeButtonType *AndroidDeviceOwnerVirtualHomeButtonType `json:"kioskModeVirtualHomeButtonType,omitempty"`
+ // KioskModeBluetoothConfigurationEnabled Whether or not to allow a user to configure Bluetooth settings in Kiosk Mode.
+ KioskModeBluetoothConfigurationEnabled *bool `json:"kioskModeBluetoothConfigurationEnabled,omitempty"`
+ // KioskModeWiFiConfigurationEnabled Whether or not to allow a user to configure Wi-Fi settings in Kiosk Mode.
+ KioskModeWiFiConfigurationEnabled *bool `json:"kioskModeWiFiConfigurationEnabled,omitempty"`
+ // KioskModeFlashlightConfigurationEnabled Whether or not to allow a user to use the flashlight in Kiosk Mode.
+ KioskModeFlashlightConfigurationEnabled *bool `json:"kioskModeFlashlightConfigurationEnabled,omitempty"`
+ // KioskModeMediaVolumeConfigurationEnabled Whether or not to allow a user to change the media volume in Kiosk Mode.
+ KioskModeMediaVolumeConfigurationEnabled *bool `json:"kioskModeMediaVolumeConfigurationEnabled,omitempty"`
+ // MicrophoneForceMute Indicates whether or not to block unmuting the microphone on the device.
+ MicrophoneForceMute *bool `json:"microphoneForceMute,omitempty"`
+ // NetworkEscapeHatchAllowed Indicates whether or not the device will allow connecting to a temporary network connection at boot time.
+ NetworkEscapeHatchAllowed *bool `json:"networkEscapeHatchAllowed,omitempty"`
+ // NfcBlockOutgoingBeam Indicates whether or not to block NFC outgoing beam.
+ NfcBlockOutgoingBeam *bool `json:"nfcBlockOutgoingBeam,omitempty"`
+ // PasswordBlockKeyguard Indicates whether or not the keyguard is disabled.
+ PasswordBlockKeyguard *bool `json:"passwordBlockKeyguard,omitempty"`
+ // PasswordBlockKeyguardFeatures List of device keyguard features to block. This collection can contain a maximum of 7 elements.
+ PasswordBlockKeyguardFeatures []AndroidKeyguardFeature `json:"passwordBlockKeyguardFeatures,omitempty"`
+ // PasswordExpirationDays Indicates the amount of time in seconds that a password can be set for before it expires and a new password will be required. Valid values 1 to 365
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength Indicates the minimum length of the password required on the device. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinimumLetterCharacters Indicates the minimum number of letter characters required for device password. Valid values 1 to 16
+ PasswordMinimumLetterCharacters *int `json:"passwordMinimumLetterCharacters,omitempty"`
+ // PasswordMinimumLowerCaseCharacters Indicates the minimum number of lower case characters required for device password. Valid values 1 to 16
+ PasswordMinimumLowerCaseCharacters *int `json:"passwordMinimumLowerCaseCharacters,omitempty"`
+ // PasswordMinimumNonLetterCharacters Indicates the minimum number of non-letter characters required for device password. Valid values 1 to 16
+ PasswordMinimumNonLetterCharacters *int `json:"passwordMinimumNonLetterCharacters,omitempty"`
+ // PasswordMinimumNumericCharacters Indicates the minimum number of numeric characters required for device password. Valid values 1 to 16
+ PasswordMinimumNumericCharacters *int `json:"passwordMinimumNumericCharacters,omitempty"`
+ // PasswordMinimumSymbolCharacters Indicates the minimum number of symbol characters required for device password. Valid values 1 to 16
+ PasswordMinimumSymbolCharacters *int `json:"passwordMinimumSymbolCharacters,omitempty"`
+ // PasswordMinimumUpperCaseCharacters Indicates the minimum number of upper caseletter characters required for device password. Valid values 1 to 16
+ PasswordMinimumUpperCaseCharacters *int `json:"passwordMinimumUpperCaseCharacters,omitempty"`
+ // PasswordMinutesOfInactivityBeforeScreenTimeout Milliseconds of inactivity before the screen times out.
+ PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasswordPreviousPasswordCountToBlock Indicates the length of password history, where the user will not be able to enter a new password that is the same as any password in the history. Valid values 0 to 24
+ PasswordPreviousPasswordCountToBlock *int `json:"passwordPreviousPasswordCountToBlock,omitempty"`
+ // PasswordRequiredType Indicates the minimum password quality required on the device.
+ PasswordRequiredType *AndroidDeviceOwnerRequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset Indicates the number of times a user can enter an incorrect password before the device is wiped. Valid values 4 to 11
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // PlayStoreMode Indicates the Play Store mode of the device.
+ PlayStoreMode *AndroidDeviceOwnerPlayStoreMode `json:"playStoreMode,omitempty"`
+ // SafeBootBlocked Indicates whether or not rebooting the device into safe boot is disabled.
+ SafeBootBlocked *bool `json:"safeBootBlocked,omitempty"`
+ // ScreenCaptureBlocked Indicates whether or not to disable the capability to take screenshots.
+ ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"`
+ // SecurityAllowDebuggingFeatures Indicates whether or not to block the user from enabling debugging features on the device.
+ SecurityAllowDebuggingFeatures *bool `json:"securityAllowDebuggingFeatures,omitempty"`
+ // SecurityRequireVerifyApps Indicates whether or not verify apps is required.
+ SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"`
+ // StatusBarBlocked Indicates whether or the status bar is disabled, including notifications, quick settings and other screen overlays.
+ StatusBarBlocked *bool `json:"statusBarBlocked,omitempty"`
+ // StayOnModes List of modes in which the device's display will stay powered-on. This collection can contain a maximum of 4 elements.
+ StayOnModes []AndroidDeviceOwnerBatteryPluggedMode `json:"stayOnModes,omitempty"`
+ // StorageAllowUsb Indicates whether or not to allow USB mass storage.
+ StorageAllowUsb *bool `json:"storageAllowUsb,omitempty"`
+ // StorageBlockExternalMedia Indicates whether or not to block external media.
+ StorageBlockExternalMedia *bool `json:"storageBlockExternalMedia,omitempty"`
+ // StorageBlockUsbFileTransfer Indicates whether or not to block USB file transfer.
+ StorageBlockUsbFileTransfer *bool `json:"storageBlockUsbFileTransfer,omitempty"`
+ // SystemUpdateWindowStartMinutesAfterMidnight Indicates the number of minutes after midnight that the system update window starts. Valid values 0 to 1440
+ SystemUpdateWindowStartMinutesAfterMidnight *int `json:"systemUpdateWindowStartMinutesAfterMidnight,omitempty"`
+ // SystemUpdateWindowEndMinutesAfterMidnight Indicates the number of minutes after midnight that the system update window ends. Valid values 0 to 1440
+ SystemUpdateWindowEndMinutesAfterMidnight *int `json:"systemUpdateWindowEndMinutesAfterMidnight,omitempty"`
+ // SystemUpdateInstallType The type of system update configuration.
+ SystemUpdateInstallType *AndroidDeviceOwnerSystemUpdateInstallType `json:"systemUpdateInstallType,omitempty"`
+ // SystemWindowsBlocked Whether or not to block Android system prompt windows, like toasts, phone activities, and system alerts.
+ SystemWindowsBlocked *bool `json:"systemWindowsBlocked,omitempty"`
+ // UsersBlockAdd Indicates whether or not adding users and profiles is disabled.
+ UsersBlockAdd *bool `json:"usersBlockAdd,omitempty"`
+ // UsersBlockRemove Indicates whether or not to disable removing other users from the device.
+ UsersBlockRemove *bool `json:"usersBlockRemove,omitempty"`
+ // VolumeBlockAdjustment Indicates whether or not adjusting the master volume is disabled.
+ VolumeBlockAdjustment *bool `json:"volumeBlockAdjustment,omitempty"`
+ // VpnAlwaysOnPackageIdentifier Android app package name for app that will handle an always-on VPN connection.
+ VpnAlwaysOnPackageIdentifier *string `json:"vpnAlwaysOnPackageIdentifier,omitempty"`
+ // VpnAlwaysOnLockdownMode If an always on VPN package name is specified, whether or not to lock network traffic when that VPN is disconnected.
+ VpnAlwaysOnLockdownMode *bool `json:"vpnAlwaysOnLockdownMode,omitempty"`
+ // WifiBlockEditConfigurations Indicates whether or not to block the user from editing the wifi connection settings.
+ WifiBlockEditConfigurations *bool `json:"wifiBlockEditConfigurations,omitempty"`
+ // WifiBlockEditPolicyDefinedConfigurations Indicates whether or not to block the user from editing just the networks defined by the policy.
+ WifiBlockEditPolicyDefinedConfigurations *bool `json:"wifiBlockEditPolicyDefinedConfigurations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyAutoConfigModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyAutoConfigModel.go
new file mode 100644
index 00000000..161b9bb0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyAutoConfigModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerGlobalProxyAutoConfig undocumented
+type AndroidDeviceOwnerGlobalProxyAutoConfig struct {
+ // AndroidDeviceOwnerGlobalProxy is the base model of AndroidDeviceOwnerGlobalProxyAutoConfig
+ AndroidDeviceOwnerGlobalProxy
+ // ProxyAutoConfigURL The proxy auto-config URL
+ ProxyAutoConfigURL *string `json:"proxyAutoConfigURL,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyDirectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyDirectModel.go
new file mode 100644
index 00000000..e3c00276
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyDirectModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerGlobalProxyDirect undocumented
+type AndroidDeviceOwnerGlobalProxyDirect struct {
+ // AndroidDeviceOwnerGlobalProxy is the base model of AndroidDeviceOwnerGlobalProxyDirect
+ AndroidDeviceOwnerGlobalProxy
+ // Host The host name
+ Host *string `json:"host,omitempty"`
+ // Port The port
+ Port *int `json:"port,omitempty"`
+ // ExcludedHosts The excluded hosts
+ ExcludedHosts []string `json:"excludedHosts,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyModel.go
new file mode 100644
index 00000000..fe5331c9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerGlobalProxyModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerGlobalProxy undocumented
+type AndroidDeviceOwnerGlobalProxy struct {
+ // Object is the base model of AndroidDeviceOwnerGlobalProxy
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerPlayStoreModeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerPlayStoreModeEnum.go
new file mode 100644
index 00000000..143eca86
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerPlayStoreModeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerPlayStoreMode undocumented
+type AndroidDeviceOwnerPlayStoreMode int
+
+const (
+ // AndroidDeviceOwnerPlayStoreModeVNotConfigured undocumented
+ AndroidDeviceOwnerPlayStoreModeVNotConfigured AndroidDeviceOwnerPlayStoreMode = 0
+ // AndroidDeviceOwnerPlayStoreModeVAllowList undocumented
+ AndroidDeviceOwnerPlayStoreModeVAllowList AndroidDeviceOwnerPlayStoreMode = 1
+ // AndroidDeviceOwnerPlayStoreModeVBlockList undocumented
+ AndroidDeviceOwnerPlayStoreModeVBlockList AndroidDeviceOwnerPlayStoreMode = 2
+)
+
+// AndroidDeviceOwnerPlayStoreModePNotConfigured returns a pointer to AndroidDeviceOwnerPlayStoreModeVNotConfigured
+func AndroidDeviceOwnerPlayStoreModePNotConfigured() *AndroidDeviceOwnerPlayStoreMode {
+ v := AndroidDeviceOwnerPlayStoreModeVNotConfigured
+ return &v
+}
+
+// AndroidDeviceOwnerPlayStoreModePAllowList returns a pointer to AndroidDeviceOwnerPlayStoreModeVAllowList
+func AndroidDeviceOwnerPlayStoreModePAllowList() *AndroidDeviceOwnerPlayStoreMode {
+ v := AndroidDeviceOwnerPlayStoreModeVAllowList
+ return &v
+}
+
+// AndroidDeviceOwnerPlayStoreModePBlockList returns a pointer to AndroidDeviceOwnerPlayStoreModeVBlockList
+func AndroidDeviceOwnerPlayStoreModePBlockList() *AndroidDeviceOwnerPlayStoreMode {
+ v := AndroidDeviceOwnerPlayStoreModeVBlockList
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerRequiredPasswordTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerRequiredPasswordTypeEnum.go
new file mode 100644
index 00000000..17620819
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerRequiredPasswordTypeEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerRequiredPasswordType undocumented
+type AndroidDeviceOwnerRequiredPasswordType int
+
+const (
+ // AndroidDeviceOwnerRequiredPasswordTypeVDeviceDefault undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVDeviceDefault AndroidDeviceOwnerRequiredPasswordType = 0
+ // AndroidDeviceOwnerRequiredPasswordTypeVRequired undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVRequired AndroidDeviceOwnerRequiredPasswordType = 1
+ // AndroidDeviceOwnerRequiredPasswordTypeVNumeric undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVNumeric AndroidDeviceOwnerRequiredPasswordType = 2
+ // AndroidDeviceOwnerRequiredPasswordTypeVNumericComplex undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVNumericComplex AndroidDeviceOwnerRequiredPasswordType = 3
+ // AndroidDeviceOwnerRequiredPasswordTypeVAlphabetic undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVAlphabetic AndroidDeviceOwnerRequiredPasswordType = 4
+ // AndroidDeviceOwnerRequiredPasswordTypeVAlphanumeric undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVAlphanumeric AndroidDeviceOwnerRequiredPasswordType = 5
+ // AndroidDeviceOwnerRequiredPasswordTypeVAlphanumericWithSymbols undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVAlphanumericWithSymbols AndroidDeviceOwnerRequiredPasswordType = 6
+ // AndroidDeviceOwnerRequiredPasswordTypeVLowSecurityBiometric undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVLowSecurityBiometric AndroidDeviceOwnerRequiredPasswordType = 7
+ // AndroidDeviceOwnerRequiredPasswordTypeVCustomPassword undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVCustomPassword AndroidDeviceOwnerRequiredPasswordType = 8
+)
+
+// AndroidDeviceOwnerRequiredPasswordTypePDeviceDefault returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVDeviceDefault
+func AndroidDeviceOwnerRequiredPasswordTypePDeviceDefault() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVDeviceDefault
+ return &v
+}
+
+// AndroidDeviceOwnerRequiredPasswordTypePRequired returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVRequired
+func AndroidDeviceOwnerRequiredPasswordTypePRequired() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVRequired
+ return &v
+}
+
+// AndroidDeviceOwnerRequiredPasswordTypePNumeric returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVNumeric
+func AndroidDeviceOwnerRequiredPasswordTypePNumeric() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVNumeric
+ return &v
+}
+
+// AndroidDeviceOwnerRequiredPasswordTypePNumericComplex returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVNumericComplex
+func AndroidDeviceOwnerRequiredPasswordTypePNumericComplex() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVNumericComplex
+ return &v
+}
+
+// AndroidDeviceOwnerRequiredPasswordTypePAlphabetic returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVAlphabetic
+func AndroidDeviceOwnerRequiredPasswordTypePAlphabetic() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVAlphabetic
+ return &v
+}
+
+// AndroidDeviceOwnerRequiredPasswordTypePAlphanumeric returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVAlphanumeric
+func AndroidDeviceOwnerRequiredPasswordTypePAlphanumeric() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVAlphanumeric
+ return &v
+}
+
+// AndroidDeviceOwnerRequiredPasswordTypePAlphanumericWithSymbols returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVAlphanumericWithSymbols
+func AndroidDeviceOwnerRequiredPasswordTypePAlphanumericWithSymbols() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVAlphanumericWithSymbols
+ return &v
+}
+
+// AndroidDeviceOwnerRequiredPasswordTypePLowSecurityBiometric returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVLowSecurityBiometric
+func AndroidDeviceOwnerRequiredPasswordTypePLowSecurityBiometric() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVLowSecurityBiometric
+ return &v
+}
+
+// AndroidDeviceOwnerRequiredPasswordTypePCustomPassword returns a pointer to AndroidDeviceOwnerRequiredPasswordTypeVCustomPassword
+func AndroidDeviceOwnerRequiredPasswordTypePCustomPassword() *AndroidDeviceOwnerRequiredPasswordType {
+ v := AndroidDeviceOwnerRequiredPasswordTypeVCustomPassword
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileModel.go
new file mode 100644
index 00000000..dcf97d08
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerScepCertificateProfile Android Device Owner SCEP certificate profile
+type AndroidDeviceOwnerScepCertificateProfile struct {
+ // AndroidDeviceOwnerCertificateProfileBase is the base model of AndroidDeviceOwnerScepCertificateProfile
+ AndroidDeviceOwnerCertificateProfileBase
+ // ScepServerUrls SCEP Server Url(s)
+ ScepServerUrls []string `json:"scepServerUrls,omitempty"`
+ // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
+ SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"`
+ // KeyUsage SCEP Key Usage
+ KeyUsage *KeyUsages `json:"keyUsage,omitempty"`
+ // KeySize SCEP Key Size
+ KeySize *KeySize `json:"keySize,omitempty"`
+ // HashAlgorithm SCEP Hash Algorithm
+ HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // CertificateStore Target store certificate
+ CertificateStore *CertificateStore `json:"certificateStore,omitempty"`
+ // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.
+ CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileRequest.go
new file mode 100644
index 00000000..c67e7d40
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerScepCertificateProfileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AndroidDeviceOwnerScepCertificateProfileRequestBuilder is request builder for AndroidDeviceOwnerScepCertificateProfile
+type AndroidDeviceOwnerScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidDeviceOwnerScepCertificateProfileRequest
+func (b *AndroidDeviceOwnerScepCertificateProfileRequestBuilder) Request() *AndroidDeviceOwnerScepCertificateProfileRequest {
+ return &AndroidDeviceOwnerScepCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidDeviceOwnerScepCertificateProfileRequest is request for AndroidDeviceOwnerScepCertificateProfile
+type AndroidDeviceOwnerScepCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidDeviceOwnerScepCertificateProfile
+func (r *AndroidDeviceOwnerScepCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerScepCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidDeviceOwnerScepCertificateProfile
+func (r *AndroidDeviceOwnerScepCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerScepCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidDeviceOwnerScepCertificateProfile
+func (r *AndroidDeviceOwnerScepCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidDeviceOwnerScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerSystemUpdateInstallTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerSystemUpdateInstallTypeEnum.go
new file mode 100644
index 00000000..cd45254c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerSystemUpdateInstallTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerSystemUpdateInstallType undocumented
+type AndroidDeviceOwnerSystemUpdateInstallType int
+
+const (
+ // AndroidDeviceOwnerSystemUpdateInstallTypeVDeviceDefault undocumented
+ AndroidDeviceOwnerSystemUpdateInstallTypeVDeviceDefault AndroidDeviceOwnerSystemUpdateInstallType = 0
+ // AndroidDeviceOwnerSystemUpdateInstallTypeVPostpone undocumented
+ AndroidDeviceOwnerSystemUpdateInstallTypeVPostpone AndroidDeviceOwnerSystemUpdateInstallType = 1
+ // AndroidDeviceOwnerSystemUpdateInstallTypeVWindowed undocumented
+ AndroidDeviceOwnerSystemUpdateInstallTypeVWindowed AndroidDeviceOwnerSystemUpdateInstallType = 2
+ // AndroidDeviceOwnerSystemUpdateInstallTypeVAutomatic undocumented
+ AndroidDeviceOwnerSystemUpdateInstallTypeVAutomatic AndroidDeviceOwnerSystemUpdateInstallType = 3
+)
+
+// AndroidDeviceOwnerSystemUpdateInstallTypePDeviceDefault returns a pointer to AndroidDeviceOwnerSystemUpdateInstallTypeVDeviceDefault
+func AndroidDeviceOwnerSystemUpdateInstallTypePDeviceDefault() *AndroidDeviceOwnerSystemUpdateInstallType {
+ v := AndroidDeviceOwnerSystemUpdateInstallTypeVDeviceDefault
+ return &v
+}
+
+// AndroidDeviceOwnerSystemUpdateInstallTypePPostpone returns a pointer to AndroidDeviceOwnerSystemUpdateInstallTypeVPostpone
+func AndroidDeviceOwnerSystemUpdateInstallTypePPostpone() *AndroidDeviceOwnerSystemUpdateInstallType {
+ v := AndroidDeviceOwnerSystemUpdateInstallTypeVPostpone
+ return &v
+}
+
+// AndroidDeviceOwnerSystemUpdateInstallTypePWindowed returns a pointer to AndroidDeviceOwnerSystemUpdateInstallTypeVWindowed
+func AndroidDeviceOwnerSystemUpdateInstallTypePWindowed() *AndroidDeviceOwnerSystemUpdateInstallType {
+ v := AndroidDeviceOwnerSystemUpdateInstallTypeVWindowed
+ return &v
+}
+
+// AndroidDeviceOwnerSystemUpdateInstallTypePAutomatic returns a pointer to AndroidDeviceOwnerSystemUpdateInstallTypeVAutomatic
+func AndroidDeviceOwnerSystemUpdateInstallTypePAutomatic() *AndroidDeviceOwnerSystemUpdateInstallType {
+ v := AndroidDeviceOwnerSystemUpdateInstallTypeVAutomatic
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateModel.go
new file mode 100644
index 00000000..50f68fc3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerTrustedRootCertificate Android Device Owner Trusted Root Certificate configuration profile
+type AndroidDeviceOwnerTrustedRootCertificate struct {
+ // DeviceConfiguration is the base model of AndroidDeviceOwnerTrustedRootCertificate
+ DeviceConfiguration
+ // TrustedRootCertificate Trusted Root Certificate
+ TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"`
+ // CertFileName File name to display in UI.
+ CertFileName *string `json:"certFileName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateRequest.go
new file mode 100644
index 00000000..3738d978
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerTrustedRootCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidDeviceOwnerTrustedRootCertificateRequestBuilder is request builder for AndroidDeviceOwnerTrustedRootCertificate
+type AndroidDeviceOwnerTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidDeviceOwnerTrustedRootCertificateRequest
+func (b *AndroidDeviceOwnerTrustedRootCertificateRequestBuilder) Request() *AndroidDeviceOwnerTrustedRootCertificateRequest {
+ return &AndroidDeviceOwnerTrustedRootCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidDeviceOwnerTrustedRootCertificateRequest is request for AndroidDeviceOwnerTrustedRootCertificate
+type AndroidDeviceOwnerTrustedRootCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidDeviceOwnerTrustedRootCertificate
+func (r *AndroidDeviceOwnerTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerTrustedRootCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidDeviceOwnerTrustedRootCertificate
+func (r *AndroidDeviceOwnerTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerTrustedRootCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidDeviceOwnerTrustedRootCertificate
+func (r *AndroidDeviceOwnerTrustedRootCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerVirtualHomeButtonTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerVirtualHomeButtonTypeEnum.go
new file mode 100644
index 00000000..eb9ec408
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerVirtualHomeButtonTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerVirtualHomeButtonType undocumented
+type AndroidDeviceOwnerVirtualHomeButtonType int
+
+const (
+ // AndroidDeviceOwnerVirtualHomeButtonTypeVNotConfigured undocumented
+ AndroidDeviceOwnerVirtualHomeButtonTypeVNotConfigured AndroidDeviceOwnerVirtualHomeButtonType = 0
+ // AndroidDeviceOwnerVirtualHomeButtonTypeVSwipeUp undocumented
+ AndroidDeviceOwnerVirtualHomeButtonTypeVSwipeUp AndroidDeviceOwnerVirtualHomeButtonType = 1
+ // AndroidDeviceOwnerVirtualHomeButtonTypeVFloating undocumented
+ AndroidDeviceOwnerVirtualHomeButtonTypeVFloating AndroidDeviceOwnerVirtualHomeButtonType = 2
+)
+
+// AndroidDeviceOwnerVirtualHomeButtonTypePNotConfigured returns a pointer to AndroidDeviceOwnerVirtualHomeButtonTypeVNotConfigured
+func AndroidDeviceOwnerVirtualHomeButtonTypePNotConfigured() *AndroidDeviceOwnerVirtualHomeButtonType {
+ v := AndroidDeviceOwnerVirtualHomeButtonTypeVNotConfigured
+ return &v
+}
+
+// AndroidDeviceOwnerVirtualHomeButtonTypePSwipeUp returns a pointer to AndroidDeviceOwnerVirtualHomeButtonTypeVSwipeUp
+func AndroidDeviceOwnerVirtualHomeButtonTypePSwipeUp() *AndroidDeviceOwnerVirtualHomeButtonType {
+ v := AndroidDeviceOwnerVirtualHomeButtonTypeVSwipeUp
+ return &v
+}
+
+// AndroidDeviceOwnerVirtualHomeButtonTypePFloating returns a pointer to AndroidDeviceOwnerVirtualHomeButtonTypeVFloating
+func AndroidDeviceOwnerVirtualHomeButtonTypePFloating() *AndroidDeviceOwnerVirtualHomeButtonType {
+ v := AndroidDeviceOwnerVirtualHomeButtonTypeVFloating
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationModel.go
new file mode 100644
index 00000000..c4b58361
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerVpnConfiguration By providing the configurations in this profile you can instruct the Android Fully Managed device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.
+type AndroidDeviceOwnerVpnConfiguration struct {
+ // VpnConfiguration is the base model of AndroidDeviceOwnerVpnConfiguration
+ VpnConfiguration
+ // ConnectionType Connection type.
+ ConnectionType *AndroidVpnConnectionType `json:"connectionType,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *AndroidDeviceOwnerCertificateProfileBase `json:"identityCertificate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationRequest.go
new file mode 100644
index 00000000..e194310c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerVpnConfigurationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidDeviceOwnerVpnConfigurationRequestBuilder is request builder for AndroidDeviceOwnerVpnConfiguration
+type AndroidDeviceOwnerVpnConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidDeviceOwnerVpnConfigurationRequest
+func (b *AndroidDeviceOwnerVpnConfigurationRequestBuilder) Request() *AndroidDeviceOwnerVpnConfigurationRequest {
+ return &AndroidDeviceOwnerVpnConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidDeviceOwnerVpnConfigurationRequest is request for AndroidDeviceOwnerVpnConfiguration
+type AndroidDeviceOwnerVpnConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidDeviceOwnerVpnConfiguration
+func (r *AndroidDeviceOwnerVpnConfigurationRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerVpnConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidDeviceOwnerVpnConfiguration
+func (r *AndroidDeviceOwnerVpnConfigurationRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerVpnConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidDeviceOwnerVpnConfiguration
+func (r *AndroidDeviceOwnerVpnConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidDeviceOwnerVpnConfigurationRequestBuilder) IdentityCertificate() *AndroidDeviceOwnerCertificateProfileBaseRequestBuilder {
+ bb := &AndroidDeviceOwnerCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerWiFiConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerWiFiConfigurationModel.go
new file mode 100644
index 00000000..1a3794c5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerWiFiConfigurationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerWiFiConfiguration By providing the configurations in this profile you can instruct the Android device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile.
+type AndroidDeviceOwnerWiFiConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidDeviceOwnerWiFiConfiguration
+ DeviceConfiguration
+ // NetworkName Network Name
+ NetworkName *string `json:"networkName,omitempty"`
+ // Ssid This is the name of the Wi-Fi network that is broadcast to all devices.
+ Ssid *string `json:"ssid,omitempty"`
+ // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network.
+ ConnectAutomatically *bool `json:"connectAutomatically,omitempty"`
+ // ConnectWhenNetworkNameIsHidden When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices.
+ ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"`
+ // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type.
+ WiFiSecurityType *AndroidDeviceOwnerWiFiSecurityType `json:"wiFiSecurityType,omitempty"`
+ // PreSharedKey This is the pre-shared key for WPA Personal Wi-Fi network.
+ PreSharedKey *string `json:"preSharedKey,omitempty"`
+ // PreSharedKeyIsSet This is the pre-shared key for WPA Personal Wi-Fi network.
+ PreSharedKeyIsSet *bool `json:"preSharedKeyIsSet,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerWiFiSecurityTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerWiFiSecurityTypeEnum.go
new file mode 100644
index 00000000..8c21afaf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidDeviceOwnerWiFiSecurityTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerWiFiSecurityType undocumented
+type AndroidDeviceOwnerWiFiSecurityType int
+
+const (
+ // AndroidDeviceOwnerWiFiSecurityTypeVOpen undocumented
+ AndroidDeviceOwnerWiFiSecurityTypeVOpen AndroidDeviceOwnerWiFiSecurityType = 0
+ // AndroidDeviceOwnerWiFiSecurityTypeVWep undocumented
+ AndroidDeviceOwnerWiFiSecurityTypeVWep AndroidDeviceOwnerWiFiSecurityType = 1
+ // AndroidDeviceOwnerWiFiSecurityTypeVWpaPersonal undocumented
+ AndroidDeviceOwnerWiFiSecurityTypeVWpaPersonal AndroidDeviceOwnerWiFiSecurityType = 2
+ // AndroidDeviceOwnerWiFiSecurityTypeVWpaEnterprise undocumented
+ AndroidDeviceOwnerWiFiSecurityTypeVWpaEnterprise AndroidDeviceOwnerWiFiSecurityType = 4
+)
+
+// AndroidDeviceOwnerWiFiSecurityTypePOpen returns a pointer to AndroidDeviceOwnerWiFiSecurityTypeVOpen
+func AndroidDeviceOwnerWiFiSecurityTypePOpen() *AndroidDeviceOwnerWiFiSecurityType {
+ v := AndroidDeviceOwnerWiFiSecurityTypeVOpen
+ return &v
+}
+
+// AndroidDeviceOwnerWiFiSecurityTypePWep returns a pointer to AndroidDeviceOwnerWiFiSecurityTypeVWep
+func AndroidDeviceOwnerWiFiSecurityTypePWep() *AndroidDeviceOwnerWiFiSecurityType {
+ v := AndroidDeviceOwnerWiFiSecurityTypeVWep
+ return &v
+}
+
+// AndroidDeviceOwnerWiFiSecurityTypePWpaPersonal returns a pointer to AndroidDeviceOwnerWiFiSecurityTypeVWpaPersonal
+func AndroidDeviceOwnerWiFiSecurityTypePWpaPersonal() *AndroidDeviceOwnerWiFiSecurityType {
+ v := AndroidDeviceOwnerWiFiSecurityTypeVWpaPersonal
+ return &v
+}
+
+// AndroidDeviceOwnerWiFiSecurityTypePWpaEnterprise returns a pointer to AndroidDeviceOwnerWiFiSecurityTypeVWpaEnterprise
+func AndroidDeviceOwnerWiFiSecurityTypePWpaEnterprise() *AndroidDeviceOwnerWiFiSecurityType {
+ v := AndroidDeviceOwnerWiFiSecurityTypeVWpaEnterprise
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEapTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEapTypeEnum.go
new file mode 100644
index 00000000..e92316a6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEapTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidEapType undocumented
+type AndroidEapType int
+
+const (
+ // AndroidEapTypeVEapTLS undocumented
+ AndroidEapTypeVEapTLS AndroidEapType = 13
+ // AndroidEapTypeVEapTtls undocumented
+ AndroidEapTypeVEapTtls AndroidEapType = 21
+ // AndroidEapTypeVPeap undocumented
+ AndroidEapTypeVPeap AndroidEapType = 25
+)
+
+// AndroidEapTypePEapTLS returns a pointer to AndroidEapTypeVEapTLS
+func AndroidEapTypePEapTLS() *AndroidEapType {
+ v := AndroidEapTypeVEapTLS
+ return &v
+}
+
+// AndroidEapTypePEapTtls returns a pointer to AndroidEapTypeVEapTtls
+func AndroidEapTypePEapTtls() *AndroidEapType {
+ v := AndroidEapTypeVEapTtls
+ return &v
+}
+
+// AndroidEapTypePPeap returns a pointer to AndroidEapTypeVPeap
+func AndroidEapTypePPeap() *AndroidEapType {
+ v := AndroidEapTypeVPeap
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEasEmailProfileConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEasEmailProfileConfigurationModel.go
new file mode 100644
index 00000000..2fd73ab8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEasEmailProfileConfigurationModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidEasEmailProfileConfiguration By providing configurations in this profile you can instruct the native email client on KNOX devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync.
+type AndroidEasEmailProfileConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidEasEmailProfileConfiguration
+ DeviceConfiguration
+ // AccountName Exchange ActiveSync account name, displayed to users as name of EAS (this) profile.
+ AccountName *string `json:"accountName,omitempty"`
+ // AuthenticationMethod Authentication method for Exchange ActiveSync.
+ AuthenticationMethod *EasAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // SyncCalendar Toggles syncing the calendar. If set to false calendar is turned off on the device.
+ SyncCalendar *bool `json:"syncCalendar,omitempty"`
+ // SyncContacts Toggles syncing contacts. If set to false contacts are turned off on the device.
+ SyncContacts *bool `json:"syncContacts,omitempty"`
+ // SyncTasks Toggles syncing tasks. If set to false tasks are turned off on the device.
+ SyncTasks *bool `json:"syncTasks,omitempty"`
+ // SyncNotes Toggles syncing notes. If set to false notes are turned off on the device.
+ SyncNotes *bool `json:"syncNotes,omitempty"`
+ // DurationOfEmailToSync Duration of time email should be synced to.
+ DurationOfEmailToSync *EmailSyncDuration `json:"durationOfEmailToSync,omitempty"`
+ // EmailAddressSource Email attribute that is picked from AAD and injected into this profile before installing on the device.
+ EmailAddressSource *UserEmailSource `json:"emailAddressSource,omitempty"`
+ // EmailSyncSchedule Email sync schedule.
+ EmailSyncSchedule *EmailSyncSchedule `json:"emailSyncSchedule,omitempty"`
+ // HostName Exchange location (URL) that the native mail app connects to.
+ HostName *string `json:"hostName,omitempty"`
+ // RequireSmime Indicates whether or not to use S/MIME certificate.
+ RequireSmime *bool `json:"requireSmime,omitempty"`
+ // RequireSsl Indicates whether or not to use SSL.
+ RequireSsl *bool `json:"requireSsl,omitempty"`
+ // UsernameSource Username attribute that is picked from AAD and injected into this profile before installing on the device.
+ UsernameSource *AndroidUsernameSource `json:"usernameSource,omitempty"`
+ // UserDomainNameSource UserDomainname attribute that is picked from AAD and injected into this profile before installing on the device.
+ UserDomainNameSource *DomainNameSource `json:"userDomainNameSource,omitempty"`
+ // CustomDomainName Custom domain name value used while generating an email profile before installing on the device.
+ CustomDomainName *string `json:"customDomainName,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *AndroidCertificateProfileBase `json:"identityCertificate,omitempty"`
+ // SmimeSigningCertificate undocumented
+ SmimeSigningCertificate *AndroidCertificateProfileBase `json:"smimeSigningCertificate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEasEmailProfileConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEasEmailProfileConfigurationRequest.go
new file mode 100644
index 00000000..1d6b6be8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEasEmailProfileConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidEasEmailProfileConfigurationRequestBuilder is request builder for AndroidEasEmailProfileConfiguration
+type AndroidEasEmailProfileConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidEasEmailProfileConfigurationRequest
+func (b *AndroidEasEmailProfileConfigurationRequestBuilder) Request() *AndroidEasEmailProfileConfigurationRequest {
+ return &AndroidEasEmailProfileConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidEasEmailProfileConfigurationRequest is request for AndroidEasEmailProfileConfiguration
+type AndroidEasEmailProfileConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidEasEmailProfileConfiguration
+func (r *AndroidEasEmailProfileConfigurationRequest) Get(ctx context.Context) (resObj *AndroidEasEmailProfileConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidEasEmailProfileConfiguration
+func (r *AndroidEasEmailProfileConfigurationRequest) Update(ctx context.Context, reqObj *AndroidEasEmailProfileConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidEasEmailProfileConfiguration
+func (r *AndroidEasEmailProfileConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidEasEmailProfileConfigurationRequestBuilder) IdentityCertificate() *AndroidCertificateProfileBaseRequestBuilder {
+ bb := &AndroidCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
+
+// SmimeSigningCertificate is navigation property
+func (b *AndroidEasEmailProfileConfigurationRequestBuilder) SmimeSigningCertificate() *AndroidCertificateProfileBaseRequestBuilder {
+ bb := &AndroidCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/smimeSigningCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEnrollmentCompanyCodeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEnrollmentCompanyCodeModel.go
new file mode 100644
index 00000000..026ec221
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEnrollmentCompanyCodeModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidEnrollmentCompanyCode undocumented
+type AndroidEnrollmentCompanyCode struct {
+ // Object is the base model of AndroidEnrollmentCompanyCode
+ Object
+ // EnrollmentToken Enrollment Token used by the User to enroll their device.
+ EnrollmentToken *string `json:"enrollmentToken,omitempty"`
+ // QrCodeContent String used to generate a QR code for the token.
+ QrCodeContent *string `json:"qrCodeContent,omitempty"`
+ // QrCodeImage Generated QR code for the token.
+ QrCodeImage *MimeContent `json:"qrCodeImage,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationModel.go
new file mode 100644
index 00000000..62709875
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidEnterpriseWiFiConfiguration By providing the configurations in this profile you can instruct the Android device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user.
+type AndroidEnterpriseWiFiConfiguration struct {
+ // AndroidWiFiConfiguration is the base model of AndroidEnterpriseWiFiConfiguration
+ AndroidWiFiConfiguration
+ // EapType Indicates the type of EAP protocol set on the Wi-Fi endpoint (router).
+ EapType *AndroidEapType `json:"eapType,omitempty"`
+ // AuthenticationMethod Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS.
+ AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"`
+ // InnerAuthenticationProtocolForPeap Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForPeap *NonEapAuthenticationMethodForPeap `json:"innerAuthenticationProtocolForPeap,omitempty"`
+ // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS or PEAP. The String provided here is used to mask the username of individual users when they attempt to connect to Wi-Fi network.
+ OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"`
+ // UsernameFormatString Username format string used to build the username to connect to wifi
+ UsernameFormatString *string `json:"usernameFormatString,omitempty"`
+ // PasswordFormatString Password format string used to build the password to connect to wifi
+ PasswordFormatString *string `json:"passwordFormatString,omitempty"`
+ // PreSharedKey PreSharedKey used to build the password to connect to wifi
+ PreSharedKey *string `json:"preSharedKey,omitempty"`
+ // RootCertificateForServerValidation undocumented
+ RootCertificateForServerValidation *AndroidTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"`
+ // IdentityCertificateForClientAuthentication undocumented
+ IdentityCertificateForClientAuthentication *AndroidCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationRequest.go
new file mode 100644
index 00000000..66001365
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidEnterpriseWiFiConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidEnterpriseWiFiConfigurationRequestBuilder is request builder for AndroidEnterpriseWiFiConfiguration
+type AndroidEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidEnterpriseWiFiConfigurationRequest
+func (b *AndroidEnterpriseWiFiConfigurationRequestBuilder) Request() *AndroidEnterpriseWiFiConfigurationRequest {
+ return &AndroidEnterpriseWiFiConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidEnterpriseWiFiConfigurationRequest is request for AndroidEnterpriseWiFiConfiguration
+type AndroidEnterpriseWiFiConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidEnterpriseWiFiConfiguration
+func (r *AndroidEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *AndroidEnterpriseWiFiConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidEnterpriseWiFiConfiguration
+func (r *AndroidEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *AndroidEnterpriseWiFiConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidEnterpriseWiFiConfiguration
+func (r *AndroidEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityCertificateForClientAuthentication is navigation property
+func (b *AndroidEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *AndroidCertificateProfileBaseRequestBuilder {
+ bb := &AndroidCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificateForClientAuthentication"
+ return bb
+}
+
+// RootCertificateForServerValidation is navigation property
+func (b *AndroidEnterpriseWiFiConfigurationRequestBuilder) RootCertificateForServerValidation() *AndroidTrustedRootCertificateRequestBuilder {
+ bb := &AndroidTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificateForServerValidation"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemDataTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemDataTypeEnum.go
new file mode 100644
index 00000000..274fac75
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemDataTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkAppConfigurationSchemaItemDataType undocumented
+type AndroidForWorkAppConfigurationSchemaItemDataType int
+
+const (
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVBool undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVBool AndroidForWorkAppConfigurationSchemaItemDataType = 0
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVInteger undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVInteger AndroidForWorkAppConfigurationSchemaItemDataType = 1
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVString undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVString AndroidForWorkAppConfigurationSchemaItemDataType = 2
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVChoice undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVChoice AndroidForWorkAppConfigurationSchemaItemDataType = 3
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVMultiselect undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVMultiselect AndroidForWorkAppConfigurationSchemaItemDataType = 4
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVBundle undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVBundle AndroidForWorkAppConfigurationSchemaItemDataType = 5
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVBundleArray undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVBundleArray AndroidForWorkAppConfigurationSchemaItemDataType = 6
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVHidden undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVHidden AndroidForWorkAppConfigurationSchemaItemDataType = 7
+)
+
+// AndroidForWorkAppConfigurationSchemaItemDataTypePBool returns a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVBool
+func AndroidForWorkAppConfigurationSchemaItemDataTypePBool() *AndroidForWorkAppConfigurationSchemaItemDataType {
+ v := AndroidForWorkAppConfigurationSchemaItemDataTypeVBool
+ return &v
+}
+
+// AndroidForWorkAppConfigurationSchemaItemDataTypePInteger returns a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVInteger
+func AndroidForWorkAppConfigurationSchemaItemDataTypePInteger() *AndroidForWorkAppConfigurationSchemaItemDataType {
+ v := AndroidForWorkAppConfigurationSchemaItemDataTypeVInteger
+ return &v
+}
+
+// AndroidForWorkAppConfigurationSchemaItemDataTypePString returns a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVString
+func AndroidForWorkAppConfigurationSchemaItemDataTypePString() *AndroidForWorkAppConfigurationSchemaItemDataType {
+ v := AndroidForWorkAppConfigurationSchemaItemDataTypeVString
+ return &v
+}
+
+// AndroidForWorkAppConfigurationSchemaItemDataTypePChoice returns a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVChoice
+func AndroidForWorkAppConfigurationSchemaItemDataTypePChoice() *AndroidForWorkAppConfigurationSchemaItemDataType {
+ v := AndroidForWorkAppConfigurationSchemaItemDataTypeVChoice
+ return &v
+}
+
+// AndroidForWorkAppConfigurationSchemaItemDataTypePMultiselect returns a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVMultiselect
+func AndroidForWorkAppConfigurationSchemaItemDataTypePMultiselect() *AndroidForWorkAppConfigurationSchemaItemDataType {
+ v := AndroidForWorkAppConfigurationSchemaItemDataTypeVMultiselect
+ return &v
+}
+
+// AndroidForWorkAppConfigurationSchemaItemDataTypePBundle returns a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVBundle
+func AndroidForWorkAppConfigurationSchemaItemDataTypePBundle() *AndroidForWorkAppConfigurationSchemaItemDataType {
+ v := AndroidForWorkAppConfigurationSchemaItemDataTypeVBundle
+ return &v
+}
+
+// AndroidForWorkAppConfigurationSchemaItemDataTypePBundleArray returns a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVBundleArray
+func AndroidForWorkAppConfigurationSchemaItemDataTypePBundleArray() *AndroidForWorkAppConfigurationSchemaItemDataType {
+ v := AndroidForWorkAppConfigurationSchemaItemDataTypeVBundleArray
+ return &v
+}
+
+// AndroidForWorkAppConfigurationSchemaItemDataTypePHidden returns a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVHidden
+func AndroidForWorkAppConfigurationSchemaItemDataTypePHidden() *AndroidForWorkAppConfigurationSchemaItemDataType {
+ v := AndroidForWorkAppConfigurationSchemaItemDataTypeVHidden
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemModel.go
new file mode 100644
index 00000000..be79762b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaItemModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkAppConfigurationSchemaItem undocumented
+type AndroidForWorkAppConfigurationSchemaItem struct {
+ // Object is the base model of AndroidForWorkAppConfigurationSchemaItem
+ Object
+ // SchemaItemKey Unique key the application uses to identify the item
+ SchemaItemKey *string `json:"schemaItemKey,omitempty"`
+ // DisplayName Human readable name
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of what the item controls within the application
+ Description *string `json:"description,omitempty"`
+ // DefaultBoolValue Default value for boolean type items, if specified by the app developer
+ DefaultBoolValue *bool `json:"defaultBoolValue,omitempty"`
+ // DefaultIntValue Default value for integer type items, if specified by the app developer
+ DefaultIntValue *int `json:"defaultIntValue,omitempty"`
+ // DefaultStringValue Default value for string type items, if specified by the app developer
+ DefaultStringValue *string `json:"defaultStringValue,omitempty"`
+ // DefaultStringArrayValue Default value for string array type items, if specified by the app developer
+ DefaultStringArrayValue []string `json:"defaultStringArrayValue,omitempty"`
+ // DataType The type of value this item describes
+ DataType *AndroidForWorkAppConfigurationSchemaItemDataType `json:"dataType,omitempty"`
+ // Selections List of human readable name/value pairs for the valid values that can be set for this item (Choice and Multiselect items only)
+ Selections []KeyValuePair `json:"selections,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaModel.go
new file mode 100644
index 00000000..f8186476
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkAppConfigurationSchema Schema describing an Android for Work application's custom configurations.
+type AndroidForWorkAppConfigurationSchema struct {
+ // Entity is the base model of AndroidForWorkAppConfigurationSchema
+ Entity
+ // ExampleJSON UTF8 encoded byte array containing example JSON string conforming to this schema that demonstrates how to set the configuration for this app
+ ExampleJSON *Binary `json:"exampleJson,omitempty"`
+ // SchemaItems Collection of items each representing a named configuration option in the schema
+ SchemaItems []AndroidForWorkAppConfigurationSchemaItem `json:"schemaItems,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaRequest.go
new file mode 100644
index 00000000..6683a07c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkAppConfigurationSchemaRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidForWorkAppConfigurationSchemaRequestBuilder is request builder for AndroidForWorkAppConfigurationSchema
+type AndroidForWorkAppConfigurationSchemaRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkAppConfigurationSchemaRequest
+func (b *AndroidForWorkAppConfigurationSchemaRequestBuilder) Request() *AndroidForWorkAppConfigurationSchemaRequest {
+ return &AndroidForWorkAppConfigurationSchemaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkAppConfigurationSchemaRequest is request for AndroidForWorkAppConfigurationSchema
+type AndroidForWorkAppConfigurationSchemaRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkAppConfigurationSchema
+func (r *AndroidForWorkAppConfigurationSchemaRequest) Get(ctx context.Context) (resObj *AndroidForWorkAppConfigurationSchema, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkAppConfigurationSchema
+func (r *AndroidForWorkAppConfigurationSchemaRequest) Update(ctx context.Context, reqObj *AndroidForWorkAppConfigurationSchema) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkAppConfigurationSchema
+func (r *AndroidForWorkAppConfigurationSchemaRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkAppModel.go
new file mode 100644
index 00000000..9abb37f7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkAppModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkApp Contains properties and inherited properties for Android for Work (AFW) Apps.
+type AndroidForWorkApp struct {
+ // MobileApp is the base model of AndroidForWorkApp
+ MobileApp
+ // PackageID The package identifier.
+ PackageID *string `json:"packageId,omitempty"`
+ // AppIdentifier The Identity Name.
+ AppIdentifier *string `json:"appIdentifier,omitempty"`
+ // UsedLicenseCount The number of VPP licenses in use.
+ UsedLicenseCount *int `json:"usedLicenseCount,omitempty"`
+ // TotalLicenseCount The total number of VPP licenses.
+ TotalLicenseCount *int `json:"totalLicenseCount,omitempty"`
+ // AppStoreURL The Play for Work Store app URL.
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkBindStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkBindStatusEnum.go
new file mode 100644
index 00000000..2a68c111
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkBindStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkBindStatus undocumented
+type AndroidForWorkBindStatus int
+
+const (
+ // AndroidForWorkBindStatusVNotBound undocumented
+ AndroidForWorkBindStatusVNotBound AndroidForWorkBindStatus = 0
+ // AndroidForWorkBindStatusVBound undocumented
+ AndroidForWorkBindStatusVBound AndroidForWorkBindStatus = 1
+ // AndroidForWorkBindStatusVBoundAndValidated undocumented
+ AndroidForWorkBindStatusVBoundAndValidated AndroidForWorkBindStatus = 2
+ // AndroidForWorkBindStatusVUnbinding undocumented
+ AndroidForWorkBindStatusVUnbinding AndroidForWorkBindStatus = 3
+)
+
+// AndroidForWorkBindStatusPNotBound returns a pointer to AndroidForWorkBindStatusVNotBound
+func AndroidForWorkBindStatusPNotBound() *AndroidForWorkBindStatus {
+ v := AndroidForWorkBindStatusVNotBound
+ return &v
+}
+
+// AndroidForWorkBindStatusPBound returns a pointer to AndroidForWorkBindStatusVBound
+func AndroidForWorkBindStatusPBound() *AndroidForWorkBindStatus {
+ v := AndroidForWorkBindStatusVBound
+ return &v
+}
+
+// AndroidForWorkBindStatusPBoundAndValidated returns a pointer to AndroidForWorkBindStatusVBoundAndValidated
+func AndroidForWorkBindStatusPBoundAndValidated() *AndroidForWorkBindStatus {
+ v := AndroidForWorkBindStatusVBoundAndValidated
+ return &v
+}
+
+// AndroidForWorkBindStatusPUnbinding returns a pointer to AndroidForWorkBindStatusVUnbinding
+func AndroidForWorkBindStatusPUnbinding() *AndroidForWorkBindStatus {
+ v := AndroidForWorkBindStatusVUnbinding
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkCertificateProfileBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkCertificateProfileBaseModel.go
new file mode 100644
index 00000000..7d9ec301
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkCertificateProfileBaseModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkCertificateProfileBase Android For Work certificate profile base.
+type AndroidForWorkCertificateProfileBase struct {
+ // DeviceConfiguration is the base model of AndroidForWorkCertificateProfileBase
+ DeviceConfiguration
+ // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99
+ RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
+ // SubjectNameFormat Certificate Subject Name Format.
+ SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"`
+ // CertificateValidityPeriodValue Value for the Certificate Validity Period.
+ CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
+ // CertificateValidityPeriodScale Scale for the Certificate Validity Period.
+ CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
+ // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
+ ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
+ // SubjectAlternativeNameType Certificate Subject Alternative Name Type.
+ SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"`
+ // RootCertificate undocumented
+ RootCertificate *AndroidForWorkTrustedRootCertificate `json:"rootCertificate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkCertificateProfileBaseRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkCertificateProfileBaseRequest.go
new file mode 100644
index 00000000..996db773
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkCertificateProfileBaseRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidForWorkCertificateProfileBaseRequestBuilder is request builder for AndroidForWorkCertificateProfileBase
+type AndroidForWorkCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkCertificateProfileBaseRequest
+func (b *AndroidForWorkCertificateProfileBaseRequestBuilder) Request() *AndroidForWorkCertificateProfileBaseRequest {
+ return &AndroidForWorkCertificateProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkCertificateProfileBaseRequest is request for AndroidForWorkCertificateProfileBase
+type AndroidForWorkCertificateProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkCertificateProfileBase
+func (r *AndroidForWorkCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidForWorkCertificateProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkCertificateProfileBase
+func (r *AndroidForWorkCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidForWorkCertificateProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkCertificateProfileBase
+func (r *AndroidForWorkCertificateProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RootCertificate is navigation property
+func (b *AndroidForWorkCertificateProfileBaseRequestBuilder) RootCertificate() *AndroidForWorkTrustedRootCertificateRequestBuilder {
+ bb := &AndroidForWorkTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkCompliancePolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkCompliancePolicyModel.go
new file mode 100644
index 00000000..94760046
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkCompliancePolicyModel.go
@@ -0,0 +1,53 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkCompliancePolicy This class contains compliance settings for Android for Work.
+type AndroidForWorkCompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of AndroidForWorkCompliancePolicy
+ DeviceCompliancePolicy
+ // PasswordRequired Require a password to unlock device.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordMinimumLength Minimum password length. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordRequiredType Type of characters in password
+ PasswordRequiredType *AndroidRequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 1 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset Number of sign-in failures allowed before factory reset. Valid values 1 to 16
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // SecurityPreventInstallAppsFromUnknownSources Require that devices disallow installation of apps from unknown sources.
+ SecurityPreventInstallAppsFromUnknownSources *bool `json:"securityPreventInstallAppsFromUnknownSources,omitempty"`
+ // SecurityDisableUsbDebugging Disable USB debugging on Android devices.
+ SecurityDisableUsbDebugging *bool `json:"securityDisableUsbDebugging,omitempty"`
+ // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on.
+ SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"`
+ // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection.
+ DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"`
+ // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance.
+ DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"`
+ // SecurityBlockJailbrokenDevices Devices must not be jailbroken or rooted.
+ SecurityBlockJailbrokenDevices *bool `json:"securityBlockJailbrokenDevices,omitempty"`
+ // OsMinimumVersion Minimum Android version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum Android version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // MinAndroidSecurityPatchLevel Minimum Android security patch level.
+ MinAndroidSecurityPatchLevel *string `json:"minAndroidSecurityPatchLevel,omitempty"`
+ // StorageRequireEncryption Require encryption on Android devices.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+ // SecurityRequireSafetyNetAttestationBasicIntegrity Require the device to pass the SafetyNet basic integrity check.
+ SecurityRequireSafetyNetAttestationBasicIntegrity *bool `json:"securityRequireSafetyNetAttestationBasicIntegrity,omitempty"`
+ // SecurityRequireSafetyNetAttestationCertifiedDevice Require the device to pass the SafetyNet certified device check.
+ SecurityRequireSafetyNetAttestationCertifiedDevice *bool `json:"securityRequireSafetyNetAttestationCertifiedDevice,omitempty"`
+ // SecurityRequireGooglePlayServices Require Google Play Services to be installed and enabled on the device.
+ SecurityRequireGooglePlayServices *bool `json:"securityRequireGooglePlayServices,omitempty"`
+ // SecurityRequireUpToDateSecurityProviders Require the device to have up to date security providers. The device will require Google Play Services to be enabled and up to date.
+ SecurityRequireUpToDateSecurityProviders *bool `json:"securityRequireUpToDateSecurityProviders,omitempty"`
+ // SecurityRequireCompanyPortalAppIntegrity Require the device to pass the Company Portal client app runtime integrity check.
+ SecurityRequireCompanyPortalAppIntegrity *bool `json:"securityRequireCompanyPortalAppIntegrity,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkCrossProfileDataSharingTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkCrossProfileDataSharingTypeEnum.go
new file mode 100644
index 00000000..258a7f77
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkCrossProfileDataSharingTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkCrossProfileDataSharingType undocumented
+type AndroidForWorkCrossProfileDataSharingType int
+
+const (
+ // AndroidForWorkCrossProfileDataSharingTypeVDeviceDefault undocumented
+ AndroidForWorkCrossProfileDataSharingTypeVDeviceDefault AndroidForWorkCrossProfileDataSharingType = 0
+ // AndroidForWorkCrossProfileDataSharingTypeVPreventAny undocumented
+ AndroidForWorkCrossProfileDataSharingTypeVPreventAny AndroidForWorkCrossProfileDataSharingType = 1
+ // AndroidForWorkCrossProfileDataSharingTypeVAllowPersonalToWork undocumented
+ AndroidForWorkCrossProfileDataSharingTypeVAllowPersonalToWork AndroidForWorkCrossProfileDataSharingType = 2
+ // AndroidForWorkCrossProfileDataSharingTypeVNoRestrictions undocumented
+ AndroidForWorkCrossProfileDataSharingTypeVNoRestrictions AndroidForWorkCrossProfileDataSharingType = 3
+)
+
+// AndroidForWorkCrossProfileDataSharingTypePDeviceDefault returns a pointer to AndroidForWorkCrossProfileDataSharingTypeVDeviceDefault
+func AndroidForWorkCrossProfileDataSharingTypePDeviceDefault() *AndroidForWorkCrossProfileDataSharingType {
+ v := AndroidForWorkCrossProfileDataSharingTypeVDeviceDefault
+ return &v
+}
+
+// AndroidForWorkCrossProfileDataSharingTypePPreventAny returns a pointer to AndroidForWorkCrossProfileDataSharingTypeVPreventAny
+func AndroidForWorkCrossProfileDataSharingTypePPreventAny() *AndroidForWorkCrossProfileDataSharingType {
+ v := AndroidForWorkCrossProfileDataSharingTypeVPreventAny
+ return &v
+}
+
+// AndroidForWorkCrossProfileDataSharingTypePAllowPersonalToWork returns a pointer to AndroidForWorkCrossProfileDataSharingTypeVAllowPersonalToWork
+func AndroidForWorkCrossProfileDataSharingTypePAllowPersonalToWork() *AndroidForWorkCrossProfileDataSharingType {
+ v := AndroidForWorkCrossProfileDataSharingTypeVAllowPersonalToWork
+ return &v
+}
+
+// AndroidForWorkCrossProfileDataSharingTypePNoRestrictions returns a pointer to AndroidForWorkCrossProfileDataSharingTypeVNoRestrictions
+func AndroidForWorkCrossProfileDataSharingTypePNoRestrictions() *AndroidForWorkCrossProfileDataSharingType {
+ v := AndroidForWorkCrossProfileDataSharingTypeVNoRestrictions
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkCustomConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkCustomConfigurationModel.go
new file mode 100644
index 00000000..3ba4109d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkCustomConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkCustomConfiguration Android For Work custom configuration
+type AndroidForWorkCustomConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidForWorkCustomConfiguration
+ DeviceConfiguration
+ // OMASettings OMA settings. This collection can contain a maximum of 500 elements.
+ OMASettings []OMASetting `json:"omaSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkDefaultAppPermissionPolicyTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkDefaultAppPermissionPolicyTypeEnum.go
new file mode 100644
index 00000000..f983621a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkDefaultAppPermissionPolicyTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkDefaultAppPermissionPolicyType undocumented
+type AndroidForWorkDefaultAppPermissionPolicyType int
+
+const (
+ // AndroidForWorkDefaultAppPermissionPolicyTypeVDeviceDefault undocumented
+ AndroidForWorkDefaultAppPermissionPolicyTypeVDeviceDefault AndroidForWorkDefaultAppPermissionPolicyType = 0
+ // AndroidForWorkDefaultAppPermissionPolicyTypeVPrompt undocumented
+ AndroidForWorkDefaultAppPermissionPolicyTypeVPrompt AndroidForWorkDefaultAppPermissionPolicyType = 1
+ // AndroidForWorkDefaultAppPermissionPolicyTypeVAutoGrant undocumented
+ AndroidForWorkDefaultAppPermissionPolicyTypeVAutoGrant AndroidForWorkDefaultAppPermissionPolicyType = 2
+ // AndroidForWorkDefaultAppPermissionPolicyTypeVAutoDeny undocumented
+ AndroidForWorkDefaultAppPermissionPolicyTypeVAutoDeny AndroidForWorkDefaultAppPermissionPolicyType = 3
+)
+
+// AndroidForWorkDefaultAppPermissionPolicyTypePDeviceDefault returns a pointer to AndroidForWorkDefaultAppPermissionPolicyTypeVDeviceDefault
+func AndroidForWorkDefaultAppPermissionPolicyTypePDeviceDefault() *AndroidForWorkDefaultAppPermissionPolicyType {
+ v := AndroidForWorkDefaultAppPermissionPolicyTypeVDeviceDefault
+ return &v
+}
+
+// AndroidForWorkDefaultAppPermissionPolicyTypePPrompt returns a pointer to AndroidForWorkDefaultAppPermissionPolicyTypeVPrompt
+func AndroidForWorkDefaultAppPermissionPolicyTypePPrompt() *AndroidForWorkDefaultAppPermissionPolicyType {
+ v := AndroidForWorkDefaultAppPermissionPolicyTypeVPrompt
+ return &v
+}
+
+// AndroidForWorkDefaultAppPermissionPolicyTypePAutoGrant returns a pointer to AndroidForWorkDefaultAppPermissionPolicyTypeVAutoGrant
+func AndroidForWorkDefaultAppPermissionPolicyTypePAutoGrant() *AndroidForWorkDefaultAppPermissionPolicyType {
+ v := AndroidForWorkDefaultAppPermissionPolicyTypeVAutoGrant
+ return &v
+}
+
+// AndroidForWorkDefaultAppPermissionPolicyTypePAutoDeny returns a pointer to AndroidForWorkDefaultAppPermissionPolicyTypeVAutoDeny
+func AndroidForWorkDefaultAppPermissionPolicyTypePAutoDeny() *AndroidForWorkDefaultAppPermissionPolicyType {
+ v := AndroidForWorkDefaultAppPermissionPolicyTypeVAutoDeny
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseModel.go
new file mode 100644
index 00000000..490a4166
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkEasEmailProfileBase Base for Android For Work EAS Email profiles
+type AndroidForWorkEasEmailProfileBase struct {
+ // DeviceConfiguration is the base model of AndroidForWorkEasEmailProfileBase
+ DeviceConfiguration
+ // AuthenticationMethod Authentication method for Exchange ActiveSync.
+ AuthenticationMethod *EasAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // DurationOfEmailToSync Duration of time email should be synced to.
+ DurationOfEmailToSync *EmailSyncDuration `json:"durationOfEmailToSync,omitempty"`
+ // EmailAddressSource Email attribute that is picked from AAD and injected into this profile before installing on the device.
+ EmailAddressSource *UserEmailSource `json:"emailAddressSource,omitempty"`
+ // HostName Exchange location (URL) that the mail app connects to.
+ HostName *string `json:"hostName,omitempty"`
+ // RequireSsl Indicates whether or not to use SSL.
+ RequireSsl *bool `json:"requireSsl,omitempty"`
+ // UsernameSource Username attribute that is picked from AAD and injected into this profile before installing on the device.
+ UsernameSource *AndroidUsernameSource `json:"usernameSource,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *AndroidForWorkCertificateProfileBase `json:"identityCertificate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseRequest.go
new file mode 100644
index 00000000..930a56f8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEasEmailProfileBaseRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidForWorkEasEmailProfileBaseRequestBuilder is request builder for AndroidForWorkEasEmailProfileBase
+type AndroidForWorkEasEmailProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkEasEmailProfileBaseRequest
+func (b *AndroidForWorkEasEmailProfileBaseRequestBuilder) Request() *AndroidForWorkEasEmailProfileBaseRequest {
+ return &AndroidForWorkEasEmailProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkEasEmailProfileBaseRequest is request for AndroidForWorkEasEmailProfileBase
+type AndroidForWorkEasEmailProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkEasEmailProfileBase
+func (r *AndroidForWorkEasEmailProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidForWorkEasEmailProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkEasEmailProfileBase
+func (r *AndroidForWorkEasEmailProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidForWorkEasEmailProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkEasEmailProfileBase
+func (r *AndroidForWorkEasEmailProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidForWorkEasEmailProfileBaseRequestBuilder) IdentityCertificate() *AndroidForWorkCertificateProfileBaseRequestBuilder {
+ bb := &AndroidForWorkCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnrollmentProfileAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnrollmentProfileAction.go
new file mode 100644
index 00000000..2d6829b4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnrollmentProfileAction.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidForWorkEnrollmentProfileRevokeTokenRequestParameter undocumented
+type AndroidForWorkEnrollmentProfileRevokeTokenRequestParameter struct {
+}
+
+// AndroidForWorkEnrollmentProfileCreateTokenRequestParameter undocumented
+type AndroidForWorkEnrollmentProfileCreateTokenRequestParameter struct {
+ // TokenValidityInSeconds undocumented
+ TokenValidityInSeconds *int `json:"tokenValidityInSeconds,omitempty"`
+}
+
+//
+type AndroidForWorkEnrollmentProfileRevokeTokenRequestBuilder struct{ BaseRequestBuilder }
+
+// RevokeToken action undocumented
+func (b *AndroidForWorkEnrollmentProfileRequestBuilder) RevokeToken(reqObj *AndroidForWorkEnrollmentProfileRevokeTokenRequestParameter) *AndroidForWorkEnrollmentProfileRevokeTokenRequestBuilder {
+ bb := &AndroidForWorkEnrollmentProfileRevokeTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/revokeToken"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidForWorkEnrollmentProfileRevokeTokenRequest struct{ BaseRequest }
+
+//
+func (b *AndroidForWorkEnrollmentProfileRevokeTokenRequestBuilder) Request() *AndroidForWorkEnrollmentProfileRevokeTokenRequest {
+ return &AndroidForWorkEnrollmentProfileRevokeTokenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidForWorkEnrollmentProfileRevokeTokenRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidForWorkEnrollmentProfileCreateTokenRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateToken action undocumented
+func (b *AndroidForWorkEnrollmentProfileRequestBuilder) CreateToken(reqObj *AndroidForWorkEnrollmentProfileCreateTokenRequestParameter) *AndroidForWorkEnrollmentProfileCreateTokenRequestBuilder {
+ bb := &AndroidForWorkEnrollmentProfileCreateTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createToken"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidForWorkEnrollmentProfileCreateTokenRequest struct{ BaseRequest }
+
+//
+func (b *AndroidForWorkEnrollmentProfileCreateTokenRequestBuilder) Request() *AndroidForWorkEnrollmentProfileCreateTokenRequest {
+ return &AndroidForWorkEnrollmentProfileCreateTokenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidForWorkEnrollmentProfileCreateTokenRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnrollmentProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnrollmentProfileModel.go
new file mode 100644
index 00000000..e2f05232
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnrollmentProfileModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AndroidForWorkEnrollmentProfile Enrollment Profile used to enroll COSU devices using Google's Cloud Management.
+type AndroidForWorkEnrollmentProfile struct {
+ // Entity is the base model of AndroidForWorkEnrollmentProfile
+ Entity
+ // AccountID Tenant GUID the enrollment profile belongs to.
+ AccountID *string `json:"accountId,omitempty"`
+ // DisplayName Display name for the enrollment profile.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description for the enrollment profile.
+ Description *string `json:"description,omitempty"`
+ // CreatedDateTime Date time the enrollment profile was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Date time the enrollment profile was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // TokenValue Value of the most recently created token for this enrollment profile.
+ TokenValue *string `json:"tokenValue,omitempty"`
+ // TokenExpirationDateTime Date time the most recently created token will expire.
+ TokenExpirationDateTime *time.Time `json:"tokenExpirationDateTime,omitempty"`
+ // EnrolledDeviceCount Total number of Android devices that have enrolled using this enrollment profile.
+ EnrolledDeviceCount *int `json:"enrolledDeviceCount,omitempty"`
+ // QrCodeContent String used to generate a QR code for the token.
+ QrCodeContent *string `json:"qrCodeContent,omitempty"`
+ // QrCodeImage String used to generate a QR code for the token.
+ QrCodeImage *MimeContent `json:"qrCodeImage,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnrollmentProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnrollmentProfileRequest.go
new file mode 100644
index 00000000..7a5da684
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnrollmentProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidForWorkEnrollmentProfileRequestBuilder is request builder for AndroidForWorkEnrollmentProfile
+type AndroidForWorkEnrollmentProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkEnrollmentProfileRequest
+func (b *AndroidForWorkEnrollmentProfileRequestBuilder) Request() *AndroidForWorkEnrollmentProfileRequest {
+ return &AndroidForWorkEnrollmentProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkEnrollmentProfileRequest is request for AndroidForWorkEnrollmentProfile
+type AndroidForWorkEnrollmentProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkEnrollmentProfile
+func (r *AndroidForWorkEnrollmentProfileRequest) Get(ctx context.Context) (resObj *AndroidForWorkEnrollmentProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkEnrollmentProfile
+func (r *AndroidForWorkEnrollmentProfileRequest) Update(ctx context.Context, reqObj *AndroidForWorkEnrollmentProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkEnrollmentProfile
+func (r *AndroidForWorkEnrollmentProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnrollmentTargetEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnrollmentTargetEnum.go
new file mode 100644
index 00000000..a2654248
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnrollmentTargetEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkEnrollmentTarget undocumented
+type AndroidForWorkEnrollmentTarget int
+
+const (
+ // AndroidForWorkEnrollmentTargetVNone undocumented
+ AndroidForWorkEnrollmentTargetVNone AndroidForWorkEnrollmentTarget = 0
+ // AndroidForWorkEnrollmentTargetVAll undocumented
+ AndroidForWorkEnrollmentTargetVAll AndroidForWorkEnrollmentTarget = 1
+ // AndroidForWorkEnrollmentTargetVTargeted undocumented
+ AndroidForWorkEnrollmentTargetVTargeted AndroidForWorkEnrollmentTarget = 2
+ // AndroidForWorkEnrollmentTargetVTargetedAsEnrollmentRestrictions undocumented
+ AndroidForWorkEnrollmentTargetVTargetedAsEnrollmentRestrictions AndroidForWorkEnrollmentTarget = 3
+)
+
+// AndroidForWorkEnrollmentTargetPNone returns a pointer to AndroidForWorkEnrollmentTargetVNone
+func AndroidForWorkEnrollmentTargetPNone() *AndroidForWorkEnrollmentTarget {
+ v := AndroidForWorkEnrollmentTargetVNone
+ return &v
+}
+
+// AndroidForWorkEnrollmentTargetPAll returns a pointer to AndroidForWorkEnrollmentTargetVAll
+func AndroidForWorkEnrollmentTargetPAll() *AndroidForWorkEnrollmentTarget {
+ v := AndroidForWorkEnrollmentTargetVAll
+ return &v
+}
+
+// AndroidForWorkEnrollmentTargetPTargeted returns a pointer to AndroidForWorkEnrollmentTargetVTargeted
+func AndroidForWorkEnrollmentTargetPTargeted() *AndroidForWorkEnrollmentTarget {
+ v := AndroidForWorkEnrollmentTargetVTargeted
+ return &v
+}
+
+// AndroidForWorkEnrollmentTargetPTargetedAsEnrollmentRestrictions returns a pointer to AndroidForWorkEnrollmentTargetVTargetedAsEnrollmentRestrictions
+func AndroidForWorkEnrollmentTargetPTargetedAsEnrollmentRestrictions() *AndroidForWorkEnrollmentTarget {
+ v := AndroidForWorkEnrollmentTargetVTargetedAsEnrollmentRestrictions
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationModel.go
new file mode 100644
index 00000000..ceb7da41
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkEnterpriseWiFiConfiguration By providing the configurations in this profile you can instruct the Android for Work device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user.
+type AndroidForWorkEnterpriseWiFiConfiguration struct {
+ // AndroidForWorkWiFiConfiguration is the base model of AndroidForWorkEnterpriseWiFiConfiguration
+ AndroidForWorkWiFiConfiguration
+ // EapType Indicates the type of EAP protocol set on the Wi-Fi endpoint (router).
+ EapType *AndroidEapType `json:"eapType,omitempty"`
+ // AuthenticationMethod Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS.
+ AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"`
+ // InnerAuthenticationProtocolForPeap Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForPeap *NonEapAuthenticationMethodForPeap `json:"innerAuthenticationProtocolForPeap,omitempty"`
+ // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS or PEAP. The String provided here is used to mask the username of individual users when they attempt to connect to Wi-Fi network.
+ OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"`
+ // RootCertificateForServerValidation undocumented
+ RootCertificateForServerValidation *AndroidForWorkTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"`
+ // IdentityCertificateForClientAuthentication undocumented
+ IdentityCertificateForClientAuthentication *AndroidForWorkCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationRequest.go
new file mode 100644
index 00000000..cb6b47a4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkEnterpriseWiFiConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidForWorkEnterpriseWiFiConfigurationRequestBuilder is request builder for AndroidForWorkEnterpriseWiFiConfiguration
+type AndroidForWorkEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkEnterpriseWiFiConfigurationRequest
+func (b *AndroidForWorkEnterpriseWiFiConfigurationRequestBuilder) Request() *AndroidForWorkEnterpriseWiFiConfigurationRequest {
+ return &AndroidForWorkEnterpriseWiFiConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkEnterpriseWiFiConfigurationRequest is request for AndroidForWorkEnterpriseWiFiConfiguration
+type AndroidForWorkEnterpriseWiFiConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkEnterpriseWiFiConfiguration
+func (r *AndroidForWorkEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *AndroidForWorkEnterpriseWiFiConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkEnterpriseWiFiConfiguration
+func (r *AndroidForWorkEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *AndroidForWorkEnterpriseWiFiConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkEnterpriseWiFiConfiguration
+func (r *AndroidForWorkEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityCertificateForClientAuthentication is navigation property
+func (b *AndroidForWorkEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *AndroidForWorkCertificateProfileBaseRequestBuilder {
+ bb := &AndroidForWorkCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificateForClientAuthentication"
+ return bb
+}
+
+// RootCertificateForServerValidation is navigation property
+func (b *AndroidForWorkEnterpriseWiFiConfigurationRequestBuilder) RootCertificateForServerValidation() *AndroidForWorkTrustedRootCertificateRequestBuilder {
+ bb := &AndroidForWorkTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificateForServerValidation"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkGeneralDeviceConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkGeneralDeviceConfigurationModel.go
new file mode 100644
index 00000000..aa6ca0b4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkGeneralDeviceConfigurationModel.go
@@ -0,0 +1,85 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkGeneralDeviceConfiguration Android For Work general device configuration.
+type AndroidForWorkGeneralDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidForWorkGeneralDeviceConfiguration
+ DeviceConfiguration
+ // PasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock.
+ PasswordBlockFingerprintUnlock *bool `json:"passwordBlockFingerprintUnlock,omitempty"`
+ // PasswordBlockTrustAgents Indicates whether or not to block Smart Lock and other trust agents.
+ PasswordBlockTrustAgents *bool `json:"passwordBlockTrustAgents,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength Minimum length of passwords. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out.
+ PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 0 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset Number of sign in failures allowed before factory reset. Valid values 1 to 16
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // PasswordRequiredType Type of password that is required.
+ PasswordRequiredType *AndroidForWorkRequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // WorkProfileDataSharingType Type of data sharing that is allowed.
+ WorkProfileDataSharingType *AndroidForWorkCrossProfileDataSharingType `json:"workProfileDataSharingType,omitempty"`
+ // WorkProfileBlockNotificationsWhileDeviceLocked Indicates whether or not to block notifications while device locked.
+ WorkProfileBlockNotificationsWhileDeviceLocked *bool `json:"workProfileBlockNotificationsWhileDeviceLocked,omitempty"`
+ // WorkProfileBlockAddingAccounts Block users from adding/removing accounts in work profile.
+ WorkProfileBlockAddingAccounts *bool `json:"workProfileBlockAddingAccounts,omitempty"`
+ // WorkProfileBluetoothEnableContactSharing Allow bluetooth devices to access enterprise contacts.
+ WorkProfileBluetoothEnableContactSharing *bool `json:"workProfileBluetoothEnableContactSharing,omitempty"`
+ // WorkProfileBlockScreenCapture Block screen capture in work profile.
+ WorkProfileBlockScreenCapture *bool `json:"workProfileBlockScreenCapture,omitempty"`
+ // WorkProfileBlockCrossProfileCallerID Block display work profile caller ID in personal profile.
+ WorkProfileBlockCrossProfileCallerID *bool `json:"workProfileBlockCrossProfileCallerId,omitempty"`
+ // WorkProfileBlockCamera Block work profile camera.
+ WorkProfileBlockCamera *bool `json:"workProfileBlockCamera,omitempty"`
+ // WorkProfileBlockCrossProfileContactsSearch Block work profile contacts availability in personal profile.
+ WorkProfileBlockCrossProfileContactsSearch *bool `json:"workProfileBlockCrossProfileContactsSearch,omitempty"`
+ // WorkProfileBlockCrossProfileCopyPaste Boolean that indicates if the setting disallow cross profile copy/paste is enabled.
+ WorkProfileBlockCrossProfileCopyPaste *bool `json:"workProfileBlockCrossProfileCopyPaste,omitempty"`
+ // WorkProfileDefaultAppPermissionPolicy Type of password that is required.
+ WorkProfileDefaultAppPermissionPolicy *AndroidForWorkDefaultAppPermissionPolicyType `json:"workProfileDefaultAppPermissionPolicy,omitempty"`
+ // WorkProfilePasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock for work profile.
+ WorkProfilePasswordBlockFingerprintUnlock *bool `json:"workProfilePasswordBlockFingerprintUnlock,omitempty"`
+ // WorkProfilePasswordBlockTrustAgents Indicates whether or not to block Smart Lock and other trust agents for work profile.
+ WorkProfilePasswordBlockTrustAgents *bool `json:"workProfilePasswordBlockTrustAgents,omitempty"`
+ // WorkProfilePasswordExpirationDays Number of days before the work profile password expires. Valid values 1 to 365
+ WorkProfilePasswordExpirationDays *int `json:"workProfilePasswordExpirationDays,omitempty"`
+ // WorkProfilePasswordMinimumLength Minimum length of work profile password. Valid values 4 to 16
+ WorkProfilePasswordMinimumLength *int `json:"workProfilePasswordMinimumLength,omitempty"`
+ // WorkProfilePasswordMinNumericCharacters Minimum # of numeric characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinNumericCharacters *int `json:"workProfilePasswordMinNumericCharacters,omitempty"`
+ // WorkProfilePasswordMinNonLetterCharacters Minimum # of non-letter characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinNonLetterCharacters *int `json:"workProfilePasswordMinNonLetterCharacters,omitempty"`
+ // WorkProfilePasswordMinLetterCharacters Minimum # of letter characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinLetterCharacters *int `json:"workProfilePasswordMinLetterCharacters,omitempty"`
+ // WorkProfilePasswordMinLowerCaseCharacters Minimum # of lower-case characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinLowerCaseCharacters *int `json:"workProfilePasswordMinLowerCaseCharacters,omitempty"`
+ // WorkProfilePasswordMinUpperCaseCharacters Minimum # of upper-case characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinUpperCaseCharacters *int `json:"workProfilePasswordMinUpperCaseCharacters,omitempty"`
+ // WorkProfilePasswordMinSymbolCharacters Minimum # of symbols required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinSymbolCharacters *int `json:"workProfilePasswordMinSymbolCharacters,omitempty"`
+ // WorkProfilePasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out.
+ WorkProfilePasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"workProfilePasswordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // WorkProfilePasswordPreviousPasswordBlockCount Number of previous work profile passwords to block. Valid values 0 to 24
+ WorkProfilePasswordPreviousPasswordBlockCount *int `json:"workProfilePasswordPreviousPasswordBlockCount,omitempty"`
+ // WorkProfilePasswordSignInFailureCountBeforeFactoryReset Number of sign in failures allowed before work profile is removed and all corporate data deleted. Valid values 1 to 16
+ WorkProfilePasswordSignInFailureCountBeforeFactoryReset *int `json:"workProfilePasswordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // WorkProfilePasswordRequiredType Type of work profile password that is required.
+ WorkProfilePasswordRequiredType *AndroidForWorkRequiredPasswordType `json:"workProfilePasswordRequiredType,omitempty"`
+ // WorkProfileRequirePassword Password is required or not for work profile
+ WorkProfileRequirePassword *bool `json:"workProfileRequirePassword,omitempty"`
+ // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on.
+ SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"`
+ // VpnAlwaysOnPackageIdentifier Enable lockdown mode for always-on VPN.
+ VpnAlwaysOnPackageIdentifier *string `json:"vpnAlwaysOnPackageIdentifier,omitempty"`
+ // VpnEnableAlwaysOnLockdownMode Enable lockdown mode for always-on VPN.
+ VpnEnableAlwaysOnLockdownMode *bool `json:"vpnEnableAlwaysOnLockdownMode,omitempty"`
+ // WorkProfileAllowWidgets Allow widgets from work profile apps.
+ WorkProfileAllowWidgets *bool `json:"workProfileAllowWidgets,omitempty"`
+ // WorkProfileBlockPersonalAppInstallsFromUnknownSources Prevent app installations from unknown sources in the personal profile.
+ WorkProfileBlockPersonalAppInstallsFromUnknownSources *bool `json:"workProfileBlockPersonalAppInstallsFromUnknownSources,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkGmailEasConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkGmailEasConfigurationModel.go
new file mode 100644
index 00000000..3cff6b20
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkGmailEasConfigurationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkGmailEasConfiguration By providing configurations in this profile you can instruct the Gmail email client on Android For Work devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync.
+type AndroidForWorkGmailEasConfiguration struct {
+ // AndroidForWorkEasEmailProfileBase is the base model of AndroidForWorkGmailEasConfiguration
+ AndroidForWorkEasEmailProfileBase
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileModel.go
new file mode 100644
index 00000000..b99f4774
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkImportedPFXCertificateProfile Android For Work PFX Import certificate profile
+type AndroidForWorkImportedPFXCertificateProfile struct {
+ // AndroidCertificateProfileBase is the base model of AndroidForWorkImportedPFXCertificateProfile
+ AndroidCertificateProfileBase
+ // IntendedPurpose Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc.
+ IntendedPurpose *IntendedPurpose `json:"intendedPurpose,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileRequest.go
new file mode 100644
index 00000000..3419bea9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkImportedPFXCertificateProfileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AndroidForWorkImportedPFXCertificateProfileRequestBuilder is request builder for AndroidForWorkImportedPFXCertificateProfile
+type AndroidForWorkImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkImportedPFXCertificateProfileRequest
+func (b *AndroidForWorkImportedPFXCertificateProfileRequestBuilder) Request() *AndroidForWorkImportedPFXCertificateProfileRequest {
+ return &AndroidForWorkImportedPFXCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkImportedPFXCertificateProfileRequest is request for AndroidForWorkImportedPFXCertificateProfile
+type AndroidForWorkImportedPFXCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkImportedPFXCertificateProfile
+func (r *AndroidForWorkImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidForWorkImportedPFXCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkImportedPFXCertificateProfile
+func (r *AndroidForWorkImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidForWorkImportedPFXCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkImportedPFXCertificateProfile
+func (r *AndroidForWorkImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidForWorkImportedPFXCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkMobileAppConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkMobileAppConfigurationModel.go
new file mode 100644
index 00000000..37428013
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkMobileAppConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkMobileAppConfiguration Contains properties, inherited properties and actions for AFW mobile app configurations.
+type AndroidForWorkMobileAppConfiguration struct {
+ // ManagedDeviceMobileAppConfiguration is the base model of AndroidForWorkMobileAppConfiguration
+ ManagedDeviceMobileAppConfiguration
+ // PackageID Android For Work app configuration package id.
+ PackageID *string `json:"packageId,omitempty"`
+ // PayloadJSON Android For Work app configuration JSON payload.
+ PayloadJSON *string `json:"payloadJson,omitempty"`
+ // PermissionActions List of Android app permissions and corresponding permission actions.
+ PermissionActions []AndroidPermissionAction `json:"permissionActions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkNineWorkEasConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkNineWorkEasConfigurationModel.go
new file mode 100644
index 00000000..b060e774
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkNineWorkEasConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkNineWorkEasConfiguration By providing configurations in this profile you can instruct the Nine Work email client on Android For Work devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync.
+type AndroidForWorkNineWorkEasConfiguration struct {
+ // AndroidForWorkEasEmailProfileBase is the base model of AndroidForWorkNineWorkEasConfiguration
+ AndroidForWorkEasEmailProfileBase
+ // SyncCalendar Toggles syncing the calendar. If set to false the calendar is turned off on the device.
+ SyncCalendar *bool `json:"syncCalendar,omitempty"`
+ // SyncContacts Toggles syncing contacts. If set to false contacts are turned off on the device.
+ SyncContacts *bool `json:"syncContacts,omitempty"`
+ // SyncTasks Toggles syncing tasks. If set to false tasks are turned off on the device.
+ SyncTasks *bool `json:"syncTasks,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileModel.go
new file mode 100644
index 00000000..24053c7f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkPkcsCertificateProfile Android For Work PKCS certificate profile
+type AndroidForWorkPkcsCertificateProfile struct {
+ // AndroidForWorkCertificateProfileBase is the base model of AndroidForWorkPkcsCertificateProfile
+ AndroidForWorkCertificateProfileBase
+ // CertificationAuthority PKCS Certification Authority
+ CertificationAuthority *string `json:"certificationAuthority,omitempty"`
+ // CertificationAuthorityName PKCS Certification Authority Name
+ CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"`
+ // CertificateTemplateName PKCS Certificate Template Name
+ CertificateTemplateName *string `json:"certificateTemplateName,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileRequest.go
new file mode 100644
index 00000000..c75fa1ce
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkPkcsCertificateProfileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AndroidForWorkPkcsCertificateProfileRequestBuilder is request builder for AndroidForWorkPkcsCertificateProfile
+type AndroidForWorkPkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkPkcsCertificateProfileRequest
+func (b *AndroidForWorkPkcsCertificateProfileRequestBuilder) Request() *AndroidForWorkPkcsCertificateProfileRequest {
+ return &AndroidForWorkPkcsCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkPkcsCertificateProfileRequest is request for AndroidForWorkPkcsCertificateProfile
+type AndroidForWorkPkcsCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkPkcsCertificateProfile
+func (r *AndroidForWorkPkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidForWorkPkcsCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkPkcsCertificateProfile
+func (r *AndroidForWorkPkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidForWorkPkcsCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkPkcsCertificateProfile
+func (r *AndroidForWorkPkcsCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidForWorkPkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkRequiredPasswordTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkRequiredPasswordTypeEnum.go
new file mode 100644
index 00000000..102a8bce
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkRequiredPasswordTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkRequiredPasswordType undocumented
+type AndroidForWorkRequiredPasswordType int
+
+const (
+ // AndroidForWorkRequiredPasswordTypeVDeviceDefault undocumented
+ AndroidForWorkRequiredPasswordTypeVDeviceDefault AndroidForWorkRequiredPasswordType = 0
+ // AndroidForWorkRequiredPasswordTypeVLowSecurityBiometric undocumented
+ AndroidForWorkRequiredPasswordTypeVLowSecurityBiometric AndroidForWorkRequiredPasswordType = 1
+ // AndroidForWorkRequiredPasswordTypeVRequired undocumented
+ AndroidForWorkRequiredPasswordTypeVRequired AndroidForWorkRequiredPasswordType = 2
+ // AndroidForWorkRequiredPasswordTypeVAtLeastNumeric undocumented
+ AndroidForWorkRequiredPasswordTypeVAtLeastNumeric AndroidForWorkRequiredPasswordType = 3
+ // AndroidForWorkRequiredPasswordTypeVNumericComplex undocumented
+ AndroidForWorkRequiredPasswordTypeVNumericComplex AndroidForWorkRequiredPasswordType = 4
+ // AndroidForWorkRequiredPasswordTypeVAtLeastAlphabetic undocumented
+ AndroidForWorkRequiredPasswordTypeVAtLeastAlphabetic AndroidForWorkRequiredPasswordType = 5
+ // AndroidForWorkRequiredPasswordTypeVAtLeastAlphanumeric undocumented
+ AndroidForWorkRequiredPasswordTypeVAtLeastAlphanumeric AndroidForWorkRequiredPasswordType = 6
+ // AndroidForWorkRequiredPasswordTypeVAlphanumericWithSymbols undocumented
+ AndroidForWorkRequiredPasswordTypeVAlphanumericWithSymbols AndroidForWorkRequiredPasswordType = 7
+)
+
+// AndroidForWorkRequiredPasswordTypePDeviceDefault returns a pointer to AndroidForWorkRequiredPasswordTypeVDeviceDefault
+func AndroidForWorkRequiredPasswordTypePDeviceDefault() *AndroidForWorkRequiredPasswordType {
+ v := AndroidForWorkRequiredPasswordTypeVDeviceDefault
+ return &v
+}
+
+// AndroidForWorkRequiredPasswordTypePLowSecurityBiometric returns a pointer to AndroidForWorkRequiredPasswordTypeVLowSecurityBiometric
+func AndroidForWorkRequiredPasswordTypePLowSecurityBiometric() *AndroidForWorkRequiredPasswordType {
+ v := AndroidForWorkRequiredPasswordTypeVLowSecurityBiometric
+ return &v
+}
+
+// AndroidForWorkRequiredPasswordTypePRequired returns a pointer to AndroidForWorkRequiredPasswordTypeVRequired
+func AndroidForWorkRequiredPasswordTypePRequired() *AndroidForWorkRequiredPasswordType {
+ v := AndroidForWorkRequiredPasswordTypeVRequired
+ return &v
+}
+
+// AndroidForWorkRequiredPasswordTypePAtLeastNumeric returns a pointer to AndroidForWorkRequiredPasswordTypeVAtLeastNumeric
+func AndroidForWorkRequiredPasswordTypePAtLeastNumeric() *AndroidForWorkRequiredPasswordType {
+ v := AndroidForWorkRequiredPasswordTypeVAtLeastNumeric
+ return &v
+}
+
+// AndroidForWorkRequiredPasswordTypePNumericComplex returns a pointer to AndroidForWorkRequiredPasswordTypeVNumericComplex
+func AndroidForWorkRequiredPasswordTypePNumericComplex() *AndroidForWorkRequiredPasswordType {
+ v := AndroidForWorkRequiredPasswordTypeVNumericComplex
+ return &v
+}
+
+// AndroidForWorkRequiredPasswordTypePAtLeastAlphabetic returns a pointer to AndroidForWorkRequiredPasswordTypeVAtLeastAlphabetic
+func AndroidForWorkRequiredPasswordTypePAtLeastAlphabetic() *AndroidForWorkRequiredPasswordType {
+ v := AndroidForWorkRequiredPasswordTypeVAtLeastAlphabetic
+ return &v
+}
+
+// AndroidForWorkRequiredPasswordTypePAtLeastAlphanumeric returns a pointer to AndroidForWorkRequiredPasswordTypeVAtLeastAlphanumeric
+func AndroidForWorkRequiredPasswordTypePAtLeastAlphanumeric() *AndroidForWorkRequiredPasswordType {
+ v := AndroidForWorkRequiredPasswordTypeVAtLeastAlphanumeric
+ return &v
+}
+
+// AndroidForWorkRequiredPasswordTypePAlphanumericWithSymbols returns a pointer to AndroidForWorkRequiredPasswordTypeVAlphanumericWithSymbols
+func AndroidForWorkRequiredPasswordTypePAlphanumericWithSymbols() *AndroidForWorkRequiredPasswordType {
+ v := AndroidForWorkRequiredPasswordTypeVAlphanumericWithSymbols
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkScepCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkScepCertificateProfileModel.go
new file mode 100644
index 00000000..170d806d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkScepCertificateProfileModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkScepCertificateProfile Android For Work SCEP certificate profile
+type AndroidForWorkScepCertificateProfile struct {
+ // AndroidForWorkCertificateProfileBase is the base model of AndroidForWorkScepCertificateProfile
+ AndroidForWorkCertificateProfileBase
+ // ScepServerUrls SCEP Server Url(s)
+ ScepServerUrls []string `json:"scepServerUrls,omitempty"`
+ // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
+ SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"`
+ // KeyUsage SCEP Key Usage
+ KeyUsage *KeyUsages `json:"keyUsage,omitempty"`
+ // KeySize SCEP Key Size
+ KeySize *KeySize `json:"keySize,omitempty"`
+ // HashAlgorithm SCEP Hash Algorithm
+ HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // CertificateStore Target store certificate
+ CertificateStore *CertificateStore `json:"certificateStore,omitempty"`
+ // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.
+ CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkScepCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkScepCertificateProfileRequest.go
new file mode 100644
index 00000000..53960c87
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkScepCertificateProfileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AndroidForWorkScepCertificateProfileRequestBuilder is request builder for AndroidForWorkScepCertificateProfile
+type AndroidForWorkScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkScepCertificateProfileRequest
+func (b *AndroidForWorkScepCertificateProfileRequestBuilder) Request() *AndroidForWorkScepCertificateProfileRequest {
+ return &AndroidForWorkScepCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkScepCertificateProfileRequest is request for AndroidForWorkScepCertificateProfile
+type AndroidForWorkScepCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkScepCertificateProfile
+func (r *AndroidForWorkScepCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidForWorkScepCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkScepCertificateProfile
+func (r *AndroidForWorkScepCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidForWorkScepCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkScepCertificateProfile
+func (r *AndroidForWorkScepCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidForWorkScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkSettingsAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkSettingsAction.go
new file mode 100644
index 00000000..ef54c6fc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkSettingsAction.go
@@ -0,0 +1,130 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidForWorkSettingsRequestSignupURLRequestParameter undocumented
+type AndroidForWorkSettingsRequestSignupURLRequestParameter struct {
+ // HostName undocumented
+ HostName *string `json:"hostName,omitempty"`
+}
+
+// AndroidForWorkSettingsCompleteSignupRequestParameter undocumented
+type AndroidForWorkSettingsCompleteSignupRequestParameter struct {
+ // EnterpriseToken undocumented
+ EnterpriseToken *string `json:"enterpriseToken,omitempty"`
+}
+
+// AndroidForWorkSettingsSyncAppsRequestParameter undocumented
+type AndroidForWorkSettingsSyncAppsRequestParameter struct {
+}
+
+// AndroidForWorkSettingsUnbindRequestParameter undocumented
+type AndroidForWorkSettingsUnbindRequestParameter struct {
+}
+
+//
+type AndroidForWorkSettingsRequestSignupURLRequestBuilder struct{ BaseRequestBuilder }
+
+// RequestSignupURL action undocumented
+func (b *AndroidForWorkSettingsRequestBuilder) RequestSignupURL(reqObj *AndroidForWorkSettingsRequestSignupURLRequestParameter) *AndroidForWorkSettingsRequestSignupURLRequestBuilder {
+ bb := &AndroidForWorkSettingsRequestSignupURLRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/requestSignupUrl"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidForWorkSettingsRequestSignupURLRequest struct{ BaseRequest }
+
+//
+func (b *AndroidForWorkSettingsRequestSignupURLRequestBuilder) Request() *AndroidForWorkSettingsRequestSignupURLRequest {
+ return &AndroidForWorkSettingsRequestSignupURLRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidForWorkSettingsRequestSignupURLRequest) Post(ctx context.Context) (resObj *string, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type AndroidForWorkSettingsCompleteSignupRequestBuilder struct{ BaseRequestBuilder }
+
+// CompleteSignup action undocumented
+func (b *AndroidForWorkSettingsRequestBuilder) CompleteSignup(reqObj *AndroidForWorkSettingsCompleteSignupRequestParameter) *AndroidForWorkSettingsCompleteSignupRequestBuilder {
+ bb := &AndroidForWorkSettingsCompleteSignupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/completeSignup"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidForWorkSettingsCompleteSignupRequest struct{ BaseRequest }
+
+//
+func (b *AndroidForWorkSettingsCompleteSignupRequestBuilder) Request() *AndroidForWorkSettingsCompleteSignupRequest {
+ return &AndroidForWorkSettingsCompleteSignupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidForWorkSettingsCompleteSignupRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidForWorkSettingsSyncAppsRequestBuilder struct{ BaseRequestBuilder }
+
+// SyncApps action undocumented
+func (b *AndroidForWorkSettingsRequestBuilder) SyncApps(reqObj *AndroidForWorkSettingsSyncAppsRequestParameter) *AndroidForWorkSettingsSyncAppsRequestBuilder {
+ bb := &AndroidForWorkSettingsSyncAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/syncApps"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidForWorkSettingsSyncAppsRequest struct{ BaseRequest }
+
+//
+func (b *AndroidForWorkSettingsSyncAppsRequestBuilder) Request() *AndroidForWorkSettingsSyncAppsRequest {
+ return &AndroidForWorkSettingsSyncAppsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidForWorkSettingsSyncAppsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidForWorkSettingsUnbindRequestBuilder struct{ BaseRequestBuilder }
+
+// Unbind action undocumented
+func (b *AndroidForWorkSettingsRequestBuilder) Unbind(reqObj *AndroidForWorkSettingsUnbindRequestParameter) *AndroidForWorkSettingsUnbindRequestBuilder {
+ bb := &AndroidForWorkSettingsUnbindRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unbind"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidForWorkSettingsUnbindRequest struct{ BaseRequest }
+
+//
+func (b *AndroidForWorkSettingsUnbindRequestBuilder) Request() *AndroidForWorkSettingsUnbindRequest {
+ return &AndroidForWorkSettingsUnbindRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidForWorkSettingsUnbindRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkSettingsModel.go
new file mode 100644
index 00000000..fc349fbe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkSettingsModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AndroidForWorkSettings Settings for Android For Work.
+type AndroidForWorkSettings struct {
+ // Entity is the base model of AndroidForWorkSettings
+ Entity
+ // BindStatus Bind status of the tenant with the Google EMM API
+ BindStatus *AndroidForWorkBindStatus `json:"bindStatus,omitempty"`
+ // LastAppSyncDateTime Last completion time for app sync
+ LastAppSyncDateTime *time.Time `json:"lastAppSyncDateTime,omitempty"`
+ // LastAppSyncStatus Last application sync result
+ LastAppSyncStatus *AndroidForWorkSyncStatus `json:"lastAppSyncStatus,omitempty"`
+ // OwnerUserPrincipalName Owner UPN that created the enterprise
+ OwnerUserPrincipalName *string `json:"ownerUserPrincipalName,omitempty"`
+ // OwnerOrganizationName Organization name used when onboarding Android for Work
+ OwnerOrganizationName *string `json:"ownerOrganizationName,omitempty"`
+ // LastModifiedDateTime Last modification time for Android for Work settings
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // EnrollmentTarget Indicates which users can enroll devices in Android for Work device management
+ EnrollmentTarget *AndroidForWorkEnrollmentTarget `json:"enrollmentTarget,omitempty"`
+ // TargetGroupIDs Specifies which AAD groups can enroll devices in Android for Work device management if enrollmentTarget is set to 'Targeted'
+ TargetGroupIDs []string `json:"targetGroupIds,omitempty"`
+ // DeviceOwnerManagementEnabled Indicates if this account is flighting for Android Device Owner Management with CloudDPC.
+ DeviceOwnerManagementEnabled *bool `json:"deviceOwnerManagementEnabled,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkSettingsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkSettingsRequest.go
new file mode 100644
index 00000000..b6bcbe4f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkSettingsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidForWorkSettingsRequestBuilder is request builder for AndroidForWorkSettings
+type AndroidForWorkSettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkSettingsRequest
+func (b *AndroidForWorkSettingsRequestBuilder) Request() *AndroidForWorkSettingsRequest {
+ return &AndroidForWorkSettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkSettingsRequest is request for AndroidForWorkSettings
+type AndroidForWorkSettingsRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkSettings
+func (r *AndroidForWorkSettingsRequest) Get(ctx context.Context) (resObj *AndroidForWorkSettings, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkSettings
+func (r *AndroidForWorkSettingsRequest) Update(ctx context.Context, reqObj *AndroidForWorkSettings) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkSettings
+func (r *AndroidForWorkSettingsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkSyncStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkSyncStatusEnum.go
new file mode 100644
index 00000000..80ea37c6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkSyncStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkSyncStatus undocumented
+type AndroidForWorkSyncStatus int
+
+const (
+ // AndroidForWorkSyncStatusVSuccess undocumented
+ AndroidForWorkSyncStatusVSuccess AndroidForWorkSyncStatus = 0
+ // AndroidForWorkSyncStatusVCredentialsNotValid undocumented
+ AndroidForWorkSyncStatusVCredentialsNotValid AndroidForWorkSyncStatus = 1
+ // AndroidForWorkSyncStatusVAndroidForWorkAPIError undocumented
+ AndroidForWorkSyncStatusVAndroidForWorkAPIError AndroidForWorkSyncStatus = 2
+ // AndroidForWorkSyncStatusVManagementServiceError undocumented
+ AndroidForWorkSyncStatusVManagementServiceError AndroidForWorkSyncStatus = 3
+ // AndroidForWorkSyncStatusVUnknownError undocumented
+ AndroidForWorkSyncStatusVUnknownError AndroidForWorkSyncStatus = 4
+ // AndroidForWorkSyncStatusVNone undocumented
+ AndroidForWorkSyncStatusVNone AndroidForWorkSyncStatus = 5
+)
+
+// AndroidForWorkSyncStatusPSuccess returns a pointer to AndroidForWorkSyncStatusVSuccess
+func AndroidForWorkSyncStatusPSuccess() *AndroidForWorkSyncStatus {
+ v := AndroidForWorkSyncStatusVSuccess
+ return &v
+}
+
+// AndroidForWorkSyncStatusPCredentialsNotValid returns a pointer to AndroidForWorkSyncStatusVCredentialsNotValid
+func AndroidForWorkSyncStatusPCredentialsNotValid() *AndroidForWorkSyncStatus {
+ v := AndroidForWorkSyncStatusVCredentialsNotValid
+ return &v
+}
+
+// AndroidForWorkSyncStatusPAndroidForWorkAPIError returns a pointer to AndroidForWorkSyncStatusVAndroidForWorkAPIError
+func AndroidForWorkSyncStatusPAndroidForWorkAPIError() *AndroidForWorkSyncStatus {
+ v := AndroidForWorkSyncStatusVAndroidForWorkAPIError
+ return &v
+}
+
+// AndroidForWorkSyncStatusPManagementServiceError returns a pointer to AndroidForWorkSyncStatusVManagementServiceError
+func AndroidForWorkSyncStatusPManagementServiceError() *AndroidForWorkSyncStatus {
+ v := AndroidForWorkSyncStatusVManagementServiceError
+ return &v
+}
+
+// AndroidForWorkSyncStatusPUnknownError returns a pointer to AndroidForWorkSyncStatusVUnknownError
+func AndroidForWorkSyncStatusPUnknownError() *AndroidForWorkSyncStatus {
+ v := AndroidForWorkSyncStatusVUnknownError
+ return &v
+}
+
+// AndroidForWorkSyncStatusPNone returns a pointer to AndroidForWorkSyncStatusVNone
+func AndroidForWorkSyncStatusPNone() *AndroidForWorkSyncStatus {
+ v := AndroidForWorkSyncStatusVNone
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkTrustedRootCertificateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkTrustedRootCertificateModel.go
new file mode 100644
index 00000000..e7c3a687
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkTrustedRootCertificateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkTrustedRootCertificate Android For Work Trusted Root Certificate configuration profile
+type AndroidForWorkTrustedRootCertificate struct {
+ // DeviceConfiguration is the base model of AndroidForWorkTrustedRootCertificate
+ DeviceConfiguration
+ // TrustedRootCertificate Trusted Root Certificate
+ TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"`
+ // CertFileName File name to display in UI.
+ CertFileName *string `json:"certFileName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkTrustedRootCertificateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkTrustedRootCertificateRequest.go
new file mode 100644
index 00000000..ad716073
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkTrustedRootCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidForWorkTrustedRootCertificateRequestBuilder is request builder for AndroidForWorkTrustedRootCertificate
+type AndroidForWorkTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkTrustedRootCertificateRequest
+func (b *AndroidForWorkTrustedRootCertificateRequestBuilder) Request() *AndroidForWorkTrustedRootCertificateRequest {
+ return &AndroidForWorkTrustedRootCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkTrustedRootCertificateRequest is request for AndroidForWorkTrustedRootCertificate
+type AndroidForWorkTrustedRootCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkTrustedRootCertificate
+func (r *AndroidForWorkTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *AndroidForWorkTrustedRootCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkTrustedRootCertificate
+func (r *AndroidForWorkTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *AndroidForWorkTrustedRootCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkTrustedRootCertificate
+func (r *AndroidForWorkTrustedRootCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkVpnConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkVpnConfigurationModel.go
new file mode 100644
index 00000000..2bd96d38
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkVpnConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkVpnConfiguration By providing the configurations in this profile you can instruct the Android device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.
+type AndroidForWorkVpnConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidForWorkVpnConfiguration
+ DeviceConfiguration
+ // ConnectionName Connection name displayed to the user.
+ ConnectionName *string `json:"connectionName,omitempty"`
+ // ConnectionType Connection type.
+ ConnectionType *AndroidForWorkVpnConnectionType `json:"connectionType,omitempty"`
+ // Role Role when connection type is set to Pulse Secure.
+ Role *string `json:"role,omitempty"`
+ // Realm Realm when connection type is set to Pulse Secure.
+ Realm *string `json:"realm,omitempty"`
+ // Servers List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements.
+ Servers []VpnServer `json:"servers,omitempty"`
+ // Fingerprint Fingerprint is a string that will be used to verify the VPN server can be trusted, which is only applicable when connection type is Check Point Capsule VPN.
+ Fingerprint *string `json:"fingerprint,omitempty"`
+ // CustomData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.
+ CustomData []KeyValue `json:"customData,omitempty"`
+ // CustomKeyValueData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.
+ CustomKeyValueData []KeyValuePair `json:"customKeyValueData,omitempty"`
+ // AuthenticationMethod Authentication method.
+ AuthenticationMethod *VpnAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *AndroidForWorkCertificateProfileBase `json:"identityCertificate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkVpnConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkVpnConfigurationRequest.go
new file mode 100644
index 00000000..436c2955
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkVpnConfigurationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidForWorkVpnConfigurationRequestBuilder is request builder for AndroidForWorkVpnConfiguration
+type AndroidForWorkVpnConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkVpnConfigurationRequest
+func (b *AndroidForWorkVpnConfigurationRequestBuilder) Request() *AndroidForWorkVpnConfigurationRequest {
+ return &AndroidForWorkVpnConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkVpnConfigurationRequest is request for AndroidForWorkVpnConfiguration
+type AndroidForWorkVpnConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkVpnConfiguration
+func (r *AndroidForWorkVpnConfigurationRequest) Get(ctx context.Context) (resObj *AndroidForWorkVpnConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkVpnConfiguration
+func (r *AndroidForWorkVpnConfigurationRequest) Update(ctx context.Context, reqObj *AndroidForWorkVpnConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkVpnConfiguration
+func (r *AndroidForWorkVpnConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidForWorkVpnConfigurationRequestBuilder) IdentityCertificate() *AndroidForWorkCertificateProfileBaseRequestBuilder {
+ bb := &AndroidForWorkCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkVpnConnectionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkVpnConnectionTypeEnum.go
new file mode 100644
index 00000000..0b58fd42
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkVpnConnectionTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkVpnConnectionType undocumented
+type AndroidForWorkVpnConnectionType int
+
+const (
+ // AndroidForWorkVpnConnectionTypeVCiscoAnyConnect undocumented
+ AndroidForWorkVpnConnectionTypeVCiscoAnyConnect AndroidForWorkVpnConnectionType = 0
+ // AndroidForWorkVpnConnectionTypeVPulseSecure undocumented
+ AndroidForWorkVpnConnectionTypeVPulseSecure AndroidForWorkVpnConnectionType = 1
+ // AndroidForWorkVpnConnectionTypeVF5EdgeClient undocumented
+ AndroidForWorkVpnConnectionTypeVF5EdgeClient AndroidForWorkVpnConnectionType = 2
+ // AndroidForWorkVpnConnectionTypeVDellSonicWallMobileConnect undocumented
+ AndroidForWorkVpnConnectionTypeVDellSonicWallMobileConnect AndroidForWorkVpnConnectionType = 3
+ // AndroidForWorkVpnConnectionTypeVCheckPointCapsuleVpn undocumented
+ AndroidForWorkVpnConnectionTypeVCheckPointCapsuleVpn AndroidForWorkVpnConnectionType = 4
+ // AndroidForWorkVpnConnectionTypeVCitrix undocumented
+ AndroidForWorkVpnConnectionTypeVCitrix AndroidForWorkVpnConnectionType = 5
+)
+
+// AndroidForWorkVpnConnectionTypePCiscoAnyConnect returns a pointer to AndroidForWorkVpnConnectionTypeVCiscoAnyConnect
+func AndroidForWorkVpnConnectionTypePCiscoAnyConnect() *AndroidForWorkVpnConnectionType {
+ v := AndroidForWorkVpnConnectionTypeVCiscoAnyConnect
+ return &v
+}
+
+// AndroidForWorkVpnConnectionTypePPulseSecure returns a pointer to AndroidForWorkVpnConnectionTypeVPulseSecure
+func AndroidForWorkVpnConnectionTypePPulseSecure() *AndroidForWorkVpnConnectionType {
+ v := AndroidForWorkVpnConnectionTypeVPulseSecure
+ return &v
+}
+
+// AndroidForWorkVpnConnectionTypePF5EdgeClient returns a pointer to AndroidForWorkVpnConnectionTypeVF5EdgeClient
+func AndroidForWorkVpnConnectionTypePF5EdgeClient() *AndroidForWorkVpnConnectionType {
+ v := AndroidForWorkVpnConnectionTypeVF5EdgeClient
+ return &v
+}
+
+// AndroidForWorkVpnConnectionTypePDellSonicWallMobileConnect returns a pointer to AndroidForWorkVpnConnectionTypeVDellSonicWallMobileConnect
+func AndroidForWorkVpnConnectionTypePDellSonicWallMobileConnect() *AndroidForWorkVpnConnectionType {
+ v := AndroidForWorkVpnConnectionTypeVDellSonicWallMobileConnect
+ return &v
+}
+
+// AndroidForWorkVpnConnectionTypePCheckPointCapsuleVpn returns a pointer to AndroidForWorkVpnConnectionTypeVCheckPointCapsuleVpn
+func AndroidForWorkVpnConnectionTypePCheckPointCapsuleVpn() *AndroidForWorkVpnConnectionType {
+ v := AndroidForWorkVpnConnectionTypeVCheckPointCapsuleVpn
+ return &v
+}
+
+// AndroidForWorkVpnConnectionTypePCitrix returns a pointer to AndroidForWorkVpnConnectionTypeVCitrix
+func AndroidForWorkVpnConnectionTypePCitrix() *AndroidForWorkVpnConnectionType {
+ v := AndroidForWorkVpnConnectionTypeVCitrix
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkWiFiConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkWiFiConfigurationModel.go
new file mode 100644
index 00000000..8f9af081
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidForWorkWiFiConfigurationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidForWorkWiFiConfiguration By providing the configurations in this profile you can instruct the Android for Work device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile.
+type AndroidForWorkWiFiConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidForWorkWiFiConfiguration
+ DeviceConfiguration
+ // NetworkName Network Name
+ NetworkName *string `json:"networkName,omitempty"`
+ // Ssid This is the name of the Wi-Fi network that is broadcast to all devices.
+ Ssid *string `json:"ssid,omitempty"`
+ // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network.
+ ConnectAutomatically *bool `json:"connectAutomatically,omitempty"`
+ // ConnectWhenNetworkNameIsHidden When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices.
+ ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"`
+ // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type.
+ WiFiSecurityType *AndroidWiFiSecurityType `json:"wiFiSecurityType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidGeneralDeviceConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidGeneralDeviceConfigurationModel.go
new file mode 100644
index 00000000..05348258
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidGeneralDeviceConfigurationModel.go
@@ -0,0 +1,107 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidGeneralDeviceConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the androidGeneralDeviceConfiguration resource.
+type AndroidGeneralDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidGeneralDeviceConfiguration
+ DeviceConfiguration
+ // AppsBlockClipboardSharing Indicates whether or not to block clipboard sharing to copy and paste between applications.
+ AppsBlockClipboardSharing *bool `json:"appsBlockClipboardSharing,omitempty"`
+ // AppsBlockCopyPaste Indicates whether or not to block copy and paste within applications.
+ AppsBlockCopyPaste *bool `json:"appsBlockCopyPaste,omitempty"`
+ // AppsBlockYouTube Indicates whether or not to block the YouTube app.
+ AppsBlockYouTube *bool `json:"appsBlockYouTube,omitempty"`
+ // BluetoothBlocked Indicates whether or not to block Bluetooth.
+ BluetoothBlocked *bool `json:"bluetoothBlocked,omitempty"`
+ // CameraBlocked Indicates whether or not to block the use of the camera.
+ CameraBlocked *bool `json:"cameraBlocked,omitempty"`
+ // CellularBlockDataRoaming Indicates whether or not to block data roaming.
+ CellularBlockDataRoaming *bool `json:"cellularBlockDataRoaming,omitempty"`
+ // CellularBlockMessaging Indicates whether or not to block SMS/MMS messaging.
+ CellularBlockMessaging *bool `json:"cellularBlockMessaging,omitempty"`
+ // CellularBlockVoiceRoaming Indicates whether or not to block voice roaming.
+ CellularBlockVoiceRoaming *bool `json:"cellularBlockVoiceRoaming,omitempty"`
+ // CellularBlockWiFiTethering Indicates whether or not to block syncing Wi-Fi tethering.
+ CellularBlockWiFiTethering *bool `json:"cellularBlockWiFiTethering,omitempty"`
+ // CompliantAppsList List of apps in the compliance (either allow list or block list, controlled by CompliantAppListType). This collection can contain a maximum of 10000 elements.
+ CompliantAppsList []AppListItem `json:"compliantAppsList,omitempty"`
+ // CompliantAppListType Type of list that is in the CompliantAppsList.
+ CompliantAppListType *AppListType `json:"compliantAppListType,omitempty"`
+ // DiagnosticDataBlockSubmission Indicates whether or not to block diagnostic data submission.
+ DiagnosticDataBlockSubmission *bool `json:"diagnosticDataBlockSubmission,omitempty"`
+ // LocationServicesBlocked Indicates whether or not to block location services.
+ LocationServicesBlocked *bool `json:"locationServicesBlocked,omitempty"`
+ // GoogleAccountBlockAutoSync Indicates whether or not to block Google account auto sync.
+ GoogleAccountBlockAutoSync *bool `json:"googleAccountBlockAutoSync,omitempty"`
+ // GooglePlayStoreBlocked Indicates whether or not to block the Google Play store.
+ GooglePlayStoreBlocked *bool `json:"googlePlayStoreBlocked,omitempty"`
+ // KioskModeBlockSleepButton Indicates whether or not to block the screen sleep button while in Kiosk Mode.
+ KioskModeBlockSleepButton *bool `json:"kioskModeBlockSleepButton,omitempty"`
+ // KioskModeBlockVolumeButtons Indicates whether or not to block the volume buttons while in Kiosk Mode.
+ KioskModeBlockVolumeButtons *bool `json:"kioskModeBlockVolumeButtons,omitempty"`
+ // DateAndTimeBlockChanges Indicates whether or not to block changing date and time while in KNOX Mode.
+ DateAndTimeBlockChanges *bool `json:"dateAndTimeBlockChanges,omitempty"`
+ // KioskModeApps A list of apps that will be allowed to run when the device is in Kiosk Mode. This collection can contain a maximum of 500 elements.
+ KioskModeApps []AppListItem `json:"kioskModeApps,omitempty"`
+ // NfcBlocked Indicates whether or not to block Near-Field Communication.
+ NfcBlocked *bool `json:"nfcBlocked,omitempty"`
+ // PasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock.
+ PasswordBlockFingerprintUnlock *bool `json:"passwordBlockFingerprintUnlock,omitempty"`
+ // PasswordBlockTrustAgents Indicates whether or not to block Smart Lock and other trust agents.
+ PasswordBlockTrustAgents *bool `json:"passwordBlockTrustAgents,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength Minimum length of passwords. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out.
+ PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 0 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset Number of sign in failures allowed before factory reset. Valid values 1 to 16
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // PasswordRequiredType Type of password that is required.
+ PasswordRequiredType *AndroidRequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordRequired Indicates whether or not to require a password.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PowerOffBlocked Indicates whether or not to block powering off the device.
+ PowerOffBlocked *bool `json:"powerOffBlocked,omitempty"`
+ // FactoryResetBlocked Indicates whether or not to block user performing a factory reset.
+ FactoryResetBlocked *bool `json:"factoryResetBlocked,omitempty"`
+ // ScreenCaptureBlocked Indicates whether or not to block screenshots.
+ ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"`
+ // DeviceSharingAllowed Indicates whether or not to allow device sharing mode.
+ DeviceSharingAllowed *bool `json:"deviceSharingAllowed,omitempty"`
+ // StorageBlockGoogleBackup Indicates whether or not to block Google Backup.
+ StorageBlockGoogleBackup *bool `json:"storageBlockGoogleBackup,omitempty"`
+ // StorageBlockRemovableStorage Indicates whether or not to block removable storage usage.
+ StorageBlockRemovableStorage *bool `json:"storageBlockRemovableStorage,omitempty"`
+ // StorageRequireDeviceEncryption Indicates whether or not to require device encryption.
+ StorageRequireDeviceEncryption *bool `json:"storageRequireDeviceEncryption,omitempty"`
+ // StorageRequireRemovableStorageEncryption Indicates whether or not to require removable storage encryption.
+ StorageRequireRemovableStorageEncryption *bool `json:"storageRequireRemovableStorageEncryption,omitempty"`
+ // VoiceAssistantBlocked Indicates whether or not to block the use of the Voice Assistant.
+ VoiceAssistantBlocked *bool `json:"voiceAssistantBlocked,omitempty"`
+ // VoiceDialingBlocked Indicates whether or not to block voice dialing.
+ VoiceDialingBlocked *bool `json:"voiceDialingBlocked,omitempty"`
+ // WebBrowserBlockPopups Indicates whether or not to block popups within the web browser.
+ WebBrowserBlockPopups *bool `json:"webBrowserBlockPopups,omitempty"`
+ // WebBrowserBlockAutofill Indicates whether or not to block the web browser's auto fill feature.
+ WebBrowserBlockAutofill *bool `json:"webBrowserBlockAutofill,omitempty"`
+ // WebBrowserBlockJavaScript Indicates whether or not to block JavaScript within the web browser.
+ WebBrowserBlockJavaScript *bool `json:"webBrowserBlockJavaScript,omitempty"`
+ // WebBrowserBlocked Indicates whether or not to block the web browser.
+ WebBrowserBlocked *bool `json:"webBrowserBlocked,omitempty"`
+ // WebBrowserCookieSettings Cookie settings within the web browser.
+ WebBrowserCookieSettings *WebBrowserCookieSettings `json:"webBrowserCookieSettings,omitempty"`
+ // WiFiBlocked Indicates whether or not to block syncing Wi-Fi.
+ WiFiBlocked *bool `json:"wiFiBlocked,omitempty"`
+ // AppsInstallAllowList List of apps which can be installed on the KNOX device. This collection can contain a maximum of 500 elements.
+ AppsInstallAllowList []AppListItem `json:"appsInstallAllowList,omitempty"`
+ // AppsLaunchBlockList List of apps which are blocked from being launched on the KNOX device. This collection can contain a maximum of 500 elements.
+ AppsLaunchBlockList []AppListItem `json:"appsLaunchBlockList,omitempty"`
+ // AppsHideList List of apps to be hidden on the KNOX device. This collection can contain a maximum of 500 elements.
+ AppsHideList []AppListItem `json:"appsHideList,omitempty"`
+ // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on.
+ SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidImportedPFXCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidImportedPFXCertificateProfileModel.go
new file mode 100644
index 00000000..6b9c8f8f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidImportedPFXCertificateProfileModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidImportedPFXCertificateProfile Android PFX Import certificate profile
+type AndroidImportedPFXCertificateProfile struct {
+ // AndroidCertificateProfileBase is the base model of AndroidImportedPFXCertificateProfile
+ AndroidCertificateProfileBase
+ // IntendedPurpose Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc.
+ IntendedPurpose *IntendedPurpose `json:"intendedPurpose,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidImportedPFXCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidImportedPFXCertificateProfileRequest.go
new file mode 100644
index 00000000..85df2015
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidImportedPFXCertificateProfileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AndroidImportedPFXCertificateProfileRequestBuilder is request builder for AndroidImportedPFXCertificateProfile
+type AndroidImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidImportedPFXCertificateProfileRequest
+func (b *AndroidImportedPFXCertificateProfileRequestBuilder) Request() *AndroidImportedPFXCertificateProfileRequest {
+ return &AndroidImportedPFXCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidImportedPFXCertificateProfileRequest is request for AndroidImportedPFXCertificateProfile
+type AndroidImportedPFXCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidImportedPFXCertificateProfile
+func (r *AndroidImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidImportedPFXCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidImportedPFXCertificateProfile
+func (r *AndroidImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidImportedPFXCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidImportedPFXCertificateProfile
+func (r *AndroidImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidImportedPFXCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidKeyguardFeatureEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidKeyguardFeatureEnum.go
new file mode 100644
index 00000000..9d1262e8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidKeyguardFeatureEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidKeyguardFeature undocumented
+type AndroidKeyguardFeature int
+
+const (
+ // AndroidKeyguardFeatureVNotConfigured undocumented
+ AndroidKeyguardFeatureVNotConfigured AndroidKeyguardFeature = 0
+ // AndroidKeyguardFeatureVCamera undocumented
+ AndroidKeyguardFeatureVCamera AndroidKeyguardFeature = 1
+ // AndroidKeyguardFeatureVNotifications undocumented
+ AndroidKeyguardFeatureVNotifications AndroidKeyguardFeature = 2
+ // AndroidKeyguardFeatureVUnredactedNotifications undocumented
+ AndroidKeyguardFeatureVUnredactedNotifications AndroidKeyguardFeature = 3
+ // AndroidKeyguardFeatureVTrustAgents undocumented
+ AndroidKeyguardFeatureVTrustAgents AndroidKeyguardFeature = 4
+ // AndroidKeyguardFeatureVFingerprint undocumented
+ AndroidKeyguardFeatureVFingerprint AndroidKeyguardFeature = 5
+ // AndroidKeyguardFeatureVRemoteInput undocumented
+ AndroidKeyguardFeatureVRemoteInput AndroidKeyguardFeature = 6
+ // AndroidKeyguardFeatureVAllFeatures undocumented
+ AndroidKeyguardFeatureVAllFeatures AndroidKeyguardFeature = 7
+)
+
+// AndroidKeyguardFeaturePNotConfigured returns a pointer to AndroidKeyguardFeatureVNotConfigured
+func AndroidKeyguardFeaturePNotConfigured() *AndroidKeyguardFeature {
+ v := AndroidKeyguardFeatureVNotConfigured
+ return &v
+}
+
+// AndroidKeyguardFeaturePCamera returns a pointer to AndroidKeyguardFeatureVCamera
+func AndroidKeyguardFeaturePCamera() *AndroidKeyguardFeature {
+ v := AndroidKeyguardFeatureVCamera
+ return &v
+}
+
+// AndroidKeyguardFeaturePNotifications returns a pointer to AndroidKeyguardFeatureVNotifications
+func AndroidKeyguardFeaturePNotifications() *AndroidKeyguardFeature {
+ v := AndroidKeyguardFeatureVNotifications
+ return &v
+}
+
+// AndroidKeyguardFeaturePUnredactedNotifications returns a pointer to AndroidKeyguardFeatureVUnredactedNotifications
+func AndroidKeyguardFeaturePUnredactedNotifications() *AndroidKeyguardFeature {
+ v := AndroidKeyguardFeatureVUnredactedNotifications
+ return &v
+}
+
+// AndroidKeyguardFeaturePTrustAgents returns a pointer to AndroidKeyguardFeatureVTrustAgents
+func AndroidKeyguardFeaturePTrustAgents() *AndroidKeyguardFeature {
+ v := AndroidKeyguardFeatureVTrustAgents
+ return &v
+}
+
+// AndroidKeyguardFeaturePFingerprint returns a pointer to AndroidKeyguardFeatureVFingerprint
+func AndroidKeyguardFeaturePFingerprint() *AndroidKeyguardFeature {
+ v := AndroidKeyguardFeatureVFingerprint
+ return &v
+}
+
+// AndroidKeyguardFeaturePRemoteInput returns a pointer to AndroidKeyguardFeatureVRemoteInput
+func AndroidKeyguardFeaturePRemoteInput() *AndroidKeyguardFeature {
+ v := AndroidKeyguardFeatureVRemoteInput
+ return &v
+}
+
+// AndroidKeyguardFeaturePAllFeatures returns a pointer to AndroidKeyguardFeatureVAllFeatures
+func AndroidKeyguardFeaturePAllFeatures() *AndroidKeyguardFeature {
+ v := AndroidKeyguardFeatureVAllFeatures
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidLobAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidLobAppModel.go
new file mode 100644
index 00000000..ce4395dd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidLobAppModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidLobApp Contains properties and inherited properties for Android Line Of Business apps.
+type AndroidLobApp struct {
+ // MobileLobApp is the base model of AndroidLobApp
+ MobileLobApp
+ // PackageID The package identifier.
+ PackageID *string `json:"packageId,omitempty"`
+ // IdentityName The Identity Name.
+ IdentityName *string `json:"identityName,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *AndroidMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+ // VersionName The version name of Android Line of Business (LoB) app.
+ VersionName *string `json:"versionName,omitempty"`
+ // VersionCode The version code of Android Line of Business (LoB) app.
+ VersionCode *string `json:"versionCode,omitempty"`
+ // IdentityVersion The identity version.
+ IdentityVersion *string `json:"identityVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppProtectionAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppProtectionAction.go
new file mode 100644
index 00000000..6e682f80
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppProtectionAction.go
@@ -0,0 +1,100 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AndroidManagedAppProtectionCollectionHasPayloadLinksRequestParameter undocumented
+type AndroidManagedAppProtectionCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+//
+type AndroidManagedAppProtectionCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder) HasPayloadLinks(reqObj *AndroidManagedAppProtectionCollectionHasPayloadLinksRequestParameter) *AndroidManagedAppProtectionCollectionHasPayloadLinksRequestBuilder {
+ bb := &AndroidManagedAppProtectionCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidManagedAppProtectionCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *AndroidManagedAppProtectionCollectionHasPayloadLinksRequestBuilder) Request() *AndroidManagedAppProtectionCollectionHasPayloadLinksRequest {
+ return &AndroidManagedAppProtectionCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidManagedAppProtectionCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *AndroidManagedAppProtectionCollectionHasPayloadLinksRequest) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppProtectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppProtectionModel.go
new file mode 100644
index 00000000..eca2ced6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppProtectionModel.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedAppProtection Policy used to configure detailed management settings targeted to specific security groups and for a specified set of apps on an Android device
+type AndroidManagedAppProtection struct {
+ // TargetedManagedAppProtection is the base model of AndroidManagedAppProtection
+ TargetedManagedAppProtection
+ // ScreenCaptureBlocked Indicates whether a managed user can take screen captures of managed apps
+ ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"`
+ // DisableAppEncryptionIfDeviceEncryptionIsEnabled When this setting is enabled, app level encryption is disabled if device level encryption is enabled
+ DisableAppEncryptionIfDeviceEncryptionIsEnabled *bool `json:"disableAppEncryptionIfDeviceEncryptionIsEnabled,omitempty"`
+ // EncryptAppData Indicates whether application data for managed apps should be encrypted
+ EncryptAppData *bool `json:"encryptAppData,omitempty"`
+ // DeployedAppCount Count of apps to which the current policy is deployed.
+ DeployedAppCount *int `json:"deployedAppCount,omitempty"`
+ // MinimumRequiredPatchVersion Define the oldest required Android security patch level a user can have to gain secure access to the app.
+ MinimumRequiredPatchVersion *string `json:"minimumRequiredPatchVersion,omitempty"`
+ // MinimumWarningPatchVersion Define the oldest recommended Android security patch level a user can have for secure access to the app.
+ MinimumWarningPatchVersion *string `json:"minimumWarningPatchVersion,omitempty"`
+ // ExemptedAppPackages App packages in this list will be exempt from the policy and will be able to receive data from managed apps.
+ ExemptedAppPackages []KeyValuePair `json:"exemptedAppPackages,omitempty"`
+ // MinimumWipePatchVersion Android security patch level less than or equal to the specified value will wipe the managed app and the associated company data.
+ MinimumWipePatchVersion *string `json:"minimumWipePatchVersion,omitempty"`
+ // AllowedAndroidDeviceManufacturers Semicolon seperated list of device manufacturers allowed, as a string, for the managed app to work.
+ AllowedAndroidDeviceManufacturers *string `json:"allowedAndroidDeviceManufacturers,omitempty"`
+ // AppActionIfAndroidDeviceManufacturerNotAllowed Defines a managed app behavior, either block or wipe, if the specified device manufacturer is not allowed.
+ AppActionIfAndroidDeviceManufacturerNotAllowed *ManagedAppRemediationAction `json:"appActionIfAndroidDeviceManufacturerNotAllowed,omitempty"`
+ // RequiredAndroidSafetyNetDeviceAttestationType Defines the Android SafetyNet Device Attestation requirement for a managed app to work.
+ RequiredAndroidSafetyNetDeviceAttestationType *AndroidManagedAppSafetyNetDeviceAttestationType `json:"requiredAndroidSafetyNetDeviceAttestationType,omitempty"`
+ // AppActionIfAndroidSafetyNetDeviceAttestationFailed Defines a managed app behavior, either warn or block, if the specified Android SafetyNet Attestation requirment fails.
+ AppActionIfAndroidSafetyNetDeviceAttestationFailed *ManagedAppRemediationAction `json:"appActionIfAndroidSafetyNetDeviceAttestationFailed,omitempty"`
+ // RequiredAndroidSafetyNetAppsVerificationType Defines the Android SafetyNet Apps Verification requirement for a managed app to work.
+ RequiredAndroidSafetyNetAppsVerificationType *AndroidManagedAppSafetyNetAppsVerificationType `json:"requiredAndroidSafetyNetAppsVerificationType,omitempty"`
+ // AppActionIfAndroidSafetyNetAppsVerificationFailed Defines a managed app behavior, either warn or block, if the specified Android App Verification requirment fails.
+ AppActionIfAndroidSafetyNetAppsVerificationFailed *ManagedAppRemediationAction `json:"appActionIfAndroidSafetyNetAppsVerificationFailed,omitempty"`
+ // CustomBrowserPackageID Unique identifier of a custom browser to open weblink on Android.
+ CustomBrowserPackageID *string `json:"customBrowserPackageId,omitempty"`
+ // CustomBrowserDisplayName Friendly name of the preferred custom browser to open weblink on Android.
+ CustomBrowserDisplayName *string `json:"customBrowserDisplayName,omitempty"`
+ // MinimumRequiredCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or app access will be blocked
+ MinimumRequiredCompanyPortalVersion *string `json:"minimumRequiredCompanyPortalVersion,omitempty"`
+ // MinimumWarningCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or the user will receive a warning
+ MinimumWarningCompanyPortalVersion *string `json:"minimumWarningCompanyPortalVersion,omitempty"`
+ // MinimumWipeCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or the company data on the app will be wiped
+ MinimumWipeCompanyPortalVersion *string `json:"minimumWipeCompanyPortalVersion,omitempty"`
+ // KeyboardsRestricted Indicates if keyboard restriction is enabled. If enabled list of approved keyboards must be provided as well.
+ KeyboardsRestricted *bool `json:"keyboardsRestricted,omitempty"`
+ // ApprovedKeyboards If Keyboard Restriction is enabled, only keyboards in this approved list will be allowed. A key should be Android package id for a keyboard and value should be a friendly name
+ ApprovedKeyboards []KeyValuePair `json:"approvedKeyboards,omitempty"`
+ // Apps undocumented
+ Apps []ManagedMobileApp `json:"apps,omitempty"`
+ // DeploymentSummary undocumented
+ DeploymentSummary *ManagedAppPolicyDeploymentSummary `json:"deploymentSummary,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppProtectionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppProtectionRequest.go
new file mode 100644
index 00000000..49689698
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppProtectionRequest.go
@@ -0,0 +1,146 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AndroidManagedAppProtectionRequestBuilder is request builder for AndroidManagedAppProtection
+type AndroidManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidManagedAppProtectionRequest
+func (b *AndroidManagedAppProtectionRequestBuilder) Request() *AndroidManagedAppProtectionRequest {
+ return &AndroidManagedAppProtectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidManagedAppProtectionRequest is request for AndroidManagedAppProtection
+type AndroidManagedAppProtectionRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidManagedAppProtection
+func (r *AndroidManagedAppProtectionRequest) Get(ctx context.Context) (resObj *AndroidManagedAppProtection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidManagedAppProtection
+func (r *AndroidManagedAppProtectionRequest) Update(ctx context.Context, reqObj *AndroidManagedAppProtection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidManagedAppProtection
+func (r *AndroidManagedAppProtectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Apps returns request builder for ManagedMobileApp collection
+func (b *AndroidManagedAppProtectionRequestBuilder) Apps() *AndroidManagedAppProtectionAppsCollectionRequestBuilder {
+ bb := &AndroidManagedAppProtectionAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/apps"
+ return bb
+}
+
+// AndroidManagedAppProtectionAppsCollectionRequestBuilder is request builder for ManagedMobileApp collection
+type AndroidManagedAppProtectionAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedMobileApp collection
+func (b *AndroidManagedAppProtectionAppsCollectionRequestBuilder) Request() *AndroidManagedAppProtectionAppsCollectionRequest {
+ return &AndroidManagedAppProtectionAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedMobileApp item
+func (b *AndroidManagedAppProtectionAppsCollectionRequestBuilder) ID(id string) *ManagedMobileAppRequestBuilder {
+ bb := &ManagedMobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidManagedAppProtectionAppsCollectionRequest is request for ManagedMobileApp collection
+type AndroidManagedAppProtectionAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedMobileApp collection
+func (r *AndroidManagedAppProtectionAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedMobileApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedMobileApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedMobileApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedMobileApp collection
+func (r *AndroidManagedAppProtectionAppsCollectionRequest) Get(ctx context.Context) ([]ManagedMobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedMobileApp collection
+func (r *AndroidManagedAppProtectionAppsCollectionRequest) Add(ctx context.Context, reqObj *ManagedMobileApp) (resObj *ManagedMobileApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeploymentSummary is navigation property
+func (b *AndroidManagedAppProtectionRequestBuilder) DeploymentSummary() *ManagedAppPolicyDeploymentSummaryRequestBuilder {
+ bb := &ManagedAppPolicyDeploymentSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deploymentSummary"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppRegistrationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppRegistrationModel.go
new file mode 100644
index 00000000..c651b29c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppRegistrationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedAppRegistration Represents the synchronization details of an android app, with management capabilities, for a specific user.
+type AndroidManagedAppRegistration struct {
+ // ManagedAppRegistration is the base model of AndroidManagedAppRegistration
+ ManagedAppRegistration
+ // PatchVersion The patch version for the current android app registration
+ PatchVersion *string `json:"patchVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppSafetyNetAppsVerificationTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppSafetyNetAppsVerificationTypeEnum.go
new file mode 100644
index 00000000..3af805a9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppSafetyNetAppsVerificationTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedAppSafetyNetAppsVerificationType undocumented
+type AndroidManagedAppSafetyNetAppsVerificationType int
+
+const (
+ // AndroidManagedAppSafetyNetAppsVerificationTypeVNone undocumented
+ AndroidManagedAppSafetyNetAppsVerificationTypeVNone AndroidManagedAppSafetyNetAppsVerificationType = 0
+ // AndroidManagedAppSafetyNetAppsVerificationTypeVEnabled undocumented
+ AndroidManagedAppSafetyNetAppsVerificationTypeVEnabled AndroidManagedAppSafetyNetAppsVerificationType = 1
+)
+
+// AndroidManagedAppSafetyNetAppsVerificationTypePNone returns a pointer to AndroidManagedAppSafetyNetAppsVerificationTypeVNone
+func AndroidManagedAppSafetyNetAppsVerificationTypePNone() *AndroidManagedAppSafetyNetAppsVerificationType {
+ v := AndroidManagedAppSafetyNetAppsVerificationTypeVNone
+ return &v
+}
+
+// AndroidManagedAppSafetyNetAppsVerificationTypePEnabled returns a pointer to AndroidManagedAppSafetyNetAppsVerificationTypeVEnabled
+func AndroidManagedAppSafetyNetAppsVerificationTypePEnabled() *AndroidManagedAppSafetyNetAppsVerificationType {
+ v := AndroidManagedAppSafetyNetAppsVerificationTypeVEnabled
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppSafetyNetDeviceAttestationTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppSafetyNetDeviceAttestationTypeEnum.go
new file mode 100644
index 00000000..288df7d9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedAppSafetyNetDeviceAttestationTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedAppSafetyNetDeviceAttestationType undocumented
+type AndroidManagedAppSafetyNetDeviceAttestationType int
+
+const (
+ // AndroidManagedAppSafetyNetDeviceAttestationTypeVNone undocumented
+ AndroidManagedAppSafetyNetDeviceAttestationTypeVNone AndroidManagedAppSafetyNetDeviceAttestationType = 0
+ // AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrity undocumented
+ AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrity AndroidManagedAppSafetyNetDeviceAttestationType = 1
+ // AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrityAndDeviceCertification undocumented
+ AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrityAndDeviceCertification AndroidManagedAppSafetyNetDeviceAttestationType = 2
+)
+
+// AndroidManagedAppSafetyNetDeviceAttestationTypePNone returns a pointer to AndroidManagedAppSafetyNetDeviceAttestationTypeVNone
+func AndroidManagedAppSafetyNetDeviceAttestationTypePNone() *AndroidManagedAppSafetyNetDeviceAttestationType {
+ v := AndroidManagedAppSafetyNetDeviceAttestationTypeVNone
+ return &v
+}
+
+// AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrity returns a pointer to AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrity
+func AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrity() *AndroidManagedAppSafetyNetDeviceAttestationType {
+ v := AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrity
+ return &v
+}
+
+// AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrityAndDeviceCertification returns a pointer to AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrityAndDeviceCertification
+func AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrityAndDeviceCertification() *AndroidManagedAppSafetyNetDeviceAttestationType {
+ v := AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrityAndDeviceCertification
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountAppSyncStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountAppSyncStatusEnum.go
new file mode 100644
index 00000000..b22a2a4a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountAppSyncStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedStoreAccountAppSyncStatus undocumented
+type AndroidManagedStoreAccountAppSyncStatus int
+
+const (
+ // AndroidManagedStoreAccountAppSyncStatusVSuccess undocumented
+ AndroidManagedStoreAccountAppSyncStatusVSuccess AndroidManagedStoreAccountAppSyncStatus = 0
+ // AndroidManagedStoreAccountAppSyncStatusVCredentialsNotValid undocumented
+ AndroidManagedStoreAccountAppSyncStatusVCredentialsNotValid AndroidManagedStoreAccountAppSyncStatus = 1
+ // AndroidManagedStoreAccountAppSyncStatusVAndroidForWorkAPIError undocumented
+ AndroidManagedStoreAccountAppSyncStatusVAndroidForWorkAPIError AndroidManagedStoreAccountAppSyncStatus = 2
+ // AndroidManagedStoreAccountAppSyncStatusVManagementServiceError undocumented
+ AndroidManagedStoreAccountAppSyncStatusVManagementServiceError AndroidManagedStoreAccountAppSyncStatus = 3
+ // AndroidManagedStoreAccountAppSyncStatusVUnknownError undocumented
+ AndroidManagedStoreAccountAppSyncStatusVUnknownError AndroidManagedStoreAccountAppSyncStatus = 4
+ // AndroidManagedStoreAccountAppSyncStatusVNone undocumented
+ AndroidManagedStoreAccountAppSyncStatusVNone AndroidManagedStoreAccountAppSyncStatus = 5
+)
+
+// AndroidManagedStoreAccountAppSyncStatusPSuccess returns a pointer to AndroidManagedStoreAccountAppSyncStatusVSuccess
+func AndroidManagedStoreAccountAppSyncStatusPSuccess() *AndroidManagedStoreAccountAppSyncStatus {
+ v := AndroidManagedStoreAccountAppSyncStatusVSuccess
+ return &v
+}
+
+// AndroidManagedStoreAccountAppSyncStatusPCredentialsNotValid returns a pointer to AndroidManagedStoreAccountAppSyncStatusVCredentialsNotValid
+func AndroidManagedStoreAccountAppSyncStatusPCredentialsNotValid() *AndroidManagedStoreAccountAppSyncStatus {
+ v := AndroidManagedStoreAccountAppSyncStatusVCredentialsNotValid
+ return &v
+}
+
+// AndroidManagedStoreAccountAppSyncStatusPAndroidForWorkAPIError returns a pointer to AndroidManagedStoreAccountAppSyncStatusVAndroidForWorkAPIError
+func AndroidManagedStoreAccountAppSyncStatusPAndroidForWorkAPIError() *AndroidManagedStoreAccountAppSyncStatus {
+ v := AndroidManagedStoreAccountAppSyncStatusVAndroidForWorkAPIError
+ return &v
+}
+
+// AndroidManagedStoreAccountAppSyncStatusPManagementServiceError returns a pointer to AndroidManagedStoreAccountAppSyncStatusVManagementServiceError
+func AndroidManagedStoreAccountAppSyncStatusPManagementServiceError() *AndroidManagedStoreAccountAppSyncStatus {
+ v := AndroidManagedStoreAccountAppSyncStatusVManagementServiceError
+ return &v
+}
+
+// AndroidManagedStoreAccountAppSyncStatusPUnknownError returns a pointer to AndroidManagedStoreAccountAppSyncStatusVUnknownError
+func AndroidManagedStoreAccountAppSyncStatusPUnknownError() *AndroidManagedStoreAccountAppSyncStatus {
+ v := AndroidManagedStoreAccountAppSyncStatusVUnknownError
+ return &v
+}
+
+// AndroidManagedStoreAccountAppSyncStatusPNone returns a pointer to AndroidManagedStoreAccountAppSyncStatusVNone
+func AndroidManagedStoreAccountAppSyncStatusPNone() *AndroidManagedStoreAccountAppSyncStatus {
+ v := AndroidManagedStoreAccountAppSyncStatusVNone
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountBindStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountBindStatusEnum.go
new file mode 100644
index 00000000..595f8e46
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountBindStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedStoreAccountBindStatus undocumented
+type AndroidManagedStoreAccountBindStatus int
+
+const (
+ // AndroidManagedStoreAccountBindStatusVNotBound undocumented
+ AndroidManagedStoreAccountBindStatusVNotBound AndroidManagedStoreAccountBindStatus = 0
+ // AndroidManagedStoreAccountBindStatusVBound undocumented
+ AndroidManagedStoreAccountBindStatusVBound AndroidManagedStoreAccountBindStatus = 1
+ // AndroidManagedStoreAccountBindStatusVBoundAndValidated undocumented
+ AndroidManagedStoreAccountBindStatusVBoundAndValidated AndroidManagedStoreAccountBindStatus = 2
+ // AndroidManagedStoreAccountBindStatusVUnbinding undocumented
+ AndroidManagedStoreAccountBindStatusVUnbinding AndroidManagedStoreAccountBindStatus = 3
+)
+
+// AndroidManagedStoreAccountBindStatusPNotBound returns a pointer to AndroidManagedStoreAccountBindStatusVNotBound
+func AndroidManagedStoreAccountBindStatusPNotBound() *AndroidManagedStoreAccountBindStatus {
+ v := AndroidManagedStoreAccountBindStatusVNotBound
+ return &v
+}
+
+// AndroidManagedStoreAccountBindStatusPBound returns a pointer to AndroidManagedStoreAccountBindStatusVBound
+func AndroidManagedStoreAccountBindStatusPBound() *AndroidManagedStoreAccountBindStatus {
+ v := AndroidManagedStoreAccountBindStatusVBound
+ return &v
+}
+
+// AndroidManagedStoreAccountBindStatusPBoundAndValidated returns a pointer to AndroidManagedStoreAccountBindStatusVBoundAndValidated
+func AndroidManagedStoreAccountBindStatusPBoundAndValidated() *AndroidManagedStoreAccountBindStatus {
+ v := AndroidManagedStoreAccountBindStatusVBoundAndValidated
+ return &v
+}
+
+// AndroidManagedStoreAccountBindStatusPUnbinding returns a pointer to AndroidManagedStoreAccountBindStatusVUnbinding
+func AndroidManagedStoreAccountBindStatusPUnbinding() *AndroidManagedStoreAccountBindStatus {
+ v := AndroidManagedStoreAccountBindStatusVUnbinding
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountEnrollmentTargetEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountEnrollmentTargetEnum.go
new file mode 100644
index 00000000..2ed00dd7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountEnrollmentTargetEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedStoreAccountEnrollmentTarget undocumented
+type AndroidManagedStoreAccountEnrollmentTarget int
+
+const (
+ // AndroidManagedStoreAccountEnrollmentTargetVNone undocumented
+ AndroidManagedStoreAccountEnrollmentTargetVNone AndroidManagedStoreAccountEnrollmentTarget = 0
+ // AndroidManagedStoreAccountEnrollmentTargetVAll undocumented
+ AndroidManagedStoreAccountEnrollmentTargetVAll AndroidManagedStoreAccountEnrollmentTarget = 1
+ // AndroidManagedStoreAccountEnrollmentTargetVTargeted undocumented
+ AndroidManagedStoreAccountEnrollmentTargetVTargeted AndroidManagedStoreAccountEnrollmentTarget = 2
+ // AndroidManagedStoreAccountEnrollmentTargetVTargetedAsEnrollmentRestrictions undocumented
+ AndroidManagedStoreAccountEnrollmentTargetVTargetedAsEnrollmentRestrictions AndroidManagedStoreAccountEnrollmentTarget = 3
+)
+
+// AndroidManagedStoreAccountEnrollmentTargetPNone returns a pointer to AndroidManagedStoreAccountEnrollmentTargetVNone
+func AndroidManagedStoreAccountEnrollmentTargetPNone() *AndroidManagedStoreAccountEnrollmentTarget {
+ v := AndroidManagedStoreAccountEnrollmentTargetVNone
+ return &v
+}
+
+// AndroidManagedStoreAccountEnrollmentTargetPAll returns a pointer to AndroidManagedStoreAccountEnrollmentTargetVAll
+func AndroidManagedStoreAccountEnrollmentTargetPAll() *AndroidManagedStoreAccountEnrollmentTarget {
+ v := AndroidManagedStoreAccountEnrollmentTargetVAll
+ return &v
+}
+
+// AndroidManagedStoreAccountEnrollmentTargetPTargeted returns a pointer to AndroidManagedStoreAccountEnrollmentTargetVTargeted
+func AndroidManagedStoreAccountEnrollmentTargetPTargeted() *AndroidManagedStoreAccountEnrollmentTarget {
+ v := AndroidManagedStoreAccountEnrollmentTargetVTargeted
+ return &v
+}
+
+// AndroidManagedStoreAccountEnrollmentTargetPTargetedAsEnrollmentRestrictions returns a pointer to AndroidManagedStoreAccountEnrollmentTargetVTargetedAsEnrollmentRestrictions
+func AndroidManagedStoreAccountEnrollmentTargetPTargetedAsEnrollmentRestrictions() *AndroidManagedStoreAccountEnrollmentTarget {
+ v := AndroidManagedStoreAccountEnrollmentTargetVTargetedAsEnrollmentRestrictions
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsAction.go
new file mode 100644
index 00000000..3767ace0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsAction.go
@@ -0,0 +1,229 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestParameter undocumented
+type AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestParameter struct {
+ // PackageIDs undocumented
+ PackageIDs []string `json:"packageIds,omitempty"`
+ // ApproveAllPermissions undocumented
+ ApproveAllPermissions *bool `json:"approveAllPermissions,omitempty"`
+}
+
+// AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestParameter undocumented
+type AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestParameter struct {
+ // HostName undocumented
+ HostName *string `json:"hostName,omitempty"`
+}
+
+// AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestParameter undocumented
+type AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestParameter struct {
+ // EnterpriseToken undocumented
+ EnterpriseToken *string `json:"enterpriseToken,omitempty"`
+}
+
+// AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestParameter undocumented
+type AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestParameter struct {
+}
+
+// AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestParameter undocumented
+type AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestParameter struct {
+}
+
+// AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestParameter undocumented
+type AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestParameter struct {
+ // ParentURI undocumented
+ ParentURI *string `json:"parentUri,omitempty"`
+}
+
+// AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestParameter undocumented
+type AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestParameter struct {
+ // Enabled undocumented
+ Enabled *bool `json:"enabled,omitempty"`
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestBuilder struct{ BaseRequestBuilder }
+
+// ApproveApps action undocumented
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) ApproveApps(reqObj *AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestBuilder {
+ bb := &AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/approveApps"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequest struct{ BaseRequest }
+
+//
+func (b *AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequest {
+ return &AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestBuilder struct{ BaseRequestBuilder }
+
+// RequestSignupURL action undocumented
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) RequestSignupURL(reqObj *AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestBuilder {
+ bb := &AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/requestSignupUrl"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequest struct{ BaseRequest }
+
+//
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequest {
+ return &AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequest) Post(ctx context.Context) (resObj *string, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestBuilder struct{ BaseRequestBuilder }
+
+// CompleteSignup action undocumented
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) CompleteSignup(reqObj *AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestBuilder {
+ bb := &AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/completeSignup"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequest struct{ BaseRequest }
+
+//
+func (b *AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequest {
+ return &AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestBuilder struct{ BaseRequestBuilder }
+
+// SyncApps action undocumented
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) SyncApps(reqObj *AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestBuilder {
+ bb := &AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/syncApps"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequest struct{ BaseRequest }
+
+//
+func (b *AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequest {
+ return &AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestBuilder struct{ BaseRequestBuilder }
+
+// Unbind action undocumented
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) Unbind(reqObj *AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestBuilder {
+ bb := &AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unbind"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsUnbindRequest struct{ BaseRequest }
+
+//
+func (b *AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsUnbindRequest {
+ return &AndroidManagedStoreAccountEnterpriseSettingsUnbindRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidManagedStoreAccountEnterpriseSettingsUnbindRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateGooglePlayWebToken action undocumented
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) CreateGooglePlayWebToken(reqObj *AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestBuilder {
+ bb := &AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createGooglePlayWebToken"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequest struct{ BaseRequest }
+
+//
+func (b *AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequest {
+ return &AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequest) Post(ctx context.Context) (resObj *string, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestBuilder struct{ BaseRequestBuilder }
+
+// SetAndroidDeviceOwnerFullyManagedEnrollmentState action undocumented
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) SetAndroidDeviceOwnerFullyManagedEnrollmentState(reqObj *AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestBuilder {
+ bb := &AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/setAndroidDeviceOwnerFullyManagedEnrollmentState"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequest struct{ BaseRequest }
+
+//
+func (b *AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequest {
+ return &AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsModel.go
new file mode 100644
index 00000000..4f8e58c1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AndroidManagedStoreAccountEnterpriseSettings Enterprise settings for an Android managed store account.
+type AndroidManagedStoreAccountEnterpriseSettings struct {
+ // Entity is the base model of AndroidManagedStoreAccountEnterpriseSettings
+ Entity
+ // BindStatus Bind status of the tenant with the Google EMM API
+ BindStatus *AndroidManagedStoreAccountBindStatus `json:"bindStatus,omitempty"`
+ // LastAppSyncDateTime Last completion time for app sync
+ LastAppSyncDateTime *time.Time `json:"lastAppSyncDateTime,omitempty"`
+ // LastAppSyncStatus Last application sync result
+ LastAppSyncStatus *AndroidManagedStoreAccountAppSyncStatus `json:"lastAppSyncStatus,omitempty"`
+ // OwnerUserPrincipalName Owner UPN that created the enterprise
+ OwnerUserPrincipalName *string `json:"ownerUserPrincipalName,omitempty"`
+ // OwnerOrganizationName Organization name used when onboarding Android Enterprise
+ OwnerOrganizationName *string `json:"ownerOrganizationName,omitempty"`
+ // LastModifiedDateTime Last modification time for Android enterprise settings
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // EnrollmentTarget Indicates which users can enroll devices in Android Enterprise device management
+ EnrollmentTarget *AndroidManagedStoreAccountEnrollmentTarget `json:"enrollmentTarget,omitempty"`
+ // TargetGroupIDs Specifies which AAD groups can enroll devices in Android for Work device management if enrollmentTarget is set to 'Targeted'
+ TargetGroupIDs []string `json:"targetGroupIds,omitempty"`
+ // DeviceOwnerManagementEnabled Indicates if this account is flighting for Android Device Owner Management with CloudDPC.
+ DeviceOwnerManagementEnabled *bool `json:"deviceOwnerManagementEnabled,omitempty"`
+ // CompanyCodes Company codes for AndroidManagedStoreAccountEnterpriseSettings
+ CompanyCodes []AndroidEnrollmentCompanyCode `json:"companyCodes,omitempty"`
+ // AndroidDeviceOwnerFullyManagedEnrollmentEnabled Company codes for AndroidManagedStoreAccountEnterpriseSettings
+ AndroidDeviceOwnerFullyManagedEnrollmentEnabled *bool `json:"androidDeviceOwnerFullyManagedEnrollmentEnabled,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsRequest.go
new file mode 100644
index 00000000..6bd9cbf4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAccountEnterpriseSettingsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder is request builder for AndroidManagedStoreAccountEnterpriseSettings
+type AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidManagedStoreAccountEnterpriseSettingsRequest
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsRequest {
+ return &AndroidManagedStoreAccountEnterpriseSettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidManagedStoreAccountEnterpriseSettingsRequest is request for AndroidManagedStoreAccountEnterpriseSettings
+type AndroidManagedStoreAccountEnterpriseSettingsRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidManagedStoreAccountEnterpriseSettings
+func (r *AndroidManagedStoreAccountEnterpriseSettingsRequest) Get(ctx context.Context) (resObj *AndroidManagedStoreAccountEnterpriseSettings, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidManagedStoreAccountEnterpriseSettings
+func (r *AndroidManagedStoreAccountEnterpriseSettingsRequest) Update(ctx context.Context, reqObj *AndroidManagedStoreAccountEnterpriseSettings) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidManagedStoreAccountEnterpriseSettings
+func (r *AndroidManagedStoreAccountEnterpriseSettingsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppConfigurationModel.go
new file mode 100644
index 00000000..65626716
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppConfigurationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedStoreAppConfiguration Contains properties, inherited properties and actions for Android Enterprise mobile app configurations.
+type AndroidManagedStoreAppConfiguration struct {
+ // ManagedDeviceMobileAppConfiguration is the base model of AndroidManagedStoreAppConfiguration
+ ManagedDeviceMobileAppConfiguration
+ // PackageID Android Enterprise app configuration package id.
+ PackageID *string `json:"packageId,omitempty"`
+ // PayloadJSON Android Enterprise app configuration JSON payload.
+ PayloadJSON *string `json:"payloadJson,omitempty"`
+ // PermissionActions List of Android app permissions and corresponding permission actions.
+ PermissionActions []AndroidPermissionAction `json:"permissionActions,omitempty"`
+ // AppSupportsOemConfig Whether or not this AppConfig is an OEMConfig policy.
+ AppSupportsOemConfig *bool `json:"appSupportsOemConfig,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemDataTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemDataTypeEnum.go
new file mode 100644
index 00000000..5cde3371
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemDataTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataType undocumented
+type AndroidManagedStoreAppConfigurationSchemaItemDataType int
+
+const (
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBool undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBool AndroidManagedStoreAppConfigurationSchemaItemDataType = 0
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVInteger undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVInteger AndroidManagedStoreAppConfigurationSchemaItemDataType = 1
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVString undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVString AndroidManagedStoreAppConfigurationSchemaItemDataType = 2
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVChoice undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVChoice AndroidManagedStoreAppConfigurationSchemaItemDataType = 3
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVMultiselect undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVMultiselect AndroidManagedStoreAppConfigurationSchemaItemDataType = 4
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundle undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundle AndroidManagedStoreAppConfigurationSchemaItemDataType = 5
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundleArray undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundleArray AndroidManagedStoreAppConfigurationSchemaItemDataType = 6
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVHidden undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVHidden AndroidManagedStoreAppConfigurationSchemaItemDataType = 7
+)
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataTypePBool returns a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBool
+func AndroidManagedStoreAppConfigurationSchemaItemDataTypePBool() *AndroidManagedStoreAppConfigurationSchemaItemDataType {
+ v := AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBool
+ return &v
+}
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataTypePInteger returns a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVInteger
+func AndroidManagedStoreAppConfigurationSchemaItemDataTypePInteger() *AndroidManagedStoreAppConfigurationSchemaItemDataType {
+ v := AndroidManagedStoreAppConfigurationSchemaItemDataTypeVInteger
+ return &v
+}
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataTypePString returns a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVString
+func AndroidManagedStoreAppConfigurationSchemaItemDataTypePString() *AndroidManagedStoreAppConfigurationSchemaItemDataType {
+ v := AndroidManagedStoreAppConfigurationSchemaItemDataTypeVString
+ return &v
+}
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataTypePChoice returns a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVChoice
+func AndroidManagedStoreAppConfigurationSchemaItemDataTypePChoice() *AndroidManagedStoreAppConfigurationSchemaItemDataType {
+ v := AndroidManagedStoreAppConfigurationSchemaItemDataTypeVChoice
+ return &v
+}
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataTypePMultiselect returns a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVMultiselect
+func AndroidManagedStoreAppConfigurationSchemaItemDataTypePMultiselect() *AndroidManagedStoreAppConfigurationSchemaItemDataType {
+ v := AndroidManagedStoreAppConfigurationSchemaItemDataTypeVMultiselect
+ return &v
+}
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundle returns a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundle
+func AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundle() *AndroidManagedStoreAppConfigurationSchemaItemDataType {
+ v := AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundle
+ return &v
+}
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundleArray returns a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundleArray
+func AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundleArray() *AndroidManagedStoreAppConfigurationSchemaItemDataType {
+ v := AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundleArray
+ return &v
+}
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataTypePHidden returns a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVHidden
+func AndroidManagedStoreAppConfigurationSchemaItemDataTypePHidden() *AndroidManagedStoreAppConfigurationSchemaItemDataType {
+ v := AndroidManagedStoreAppConfigurationSchemaItemDataTypeVHidden
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemModel.go
new file mode 100644
index 00000000..6af3da5c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaItemModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedStoreAppConfigurationSchemaItem undocumented
+type AndroidManagedStoreAppConfigurationSchemaItem struct {
+ // Object is the base model of AndroidManagedStoreAppConfigurationSchemaItem
+ Object
+ // Index Unique index the application uses to maintain nested schema items
+ Index *int `json:"index,omitempty"`
+ // ParentIndex Index of parent schema item to track nested schema items
+ ParentIndex *int `json:"parentIndex,omitempty"`
+ // SchemaItemKey Unique key the application uses to identify the item
+ SchemaItemKey *string `json:"schemaItemKey,omitempty"`
+ // DisplayName Human readable name
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of what the item controls within the application
+ Description *string `json:"description,omitempty"`
+ // DefaultBoolValue Default value for boolean type items, if specified by the app developer
+ DefaultBoolValue *bool `json:"defaultBoolValue,omitempty"`
+ // DefaultIntValue Default value for integer type items, if specified by the app developer
+ DefaultIntValue *int `json:"defaultIntValue,omitempty"`
+ // DefaultStringValue Default value for string type items, if specified by the app developer
+ DefaultStringValue *string `json:"defaultStringValue,omitempty"`
+ // DefaultStringArrayValue Default value for string array type items, if specified by the app developer
+ DefaultStringArrayValue []string `json:"defaultStringArrayValue,omitempty"`
+ // DataType The type of value this item describes
+ DataType *AndroidManagedStoreAppConfigurationSchemaItemDataType `json:"dataType,omitempty"`
+ // Selections List of human readable name/value pairs for the valid values that can be set for this item (Choice and Multiselect items only)
+ Selections []KeyValuePair `json:"selections,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaModel.go
new file mode 100644
index 00000000..58859468
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedStoreAppConfigurationSchema Schema describing an Android application's custom configurations.
+type AndroidManagedStoreAppConfigurationSchema struct {
+ // Entity is the base model of AndroidManagedStoreAppConfigurationSchema
+ Entity
+ // ExampleJSON UTF8 encoded byte array containing example JSON string conforming to this schema that demonstrates how to set the configuration for this app
+ ExampleJSON *Binary `json:"exampleJson,omitempty"`
+ // SchemaItems Collection of items each representing a named configuration option in the schema. It only contains the root-level configuration.
+ SchemaItems []AndroidManagedStoreAppConfigurationSchemaItem `json:"schemaItems,omitempty"`
+ // NestedSchemaItems Collection of items each representing a named configuration option in the schema. It contains a flat list of all configuration.
+ NestedSchemaItems []AndroidManagedStoreAppConfigurationSchemaItem `json:"nestedSchemaItems,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaRequest.go
new file mode 100644
index 00000000..fd1c01a3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppConfigurationSchemaRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidManagedStoreAppConfigurationSchemaRequestBuilder is request builder for AndroidManagedStoreAppConfigurationSchema
+type AndroidManagedStoreAppConfigurationSchemaRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidManagedStoreAppConfigurationSchemaRequest
+func (b *AndroidManagedStoreAppConfigurationSchemaRequestBuilder) Request() *AndroidManagedStoreAppConfigurationSchemaRequest {
+ return &AndroidManagedStoreAppConfigurationSchemaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidManagedStoreAppConfigurationSchemaRequest is request for AndroidManagedStoreAppConfigurationSchema
+type AndroidManagedStoreAppConfigurationSchemaRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidManagedStoreAppConfigurationSchema
+func (r *AndroidManagedStoreAppConfigurationSchemaRequest) Get(ctx context.Context) (resObj *AndroidManagedStoreAppConfigurationSchema, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidManagedStoreAppConfigurationSchema
+func (r *AndroidManagedStoreAppConfigurationSchemaRequest) Update(ctx context.Context, reqObj *AndroidManagedStoreAppConfigurationSchema) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidManagedStoreAppConfigurationSchema
+func (r *AndroidManagedStoreAppConfigurationSchemaRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppModel.go
new file mode 100644
index 00000000..bf586ffc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreAppModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedStoreApp Contains properties and inherited properties for Android Managed Store Apps.
+type AndroidManagedStoreApp struct {
+ // MobileApp is the base model of AndroidManagedStoreApp
+ MobileApp
+ // PackageID The package identifier.
+ PackageID *string `json:"packageId,omitempty"`
+ // AppIdentifier The Identity Name.
+ AppIdentifier *string `json:"appIdentifier,omitempty"`
+ // UsedLicenseCount The number of VPP licenses in use.
+ UsedLicenseCount *int `json:"usedLicenseCount,omitempty"`
+ // TotalLicenseCount The total number of VPP licenses.
+ TotalLicenseCount *int `json:"totalLicenseCount,omitempty"`
+ // AppStoreURL The Play for Work Store app URL.
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+ // IsPrivate Indicates whether the app is only available to a given enterprise's users.
+ IsPrivate *bool `json:"isPrivate,omitempty"`
+ // IsSystemApp Indicates whether the app is a preinstalled system app.
+ IsSystemApp *bool `json:"isSystemApp,omitempty"`
+ // SupportsOemConfig Whether this app supports OEMConfig policy.
+ SupportsOemConfig *bool `json:"supportsOemConfig,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreWebAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreWebAppModel.go
new file mode 100644
index 00000000..7cceffa1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidManagedStoreWebAppModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidManagedStoreWebApp Contains properties and inherited properties for web apps configured to be distributed via the managed Android app store.
+type AndroidManagedStoreWebApp struct {
+ // AndroidManagedStoreApp is the base model of AndroidManagedStoreWebApp
+ AndroidManagedStoreApp
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidMinimumOperatingSystemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidMinimumOperatingSystemModel.go
new file mode 100644
index 00000000..595b7c65
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidMinimumOperatingSystemModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidMinimumOperatingSystem undocumented
+type AndroidMinimumOperatingSystem struct {
+ // Object is the base model of AndroidMinimumOperatingSystem
+ Object
+ // V4_0 Version 4.0 or later.
+ V4_0 *bool `json:"v4_0,omitempty"`
+ // V4_0_3 Version 4.0.3 or later.
+ V4_0_3 *bool `json:"v4_0_3,omitempty"`
+ // V4_1 Version 4.1 or later.
+ V4_1 *bool `json:"v4_1,omitempty"`
+ // V4_2 Version 4.2 or later.
+ V4_2 *bool `json:"v4_2,omitempty"`
+ // V4_3 Version 4.3 or later.
+ V4_3 *bool `json:"v4_3,omitempty"`
+ // V4_4 Version 4.4 or later.
+ V4_4 *bool `json:"v4_4,omitempty"`
+ // V5_0 Version 5.0 or later.
+ V5_0 *bool `json:"v5_0,omitempty"`
+ // V5_1 Version 5.1 or later.
+ V5_1 *bool `json:"v5_1,omitempty"`
+ // V6_0 Version 6.0 or later.
+ V6_0 *bool `json:"v6_0,omitempty"`
+ // V7_0 Version 7.0 or later.
+ V7_0 *bool `json:"v7_0,omitempty"`
+ // V7_1 Version 7.1 or later.
+ V7_1 *bool `json:"v7_1,omitempty"`
+ // V8_0 Version 8.0 or later.
+ V8_0 *bool `json:"v8_0,omitempty"`
+ // V8_1 Version 8.1 or later.
+ V8_1 *bool `json:"v8_1,omitempty"`
+ // V9_0 Version 9.0 or later.
+ V9_0 *bool `json:"v9_0,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidMobileAppIdentifierModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidMobileAppIdentifierModel.go
new file mode 100644
index 00000000..dbe1239f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidMobileAppIdentifierModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidMobileAppIdentifier undocumented
+type AndroidMobileAppIdentifier struct {
+ // MobileAppIdentifier is the base model of AndroidMobileAppIdentifier
+ MobileAppIdentifier
+ // PackageID The identifier for an app, as specified in the play store.
+ PackageID *string `json:"packageId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidOMACpConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidOMACpConfigurationModel.go
new file mode 100644
index 00000000..41a41c51
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidOMACpConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidOMACpConfiguration By providing a configuration in this profile you can configure Android devices that support OMA-CP.
+type AndroidOMACpConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidOMACpConfiguration
+ DeviceConfiguration
+ // ConfigurationXML Configuration XML that will be applied to the device. When it is read, it only provides a placeholder string since the original data is encrypted and stored.
+ ConfigurationXML *Binary `json:"configurationXml,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidPermissionActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidPermissionActionModel.go
new file mode 100644
index 00000000..074de608
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidPermissionActionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidPermissionAction undocumented
+type AndroidPermissionAction struct {
+ // Object is the base model of AndroidPermissionAction
+ Object
+ // Permission Android permission string, defined in the official Android documentation. Example 'android.permission.READ_CONTACTS'.
+ Permission *string `json:"permission,omitempty"`
+ // Action Type of Android permission action.
+ Action *AndroidPermissionActionType `json:"action,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidPermissionActionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidPermissionActionTypeEnum.go
new file mode 100644
index 00000000..7ff34442
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidPermissionActionTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidPermissionActionType undocumented
+type AndroidPermissionActionType int
+
+const (
+ // AndroidPermissionActionTypeVPrompt undocumented
+ AndroidPermissionActionTypeVPrompt AndroidPermissionActionType = 0
+ // AndroidPermissionActionTypeVAutoGrant undocumented
+ AndroidPermissionActionTypeVAutoGrant AndroidPermissionActionType = 1
+ // AndroidPermissionActionTypeVAutoDeny undocumented
+ AndroidPermissionActionTypeVAutoDeny AndroidPermissionActionType = 2
+)
+
+// AndroidPermissionActionTypePPrompt returns a pointer to AndroidPermissionActionTypeVPrompt
+func AndroidPermissionActionTypePPrompt() *AndroidPermissionActionType {
+ v := AndroidPermissionActionTypeVPrompt
+ return &v
+}
+
+// AndroidPermissionActionTypePAutoGrant returns a pointer to AndroidPermissionActionTypeVAutoGrant
+func AndroidPermissionActionTypePAutoGrant() *AndroidPermissionActionType {
+ v := AndroidPermissionActionTypeVAutoGrant
+ return &v
+}
+
+// AndroidPermissionActionTypePAutoDeny returns a pointer to AndroidPermissionActionTypeVAutoDeny
+func AndroidPermissionActionTypePAutoDeny() *AndroidPermissionActionType {
+ v := AndroidPermissionActionTypeVAutoDeny
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidPkcsCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidPkcsCertificateProfileModel.go
new file mode 100644
index 00000000..7e1e5122
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidPkcsCertificateProfileModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidPkcsCertificateProfile Android PKCS certificate profile
+type AndroidPkcsCertificateProfile struct {
+ // AndroidCertificateProfileBase is the base model of AndroidPkcsCertificateProfile
+ AndroidCertificateProfileBase
+ // CertificationAuthority PKCS Certification Authority
+ CertificationAuthority *string `json:"certificationAuthority,omitempty"`
+ // CertificationAuthorityName PKCS Certification Authority Name
+ CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"`
+ // CertificateTemplateName PKCS Certificate Template Name
+ CertificateTemplateName *string `json:"certificateTemplateName,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidPkcsCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidPkcsCertificateProfileRequest.go
new file mode 100644
index 00000000..66429cc7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidPkcsCertificateProfileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AndroidPkcsCertificateProfileRequestBuilder is request builder for AndroidPkcsCertificateProfile
+type AndroidPkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidPkcsCertificateProfileRequest
+func (b *AndroidPkcsCertificateProfileRequestBuilder) Request() *AndroidPkcsCertificateProfileRequest {
+ return &AndroidPkcsCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidPkcsCertificateProfileRequest is request for AndroidPkcsCertificateProfile
+type AndroidPkcsCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidPkcsCertificateProfile
+func (r *AndroidPkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidPkcsCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidPkcsCertificateProfile
+func (r *AndroidPkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidPkcsCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidPkcsCertificateProfile
+func (r *AndroidPkcsCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidPkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidRequiredPasswordTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidRequiredPasswordTypeEnum.go
new file mode 100644
index 00000000..ec5653b2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidRequiredPasswordTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidRequiredPasswordType undocumented
+type AndroidRequiredPasswordType int
+
+const (
+ // AndroidRequiredPasswordTypeVDeviceDefault undocumented
+ AndroidRequiredPasswordTypeVDeviceDefault AndroidRequiredPasswordType = 0
+ // AndroidRequiredPasswordTypeVAlphabetic undocumented
+ AndroidRequiredPasswordTypeVAlphabetic AndroidRequiredPasswordType = 1
+ // AndroidRequiredPasswordTypeVAlphanumeric undocumented
+ AndroidRequiredPasswordTypeVAlphanumeric AndroidRequiredPasswordType = 2
+ // AndroidRequiredPasswordTypeVAlphanumericWithSymbols undocumented
+ AndroidRequiredPasswordTypeVAlphanumericWithSymbols AndroidRequiredPasswordType = 3
+ // AndroidRequiredPasswordTypeVLowSecurityBiometric undocumented
+ AndroidRequiredPasswordTypeVLowSecurityBiometric AndroidRequiredPasswordType = 4
+ // AndroidRequiredPasswordTypeVNumeric undocumented
+ AndroidRequiredPasswordTypeVNumeric AndroidRequiredPasswordType = 5
+ // AndroidRequiredPasswordTypeVNumericComplex undocumented
+ AndroidRequiredPasswordTypeVNumericComplex AndroidRequiredPasswordType = 6
+ // AndroidRequiredPasswordTypeVAny undocumented
+ AndroidRequiredPasswordTypeVAny AndroidRequiredPasswordType = 7
+)
+
+// AndroidRequiredPasswordTypePDeviceDefault returns a pointer to AndroidRequiredPasswordTypeVDeviceDefault
+func AndroidRequiredPasswordTypePDeviceDefault() *AndroidRequiredPasswordType {
+ v := AndroidRequiredPasswordTypeVDeviceDefault
+ return &v
+}
+
+// AndroidRequiredPasswordTypePAlphabetic returns a pointer to AndroidRequiredPasswordTypeVAlphabetic
+func AndroidRequiredPasswordTypePAlphabetic() *AndroidRequiredPasswordType {
+ v := AndroidRequiredPasswordTypeVAlphabetic
+ return &v
+}
+
+// AndroidRequiredPasswordTypePAlphanumeric returns a pointer to AndroidRequiredPasswordTypeVAlphanumeric
+func AndroidRequiredPasswordTypePAlphanumeric() *AndroidRequiredPasswordType {
+ v := AndroidRequiredPasswordTypeVAlphanumeric
+ return &v
+}
+
+// AndroidRequiredPasswordTypePAlphanumericWithSymbols returns a pointer to AndroidRequiredPasswordTypeVAlphanumericWithSymbols
+func AndroidRequiredPasswordTypePAlphanumericWithSymbols() *AndroidRequiredPasswordType {
+ v := AndroidRequiredPasswordTypeVAlphanumericWithSymbols
+ return &v
+}
+
+// AndroidRequiredPasswordTypePLowSecurityBiometric returns a pointer to AndroidRequiredPasswordTypeVLowSecurityBiometric
+func AndroidRequiredPasswordTypePLowSecurityBiometric() *AndroidRequiredPasswordType {
+ v := AndroidRequiredPasswordTypeVLowSecurityBiometric
+ return &v
+}
+
+// AndroidRequiredPasswordTypePNumeric returns a pointer to AndroidRequiredPasswordTypeVNumeric
+func AndroidRequiredPasswordTypePNumeric() *AndroidRequiredPasswordType {
+ v := AndroidRequiredPasswordTypeVNumeric
+ return &v
+}
+
+// AndroidRequiredPasswordTypePNumericComplex returns a pointer to AndroidRequiredPasswordTypeVNumericComplex
+func AndroidRequiredPasswordTypePNumericComplex() *AndroidRequiredPasswordType {
+ v := AndroidRequiredPasswordTypeVNumericComplex
+ return &v
+}
+
+// AndroidRequiredPasswordTypePAny returns a pointer to AndroidRequiredPasswordTypeVAny
+func AndroidRequiredPasswordTypePAny() *AndroidRequiredPasswordType {
+ v := AndroidRequiredPasswordTypeVAny
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidScepCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidScepCertificateProfileModel.go
new file mode 100644
index 00000000..022032a1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidScepCertificateProfileModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidScepCertificateProfile Android SCEP certificate profile
+type AndroidScepCertificateProfile struct {
+ // AndroidCertificateProfileBase is the base model of AndroidScepCertificateProfile
+ AndroidCertificateProfileBase
+ // ScepServerUrls SCEP Server Url(s)
+ ScepServerUrls []string `json:"scepServerUrls,omitempty"`
+ // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
+ SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"`
+ // KeyUsage SCEP Key Usage
+ KeyUsage *KeyUsages `json:"keyUsage,omitempty"`
+ // KeySize SCEP Key Size
+ KeySize *KeySize `json:"keySize,omitempty"`
+ // HashAlgorithm SCEP Hash Algorithm
+ HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidScepCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidScepCertificateProfileRequest.go
new file mode 100644
index 00000000..b84f5ca5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidScepCertificateProfileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AndroidScepCertificateProfileRequestBuilder is request builder for AndroidScepCertificateProfile
+type AndroidScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidScepCertificateProfileRequest
+func (b *AndroidScepCertificateProfileRequestBuilder) Request() *AndroidScepCertificateProfileRequest {
+ return &AndroidScepCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidScepCertificateProfileRequest is request for AndroidScepCertificateProfile
+type AndroidScepCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidScepCertificateProfile
+func (r *AndroidScepCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidScepCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidScepCertificateProfile
+func (r *AndroidScepCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidScepCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidScepCertificateProfile
+func (r *AndroidScepCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidStoreAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidStoreAppModel.go
new file mode 100644
index 00000000..2152714f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidStoreAppModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidStoreApp Contains properties and inherited properties for Android store apps.
+type AndroidStoreApp struct {
+ // MobileApp is the base model of AndroidStoreApp
+ MobileApp
+ // PackageID The package identifier.
+ PackageID *string `json:"packageId,omitempty"`
+ // AppIdentifier The Identity Name.
+ AppIdentifier *string `json:"appIdentifier,omitempty"`
+ // AppStoreURL The Android app store URL.
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *AndroidMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidTrustedRootCertificateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidTrustedRootCertificateModel.go
new file mode 100644
index 00000000..ea587954
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidTrustedRootCertificateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidTrustedRootCertificate Android Trusted Root Certificate configuration profile
+type AndroidTrustedRootCertificate struct {
+ // DeviceConfiguration is the base model of AndroidTrustedRootCertificate
+ DeviceConfiguration
+ // TrustedRootCertificate Trusted Root Certificate
+ TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"`
+ // CertFileName File name to display in UI.
+ CertFileName *string `json:"certFileName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidTrustedRootCertificateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidTrustedRootCertificateRequest.go
new file mode 100644
index 00000000..fb85840f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidTrustedRootCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidTrustedRootCertificateRequestBuilder is request builder for AndroidTrustedRootCertificate
+type AndroidTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidTrustedRootCertificateRequest
+func (b *AndroidTrustedRootCertificateRequestBuilder) Request() *AndroidTrustedRootCertificateRequest {
+ return &AndroidTrustedRootCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidTrustedRootCertificateRequest is request for AndroidTrustedRootCertificate
+type AndroidTrustedRootCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidTrustedRootCertificate
+func (r *AndroidTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *AndroidTrustedRootCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidTrustedRootCertificate
+func (r *AndroidTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *AndroidTrustedRootCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidTrustedRootCertificate
+func (r *AndroidTrustedRootCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidUsernameSourceEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidUsernameSourceEnum.go
new file mode 100644
index 00000000..fefe6d7c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidUsernameSourceEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidUsernameSource undocumented
+type AndroidUsernameSource int
+
+const (
+ // AndroidUsernameSourceVUsername undocumented
+ AndroidUsernameSourceVUsername AndroidUsernameSource = 0
+ // AndroidUsernameSourceVUserPrincipalName undocumented
+ AndroidUsernameSourceVUserPrincipalName AndroidUsernameSource = 1
+ // AndroidUsernameSourceVSamAccountName undocumented
+ AndroidUsernameSourceVSamAccountName AndroidUsernameSource = 2
+ // AndroidUsernameSourceVPrimarySMTPAddress undocumented
+ AndroidUsernameSourceVPrimarySMTPAddress AndroidUsernameSource = 3
+)
+
+// AndroidUsernameSourcePUsername returns a pointer to AndroidUsernameSourceVUsername
+func AndroidUsernameSourcePUsername() *AndroidUsernameSource {
+ v := AndroidUsernameSourceVUsername
+ return &v
+}
+
+// AndroidUsernameSourcePUserPrincipalName returns a pointer to AndroidUsernameSourceVUserPrincipalName
+func AndroidUsernameSourcePUserPrincipalName() *AndroidUsernameSource {
+ v := AndroidUsernameSourceVUserPrincipalName
+ return &v
+}
+
+// AndroidUsernameSourcePSamAccountName returns a pointer to AndroidUsernameSourceVSamAccountName
+func AndroidUsernameSourcePSamAccountName() *AndroidUsernameSource {
+ v := AndroidUsernameSourceVSamAccountName
+ return &v
+}
+
+// AndroidUsernameSourcePPrimarySMTPAddress returns a pointer to AndroidUsernameSourceVPrimarySMTPAddress
+func AndroidUsernameSourcePPrimarySMTPAddress() *AndroidUsernameSource {
+ v := AndroidUsernameSourceVPrimarySMTPAddress
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidVpnConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidVpnConfigurationModel.go
new file mode 100644
index 00000000..78ef6c7b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidVpnConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidVpnConfiguration By providing the configurations in this profile you can instruct the Android device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.
+type AndroidVpnConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidVpnConfiguration
+ DeviceConfiguration
+ // ConnectionName Connection name displayed to the user.
+ ConnectionName *string `json:"connectionName,omitempty"`
+ // ConnectionType Connection type.
+ ConnectionType *AndroidVpnConnectionType `json:"connectionType,omitempty"`
+ // Role Role when connection type is set to Pulse Secure.
+ Role *string `json:"role,omitempty"`
+ // Realm Realm when connection type is set to Pulse Secure.
+ Realm *string `json:"realm,omitempty"`
+ // Servers List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements.
+ Servers []VpnServer `json:"servers,omitempty"`
+ // Fingerprint Fingerprint is a string that will be used to verify the VPN server can be trusted, which is only applicable when connection type is Check Point Capsule VPN.
+ Fingerprint *string `json:"fingerprint,omitempty"`
+ // CustomData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.
+ CustomData []KeyValue `json:"customData,omitempty"`
+ // CustomKeyValueData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.
+ CustomKeyValueData []KeyValuePair `json:"customKeyValueData,omitempty"`
+ // AuthenticationMethod Authentication method.
+ AuthenticationMethod *VpnAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *AndroidCertificateProfileBase `json:"identityCertificate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidVpnConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidVpnConfigurationRequest.go
new file mode 100644
index 00000000..4584771f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidVpnConfigurationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidVpnConfigurationRequestBuilder is request builder for AndroidVpnConfiguration
+type AndroidVpnConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidVpnConfigurationRequest
+func (b *AndroidVpnConfigurationRequestBuilder) Request() *AndroidVpnConfigurationRequest {
+ return &AndroidVpnConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidVpnConfigurationRequest is request for AndroidVpnConfiguration
+type AndroidVpnConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidVpnConfiguration
+func (r *AndroidVpnConfigurationRequest) Get(ctx context.Context) (resObj *AndroidVpnConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidVpnConfiguration
+func (r *AndroidVpnConfigurationRequest) Update(ctx context.Context, reqObj *AndroidVpnConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidVpnConfiguration
+func (r *AndroidVpnConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidVpnConfigurationRequestBuilder) IdentityCertificate() *AndroidCertificateProfileBaseRequestBuilder {
+ bb := &AndroidCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidVpnConnectionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidVpnConnectionTypeEnum.go
new file mode 100644
index 00000000..0a536957
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidVpnConnectionTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidVpnConnectionType undocumented
+type AndroidVpnConnectionType int
+
+const (
+ // AndroidVpnConnectionTypeVCiscoAnyConnect undocumented
+ AndroidVpnConnectionTypeVCiscoAnyConnect AndroidVpnConnectionType = 0
+ // AndroidVpnConnectionTypeVPulseSecure undocumented
+ AndroidVpnConnectionTypeVPulseSecure AndroidVpnConnectionType = 1
+ // AndroidVpnConnectionTypeVF5EdgeClient undocumented
+ AndroidVpnConnectionTypeVF5EdgeClient AndroidVpnConnectionType = 2
+ // AndroidVpnConnectionTypeVDellSonicWallMobileConnect undocumented
+ AndroidVpnConnectionTypeVDellSonicWallMobileConnect AndroidVpnConnectionType = 3
+ // AndroidVpnConnectionTypeVCheckPointCapsuleVpn undocumented
+ AndroidVpnConnectionTypeVCheckPointCapsuleVpn AndroidVpnConnectionType = 4
+ // AndroidVpnConnectionTypeVCitrix undocumented
+ AndroidVpnConnectionTypeVCitrix AndroidVpnConnectionType = 5
+)
+
+// AndroidVpnConnectionTypePCiscoAnyConnect returns a pointer to AndroidVpnConnectionTypeVCiscoAnyConnect
+func AndroidVpnConnectionTypePCiscoAnyConnect() *AndroidVpnConnectionType {
+ v := AndroidVpnConnectionTypeVCiscoAnyConnect
+ return &v
+}
+
+// AndroidVpnConnectionTypePPulseSecure returns a pointer to AndroidVpnConnectionTypeVPulseSecure
+func AndroidVpnConnectionTypePPulseSecure() *AndroidVpnConnectionType {
+ v := AndroidVpnConnectionTypeVPulseSecure
+ return &v
+}
+
+// AndroidVpnConnectionTypePF5EdgeClient returns a pointer to AndroidVpnConnectionTypeVF5EdgeClient
+func AndroidVpnConnectionTypePF5EdgeClient() *AndroidVpnConnectionType {
+ v := AndroidVpnConnectionTypeVF5EdgeClient
+ return &v
+}
+
+// AndroidVpnConnectionTypePDellSonicWallMobileConnect returns a pointer to AndroidVpnConnectionTypeVDellSonicWallMobileConnect
+func AndroidVpnConnectionTypePDellSonicWallMobileConnect() *AndroidVpnConnectionType {
+ v := AndroidVpnConnectionTypeVDellSonicWallMobileConnect
+ return &v
+}
+
+// AndroidVpnConnectionTypePCheckPointCapsuleVpn returns a pointer to AndroidVpnConnectionTypeVCheckPointCapsuleVpn
+func AndroidVpnConnectionTypePCheckPointCapsuleVpn() *AndroidVpnConnectionType {
+ v := AndroidVpnConnectionTypeVCheckPointCapsuleVpn
+ return &v
+}
+
+// AndroidVpnConnectionTypePCitrix returns a pointer to AndroidVpnConnectionTypeVCitrix
+func AndroidVpnConnectionTypePCitrix() *AndroidVpnConnectionType {
+ v := AndroidVpnConnectionTypeVCitrix
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWiFiConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWiFiConfigurationModel.go
new file mode 100644
index 00000000..58ef1ef7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWiFiConfigurationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWiFiConfiguration By providing the configurations in this profile you can instruct the Android device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile.
+type AndroidWiFiConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidWiFiConfiguration
+ DeviceConfiguration
+ // NetworkName Network Name
+ NetworkName *string `json:"networkName,omitempty"`
+ // Ssid This is the name of the Wi-Fi network that is broadcast to all devices.
+ Ssid *string `json:"ssid,omitempty"`
+ // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network.
+ ConnectAutomatically *bool `json:"connectAutomatically,omitempty"`
+ // ConnectWhenNetworkNameIsHidden When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices.
+ ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"`
+ // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type.
+ WiFiSecurityType *AndroidWiFiSecurityType `json:"wiFiSecurityType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWiFiSecurityTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWiFiSecurityTypeEnum.go
new file mode 100644
index 00000000..ca5cc336
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWiFiSecurityTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWiFiSecurityType undocumented
+type AndroidWiFiSecurityType int
+
+const (
+ // AndroidWiFiSecurityTypeVOpen undocumented
+ AndroidWiFiSecurityTypeVOpen AndroidWiFiSecurityType = 0
+ // AndroidWiFiSecurityTypeVWpaEnterprise undocumented
+ AndroidWiFiSecurityTypeVWpaEnterprise AndroidWiFiSecurityType = 1
+ // AndroidWiFiSecurityTypeVWpa2Enterprise undocumented
+ AndroidWiFiSecurityTypeVWpa2Enterprise AndroidWiFiSecurityType = 2
+)
+
+// AndroidWiFiSecurityTypePOpen returns a pointer to AndroidWiFiSecurityTypeVOpen
+func AndroidWiFiSecurityTypePOpen() *AndroidWiFiSecurityType {
+ v := AndroidWiFiSecurityTypeVOpen
+ return &v
+}
+
+// AndroidWiFiSecurityTypePWpaEnterprise returns a pointer to AndroidWiFiSecurityTypeVWpaEnterprise
+func AndroidWiFiSecurityTypePWpaEnterprise() *AndroidWiFiSecurityType {
+ v := AndroidWiFiSecurityTypeVWpaEnterprise
+ return &v
+}
+
+// AndroidWiFiSecurityTypePWpa2Enterprise returns a pointer to AndroidWiFiSecurityTypeVWpa2Enterprise
+func AndroidWiFiSecurityTypePWpa2Enterprise() *AndroidWiFiSecurityType {
+ v := AndroidWiFiSecurityTypeVWpa2Enterprise
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseModel.go
new file mode 100644
index 00000000..ee5b474c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileCertificateProfileBase Android Work Profile certificate profile base.
+type AndroidWorkProfileCertificateProfileBase struct {
+ // DeviceConfiguration is the base model of AndroidWorkProfileCertificateProfileBase
+ DeviceConfiguration
+ // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99
+ RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
+ // SubjectNameFormat Certificate Subject Name Format.
+ SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"`
+ // CertificateValidityPeriodValue Value for the Certificate Validity Period.
+ CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
+ // CertificateValidityPeriodScale Scale for the Certificate Validity Period.
+ CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
+ // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
+ ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
+ // SubjectAlternativeNameType Certificate Subject Alternative Name Type.
+ SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"`
+ // RootCertificate undocumented
+ RootCertificate *AndroidWorkProfileTrustedRootCertificate `json:"rootCertificate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseRequest.go
new file mode 100644
index 00000000..d0342d4f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileCertificateProfileBaseRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidWorkProfileCertificateProfileBaseRequestBuilder is request builder for AndroidWorkProfileCertificateProfileBase
+type AndroidWorkProfileCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidWorkProfileCertificateProfileBaseRequest
+func (b *AndroidWorkProfileCertificateProfileBaseRequestBuilder) Request() *AndroidWorkProfileCertificateProfileBaseRequest {
+ return &AndroidWorkProfileCertificateProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidWorkProfileCertificateProfileBaseRequest is request for AndroidWorkProfileCertificateProfileBase
+type AndroidWorkProfileCertificateProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidWorkProfileCertificateProfileBase
+func (r *AndroidWorkProfileCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileCertificateProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidWorkProfileCertificateProfileBase
+func (r *AndroidWorkProfileCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileCertificateProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidWorkProfileCertificateProfileBase
+func (r *AndroidWorkProfileCertificateProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RootCertificate is navigation property
+func (b *AndroidWorkProfileCertificateProfileBaseRequestBuilder) RootCertificate() *AndroidWorkProfileTrustedRootCertificateRequestBuilder {
+ bb := &AndroidWorkProfileTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileCompliancePolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileCompliancePolicyModel.go
new file mode 100644
index 00000000..4b1d55f6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileCompliancePolicyModel.go
@@ -0,0 +1,53 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileCompliancePolicy This class contains compliance settings for Android Work Profile.
+type AndroidWorkProfileCompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of AndroidWorkProfileCompliancePolicy
+ DeviceCompliancePolicy
+ // PasswordRequired Require a password to unlock device.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordMinimumLength Minimum password length. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordRequiredType Type of characters in password
+ PasswordRequiredType *AndroidRequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 1 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset Number of sign-in failures allowed before factory reset. Valid values 1 to 16
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // SecurityPreventInstallAppsFromUnknownSources Require that devices disallow installation of apps from unknown sources.
+ SecurityPreventInstallAppsFromUnknownSources *bool `json:"securityPreventInstallAppsFromUnknownSources,omitempty"`
+ // SecurityDisableUsbDebugging Disable USB debugging on Android devices.
+ SecurityDisableUsbDebugging *bool `json:"securityDisableUsbDebugging,omitempty"`
+ // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on.
+ SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"`
+ // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection.
+ DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"`
+ // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance.
+ DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"`
+ // SecurityBlockJailbrokenDevices Devices must not be jailbroken or rooted.
+ SecurityBlockJailbrokenDevices *bool `json:"securityBlockJailbrokenDevices,omitempty"`
+ // OsMinimumVersion Minimum Android version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum Android version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // MinAndroidSecurityPatchLevel Minimum Android security patch level.
+ MinAndroidSecurityPatchLevel *string `json:"minAndroidSecurityPatchLevel,omitempty"`
+ // StorageRequireEncryption Require encryption on Android devices.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+ // SecurityRequireSafetyNetAttestationBasicIntegrity Require the device to pass the SafetyNet basic integrity check.
+ SecurityRequireSafetyNetAttestationBasicIntegrity *bool `json:"securityRequireSafetyNetAttestationBasicIntegrity,omitempty"`
+ // SecurityRequireSafetyNetAttestationCertifiedDevice Require the device to pass the SafetyNet certified device check.
+ SecurityRequireSafetyNetAttestationCertifiedDevice *bool `json:"securityRequireSafetyNetAttestationCertifiedDevice,omitempty"`
+ // SecurityRequireGooglePlayServices Require Google Play Services to be installed and enabled on the device.
+ SecurityRequireGooglePlayServices *bool `json:"securityRequireGooglePlayServices,omitempty"`
+ // SecurityRequireUpToDateSecurityProviders Require the device to have up to date security providers. The device will require Google Play Services to be enabled and up to date.
+ SecurityRequireUpToDateSecurityProviders *bool `json:"securityRequireUpToDateSecurityProviders,omitempty"`
+ // SecurityRequireCompanyPortalAppIntegrity Require the device to pass the Company Portal client app runtime integrity check.
+ SecurityRequireCompanyPortalAppIntegrity *bool `json:"securityRequireCompanyPortalAppIntegrity,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileCrossProfileDataSharingTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileCrossProfileDataSharingTypeEnum.go
new file mode 100644
index 00000000..4f0e8315
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileCrossProfileDataSharingTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileCrossProfileDataSharingType undocumented
+type AndroidWorkProfileCrossProfileDataSharingType int
+
+const (
+ // AndroidWorkProfileCrossProfileDataSharingTypeVDeviceDefault undocumented
+ AndroidWorkProfileCrossProfileDataSharingTypeVDeviceDefault AndroidWorkProfileCrossProfileDataSharingType = 0
+ // AndroidWorkProfileCrossProfileDataSharingTypeVPreventAny undocumented
+ AndroidWorkProfileCrossProfileDataSharingTypeVPreventAny AndroidWorkProfileCrossProfileDataSharingType = 1
+ // AndroidWorkProfileCrossProfileDataSharingTypeVAllowPersonalToWork undocumented
+ AndroidWorkProfileCrossProfileDataSharingTypeVAllowPersonalToWork AndroidWorkProfileCrossProfileDataSharingType = 2
+ // AndroidWorkProfileCrossProfileDataSharingTypeVNoRestrictions undocumented
+ AndroidWorkProfileCrossProfileDataSharingTypeVNoRestrictions AndroidWorkProfileCrossProfileDataSharingType = 3
+)
+
+// AndroidWorkProfileCrossProfileDataSharingTypePDeviceDefault returns a pointer to AndroidWorkProfileCrossProfileDataSharingTypeVDeviceDefault
+func AndroidWorkProfileCrossProfileDataSharingTypePDeviceDefault() *AndroidWorkProfileCrossProfileDataSharingType {
+ v := AndroidWorkProfileCrossProfileDataSharingTypeVDeviceDefault
+ return &v
+}
+
+// AndroidWorkProfileCrossProfileDataSharingTypePPreventAny returns a pointer to AndroidWorkProfileCrossProfileDataSharingTypeVPreventAny
+func AndroidWorkProfileCrossProfileDataSharingTypePPreventAny() *AndroidWorkProfileCrossProfileDataSharingType {
+ v := AndroidWorkProfileCrossProfileDataSharingTypeVPreventAny
+ return &v
+}
+
+// AndroidWorkProfileCrossProfileDataSharingTypePAllowPersonalToWork returns a pointer to AndroidWorkProfileCrossProfileDataSharingTypeVAllowPersonalToWork
+func AndroidWorkProfileCrossProfileDataSharingTypePAllowPersonalToWork() *AndroidWorkProfileCrossProfileDataSharingType {
+ v := AndroidWorkProfileCrossProfileDataSharingTypeVAllowPersonalToWork
+ return &v
+}
+
+// AndroidWorkProfileCrossProfileDataSharingTypePNoRestrictions returns a pointer to AndroidWorkProfileCrossProfileDataSharingTypeVNoRestrictions
+func AndroidWorkProfileCrossProfileDataSharingTypePNoRestrictions() *AndroidWorkProfileCrossProfileDataSharingType {
+ v := AndroidWorkProfileCrossProfileDataSharingTypeVNoRestrictions
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileCustomConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileCustomConfigurationModel.go
new file mode 100644
index 00000000..fa88fefb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileCustomConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileCustomConfiguration Android Work Profile custom configuration
+type AndroidWorkProfileCustomConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidWorkProfileCustomConfiguration
+ DeviceConfiguration
+ // OMASettings OMA settings. This collection can contain a maximum of 500 elements.
+ OMASettings []OMASetting `json:"omaSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileDefaultAppPermissionPolicyTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileDefaultAppPermissionPolicyTypeEnum.go
new file mode 100644
index 00000000..0a595f9b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileDefaultAppPermissionPolicyTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileDefaultAppPermissionPolicyType undocumented
+type AndroidWorkProfileDefaultAppPermissionPolicyType int
+
+const (
+ // AndroidWorkProfileDefaultAppPermissionPolicyTypeVDeviceDefault undocumented
+ AndroidWorkProfileDefaultAppPermissionPolicyTypeVDeviceDefault AndroidWorkProfileDefaultAppPermissionPolicyType = 0
+ // AndroidWorkProfileDefaultAppPermissionPolicyTypeVPrompt undocumented
+ AndroidWorkProfileDefaultAppPermissionPolicyTypeVPrompt AndroidWorkProfileDefaultAppPermissionPolicyType = 1
+ // AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoGrant undocumented
+ AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoGrant AndroidWorkProfileDefaultAppPermissionPolicyType = 2
+ // AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoDeny undocumented
+ AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoDeny AndroidWorkProfileDefaultAppPermissionPolicyType = 3
+)
+
+// AndroidWorkProfileDefaultAppPermissionPolicyTypePDeviceDefault returns a pointer to AndroidWorkProfileDefaultAppPermissionPolicyTypeVDeviceDefault
+func AndroidWorkProfileDefaultAppPermissionPolicyTypePDeviceDefault() *AndroidWorkProfileDefaultAppPermissionPolicyType {
+ v := AndroidWorkProfileDefaultAppPermissionPolicyTypeVDeviceDefault
+ return &v
+}
+
+// AndroidWorkProfileDefaultAppPermissionPolicyTypePPrompt returns a pointer to AndroidWorkProfileDefaultAppPermissionPolicyTypeVPrompt
+func AndroidWorkProfileDefaultAppPermissionPolicyTypePPrompt() *AndroidWorkProfileDefaultAppPermissionPolicyType {
+ v := AndroidWorkProfileDefaultAppPermissionPolicyTypeVPrompt
+ return &v
+}
+
+// AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoGrant returns a pointer to AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoGrant
+func AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoGrant() *AndroidWorkProfileDefaultAppPermissionPolicyType {
+ v := AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoGrant
+ return &v
+}
+
+// AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoDeny returns a pointer to AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoDeny
+func AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoDeny() *AndroidWorkProfileDefaultAppPermissionPolicyType {
+ v := AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoDeny
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseModel.go
new file mode 100644
index 00000000..64fd117f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileEasEmailProfileBase Base for Android Work Profile EAS Email profiles
+type AndroidWorkProfileEasEmailProfileBase struct {
+ // DeviceConfiguration is the base model of AndroidWorkProfileEasEmailProfileBase
+ DeviceConfiguration
+ // AuthenticationMethod Authentication method for Exchange ActiveSync.
+ AuthenticationMethod *EasAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // DurationOfEmailToSync Duration of time email should be synced to.
+ DurationOfEmailToSync *EmailSyncDuration `json:"durationOfEmailToSync,omitempty"`
+ // EmailAddressSource Email attribute that is picked from AAD and injected into this profile before installing on the device.
+ EmailAddressSource *UserEmailSource `json:"emailAddressSource,omitempty"`
+ // HostName Exchange location (URL) that the mail app connects to.
+ HostName *string `json:"hostName,omitempty"`
+ // RequireSsl Indicates whether or not to use SSL.
+ RequireSsl *bool `json:"requireSsl,omitempty"`
+ // UsernameSource Username attribute that is picked from AAD and injected into this profile before installing on the device.
+ UsernameSource *AndroidUsernameSource `json:"usernameSource,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *AndroidWorkProfileCertificateProfileBase `json:"identityCertificate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseRequest.go
new file mode 100644
index 00000000..7783272a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileEasEmailProfileBaseRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidWorkProfileEasEmailProfileBaseRequestBuilder is request builder for AndroidWorkProfileEasEmailProfileBase
+type AndroidWorkProfileEasEmailProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidWorkProfileEasEmailProfileBaseRequest
+func (b *AndroidWorkProfileEasEmailProfileBaseRequestBuilder) Request() *AndroidWorkProfileEasEmailProfileBaseRequest {
+ return &AndroidWorkProfileEasEmailProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidWorkProfileEasEmailProfileBaseRequest is request for AndroidWorkProfileEasEmailProfileBase
+type AndroidWorkProfileEasEmailProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidWorkProfileEasEmailProfileBase
+func (r *AndroidWorkProfileEasEmailProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileEasEmailProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidWorkProfileEasEmailProfileBase
+func (r *AndroidWorkProfileEasEmailProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileEasEmailProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidWorkProfileEasEmailProfileBase
+func (r *AndroidWorkProfileEasEmailProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidWorkProfileEasEmailProfileBaseRequestBuilder) IdentityCertificate() *AndroidWorkProfileCertificateProfileBaseRequestBuilder {
+ bb := &AndroidWorkProfileCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationModel.go
new file mode 100644
index 00000000..1b4ff4e6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileEnterpriseWiFiConfiguration By providing the configurations in this profile you can instruct the Android Work Profile device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user.
+type AndroidWorkProfileEnterpriseWiFiConfiguration struct {
+ // AndroidWorkProfileWiFiConfiguration is the base model of AndroidWorkProfileEnterpriseWiFiConfiguration
+ AndroidWorkProfileWiFiConfiguration
+ // EapType Indicates the type of EAP protocol set on the Wi-Fi endpoint (router).
+ EapType *AndroidEapType `json:"eapType,omitempty"`
+ // AuthenticationMethod Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS.
+ AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"`
+ // InnerAuthenticationProtocolForPeap Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForPeap *NonEapAuthenticationMethodForPeap `json:"innerAuthenticationProtocolForPeap,omitempty"`
+ // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS or PEAP. The String provided here is used to mask the username of individual users when they attempt to connect to Wi-Fi network.
+ OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"`
+ // RootCertificateForServerValidation undocumented
+ RootCertificateForServerValidation *AndroidWorkProfileTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"`
+ // IdentityCertificateForClientAuthentication undocumented
+ IdentityCertificateForClientAuthentication *AndroidWorkProfileCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationRequest.go
new file mode 100644
index 00000000..a39fb0c3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileEnterpriseWiFiConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidWorkProfileEnterpriseWiFiConfigurationRequestBuilder is request builder for AndroidWorkProfileEnterpriseWiFiConfiguration
+type AndroidWorkProfileEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidWorkProfileEnterpriseWiFiConfigurationRequest
+func (b *AndroidWorkProfileEnterpriseWiFiConfigurationRequestBuilder) Request() *AndroidWorkProfileEnterpriseWiFiConfigurationRequest {
+ return &AndroidWorkProfileEnterpriseWiFiConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidWorkProfileEnterpriseWiFiConfigurationRequest is request for AndroidWorkProfileEnterpriseWiFiConfiguration
+type AndroidWorkProfileEnterpriseWiFiConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidWorkProfileEnterpriseWiFiConfiguration
+func (r *AndroidWorkProfileEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileEnterpriseWiFiConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidWorkProfileEnterpriseWiFiConfiguration
+func (r *AndroidWorkProfileEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileEnterpriseWiFiConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidWorkProfileEnterpriseWiFiConfiguration
+func (r *AndroidWorkProfileEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityCertificateForClientAuthentication is navigation property
+func (b *AndroidWorkProfileEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *AndroidWorkProfileCertificateProfileBaseRequestBuilder {
+ bb := &AndroidWorkProfileCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificateForClientAuthentication"
+ return bb
+}
+
+// RootCertificateForServerValidation is navigation property
+func (b *AndroidWorkProfileEnterpriseWiFiConfigurationRequestBuilder) RootCertificateForServerValidation() *AndroidWorkProfileTrustedRootCertificateRequestBuilder {
+ bb := &AndroidWorkProfileTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificateForServerValidation"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileGeneralDeviceConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileGeneralDeviceConfigurationModel.go
new file mode 100644
index 00000000..340776ad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileGeneralDeviceConfigurationModel.go
@@ -0,0 +1,85 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileGeneralDeviceConfiguration Android Work Profile general device configuration.
+type AndroidWorkProfileGeneralDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidWorkProfileGeneralDeviceConfiguration
+ DeviceConfiguration
+ // PasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock.
+ PasswordBlockFingerprintUnlock *bool `json:"passwordBlockFingerprintUnlock,omitempty"`
+ // PasswordBlockTrustAgents Indicates whether or not to block Smart Lock and other trust agents.
+ PasswordBlockTrustAgents *bool `json:"passwordBlockTrustAgents,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength Minimum length of passwords. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out.
+ PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 0 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset Number of sign in failures allowed before factory reset. Valid values 1 to 16
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // PasswordRequiredType Type of password that is required.
+ PasswordRequiredType *AndroidWorkProfileRequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // WorkProfileDataSharingType Type of data sharing that is allowed.
+ WorkProfileDataSharingType *AndroidWorkProfileCrossProfileDataSharingType `json:"workProfileDataSharingType,omitempty"`
+ // WorkProfileBlockNotificationsWhileDeviceLocked Indicates whether or not to block notifications while device locked.
+ WorkProfileBlockNotificationsWhileDeviceLocked *bool `json:"workProfileBlockNotificationsWhileDeviceLocked,omitempty"`
+ // WorkProfileBlockAddingAccounts Block users from adding/removing accounts in work profile.
+ WorkProfileBlockAddingAccounts *bool `json:"workProfileBlockAddingAccounts,omitempty"`
+ // WorkProfileBluetoothEnableContactSharing Allow bluetooth devices to access enterprise contacts.
+ WorkProfileBluetoothEnableContactSharing *bool `json:"workProfileBluetoothEnableContactSharing,omitempty"`
+ // WorkProfileBlockScreenCapture Block screen capture in work profile.
+ WorkProfileBlockScreenCapture *bool `json:"workProfileBlockScreenCapture,omitempty"`
+ // WorkProfileBlockCrossProfileCallerID Block display work profile caller ID in personal profile.
+ WorkProfileBlockCrossProfileCallerID *bool `json:"workProfileBlockCrossProfileCallerId,omitempty"`
+ // WorkProfileBlockCamera Block work profile camera.
+ WorkProfileBlockCamera *bool `json:"workProfileBlockCamera,omitempty"`
+ // WorkProfileBlockCrossProfileContactsSearch Block work profile contacts availability in personal profile.
+ WorkProfileBlockCrossProfileContactsSearch *bool `json:"workProfileBlockCrossProfileContactsSearch,omitempty"`
+ // WorkProfileBlockCrossProfileCopyPaste Boolean that indicates if the setting disallow cross profile copy/paste is enabled.
+ WorkProfileBlockCrossProfileCopyPaste *bool `json:"workProfileBlockCrossProfileCopyPaste,omitempty"`
+ // WorkProfileDefaultAppPermissionPolicy Type of password that is required.
+ WorkProfileDefaultAppPermissionPolicy *AndroidWorkProfileDefaultAppPermissionPolicyType `json:"workProfileDefaultAppPermissionPolicy,omitempty"`
+ // WorkProfilePasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock for work profile.
+ WorkProfilePasswordBlockFingerprintUnlock *bool `json:"workProfilePasswordBlockFingerprintUnlock,omitempty"`
+ // WorkProfilePasswordBlockTrustAgents Indicates whether or not to block Smart Lock and other trust agents for work profile.
+ WorkProfilePasswordBlockTrustAgents *bool `json:"workProfilePasswordBlockTrustAgents,omitempty"`
+ // WorkProfilePasswordExpirationDays Number of days before the work profile password expires. Valid values 1 to 365
+ WorkProfilePasswordExpirationDays *int `json:"workProfilePasswordExpirationDays,omitempty"`
+ // WorkProfilePasswordMinimumLength Minimum length of work profile password. Valid values 4 to 16
+ WorkProfilePasswordMinimumLength *int `json:"workProfilePasswordMinimumLength,omitempty"`
+ // WorkProfilePasswordMinNumericCharacters Minimum # of numeric characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinNumericCharacters *int `json:"workProfilePasswordMinNumericCharacters,omitempty"`
+ // WorkProfilePasswordMinNonLetterCharacters Minimum # of non-letter characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinNonLetterCharacters *int `json:"workProfilePasswordMinNonLetterCharacters,omitempty"`
+ // WorkProfilePasswordMinLetterCharacters Minimum # of letter characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinLetterCharacters *int `json:"workProfilePasswordMinLetterCharacters,omitempty"`
+ // WorkProfilePasswordMinLowerCaseCharacters Minimum # of lower-case characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinLowerCaseCharacters *int `json:"workProfilePasswordMinLowerCaseCharacters,omitempty"`
+ // WorkProfilePasswordMinUpperCaseCharacters Minimum # of upper-case characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinUpperCaseCharacters *int `json:"workProfilePasswordMinUpperCaseCharacters,omitempty"`
+ // WorkProfilePasswordMinSymbolCharacters Minimum # of symbols required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinSymbolCharacters *int `json:"workProfilePasswordMinSymbolCharacters,omitempty"`
+ // WorkProfilePasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out.
+ WorkProfilePasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"workProfilePasswordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // WorkProfilePasswordPreviousPasswordBlockCount Number of previous work profile passwords to block. Valid values 0 to 24
+ WorkProfilePasswordPreviousPasswordBlockCount *int `json:"workProfilePasswordPreviousPasswordBlockCount,omitempty"`
+ // WorkProfilePasswordSignInFailureCountBeforeFactoryReset Number of sign in failures allowed before work profile is removed and all corporate data deleted. Valid values 1 to 16
+ WorkProfilePasswordSignInFailureCountBeforeFactoryReset *int `json:"workProfilePasswordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // WorkProfilePasswordRequiredType Type of work profile password that is required.
+ WorkProfilePasswordRequiredType *AndroidWorkProfileRequiredPasswordType `json:"workProfilePasswordRequiredType,omitempty"`
+ // WorkProfileRequirePassword Password is required or not for work profile
+ WorkProfileRequirePassword *bool `json:"workProfileRequirePassword,omitempty"`
+ // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on.
+ SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"`
+ // VpnAlwaysOnPackageIdentifier Enable lockdown mode for always-on VPN.
+ VpnAlwaysOnPackageIdentifier *string `json:"vpnAlwaysOnPackageIdentifier,omitempty"`
+ // VpnEnableAlwaysOnLockdownMode Enable lockdown mode for always-on VPN.
+ VpnEnableAlwaysOnLockdownMode *bool `json:"vpnEnableAlwaysOnLockdownMode,omitempty"`
+ // WorkProfileAllowWidgets Allow widgets from work profile apps.
+ WorkProfileAllowWidgets *bool `json:"workProfileAllowWidgets,omitempty"`
+ // WorkProfileBlockPersonalAppInstallsFromUnknownSources Prevent app installations from unknown sources in the personal profile.
+ WorkProfileBlockPersonalAppInstallsFromUnknownSources *bool `json:"workProfileBlockPersonalAppInstallsFromUnknownSources,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileGmailEasConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileGmailEasConfigurationModel.go
new file mode 100644
index 00000000..352a5687
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileGmailEasConfigurationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileGmailEasConfiguration By providing configurations in this profile you can instruct the Gmail email client on Android Work Profile devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync.
+type AndroidWorkProfileGmailEasConfiguration struct {
+ // AndroidWorkProfileEasEmailProfileBase is the base model of AndroidWorkProfileGmailEasConfiguration
+ AndroidWorkProfileEasEmailProfileBase
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileNineWorkEasConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileNineWorkEasConfigurationModel.go
new file mode 100644
index 00000000..e9f1d5d0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileNineWorkEasConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileNineWorkEasConfiguration By providing configurations in this profile you can instruct the Nine Work email client on Android Work Profile devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync.
+type AndroidWorkProfileNineWorkEasConfiguration struct {
+ // AndroidWorkProfileEasEmailProfileBase is the base model of AndroidWorkProfileNineWorkEasConfiguration
+ AndroidWorkProfileEasEmailProfileBase
+ // SyncCalendar Toggles syncing the calendar. If set to false the calendar is turned off on the device.
+ SyncCalendar *bool `json:"syncCalendar,omitempty"`
+ // SyncContacts Toggles syncing contacts. If set to false contacts are turned off on the device.
+ SyncContacts *bool `json:"syncContacts,omitempty"`
+ // SyncTasks Toggles syncing tasks. If set to false tasks are turned off on the device.
+ SyncTasks *bool `json:"syncTasks,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileModel.go
new file mode 100644
index 00000000..8960d5a6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfilePkcsCertificateProfile Android Work Profile PKCS certificate profile
+type AndroidWorkProfilePkcsCertificateProfile struct {
+ // AndroidWorkProfileCertificateProfileBase is the base model of AndroidWorkProfilePkcsCertificateProfile
+ AndroidWorkProfileCertificateProfileBase
+ // CertificationAuthority PKCS Certification Authority
+ CertificationAuthority *string `json:"certificationAuthority,omitempty"`
+ // CertificationAuthorityName PKCS Certification Authority Name
+ CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"`
+ // CertificateTemplateName PKCS Certificate Template Name
+ CertificateTemplateName *string `json:"certificateTemplateName,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileRequest.go
new file mode 100644
index 00000000..47ef82b7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfilePkcsCertificateProfileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AndroidWorkProfilePkcsCertificateProfileRequestBuilder is request builder for AndroidWorkProfilePkcsCertificateProfile
+type AndroidWorkProfilePkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidWorkProfilePkcsCertificateProfileRequest
+func (b *AndroidWorkProfilePkcsCertificateProfileRequestBuilder) Request() *AndroidWorkProfilePkcsCertificateProfileRequest {
+ return &AndroidWorkProfilePkcsCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidWorkProfilePkcsCertificateProfileRequest is request for AndroidWorkProfilePkcsCertificateProfile
+type AndroidWorkProfilePkcsCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidWorkProfilePkcsCertificateProfile
+func (r *AndroidWorkProfilePkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidWorkProfilePkcsCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidWorkProfilePkcsCertificateProfile
+func (r *AndroidWorkProfilePkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidWorkProfilePkcsCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidWorkProfilePkcsCertificateProfile
+func (r *AndroidWorkProfilePkcsCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidWorkProfilePkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileRequiredPasswordTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileRequiredPasswordTypeEnum.go
new file mode 100644
index 00000000..2bdb20ac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileRequiredPasswordTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileRequiredPasswordType undocumented
+type AndroidWorkProfileRequiredPasswordType int
+
+const (
+ // AndroidWorkProfileRequiredPasswordTypeVDeviceDefault undocumented
+ AndroidWorkProfileRequiredPasswordTypeVDeviceDefault AndroidWorkProfileRequiredPasswordType = 0
+ // AndroidWorkProfileRequiredPasswordTypeVLowSecurityBiometric undocumented
+ AndroidWorkProfileRequiredPasswordTypeVLowSecurityBiometric AndroidWorkProfileRequiredPasswordType = 1
+ // AndroidWorkProfileRequiredPasswordTypeVRequired undocumented
+ AndroidWorkProfileRequiredPasswordTypeVRequired AndroidWorkProfileRequiredPasswordType = 2
+ // AndroidWorkProfileRequiredPasswordTypeVAtLeastNumeric undocumented
+ AndroidWorkProfileRequiredPasswordTypeVAtLeastNumeric AndroidWorkProfileRequiredPasswordType = 3
+ // AndroidWorkProfileRequiredPasswordTypeVNumericComplex undocumented
+ AndroidWorkProfileRequiredPasswordTypeVNumericComplex AndroidWorkProfileRequiredPasswordType = 4
+ // AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphabetic undocumented
+ AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphabetic AndroidWorkProfileRequiredPasswordType = 5
+ // AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphanumeric undocumented
+ AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphanumeric AndroidWorkProfileRequiredPasswordType = 6
+ // AndroidWorkProfileRequiredPasswordTypeVAlphanumericWithSymbols undocumented
+ AndroidWorkProfileRequiredPasswordTypeVAlphanumericWithSymbols AndroidWorkProfileRequiredPasswordType = 7
+)
+
+// AndroidWorkProfileRequiredPasswordTypePDeviceDefault returns a pointer to AndroidWorkProfileRequiredPasswordTypeVDeviceDefault
+func AndroidWorkProfileRequiredPasswordTypePDeviceDefault() *AndroidWorkProfileRequiredPasswordType {
+ v := AndroidWorkProfileRequiredPasswordTypeVDeviceDefault
+ return &v
+}
+
+// AndroidWorkProfileRequiredPasswordTypePLowSecurityBiometric returns a pointer to AndroidWorkProfileRequiredPasswordTypeVLowSecurityBiometric
+func AndroidWorkProfileRequiredPasswordTypePLowSecurityBiometric() *AndroidWorkProfileRequiredPasswordType {
+ v := AndroidWorkProfileRequiredPasswordTypeVLowSecurityBiometric
+ return &v
+}
+
+// AndroidWorkProfileRequiredPasswordTypePRequired returns a pointer to AndroidWorkProfileRequiredPasswordTypeVRequired
+func AndroidWorkProfileRequiredPasswordTypePRequired() *AndroidWorkProfileRequiredPasswordType {
+ v := AndroidWorkProfileRequiredPasswordTypeVRequired
+ return &v
+}
+
+// AndroidWorkProfileRequiredPasswordTypePAtLeastNumeric returns a pointer to AndroidWorkProfileRequiredPasswordTypeVAtLeastNumeric
+func AndroidWorkProfileRequiredPasswordTypePAtLeastNumeric() *AndroidWorkProfileRequiredPasswordType {
+ v := AndroidWorkProfileRequiredPasswordTypeVAtLeastNumeric
+ return &v
+}
+
+// AndroidWorkProfileRequiredPasswordTypePNumericComplex returns a pointer to AndroidWorkProfileRequiredPasswordTypeVNumericComplex
+func AndroidWorkProfileRequiredPasswordTypePNumericComplex() *AndroidWorkProfileRequiredPasswordType {
+ v := AndroidWorkProfileRequiredPasswordTypeVNumericComplex
+ return &v
+}
+
+// AndroidWorkProfileRequiredPasswordTypePAtLeastAlphabetic returns a pointer to AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphabetic
+func AndroidWorkProfileRequiredPasswordTypePAtLeastAlphabetic() *AndroidWorkProfileRequiredPasswordType {
+ v := AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphabetic
+ return &v
+}
+
+// AndroidWorkProfileRequiredPasswordTypePAtLeastAlphanumeric returns a pointer to AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphanumeric
+func AndroidWorkProfileRequiredPasswordTypePAtLeastAlphanumeric() *AndroidWorkProfileRequiredPasswordType {
+ v := AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphanumeric
+ return &v
+}
+
+// AndroidWorkProfileRequiredPasswordTypePAlphanumericWithSymbols returns a pointer to AndroidWorkProfileRequiredPasswordTypeVAlphanumericWithSymbols
+func AndroidWorkProfileRequiredPasswordTypePAlphanumericWithSymbols() *AndroidWorkProfileRequiredPasswordType {
+ v := AndroidWorkProfileRequiredPasswordTypeVAlphanumericWithSymbols
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileModel.go
new file mode 100644
index 00000000..0e414125
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileScepCertificateProfile Android Work Profile SCEP certificate profile
+type AndroidWorkProfileScepCertificateProfile struct {
+ // AndroidWorkProfileCertificateProfileBase is the base model of AndroidWorkProfileScepCertificateProfile
+ AndroidWorkProfileCertificateProfileBase
+ // ScepServerUrls SCEP Server Url(s)
+ ScepServerUrls []string `json:"scepServerUrls,omitempty"`
+ // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
+ SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"`
+ // KeyUsage SCEP Key Usage
+ KeyUsage *KeyUsages `json:"keyUsage,omitempty"`
+ // KeySize SCEP Key Size
+ KeySize *KeySize `json:"keySize,omitempty"`
+ // HashAlgorithm SCEP Hash Algorithm
+ HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // CertificateStore Target store certificate
+ CertificateStore *CertificateStore `json:"certificateStore,omitempty"`
+ // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.
+ CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileRequest.go
new file mode 100644
index 00000000..29777252
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileScepCertificateProfileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AndroidWorkProfileScepCertificateProfileRequestBuilder is request builder for AndroidWorkProfileScepCertificateProfile
+type AndroidWorkProfileScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidWorkProfileScepCertificateProfileRequest
+func (b *AndroidWorkProfileScepCertificateProfileRequestBuilder) Request() *AndroidWorkProfileScepCertificateProfileRequest {
+ return &AndroidWorkProfileScepCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidWorkProfileScepCertificateProfileRequest is request for AndroidWorkProfileScepCertificateProfile
+type AndroidWorkProfileScepCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidWorkProfileScepCertificateProfile
+func (r *AndroidWorkProfileScepCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileScepCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidWorkProfileScepCertificateProfile
+func (r *AndroidWorkProfileScepCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileScepCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidWorkProfileScepCertificateProfile
+func (r *AndroidWorkProfileScepCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidWorkProfileScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateModel.go
new file mode 100644
index 00000000..54e9a0e1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileTrustedRootCertificate Android Work Profile Trusted Root Certificate configuration profile
+type AndroidWorkProfileTrustedRootCertificate struct {
+ // DeviceConfiguration is the base model of AndroidWorkProfileTrustedRootCertificate
+ DeviceConfiguration
+ // TrustedRootCertificate Trusted Root Certificate
+ TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"`
+ // CertFileName File name to display in UI.
+ CertFileName *string `json:"certFileName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateRequest.go
new file mode 100644
index 00000000..4051893f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileTrustedRootCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidWorkProfileTrustedRootCertificateRequestBuilder is request builder for AndroidWorkProfileTrustedRootCertificate
+type AndroidWorkProfileTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidWorkProfileTrustedRootCertificateRequest
+func (b *AndroidWorkProfileTrustedRootCertificateRequestBuilder) Request() *AndroidWorkProfileTrustedRootCertificateRequest {
+ return &AndroidWorkProfileTrustedRootCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidWorkProfileTrustedRootCertificateRequest is request for AndroidWorkProfileTrustedRootCertificate
+type AndroidWorkProfileTrustedRootCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidWorkProfileTrustedRootCertificate
+func (r *AndroidWorkProfileTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileTrustedRootCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidWorkProfileTrustedRootCertificate
+func (r *AndroidWorkProfileTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileTrustedRootCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidWorkProfileTrustedRootCertificate
+func (r *AndroidWorkProfileTrustedRootCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileVpnConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileVpnConfigurationModel.go
new file mode 100644
index 00000000..ea59921f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileVpnConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileVpnConfiguration By providing the configurations in this profile you can instruct the Android Work Profile device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.
+type AndroidWorkProfileVpnConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidWorkProfileVpnConfiguration
+ DeviceConfiguration
+ // ConnectionName Connection name displayed to the user.
+ ConnectionName *string `json:"connectionName,omitempty"`
+ // ConnectionType Connection type.
+ ConnectionType *AndroidWorkProfileVpnConnectionType `json:"connectionType,omitempty"`
+ // Role Role when connection type is set to Pulse Secure.
+ Role *string `json:"role,omitempty"`
+ // Realm Realm when connection type is set to Pulse Secure.
+ Realm *string `json:"realm,omitempty"`
+ // Servers List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements.
+ Servers []VpnServer `json:"servers,omitempty"`
+ // Fingerprint Fingerprint is a string that will be used to verify the VPN server can be trusted, which is only applicable when connection type is Check Point Capsule VPN.
+ Fingerprint *string `json:"fingerprint,omitempty"`
+ // CustomData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.
+ CustomData []KeyValue `json:"customData,omitempty"`
+ // CustomKeyValueData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.
+ CustomKeyValueData []KeyValuePair `json:"customKeyValueData,omitempty"`
+ // AuthenticationMethod Authentication method.
+ AuthenticationMethod *VpnAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *AndroidWorkProfileCertificateProfileBase `json:"identityCertificate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileVpnConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileVpnConfigurationRequest.go
new file mode 100644
index 00000000..6e7e482e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileVpnConfigurationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AndroidWorkProfileVpnConfigurationRequestBuilder is request builder for AndroidWorkProfileVpnConfiguration
+type AndroidWorkProfileVpnConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidWorkProfileVpnConfigurationRequest
+func (b *AndroidWorkProfileVpnConfigurationRequestBuilder) Request() *AndroidWorkProfileVpnConfigurationRequest {
+ return &AndroidWorkProfileVpnConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidWorkProfileVpnConfigurationRequest is request for AndroidWorkProfileVpnConfiguration
+type AndroidWorkProfileVpnConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidWorkProfileVpnConfiguration
+func (r *AndroidWorkProfileVpnConfigurationRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileVpnConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidWorkProfileVpnConfiguration
+func (r *AndroidWorkProfileVpnConfigurationRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileVpnConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidWorkProfileVpnConfiguration
+func (r *AndroidWorkProfileVpnConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidWorkProfileVpnConfigurationRequestBuilder) IdentityCertificate() *AndroidWorkProfileCertificateProfileBaseRequestBuilder {
+ bb := &AndroidWorkProfileCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileVpnConnectionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileVpnConnectionTypeEnum.go
new file mode 100644
index 00000000..ce14ab2e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileVpnConnectionTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileVpnConnectionType undocumented
+type AndroidWorkProfileVpnConnectionType int
+
+const (
+ // AndroidWorkProfileVpnConnectionTypeVCiscoAnyConnect undocumented
+ AndroidWorkProfileVpnConnectionTypeVCiscoAnyConnect AndroidWorkProfileVpnConnectionType = 0
+ // AndroidWorkProfileVpnConnectionTypeVPulseSecure undocumented
+ AndroidWorkProfileVpnConnectionTypeVPulseSecure AndroidWorkProfileVpnConnectionType = 1
+ // AndroidWorkProfileVpnConnectionTypeVF5EdgeClient undocumented
+ AndroidWorkProfileVpnConnectionTypeVF5EdgeClient AndroidWorkProfileVpnConnectionType = 2
+ // AndroidWorkProfileVpnConnectionTypeVDellSonicWallMobileConnect undocumented
+ AndroidWorkProfileVpnConnectionTypeVDellSonicWallMobileConnect AndroidWorkProfileVpnConnectionType = 3
+ // AndroidWorkProfileVpnConnectionTypeVCheckPointCapsuleVpn undocumented
+ AndroidWorkProfileVpnConnectionTypeVCheckPointCapsuleVpn AndroidWorkProfileVpnConnectionType = 4
+ // AndroidWorkProfileVpnConnectionTypeVCitrix undocumented
+ AndroidWorkProfileVpnConnectionTypeVCitrix AndroidWorkProfileVpnConnectionType = 5
+ // AndroidWorkProfileVpnConnectionTypeVPaloAltoGlobalProtect undocumented
+ AndroidWorkProfileVpnConnectionTypeVPaloAltoGlobalProtect AndroidWorkProfileVpnConnectionType = 6
+)
+
+// AndroidWorkProfileVpnConnectionTypePCiscoAnyConnect returns a pointer to AndroidWorkProfileVpnConnectionTypeVCiscoAnyConnect
+func AndroidWorkProfileVpnConnectionTypePCiscoAnyConnect() *AndroidWorkProfileVpnConnectionType {
+ v := AndroidWorkProfileVpnConnectionTypeVCiscoAnyConnect
+ return &v
+}
+
+// AndroidWorkProfileVpnConnectionTypePPulseSecure returns a pointer to AndroidWorkProfileVpnConnectionTypeVPulseSecure
+func AndroidWorkProfileVpnConnectionTypePPulseSecure() *AndroidWorkProfileVpnConnectionType {
+ v := AndroidWorkProfileVpnConnectionTypeVPulseSecure
+ return &v
+}
+
+// AndroidWorkProfileVpnConnectionTypePF5EdgeClient returns a pointer to AndroidWorkProfileVpnConnectionTypeVF5EdgeClient
+func AndroidWorkProfileVpnConnectionTypePF5EdgeClient() *AndroidWorkProfileVpnConnectionType {
+ v := AndroidWorkProfileVpnConnectionTypeVF5EdgeClient
+ return &v
+}
+
+// AndroidWorkProfileVpnConnectionTypePDellSonicWallMobileConnect returns a pointer to AndroidWorkProfileVpnConnectionTypeVDellSonicWallMobileConnect
+func AndroidWorkProfileVpnConnectionTypePDellSonicWallMobileConnect() *AndroidWorkProfileVpnConnectionType {
+ v := AndroidWorkProfileVpnConnectionTypeVDellSonicWallMobileConnect
+ return &v
+}
+
+// AndroidWorkProfileVpnConnectionTypePCheckPointCapsuleVpn returns a pointer to AndroidWorkProfileVpnConnectionTypeVCheckPointCapsuleVpn
+func AndroidWorkProfileVpnConnectionTypePCheckPointCapsuleVpn() *AndroidWorkProfileVpnConnectionType {
+ v := AndroidWorkProfileVpnConnectionTypeVCheckPointCapsuleVpn
+ return &v
+}
+
+// AndroidWorkProfileVpnConnectionTypePCitrix returns a pointer to AndroidWorkProfileVpnConnectionTypeVCitrix
+func AndroidWorkProfileVpnConnectionTypePCitrix() *AndroidWorkProfileVpnConnectionType {
+ v := AndroidWorkProfileVpnConnectionTypeVCitrix
+ return &v
+}
+
+// AndroidWorkProfileVpnConnectionTypePPaloAltoGlobalProtect returns a pointer to AndroidWorkProfileVpnConnectionTypeVPaloAltoGlobalProtect
+func AndroidWorkProfileVpnConnectionTypePPaloAltoGlobalProtect() *AndroidWorkProfileVpnConnectionType {
+ v := AndroidWorkProfileVpnConnectionTypeVPaloAltoGlobalProtect
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileWiFiConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileWiFiConfigurationModel.go
new file mode 100644
index 00000000..2918caf6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AndroidWorkProfileWiFiConfigurationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidWorkProfileWiFiConfiguration By providing the configurations in this profile you can instruct the Android Work Profile device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile.
+type AndroidWorkProfileWiFiConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidWorkProfileWiFiConfiguration
+ DeviceConfiguration
+ // NetworkName Network Name
+ NetworkName *string `json:"networkName,omitempty"`
+ // Ssid This is the name of the Wi-Fi network that is broadcast to all devices.
+ Ssid *string `json:"ssid,omitempty"`
+ // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network.
+ ConnectAutomatically *bool `json:"connectAutomatically,omitempty"`
+ // ConnectWhenNetworkNameIsHidden When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices.
+ ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"`
+ // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type.
+ WiFiSecurityType *AndroidWiFiSecurityType `json:"wiFiSecurityType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AnniversaryTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AnniversaryTypeEnum.go
new file mode 100644
index 00000000..aa51f63d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AnniversaryTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AnniversaryType undocumented
+type AnniversaryType int
+
+const (
+ // AnniversaryTypeVBirthday undocumented
+ AnniversaryTypeVBirthday AnniversaryType = 0
+ // AnniversaryTypeVWedding undocumented
+ AnniversaryTypeVWedding AnniversaryType = 1
+ // AnniversaryTypeVUnknownFutureValue undocumented
+ AnniversaryTypeVUnknownFutureValue AnniversaryType = 3
+)
+
+// AnniversaryTypePBirthday returns a pointer to AnniversaryTypeVBirthday
+func AnniversaryTypePBirthday() *AnniversaryType {
+ v := AnniversaryTypeVBirthday
+ return &v
+}
+
+// AnniversaryTypePWedding returns a pointer to AnniversaryTypeVWedding
+func AnniversaryTypePWedding() *AnniversaryType {
+ v := AnniversaryTypeVWedding
+ return &v
+}
+
+// AnniversaryTypePUnknownFutureValue returns a pointer to AnniversaryTypeVUnknownFutureValue
+func AnniversaryTypePUnknownFutureValue() *AnniversaryType {
+ v := AnniversaryTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AnonymousIPRiskEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AnonymousIPRiskEventModel.go
new file mode 100644
index 00000000..f79ef65d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AnonymousIPRiskEventModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AnonymousIPRiskEvent undocumented
+type AnonymousIPRiskEvent struct {
+ // LocatedRiskEvent is the base model of AnonymousIPRiskEvent
+ LocatedRiskEvent
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AnonymousIPRiskEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AnonymousIPRiskEventRequest.go
new file mode 100644
index 00000000..4a23bb19
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AnonymousIPRiskEventRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AnonymousIPRiskEventRequestBuilder is request builder for AnonymousIPRiskEvent
+type AnonymousIPRiskEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AnonymousIPRiskEventRequest
+func (b *AnonymousIPRiskEventRequestBuilder) Request() *AnonymousIPRiskEventRequest {
+ return &AnonymousIPRiskEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AnonymousIPRiskEventRequest is request for AnonymousIPRiskEvent
+type AnonymousIPRiskEventRequest struct{ BaseRequest }
+
+// Get performs GET request for AnonymousIPRiskEvent
+func (r *AnonymousIPRiskEventRequest) Get(ctx context.Context) (resObj *AnonymousIPRiskEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AnonymousIPRiskEvent
+func (r *AnonymousIPRiskEventRequest) Update(ctx context.Context, reqObj *AnonymousIPRiskEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AnonymousIPRiskEvent
+func (r *AnonymousIPRiskEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppCatalogsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppCatalogsModel.go
new file mode 100644
index 00000000..de2b6a34
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppCatalogsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppCatalogs undocumented
+type AppCatalogs struct {
+ // Entity is the base model of AppCatalogs
+ Entity
+ // TeamsApps undocumented
+ TeamsApps []TeamsApp `json:"teamsApps,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppCatalogsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppCatalogsRequest.go
new file mode 100644
index 00000000..cf712eac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppCatalogsRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AppCatalogsRequestBuilder is request builder for AppCatalogs
+type AppCatalogsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AppCatalogsRequest
+func (b *AppCatalogsRequestBuilder) Request() *AppCatalogsRequest {
+ return &AppCatalogsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AppCatalogsRequest is request for AppCatalogs
+type AppCatalogsRequest struct{ BaseRequest }
+
+// Get performs GET request for AppCatalogs
+func (r *AppCatalogsRequest) Get(ctx context.Context) (resObj *AppCatalogs, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AppCatalogs
+func (r *AppCatalogsRequest) Update(ctx context.Context, reqObj *AppCatalogs) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AppCatalogs
+func (r *AppCatalogsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TeamsApps returns request builder for TeamsApp collection
+func (b *AppCatalogsRequestBuilder) TeamsApps() *AppCatalogsTeamsAppsCollectionRequestBuilder {
+ bb := &AppCatalogsTeamsAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teamsApps"
+ return bb
+}
+
+// AppCatalogsTeamsAppsCollectionRequestBuilder is request builder for TeamsApp collection
+type AppCatalogsTeamsAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsApp collection
+func (b *AppCatalogsTeamsAppsCollectionRequestBuilder) Request() *AppCatalogsTeamsAppsCollectionRequest {
+ return &AppCatalogsTeamsAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsApp item
+func (b *AppCatalogsTeamsAppsCollectionRequestBuilder) ID(id string) *TeamsAppRequestBuilder {
+ bb := &TeamsAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AppCatalogsTeamsAppsCollectionRequest is request for TeamsApp collection
+type AppCatalogsTeamsAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsApp collection
+func (r *AppCatalogsTeamsAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TeamsApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsApp collection
+func (r *AppCatalogsTeamsAppsCollectionRequest) Get(ctx context.Context) ([]TeamsApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TeamsApp collection
+func (r *AppCatalogsTeamsAppsCollectionRequest) Add(ctx context.Context, reqObj *TeamsApp) (resObj *TeamsApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppConfigurationSettingItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppConfigurationSettingItemModel.go
new file mode 100644
index 00000000..efbecc47
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppConfigurationSettingItemModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppConfigurationSettingItem undocumented
+type AppConfigurationSettingItem struct {
+ // Object is the base model of AppConfigurationSettingItem
+ Object
+ // AppConfigKey app configuration key.
+ AppConfigKey *string `json:"appConfigKey,omitempty"`
+ // AppConfigKeyType app configuration key type.
+ AppConfigKeyType *MdmAppConfigKeyType `json:"appConfigKeyType,omitempty"`
+ // AppConfigKeyValue app configuration key value.
+ AppConfigKeyValue *string `json:"appConfigKeyValue,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppHostedMediaConfigModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppHostedMediaConfigModel.go
new file mode 100644
index 00000000..b79dcd2d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppHostedMediaConfigModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppHostedMediaConfig undocumented
+type AppHostedMediaConfig struct {
+ // MediaConfig is the base model of AppHostedMediaConfig
+ MediaConfig
+ // Blob undocumented
+ Blob *string `json:"blob,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppIdentityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppIdentityModel.go
new file mode 100644
index 00000000..642f4eb5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppIdentityModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppIdentity undocumented
+type AppIdentity struct {
+ // Object is the base model of AppIdentity
+ Object
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ServicePrincipalID undocumented
+ ServicePrincipalID *string `json:"servicePrincipalId,omitempty"`
+ // ServicePrincipalName undocumented
+ ServicePrincipalName *string `json:"servicePrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppInstallControlTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppInstallControlTypeEnum.go
new file mode 100644
index 00000000..130a51b0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppInstallControlTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppInstallControlType undocumented
+type AppInstallControlType int
+
+const (
+ // AppInstallControlTypeVNotConfigured undocumented
+ AppInstallControlTypeVNotConfigured AppInstallControlType = 0
+ // AppInstallControlTypeVAnywhere undocumented
+ AppInstallControlTypeVAnywhere AppInstallControlType = 1
+ // AppInstallControlTypeVStoreOnly undocumented
+ AppInstallControlTypeVStoreOnly AppInstallControlType = 2
+ // AppInstallControlTypeVRecommendations undocumented
+ AppInstallControlTypeVRecommendations AppInstallControlType = 3
+ // AppInstallControlTypeVPreferStore undocumented
+ AppInstallControlTypeVPreferStore AppInstallControlType = 4
+)
+
+// AppInstallControlTypePNotConfigured returns a pointer to AppInstallControlTypeVNotConfigured
+func AppInstallControlTypePNotConfigured() *AppInstallControlType {
+ v := AppInstallControlTypeVNotConfigured
+ return &v
+}
+
+// AppInstallControlTypePAnywhere returns a pointer to AppInstallControlTypeVAnywhere
+func AppInstallControlTypePAnywhere() *AppInstallControlType {
+ v := AppInstallControlTypeVAnywhere
+ return &v
+}
+
+// AppInstallControlTypePStoreOnly returns a pointer to AppInstallControlTypeVStoreOnly
+func AppInstallControlTypePStoreOnly() *AppInstallControlType {
+ v := AppInstallControlTypeVStoreOnly
+ return &v
+}
+
+// AppInstallControlTypePRecommendations returns a pointer to AppInstallControlTypeVRecommendations
+func AppInstallControlTypePRecommendations() *AppInstallControlType {
+ v := AppInstallControlTypeVRecommendations
+ return &v
+}
+
+// AppInstallControlTypePPreferStore returns a pointer to AppInstallControlTypeVPreferStore
+func AppInstallControlTypePPreferStore() *AppInstallControlType {
+ v := AppInstallControlTypeVPreferStore
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppListItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppListItemModel.go
new file mode 100644
index 00000000..2492b397
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppListItemModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppListItem undocumented
+type AppListItem struct {
+ // Object is the base model of AppListItem
+ Object
+ // Name The application name
+ Name *string `json:"name,omitempty"`
+ // Publisher The publisher of the application
+ Publisher *string `json:"publisher,omitempty"`
+ // AppStoreURL The Store URL of the application
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+ // AppID The application or bundle identifier of the application
+ AppID *string `json:"appId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppListTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppListTypeEnum.go
new file mode 100644
index 00000000..239a3317
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppListTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppListType undocumented
+type AppListType int
+
+const (
+ // AppListTypeVNone undocumented
+ AppListTypeVNone AppListType = 0
+ // AppListTypeVAppsInListCompliant undocumented
+ AppListTypeVAppsInListCompliant AppListType = 1
+ // AppListTypeVAppsNotInListCompliant undocumented
+ AppListTypeVAppsNotInListCompliant AppListType = 2
+)
+
+// AppListTypePNone returns a pointer to AppListTypeVNone
+func AppListTypePNone() *AppListType {
+ v := AppListTypeVNone
+ return &v
+}
+
+// AppListTypePAppsInListCompliant returns a pointer to AppListTypeVAppsInListCompliant
+func AppListTypePAppsInListCompliant() *AppListType {
+ v := AppListTypeVAppsInListCompliant
+ return &v
+}
+
+// AppListTypePAppsNotInListCompliant returns a pointer to AppListTypeVAppsNotInListCompliant
+func AppListTypePAppsNotInListCompliant() *AppListType {
+ v := AppListTypeVAppsNotInListCompliant
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppLockerApplicationControlTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppLockerApplicationControlTypeEnum.go
new file mode 100644
index 00000000..e965580f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppLockerApplicationControlTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppLockerApplicationControlType undocumented
+type AppLockerApplicationControlType int
+
+const (
+ // AppLockerApplicationControlTypeVNotConfigured undocumented
+ AppLockerApplicationControlTypeVNotConfigured AppLockerApplicationControlType = 0
+ // AppLockerApplicationControlTypeVEnforceComponentsAndStoreApps undocumented
+ AppLockerApplicationControlTypeVEnforceComponentsAndStoreApps AppLockerApplicationControlType = 1
+ // AppLockerApplicationControlTypeVAuditComponentsAndStoreApps undocumented
+ AppLockerApplicationControlTypeVAuditComponentsAndStoreApps AppLockerApplicationControlType = 2
+ // AppLockerApplicationControlTypeVEnforceComponentsStoreAppsAndSmartlocker undocumented
+ AppLockerApplicationControlTypeVEnforceComponentsStoreAppsAndSmartlocker AppLockerApplicationControlType = 3
+ // AppLockerApplicationControlTypeVAuditComponentsStoreAppsAndSmartlocker undocumented
+ AppLockerApplicationControlTypeVAuditComponentsStoreAppsAndSmartlocker AppLockerApplicationControlType = 4
+)
+
+// AppLockerApplicationControlTypePNotConfigured returns a pointer to AppLockerApplicationControlTypeVNotConfigured
+func AppLockerApplicationControlTypePNotConfigured() *AppLockerApplicationControlType {
+ v := AppLockerApplicationControlTypeVNotConfigured
+ return &v
+}
+
+// AppLockerApplicationControlTypePEnforceComponentsAndStoreApps returns a pointer to AppLockerApplicationControlTypeVEnforceComponentsAndStoreApps
+func AppLockerApplicationControlTypePEnforceComponentsAndStoreApps() *AppLockerApplicationControlType {
+ v := AppLockerApplicationControlTypeVEnforceComponentsAndStoreApps
+ return &v
+}
+
+// AppLockerApplicationControlTypePAuditComponentsAndStoreApps returns a pointer to AppLockerApplicationControlTypeVAuditComponentsAndStoreApps
+func AppLockerApplicationControlTypePAuditComponentsAndStoreApps() *AppLockerApplicationControlType {
+ v := AppLockerApplicationControlTypeVAuditComponentsAndStoreApps
+ return &v
+}
+
+// AppLockerApplicationControlTypePEnforceComponentsStoreAppsAndSmartlocker returns a pointer to AppLockerApplicationControlTypeVEnforceComponentsStoreAppsAndSmartlocker
+func AppLockerApplicationControlTypePEnforceComponentsStoreAppsAndSmartlocker() *AppLockerApplicationControlType {
+ v := AppLockerApplicationControlTypeVEnforceComponentsStoreAppsAndSmartlocker
+ return &v
+}
+
+// AppLockerApplicationControlTypePAuditComponentsStoreAppsAndSmartlocker returns a pointer to AppLockerApplicationControlTypeVAuditComponentsStoreAppsAndSmartlocker
+func AppLockerApplicationControlTypePAuditComponentsStoreAppsAndSmartlocker() *AppLockerApplicationControlType {
+ v := AppLockerApplicationControlTypeVAuditComponentsStoreAppsAndSmartlocker
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppLogCollectionDownloadDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppLogCollectionDownloadDetailsModel.go
new file mode 100644
index 00000000..0b7c0555
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppLogCollectionDownloadDetailsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppLogCollectionDownloadDetails undocumented
+type AppLogCollectionDownloadDetails struct {
+ // Object is the base model of AppLogCollectionDownloadDetails
+ Object
+ // DownloadURL Download SAS Url for completed AppLogUploadRequest
+ DownloadURL *string `json:"downloadUrl,omitempty"`
+ // DecryptionKey DecryptionKey as string
+ DecryptionKey *string `json:"decryptionKey,omitempty"`
+ // AppLogDecryptionAlgorithm DecryptionAlgorithm for Content
+ AppLogDecryptionAlgorithm *AppLogDecryptionAlgorithm `json:"appLogDecryptionAlgorithm,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppLogCollectionRequestObjectAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppLogCollectionRequestObjectAction.go
new file mode 100644
index 00000000..32f945bd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppLogCollectionRequestObjectAction.go
@@ -0,0 +1,36 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AppLogCollectionRequestObjectCreateDownloadURLRequestParameter undocumented
+type AppLogCollectionRequestObjectCreateDownloadURLRequestParameter struct {
+}
+
+//
+type AppLogCollectionRequestObjectCreateDownloadURLRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateDownloadURL action undocumented
+func (b *AppLogCollectionRequestObjectRequestBuilder) CreateDownloadURL(reqObj *AppLogCollectionRequestObjectCreateDownloadURLRequestParameter) *AppLogCollectionRequestObjectCreateDownloadURLRequestBuilder {
+ bb := &AppLogCollectionRequestObjectCreateDownloadURLRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createDownloadUrl"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AppLogCollectionRequestObjectCreateDownloadURLRequest struct{ BaseRequest }
+
+//
+func (b *AppLogCollectionRequestObjectCreateDownloadURLRequestBuilder) Request() *AppLogCollectionRequestObjectCreateDownloadURLRequest {
+ return &AppLogCollectionRequestObjectCreateDownloadURLRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AppLogCollectionRequestObjectCreateDownloadURLRequest) Post(ctx context.Context) (resObj *AppLogCollectionDownloadDetails, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppLogCollectionRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppLogCollectionRequestObjectModel.go
new file mode 100644
index 00000000..a6e01f3b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppLogCollectionRequestObjectModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AppLogCollectionRequestObject AppLogCollectionRequest Entity.
+type AppLogCollectionRequestObject struct {
+ // Entity is the base model of AppLogCollectionRequestObject
+ Entity
+ // Status Log upload status
+ Status *AppLogUploadState `json:"status,omitempty"`
+ // ErrorMessage Error message if any during the upload process
+ ErrorMessage *string `json:"errorMessage,omitempty"`
+ // CustomLogFolders List of log folders.
+ CustomLogFolders []string `json:"customLogFolders,omitempty"`
+ // CompletedDateTime Time at which the upload log request reached a terminal state
+ CompletedDateTime *time.Time `json:"completedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppLogCollectionRequestObjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppLogCollectionRequestObjectRequest.go
new file mode 100644
index 00000000..c4cc0c86
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppLogCollectionRequestObjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AppLogCollectionRequestObjectRequestBuilder is request builder for AppLogCollectionRequestObject
+type AppLogCollectionRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AppLogCollectionRequestObjectRequest
+func (b *AppLogCollectionRequestObjectRequestBuilder) Request() *AppLogCollectionRequestObjectRequest {
+ return &AppLogCollectionRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AppLogCollectionRequestObjectRequest is request for AppLogCollectionRequestObject
+type AppLogCollectionRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for AppLogCollectionRequestObject
+func (r *AppLogCollectionRequestObjectRequest) Get(ctx context.Context) (resObj *AppLogCollectionRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AppLogCollectionRequestObject
+func (r *AppLogCollectionRequestObjectRequest) Update(ctx context.Context, reqObj *AppLogCollectionRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AppLogCollectionRequestObject
+func (r *AppLogCollectionRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppLogDecryptionAlgorithmEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppLogDecryptionAlgorithmEnum.go
new file mode 100644
index 00000000..b574e246
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppLogDecryptionAlgorithmEnum.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppLogDecryptionAlgorithm undocumented
+type AppLogDecryptionAlgorithm int
+
+const (
+ // AppLogDecryptionAlgorithmVAes256 undocumented
+ AppLogDecryptionAlgorithmVAes256 AppLogDecryptionAlgorithm = 0
+)
+
+// AppLogDecryptionAlgorithmPAes256 returns a pointer to AppLogDecryptionAlgorithmVAes256
+func AppLogDecryptionAlgorithmPAes256() *AppLogDecryptionAlgorithm {
+ v := AppLogDecryptionAlgorithmVAes256
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppLogUploadStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppLogUploadStateEnum.go
new file mode 100644
index 00000000..81b27b48
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppLogUploadStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppLogUploadState undocumented
+type AppLogUploadState int
+
+const (
+ // AppLogUploadStateVPending undocumented
+ AppLogUploadStateVPending AppLogUploadState = 0
+ // AppLogUploadStateVCompleted undocumented
+ AppLogUploadStateVCompleted AppLogUploadState = 1
+ // AppLogUploadStateVFailed undocumented
+ AppLogUploadStateVFailed AppLogUploadState = 2
+)
+
+// AppLogUploadStatePPending returns a pointer to AppLogUploadStateVPending
+func AppLogUploadStatePPending() *AppLogUploadState {
+ v := AppLogUploadStateVPending
+ return &v
+}
+
+// AppLogUploadStatePCompleted returns a pointer to AppLogUploadStateVCompleted
+func AppLogUploadStatePCompleted() *AppLogUploadState {
+ v := AppLogUploadStateVCompleted
+ return &v
+}
+
+// AppLogUploadStatePFailed returns a pointer to AppLogUploadStateVFailed
+func AppLogUploadStatePFailed() *AppLogUploadState {
+ v := AppLogUploadStateVFailed
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppManagementLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppManagementLevelEnum.go
new file mode 100644
index 00000000..35e7090f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppManagementLevelEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppManagementLevel undocumented
+type AppManagementLevel int
+
+const (
+ // AppManagementLevelVUnspecified undocumented
+ AppManagementLevelVUnspecified AppManagementLevel = 0
+ // AppManagementLevelVUnmanaged undocumented
+ AppManagementLevelVUnmanaged AppManagementLevel = 1
+ // AppManagementLevelVMdm undocumented
+ AppManagementLevelVMdm AppManagementLevel = 2
+ // AppManagementLevelVAndroidEnterprise undocumented
+ AppManagementLevelVAndroidEnterprise AppManagementLevel = 4
+)
+
+// AppManagementLevelPUnspecified returns a pointer to AppManagementLevelVUnspecified
+func AppManagementLevelPUnspecified() *AppManagementLevel {
+ v := AppManagementLevelVUnspecified
+ return &v
+}
+
+// AppManagementLevelPUnmanaged returns a pointer to AppManagementLevelVUnmanaged
+func AppManagementLevelPUnmanaged() *AppManagementLevel {
+ v := AppManagementLevelVUnmanaged
+ return &v
+}
+
+// AppManagementLevelPMdm returns a pointer to AppManagementLevelVMdm
+func AppManagementLevelPMdm() *AppManagementLevel {
+ v := AppManagementLevelVMdm
+ return &v
+}
+
+// AppManagementLevelPAndroidEnterprise returns a pointer to AppManagementLevelVAndroidEnterprise
+func AppManagementLevelPAndroidEnterprise() *AppManagementLevel {
+ v := AppManagementLevelVAndroidEnterprise
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppRoleAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppRoleAssignmentModel.go
new file mode 100644
index 00000000..9343821a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppRoleAssignmentModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AppRoleAssignment undocumented
+type AppRoleAssignment struct {
+ // Entity is the base model of AppRoleAssignment
+ Entity
+ // AppRoleID undocumented
+ AppRoleID *UUID `json:"appRoleId,omitempty"`
+ // CreationTimestamp undocumented
+ CreationTimestamp *time.Time `json:"creationTimestamp,omitempty"`
+ // PrincipalDisplayName undocumented
+ PrincipalDisplayName *string `json:"principalDisplayName,omitempty"`
+ // PrincipalID undocumented
+ PrincipalID *UUID `json:"principalId,omitempty"`
+ // PrincipalType undocumented
+ PrincipalType *string `json:"principalType,omitempty"`
+ // ResourceDisplayName undocumented
+ ResourceDisplayName *string `json:"resourceDisplayName,omitempty"`
+ // ResourceID undocumented
+ ResourceID *UUID `json:"resourceId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppRoleAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppRoleAssignmentRequest.go
new file mode 100644
index 00000000..c04e2d2b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppRoleAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AppRoleAssignmentRequestBuilder is request builder for AppRoleAssignment
+type AppRoleAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AppRoleAssignmentRequest
+func (b *AppRoleAssignmentRequestBuilder) Request() *AppRoleAssignmentRequest {
+ return &AppRoleAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AppRoleAssignmentRequest is request for AppRoleAssignment
+type AppRoleAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for AppRoleAssignment
+func (r *AppRoleAssignmentRequest) Get(ctx context.Context) (resObj *AppRoleAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AppRoleAssignment
+func (r *AppRoleAssignmentRequest) Update(ctx context.Context, reqObj *AppRoleAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AppRoleAssignment
+func (r *AppRoleAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppRoleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppRoleModel.go
new file mode 100644
index 00000000..7c9cf177
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppRoleModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppRole undocumented
+type AppRole struct {
+ // Object is the base model of AppRole
+ Object
+ // AllowedMemberTypes undocumented
+ AllowedMemberTypes []string `json:"allowedMemberTypes,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ID undocumented
+ ID *UUID `json:"id,omitempty"`
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // Origin undocumented
+ Origin *string `json:"origin,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityManagedDeviceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityManagedDeviceModel.go
new file mode 100644
index 00000000..f0258bef
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityManagedDeviceModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AppVulnerabilityManagedDevice An app vulnerability managed device.
+type AppVulnerabilityManagedDevice struct {
+ // Entity is the base model of AppVulnerabilityManagedDevice
+ Entity
+ // ManagedDeviceID The Intune managed device ID.
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // DisplayName The device name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastSyncDateTime The created date.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityManagedDeviceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityManagedDeviceRequest.go
new file mode 100644
index 00000000..8ba3d15c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityManagedDeviceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AppVulnerabilityManagedDeviceRequestBuilder is request builder for AppVulnerabilityManagedDevice
+type AppVulnerabilityManagedDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AppVulnerabilityManagedDeviceRequest
+func (b *AppVulnerabilityManagedDeviceRequestBuilder) Request() *AppVulnerabilityManagedDeviceRequest {
+ return &AppVulnerabilityManagedDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AppVulnerabilityManagedDeviceRequest is request for AppVulnerabilityManagedDevice
+type AppVulnerabilityManagedDeviceRequest struct{ BaseRequest }
+
+// Get performs GET request for AppVulnerabilityManagedDevice
+func (r *AppVulnerabilityManagedDeviceRequest) Get(ctx context.Context) (resObj *AppVulnerabilityManagedDevice, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AppVulnerabilityManagedDevice
+func (r *AppVulnerabilityManagedDeviceRequest) Update(ctx context.Context, reqObj *AppVulnerabilityManagedDevice) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AppVulnerabilityManagedDevice
+func (r *AppVulnerabilityManagedDeviceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityMobileAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityMobileAppModel.go
new file mode 100644
index 00000000..a0636161
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityMobileAppModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AppVulnerabilityMobileApp An app vulnerability mobile app.
+type AppVulnerabilityMobileApp struct {
+ // Entity is the base model of AppVulnerabilityMobileApp
+ Entity
+ // MobileAppID The Intune mobile app ID.
+ MobileAppID *string `json:"mobileAppId,omitempty"`
+ // DisplayName The device name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // CreatedDateTime The created date.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime The last modified date.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // MobileAppType The app type.
+ MobileAppType *string `json:"mobileAppType,omitempty"`
+ // Version The app version.
+ Version *string `json:"version,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityMobileAppRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityMobileAppRequest.go
new file mode 100644
index 00000000..29c9205e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityMobileAppRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AppVulnerabilityMobileAppRequestBuilder is request builder for AppVulnerabilityMobileApp
+type AppVulnerabilityMobileAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AppVulnerabilityMobileAppRequest
+func (b *AppVulnerabilityMobileAppRequestBuilder) Request() *AppVulnerabilityMobileAppRequest {
+ return &AppVulnerabilityMobileAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AppVulnerabilityMobileAppRequest is request for AppVulnerabilityMobileApp
+type AppVulnerabilityMobileAppRequest struct{ BaseRequest }
+
+// Get performs GET request for AppVulnerabilityMobileApp
+func (r *AppVulnerabilityMobileAppRequest) Get(ctx context.Context) (resObj *AppVulnerabilityMobileApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AppVulnerabilityMobileApp
+func (r *AppVulnerabilityMobileAppRequest) Update(ctx context.Context, reqObj *AppVulnerabilityMobileApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AppVulnerabilityMobileApp
+func (r *AppVulnerabilityMobileAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityTaskMitigationTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityTaskMitigationTypeEnum.go
new file mode 100644
index 00000000..3afbdf5e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityTaskMitigationTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppVulnerabilityTaskMitigationType undocumented
+type AppVulnerabilityTaskMitigationType int
+
+const (
+ // AppVulnerabilityTaskMitigationTypeVUnknown undocumented
+ AppVulnerabilityTaskMitigationTypeVUnknown AppVulnerabilityTaskMitigationType = 0
+ // AppVulnerabilityTaskMitigationTypeVUpdate undocumented
+ AppVulnerabilityTaskMitigationTypeVUpdate AppVulnerabilityTaskMitigationType = 1
+ // AppVulnerabilityTaskMitigationTypeVUninstall undocumented
+ AppVulnerabilityTaskMitigationTypeVUninstall AppVulnerabilityTaskMitigationType = 2
+ // AppVulnerabilityTaskMitigationTypeVSecurityConfiguration undocumented
+ AppVulnerabilityTaskMitigationTypeVSecurityConfiguration AppVulnerabilityTaskMitigationType = 3
+)
+
+// AppVulnerabilityTaskMitigationTypePUnknown returns a pointer to AppVulnerabilityTaskMitigationTypeVUnknown
+func AppVulnerabilityTaskMitigationTypePUnknown() *AppVulnerabilityTaskMitigationType {
+ v := AppVulnerabilityTaskMitigationTypeVUnknown
+ return &v
+}
+
+// AppVulnerabilityTaskMitigationTypePUpdate returns a pointer to AppVulnerabilityTaskMitigationTypeVUpdate
+func AppVulnerabilityTaskMitigationTypePUpdate() *AppVulnerabilityTaskMitigationType {
+ v := AppVulnerabilityTaskMitigationTypeVUpdate
+ return &v
+}
+
+// AppVulnerabilityTaskMitigationTypePUninstall returns a pointer to AppVulnerabilityTaskMitigationTypeVUninstall
+func AppVulnerabilityTaskMitigationTypePUninstall() *AppVulnerabilityTaskMitigationType {
+ v := AppVulnerabilityTaskMitigationTypeVUninstall
+ return &v
+}
+
+// AppVulnerabilityTaskMitigationTypePSecurityConfiguration returns a pointer to AppVulnerabilityTaskMitigationTypeVSecurityConfiguration
+func AppVulnerabilityTaskMitigationTypePSecurityConfiguration() *AppVulnerabilityTaskMitigationType {
+ v := AppVulnerabilityTaskMitigationTypeVSecurityConfiguration
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityTaskModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityTaskModel.go
new file mode 100644
index 00000000..07c15dbc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityTaskModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppVulnerabilityTask An app vulnerability task.
+type AppVulnerabilityTask struct {
+ // DeviceAppManagementTask is the base model of AppVulnerabilityTask
+ DeviceAppManagementTask
+ // AppName The app name.
+ AppName *string `json:"appName,omitempty"`
+ // AppPublisher The app publisher.
+ AppPublisher *string `json:"appPublisher,omitempty"`
+ // AppVersion The app version.
+ AppVersion *string `json:"appVersion,omitempty"`
+ // MitigationType The mitigation type.
+ MitigationType *AppVulnerabilityTaskMitigationType `json:"mitigationType,omitempty"`
+ // Insights Information about the mitigation.
+ Insights *string `json:"insights,omitempty"`
+ // ManagedDeviceCount The number of vulnerable devices.
+ ManagedDeviceCount *int `json:"managedDeviceCount,omitempty"`
+ // MobileAppCount The number of vulnerable mobile apps.
+ MobileAppCount *int `json:"mobileAppCount,omitempty"`
+ // Remediation The remediation steps.
+ Remediation *string `json:"remediation,omitempty"`
+ // ManagedDevices undocumented
+ ManagedDevices []AppVulnerabilityManagedDevice `json:"managedDevices,omitempty"`
+ // MobileApps undocumented
+ MobileApps []AppVulnerabilityMobileApp `json:"mobileApps,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityTaskRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityTaskRequest.go
new file mode 100644
index 00000000..8331e653
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppVulnerabilityTaskRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AppVulnerabilityTaskRequestBuilder is request builder for AppVulnerabilityTask
+type AppVulnerabilityTaskRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AppVulnerabilityTaskRequest
+func (b *AppVulnerabilityTaskRequestBuilder) Request() *AppVulnerabilityTaskRequest {
+ return &AppVulnerabilityTaskRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AppVulnerabilityTaskRequest is request for AppVulnerabilityTask
+type AppVulnerabilityTaskRequest struct{ BaseRequest }
+
+// Get performs GET request for AppVulnerabilityTask
+func (r *AppVulnerabilityTaskRequest) Get(ctx context.Context) (resObj *AppVulnerabilityTask, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AppVulnerabilityTask
+func (r *AppVulnerabilityTaskRequest) Update(ctx context.Context, reqObj *AppVulnerabilityTask) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AppVulnerabilityTask
+func (r *AppVulnerabilityTaskRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDevices returns request builder for AppVulnerabilityManagedDevice collection
+func (b *AppVulnerabilityTaskRequestBuilder) ManagedDevices() *AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder {
+ bb := &AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDevices"
+ return bb
+}
+
+// AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder is request builder for AppVulnerabilityManagedDevice collection
+type AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppVulnerabilityManagedDevice collection
+func (b *AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder) Request() *AppVulnerabilityTaskManagedDevicesCollectionRequest {
+ return &AppVulnerabilityTaskManagedDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppVulnerabilityManagedDevice item
+func (b *AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder) ID(id string) *AppVulnerabilityManagedDeviceRequestBuilder {
+ bb := &AppVulnerabilityManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AppVulnerabilityTaskManagedDevicesCollectionRequest is request for AppVulnerabilityManagedDevice collection
+type AppVulnerabilityTaskManagedDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppVulnerabilityManagedDevice collection
+func (r *AppVulnerabilityTaskManagedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AppVulnerabilityManagedDevice, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppVulnerabilityManagedDevice
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppVulnerabilityManagedDevice
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppVulnerabilityManagedDevice collection
+func (r *AppVulnerabilityTaskManagedDevicesCollectionRequest) Get(ctx context.Context) ([]AppVulnerabilityManagedDevice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AppVulnerabilityManagedDevice collection
+func (r *AppVulnerabilityTaskManagedDevicesCollectionRequest) Add(ctx context.Context, reqObj *AppVulnerabilityManagedDevice) (resObj *AppVulnerabilityManagedDevice, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MobileApps returns request builder for AppVulnerabilityMobileApp collection
+func (b *AppVulnerabilityTaskRequestBuilder) MobileApps() *AppVulnerabilityTaskMobileAppsCollectionRequestBuilder {
+ bb := &AppVulnerabilityTaskMobileAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mobileApps"
+ return bb
+}
+
+// AppVulnerabilityTaskMobileAppsCollectionRequestBuilder is request builder for AppVulnerabilityMobileApp collection
+type AppVulnerabilityTaskMobileAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppVulnerabilityMobileApp collection
+func (b *AppVulnerabilityTaskMobileAppsCollectionRequestBuilder) Request() *AppVulnerabilityTaskMobileAppsCollectionRequest {
+ return &AppVulnerabilityTaskMobileAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppVulnerabilityMobileApp item
+func (b *AppVulnerabilityTaskMobileAppsCollectionRequestBuilder) ID(id string) *AppVulnerabilityMobileAppRequestBuilder {
+ bb := &AppVulnerabilityMobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AppVulnerabilityTaskMobileAppsCollectionRequest is request for AppVulnerabilityMobileApp collection
+type AppVulnerabilityTaskMobileAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppVulnerabilityMobileApp collection
+func (r *AppVulnerabilityTaskMobileAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AppVulnerabilityMobileApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppVulnerabilityMobileApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppVulnerabilityMobileApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppVulnerabilityMobileApp collection
+func (r *AppVulnerabilityTaskMobileAppsCollectionRequest) Get(ctx context.Context) ([]AppVulnerabilityMobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AppVulnerabilityMobileApp collection
+func (r *AppVulnerabilityTaskMobileAppsCollectionRequest) Add(ctx context.Context, reqObj *AppVulnerabilityMobileApp) (resObj *AppVulnerabilityMobileApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppleDeviceFeaturesConfigurationBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppleDeviceFeaturesConfigurationBaseModel.go
new file mode 100644
index 00000000..aa886d64
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppleDeviceFeaturesConfigurationBaseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppleDeviceFeaturesConfigurationBase Apple device features configuration profile.
+type AppleDeviceFeaturesConfigurationBase struct {
+ // DeviceConfiguration is the base model of AppleDeviceFeaturesConfigurationBase
+ DeviceConfiguration
+ // AirPrintDestinations An array of AirPrint printers that should always be shown. This collection can contain a maximum of 500 elements.
+ AirPrintDestinations []AirPrintDestination `json:"airPrintDestinations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppleEnrollmentProfileAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppleEnrollmentProfileAssignmentModel.go
new file mode 100644
index 00000000..20709579
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppleEnrollmentProfileAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppleEnrollmentProfileAssignment An assignment of an Apple profile.
+type AppleEnrollmentProfileAssignment struct {
+ // Entity is the base model of AppleEnrollmentProfileAssignment
+ Entity
+ // Target The assignment target for the Apple user initiated deployment profile.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppleEnrollmentProfileAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppleEnrollmentProfileAssignmentRequest.go
new file mode 100644
index 00000000..853a12f5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppleEnrollmentProfileAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AppleEnrollmentProfileAssignmentRequestBuilder is request builder for AppleEnrollmentProfileAssignment
+type AppleEnrollmentProfileAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AppleEnrollmentProfileAssignmentRequest
+func (b *AppleEnrollmentProfileAssignmentRequestBuilder) Request() *AppleEnrollmentProfileAssignmentRequest {
+ return &AppleEnrollmentProfileAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AppleEnrollmentProfileAssignmentRequest is request for AppleEnrollmentProfileAssignment
+type AppleEnrollmentProfileAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for AppleEnrollmentProfileAssignment
+func (r *AppleEnrollmentProfileAssignmentRequest) Get(ctx context.Context) (resObj *AppleEnrollmentProfileAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AppleEnrollmentProfileAssignment
+func (r *AppleEnrollmentProfileAssignmentRequest) Update(ctx context.Context, reqObj *AppleEnrollmentProfileAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AppleEnrollmentProfileAssignment
+func (r *AppleEnrollmentProfileAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppleOwnerTypeEnrollmentTypeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppleOwnerTypeEnrollmentTypeModel.go
new file mode 100644
index 00000000..d69fd318
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppleOwnerTypeEnrollmentTypeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppleOwnerTypeEnrollmentType undocumented
+type AppleOwnerTypeEnrollmentType struct {
+ // Object is the base model of AppleOwnerTypeEnrollmentType
+ Object
+ // OwnerType The owner type.
+ OwnerType *ManagedDeviceOwnerType `json:"ownerType,omitempty"`
+ // EnrollmentType The enrollment type.
+ EnrollmentType *AppleUserInitiatedEnrollmentType `json:"enrollmentType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplePushNotificationCertificateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplePushNotificationCertificateModel.go
new file mode 100644
index 00000000..94a4f52c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplePushNotificationCertificateModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ApplePushNotificationCertificate Apple push notification certificate.
+type ApplePushNotificationCertificate struct {
+ // Entity is the base model of ApplePushNotificationCertificate
+ Entity
+ // AppleIdentifier Apple Id of the account used to create the MDM push certificate.
+ AppleIdentifier *string `json:"appleIdentifier,omitempty"`
+ // TopicIdentifier Topic Id.
+ TopicIdentifier *string `json:"topicIdentifier,omitempty"`
+ // LastModifiedDateTime Last modified date and time for Apple push notification certificate.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // ExpirationDateTime The expiration date and time for Apple push notification certificate.
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // CertificateUploadStatus The certificate upload status.
+ CertificateUploadStatus *string `json:"certificateUploadStatus,omitempty"`
+ // CertificateUploadFailureReason The reason the certificate upload failed.
+ CertificateUploadFailureReason *string `json:"certificateUploadFailureReason,omitempty"`
+ // Certificate undocumented
+ Certificate *string `json:"certificate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplePushNotificationCertificateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplePushNotificationCertificateRequest.go
new file mode 100644
index 00000000..9db32aa8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplePushNotificationCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ApplePushNotificationCertificateRequestBuilder is request builder for ApplePushNotificationCertificate
+type ApplePushNotificationCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ApplePushNotificationCertificateRequest
+func (b *ApplePushNotificationCertificateRequestBuilder) Request() *ApplePushNotificationCertificateRequest {
+ return &ApplePushNotificationCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ApplePushNotificationCertificateRequest is request for ApplePushNotificationCertificate
+type ApplePushNotificationCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for ApplePushNotificationCertificate
+func (r *ApplePushNotificationCertificateRequest) Get(ctx context.Context) (resObj *ApplePushNotificationCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ApplePushNotificationCertificate
+func (r *ApplePushNotificationCertificateRequest) Update(ctx context.Context, reqObj *ApplePushNotificationCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ApplePushNotificationCertificate
+func (r *ApplePushNotificationCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppleSubjectNameFormatEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppleSubjectNameFormatEnum.go
new file mode 100644
index 00000000..a4a9e4d8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppleSubjectNameFormatEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppleSubjectNameFormat undocumented
+type AppleSubjectNameFormat int
+
+const (
+ // AppleSubjectNameFormatVCommonName undocumented
+ AppleSubjectNameFormatVCommonName AppleSubjectNameFormat = 0
+ // AppleSubjectNameFormatVCommonNameAsEmail undocumented
+ AppleSubjectNameFormatVCommonNameAsEmail AppleSubjectNameFormat = 1
+ // AppleSubjectNameFormatVCustom undocumented
+ AppleSubjectNameFormatVCustom AppleSubjectNameFormat = 2
+ // AppleSubjectNameFormatVCommonNameIncludingEmail undocumented
+ AppleSubjectNameFormatVCommonNameIncludingEmail AppleSubjectNameFormat = 3
+ // AppleSubjectNameFormatVCommonNameAsIMEI undocumented
+ AppleSubjectNameFormatVCommonNameAsIMEI AppleSubjectNameFormat = 5
+ // AppleSubjectNameFormatVCommonNameAsSerialNumber undocumented
+ AppleSubjectNameFormatVCommonNameAsSerialNumber AppleSubjectNameFormat = 6
+)
+
+// AppleSubjectNameFormatPCommonName returns a pointer to AppleSubjectNameFormatVCommonName
+func AppleSubjectNameFormatPCommonName() *AppleSubjectNameFormat {
+ v := AppleSubjectNameFormatVCommonName
+ return &v
+}
+
+// AppleSubjectNameFormatPCommonNameAsEmail returns a pointer to AppleSubjectNameFormatVCommonNameAsEmail
+func AppleSubjectNameFormatPCommonNameAsEmail() *AppleSubjectNameFormat {
+ v := AppleSubjectNameFormatVCommonNameAsEmail
+ return &v
+}
+
+// AppleSubjectNameFormatPCustom returns a pointer to AppleSubjectNameFormatVCustom
+func AppleSubjectNameFormatPCustom() *AppleSubjectNameFormat {
+ v := AppleSubjectNameFormatVCustom
+ return &v
+}
+
+// AppleSubjectNameFormatPCommonNameIncludingEmail returns a pointer to AppleSubjectNameFormatVCommonNameIncludingEmail
+func AppleSubjectNameFormatPCommonNameIncludingEmail() *AppleSubjectNameFormat {
+ v := AppleSubjectNameFormatVCommonNameIncludingEmail
+ return &v
+}
+
+// AppleSubjectNameFormatPCommonNameAsIMEI returns a pointer to AppleSubjectNameFormatVCommonNameAsIMEI
+func AppleSubjectNameFormatPCommonNameAsIMEI() *AppleSubjectNameFormat {
+ v := AppleSubjectNameFormatVCommonNameAsIMEI
+ return &v
+}
+
+// AppleSubjectNameFormatPCommonNameAsSerialNumber returns a pointer to AppleSubjectNameFormatVCommonNameAsSerialNumber
+func AppleSubjectNameFormatPCommonNameAsSerialNumber() *AppleSubjectNameFormat {
+ v := AppleSubjectNameFormatVCommonNameAsSerialNumber
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileAction.go
new file mode 100644
index 00000000..8ca623ae
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AppleUserInitiatedEnrollmentProfileSetPriorityRequestParameter undocumented
+type AppleUserInitiatedEnrollmentProfileSetPriorityRequestParameter struct {
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+}
+
+//
+type AppleUserInitiatedEnrollmentProfileSetPriorityRequestBuilder struct{ BaseRequestBuilder }
+
+// SetPriority action undocumented
+func (b *AppleUserInitiatedEnrollmentProfileRequestBuilder) SetPriority(reqObj *AppleUserInitiatedEnrollmentProfileSetPriorityRequestParameter) *AppleUserInitiatedEnrollmentProfileSetPriorityRequestBuilder {
+ bb := &AppleUserInitiatedEnrollmentProfileSetPriorityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/setPriority"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AppleUserInitiatedEnrollmentProfileSetPriorityRequest struct{ BaseRequest }
+
+//
+func (b *AppleUserInitiatedEnrollmentProfileSetPriorityRequestBuilder) Request() *AppleUserInitiatedEnrollmentProfileSetPriorityRequest {
+ return &AppleUserInitiatedEnrollmentProfileSetPriorityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AppleUserInitiatedEnrollmentProfileSetPriorityRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileModel.go
new file mode 100644
index 00000000..248f3af1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AppleUserInitiatedEnrollmentProfile The enrollmentProfile resource represents a collection of configurations which must be provided pre-enrollment to enable enrolling certain devices whose identities have been pre-staged. Pre-staged device identities are assigned to this type of profile to apply the profile's configurations at enrollment of the corresponding device.
+type AppleUserInitiatedEnrollmentProfile struct {
+ // Entity is the base model of AppleUserInitiatedEnrollmentProfile
+ Entity
+ // DefaultEnrollmentType The default profile enrollment type.
+ DefaultEnrollmentType *AppleUserInitiatedEnrollmentType `json:"defaultEnrollmentType,omitempty"`
+ // AvailableEnrollmentTypeOptions List of available enrollment type options
+ AvailableEnrollmentTypeOptions []AppleOwnerTypeEnrollmentType `json:"availableEnrollmentTypeOptions,omitempty"`
+ // DisplayName Name of the profile
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of the profile
+ Description *string `json:"description,omitempty"`
+ // Priority Priority, 0 is highest
+ Priority *int `json:"priority,omitempty"`
+ // Platform The platform of the Device.
+ Platform *DevicePlatformType `json:"platform,omitempty"`
+ // CreatedDateTime Profile creation time
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Profile last modified time
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Assignments undocumented
+ Assignments []AppleEnrollmentProfileAssignment `json:"assignments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileRequest.go
new file mode 100644
index 00000000..a55d432e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppleUserInitiatedEnrollmentProfileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AppleUserInitiatedEnrollmentProfileRequestBuilder is request builder for AppleUserInitiatedEnrollmentProfile
+type AppleUserInitiatedEnrollmentProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AppleUserInitiatedEnrollmentProfileRequest
+func (b *AppleUserInitiatedEnrollmentProfileRequestBuilder) Request() *AppleUserInitiatedEnrollmentProfileRequest {
+ return &AppleUserInitiatedEnrollmentProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AppleUserInitiatedEnrollmentProfileRequest is request for AppleUserInitiatedEnrollmentProfile
+type AppleUserInitiatedEnrollmentProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AppleUserInitiatedEnrollmentProfile
+func (r *AppleUserInitiatedEnrollmentProfileRequest) Get(ctx context.Context) (resObj *AppleUserInitiatedEnrollmentProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AppleUserInitiatedEnrollmentProfile
+func (r *AppleUserInitiatedEnrollmentProfileRequest) Update(ctx context.Context, reqObj *AppleUserInitiatedEnrollmentProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AppleUserInitiatedEnrollmentProfile
+func (r *AppleUserInitiatedEnrollmentProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for AppleEnrollmentProfileAssignment collection
+func (b *AppleUserInitiatedEnrollmentProfileRequestBuilder) Assignments() *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder {
+ bb := &AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder is request builder for AppleEnrollmentProfileAssignment collection
+type AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppleEnrollmentProfileAssignment collection
+func (b *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder) Request() *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest {
+ return &AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppleEnrollmentProfileAssignment item
+func (b *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder) ID(id string) *AppleEnrollmentProfileAssignmentRequestBuilder {
+ bb := &AppleEnrollmentProfileAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest is request for AppleEnrollmentProfileAssignment collection
+type AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppleEnrollmentProfileAssignment collection
+func (r *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AppleEnrollmentProfileAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppleEnrollmentProfileAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppleEnrollmentProfileAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppleEnrollmentProfileAssignment collection
+func (r *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppleEnrollmentProfileAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AppleEnrollmentProfileAssignment collection
+func (r *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AppleEnrollmentProfileAssignment) (resObj *AppleEnrollmentProfileAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppleUserInitiatedEnrollmentTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppleUserInitiatedEnrollmentTypeEnum.go
new file mode 100644
index 00000000..3df93d28
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppleUserInitiatedEnrollmentTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppleUserInitiatedEnrollmentType undocumented
+type AppleUserInitiatedEnrollmentType int
+
+const (
+ // AppleUserInitiatedEnrollmentTypeVUnknown undocumented
+ AppleUserInitiatedEnrollmentTypeVUnknown AppleUserInitiatedEnrollmentType = 0
+ // AppleUserInitiatedEnrollmentTypeVDevice undocumented
+ AppleUserInitiatedEnrollmentTypeVDevice AppleUserInitiatedEnrollmentType = 1
+ // AppleUserInitiatedEnrollmentTypeVUser undocumented
+ AppleUserInitiatedEnrollmentTypeVUser AppleUserInitiatedEnrollmentType = 2
+)
+
+// AppleUserInitiatedEnrollmentTypePUnknown returns a pointer to AppleUserInitiatedEnrollmentTypeVUnknown
+func AppleUserInitiatedEnrollmentTypePUnknown() *AppleUserInitiatedEnrollmentType {
+ v := AppleUserInitiatedEnrollmentTypeVUnknown
+ return &v
+}
+
+// AppleUserInitiatedEnrollmentTypePDevice returns a pointer to AppleUserInitiatedEnrollmentTypeVDevice
+func AppleUserInitiatedEnrollmentTypePDevice() *AppleUserInitiatedEnrollmentType {
+ v := AppleUserInitiatedEnrollmentTypeVDevice
+ return &v
+}
+
+// AppleUserInitiatedEnrollmentTypePUser returns a pointer to AppleUserInitiatedEnrollmentTypeVUser
+func AppleUserInitiatedEnrollmentTypePUser() *AppleUserInitiatedEnrollmentType {
+ v := AppleUserInitiatedEnrollmentTypeVUser
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppleVpnConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppleVpnConfigurationModel.go
new file mode 100644
index 00000000..b52f03f6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppleVpnConfigurationModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppleVpnConfiguration Apple VPN configuration profile.
+type AppleVpnConfiguration struct {
+ // DeviceConfiguration is the base model of AppleVpnConfiguration
+ DeviceConfiguration
+ // ConnectionName Connection name displayed to the user.
+ ConnectionName *string `json:"connectionName,omitempty"`
+ // ConnectionType Connection type.
+ ConnectionType *AppleVpnConnectionType `json:"connectionType,omitempty"`
+ // LoginGroupOrDomain Login group or domain when connection type is set to Dell SonicWALL Mobile Connection.
+ LoginGroupOrDomain *string `json:"loginGroupOrDomain,omitempty"`
+ // Role Role when connection type is set to Pulse Secure.
+ Role *string `json:"role,omitempty"`
+ // Realm Realm when connection type is set to Pulse Secure.
+ Realm *string `json:"realm,omitempty"`
+ // Server VPN Server on the network. Make sure end users can access this network location.
+ Server *VpnServer `json:"server,omitempty"`
+ // Identifier Identifier provided by VPN vendor when connection type is set to Custom VPN. For example: Cisco AnyConnect uses an identifier of the form com.cisco.anyconnect.applevpn.plugin
+ Identifier *string `json:"identifier,omitempty"`
+ // CustomData Custom data when connection type is set to Custom VPN. Use this field to enable functionality not supported by Intune, but available in your VPN solution. Contact your VPN vendor to learn how to add these key/value pairs. This collection can contain a maximum of 25 elements.
+ CustomData []KeyValue `json:"customData,omitempty"`
+ // CustomKeyValueData Custom data when connection type is set to Custom VPN. Use this field to enable functionality not supported by Intune, but available in your VPN solution. Contact your VPN vendor to learn how to add these key/value pairs. This collection can contain a maximum of 25 elements.
+ CustomKeyValueData []KeyValuePair `json:"customKeyValueData,omitempty"`
+ // EnableSplitTunneling Send all network traffic through VPN.
+ EnableSplitTunneling *bool `json:"enableSplitTunneling,omitempty"`
+ // AuthenticationMethod Authentication method for this VPN connection.
+ AuthenticationMethod *VpnAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // EnablePerApp Setting this to true creates Per-App VPN payload which can later be associated with Apps that can trigger this VPN conneciton on the end user's iOS device.
+ EnablePerApp *bool `json:"enablePerApp,omitempty"`
+ // SafariDomains Safari domains when this VPN per App setting is enabled. In addition to the apps associated with this VPN, Safari domains specified here will also be able to trigger this VPN connection.
+ SafariDomains []string `json:"safariDomains,omitempty"`
+ // OnDemandRules On-Demand Rules. This collection can contain a maximum of 500 elements.
+ OnDemandRules []VpnOnDemandRule `json:"onDemandRules,omitempty"`
+ // ProxyServer Proxy Server.
+ ProxyServer *VpnProxyServer `json:"proxyServer,omitempty"`
+ // OptInToDeviceIDSharing Opt-In to sharing the device's Id to third-party vpn clients for use during network access control validation.
+ OptInToDeviceIDSharing *bool `json:"optInToDeviceIdSharing,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppleVpnConnectionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppleVpnConnectionTypeEnum.go
new file mode 100644
index 00000000..66a651fe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppleVpnConnectionTypeEnum.go
@@ -0,0 +1,129 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppleVpnConnectionType undocumented
+type AppleVpnConnectionType int
+
+const (
+ // AppleVpnConnectionTypeVCiscoAnyConnect undocumented
+ AppleVpnConnectionTypeVCiscoAnyConnect AppleVpnConnectionType = 0
+ // AppleVpnConnectionTypeVPulseSecure undocumented
+ AppleVpnConnectionTypeVPulseSecure AppleVpnConnectionType = 1
+ // AppleVpnConnectionTypeVF5EdgeClient undocumented
+ AppleVpnConnectionTypeVF5EdgeClient AppleVpnConnectionType = 2
+ // AppleVpnConnectionTypeVDellSonicWallMobileConnect undocumented
+ AppleVpnConnectionTypeVDellSonicWallMobileConnect AppleVpnConnectionType = 3
+ // AppleVpnConnectionTypeVCheckPointCapsuleVpn undocumented
+ AppleVpnConnectionTypeVCheckPointCapsuleVpn AppleVpnConnectionType = 4
+ // AppleVpnConnectionTypeVCustomVpn undocumented
+ AppleVpnConnectionTypeVCustomVpn AppleVpnConnectionType = 5
+ // AppleVpnConnectionTypeVCiscoIPSec undocumented
+ AppleVpnConnectionTypeVCiscoIPSec AppleVpnConnectionType = 6
+ // AppleVpnConnectionTypeVCitrix undocumented
+ AppleVpnConnectionTypeVCitrix AppleVpnConnectionType = 7
+ // AppleVpnConnectionTypeVCiscoAnyConnectV2 undocumented
+ AppleVpnConnectionTypeVCiscoAnyConnectV2 AppleVpnConnectionType = 8
+ // AppleVpnConnectionTypeVPaloAltoGlobalProtect undocumented
+ AppleVpnConnectionTypeVPaloAltoGlobalProtect AppleVpnConnectionType = 9
+ // AppleVpnConnectionTypeVZscalerPrivateAccess undocumented
+ AppleVpnConnectionTypeVZscalerPrivateAccess AppleVpnConnectionType = 10
+ // AppleVpnConnectionTypeVF5Access2018 undocumented
+ AppleVpnConnectionTypeVF5Access2018 AppleVpnConnectionType = 11
+ // AppleVpnConnectionTypeVCitrixSso undocumented
+ AppleVpnConnectionTypeVCitrixSso AppleVpnConnectionType = 12
+ // AppleVpnConnectionTypeVPaloAltoGlobalProtectV2 undocumented
+ AppleVpnConnectionTypeVPaloAltoGlobalProtectV2 AppleVpnConnectionType = 13
+ // AppleVpnConnectionTypeVIkEv2 undocumented
+ AppleVpnConnectionTypeVIkEv2 AppleVpnConnectionType = 14
+)
+
+// AppleVpnConnectionTypePCiscoAnyConnect returns a pointer to AppleVpnConnectionTypeVCiscoAnyConnect
+func AppleVpnConnectionTypePCiscoAnyConnect() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVCiscoAnyConnect
+ return &v
+}
+
+// AppleVpnConnectionTypePPulseSecure returns a pointer to AppleVpnConnectionTypeVPulseSecure
+func AppleVpnConnectionTypePPulseSecure() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVPulseSecure
+ return &v
+}
+
+// AppleVpnConnectionTypePF5EdgeClient returns a pointer to AppleVpnConnectionTypeVF5EdgeClient
+func AppleVpnConnectionTypePF5EdgeClient() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVF5EdgeClient
+ return &v
+}
+
+// AppleVpnConnectionTypePDellSonicWallMobileConnect returns a pointer to AppleVpnConnectionTypeVDellSonicWallMobileConnect
+func AppleVpnConnectionTypePDellSonicWallMobileConnect() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVDellSonicWallMobileConnect
+ return &v
+}
+
+// AppleVpnConnectionTypePCheckPointCapsuleVpn returns a pointer to AppleVpnConnectionTypeVCheckPointCapsuleVpn
+func AppleVpnConnectionTypePCheckPointCapsuleVpn() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVCheckPointCapsuleVpn
+ return &v
+}
+
+// AppleVpnConnectionTypePCustomVpn returns a pointer to AppleVpnConnectionTypeVCustomVpn
+func AppleVpnConnectionTypePCustomVpn() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVCustomVpn
+ return &v
+}
+
+// AppleVpnConnectionTypePCiscoIPSec returns a pointer to AppleVpnConnectionTypeVCiscoIPSec
+func AppleVpnConnectionTypePCiscoIPSec() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVCiscoIPSec
+ return &v
+}
+
+// AppleVpnConnectionTypePCitrix returns a pointer to AppleVpnConnectionTypeVCitrix
+func AppleVpnConnectionTypePCitrix() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVCitrix
+ return &v
+}
+
+// AppleVpnConnectionTypePCiscoAnyConnectV2 returns a pointer to AppleVpnConnectionTypeVCiscoAnyConnectV2
+func AppleVpnConnectionTypePCiscoAnyConnectV2() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVCiscoAnyConnectV2
+ return &v
+}
+
+// AppleVpnConnectionTypePPaloAltoGlobalProtect returns a pointer to AppleVpnConnectionTypeVPaloAltoGlobalProtect
+func AppleVpnConnectionTypePPaloAltoGlobalProtect() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVPaloAltoGlobalProtect
+ return &v
+}
+
+// AppleVpnConnectionTypePZscalerPrivateAccess returns a pointer to AppleVpnConnectionTypeVZscalerPrivateAccess
+func AppleVpnConnectionTypePZscalerPrivateAccess() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVZscalerPrivateAccess
+ return &v
+}
+
+// AppleVpnConnectionTypePF5Access2018 returns a pointer to AppleVpnConnectionTypeVF5Access2018
+func AppleVpnConnectionTypePF5Access2018() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVF5Access2018
+ return &v
+}
+
+// AppleVpnConnectionTypePCitrixSso returns a pointer to AppleVpnConnectionTypeVCitrixSso
+func AppleVpnConnectionTypePCitrixSso() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVCitrixSso
+ return &v
+}
+
+// AppleVpnConnectionTypePPaloAltoGlobalProtectV2 returns a pointer to AppleVpnConnectionTypeVPaloAltoGlobalProtectV2
+func AppleVpnConnectionTypePPaloAltoGlobalProtectV2() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVPaloAltoGlobalProtectV2
+ return &v
+}
+
+// AppleVpnConnectionTypePIkEv2 returns a pointer to AppleVpnConnectionTypeVIkEv2
+func AppleVpnConnectionTypePIkEv2() *AppleVpnConnectionType {
+ v := AppleVpnConnectionTypeVIkEv2
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppleVppTokenTroubleshootingEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppleVppTokenTroubleshootingEventModel.go
new file mode 100644
index 00000000..2828fa3b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppleVppTokenTroubleshootingEventModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppleVppTokenTroubleshootingEvent Event representing an Apple Vpp Token Troubleshooting Event.
+type AppleVppTokenTroubleshootingEvent struct {
+ // DeviceManagementTroubleshootingEvent is the base model of AppleVppTokenTroubleshootingEvent
+ DeviceManagementTroubleshootingEvent
+ // TokenID Apple Volume Purchase Program Token Identifier.
+ TokenID *string `json:"tokenId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationAction.go
new file mode 100644
index 00000000..b649dcde
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationAction.go
@@ -0,0 +1,141 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ApplicationAddKeyRequestParameter undocumented
+type ApplicationAddKeyRequestParameter struct {
+ // KeyCredential undocumented
+ KeyCredential *KeyCredential `json:"keyCredential,omitempty"`
+ // PasswordCredential undocumented
+ PasswordCredential *PasswordCredential `json:"passwordCredential,omitempty"`
+ // Proof undocumented
+ Proof *string `json:"proof,omitempty"`
+}
+
+// ApplicationAddPasswordRequestParameter undocumented
+type ApplicationAddPasswordRequestParameter struct {
+ // PasswordCredential undocumented
+ PasswordCredential *PasswordCredential `json:"passwordCredential,omitempty"`
+}
+
+// ApplicationRemoveKeyRequestParameter undocumented
+type ApplicationRemoveKeyRequestParameter struct {
+ // KeyID undocumented
+ KeyID *UUID `json:"keyId,omitempty"`
+ // Proof undocumented
+ Proof *string `json:"proof,omitempty"`
+}
+
+// ApplicationRemovePasswordRequestParameter undocumented
+type ApplicationRemovePasswordRequestParameter struct {
+ // KeyID undocumented
+ KeyID *UUID `json:"keyId,omitempty"`
+}
+
+//
+type ApplicationAddKeyRequestBuilder struct{ BaseRequestBuilder }
+
+// AddKey action undocumented
+func (b *ApplicationRequestBuilder) AddKey(reqObj *ApplicationAddKeyRequestParameter) *ApplicationAddKeyRequestBuilder {
+ bb := &ApplicationAddKeyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/addKey"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ApplicationAddKeyRequest struct{ BaseRequest }
+
+//
+func (b *ApplicationAddKeyRequestBuilder) Request() *ApplicationAddKeyRequest {
+ return &ApplicationAddKeyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ApplicationAddKeyRequest) Post(ctx context.Context) (resObj *KeyCredential, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type ApplicationAddPasswordRequestBuilder struct{ BaseRequestBuilder }
+
+// AddPassword action undocumented
+func (b *ApplicationRequestBuilder) AddPassword(reqObj *ApplicationAddPasswordRequestParameter) *ApplicationAddPasswordRequestBuilder {
+ bb := &ApplicationAddPasswordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/addPassword"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ApplicationAddPasswordRequest struct{ BaseRequest }
+
+//
+func (b *ApplicationAddPasswordRequestBuilder) Request() *ApplicationAddPasswordRequest {
+ return &ApplicationAddPasswordRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ApplicationAddPasswordRequest) Post(ctx context.Context) (resObj *PasswordCredential, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type ApplicationRemoveKeyRequestBuilder struct{ BaseRequestBuilder }
+
+// RemoveKey action undocumented
+func (b *ApplicationRequestBuilder) RemoveKey(reqObj *ApplicationRemoveKeyRequestParameter) *ApplicationRemoveKeyRequestBuilder {
+ bb := &ApplicationRemoveKeyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/removeKey"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ApplicationRemoveKeyRequest struct{ BaseRequest }
+
+//
+func (b *ApplicationRemoveKeyRequestBuilder) Request() *ApplicationRemoveKeyRequest {
+ return &ApplicationRemoveKeyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ApplicationRemoveKeyRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ApplicationRemovePasswordRequestBuilder struct{ BaseRequestBuilder }
+
+// RemovePassword action undocumented
+func (b *ApplicationRequestBuilder) RemovePassword(reqObj *ApplicationRemovePasswordRequestParameter) *ApplicationRemovePasswordRequestBuilder {
+ bb := &ApplicationRemovePasswordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/removePassword"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ApplicationRemovePasswordRequest struct{ BaseRequest }
+
+//
+func (b *ApplicationRemovePasswordRequestBuilder) Request() *ApplicationRemovePasswordRequest {
+ return &ApplicationRemovePasswordRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ApplicationRemovePasswordRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationEnforcedRestrictionsSessionControlModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationEnforcedRestrictionsSessionControlModel.go
new file mode 100644
index 00000000..0d6b0998
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationEnforcedRestrictionsSessionControlModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationEnforcedRestrictionsSessionControl undocumented
+type ApplicationEnforcedRestrictionsSessionControl struct {
+ // ConditionalAccessSessionControl is the base model of ApplicationEnforcedRestrictionsSessionControl
+ ConditionalAccessSessionControl
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationGuardBlockClipboardSharingTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationGuardBlockClipboardSharingTypeEnum.go
new file mode 100644
index 00000000..d11f4030
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationGuardBlockClipboardSharingTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationGuardBlockClipboardSharingType undocumented
+type ApplicationGuardBlockClipboardSharingType int
+
+const (
+ // ApplicationGuardBlockClipboardSharingTypeVNotConfigured undocumented
+ ApplicationGuardBlockClipboardSharingTypeVNotConfigured ApplicationGuardBlockClipboardSharingType = 0
+ // ApplicationGuardBlockClipboardSharingTypeVBlockBoth undocumented
+ ApplicationGuardBlockClipboardSharingTypeVBlockBoth ApplicationGuardBlockClipboardSharingType = 1
+ // ApplicationGuardBlockClipboardSharingTypeVBlockHostToContainer undocumented
+ ApplicationGuardBlockClipboardSharingTypeVBlockHostToContainer ApplicationGuardBlockClipboardSharingType = 2
+ // ApplicationGuardBlockClipboardSharingTypeVBlockContainerToHost undocumented
+ ApplicationGuardBlockClipboardSharingTypeVBlockContainerToHost ApplicationGuardBlockClipboardSharingType = 3
+ // ApplicationGuardBlockClipboardSharingTypeVBlockNone undocumented
+ ApplicationGuardBlockClipboardSharingTypeVBlockNone ApplicationGuardBlockClipboardSharingType = 4
+)
+
+// ApplicationGuardBlockClipboardSharingTypePNotConfigured returns a pointer to ApplicationGuardBlockClipboardSharingTypeVNotConfigured
+func ApplicationGuardBlockClipboardSharingTypePNotConfigured() *ApplicationGuardBlockClipboardSharingType {
+ v := ApplicationGuardBlockClipboardSharingTypeVNotConfigured
+ return &v
+}
+
+// ApplicationGuardBlockClipboardSharingTypePBlockBoth returns a pointer to ApplicationGuardBlockClipboardSharingTypeVBlockBoth
+func ApplicationGuardBlockClipboardSharingTypePBlockBoth() *ApplicationGuardBlockClipboardSharingType {
+ v := ApplicationGuardBlockClipboardSharingTypeVBlockBoth
+ return &v
+}
+
+// ApplicationGuardBlockClipboardSharingTypePBlockHostToContainer returns a pointer to ApplicationGuardBlockClipboardSharingTypeVBlockHostToContainer
+func ApplicationGuardBlockClipboardSharingTypePBlockHostToContainer() *ApplicationGuardBlockClipboardSharingType {
+ v := ApplicationGuardBlockClipboardSharingTypeVBlockHostToContainer
+ return &v
+}
+
+// ApplicationGuardBlockClipboardSharingTypePBlockContainerToHost returns a pointer to ApplicationGuardBlockClipboardSharingTypeVBlockContainerToHost
+func ApplicationGuardBlockClipboardSharingTypePBlockContainerToHost() *ApplicationGuardBlockClipboardSharingType {
+ v := ApplicationGuardBlockClipboardSharingTypeVBlockContainerToHost
+ return &v
+}
+
+// ApplicationGuardBlockClipboardSharingTypePBlockNone returns a pointer to ApplicationGuardBlockClipboardSharingTypeVBlockNone
+func ApplicationGuardBlockClipboardSharingTypePBlockNone() *ApplicationGuardBlockClipboardSharingType {
+ v := ApplicationGuardBlockClipboardSharingTypeVBlockNone
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationGuardBlockFileTransferTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationGuardBlockFileTransferTypeEnum.go
new file mode 100644
index 00000000..a6026e87
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationGuardBlockFileTransferTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationGuardBlockFileTransferType undocumented
+type ApplicationGuardBlockFileTransferType int
+
+const (
+ // ApplicationGuardBlockFileTransferTypeVNotConfigured undocumented
+ ApplicationGuardBlockFileTransferTypeVNotConfigured ApplicationGuardBlockFileTransferType = 0
+ // ApplicationGuardBlockFileTransferTypeVBlockImageAndTextFile undocumented
+ ApplicationGuardBlockFileTransferTypeVBlockImageAndTextFile ApplicationGuardBlockFileTransferType = 1
+ // ApplicationGuardBlockFileTransferTypeVBlockImageFile undocumented
+ ApplicationGuardBlockFileTransferTypeVBlockImageFile ApplicationGuardBlockFileTransferType = 2
+ // ApplicationGuardBlockFileTransferTypeVBlockNone undocumented
+ ApplicationGuardBlockFileTransferTypeVBlockNone ApplicationGuardBlockFileTransferType = 3
+ // ApplicationGuardBlockFileTransferTypeVBlockTextFile undocumented
+ ApplicationGuardBlockFileTransferTypeVBlockTextFile ApplicationGuardBlockFileTransferType = 4
+)
+
+// ApplicationGuardBlockFileTransferTypePNotConfigured returns a pointer to ApplicationGuardBlockFileTransferTypeVNotConfigured
+func ApplicationGuardBlockFileTransferTypePNotConfigured() *ApplicationGuardBlockFileTransferType {
+ v := ApplicationGuardBlockFileTransferTypeVNotConfigured
+ return &v
+}
+
+// ApplicationGuardBlockFileTransferTypePBlockImageAndTextFile returns a pointer to ApplicationGuardBlockFileTransferTypeVBlockImageAndTextFile
+func ApplicationGuardBlockFileTransferTypePBlockImageAndTextFile() *ApplicationGuardBlockFileTransferType {
+ v := ApplicationGuardBlockFileTransferTypeVBlockImageAndTextFile
+ return &v
+}
+
+// ApplicationGuardBlockFileTransferTypePBlockImageFile returns a pointer to ApplicationGuardBlockFileTransferTypeVBlockImageFile
+func ApplicationGuardBlockFileTransferTypePBlockImageFile() *ApplicationGuardBlockFileTransferType {
+ v := ApplicationGuardBlockFileTransferTypeVBlockImageFile
+ return &v
+}
+
+// ApplicationGuardBlockFileTransferTypePBlockNone returns a pointer to ApplicationGuardBlockFileTransferTypeVBlockNone
+func ApplicationGuardBlockFileTransferTypePBlockNone() *ApplicationGuardBlockFileTransferType {
+ v := ApplicationGuardBlockFileTransferTypeVBlockNone
+ return &v
+}
+
+// ApplicationGuardBlockFileTransferTypePBlockTextFile returns a pointer to ApplicationGuardBlockFileTransferTypeVBlockTextFile
+func ApplicationGuardBlockFileTransferTypePBlockTextFile() *ApplicationGuardBlockFileTransferType {
+ v := ApplicationGuardBlockFileTransferTypeVBlockTextFile
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationGuardEnabledOptionsEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationGuardEnabledOptionsEnum.go
new file mode 100644
index 00000000..70f07235
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationGuardEnabledOptionsEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationGuardEnabledOptions undocumented
+type ApplicationGuardEnabledOptions int
+
+const (
+ // ApplicationGuardEnabledOptionsVNotConfigured undocumented
+ ApplicationGuardEnabledOptionsVNotConfigured ApplicationGuardEnabledOptions = 0
+ // ApplicationGuardEnabledOptionsVEnabledForEdge undocumented
+ ApplicationGuardEnabledOptionsVEnabledForEdge ApplicationGuardEnabledOptions = 1
+ // ApplicationGuardEnabledOptionsVEnabledForOffice undocumented
+ ApplicationGuardEnabledOptionsVEnabledForOffice ApplicationGuardEnabledOptions = 2
+ // ApplicationGuardEnabledOptionsVEnabledForEdgeAndOffice undocumented
+ ApplicationGuardEnabledOptionsVEnabledForEdgeAndOffice ApplicationGuardEnabledOptions = 3
+)
+
+// ApplicationGuardEnabledOptionsPNotConfigured returns a pointer to ApplicationGuardEnabledOptionsVNotConfigured
+func ApplicationGuardEnabledOptionsPNotConfigured() *ApplicationGuardEnabledOptions {
+ v := ApplicationGuardEnabledOptionsVNotConfigured
+ return &v
+}
+
+// ApplicationGuardEnabledOptionsPEnabledForEdge returns a pointer to ApplicationGuardEnabledOptionsVEnabledForEdge
+func ApplicationGuardEnabledOptionsPEnabledForEdge() *ApplicationGuardEnabledOptions {
+ v := ApplicationGuardEnabledOptionsVEnabledForEdge
+ return &v
+}
+
+// ApplicationGuardEnabledOptionsPEnabledForOffice returns a pointer to ApplicationGuardEnabledOptionsVEnabledForOffice
+func ApplicationGuardEnabledOptionsPEnabledForOffice() *ApplicationGuardEnabledOptions {
+ v := ApplicationGuardEnabledOptionsVEnabledForOffice
+ return &v
+}
+
+// ApplicationGuardEnabledOptionsPEnabledForEdgeAndOffice returns a pointer to ApplicationGuardEnabledOptionsVEnabledForEdgeAndOffice
+func ApplicationGuardEnabledOptionsPEnabledForEdgeAndOffice() *ApplicationGuardEnabledOptions {
+ v := ApplicationGuardEnabledOptionsVEnabledForEdgeAndOffice
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationIdentityTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationIdentityTypeEnum.go
new file mode 100644
index 00000000..16f22df2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationIdentityTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationIdentityType undocumented
+type ApplicationIdentityType int
+
+const (
+ // ApplicationIdentityTypeVAadApplication undocumented
+ ApplicationIdentityTypeVAadApplication ApplicationIdentityType = 0
+ // ApplicationIdentityTypeVBot undocumented
+ ApplicationIdentityTypeVBot ApplicationIdentityType = 1
+ // ApplicationIdentityTypeVTenantBot undocumented
+ ApplicationIdentityTypeVTenantBot ApplicationIdentityType = 2
+ // ApplicationIdentityTypeVOffice365Connector undocumented
+ ApplicationIdentityTypeVOffice365Connector ApplicationIdentityType = 3
+ // ApplicationIdentityTypeVOutgoingWebhook undocumented
+ ApplicationIdentityTypeVOutgoingWebhook ApplicationIdentityType = 4
+)
+
+// ApplicationIdentityTypePAadApplication returns a pointer to ApplicationIdentityTypeVAadApplication
+func ApplicationIdentityTypePAadApplication() *ApplicationIdentityType {
+ v := ApplicationIdentityTypeVAadApplication
+ return &v
+}
+
+// ApplicationIdentityTypePBot returns a pointer to ApplicationIdentityTypeVBot
+func ApplicationIdentityTypePBot() *ApplicationIdentityType {
+ v := ApplicationIdentityTypeVBot
+ return &v
+}
+
+// ApplicationIdentityTypePTenantBot returns a pointer to ApplicationIdentityTypeVTenantBot
+func ApplicationIdentityTypePTenantBot() *ApplicationIdentityType {
+ v := ApplicationIdentityTypeVTenantBot
+ return &v
+}
+
+// ApplicationIdentityTypePOffice365Connector returns a pointer to ApplicationIdentityTypeVOffice365Connector
+func ApplicationIdentityTypePOffice365Connector() *ApplicationIdentityType {
+ v := ApplicationIdentityTypeVOffice365Connector
+ return &v
+}
+
+// ApplicationIdentityTypePOutgoingWebhook returns a pointer to ApplicationIdentityTypeVOutgoingWebhook
+func ApplicationIdentityTypePOutgoingWebhook() *ApplicationIdentityType {
+ v := ApplicationIdentityTypeVOutgoingWebhook
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationModeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationModeEnum.go
new file mode 100644
index 00000000..fe075859
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationModeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationMode undocumented
+type ApplicationMode int
+
+const (
+ // ApplicationModeVManual undocumented
+ ApplicationModeVManual ApplicationMode = 0
+ // ApplicationModeVAutomatic undocumented
+ ApplicationModeVAutomatic ApplicationMode = 1
+ // ApplicationModeVRecommended undocumented
+ ApplicationModeVRecommended ApplicationMode = 2
+)
+
+// ApplicationModePManual returns a pointer to ApplicationModeVManual
+func ApplicationModePManual() *ApplicationMode {
+ v := ApplicationModeVManual
+ return &v
+}
+
+// ApplicationModePAutomatic returns a pointer to ApplicationModeVAutomatic
+func ApplicationModePAutomatic() *ApplicationMode {
+ v := ApplicationModeVAutomatic
+ return &v
+}
+
+// ApplicationModePRecommended returns a pointer to ApplicationModeVRecommended
+func ApplicationModePRecommended() *ApplicationMode {
+ v := ApplicationModeVRecommended
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationModel.go
new file mode 100644
index 00000000..301473a5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationModel.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Application undocumented
+type Application struct {
+ // DirectoryObject is the base model of Application
+ DirectoryObject
+ // API undocumented
+ API *APIApplication `json:"api,omitempty"`
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // AppRoles undocumented
+ AppRoles []AppRole `json:"appRoles,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // IsFallbackPublicClient undocumented
+ IsFallbackPublicClient *bool `json:"isFallbackPublicClient,omitempty"`
+ // IdentifierUris undocumented
+ IdentifierUris []string `json:"identifierUris,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // GroupMembershipClaims undocumented
+ GroupMembershipClaims *string `json:"groupMembershipClaims,omitempty"`
+ // Info undocumented
+ Info *InformationalURL `json:"info,omitempty"`
+ // IsDeviceOnlyAuthSupported undocumented
+ IsDeviceOnlyAuthSupported *bool `json:"isDeviceOnlyAuthSupported,omitempty"`
+ // KeyCredentials undocumented
+ KeyCredentials []KeyCredential `json:"keyCredentials,omitempty"`
+ // Logo undocumented
+ Logo *Stream `json:"logo,omitempty"`
+ // OptionalClaims undocumented
+ OptionalClaims *OptionalClaims `json:"optionalClaims,omitempty"`
+ // ParentalControlSettings undocumented
+ ParentalControlSettings *ParentalControlSettings `json:"parentalControlSettings,omitempty"`
+ // PasswordCredentials undocumented
+ PasswordCredentials []PasswordCredential `json:"passwordCredentials,omitempty"`
+ // PublicClient undocumented
+ PublicClient *PublicClientApplication `json:"publicClient,omitempty"`
+ // PublisherDomain undocumented
+ PublisherDomain *string `json:"publisherDomain,omitempty"`
+ // RequiredResourceAccess undocumented
+ RequiredResourceAccess []RequiredResourceAccess `json:"requiredResourceAccess,omitempty"`
+ // SignInAudience undocumented
+ SignInAudience *string `json:"signInAudience,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // TokenEncryptionKeyID undocumented
+ TokenEncryptionKeyID *UUID `json:"tokenEncryptionKeyId,omitempty"`
+ // Web undocumented
+ Web *WebApplication `json:"web,omitempty"`
+ // ExtensionProperties undocumented
+ ExtensionProperties []ExtensionProperty `json:"extensionProperties,omitempty"`
+ // CreatedOnBehalfOf undocumented
+ CreatedOnBehalfOf *DirectoryObject `json:"createdOnBehalfOf,omitempty"`
+ // Owners undocumented
+ Owners []DirectoryObject `json:"owners,omitempty"`
+ // Policies undocumented
+ Policies []DirectoryObject `json:"policies,omitempty"`
+ // Synchronization undocumented
+ Synchronization *Synchronization `json:"synchronization,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationPermissionsRequiredEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationPermissionsRequiredEnum.go
new file mode 100644
index 00000000..92b5780a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationPermissionsRequiredEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationPermissionsRequired undocumented
+type ApplicationPermissionsRequired int
+
+const (
+ // ApplicationPermissionsRequiredVUnknown undocumented
+ ApplicationPermissionsRequiredVUnknown ApplicationPermissionsRequired = 0
+ // ApplicationPermissionsRequiredVAnonymous undocumented
+ ApplicationPermissionsRequiredVAnonymous ApplicationPermissionsRequired = 1
+ // ApplicationPermissionsRequiredVGuest undocumented
+ ApplicationPermissionsRequiredVGuest ApplicationPermissionsRequired = 2
+ // ApplicationPermissionsRequiredVUser undocumented
+ ApplicationPermissionsRequiredVUser ApplicationPermissionsRequired = 3
+ // ApplicationPermissionsRequiredVAdministrator undocumented
+ ApplicationPermissionsRequiredVAdministrator ApplicationPermissionsRequired = 4
+ // ApplicationPermissionsRequiredVSystem undocumented
+ ApplicationPermissionsRequiredVSystem ApplicationPermissionsRequired = 5
+ // ApplicationPermissionsRequiredVUnknownFutureValue undocumented
+ ApplicationPermissionsRequiredVUnknownFutureValue ApplicationPermissionsRequired = 127
+)
+
+// ApplicationPermissionsRequiredPUnknown returns a pointer to ApplicationPermissionsRequiredVUnknown
+func ApplicationPermissionsRequiredPUnknown() *ApplicationPermissionsRequired {
+ v := ApplicationPermissionsRequiredVUnknown
+ return &v
+}
+
+// ApplicationPermissionsRequiredPAnonymous returns a pointer to ApplicationPermissionsRequiredVAnonymous
+func ApplicationPermissionsRequiredPAnonymous() *ApplicationPermissionsRequired {
+ v := ApplicationPermissionsRequiredVAnonymous
+ return &v
+}
+
+// ApplicationPermissionsRequiredPGuest returns a pointer to ApplicationPermissionsRequiredVGuest
+func ApplicationPermissionsRequiredPGuest() *ApplicationPermissionsRequired {
+ v := ApplicationPermissionsRequiredVGuest
+ return &v
+}
+
+// ApplicationPermissionsRequiredPUser returns a pointer to ApplicationPermissionsRequiredVUser
+func ApplicationPermissionsRequiredPUser() *ApplicationPermissionsRequired {
+ v := ApplicationPermissionsRequiredVUser
+ return &v
+}
+
+// ApplicationPermissionsRequiredPAdministrator returns a pointer to ApplicationPermissionsRequiredVAdministrator
+func ApplicationPermissionsRequiredPAdministrator() *ApplicationPermissionsRequired {
+ v := ApplicationPermissionsRequiredVAdministrator
+ return &v
+}
+
+// ApplicationPermissionsRequiredPSystem returns a pointer to ApplicationPermissionsRequiredVSystem
+func ApplicationPermissionsRequiredPSystem() *ApplicationPermissionsRequired {
+ v := ApplicationPermissionsRequiredVSystem
+ return &v
+}
+
+// ApplicationPermissionsRequiredPUnknownFutureValue returns a pointer to ApplicationPermissionsRequiredVUnknownFutureValue
+func ApplicationPermissionsRequiredPUnknownFutureValue() *ApplicationPermissionsRequired {
+ v := ApplicationPermissionsRequiredVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationRequest.go
new file mode 100644
index 00000000..c6741427
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationRequest.go
@@ -0,0 +1,341 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ApplicationRequestBuilder is request builder for Application
+type ApplicationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ApplicationRequest
+func (b *ApplicationRequestBuilder) Request() *ApplicationRequest {
+ return &ApplicationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ApplicationRequest is request for Application
+type ApplicationRequest struct{ BaseRequest }
+
+// Get performs GET request for Application
+func (r *ApplicationRequest) Get(ctx context.Context) (resObj *Application, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Application
+func (r *ApplicationRequest) Update(ctx context.Context, reqObj *Application) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Application
+func (r *ApplicationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// CreatedOnBehalfOf is navigation property
+func (b *ApplicationRequestBuilder) CreatedOnBehalfOf() *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/createdOnBehalfOf"
+ return bb
+}
+
+// ExtensionProperties returns request builder for ExtensionProperty collection
+func (b *ApplicationRequestBuilder) ExtensionProperties() *ApplicationExtensionPropertiesCollectionRequestBuilder {
+ bb := &ApplicationExtensionPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensionProperties"
+ return bb
+}
+
+// ApplicationExtensionPropertiesCollectionRequestBuilder is request builder for ExtensionProperty collection
+type ApplicationExtensionPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ExtensionProperty collection
+func (b *ApplicationExtensionPropertiesCollectionRequestBuilder) Request() *ApplicationExtensionPropertiesCollectionRequest {
+ return &ApplicationExtensionPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ExtensionProperty item
+func (b *ApplicationExtensionPropertiesCollectionRequestBuilder) ID(id string) *ExtensionPropertyRequestBuilder {
+ bb := &ExtensionPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ApplicationExtensionPropertiesCollectionRequest is request for ExtensionProperty collection
+type ApplicationExtensionPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ExtensionProperty collection
+func (r *ApplicationExtensionPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ExtensionProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ExtensionProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ExtensionProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ExtensionProperty collection
+func (r *ApplicationExtensionPropertiesCollectionRequest) Get(ctx context.Context) ([]ExtensionProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ExtensionProperty collection
+func (r *ApplicationExtensionPropertiesCollectionRequest) Add(ctx context.Context, reqObj *ExtensionProperty) (resObj *ExtensionProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Owners returns request builder for DirectoryObject collection
+func (b *ApplicationRequestBuilder) Owners() *ApplicationOwnersCollectionRequestBuilder {
+ bb := &ApplicationOwnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/owners"
+ return bb
+}
+
+// ApplicationOwnersCollectionRequestBuilder is request builder for DirectoryObject collection
+type ApplicationOwnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *ApplicationOwnersCollectionRequestBuilder) Request() *ApplicationOwnersCollectionRequest {
+ return &ApplicationOwnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *ApplicationOwnersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ApplicationOwnersCollectionRequest is request for DirectoryObject collection
+type ApplicationOwnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *ApplicationOwnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ApplicationOwnersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *ApplicationOwnersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Policies returns request builder for DirectoryObject collection
+func (b *ApplicationRequestBuilder) Policies() *ApplicationPoliciesCollectionRequestBuilder {
+ bb := &ApplicationPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policies"
+ return bb
+}
+
+// ApplicationPoliciesCollectionRequestBuilder is request builder for DirectoryObject collection
+type ApplicationPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *ApplicationPoliciesCollectionRequestBuilder) Request() *ApplicationPoliciesCollectionRequest {
+ return &ApplicationPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *ApplicationPoliciesCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ApplicationPoliciesCollectionRequest is request for DirectoryObject collection
+type ApplicationPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *ApplicationPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ApplicationPoliciesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *ApplicationPoliciesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Synchronization is navigation property
+func (b *ApplicationRequestBuilder) Synchronization() *SynchronizationRequestBuilder {
+ bb := &SynchronizationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/synchronization"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationServicePrincipalModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationServicePrincipalModel.go
new file mode 100644
index 00000000..7acb785f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationServicePrincipalModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationServicePrincipal undocumented
+type ApplicationServicePrincipal struct {
+ // Object is the base model of ApplicationServicePrincipal
+ Object
+ // Application undocumented
+ Application *Application `json:"application,omitempty"`
+ // ServicePrincipal undocumented
+ ServicePrincipal *ServicePrincipal `json:"servicePrincipal,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationSignInDetailedSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationSignInDetailedSummaryModel.go
new file mode 100644
index 00000000..c5f5e350
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationSignInDetailedSummaryModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ApplicationSignInDetailedSummary undocumented
+type ApplicationSignInDetailedSummary struct {
+ // Entity is the base model of ApplicationSignInDetailedSummary
+ Entity
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // AppDisplayName undocumented
+ AppDisplayName *string `json:"appDisplayName,omitempty"`
+ // Status undocumented
+ Status *SignInStatus `json:"status,omitempty"`
+ // SignInCount undocumented
+ SignInCount *int `json:"signInCount,omitempty"`
+ // AggregatedEventDateTime undocumented
+ AggregatedEventDateTime *time.Time `json:"aggregatedEventDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationSignInDetailedSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationSignInDetailedSummaryRequest.go
new file mode 100644
index 00000000..70e1a2ba
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationSignInDetailedSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ApplicationSignInDetailedSummaryRequestBuilder is request builder for ApplicationSignInDetailedSummary
+type ApplicationSignInDetailedSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ApplicationSignInDetailedSummaryRequest
+func (b *ApplicationSignInDetailedSummaryRequestBuilder) Request() *ApplicationSignInDetailedSummaryRequest {
+ return &ApplicationSignInDetailedSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ApplicationSignInDetailedSummaryRequest is request for ApplicationSignInDetailedSummary
+type ApplicationSignInDetailedSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for ApplicationSignInDetailedSummary
+func (r *ApplicationSignInDetailedSummaryRequest) Get(ctx context.Context) (resObj *ApplicationSignInDetailedSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ApplicationSignInDetailedSummary
+func (r *ApplicationSignInDetailedSummaryRequest) Update(ctx context.Context, reqObj *ApplicationSignInDetailedSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ApplicationSignInDetailedSummary
+func (r *ApplicationSignInDetailedSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationSignInSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationSignInSummaryModel.go
new file mode 100644
index 00000000..d883f038
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationSignInSummaryModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationSignInSummary undocumented
+type ApplicationSignInSummary struct {
+ // Entity is the base model of ApplicationSignInSummary
+ Entity
+ // AppDisplayName undocumented
+ AppDisplayName *string `json:"appDisplayName,omitempty"`
+ // SuccessfulSignInCount undocumented
+ SuccessfulSignInCount *int `json:"successfulSignInCount,omitempty"`
+ // FailedSignInCount undocumented
+ FailedSignInCount *int `json:"failedSignInCount,omitempty"`
+ // SuccessPercentage undocumented
+ SuccessPercentage *float64 `json:"successPercentage,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationTemplateAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationTemplateAction.go
new file mode 100644
index 00000000..2dcc1cfb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationTemplateAction.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ApplicationTemplateInstantiateRequestParameter undocumented
+type ApplicationTemplateInstantiateRequestParameter struct {
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+//
+type ApplicationTemplateInstantiateRequestBuilder struct{ BaseRequestBuilder }
+
+// Instantiate action undocumented
+func (b *ApplicationTemplateRequestBuilder) Instantiate(reqObj *ApplicationTemplateInstantiateRequestParameter) *ApplicationTemplateInstantiateRequestBuilder {
+ bb := &ApplicationTemplateInstantiateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/instantiate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ApplicationTemplateInstantiateRequest struct{ BaseRequest }
+
+//
+func (b *ApplicationTemplateInstantiateRequestBuilder) Request() *ApplicationTemplateInstantiateRequest {
+ return &ApplicationTemplateInstantiateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ApplicationTemplateInstantiateRequest) Post(ctx context.Context) (resObj *ApplicationServicePrincipal, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationTemplateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationTemplateModel.go
new file mode 100644
index 00000000..8b5e8846
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationTemplateModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationTemplate undocumented
+type ApplicationTemplate struct {
+ // Entity is the base model of ApplicationTemplate
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // HomePageURL undocumented
+ HomePageURL *string `json:"homePageUrl,omitempty"`
+ // SupportedSingleSignOnModes undocumented
+ SupportedSingleSignOnModes []string `json:"supportedSingleSignOnModes,omitempty"`
+ // SupportedProvisioningTypes undocumented
+ SupportedProvisioningTypes []string `json:"supportedProvisioningTypes,omitempty"`
+ // LogoURL undocumented
+ LogoURL *string `json:"logoUrl,omitempty"`
+ // Categories undocumented
+ Categories []string `json:"categories,omitempty"`
+ // Publisher undocumented
+ Publisher *string `json:"publisher,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationTemplateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationTemplateRequest.go
new file mode 100644
index 00000000..cca7a32c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationTemplateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ApplicationTemplateRequestBuilder is request builder for ApplicationTemplate
+type ApplicationTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ApplicationTemplateRequest
+func (b *ApplicationTemplateRequestBuilder) Request() *ApplicationTemplateRequest {
+ return &ApplicationTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ApplicationTemplateRequest is request for ApplicationTemplate
+type ApplicationTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for ApplicationTemplate
+func (r *ApplicationTemplateRequest) Get(ctx context.Context) (resObj *ApplicationTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ApplicationTemplate
+func (r *ApplicationTemplateRequest) Update(ctx context.Context, reqObj *ApplicationTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ApplicationTemplate
+func (r *ApplicationTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationTypeEnum.go
new file mode 100644
index 00000000..fcb6fce8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplicationTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationType undocumented
+type ApplicationType int
+
+const (
+ // ApplicationTypeVUniversal undocumented
+ ApplicationTypeVUniversal ApplicationType = 1
+ // ApplicationTypeVDesktop undocumented
+ ApplicationTypeVDesktop ApplicationType = 2
+)
+
+// ApplicationTypePUniversal returns a pointer to ApplicationTypeVUniversal
+func ApplicationTypePUniversal() *ApplicationType {
+ v := ApplicationTypeVUniversal
+ return &v
+}
+
+// ApplicationTypePDesktop returns a pointer to ApplicationTypeVDesktop
+func ApplicationTypePDesktop() *ApplicationType {
+ v := ApplicationTypeVDesktop
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppliedConditionalAccessPolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppliedConditionalAccessPolicyModel.go
new file mode 100644
index 00000000..130f3072
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppliedConditionalAccessPolicyModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppliedConditionalAccessPolicy undocumented
+type AppliedConditionalAccessPolicy struct {
+ // Object is the base model of AppliedConditionalAccessPolicy
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // EnforcedGrantControls undocumented
+ EnforcedGrantControls []string `json:"enforcedGrantControls,omitempty"`
+ // EnforcedSessionControls undocumented
+ EnforcedSessionControls []string `json:"enforcedSessionControls,omitempty"`
+ // ConditionsSatisfied undocumented
+ ConditionsSatisfied *ConditionalAccessConditions `json:"conditionsSatisfied,omitempty"`
+ // ConditionsNotSatisfied undocumented
+ ConditionsNotSatisfied *ConditionalAccessConditions `json:"conditionsNotSatisfied,omitempty"`
+ // Result undocumented
+ Result *AppliedConditionalAccessPolicyResult `json:"result,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AppliedConditionalAccessPolicyResultEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AppliedConditionalAccessPolicyResultEnum.go
new file mode 100644
index 00000000..6166c312
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AppliedConditionalAccessPolicyResultEnum.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppliedConditionalAccessPolicyResult undocumented
+type AppliedConditionalAccessPolicyResult int
+
+const (
+ // AppliedConditionalAccessPolicyResultVSuccess undocumented
+ AppliedConditionalAccessPolicyResultVSuccess AppliedConditionalAccessPolicyResult = 0
+ // AppliedConditionalAccessPolicyResultVFailure undocumented
+ AppliedConditionalAccessPolicyResultVFailure AppliedConditionalAccessPolicyResult = 1
+ // AppliedConditionalAccessPolicyResultVNotApplied undocumented
+ AppliedConditionalAccessPolicyResultVNotApplied AppliedConditionalAccessPolicyResult = 2
+ // AppliedConditionalAccessPolicyResultVNotEnabled undocumented
+ AppliedConditionalAccessPolicyResultVNotEnabled AppliedConditionalAccessPolicyResult = 3
+ // AppliedConditionalAccessPolicyResultVUnknown undocumented
+ AppliedConditionalAccessPolicyResultVUnknown AppliedConditionalAccessPolicyResult = 4
+ // AppliedConditionalAccessPolicyResultVUnknownFutureValue undocumented
+ AppliedConditionalAccessPolicyResultVUnknownFutureValue AppliedConditionalAccessPolicyResult = 5
+ // AppliedConditionalAccessPolicyResultVReportOnlySuccess undocumented
+ AppliedConditionalAccessPolicyResultVReportOnlySuccess AppliedConditionalAccessPolicyResult = 6
+ // AppliedConditionalAccessPolicyResultVReportOnlyFailure undocumented
+ AppliedConditionalAccessPolicyResultVReportOnlyFailure AppliedConditionalAccessPolicyResult = 7
+ // AppliedConditionalAccessPolicyResultVReportOnlyNotApplied undocumented
+ AppliedConditionalAccessPolicyResultVReportOnlyNotApplied AppliedConditionalAccessPolicyResult = 8
+ // AppliedConditionalAccessPolicyResultVReportOnlyInterrupted undocumented
+ AppliedConditionalAccessPolicyResultVReportOnlyInterrupted AppliedConditionalAccessPolicyResult = 9
+)
+
+// AppliedConditionalAccessPolicyResultPSuccess returns a pointer to AppliedConditionalAccessPolicyResultVSuccess
+func AppliedConditionalAccessPolicyResultPSuccess() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVSuccess
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPFailure returns a pointer to AppliedConditionalAccessPolicyResultVFailure
+func AppliedConditionalAccessPolicyResultPFailure() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVFailure
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPNotApplied returns a pointer to AppliedConditionalAccessPolicyResultVNotApplied
+func AppliedConditionalAccessPolicyResultPNotApplied() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVNotApplied
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPNotEnabled returns a pointer to AppliedConditionalAccessPolicyResultVNotEnabled
+func AppliedConditionalAccessPolicyResultPNotEnabled() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVNotEnabled
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPUnknown returns a pointer to AppliedConditionalAccessPolicyResultVUnknown
+func AppliedConditionalAccessPolicyResultPUnknown() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVUnknown
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPUnknownFutureValue returns a pointer to AppliedConditionalAccessPolicyResultVUnknownFutureValue
+func AppliedConditionalAccessPolicyResultPUnknownFutureValue() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVUnknownFutureValue
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPReportOnlySuccess returns a pointer to AppliedConditionalAccessPolicyResultVReportOnlySuccess
+func AppliedConditionalAccessPolicyResultPReportOnlySuccess() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVReportOnlySuccess
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPReportOnlyFailure returns a pointer to AppliedConditionalAccessPolicyResultVReportOnlyFailure
+func AppliedConditionalAccessPolicyResultPReportOnlyFailure() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVReportOnlyFailure
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPReportOnlyNotApplied returns a pointer to AppliedConditionalAccessPolicyResultVReportOnlyNotApplied
+func AppliedConditionalAccessPolicyResultPReportOnlyNotApplied() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVReportOnlyNotApplied
+ return &v
+}
+
+// AppliedConditionalAccessPolicyResultPReportOnlyInterrupted returns a pointer to AppliedConditionalAccessPolicyResultVReportOnlyInterrupted
+func AppliedConditionalAccessPolicyResultPReportOnlyInterrupted() *AppliedConditionalAccessPolicyResult {
+ v := AppliedConditionalAccessPolicyResultVReportOnlyInterrupted
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApplyLabelActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApplyLabelActionModel.go
new file mode 100644
index 00000000..8db1902a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApplyLabelActionModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplyLabelAction undocumented
+type ApplyLabelAction struct {
+ // InformationProtectionAction is the base model of ApplyLabelAction
+ InformationProtectionAction
+ // Label undocumented
+ Label *LabelDetails `json:"label,omitempty"`
+ // ResponsibleSensitiveTypeIDs undocumented
+ ResponsibleSensitiveTypeIDs []UUID `json:"responsibleSensitiveTypeIds,omitempty"`
+ // Actions undocumented
+ Actions []InformationProtectionAction `json:"actions,omitempty"`
+ // ActionSource undocumented
+ ActionSource *ActionSource `json:"actionSource,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApprovalStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApprovalStateEnum.go
new file mode 100644
index 00000000..a564fb68
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApprovalStateEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApprovalState undocumented
+type ApprovalState int
+
+const (
+ // ApprovalStateVPending undocumented
+ ApprovalStateVPending ApprovalState = 0
+ // ApprovalStateVApproved undocumented
+ ApprovalStateVApproved ApprovalState = 1
+ // ApprovalStateVDenied undocumented
+ ApprovalStateVDenied ApprovalState = 2
+ // ApprovalStateVAborted undocumented
+ ApprovalStateVAborted ApprovalState = 3
+ // ApprovalStateVCanceled undocumented
+ ApprovalStateVCanceled ApprovalState = 4
+)
+
+// ApprovalStatePPending returns a pointer to ApprovalStateVPending
+func ApprovalStatePPending() *ApprovalState {
+ v := ApprovalStateVPending
+ return &v
+}
+
+// ApprovalStatePApproved returns a pointer to ApprovalStateVApproved
+func ApprovalStatePApproved() *ApprovalState {
+ v := ApprovalStateVApproved
+ return &v
+}
+
+// ApprovalStatePDenied returns a pointer to ApprovalStateVDenied
+func ApprovalStatePDenied() *ApprovalState {
+ v := ApprovalStateVDenied
+ return &v
+}
+
+// ApprovalStatePAborted returns a pointer to ApprovalStateVAborted
+func ApprovalStatePAborted() *ApprovalState {
+ v := ApprovalStateVAborted
+ return &v
+}
+
+// ApprovalStatePCanceled returns a pointer to ApprovalStateVCanceled
+func ApprovalStatePCanceled() *ApprovalState {
+ v := ApprovalStateVCanceled
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApprovalWorkflowProviderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApprovalWorkflowProviderModel.go
new file mode 100644
index 00000000..190198d2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApprovalWorkflowProviderModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApprovalWorkflowProvider undocumented
+type ApprovalWorkflowProvider struct {
+ // Entity is the base model of ApprovalWorkflowProvider
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // BusinessFlows undocumented
+ BusinessFlows []BusinessFlow `json:"businessFlows,omitempty"`
+ // PolicyTemplates undocumented
+ PolicyTemplates []GovernancePolicyTemplate `json:"policyTemplates,omitempty"`
+ // Requests undocumented
+ Requests []RequestObject `json:"requests,omitempty"`
+ // RequestsAwaitingMyDecision undocumented
+ RequestsAwaitingMyDecision []RequestObject `json:"requestsAwaitingMyDecision,omitempty"`
+ // BusinessFlowsWithRequestsAwaitingMyDecision undocumented
+ BusinessFlowsWithRequestsAwaitingMyDecision []BusinessFlow `json:"businessFlowsWithRequestsAwaitingMyDecision,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ApprovalWorkflowProviderRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ApprovalWorkflowProviderRequest.go
new file mode 100644
index 00000000..2192c6ee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ApprovalWorkflowProviderRequest.go
@@ -0,0 +1,515 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ApprovalWorkflowProviderRequestBuilder is request builder for ApprovalWorkflowProvider
+type ApprovalWorkflowProviderRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ApprovalWorkflowProviderRequest
+func (b *ApprovalWorkflowProviderRequestBuilder) Request() *ApprovalWorkflowProviderRequest {
+ return &ApprovalWorkflowProviderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ApprovalWorkflowProviderRequest is request for ApprovalWorkflowProvider
+type ApprovalWorkflowProviderRequest struct{ BaseRequest }
+
+// Get performs GET request for ApprovalWorkflowProvider
+func (r *ApprovalWorkflowProviderRequest) Get(ctx context.Context) (resObj *ApprovalWorkflowProvider, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ApprovalWorkflowProvider
+func (r *ApprovalWorkflowProviderRequest) Update(ctx context.Context, reqObj *ApprovalWorkflowProvider) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ApprovalWorkflowProvider
+func (r *ApprovalWorkflowProviderRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// BusinessFlows returns request builder for BusinessFlow collection
+func (b *ApprovalWorkflowProviderRequestBuilder) BusinessFlows() *ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder {
+ bb := &ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/businessFlows"
+ return bb
+}
+
+// ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder is request builder for BusinessFlow collection
+type ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BusinessFlow collection
+func (b *ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder) Request() *ApprovalWorkflowProviderBusinessFlowsCollectionRequest {
+ return &ApprovalWorkflowProviderBusinessFlowsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BusinessFlow item
+func (b *ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder) ID(id string) *BusinessFlowRequestBuilder {
+ bb := &BusinessFlowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ApprovalWorkflowProviderBusinessFlowsCollectionRequest is request for BusinessFlow collection
+type ApprovalWorkflowProviderBusinessFlowsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BusinessFlow collection
+func (r *ApprovalWorkflowProviderBusinessFlowsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]BusinessFlow, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BusinessFlow
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BusinessFlow
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BusinessFlow collection
+func (r *ApprovalWorkflowProviderBusinessFlowsCollectionRequest) Get(ctx context.Context) ([]BusinessFlow, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for BusinessFlow collection
+func (r *ApprovalWorkflowProviderBusinessFlowsCollectionRequest) Add(ctx context.Context, reqObj *BusinessFlow) (resObj *BusinessFlow, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// BusinessFlowsWithRequestsAwaitingMyDecision returns request builder for BusinessFlow collection
+func (b *ApprovalWorkflowProviderRequestBuilder) BusinessFlowsWithRequestsAwaitingMyDecision() *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder {
+ bb := &ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/businessFlowsWithRequestsAwaitingMyDecision"
+ return bb
+}
+
+// ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder is request builder for BusinessFlow collection
+type ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BusinessFlow collection
+func (b *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder) Request() *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest {
+ return &ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BusinessFlow item
+func (b *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder) ID(id string) *BusinessFlowRequestBuilder {
+ bb := &BusinessFlowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest is request for BusinessFlow collection
+type ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BusinessFlow collection
+func (r *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]BusinessFlow, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BusinessFlow
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BusinessFlow
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BusinessFlow collection
+func (r *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest) Get(ctx context.Context) ([]BusinessFlow, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for BusinessFlow collection
+func (r *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest) Add(ctx context.Context, reqObj *BusinessFlow) (resObj *BusinessFlow, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PolicyTemplates returns request builder for GovernancePolicyTemplate collection
+func (b *ApprovalWorkflowProviderRequestBuilder) PolicyTemplates() *ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder {
+ bb := &ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policyTemplates"
+ return bb
+}
+
+// ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder is request builder for GovernancePolicyTemplate collection
+type ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernancePolicyTemplate collection
+func (b *ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder) Request() *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest {
+ return &ApprovalWorkflowProviderPolicyTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernancePolicyTemplate item
+func (b *ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder) ID(id string) *GovernancePolicyTemplateRequestBuilder {
+ bb := &GovernancePolicyTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ApprovalWorkflowProviderPolicyTemplatesCollectionRequest is request for GovernancePolicyTemplate collection
+type ApprovalWorkflowProviderPolicyTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernancePolicyTemplate collection
+func (r *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GovernancePolicyTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernancePolicyTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernancePolicyTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernancePolicyTemplate collection
+func (r *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest) Get(ctx context.Context) ([]GovernancePolicyTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GovernancePolicyTemplate collection
+func (r *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest) Add(ctx context.Context, reqObj *GovernancePolicyTemplate) (resObj *GovernancePolicyTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Requests returns request builder for RequestObject collection
+func (b *ApprovalWorkflowProviderRequestBuilder) Requests() *ApprovalWorkflowProviderRequestsCollectionRequestBuilder {
+ bb := &ApprovalWorkflowProviderRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/requests"
+ return bb
+}
+
+// ApprovalWorkflowProviderRequestsCollectionRequestBuilder is request builder for RequestObject collection
+type ApprovalWorkflowProviderRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RequestObject collection
+func (b *ApprovalWorkflowProviderRequestsCollectionRequestBuilder) Request() *ApprovalWorkflowProviderRequestsCollectionRequest {
+ return &ApprovalWorkflowProviderRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RequestObject item
+func (b *ApprovalWorkflowProviderRequestsCollectionRequestBuilder) ID(id string) *RequestObjectRequestBuilder {
+ bb := &RequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ApprovalWorkflowProviderRequestsCollectionRequest is request for RequestObject collection
+type ApprovalWorkflowProviderRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RequestObject collection
+func (r *ApprovalWorkflowProviderRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]RequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RequestObject collection
+func (r *ApprovalWorkflowProviderRequestsCollectionRequest) Get(ctx context.Context) ([]RequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for RequestObject collection
+func (r *ApprovalWorkflowProviderRequestsCollectionRequest) Add(ctx context.Context, reqObj *RequestObject) (resObj *RequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RequestsAwaitingMyDecision returns request builder for RequestObject collection
+func (b *ApprovalWorkflowProviderRequestBuilder) RequestsAwaitingMyDecision() *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder {
+ bb := &ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/requestsAwaitingMyDecision"
+ return bb
+}
+
+// ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder is request builder for RequestObject collection
+type ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RequestObject collection
+func (b *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder) Request() *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest {
+ return &ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RequestObject item
+func (b *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder) ID(id string) *RequestObjectRequestBuilder {
+ bb := &RequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest is request for RequestObject collection
+type ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RequestObject collection
+func (r *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]RequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RequestObject collection
+func (r *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest) Get(ctx context.Context) ([]RequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for RequestObject collection
+func (r *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest) Add(ctx context.Context, reqObj *RequestObject) (resObj *RequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AssignedLabelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AssignedLabelModel.go
new file mode 100644
index 00000000..301701af
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AssignedLabelModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AssignedLabel undocumented
+type AssignedLabel struct {
+ // Object is the base model of AssignedLabel
+ Object
+ // LabelID undocumented
+ LabelID *string `json:"labelId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AssignedLicenseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AssignedLicenseModel.go
new file mode 100644
index 00000000..ba90423e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AssignedLicenseModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AssignedLicense undocumented
+type AssignedLicense struct {
+ // Object is the base model of AssignedLicense
+ Object
+ // DisabledPlans undocumented
+ DisabledPlans []UUID `json:"disabledPlans,omitempty"`
+ // SKUID undocumented
+ SKUID *UUID `json:"skuId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AssignedPlanModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AssignedPlanModel.go
new file mode 100644
index 00000000..1d4ab7fb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AssignedPlanModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AssignedPlan undocumented
+type AssignedPlan struct {
+ // Object is the base model of AssignedPlan
+ Object
+ // AssignedDateTime undocumented
+ AssignedDateTime *time.Time `json:"assignedDateTime,omitempty"`
+ // CapabilityStatus undocumented
+ CapabilityStatus *string `json:"capabilityStatus,omitempty"`
+ // Service undocumented
+ Service *string `json:"service,omitempty"`
+ // ServicePlanID undocumented
+ ServicePlanID *UUID `json:"servicePlanId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AssignmentMethodEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AssignmentMethodEnum.go
new file mode 100644
index 00000000..d1cd2144
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AssignmentMethodEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AssignmentMethod undocumented
+type AssignmentMethod int
+
+const (
+ // AssignmentMethodVStandard undocumented
+ AssignmentMethodVStandard AssignmentMethod = 0
+ // AssignmentMethodVPrivileged undocumented
+ AssignmentMethodVPrivileged AssignmentMethod = 1
+ // AssignmentMethodVAuto undocumented
+ AssignmentMethodVAuto AssignmentMethod = 2
+)
+
+// AssignmentMethodPStandard returns a pointer to AssignmentMethodVStandard
+func AssignmentMethodPStandard() *AssignmentMethod {
+ v := AssignmentMethodVStandard
+ return &v
+}
+
+// AssignmentMethodPPrivileged returns a pointer to AssignmentMethodVPrivileged
+func AssignmentMethodPPrivileged() *AssignmentMethod {
+ v := AssignmentMethodVPrivileged
+ return &v
+}
+
+// AssignmentMethodPAuto returns a pointer to AssignmentMethodVAuto
+func AssignmentMethodPAuto() *AssignmentMethod {
+ v := AssignmentMethodVAuto
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttachmentAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttachmentAction.go
new file mode 100644
index 00000000..61810ac7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttachmentAction.go
@@ -0,0 +1,62 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AttachmentCollectionCreateUploadSessionRequestParameter undocumented
+type AttachmentCollectionCreateUploadSessionRequestParameter struct {
+ // AttachmentItem undocumented
+ AttachmentItem *AttachmentItem `json:"AttachmentItem,omitempty"`
+}
+
+//
+type AttachmentCollectionCreateUploadSessionRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateUploadSession action undocumented
+func (b *EventAttachmentsCollectionRequestBuilder) CreateUploadSession(reqObj *AttachmentCollectionCreateUploadSessionRequestParameter) *AttachmentCollectionCreateUploadSessionRequestBuilder {
+ bb := &AttachmentCollectionCreateUploadSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createUploadSession"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// CreateUploadSession action undocumented
+func (b *MessageAttachmentsCollectionRequestBuilder) CreateUploadSession(reqObj *AttachmentCollectionCreateUploadSessionRequestParameter) *AttachmentCollectionCreateUploadSessionRequestBuilder {
+ bb := &AttachmentCollectionCreateUploadSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createUploadSession"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// CreateUploadSession action undocumented
+func (b *OutlookTaskAttachmentsCollectionRequestBuilder) CreateUploadSession(reqObj *AttachmentCollectionCreateUploadSessionRequestParameter) *AttachmentCollectionCreateUploadSessionRequestBuilder {
+ bb := &AttachmentCollectionCreateUploadSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createUploadSession"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// CreateUploadSession action undocumented
+func (b *PostAttachmentsCollectionRequestBuilder) CreateUploadSession(reqObj *AttachmentCollectionCreateUploadSessionRequestParameter) *AttachmentCollectionCreateUploadSessionRequestBuilder {
+ bb := &AttachmentCollectionCreateUploadSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createUploadSession"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AttachmentCollectionCreateUploadSessionRequest struct{ BaseRequest }
+
+//
+func (b *AttachmentCollectionCreateUploadSessionRequestBuilder) Request() *AttachmentCollectionCreateUploadSessionRequest {
+ return &AttachmentCollectionCreateUploadSessionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AttachmentCollectionCreateUploadSessionRequest) Post(ctx context.Context) (resObj *UploadSession, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttachmentItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttachmentItemModel.go
new file mode 100644
index 00000000..806a5a51
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttachmentItemModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttachmentItem undocumented
+type AttachmentItem struct {
+ // Object is the base model of AttachmentItem
+ Object
+ // AttachmentType undocumented
+ AttachmentType *AttachmentType `json:"attachmentType,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Size undocumented
+ Size *int `json:"size,omitempty"`
+ // ContentType undocumented
+ ContentType *string `json:"contentType,omitempty"`
+ // IsInline undocumented
+ IsInline *bool `json:"isInline,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttachmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttachmentModel.go
new file mode 100644
index 00000000..58048802
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttachmentModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Attachment undocumented
+type Attachment struct {
+ // Entity is the base model of Attachment
+ Entity
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ContentType undocumented
+ ContentType *string `json:"contentType,omitempty"`
+ // Size undocumented
+ Size *int `json:"size,omitempty"`
+ // IsInline undocumented
+ IsInline *bool `json:"isInline,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttachmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttachmentRequest.go
new file mode 100644
index 00000000..8e81bdfb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttachmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AttachmentRequestBuilder is request builder for Attachment
+type AttachmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AttachmentRequest
+func (b *AttachmentRequestBuilder) Request() *AttachmentRequest {
+ return &AttachmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AttachmentRequest is request for Attachment
+type AttachmentRequest struct{ BaseRequest }
+
+// Get performs GET request for Attachment
+func (r *AttachmentRequest) Get(ctx context.Context) (resObj *Attachment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Attachment
+func (r *AttachmentRequest) Update(ctx context.Context, reqObj *Attachment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Attachment
+func (r *AttachmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttachmentTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttachmentTypeEnum.go
new file mode 100644
index 00000000..e7f6d07f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttachmentTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttachmentType undocumented
+type AttachmentType int
+
+const (
+ // AttachmentTypeVFile undocumented
+ AttachmentTypeVFile AttachmentType = 0
+ // AttachmentTypeVItem undocumented
+ AttachmentTypeVItem AttachmentType = 1
+ // AttachmentTypeVReference undocumented
+ AttachmentTypeVReference AttachmentType = 2
+)
+
+// AttachmentTypePFile returns a pointer to AttachmentTypeVFile
+func AttachmentTypePFile() *AttachmentType {
+ v := AttachmentTypeVFile
+ return &v
+}
+
+// AttachmentTypePItem returns a pointer to AttachmentTypeVItem
+func AttachmentTypePItem() *AttachmentType {
+ v := AttachmentTypeVItem
+ return &v
+}
+
+// AttachmentTypePReference returns a pointer to AttachmentTypeVReference
+func AttachmentTypePReference() *AttachmentType {
+ v := AttachmentTypeVReference
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttendeeAvailabilityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttendeeAvailabilityModel.go
new file mode 100644
index 00000000..f1bd26ef
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttendeeAvailabilityModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttendeeAvailability undocumented
+type AttendeeAvailability struct {
+ // Object is the base model of AttendeeAvailability
+ Object
+ // Attendee undocumented
+ Attendee *AttendeeBase `json:"attendee,omitempty"`
+ // Availability undocumented
+ Availability *FreeBusyStatus `json:"availability,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttendeeBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttendeeBaseModel.go
new file mode 100644
index 00000000..f0521818
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttendeeBaseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttendeeBase undocumented
+type AttendeeBase struct {
+ // Recipient is the base model of AttendeeBase
+ Recipient
+ // Type undocumented
+ Type *AttendeeType `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttendeeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttendeeModel.go
new file mode 100644
index 00000000..bc2dbf08
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttendeeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Attendee undocumented
+type Attendee struct {
+ // AttendeeBase is the base model of Attendee
+ AttendeeBase
+ // Status undocumented
+ Status *ResponseStatus `json:"status,omitempty"`
+ // ProposedNewTime undocumented
+ ProposedNewTime *TimeSlot `json:"proposedNewTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttendeeTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttendeeTypeEnum.go
new file mode 100644
index 00000000..5a25f5c9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttendeeTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttendeeType undocumented
+type AttendeeType int
+
+const (
+ // AttendeeTypeVRequired undocumented
+ AttendeeTypeVRequired AttendeeType = 0
+ // AttendeeTypeVOptional undocumented
+ AttendeeTypeVOptional AttendeeType = 1
+ // AttendeeTypeVResource undocumented
+ AttendeeTypeVResource AttendeeType = 2
+)
+
+// AttendeeTypePRequired returns a pointer to AttendeeTypeVRequired
+func AttendeeTypePRequired() *AttendeeType {
+ v := AttendeeTypeVRequired
+ return &v
+}
+
+// AttendeeTypePOptional returns a pointer to AttendeeTypeVOptional
+func AttendeeTypePOptional() *AttendeeType {
+ v := AttendeeTypeVOptional
+ return &v
+}
+
+// AttendeeTypePResource returns a pointer to AttendeeTypeVResource
+func AttendeeTypePResource() *AttendeeType {
+ v := AttendeeTypeVResource
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttributeDefinitionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeDefinitionModel.go
new file mode 100644
index 00000000..0edc2b6e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeDefinitionModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttributeDefinition undocumented
+type AttributeDefinition struct {
+ // Object is the base model of AttributeDefinition
+ Object
+ // Anchor undocumented
+ Anchor *bool `json:"anchor,omitempty"`
+ // APIExpressions undocumented
+ APIExpressions []StringKeyStringValuePair `json:"apiExpressions,omitempty"`
+ // CaseExact undocumented
+ CaseExact *bool `json:"caseExact,omitempty"`
+ // DefaultValue undocumented
+ DefaultValue *string `json:"defaultValue,omitempty"`
+ // Metadata undocumented
+ Metadata []MetadataEntry `json:"metadata,omitempty"`
+ // Multivalued undocumented
+ Multivalued *bool `json:"multivalued,omitempty"`
+ // Mutability undocumented
+ Mutability *Mutability `json:"mutability,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Required undocumented
+ Required *bool `json:"required,omitempty"`
+ // ReferencedObjects undocumented
+ ReferencedObjects []ReferencedObject `json:"referencedObjects,omitempty"`
+ // Type undocumented
+ Type *AttributeType `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttributeFlowBehaviorEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeFlowBehaviorEnum.go
new file mode 100644
index 00000000..b7b98c13
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeFlowBehaviorEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttributeFlowBehavior undocumented
+type AttributeFlowBehavior int
+
+const (
+ // AttributeFlowBehaviorVFlowWhenChanged undocumented
+ AttributeFlowBehaviorVFlowWhenChanged AttributeFlowBehavior = 0
+ // AttributeFlowBehaviorVFlowAlways undocumented
+ AttributeFlowBehaviorVFlowAlways AttributeFlowBehavior = 1
+)
+
+// AttributeFlowBehaviorPFlowWhenChanged returns a pointer to AttributeFlowBehaviorVFlowWhenChanged
+func AttributeFlowBehaviorPFlowWhenChanged() *AttributeFlowBehavior {
+ v := AttributeFlowBehaviorVFlowWhenChanged
+ return &v
+}
+
+// AttributeFlowBehaviorPFlowAlways returns a pointer to AttributeFlowBehaviorVFlowAlways
+func AttributeFlowBehaviorPFlowAlways() *AttributeFlowBehavior {
+ v := AttributeFlowBehaviorVFlowAlways
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttributeFlowTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeFlowTypeEnum.go
new file mode 100644
index 00000000..8cbeeae7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeFlowTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttributeFlowType undocumented
+type AttributeFlowType int
+
+const (
+ // AttributeFlowTypeVAlways undocumented
+ AttributeFlowTypeVAlways AttributeFlowType = 0
+ // AttributeFlowTypeVObjectAddOnly undocumented
+ AttributeFlowTypeVObjectAddOnly AttributeFlowType = 1
+ // AttributeFlowTypeVMultiValueAddOnly undocumented
+ AttributeFlowTypeVMultiValueAddOnly AttributeFlowType = 2
+)
+
+// AttributeFlowTypePAlways returns a pointer to AttributeFlowTypeVAlways
+func AttributeFlowTypePAlways() *AttributeFlowType {
+ v := AttributeFlowTypeVAlways
+ return &v
+}
+
+// AttributeFlowTypePObjectAddOnly returns a pointer to AttributeFlowTypeVObjectAddOnly
+func AttributeFlowTypePObjectAddOnly() *AttributeFlowType {
+ v := AttributeFlowTypeVObjectAddOnly
+ return &v
+}
+
+// AttributeFlowTypePMultiValueAddOnly returns a pointer to AttributeFlowTypeVMultiValueAddOnly
+func AttributeFlowTypePMultiValueAddOnly() *AttributeFlowType {
+ v := AttributeFlowTypeVMultiValueAddOnly
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingFunctionSchemaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingFunctionSchemaModel.go
new file mode 100644
index 00000000..930bfd50
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingFunctionSchemaModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttributeMappingFunctionSchema undocumented
+type AttributeMappingFunctionSchema struct {
+ // Entity is the base model of AttributeMappingFunctionSchema
+ Entity
+ // Parameters undocumented
+ Parameters []AttributeMappingParameterSchema `json:"parameters,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingFunctionSchemaRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingFunctionSchemaRequest.go
new file mode 100644
index 00000000..d548f6ef
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingFunctionSchemaRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AttributeMappingFunctionSchemaRequestBuilder is request builder for AttributeMappingFunctionSchema
+type AttributeMappingFunctionSchemaRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AttributeMappingFunctionSchemaRequest
+func (b *AttributeMappingFunctionSchemaRequestBuilder) Request() *AttributeMappingFunctionSchemaRequest {
+ return &AttributeMappingFunctionSchemaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AttributeMappingFunctionSchemaRequest is request for AttributeMappingFunctionSchema
+type AttributeMappingFunctionSchemaRequest struct{ BaseRequest }
+
+// Get performs GET request for AttributeMappingFunctionSchema
+func (r *AttributeMappingFunctionSchemaRequest) Get(ctx context.Context) (resObj *AttributeMappingFunctionSchema, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AttributeMappingFunctionSchema
+func (r *AttributeMappingFunctionSchemaRequest) Update(ctx context.Context, reqObj *AttributeMappingFunctionSchema) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AttributeMappingFunctionSchema
+func (r *AttributeMappingFunctionSchemaRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingModel.go
new file mode 100644
index 00000000..01135c32
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttributeMapping undocumented
+type AttributeMapping struct {
+ // Object is the base model of AttributeMapping
+ Object
+ // DefaultValue undocumented
+ DefaultValue *string `json:"defaultValue,omitempty"`
+ // ExportMissingReferences undocumented
+ ExportMissingReferences *bool `json:"exportMissingReferences,omitempty"`
+ // FlowBehavior undocumented
+ FlowBehavior *AttributeFlowBehavior `json:"flowBehavior,omitempty"`
+ // FlowType undocumented
+ FlowType *AttributeFlowType `json:"flowType,omitempty"`
+ // MatchingPriority undocumented
+ MatchingPriority *int `json:"matchingPriority,omitempty"`
+ // Source undocumented
+ Source *AttributeMappingSource `json:"source,omitempty"`
+ // TargetAttributeName undocumented
+ TargetAttributeName *string `json:"targetAttributeName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingParameterSchemaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingParameterSchemaModel.go
new file mode 100644
index 00000000..08f0c05c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingParameterSchemaModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttributeMappingParameterSchema undocumented
+type AttributeMappingParameterSchema struct {
+ // Object is the base model of AttributeMappingParameterSchema
+ Object
+ // AllowMultipleOccurrences undocumented
+ AllowMultipleOccurrences *bool `json:"allowMultipleOccurrences,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Required undocumented
+ Required *bool `json:"required,omitempty"`
+ // Type undocumented
+ Type *AttributeType `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingSourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingSourceModel.go
new file mode 100644
index 00000000..e51ea712
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingSourceModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttributeMappingSource undocumented
+type AttributeMappingSource struct {
+ // Object is the base model of AttributeMappingSource
+ Object
+ // Expression undocumented
+ Expression *string `json:"expression,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Parameters undocumented
+ Parameters []StringKeyAttributeMappingSourceValuePair `json:"parameters,omitempty"`
+ // Type undocumented
+ Type *AttributeMappingSourceType `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingSourceTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingSourceTypeEnum.go
new file mode 100644
index 00000000..de0294d4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeMappingSourceTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttributeMappingSourceType undocumented
+type AttributeMappingSourceType int
+
+const (
+ // AttributeMappingSourceTypeVAttribute undocumented
+ AttributeMappingSourceTypeVAttribute AttributeMappingSourceType = 0
+ // AttributeMappingSourceTypeVConstant undocumented
+ AttributeMappingSourceTypeVConstant AttributeMappingSourceType = 1
+ // AttributeMappingSourceTypeVFunction undocumented
+ AttributeMappingSourceTypeVFunction AttributeMappingSourceType = 2
+)
+
+// AttributeMappingSourceTypePAttribute returns a pointer to AttributeMappingSourceTypeVAttribute
+func AttributeMappingSourceTypePAttribute() *AttributeMappingSourceType {
+ v := AttributeMappingSourceTypeVAttribute
+ return &v
+}
+
+// AttributeMappingSourceTypePConstant returns a pointer to AttributeMappingSourceTypeVConstant
+func AttributeMappingSourceTypePConstant() *AttributeMappingSourceType {
+ v := AttributeMappingSourceTypeVConstant
+ return &v
+}
+
+// AttributeMappingSourceTypePFunction returns a pointer to AttributeMappingSourceTypeVFunction
+func AttributeMappingSourceTypePFunction() *AttributeMappingSourceType {
+ v := AttributeMappingSourceTypeVFunction
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AttributeTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeTypeEnum.go
new file mode 100644
index 00000000..6e66658b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AttributeTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttributeType undocumented
+type AttributeType int
+
+const (
+ // AttributeTypeVDateTime undocumented
+ AttributeTypeVDateTime AttributeType = 5
+ // AttributeTypeVBoolean undocumented
+ AttributeTypeVBoolean AttributeType = 4
+ // AttributeTypeVBinary undocumented
+ AttributeTypeVBinary AttributeType = 3
+ // AttributeTypeVReference undocumented
+ AttributeTypeVReference AttributeType = 2
+ // AttributeTypeVInteger undocumented
+ AttributeTypeVInteger AttributeType = 1
+ // AttributeTypeVString undocumented
+ AttributeTypeVString AttributeType = 0
+)
+
+// AttributeTypePDateTime returns a pointer to AttributeTypeVDateTime
+func AttributeTypePDateTime() *AttributeType {
+ v := AttributeTypeVDateTime
+ return &v
+}
+
+// AttributeTypePBoolean returns a pointer to AttributeTypeVBoolean
+func AttributeTypePBoolean() *AttributeType {
+ v := AttributeTypeVBoolean
+ return &v
+}
+
+// AttributeTypePBinary returns a pointer to AttributeTypeVBinary
+func AttributeTypePBinary() *AttributeType {
+ v := AttributeTypeVBinary
+ return &v
+}
+
+// AttributeTypePReference returns a pointer to AttributeTypeVReference
+func AttributeTypePReference() *AttributeType {
+ v := AttributeTypeVReference
+ return &v
+}
+
+// AttributeTypePInteger returns a pointer to AttributeTypeVInteger
+func AttributeTypePInteger() *AttributeType {
+ v := AttributeTypeVInteger
+ return &v
+}
+
+// AttributeTypePString returns a pointer to AttributeTypeVString
+func AttributeTypePString() *AttributeType {
+ v := AttributeTypeVString
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AudioConferencingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AudioConferencingModel.go
new file mode 100644
index 00000000..e7d953f9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AudioConferencingModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AudioConferencing undocumented
+type AudioConferencing struct {
+ // Object is the base model of AudioConferencing
+ Object
+ // ConferenceID undocumented
+ ConferenceID *string `json:"conferenceId,omitempty"`
+ // TollNumber undocumented
+ TollNumber *string `json:"tollNumber,omitempty"`
+ // TollFreeNumber undocumented
+ TollFreeNumber *string `json:"tollFreeNumber,omitempty"`
+ // DialinURL undocumented
+ DialinURL *string `json:"dialinUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AudioModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AudioModel.go
new file mode 100644
index 00000000..e111c291
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AudioModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Audio undocumented
+type Audio struct {
+ // Object is the base model of Audio
+ Object
+ // Album undocumented
+ Album *string `json:"album,omitempty"`
+ // AlbumArtist undocumented
+ AlbumArtist *string `json:"albumArtist,omitempty"`
+ // Artist undocumented
+ Artist *string `json:"artist,omitempty"`
+ // Bitrate undocumented
+ Bitrate *int `json:"bitrate,omitempty"`
+ // Composers undocumented
+ Composers *string `json:"composers,omitempty"`
+ // Copyright undocumented
+ Copyright *string `json:"copyright,omitempty"`
+ // Disc undocumented
+ Disc *int `json:"disc,omitempty"`
+ // DiscCount undocumented
+ DiscCount *int `json:"discCount,omitempty"`
+ // Duration undocumented
+ Duration *int `json:"duration,omitempty"`
+ // Genre undocumented
+ Genre *string `json:"genre,omitempty"`
+ // HasDrm undocumented
+ HasDrm *bool `json:"hasDrm,omitempty"`
+ // IsVariableBitrate undocumented
+ IsVariableBitrate *bool `json:"isVariableBitrate,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // Track undocumented
+ Track *int `json:"track,omitempty"`
+ // TrackCount undocumented
+ TrackCount *int `json:"trackCount,omitempty"`
+ // Year undocumented
+ Year *int `json:"year,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AudioRoutingGroupModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AudioRoutingGroupModel.go
new file mode 100644
index 00000000..24c4be9c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AudioRoutingGroupModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AudioRoutingGroup undocumented
+type AudioRoutingGroup struct {
+ // Entity is the base model of AudioRoutingGroup
+ Entity
+ // RoutingMode undocumented
+ RoutingMode *RoutingMode `json:"routingMode,omitempty"`
+ // Sources undocumented
+ Sources []string `json:"sources,omitempty"`
+ // Receivers undocumented
+ Receivers []string `json:"receivers,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AudioRoutingGroupRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AudioRoutingGroupRequest.go
new file mode 100644
index 00000000..3c67b3a8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AudioRoutingGroupRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AudioRoutingGroupRequestBuilder is request builder for AudioRoutingGroup
+type AudioRoutingGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AudioRoutingGroupRequest
+func (b *AudioRoutingGroupRequestBuilder) Request() *AudioRoutingGroupRequest {
+ return &AudioRoutingGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AudioRoutingGroupRequest is request for AudioRoutingGroup
+type AudioRoutingGroupRequest struct{ BaseRequest }
+
+// Get performs GET request for AudioRoutingGroup
+func (r *AudioRoutingGroupRequest) Get(ctx context.Context) (resObj *AudioRoutingGroup, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AudioRoutingGroup
+func (r *AudioRoutingGroupRequest) Update(ctx context.Context, reqObj *AudioRoutingGroup) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AudioRoutingGroup
+func (r *AudioRoutingGroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AuditActivityInitiatorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AuditActivityInitiatorModel.go
new file mode 100644
index 00000000..0737c4c0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AuditActivityInitiatorModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AuditActivityInitiator undocumented
+type AuditActivityInitiator struct {
+ // Object is the base model of AuditActivityInitiator
+ Object
+ // User undocumented
+ User *UserIdentity `json:"user,omitempty"`
+ // App undocumented
+ App *AppIdentity `json:"app,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AuditActorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AuditActorModel.go
new file mode 100644
index 00000000..2d0d3782
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AuditActorModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AuditActor undocumented
+type AuditActor struct {
+ // Object is the base model of AuditActor
+ Object
+ // Type Actor Type.
+ Type *string `json:"type,omitempty"`
+ // UserPermissions List of user permissions when the audit was performed.
+ UserPermissions []string `json:"userPermissions,omitempty"`
+ // ApplicationID AAD Application Id.
+ ApplicationID *string `json:"applicationId,omitempty"`
+ // ApplicationDisplayName Name of the Application.
+ ApplicationDisplayName *string `json:"applicationDisplayName,omitempty"`
+ // UserPrincipalName User Principal Name (UPN).
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // ServicePrincipalName Service Principal Name (SPN).
+ ServicePrincipalName *string `json:"servicePrincipalName,omitempty"`
+ // IPAddress IPAddress.
+ IPAddress *string `json:"ipAddress,omitempty"`
+ // UserID User Id.
+ UserID *string `json:"userId,omitempty"`
+ // UserRoleScopeTags List of user scope tags when the audit was performed.
+ UserRoleScopeTags []RoleScopeTagInfo `json:"userRoleScopeTags,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AuditEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AuditEventModel.go
new file mode 100644
index 00000000..82a32d2a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AuditEventModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AuditEvent A class containing the properties for Audit Event.
+type AuditEvent struct {
+ // Entity is the base model of AuditEvent
+ Entity
+ // DisplayName Event display name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // ComponentName Component name.
+ ComponentName *string `json:"componentName,omitempty"`
+ // Actor AAD user and application that are associated with the audit event.
+ Actor *AuditActor `json:"actor,omitempty"`
+ // Activity Friendly name of the activity.
+ Activity *string `json:"activity,omitempty"`
+ // ActivityDateTime The date time in UTC when the activity was performed.
+ ActivityDateTime *time.Time `json:"activityDateTime,omitempty"`
+ // ActivityType The type of activity that was being performed.
+ ActivityType *string `json:"activityType,omitempty"`
+ // ActivityOperationType The HTTP operation type of the activity.
+ ActivityOperationType *string `json:"activityOperationType,omitempty"`
+ // ActivityResult The result of the activity.
+ ActivityResult *string `json:"activityResult,omitempty"`
+ // CorrelationID The client request Id that is used to correlate activity within the system.
+ CorrelationID *UUID `json:"correlationId,omitempty"`
+ // Resources Resources being modified.
+ Resources []AuditResource `json:"resources,omitempty"`
+ // Category Audit category.
+ Category *string `json:"category,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AuditEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AuditEventRequest.go
new file mode 100644
index 00000000..6c0a4ef7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AuditEventRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AuditEventRequestBuilder is request builder for AuditEvent
+type AuditEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AuditEventRequest
+func (b *AuditEventRequestBuilder) Request() *AuditEventRequest {
+ return &AuditEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AuditEventRequest is request for AuditEvent
+type AuditEventRequest struct{ BaseRequest }
+
+// Get performs GET request for AuditEvent
+func (r *AuditEventRequest) Get(ctx context.Context) (resObj *AuditEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AuditEvent
+func (r *AuditEventRequest) Update(ctx context.Context, reqObj *AuditEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AuditEvent
+func (r *AuditEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AuditLogRootModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AuditLogRootModel.go
new file mode 100644
index 00000000..4eed9213
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AuditLogRootModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AuditLogRoot undocumented
+type AuditLogRoot struct {
+ // Entity is the base model of AuditLogRoot
+ Entity
+ // SignIns undocumented
+ SignIns []SignIn `json:"signIns,omitempty"`
+ // DirectoryAudits undocumented
+ DirectoryAudits []DirectoryAudit `json:"directoryAudits,omitempty"`
+ // RestrictedSignIns undocumented
+ RestrictedSignIns []RestrictedSignIn `json:"restrictedSignIns,omitempty"`
+ // DirectoryProvisioning undocumented
+ DirectoryProvisioning []ProvisioningObjectSummary `json:"directoryProvisioning,omitempty"`
+ // Provisioning undocumented
+ Provisioning []ProvisioningObjectSummary `json:"provisioning,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AuditLogRootRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/AuditLogRootRequest.go
new file mode 100644
index 00000000..7ea5e67c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AuditLogRootRequest.go
@@ -0,0 +1,515 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AuditLogRootRequestBuilder is request builder for AuditLogRoot
+type AuditLogRootRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AuditLogRootRequest
+func (b *AuditLogRootRequestBuilder) Request() *AuditLogRootRequest {
+ return &AuditLogRootRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AuditLogRootRequest is request for AuditLogRoot
+type AuditLogRootRequest struct{ BaseRequest }
+
+// Get performs GET request for AuditLogRoot
+func (r *AuditLogRootRequest) Get(ctx context.Context) (resObj *AuditLogRoot, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AuditLogRoot
+func (r *AuditLogRootRequest) Update(ctx context.Context, reqObj *AuditLogRoot) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AuditLogRoot
+func (r *AuditLogRootRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DirectoryAudits returns request builder for DirectoryAudit collection
+func (b *AuditLogRootRequestBuilder) DirectoryAudits() *AuditLogRootDirectoryAuditsCollectionRequestBuilder {
+ bb := &AuditLogRootDirectoryAuditsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directoryAudits"
+ return bb
+}
+
+// AuditLogRootDirectoryAuditsCollectionRequestBuilder is request builder for DirectoryAudit collection
+type AuditLogRootDirectoryAuditsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryAudit collection
+func (b *AuditLogRootDirectoryAuditsCollectionRequestBuilder) Request() *AuditLogRootDirectoryAuditsCollectionRequest {
+ return &AuditLogRootDirectoryAuditsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryAudit item
+func (b *AuditLogRootDirectoryAuditsCollectionRequestBuilder) ID(id string) *DirectoryAuditRequestBuilder {
+ bb := &DirectoryAuditRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AuditLogRootDirectoryAuditsCollectionRequest is request for DirectoryAudit collection
+type AuditLogRootDirectoryAuditsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryAudit collection
+func (r *AuditLogRootDirectoryAuditsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryAudit, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryAudit
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryAudit
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryAudit collection
+func (r *AuditLogRootDirectoryAuditsCollectionRequest) Get(ctx context.Context) ([]DirectoryAudit, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryAudit collection
+func (r *AuditLogRootDirectoryAuditsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryAudit) (resObj *DirectoryAudit, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DirectoryProvisioning returns request builder for ProvisioningObjectSummary collection
+func (b *AuditLogRootRequestBuilder) DirectoryProvisioning() *AuditLogRootDirectoryProvisioningCollectionRequestBuilder {
+ bb := &AuditLogRootDirectoryProvisioningCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directoryProvisioning"
+ return bb
+}
+
+// AuditLogRootDirectoryProvisioningCollectionRequestBuilder is request builder for ProvisioningObjectSummary collection
+type AuditLogRootDirectoryProvisioningCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProvisioningObjectSummary collection
+func (b *AuditLogRootDirectoryProvisioningCollectionRequestBuilder) Request() *AuditLogRootDirectoryProvisioningCollectionRequest {
+ return &AuditLogRootDirectoryProvisioningCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProvisioningObjectSummary item
+func (b *AuditLogRootDirectoryProvisioningCollectionRequestBuilder) ID(id string) *ProvisioningObjectSummaryRequestBuilder {
+ bb := &ProvisioningObjectSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AuditLogRootDirectoryProvisioningCollectionRequest is request for ProvisioningObjectSummary collection
+type AuditLogRootDirectoryProvisioningCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProvisioningObjectSummary collection
+func (r *AuditLogRootDirectoryProvisioningCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ProvisioningObjectSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProvisioningObjectSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProvisioningObjectSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProvisioningObjectSummary collection
+func (r *AuditLogRootDirectoryProvisioningCollectionRequest) Get(ctx context.Context) ([]ProvisioningObjectSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ProvisioningObjectSummary collection
+func (r *AuditLogRootDirectoryProvisioningCollectionRequest) Add(ctx context.Context, reqObj *ProvisioningObjectSummary) (resObj *ProvisioningObjectSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Provisioning returns request builder for ProvisioningObjectSummary collection
+func (b *AuditLogRootRequestBuilder) Provisioning() *AuditLogRootProvisioningCollectionRequestBuilder {
+ bb := &AuditLogRootProvisioningCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/provisioning"
+ return bb
+}
+
+// AuditLogRootProvisioningCollectionRequestBuilder is request builder for ProvisioningObjectSummary collection
+type AuditLogRootProvisioningCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProvisioningObjectSummary collection
+func (b *AuditLogRootProvisioningCollectionRequestBuilder) Request() *AuditLogRootProvisioningCollectionRequest {
+ return &AuditLogRootProvisioningCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProvisioningObjectSummary item
+func (b *AuditLogRootProvisioningCollectionRequestBuilder) ID(id string) *ProvisioningObjectSummaryRequestBuilder {
+ bb := &ProvisioningObjectSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AuditLogRootProvisioningCollectionRequest is request for ProvisioningObjectSummary collection
+type AuditLogRootProvisioningCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProvisioningObjectSummary collection
+func (r *AuditLogRootProvisioningCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ProvisioningObjectSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProvisioningObjectSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProvisioningObjectSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProvisioningObjectSummary collection
+func (r *AuditLogRootProvisioningCollectionRequest) Get(ctx context.Context) ([]ProvisioningObjectSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ProvisioningObjectSummary collection
+func (r *AuditLogRootProvisioningCollectionRequest) Add(ctx context.Context, reqObj *ProvisioningObjectSummary) (resObj *ProvisioningObjectSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RestrictedSignIns returns request builder for RestrictedSignIn collection
+func (b *AuditLogRootRequestBuilder) RestrictedSignIns() *AuditLogRootRestrictedSignInsCollectionRequestBuilder {
+ bb := &AuditLogRootRestrictedSignInsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/restrictedSignIns"
+ return bb
+}
+
+// AuditLogRootRestrictedSignInsCollectionRequestBuilder is request builder for RestrictedSignIn collection
+type AuditLogRootRestrictedSignInsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RestrictedSignIn collection
+func (b *AuditLogRootRestrictedSignInsCollectionRequestBuilder) Request() *AuditLogRootRestrictedSignInsCollectionRequest {
+ return &AuditLogRootRestrictedSignInsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RestrictedSignIn item
+func (b *AuditLogRootRestrictedSignInsCollectionRequestBuilder) ID(id string) *RestrictedSignInRequestBuilder {
+ bb := &RestrictedSignInRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AuditLogRootRestrictedSignInsCollectionRequest is request for RestrictedSignIn collection
+type AuditLogRootRestrictedSignInsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RestrictedSignIn collection
+func (r *AuditLogRootRestrictedSignInsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]RestrictedSignIn, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RestrictedSignIn
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RestrictedSignIn
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RestrictedSignIn collection
+func (r *AuditLogRootRestrictedSignInsCollectionRequest) Get(ctx context.Context) ([]RestrictedSignIn, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for RestrictedSignIn collection
+func (r *AuditLogRootRestrictedSignInsCollectionRequest) Add(ctx context.Context, reqObj *RestrictedSignIn) (resObj *RestrictedSignIn, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SignIns returns request builder for SignIn collection
+func (b *AuditLogRootRequestBuilder) SignIns() *AuditLogRootSignInsCollectionRequestBuilder {
+ bb := &AuditLogRootSignInsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/signIns"
+ return bb
+}
+
+// AuditLogRootSignInsCollectionRequestBuilder is request builder for SignIn collection
+type AuditLogRootSignInsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SignIn collection
+func (b *AuditLogRootSignInsCollectionRequestBuilder) Request() *AuditLogRootSignInsCollectionRequest {
+ return &AuditLogRootSignInsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SignIn item
+func (b *AuditLogRootSignInsCollectionRequestBuilder) ID(id string) *SignInRequestBuilder {
+ bb := &SignInRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AuditLogRootSignInsCollectionRequest is request for SignIn collection
+type AuditLogRootSignInsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SignIn collection
+func (r *AuditLogRootSignInsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SignIn, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SignIn
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SignIn
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SignIn collection
+func (r *AuditLogRootSignInsCollectionRequest) Get(ctx context.Context) ([]SignIn, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SignIn collection
+func (r *AuditLogRootSignInsCollectionRequest) Add(ctx context.Context, reqObj *SignIn) (resObj *SignIn, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AuditPropertyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AuditPropertyModel.go
new file mode 100644
index 00000000..460f71c2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AuditPropertyModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AuditProperty undocumented
+type AuditProperty struct {
+ // Object is the base model of AuditProperty
+ Object
+ // DisplayName Display name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // OldValue Old value.
+ OldValue *string `json:"oldValue,omitempty"`
+ // NewValue New value.
+ NewValue *string `json:"newValue,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AuditResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AuditResourceModel.go
new file mode 100644
index 00000000..e4bf3268
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AuditResourceModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AuditResource undocumented
+type AuditResource struct {
+ // Object is the base model of AuditResource
+ Object
+ // DisplayName Display name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // ModifiedProperties List of modified properties.
+ ModifiedProperties []AuditProperty `json:"modifiedProperties,omitempty"`
+ // Type Audit resource's type.
+ Type *string `json:"type,omitempty"`
+ // ResourceID Audit resource's Id.
+ ResourceID *string `json:"resourceId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AuthMethodsTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AuthMethodsTypeEnum.go
new file mode 100644
index 00000000..ab9090bf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AuthMethodsTypeEnum.go
@@ -0,0 +1,113 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AuthMethodsType undocumented
+type AuthMethodsType int
+
+const (
+ // AuthMethodsTypeVEmail undocumented
+ AuthMethodsTypeVEmail AuthMethodsType = 0
+ // AuthMethodsTypeVMobileSMS undocumented
+ AuthMethodsTypeVMobileSMS AuthMethodsType = 1
+ // AuthMethodsTypeVMobilePhone undocumented
+ AuthMethodsTypeVMobilePhone AuthMethodsType = 2
+ // AuthMethodsTypeVOfficePhone undocumented
+ AuthMethodsTypeVOfficePhone AuthMethodsType = 3
+ // AuthMethodsTypeVSecurityQuestion undocumented
+ AuthMethodsTypeVSecurityQuestion AuthMethodsType = 4
+ // AuthMethodsTypeVAppNotification undocumented
+ AuthMethodsTypeVAppNotification AuthMethodsType = 5
+ // AuthMethodsTypeVAppNotificationCode undocumented
+ AuthMethodsTypeVAppNotificationCode AuthMethodsType = 6
+ // AuthMethodsTypeVAppNotificationAndCode undocumented
+ AuthMethodsTypeVAppNotificationAndCode AuthMethodsType = 7
+ // AuthMethodsTypeVAppPassword undocumented
+ AuthMethodsTypeVAppPassword AuthMethodsType = 8
+ // AuthMethodsTypeVFido undocumented
+ AuthMethodsTypeVFido AuthMethodsType = 9
+ // AuthMethodsTypeVAlternateMobilePhone undocumented
+ AuthMethodsTypeVAlternateMobilePhone AuthMethodsType = 10
+ // AuthMethodsTypeVMobilePhoneAndSMS undocumented
+ AuthMethodsTypeVMobilePhoneAndSMS AuthMethodsType = 11
+ // AuthMethodsTypeVUnknownFutureValue undocumented
+ AuthMethodsTypeVUnknownFutureValue AuthMethodsType = 12
+)
+
+// AuthMethodsTypePEmail returns a pointer to AuthMethodsTypeVEmail
+func AuthMethodsTypePEmail() *AuthMethodsType {
+ v := AuthMethodsTypeVEmail
+ return &v
+}
+
+// AuthMethodsTypePMobileSMS returns a pointer to AuthMethodsTypeVMobileSMS
+func AuthMethodsTypePMobileSMS() *AuthMethodsType {
+ v := AuthMethodsTypeVMobileSMS
+ return &v
+}
+
+// AuthMethodsTypePMobilePhone returns a pointer to AuthMethodsTypeVMobilePhone
+func AuthMethodsTypePMobilePhone() *AuthMethodsType {
+ v := AuthMethodsTypeVMobilePhone
+ return &v
+}
+
+// AuthMethodsTypePOfficePhone returns a pointer to AuthMethodsTypeVOfficePhone
+func AuthMethodsTypePOfficePhone() *AuthMethodsType {
+ v := AuthMethodsTypeVOfficePhone
+ return &v
+}
+
+// AuthMethodsTypePSecurityQuestion returns a pointer to AuthMethodsTypeVSecurityQuestion
+func AuthMethodsTypePSecurityQuestion() *AuthMethodsType {
+ v := AuthMethodsTypeVSecurityQuestion
+ return &v
+}
+
+// AuthMethodsTypePAppNotification returns a pointer to AuthMethodsTypeVAppNotification
+func AuthMethodsTypePAppNotification() *AuthMethodsType {
+ v := AuthMethodsTypeVAppNotification
+ return &v
+}
+
+// AuthMethodsTypePAppNotificationCode returns a pointer to AuthMethodsTypeVAppNotificationCode
+func AuthMethodsTypePAppNotificationCode() *AuthMethodsType {
+ v := AuthMethodsTypeVAppNotificationCode
+ return &v
+}
+
+// AuthMethodsTypePAppNotificationAndCode returns a pointer to AuthMethodsTypeVAppNotificationAndCode
+func AuthMethodsTypePAppNotificationAndCode() *AuthMethodsType {
+ v := AuthMethodsTypeVAppNotificationAndCode
+ return &v
+}
+
+// AuthMethodsTypePAppPassword returns a pointer to AuthMethodsTypeVAppPassword
+func AuthMethodsTypePAppPassword() *AuthMethodsType {
+ v := AuthMethodsTypeVAppPassword
+ return &v
+}
+
+// AuthMethodsTypePFido returns a pointer to AuthMethodsTypeVFido
+func AuthMethodsTypePFido() *AuthMethodsType {
+ v := AuthMethodsTypeVFido
+ return &v
+}
+
+// AuthMethodsTypePAlternateMobilePhone returns a pointer to AuthMethodsTypeVAlternateMobilePhone
+func AuthMethodsTypePAlternateMobilePhone() *AuthMethodsType {
+ v := AuthMethodsTypeVAlternateMobilePhone
+ return &v
+}
+
+// AuthMethodsTypePMobilePhoneAndSMS returns a pointer to AuthMethodsTypeVMobilePhoneAndSMS
+func AuthMethodsTypePMobilePhoneAndSMS() *AuthMethodsType {
+ v := AuthMethodsTypeVMobilePhoneAndSMS
+ return &v
+}
+
+// AuthMethodsTypePUnknownFutureValue returns a pointer to AuthMethodsTypeVUnknownFutureValue
+func AuthMethodsTypePUnknownFutureValue() *AuthMethodsType {
+ v := AuthMethodsTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AuthenticationDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AuthenticationDetailModel.go
new file mode 100644
index 00000000..dc3c4f95
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AuthenticationDetailModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AuthenticationDetail undocumented
+type AuthenticationDetail struct {
+ // Object is the base model of AuthenticationDetail
+ Object
+ // AuthenticationStepDateTime undocumented
+ AuthenticationStepDateTime *time.Time `json:"authenticationStepDateTime,omitempty"`
+ // AuthenticationMethod undocumented
+ AuthenticationMethod *string `json:"authenticationMethod,omitempty"`
+ // AuthenticationMethodDetail undocumented
+ AuthenticationMethodDetail *string `json:"authenticationMethodDetail,omitempty"`
+ // Succeeded undocumented
+ Succeeded *bool `json:"succeeded,omitempty"`
+ // AuthenticationStepResultDetail undocumented
+ AuthenticationStepResultDetail *string `json:"authenticationStepResultDetail,omitempty"`
+ // AuthenticationStepRequirement undocumented
+ AuthenticationStepRequirement *string `json:"authenticationStepRequirement,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AuthenticationRequirementPolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AuthenticationRequirementPolicyModel.go
new file mode 100644
index 00000000..6cfb2578
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AuthenticationRequirementPolicyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AuthenticationRequirementPolicy undocumented
+type AuthenticationRequirementPolicy struct {
+ // Object is the base model of AuthenticationRequirementPolicy
+ Object
+ // RequirementProvider undocumented
+ RequirementProvider *RequirementProvider `json:"requirementProvider,omitempty"`
+ // Detail undocumented
+ Detail *string `json:"detail,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AutoAdmittedUsersTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AutoAdmittedUsersTypeEnum.go
new file mode 100644
index 00000000..3535fa52
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AutoAdmittedUsersTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AutoAdmittedUsersType undocumented
+type AutoAdmittedUsersType int
+
+const (
+ // AutoAdmittedUsersTypeVEveryoneInCompany undocumented
+ AutoAdmittedUsersTypeVEveryoneInCompany AutoAdmittedUsersType = 0
+ // AutoAdmittedUsersTypeVEveryone undocumented
+ AutoAdmittedUsersTypeVEveryone AutoAdmittedUsersType = 1
+)
+
+// AutoAdmittedUsersTypePEveryoneInCompany returns a pointer to AutoAdmittedUsersTypeVEveryoneInCompany
+func AutoAdmittedUsersTypePEveryoneInCompany() *AutoAdmittedUsersType {
+ v := AutoAdmittedUsersTypeVEveryoneInCompany
+ return &v
+}
+
+// AutoAdmittedUsersTypePEveryone returns a pointer to AutoAdmittedUsersTypeVEveryone
+func AutoAdmittedUsersTypePEveryone() *AutoAdmittedUsersType {
+ v := AutoAdmittedUsersTypeVEveryone
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AutoLabelingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AutoLabelingModel.go
new file mode 100644
index 00000000..f57b750f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AutoLabelingModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AutoLabeling undocumented
+type AutoLabeling struct {
+ // Object is the base model of AutoLabeling
+ Object
+ // SensitiveTypeIDs undocumented
+ SensitiveTypeIDs []string `json:"sensitiveTypeIds,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AutoRestartNotificationDismissalMethodEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AutoRestartNotificationDismissalMethodEnum.go
new file mode 100644
index 00000000..8fd1d0d4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AutoRestartNotificationDismissalMethodEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AutoRestartNotificationDismissalMethod undocumented
+type AutoRestartNotificationDismissalMethod int
+
+const (
+ // AutoRestartNotificationDismissalMethodVNotConfigured undocumented
+ AutoRestartNotificationDismissalMethodVNotConfigured AutoRestartNotificationDismissalMethod = 0
+ // AutoRestartNotificationDismissalMethodVAutomatic undocumented
+ AutoRestartNotificationDismissalMethodVAutomatic AutoRestartNotificationDismissalMethod = 1
+ // AutoRestartNotificationDismissalMethodVUser undocumented
+ AutoRestartNotificationDismissalMethodVUser AutoRestartNotificationDismissalMethod = 2
+)
+
+// AutoRestartNotificationDismissalMethodPNotConfigured returns a pointer to AutoRestartNotificationDismissalMethodVNotConfigured
+func AutoRestartNotificationDismissalMethodPNotConfigured() *AutoRestartNotificationDismissalMethod {
+ v := AutoRestartNotificationDismissalMethodVNotConfigured
+ return &v
+}
+
+// AutoRestartNotificationDismissalMethodPAutomatic returns a pointer to AutoRestartNotificationDismissalMethodVAutomatic
+func AutoRestartNotificationDismissalMethodPAutomatic() *AutoRestartNotificationDismissalMethod {
+ v := AutoRestartNotificationDismissalMethodVAutomatic
+ return &v
+}
+
+// AutoRestartNotificationDismissalMethodPUser returns a pointer to AutoRestartNotificationDismissalMethodVUser
+func AutoRestartNotificationDismissalMethodPUser() *AutoRestartNotificationDismissalMethod {
+ v := AutoRestartNotificationDismissalMethodVUser
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AutoReviewSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AutoReviewSettingsModel.go
new file mode 100644
index 00000000..1f19df0f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AutoReviewSettingsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AutoReviewSettings undocumented
+type AutoReviewSettings struct {
+ // Object is the base model of AutoReviewSettings
+ Object
+ // NotReviewedResult undocumented
+ NotReviewedResult *string `json:"notReviewedResult,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AutomaticRepliesMailTipsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AutomaticRepliesMailTipsModel.go
new file mode 100644
index 00000000..c75ba0ae
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AutomaticRepliesMailTipsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AutomaticRepliesMailTips undocumented
+type AutomaticRepliesMailTips struct {
+ // Object is the base model of AutomaticRepliesMailTips
+ Object
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // MessageLanguage undocumented
+ MessageLanguage *LocaleInfo `json:"messageLanguage,omitempty"`
+ // ScheduledStartTime undocumented
+ ScheduledStartTime *DateTimeTimeZone `json:"scheduledStartTime,omitempty"`
+ // ScheduledEndTime undocumented
+ ScheduledEndTime *DateTimeTimeZone `json:"scheduledEndTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AutomaticRepliesSettingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AutomaticRepliesSettingModel.go
new file mode 100644
index 00000000..42e338e4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AutomaticRepliesSettingModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AutomaticRepliesSetting undocumented
+type AutomaticRepliesSetting struct {
+ // Object is the base model of AutomaticRepliesSetting
+ Object
+ // Status undocumented
+ Status *AutomaticRepliesStatus `json:"status,omitempty"`
+ // ExternalAudience undocumented
+ ExternalAudience *ExternalAudienceScope `json:"externalAudience,omitempty"`
+ // ScheduledStartDateTime undocumented
+ ScheduledStartDateTime *DateTimeTimeZone `json:"scheduledStartDateTime,omitempty"`
+ // ScheduledEndDateTime undocumented
+ ScheduledEndDateTime *DateTimeTimeZone `json:"scheduledEndDateTime,omitempty"`
+ // InternalReplyMessage undocumented
+ InternalReplyMessage *string `json:"internalReplyMessage,omitempty"`
+ // ExternalReplyMessage undocumented
+ ExternalReplyMessage *string `json:"externalReplyMessage,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AutomaticRepliesStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AutomaticRepliesStatusEnum.go
new file mode 100644
index 00000000..b01a4c01
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AutomaticRepliesStatusEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AutomaticRepliesStatus undocumented
+type AutomaticRepliesStatus int
+
+const (
+ // AutomaticRepliesStatusVDisabled undocumented
+ AutomaticRepliesStatusVDisabled AutomaticRepliesStatus = 0
+ // AutomaticRepliesStatusVAlwaysEnabled undocumented
+ AutomaticRepliesStatusVAlwaysEnabled AutomaticRepliesStatus = 1
+ // AutomaticRepliesStatusVScheduled undocumented
+ AutomaticRepliesStatusVScheduled AutomaticRepliesStatus = 2
+)
+
+// AutomaticRepliesStatusPDisabled returns a pointer to AutomaticRepliesStatusVDisabled
+func AutomaticRepliesStatusPDisabled() *AutomaticRepliesStatus {
+ v := AutomaticRepliesStatusVDisabled
+ return &v
+}
+
+// AutomaticRepliesStatusPAlwaysEnabled returns a pointer to AutomaticRepliesStatusVAlwaysEnabled
+func AutomaticRepliesStatusPAlwaysEnabled() *AutomaticRepliesStatus {
+ v := AutomaticRepliesStatusVAlwaysEnabled
+ return &v
+}
+
+// AutomaticRepliesStatusPScheduled returns a pointer to AutomaticRepliesStatusVScheduled
+func AutomaticRepliesStatusPScheduled() *AutomaticRepliesStatus {
+ v := AutomaticRepliesStatusVScheduled
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AutomaticUpdateModeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AutomaticUpdateModeEnum.go
new file mode 100644
index 00000000..f3ce425d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AutomaticUpdateModeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AutomaticUpdateMode undocumented
+type AutomaticUpdateMode int
+
+const (
+ // AutomaticUpdateModeVUserDefined undocumented
+ AutomaticUpdateModeVUserDefined AutomaticUpdateMode = 0
+ // AutomaticUpdateModeVNotifyDownload undocumented
+ AutomaticUpdateModeVNotifyDownload AutomaticUpdateMode = 1
+ // AutomaticUpdateModeVAutoInstallAtMaintenanceTime undocumented
+ AutomaticUpdateModeVAutoInstallAtMaintenanceTime AutomaticUpdateMode = 2
+ // AutomaticUpdateModeVAutoInstallAndRebootAtMaintenanceTime undocumented
+ AutomaticUpdateModeVAutoInstallAndRebootAtMaintenanceTime AutomaticUpdateMode = 3
+ // AutomaticUpdateModeVAutoInstallAndRebootAtScheduledTime undocumented
+ AutomaticUpdateModeVAutoInstallAndRebootAtScheduledTime AutomaticUpdateMode = 4
+ // AutomaticUpdateModeVAutoInstallAndRebootWithoutEndUserControl undocumented
+ AutomaticUpdateModeVAutoInstallAndRebootWithoutEndUserControl AutomaticUpdateMode = 5
+ // AutomaticUpdateModeVWindowsDefault undocumented
+ AutomaticUpdateModeVWindowsDefault AutomaticUpdateMode = 6
+)
+
+// AutomaticUpdateModePUserDefined returns a pointer to AutomaticUpdateModeVUserDefined
+func AutomaticUpdateModePUserDefined() *AutomaticUpdateMode {
+ v := AutomaticUpdateModeVUserDefined
+ return &v
+}
+
+// AutomaticUpdateModePNotifyDownload returns a pointer to AutomaticUpdateModeVNotifyDownload
+func AutomaticUpdateModePNotifyDownload() *AutomaticUpdateMode {
+ v := AutomaticUpdateModeVNotifyDownload
+ return &v
+}
+
+// AutomaticUpdateModePAutoInstallAtMaintenanceTime returns a pointer to AutomaticUpdateModeVAutoInstallAtMaintenanceTime
+func AutomaticUpdateModePAutoInstallAtMaintenanceTime() *AutomaticUpdateMode {
+ v := AutomaticUpdateModeVAutoInstallAtMaintenanceTime
+ return &v
+}
+
+// AutomaticUpdateModePAutoInstallAndRebootAtMaintenanceTime returns a pointer to AutomaticUpdateModeVAutoInstallAndRebootAtMaintenanceTime
+func AutomaticUpdateModePAutoInstallAndRebootAtMaintenanceTime() *AutomaticUpdateMode {
+ v := AutomaticUpdateModeVAutoInstallAndRebootAtMaintenanceTime
+ return &v
+}
+
+// AutomaticUpdateModePAutoInstallAndRebootAtScheduledTime returns a pointer to AutomaticUpdateModeVAutoInstallAndRebootAtScheduledTime
+func AutomaticUpdateModePAutoInstallAndRebootAtScheduledTime() *AutomaticUpdateMode {
+ v := AutomaticUpdateModeVAutoInstallAndRebootAtScheduledTime
+ return &v
+}
+
+// AutomaticUpdateModePAutoInstallAndRebootWithoutEndUserControl returns a pointer to AutomaticUpdateModeVAutoInstallAndRebootWithoutEndUserControl
+func AutomaticUpdateModePAutoInstallAndRebootWithoutEndUserControl() *AutomaticUpdateMode {
+ v := AutomaticUpdateModeVAutoInstallAndRebootWithoutEndUserControl
+ return &v
+}
+
+// AutomaticUpdateModePWindowsDefault returns a pointer to AutomaticUpdateModeVWindowsDefault
+func AutomaticUpdateModePWindowsDefault() *AutomaticUpdateMode {
+ v := AutomaticUpdateModeVWindowsDefault
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AverageComparativeScoreModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AverageComparativeScoreModel.go
new file mode 100644
index 00000000..d3a11f1f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AverageComparativeScoreModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AverageComparativeScore undocumented
+type AverageComparativeScore struct {
+ // Object is the base model of AverageComparativeScore
+ Object
+ // AverageScore undocumented
+ AverageScore *float64 `json:"averageScore,omitempty"`
+ // Basis undocumented
+ Basis *string `json:"basis,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AzureADFeatureUsageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AzureADFeatureUsageModel.go
new file mode 100644
index 00000000..a62bb23a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AzureADFeatureUsageModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AzureADFeatureUsage undocumented
+type AzureADFeatureUsage struct {
+ // Entity is the base model of AzureADFeatureUsage
+ Entity
+ // SnapshotDateTime undocumented
+ SnapshotDateTime *time.Time `json:"snapshotDateTime,omitempty"`
+ // FeatureName undocumented
+ FeatureName *string `json:"featureName,omitempty"`
+ // Usage undocumented
+ Usage *int `json:"usage,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AzureADLicenseTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/AzureADLicenseTypeEnum.go
new file mode 100644
index 00000000..27301fd2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AzureADLicenseTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AzureADLicenseType undocumented
+type AzureADLicenseType int
+
+const (
+ // AzureADLicenseTypeVNone undocumented
+ AzureADLicenseTypeVNone AzureADLicenseType = 0
+ // AzureADLicenseTypeVFree undocumented
+ AzureADLicenseTypeVFree AzureADLicenseType = 1
+ // AzureADLicenseTypeVBasic undocumented
+ AzureADLicenseTypeVBasic AzureADLicenseType = 2
+ // AzureADLicenseTypeVPremiumP1 undocumented
+ AzureADLicenseTypeVPremiumP1 AzureADLicenseType = 3
+ // AzureADLicenseTypeVPremiumP2 undocumented
+ AzureADLicenseTypeVPremiumP2 AzureADLicenseType = 4
+ // AzureADLicenseTypeVUnknownFutureValue undocumented
+ AzureADLicenseTypeVUnknownFutureValue AzureADLicenseType = 5
+)
+
+// AzureADLicenseTypePNone returns a pointer to AzureADLicenseTypeVNone
+func AzureADLicenseTypePNone() *AzureADLicenseType {
+ v := AzureADLicenseTypeVNone
+ return &v
+}
+
+// AzureADLicenseTypePFree returns a pointer to AzureADLicenseTypeVFree
+func AzureADLicenseTypePFree() *AzureADLicenseType {
+ v := AzureADLicenseTypeVFree
+ return &v
+}
+
+// AzureADLicenseTypePBasic returns a pointer to AzureADLicenseTypeVBasic
+func AzureADLicenseTypePBasic() *AzureADLicenseType {
+ v := AzureADLicenseTypeVBasic
+ return &v
+}
+
+// AzureADLicenseTypePPremiumP1 returns a pointer to AzureADLicenseTypeVPremiumP1
+func AzureADLicenseTypePPremiumP1() *AzureADLicenseType {
+ v := AzureADLicenseTypeVPremiumP1
+ return &v
+}
+
+// AzureADLicenseTypePPremiumP2 returns a pointer to AzureADLicenseTypeVPremiumP2
+func AzureADLicenseTypePPremiumP2() *AzureADLicenseType {
+ v := AzureADLicenseTypeVPremiumP2
+ return &v
+}
+
+// AzureADLicenseTypePUnknownFutureValue returns a pointer to AzureADLicenseTypeVUnknownFutureValue
+func AzureADLicenseTypePUnknownFutureValue() *AzureADLicenseType {
+ v := AzureADLicenseTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AzureADLicenseUsageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AzureADLicenseUsageModel.go
new file mode 100644
index 00000000..f11c1665
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AzureADLicenseUsageModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AzureADLicenseUsage undocumented
+type AzureADLicenseUsage struct {
+ // Entity is the base model of AzureADLicenseUsage
+ Entity
+ // SnapshotDateTime undocumented
+ SnapshotDateTime *time.Time `json:"snapshotDateTime,omitempty"`
+ // LicenseInfoDetails undocumented
+ LicenseInfoDetails []LicenseInfoDetail `json:"licenseInfoDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AzureADUserFeatureUsageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AzureADUserFeatureUsageModel.go
new file mode 100644
index 00000000..8b62e0d9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AzureADUserFeatureUsageModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AzureADUserFeatureUsage undocumented
+type AzureADUserFeatureUsage struct {
+ // Entity is the base model of AzureADUserFeatureUsage
+ Entity
+ // LastUpdatedDateTime undocumented
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // UserDisplayName undocumented
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // LicenseRecommended undocumented
+ LicenseRecommended *AzureADLicenseType `json:"licenseRecommended,omitempty"`
+ // LicenseAssigned undocumented
+ LicenseAssigned *AzureADLicenseType `json:"licenseAssigned,omitempty"`
+ // FeatureUsageDetails undocumented
+ FeatureUsageDetails []FeatureUsageDetail `json:"featureUsageDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/AzureADWindowsAutopilotDeploymentProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/AzureADWindowsAutopilotDeploymentProfileModel.go
new file mode 100644
index 00000000..b1097f67
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/AzureADWindowsAutopilotDeploymentProfileModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AzureADWindowsAutopilotDeploymentProfile Windows Autopilot Deployment Profile
+type AzureADWindowsAutopilotDeploymentProfile struct {
+ // WindowsAutopilotDeploymentProfile is the base model of AzureADWindowsAutopilotDeploymentProfile
+ WindowsAutopilotDeploymentProfile
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BaseItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BaseItemModel.go
new file mode 100644
index 00000000..cbf96b5b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BaseItemModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// BaseItem undocumented
+type BaseItem struct {
+ // Entity is the base model of BaseItem
+ Entity
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // ETag undocumented
+ ETag *string `json:"eTag,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ParentReference undocumented
+ ParentReference *ItemReference `json:"parentReference,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+ // CreatedByUser undocumented
+ CreatedByUser *User `json:"createdByUser,omitempty"`
+ // LastModifiedByUser undocumented
+ LastModifiedByUser *User `json:"lastModifiedByUser,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BaseItemRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/BaseItemRequest.go
new file mode 100644
index 00000000..d7920621
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BaseItemRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// BaseItemRequestBuilder is request builder for BaseItem
+type BaseItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BaseItemRequest
+func (b *BaseItemRequestBuilder) Request() *BaseItemRequest {
+ return &BaseItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BaseItemRequest is request for BaseItem
+type BaseItemRequest struct{ BaseRequest }
+
+// Get performs GET request for BaseItem
+func (r *BaseItemRequest) Get(ctx context.Context) (resObj *BaseItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BaseItem
+func (r *BaseItemRequest) Update(ctx context.Context, reqObj *BaseItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BaseItem
+func (r *BaseItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// CreatedByUser is navigation property
+func (b *BaseItemRequestBuilder) CreatedByUser() *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/createdByUser"
+ return bb
+}
+
+// LastModifiedByUser is navigation property
+func (b *BaseItemRequestBuilder) LastModifiedByUser() *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/lastModifiedByUser"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BaseItemVersionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BaseItemVersionModel.go
new file mode 100644
index 00000000..022ab4e4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BaseItemVersionModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// BaseItemVersion undocumented
+type BaseItemVersion struct {
+ // Entity is the base model of BaseItemVersion
+ Entity
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Publication undocumented
+ Publication *PublicationFacet `json:"publication,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BinaryManagementConditionExpressionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BinaryManagementConditionExpressionModel.go
new file mode 100644
index 00000000..114efb61
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BinaryManagementConditionExpressionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BinaryManagementConditionExpression undocumented
+type BinaryManagementConditionExpression struct {
+ // ManagementConditionExpressionModel is the base model of BinaryManagementConditionExpression
+ ManagementConditionExpressionModel
+ // Operator The operator used in the evaluation of the binary operation.
+ Operator *BinaryManagementConditionExpressionOperatorType `json:"operator,omitempty"`
+ // FirstOperand The first operand of the binary operation.
+ FirstOperand *ManagementConditionExpressionModel `json:"firstOperand,omitempty"`
+ // SecondOperand The second operand of the binary operation.
+ SecondOperand *ManagementConditionExpressionModel `json:"secondOperand,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BinaryManagementConditionExpressionOperatorTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/BinaryManagementConditionExpressionOperatorTypeEnum.go
new file mode 100644
index 00000000..0ffef4d4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BinaryManagementConditionExpressionOperatorTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BinaryManagementConditionExpressionOperatorType undocumented
+type BinaryManagementConditionExpressionOperatorType int
+
+const (
+ // BinaryManagementConditionExpressionOperatorTypeVOr undocumented
+ BinaryManagementConditionExpressionOperatorTypeVOr BinaryManagementConditionExpressionOperatorType = 0
+ // BinaryManagementConditionExpressionOperatorTypeVAnd undocumented
+ BinaryManagementConditionExpressionOperatorTypeVAnd BinaryManagementConditionExpressionOperatorType = 1
+)
+
+// BinaryManagementConditionExpressionOperatorTypePOr returns a pointer to BinaryManagementConditionExpressionOperatorTypeVOr
+func BinaryManagementConditionExpressionOperatorTypePOr() *BinaryManagementConditionExpressionOperatorType {
+ v := BinaryManagementConditionExpressionOperatorTypeVOr
+ return &v
+}
+
+// BinaryManagementConditionExpressionOperatorTypePAnd returns a pointer to BinaryManagementConditionExpressionOperatorTypeVAnd
+func BinaryManagementConditionExpressionOperatorTypePAnd() *BinaryManagementConditionExpressionOperatorType {
+ v := BinaryManagementConditionExpressionOperatorTypeVAnd
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerEncryptionMethodEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerEncryptionMethodEnum.go
new file mode 100644
index 00000000..62639b59
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerEncryptionMethodEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BitLockerEncryptionMethod undocumented
+type BitLockerEncryptionMethod int
+
+const (
+ // BitLockerEncryptionMethodVAesCbc128 undocumented
+ BitLockerEncryptionMethodVAesCbc128 BitLockerEncryptionMethod = 3
+ // BitLockerEncryptionMethodVAesCbc256 undocumented
+ BitLockerEncryptionMethodVAesCbc256 BitLockerEncryptionMethod = 4
+ // BitLockerEncryptionMethodVXtsAes128 undocumented
+ BitLockerEncryptionMethodVXtsAes128 BitLockerEncryptionMethod = 6
+ // BitLockerEncryptionMethodVXtsAes256 undocumented
+ BitLockerEncryptionMethodVXtsAes256 BitLockerEncryptionMethod = 7
+)
+
+// BitLockerEncryptionMethodPAesCbc128 returns a pointer to BitLockerEncryptionMethodVAesCbc128
+func BitLockerEncryptionMethodPAesCbc128() *BitLockerEncryptionMethod {
+ v := BitLockerEncryptionMethodVAesCbc128
+ return &v
+}
+
+// BitLockerEncryptionMethodPAesCbc256 returns a pointer to BitLockerEncryptionMethodVAesCbc256
+func BitLockerEncryptionMethodPAesCbc256() *BitLockerEncryptionMethod {
+ v := BitLockerEncryptionMethodVAesCbc256
+ return &v
+}
+
+// BitLockerEncryptionMethodPXtsAes128 returns a pointer to BitLockerEncryptionMethodVXtsAes128
+func BitLockerEncryptionMethodPXtsAes128() *BitLockerEncryptionMethod {
+ v := BitLockerEncryptionMethodVXtsAes128
+ return &v
+}
+
+// BitLockerEncryptionMethodPXtsAes256 returns a pointer to BitLockerEncryptionMethodVXtsAes256
+func BitLockerEncryptionMethodPXtsAes256() *BitLockerEncryptionMethod {
+ v := BitLockerEncryptionMethodVXtsAes256
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerFixedDrivePolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerFixedDrivePolicyModel.go
new file mode 100644
index 00000000..6fcfc068
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerFixedDrivePolicyModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BitLockerFixedDrivePolicy undocumented
+type BitLockerFixedDrivePolicy struct {
+ // Object is the base model of BitLockerFixedDrivePolicy
+ Object
+ // EncryptionMethod Select the encryption method for fixed drives.
+ EncryptionMethod *BitLockerEncryptionMethod `json:"encryptionMethod,omitempty"`
+ // RequireEncryptionForWriteAccess This policy setting determines whether BitLocker protection is required for fixed data drives to be writable on a computer.
+ RequireEncryptionForWriteAccess *bool `json:"requireEncryptionForWriteAccess,omitempty"`
+ // RecoveryOptions This policy setting allows you to control how BitLocker-protected fixed data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker.
+ RecoveryOptions *BitLockerRecoveryOptions `json:"recoveryOptions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerRecoveryInformationTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerRecoveryInformationTypeEnum.go
new file mode 100644
index 00000000..c55bd164
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerRecoveryInformationTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BitLockerRecoveryInformationType undocumented
+type BitLockerRecoveryInformationType int
+
+const (
+ // BitLockerRecoveryInformationTypeVPasswordAndKey undocumented
+ BitLockerRecoveryInformationTypeVPasswordAndKey BitLockerRecoveryInformationType = 1
+ // BitLockerRecoveryInformationTypeVPasswordOnly undocumented
+ BitLockerRecoveryInformationTypeVPasswordOnly BitLockerRecoveryInformationType = 2
+)
+
+// BitLockerRecoveryInformationTypePPasswordAndKey returns a pointer to BitLockerRecoveryInformationTypeVPasswordAndKey
+func BitLockerRecoveryInformationTypePPasswordAndKey() *BitLockerRecoveryInformationType {
+ v := BitLockerRecoveryInformationTypeVPasswordAndKey
+ return &v
+}
+
+// BitLockerRecoveryInformationTypePPasswordOnly returns a pointer to BitLockerRecoveryInformationTypeVPasswordOnly
+func BitLockerRecoveryInformationTypePPasswordOnly() *BitLockerRecoveryInformationType {
+ v := BitLockerRecoveryInformationTypeVPasswordOnly
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerRecoveryOptionsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerRecoveryOptionsModel.go
new file mode 100644
index 00000000..ad18af69
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerRecoveryOptionsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BitLockerRecoveryOptions undocumented
+type BitLockerRecoveryOptions struct {
+ // Object is the base model of BitLockerRecoveryOptions
+ Object
+ // BlockDataRecoveryAgent Indicates whether to block certificate-based data recovery agent.
+ BlockDataRecoveryAgent *bool `json:"blockDataRecoveryAgent,omitempty"`
+ // RecoveryPasswordUsage Indicates whether users are allowed or required to generate a 48-digit recovery password for fixed or system disk.
+ RecoveryPasswordUsage *ConfigurationUsage `json:"recoveryPasswordUsage,omitempty"`
+ // RecoveryKeyUsage Indicates whether users are allowed or required to generate a 256-bit recovery key for fixed or system disk.
+ RecoveryKeyUsage *ConfigurationUsage `json:"recoveryKeyUsage,omitempty"`
+ // HideRecoveryOptions Indicates whether or not to allow showing recovery options in BitLocker Setup Wizard for fixed or system disk.
+ HideRecoveryOptions *bool `json:"hideRecoveryOptions,omitempty"`
+ // EnableRecoveryInformationSaveToStore Indicates whether or not to allow BitLocker recovery information to store in AD DS.
+ EnableRecoveryInformationSaveToStore *bool `json:"enableRecoveryInformationSaveToStore,omitempty"`
+ // RecoveryInformationToStore Configure what pieces of BitLocker recovery information are stored to AD DS.
+ RecoveryInformationToStore *BitLockerRecoveryInformationType `json:"recoveryInformationToStore,omitempty"`
+ // EnableBitLockerAfterRecoveryInformationToStore Indicates whether or not to enable BitLocker until recovery information is stored in AD DS.
+ EnableBitLockerAfterRecoveryInformationToStore *bool `json:"enableBitLockerAfterRecoveryInformationToStore,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerRecoveryPasswordRotationTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerRecoveryPasswordRotationTypeEnum.go
new file mode 100644
index 00000000..065d1cfe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerRecoveryPasswordRotationTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BitLockerRecoveryPasswordRotationType undocumented
+type BitLockerRecoveryPasswordRotationType int
+
+const (
+ // BitLockerRecoveryPasswordRotationTypeVNotConfigured undocumented
+ BitLockerRecoveryPasswordRotationTypeVNotConfigured BitLockerRecoveryPasswordRotationType = 0
+ // BitLockerRecoveryPasswordRotationTypeVDisabled undocumented
+ BitLockerRecoveryPasswordRotationTypeVDisabled BitLockerRecoveryPasswordRotationType = 1
+ // BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAd undocumented
+ BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAd BitLockerRecoveryPasswordRotationType = 2
+ // BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAdAndHybrid undocumented
+ BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAdAndHybrid BitLockerRecoveryPasswordRotationType = 3
+)
+
+// BitLockerRecoveryPasswordRotationTypePNotConfigured returns a pointer to BitLockerRecoveryPasswordRotationTypeVNotConfigured
+func BitLockerRecoveryPasswordRotationTypePNotConfigured() *BitLockerRecoveryPasswordRotationType {
+ v := BitLockerRecoveryPasswordRotationTypeVNotConfigured
+ return &v
+}
+
+// BitLockerRecoveryPasswordRotationTypePDisabled returns a pointer to BitLockerRecoveryPasswordRotationTypeVDisabled
+func BitLockerRecoveryPasswordRotationTypePDisabled() *BitLockerRecoveryPasswordRotationType {
+ v := BitLockerRecoveryPasswordRotationTypeVDisabled
+ return &v
+}
+
+// BitLockerRecoveryPasswordRotationTypePEnabledForAzureAd returns a pointer to BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAd
+func BitLockerRecoveryPasswordRotationTypePEnabledForAzureAd() *BitLockerRecoveryPasswordRotationType {
+ v := BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAd
+ return &v
+}
+
+// BitLockerRecoveryPasswordRotationTypePEnabledForAzureAdAndHybrid returns a pointer to BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAdAndHybrid
+func BitLockerRecoveryPasswordRotationTypePEnabledForAzureAdAndHybrid() *BitLockerRecoveryPasswordRotationType {
+ v := BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAdAndHybrid
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerRemovableDrivePolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerRemovableDrivePolicyModel.go
new file mode 100644
index 00000000..00eaddb6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerRemovableDrivePolicyModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BitLockerRemovableDrivePolicy undocumented
+type BitLockerRemovableDrivePolicy struct {
+ // Object is the base model of BitLockerRemovableDrivePolicy
+ Object
+ // EncryptionMethod Select the encryption method for removable drives.
+ EncryptionMethod *BitLockerEncryptionMethod `json:"encryptionMethod,omitempty"`
+ // RequireEncryptionForWriteAccess Indicates whether to block write access to devices configured in another organization. If requireEncryptionForWriteAccess is false, this value does not affect.
+ RequireEncryptionForWriteAccess *bool `json:"requireEncryptionForWriteAccess,omitempty"`
+ // BlockCrossOrganizationWriteAccess This policy setting determines whether BitLocker protection is required for removable data drives to be writable on a computer.
+ BlockCrossOrganizationWriteAccess *bool `json:"blockCrossOrganizationWriteAccess,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerSystemDrivePolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerSystemDrivePolicyModel.go
new file mode 100644
index 00000000..ce647930
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BitLockerSystemDrivePolicyModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BitLockerSystemDrivePolicy undocumented
+type BitLockerSystemDrivePolicy struct {
+ // Object is the base model of BitLockerSystemDrivePolicy
+ Object
+ // EncryptionMethod Select the encryption method for operating system drives.
+ EncryptionMethod *BitLockerEncryptionMethod `json:"encryptionMethod,omitempty"`
+ // StartupAuthenticationRequired Require additional authentication at startup.
+ StartupAuthenticationRequired *bool `json:"startupAuthenticationRequired,omitempty"`
+ // StartupAuthenticationBlockWithoutTpmChip Indicates whether to allow BitLocker without a compatible TPM (requires a password or a startup key on a USB flash drive).
+ StartupAuthenticationBlockWithoutTpmChip *bool `json:"startupAuthenticationBlockWithoutTpmChip,omitempty"`
+ // StartupAuthenticationTpmUsage Indicates if TPM startup is allowed/required/disallowed.
+ StartupAuthenticationTpmUsage *ConfigurationUsage `json:"startupAuthenticationTpmUsage,omitempty"`
+ // StartupAuthenticationTpmPinUsage Indicates if TPM startup pin is allowed/required/disallowed.
+ StartupAuthenticationTpmPinUsage *ConfigurationUsage `json:"startupAuthenticationTpmPinUsage,omitempty"`
+ // StartupAuthenticationTpmKeyUsage Indicates if TPM startup key is allowed/required/disallowed.
+ StartupAuthenticationTpmKeyUsage *ConfigurationUsage `json:"startupAuthenticationTpmKeyUsage,omitempty"`
+ // StartupAuthenticationTpmPinAndKeyUsage Indicates if TPM startup pin key and key are allowed/required/disallowed.
+ StartupAuthenticationTpmPinAndKeyUsage *ConfigurationUsage `json:"startupAuthenticationTpmPinAndKeyUsage,omitempty"`
+ // MinimumPinLength Indicates the minimum length of startup pin. Valid values 4 to 20
+ MinimumPinLength *int `json:"minimumPinLength,omitempty"`
+ // RecoveryOptions Allows to recover BitLocker encrypted operating system drives in the absence of the required startup key information. This policy setting is applied when you turn on BitLocker.
+ RecoveryOptions *BitLockerRecoveryOptions `json:"recoveryOptions,omitempty"`
+ // PrebootRecoveryEnableMessageAndURL Enable pre-boot recovery message and Url. If requireStartupAuthentication is false, this value does not affect.
+ PrebootRecoveryEnableMessageAndURL *bool `json:"prebootRecoveryEnableMessageAndUrl,omitempty"`
+ // PrebootRecoveryMessage Defines a custom recovery message.
+ PrebootRecoveryMessage *string `json:"prebootRecoveryMessage,omitempty"`
+ // PrebootRecoveryURL Defines a custom recovery URL.
+ PrebootRecoveryURL *string `json:"prebootRecoveryUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BlockAccessActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BlockAccessActionModel.go
new file mode 100644
index 00000000..63265cfa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BlockAccessActionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BlockAccessAction undocumented
+type BlockAccessAction struct {
+ // DlpActionInfo is the base model of BlockAccessAction
+ DlpActionInfo
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BodyTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/BodyTypeEnum.go
new file mode 100644
index 00000000..df6c88c2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BodyTypeEnum.go
@@ -0,0 +1,28 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BodyType undocumented
+type BodyType string
+
+/*
+
+const (
+ // BodyTypeVText undocumented
+ BodyTypeVText BodyType = 0
+ // BodyTypeVHTML undocumented
+ BodyTypeVHTML BodyType = 1
+)
+
+// BodyTypePText returns a pointer to BodyTypeVText
+func BodyTypePText() *BodyType {
+ v := BodyTypeVText
+ return &v
+}
+
+// BodyTypePHTML returns a pointer to BodyTypeVHTML
+func BodyTypePHTML() *BodyType {
+ v := BodyTypeVHTML
+ return &v
+}
+*/
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingAppointmentAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingAppointmentAction.go
new file mode 100644
index 00000000..27fae8e5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingAppointmentAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// BookingAppointmentCancelRequestParameter undocumented
+type BookingAppointmentCancelRequestParameter struct {
+ // CancellationMessage undocumented
+ CancellationMessage *string `json:"cancellationMessage,omitempty"`
+}
+
+//
+type BookingAppointmentCancelRequestBuilder struct{ BaseRequestBuilder }
+
+// Cancel action undocumented
+func (b *BookingAppointmentRequestBuilder) Cancel(reqObj *BookingAppointmentCancelRequestParameter) *BookingAppointmentCancelRequestBuilder {
+ bb := &BookingAppointmentCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancel"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type BookingAppointmentCancelRequest struct{ BaseRequest }
+
+//
+func (b *BookingAppointmentCancelRequestBuilder) Request() *BookingAppointmentCancelRequest {
+ return &BookingAppointmentCancelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *BookingAppointmentCancelRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingAppointmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingAppointmentModel.go
new file mode 100644
index 00000000..b99558e3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingAppointmentModel.go
@@ -0,0 +1,63 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// BookingAppointment Represents a booked appointment of a service by a customer in a business.
+type BookingAppointment struct {
+ // Entity is the base model of BookingAppointment
+ Entity
+ // SelfServiceAppointmentID undocumented
+ SelfServiceAppointmentID *string `json:"selfServiceAppointmentId,omitempty"`
+ // CustomerID The id of the booking customer associated with this appointment.
+ CustomerID *string `json:"customerId,omitempty"`
+ // CustomerName undocumented
+ CustomerName *string `json:"customerName,omitempty"`
+ // CustomerEmailAddress undocumented
+ CustomerEmailAddress *string `json:"customerEmailAddress,omitempty"`
+ // CustomerPhone undocumented
+ CustomerPhone *string `json:"customerPhone,omitempty"`
+ // CustomerLocation undocumented
+ CustomerLocation *Location `json:"customerLocation,omitempty"`
+ // CustomerNotes Notes from the customer associated with this appointment.
+ CustomerNotes *string `json:"customerNotes,omitempty"`
+ // ServiceID The id of the booking service associated with this appointment.
+ ServiceID *string `json:"serviceId,omitempty"`
+ // ServiceName The name of the booking service associated with this appointment.
+ ServiceName *string `json:"serviceName,omitempty"`
+ // Start undocumented
+ Start *DateTimeTimeZone `json:"start,omitempty"`
+ // End undocumented
+ End *DateTimeTimeZone `json:"end,omitempty"`
+ // Duration undocumented
+ Duration *time.Duration `json:"duration,omitempty"`
+ // PreBuffer undocumented
+ PreBuffer *time.Duration `json:"preBuffer,omitempty"`
+ // PostBuffer undocumented
+ PostBuffer *time.Duration `json:"postBuffer,omitempty"`
+ // ServiceLocation undocumented
+ ServiceLocation *Location `json:"serviceLocation,omitempty"`
+ // PriceType undocumented
+ PriceType *BookingPriceType `json:"priceType,omitempty"`
+ // Price undocumented
+ Price *float64 `json:"price,omitempty"`
+ // ServiceNotes undocumented
+ ServiceNotes *string `json:"serviceNotes,omitempty"`
+ // Reminders undocumented
+ Reminders []BookingReminder `json:"reminders,omitempty"`
+ // OptOutOfCustomerEmail undocumented
+ OptOutOfCustomerEmail *bool `json:"optOutOfCustomerEmail,omitempty"`
+ // StaffMemberIDs undocumented
+ StaffMemberIDs []string `json:"staffMemberIds,omitempty"`
+ // InvoiceAmount undocumented
+ InvoiceAmount *float64 `json:"invoiceAmount,omitempty"`
+ // InvoiceDate undocumented
+ InvoiceDate *DateTimeTimeZone `json:"invoiceDate,omitempty"`
+ // InvoiceID undocumented
+ InvoiceID *string `json:"invoiceId,omitempty"`
+ // InvoiceStatus undocumented
+ InvoiceStatus *BookingInvoiceStatus `json:"invoiceStatus,omitempty"`
+ // InvoiceURL undocumented
+ InvoiceURL *string `json:"invoiceUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingAppointmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingAppointmentRequest.go
new file mode 100644
index 00000000..3471af50
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingAppointmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// BookingAppointmentRequestBuilder is request builder for BookingAppointment
+type BookingAppointmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BookingAppointmentRequest
+func (b *BookingAppointmentRequestBuilder) Request() *BookingAppointmentRequest {
+ return &BookingAppointmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BookingAppointmentRequest is request for BookingAppointment
+type BookingAppointmentRequest struct{ BaseRequest }
+
+// Get performs GET request for BookingAppointment
+func (r *BookingAppointmentRequest) Get(ctx context.Context) (resObj *BookingAppointment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BookingAppointment
+func (r *BookingAppointmentRequest) Update(ctx context.Context, reqObj *BookingAppointment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BookingAppointment
+func (r *BookingAppointmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingBusinessAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingBusinessAction.go
new file mode 100644
index 00000000..fcf02978
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingBusinessAction.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// BookingBusinessPublishRequestParameter undocumented
+type BookingBusinessPublishRequestParameter struct {
+}
+
+// BookingBusinessUnpublishRequestParameter undocumented
+type BookingBusinessUnpublishRequestParameter struct {
+}
+
+//
+type BookingBusinessPublishRequestBuilder struct{ BaseRequestBuilder }
+
+// Publish action undocumented
+func (b *BookingBusinessRequestBuilder) Publish(reqObj *BookingBusinessPublishRequestParameter) *BookingBusinessPublishRequestBuilder {
+ bb := &BookingBusinessPublishRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/publish"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type BookingBusinessPublishRequest struct{ BaseRequest }
+
+//
+func (b *BookingBusinessPublishRequestBuilder) Request() *BookingBusinessPublishRequest {
+ return &BookingBusinessPublishRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *BookingBusinessPublishRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type BookingBusinessUnpublishRequestBuilder struct{ BaseRequestBuilder }
+
+// Unpublish action undocumented
+func (b *BookingBusinessRequestBuilder) Unpublish(reqObj *BookingBusinessUnpublishRequestParameter) *BookingBusinessUnpublishRequestBuilder {
+ bb := &BookingBusinessUnpublishRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unpublish"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type BookingBusinessUnpublishRequest struct{ BaseRequest }
+
+//
+func (b *BookingBusinessUnpublishRequestBuilder) Request() *BookingBusinessUnpublishRequest {
+ return &BookingBusinessUnpublishRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *BookingBusinessUnpublishRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingBusinessModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingBusinessModel.go
new file mode 100644
index 00000000..e6ded981
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingBusinessModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingBusiness Represents a Microsot Bookings Business.
+type BookingBusiness struct {
+ // BookingNamedEntity is the base model of BookingBusiness
+ BookingNamedEntity
+ // BusinessType undocumented
+ BusinessType *string `json:"businessType,omitempty"`
+ // Address undocumented
+ Address *PhysicalAddress `json:"address,omitempty"`
+ // Phone undocumented
+ Phone *string `json:"phone,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // WebSiteURL The URL of the business web site.
+ WebSiteURL *string `json:"webSiteUrl,omitempty"`
+ // DefaultCurrencyIso undocumented
+ DefaultCurrencyIso *string `json:"defaultCurrencyIso,omitempty"`
+ // BusinessHours undocumented
+ BusinessHours []BookingWorkHours `json:"businessHours,omitempty"`
+ // SchedulingPolicy undocumented
+ SchedulingPolicy *BookingSchedulingPolicy `json:"schedulingPolicy,omitempty"`
+ // IsPublished undocumented
+ IsPublished *bool `json:"isPublished,omitempty"`
+ // PublicURL undocumented
+ PublicURL *string `json:"publicUrl,omitempty"`
+ // Appointments undocumented
+ Appointments []BookingAppointment `json:"appointments,omitempty"`
+ // CalendarView undocumented
+ CalendarView []BookingAppointment `json:"calendarView,omitempty"`
+ // Customers undocumented
+ Customers []BookingCustomer `json:"customers,omitempty"`
+ // Services undocumented
+ Services []BookingService `json:"services,omitempty"`
+ // StaffMembers undocumented
+ StaffMembers []BookingStaffMember `json:"staffMembers,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingBusinessRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingBusinessRequest.go
new file mode 100644
index 00000000..398fa769
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingBusinessRequest.go
@@ -0,0 +1,515 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// BookingBusinessRequestBuilder is request builder for BookingBusiness
+type BookingBusinessRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BookingBusinessRequest
+func (b *BookingBusinessRequestBuilder) Request() *BookingBusinessRequest {
+ return &BookingBusinessRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BookingBusinessRequest is request for BookingBusiness
+type BookingBusinessRequest struct{ BaseRequest }
+
+// Get performs GET request for BookingBusiness
+func (r *BookingBusinessRequest) Get(ctx context.Context) (resObj *BookingBusiness, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BookingBusiness
+func (r *BookingBusinessRequest) Update(ctx context.Context, reqObj *BookingBusiness) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BookingBusiness
+func (r *BookingBusinessRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Appointments returns request builder for BookingAppointment collection
+func (b *BookingBusinessRequestBuilder) Appointments() *BookingBusinessAppointmentsCollectionRequestBuilder {
+ bb := &BookingBusinessAppointmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appointments"
+ return bb
+}
+
+// BookingBusinessAppointmentsCollectionRequestBuilder is request builder for BookingAppointment collection
+type BookingBusinessAppointmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BookingAppointment collection
+func (b *BookingBusinessAppointmentsCollectionRequestBuilder) Request() *BookingBusinessAppointmentsCollectionRequest {
+ return &BookingBusinessAppointmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BookingAppointment item
+func (b *BookingBusinessAppointmentsCollectionRequestBuilder) ID(id string) *BookingAppointmentRequestBuilder {
+ bb := &BookingAppointmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// BookingBusinessAppointmentsCollectionRequest is request for BookingAppointment collection
+type BookingBusinessAppointmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BookingAppointment collection
+func (r *BookingBusinessAppointmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]BookingAppointment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BookingAppointment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BookingAppointment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BookingAppointment collection
+func (r *BookingBusinessAppointmentsCollectionRequest) Get(ctx context.Context) ([]BookingAppointment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for BookingAppointment collection
+func (r *BookingBusinessAppointmentsCollectionRequest) Add(ctx context.Context, reqObj *BookingAppointment) (resObj *BookingAppointment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CalendarView returns request builder for BookingAppointment collection
+func (b *BookingBusinessRequestBuilder) CalendarView() *BookingBusinessCalendarViewCollectionRequestBuilder {
+ bb := &BookingBusinessCalendarViewCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendarView"
+ return bb
+}
+
+// BookingBusinessCalendarViewCollectionRequestBuilder is request builder for BookingAppointment collection
+type BookingBusinessCalendarViewCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BookingAppointment collection
+func (b *BookingBusinessCalendarViewCollectionRequestBuilder) Request() *BookingBusinessCalendarViewCollectionRequest {
+ return &BookingBusinessCalendarViewCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BookingAppointment item
+func (b *BookingBusinessCalendarViewCollectionRequestBuilder) ID(id string) *BookingAppointmentRequestBuilder {
+ bb := &BookingAppointmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// BookingBusinessCalendarViewCollectionRequest is request for BookingAppointment collection
+type BookingBusinessCalendarViewCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BookingAppointment collection
+func (r *BookingBusinessCalendarViewCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]BookingAppointment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BookingAppointment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BookingAppointment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BookingAppointment collection
+func (r *BookingBusinessCalendarViewCollectionRequest) Get(ctx context.Context) ([]BookingAppointment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for BookingAppointment collection
+func (r *BookingBusinessCalendarViewCollectionRequest) Add(ctx context.Context, reqObj *BookingAppointment) (resObj *BookingAppointment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Customers returns request builder for BookingCustomer collection
+func (b *BookingBusinessRequestBuilder) Customers() *BookingBusinessCustomersCollectionRequestBuilder {
+ bb := &BookingBusinessCustomersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customers"
+ return bb
+}
+
+// BookingBusinessCustomersCollectionRequestBuilder is request builder for BookingCustomer collection
+type BookingBusinessCustomersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BookingCustomer collection
+func (b *BookingBusinessCustomersCollectionRequestBuilder) Request() *BookingBusinessCustomersCollectionRequest {
+ return &BookingBusinessCustomersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BookingCustomer item
+func (b *BookingBusinessCustomersCollectionRequestBuilder) ID(id string) *BookingCustomerRequestBuilder {
+ bb := &BookingCustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// BookingBusinessCustomersCollectionRequest is request for BookingCustomer collection
+type BookingBusinessCustomersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BookingCustomer collection
+func (r *BookingBusinessCustomersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]BookingCustomer, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BookingCustomer
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BookingCustomer
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BookingCustomer collection
+func (r *BookingBusinessCustomersCollectionRequest) Get(ctx context.Context) ([]BookingCustomer, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for BookingCustomer collection
+func (r *BookingBusinessCustomersCollectionRequest) Add(ctx context.Context, reqObj *BookingCustomer) (resObj *BookingCustomer, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Services returns request builder for BookingService collection
+func (b *BookingBusinessRequestBuilder) Services() *BookingBusinessServicesCollectionRequestBuilder {
+ bb := &BookingBusinessServicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/services"
+ return bb
+}
+
+// BookingBusinessServicesCollectionRequestBuilder is request builder for BookingService collection
+type BookingBusinessServicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BookingService collection
+func (b *BookingBusinessServicesCollectionRequestBuilder) Request() *BookingBusinessServicesCollectionRequest {
+ return &BookingBusinessServicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BookingService item
+func (b *BookingBusinessServicesCollectionRequestBuilder) ID(id string) *BookingServiceRequestBuilder {
+ bb := &BookingServiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// BookingBusinessServicesCollectionRequest is request for BookingService collection
+type BookingBusinessServicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BookingService collection
+func (r *BookingBusinessServicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]BookingService, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BookingService
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BookingService
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BookingService collection
+func (r *BookingBusinessServicesCollectionRequest) Get(ctx context.Context) ([]BookingService, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for BookingService collection
+func (r *BookingBusinessServicesCollectionRequest) Add(ctx context.Context, reqObj *BookingService) (resObj *BookingService, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// StaffMembers returns request builder for BookingStaffMember collection
+func (b *BookingBusinessRequestBuilder) StaffMembers() *BookingBusinessStaffMembersCollectionRequestBuilder {
+ bb := &BookingBusinessStaffMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/staffMembers"
+ return bb
+}
+
+// BookingBusinessStaffMembersCollectionRequestBuilder is request builder for BookingStaffMember collection
+type BookingBusinessStaffMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BookingStaffMember collection
+func (b *BookingBusinessStaffMembersCollectionRequestBuilder) Request() *BookingBusinessStaffMembersCollectionRequest {
+ return &BookingBusinessStaffMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BookingStaffMember item
+func (b *BookingBusinessStaffMembersCollectionRequestBuilder) ID(id string) *BookingStaffMemberRequestBuilder {
+ bb := &BookingStaffMemberRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// BookingBusinessStaffMembersCollectionRequest is request for BookingStaffMember collection
+type BookingBusinessStaffMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BookingStaffMember collection
+func (r *BookingBusinessStaffMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]BookingStaffMember, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BookingStaffMember
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BookingStaffMember
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BookingStaffMember collection
+func (r *BookingBusinessStaffMembersCollectionRequest) Get(ctx context.Context) ([]BookingStaffMember, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for BookingStaffMember collection
+func (r *BookingBusinessStaffMembersCollectionRequest) Add(ctx context.Context, reqObj *BookingStaffMember) (resObj *BookingStaffMember, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingCurrencyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingCurrencyModel.go
new file mode 100644
index 00000000..4faf328d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingCurrencyModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingCurrency undocumented
+type BookingCurrency struct {
+ // Entity is the base model of BookingCurrency
+ Entity
+ // Symbol undocumented
+ Symbol *string `json:"symbol,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingCurrencyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingCurrencyRequest.go
new file mode 100644
index 00000000..64be54e0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingCurrencyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// BookingCurrencyRequestBuilder is request builder for BookingCurrency
+type BookingCurrencyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BookingCurrencyRequest
+func (b *BookingCurrencyRequestBuilder) Request() *BookingCurrencyRequest {
+ return &BookingCurrencyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BookingCurrencyRequest is request for BookingCurrency
+type BookingCurrencyRequest struct{ BaseRequest }
+
+// Get performs GET request for BookingCurrency
+func (r *BookingCurrencyRequest) Get(ctx context.Context) (resObj *BookingCurrency, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BookingCurrency
+func (r *BookingCurrencyRequest) Update(ctx context.Context, reqObj *BookingCurrency) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BookingCurrency
+func (r *BookingCurrencyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingCustomerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingCustomerModel.go
new file mode 100644
index 00000000..794ffdb5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingCustomerModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingCustomer Represents a customer of the business.
+type BookingCustomer struct {
+ // BookingPerson is the base model of BookingCustomer
+ BookingPerson
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingCustomerRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingCustomerRequest.go
new file mode 100644
index 00000000..1bca5e62
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingCustomerRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// BookingCustomerRequestBuilder is request builder for BookingCustomer
+type BookingCustomerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BookingCustomerRequest
+func (b *BookingCustomerRequestBuilder) Request() *BookingCustomerRequest {
+ return &BookingCustomerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BookingCustomerRequest is request for BookingCustomer
+type BookingCustomerRequest struct{ BaseRequest }
+
+// Get performs GET request for BookingCustomer
+func (r *BookingCustomerRequest) Get(ctx context.Context) (resObj *BookingCustomer, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BookingCustomer
+func (r *BookingCustomerRequest) Update(ctx context.Context, reqObj *BookingCustomer) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BookingCustomer
+func (r *BookingCustomerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingInvoiceStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingInvoiceStatusEnum.go
new file mode 100644
index 00000000..70cba7a8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingInvoiceStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingInvoiceStatus undocumented
+type BookingInvoiceStatus int
+
+const (
+ // BookingInvoiceStatusVDraft undocumented
+ BookingInvoiceStatusVDraft BookingInvoiceStatus = 0
+ // BookingInvoiceStatusVReviewing undocumented
+ BookingInvoiceStatusVReviewing BookingInvoiceStatus = 1
+ // BookingInvoiceStatusVOpen undocumented
+ BookingInvoiceStatusVOpen BookingInvoiceStatus = 2
+ // BookingInvoiceStatusVCanceled undocumented
+ BookingInvoiceStatusVCanceled BookingInvoiceStatus = 3
+ // BookingInvoiceStatusVPaid undocumented
+ BookingInvoiceStatusVPaid BookingInvoiceStatus = 4
+ // BookingInvoiceStatusVCorrective undocumented
+ BookingInvoiceStatusVCorrective BookingInvoiceStatus = 5
+)
+
+// BookingInvoiceStatusPDraft returns a pointer to BookingInvoiceStatusVDraft
+func BookingInvoiceStatusPDraft() *BookingInvoiceStatus {
+ v := BookingInvoiceStatusVDraft
+ return &v
+}
+
+// BookingInvoiceStatusPReviewing returns a pointer to BookingInvoiceStatusVReviewing
+func BookingInvoiceStatusPReviewing() *BookingInvoiceStatus {
+ v := BookingInvoiceStatusVReviewing
+ return &v
+}
+
+// BookingInvoiceStatusPOpen returns a pointer to BookingInvoiceStatusVOpen
+func BookingInvoiceStatusPOpen() *BookingInvoiceStatus {
+ v := BookingInvoiceStatusVOpen
+ return &v
+}
+
+// BookingInvoiceStatusPCanceled returns a pointer to BookingInvoiceStatusVCanceled
+func BookingInvoiceStatusPCanceled() *BookingInvoiceStatus {
+ v := BookingInvoiceStatusVCanceled
+ return &v
+}
+
+// BookingInvoiceStatusPPaid returns a pointer to BookingInvoiceStatusVPaid
+func BookingInvoiceStatusPPaid() *BookingInvoiceStatus {
+ v := BookingInvoiceStatusVPaid
+ return &v
+}
+
+// BookingInvoiceStatusPCorrective returns a pointer to BookingInvoiceStatusVCorrective
+func BookingInvoiceStatusPCorrective() *BookingInvoiceStatus {
+ v := BookingInvoiceStatusVCorrective
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingNamedEntityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingNamedEntityModel.go
new file mode 100644
index 00000000..93db447a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingNamedEntityModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingNamedEntity Booking entities that provide a display name.
+type BookingNamedEntity struct {
+ // Entity is the base model of BookingNamedEntity
+ Entity
+ // DisplayName Display name of this entity.
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingPersonModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingPersonModel.go
new file mode 100644
index 00000000..5b5ce664
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingPersonModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingPerson Represents a booking customer or staff member.
+type BookingPerson struct {
+ // BookingNamedEntity is the base model of BookingPerson
+ BookingNamedEntity
+ // EmailAddress The e-mail address of this person.
+ EmailAddress *string `json:"emailAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingPriceTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingPriceTypeEnum.go
new file mode 100644
index 00000000..33bb99a3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingPriceTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingPriceType undocumented
+type BookingPriceType int
+
+const (
+ // BookingPriceTypeVUndefined undocumented
+ BookingPriceTypeVUndefined BookingPriceType = 0
+ // BookingPriceTypeVFixedPrice undocumented
+ BookingPriceTypeVFixedPrice BookingPriceType = 1
+ // BookingPriceTypeVStartingAt undocumented
+ BookingPriceTypeVStartingAt BookingPriceType = 2
+ // BookingPriceTypeVHourly undocumented
+ BookingPriceTypeVHourly BookingPriceType = 3
+ // BookingPriceTypeVFree undocumented
+ BookingPriceTypeVFree BookingPriceType = 4
+ // BookingPriceTypeVPriceVaries undocumented
+ BookingPriceTypeVPriceVaries BookingPriceType = 5
+ // BookingPriceTypeVCallUs undocumented
+ BookingPriceTypeVCallUs BookingPriceType = 6
+ // BookingPriceTypeVNotSet undocumented
+ BookingPriceTypeVNotSet BookingPriceType = 7
+)
+
+// BookingPriceTypePUndefined returns a pointer to BookingPriceTypeVUndefined
+func BookingPriceTypePUndefined() *BookingPriceType {
+ v := BookingPriceTypeVUndefined
+ return &v
+}
+
+// BookingPriceTypePFixedPrice returns a pointer to BookingPriceTypeVFixedPrice
+func BookingPriceTypePFixedPrice() *BookingPriceType {
+ v := BookingPriceTypeVFixedPrice
+ return &v
+}
+
+// BookingPriceTypePStartingAt returns a pointer to BookingPriceTypeVStartingAt
+func BookingPriceTypePStartingAt() *BookingPriceType {
+ v := BookingPriceTypeVStartingAt
+ return &v
+}
+
+// BookingPriceTypePHourly returns a pointer to BookingPriceTypeVHourly
+func BookingPriceTypePHourly() *BookingPriceType {
+ v := BookingPriceTypeVHourly
+ return &v
+}
+
+// BookingPriceTypePFree returns a pointer to BookingPriceTypeVFree
+func BookingPriceTypePFree() *BookingPriceType {
+ v := BookingPriceTypeVFree
+ return &v
+}
+
+// BookingPriceTypePPriceVaries returns a pointer to BookingPriceTypeVPriceVaries
+func BookingPriceTypePPriceVaries() *BookingPriceType {
+ v := BookingPriceTypeVPriceVaries
+ return &v
+}
+
+// BookingPriceTypePCallUs returns a pointer to BookingPriceTypeVCallUs
+func BookingPriceTypePCallUs() *BookingPriceType {
+ v := BookingPriceTypeVCallUs
+ return &v
+}
+
+// BookingPriceTypePNotSet returns a pointer to BookingPriceTypeVNotSet
+func BookingPriceTypePNotSet() *BookingPriceType {
+ v := BookingPriceTypeVNotSet
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingReminderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingReminderModel.go
new file mode 100644
index 00000000..28ef0b87
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingReminderModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// BookingReminder undocumented
+type BookingReminder struct {
+ // Object is the base model of BookingReminder
+ Object
+ // Offset How much time before an appointment the reminder should be sent.
+ Offset *time.Duration `json:"offset,omitempty"`
+ // Recipients Who should receive the reminder.
+ Recipients *BookingReminderRecipients `json:"recipients,omitempty"`
+ // Message Message to send.
+ Message *string `json:"message,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingReminderRecipientsEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingReminderRecipientsEnum.go
new file mode 100644
index 00000000..4cb8c86a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingReminderRecipientsEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingReminderRecipients undocumented
+type BookingReminderRecipients int
+
+const (
+ // BookingReminderRecipientsVAllAttendees undocumented
+ BookingReminderRecipientsVAllAttendees BookingReminderRecipients = 0
+ // BookingReminderRecipientsVStaff undocumented
+ BookingReminderRecipientsVStaff BookingReminderRecipients = 1
+ // BookingReminderRecipientsVCustomer undocumented
+ BookingReminderRecipientsVCustomer BookingReminderRecipients = 2
+)
+
+// BookingReminderRecipientsPAllAttendees returns a pointer to BookingReminderRecipientsVAllAttendees
+func BookingReminderRecipientsPAllAttendees() *BookingReminderRecipients {
+ v := BookingReminderRecipientsVAllAttendees
+ return &v
+}
+
+// BookingReminderRecipientsPStaff returns a pointer to BookingReminderRecipientsVStaff
+func BookingReminderRecipientsPStaff() *BookingReminderRecipients {
+ v := BookingReminderRecipientsVStaff
+ return &v
+}
+
+// BookingReminderRecipientsPCustomer returns a pointer to BookingReminderRecipientsVCustomer
+func BookingReminderRecipientsPCustomer() *BookingReminderRecipients {
+ v := BookingReminderRecipientsVCustomer
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingSchedulingPolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingSchedulingPolicyModel.go
new file mode 100644
index 00000000..ec70cdb6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingSchedulingPolicyModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// BookingSchedulingPolicy undocumented
+type BookingSchedulingPolicy struct {
+ // Object is the base model of BookingSchedulingPolicy
+ Object
+ // TimeSlotInterval Duration of each time slot.
+ TimeSlotInterval *time.Duration `json:"timeSlotInterval,omitempty"`
+ // MinimumLeadTime Minimum lead time for bookings and cancellations.
+ MinimumLeadTime *time.Duration `json:"minimumLeadTime,omitempty"`
+ // MaximumAdvance Maximum number of days in advance that a booking can be made.
+ MaximumAdvance *time.Duration `json:"maximumAdvance,omitempty"`
+ // SendConfirmationsToOwner Notify the business via email when a booking is created or changed.
+ SendConfirmationsToOwner *bool `json:"sendConfirmationsToOwner,omitempty"`
+ // AllowStaffSelection Allow customers to choose a specific person for the booking.
+ AllowStaffSelection *bool `json:"allowStaffSelection,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingServiceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingServiceModel.go
new file mode 100644
index 00000000..945f22bd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingServiceModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// BookingService Represents a particular service offered by a booking business.
+type BookingService struct {
+ // BookingNamedEntity is the base model of BookingService
+ BookingNamedEntity
+ // DefaultDuration undocumented
+ DefaultDuration *time.Duration `json:"defaultDuration,omitempty"`
+ // DefaultLocation undocumented
+ DefaultLocation *Location `json:"defaultLocation,omitempty"`
+ // DefaultPrice undocumented
+ DefaultPrice *float64 `json:"defaultPrice,omitempty"`
+ // DefaultPriceType undocumented
+ DefaultPriceType *BookingPriceType `json:"defaultPriceType,omitempty"`
+ // DefaultReminders The default reminders set in an appointment of this service.
+ DefaultReminders []BookingReminder `json:"defaultReminders,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // IsHiddenFromCustomers undocumented
+ IsHiddenFromCustomers *bool `json:"isHiddenFromCustomers,omitempty"`
+ // Notes undocumented
+ Notes *string `json:"notes,omitempty"`
+ // PreBuffer undocumented
+ PreBuffer *time.Duration `json:"preBuffer,omitempty"`
+ // PostBuffer undocumented
+ PostBuffer *time.Duration `json:"postBuffer,omitempty"`
+ // SchedulingPolicy undocumented
+ SchedulingPolicy *BookingSchedulingPolicy `json:"schedulingPolicy,omitempty"`
+ // StaffMemberIDs undocumented
+ StaffMemberIDs []string `json:"staffMemberIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingServiceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingServiceRequest.go
new file mode 100644
index 00000000..7d840b08
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingServiceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// BookingServiceRequestBuilder is request builder for BookingService
+type BookingServiceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BookingServiceRequest
+func (b *BookingServiceRequestBuilder) Request() *BookingServiceRequest {
+ return &BookingServiceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BookingServiceRequest is request for BookingService
+type BookingServiceRequest struct{ BaseRequest }
+
+// Get performs GET request for BookingService
+func (r *BookingServiceRequest) Get(ctx context.Context) (resObj *BookingService, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BookingService
+func (r *BookingServiceRequest) Update(ctx context.Context, reqObj *BookingService) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BookingService
+func (r *BookingServiceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingStaffMemberModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingStaffMemberModel.go
new file mode 100644
index 00000000..cbb0980e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingStaffMemberModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingStaffMember Represents a staff member who provides services in a business.
+type BookingStaffMember struct {
+ // BookingPerson is the base model of BookingStaffMember
+ BookingPerson
+ // AvailabilityIsAffectedByPersonalCalendar undocumented
+ AvailabilityIsAffectedByPersonalCalendar *bool `json:"availabilityIsAffectedByPersonalCalendar,omitempty"`
+ // ColorIndex undocumented
+ ColorIndex *int `json:"colorIndex,omitempty"`
+ // Role undocumented
+ Role *BookingStaffRole `json:"role,omitempty"`
+ // UseBusinessHours undocumented
+ UseBusinessHours *bool `json:"useBusinessHours,omitempty"`
+ // WorkingHours undocumented
+ WorkingHours []BookingWorkHours `json:"workingHours,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingStaffMemberRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingStaffMemberRequest.go
new file mode 100644
index 00000000..f9baf3bc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingStaffMemberRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// BookingStaffMemberRequestBuilder is request builder for BookingStaffMember
+type BookingStaffMemberRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BookingStaffMemberRequest
+func (b *BookingStaffMemberRequestBuilder) Request() *BookingStaffMemberRequest {
+ return &BookingStaffMemberRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BookingStaffMemberRequest is request for BookingStaffMember
+type BookingStaffMemberRequest struct{ BaseRequest }
+
+// Get performs GET request for BookingStaffMember
+func (r *BookingStaffMemberRequest) Get(ctx context.Context) (resObj *BookingStaffMember, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BookingStaffMember
+func (r *BookingStaffMemberRequest) Update(ctx context.Context, reqObj *BookingStaffMember) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BookingStaffMember
+func (r *BookingStaffMemberRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingStaffRoleEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingStaffRoleEnum.go
new file mode 100644
index 00000000..631718c4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingStaffRoleEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingStaffRole undocumented
+type BookingStaffRole int
+
+const (
+ // BookingStaffRoleVGuest undocumented
+ BookingStaffRoleVGuest BookingStaffRole = 0
+ // BookingStaffRoleVAdministrator undocumented
+ BookingStaffRoleVAdministrator BookingStaffRole = 1
+ // BookingStaffRoleVViewer undocumented
+ BookingStaffRoleVViewer BookingStaffRole = 2
+ // BookingStaffRoleVExternalGuest undocumented
+ BookingStaffRoleVExternalGuest BookingStaffRole = 3
+)
+
+// BookingStaffRolePGuest returns a pointer to BookingStaffRoleVGuest
+func BookingStaffRolePGuest() *BookingStaffRole {
+ v := BookingStaffRoleVGuest
+ return &v
+}
+
+// BookingStaffRolePAdministrator returns a pointer to BookingStaffRoleVAdministrator
+func BookingStaffRolePAdministrator() *BookingStaffRole {
+ v := BookingStaffRoleVAdministrator
+ return &v
+}
+
+// BookingStaffRolePViewer returns a pointer to BookingStaffRoleVViewer
+func BookingStaffRolePViewer() *BookingStaffRole {
+ v := BookingStaffRoleVViewer
+ return &v
+}
+
+// BookingStaffRolePExternalGuest returns a pointer to BookingStaffRoleVExternalGuest
+func BookingStaffRolePExternalGuest() *BookingStaffRole {
+ v := BookingStaffRoleVExternalGuest
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingTypeEnum.go
new file mode 100644
index 00000000..cd66a265
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingType undocumented
+type BookingType int
+
+const (
+ // BookingTypeVUnknown undocumented
+ BookingTypeVUnknown BookingType = 0
+ // BookingTypeVStandard undocumented
+ BookingTypeVStandard BookingType = 1
+ // BookingTypeVReserved undocumented
+ BookingTypeVReserved BookingType = 2
+)
+
+// BookingTypePUnknown returns a pointer to BookingTypeVUnknown
+func BookingTypePUnknown() *BookingType {
+ v := BookingTypeVUnknown
+ return &v
+}
+
+// BookingTypePStandard returns a pointer to BookingTypeVStandard
+func BookingTypePStandard() *BookingType {
+ v := BookingTypeVStandard
+ return &v
+}
+
+// BookingTypePReserved returns a pointer to BookingTypeVReserved
+func BookingTypePReserved() *BookingType {
+ v := BookingTypeVReserved
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingWorkHoursModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingWorkHoursModel.go
new file mode 100644
index 00000000..cca6b9c7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingWorkHoursModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingWorkHours undocumented
+type BookingWorkHours struct {
+ // Object is the base model of BookingWorkHours
+ Object
+ // Day The day of the week represented by this instance.
+ Day *DayOfWeek `json:"day,omitempty"`
+ // TimeSlots A list of start/end times during a day.
+ TimeSlots []BookingWorkTimeSlot `json:"timeSlots,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BookingWorkTimeSlotModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BookingWorkTimeSlotModel.go
new file mode 100644
index 00000000..638b5942
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BookingWorkTimeSlotModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// BookingWorkTimeSlot undocumented
+type BookingWorkTimeSlot struct {
+ // Object is the base model of BookingWorkTimeSlot
+ Object
+ // Start undocumented
+ Start *time.Time `json:"start,omitempty"`
+ // End undocumented
+ End *time.Time `json:"end,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BooleanColumnModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BooleanColumnModel.go
new file mode 100644
index 00000000..0491e7b5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BooleanColumnModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BooleanColumn undocumented
+type BooleanColumn struct {
+ // Object is the base model of BooleanColumn
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BrowserSyncSettingEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/BrowserSyncSettingEnum.go
new file mode 100644
index 00000000..6a6d13f1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BrowserSyncSettingEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BrowserSyncSetting undocumented
+type BrowserSyncSetting int
+
+const (
+ // BrowserSyncSettingVNotConfigured undocumented
+ BrowserSyncSettingVNotConfigured BrowserSyncSetting = 0
+ // BrowserSyncSettingVBlockedWithUserOverride undocumented
+ BrowserSyncSettingVBlockedWithUserOverride BrowserSyncSetting = 1
+ // BrowserSyncSettingVBlocked undocumented
+ BrowserSyncSettingVBlocked BrowserSyncSetting = 2
+)
+
+// BrowserSyncSettingPNotConfigured returns a pointer to BrowserSyncSettingVNotConfigured
+func BrowserSyncSettingPNotConfigured() *BrowserSyncSetting {
+ v := BrowserSyncSettingVNotConfigured
+ return &v
+}
+
+// BrowserSyncSettingPBlockedWithUserOverride returns a pointer to BrowserSyncSettingVBlockedWithUserOverride
+func BrowserSyncSettingPBlockedWithUserOverride() *BrowserSyncSetting {
+ v := BrowserSyncSettingVBlockedWithUserOverride
+ return &v
+}
+
+// BrowserSyncSettingPBlocked returns a pointer to BrowserSyncSettingVBlocked
+func BrowserSyncSettingPBlocked() *BrowserSyncSetting {
+ v := BrowserSyncSettingVBlocked
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BulkManagedDeviceActionResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BulkManagedDeviceActionResultModel.go
new file mode 100644
index 00000000..6fd6c05a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BulkManagedDeviceActionResultModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BulkManagedDeviceActionResult undocumented
+type BulkManagedDeviceActionResult struct {
+ // Object is the base model of BulkManagedDeviceActionResult
+ Object
+ // SuccessfulDeviceIDs Successful devices
+ SuccessfulDeviceIDs []string `json:"successfulDeviceIds,omitempty"`
+ // FailedDeviceIDs Failed devices
+ FailedDeviceIDs []string `json:"failedDeviceIds,omitempty"`
+ // NotFoundDeviceIDs Not found devices
+ NotFoundDeviceIDs []string `json:"notFoundDeviceIds,omitempty"`
+ // NotSupportedDeviceIDs Not supported devices
+ NotSupportedDeviceIDs []string `json:"notSupportedDeviceIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BundleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BundleModel.go
new file mode 100644
index 00000000..beb2281e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BundleModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Bundle undocumented
+type Bundle struct {
+ // Object is the base model of Bundle
+ Object
+ // ChildCount undocumented
+ ChildCount *int `json:"childCount,omitempty"`
+ // Album undocumented
+ Album *Album `json:"album,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowAction.go
new file mode 100644
index 00000000..5f7bb3bc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowAction.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// BusinessFlowRecordDecisionsRequestParameter undocumented
+type BusinessFlowRecordDecisionsRequestParameter struct {
+ // ReviewResult undocumented
+ ReviewResult *string `json:"reviewResult,omitempty"`
+ // Justification undocumented
+ Justification *string `json:"justification,omitempty"`
+}
+
+//
+type BusinessFlowRecordDecisionsRequestBuilder struct{ BaseRequestBuilder }
+
+// RecordDecisions action undocumented
+func (b *BusinessFlowRequestBuilder) RecordDecisions(reqObj *BusinessFlowRecordDecisionsRequestParameter) *BusinessFlowRecordDecisionsRequestBuilder {
+ bb := &BusinessFlowRecordDecisionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/recordDecisions"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type BusinessFlowRecordDecisionsRequest struct{ BaseRequest }
+
+//
+func (b *BusinessFlowRecordDecisionsRequestBuilder) Request() *BusinessFlowRecordDecisionsRequest {
+ return &BusinessFlowRecordDecisionsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *BusinessFlowRecordDecisionsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowModel.go
new file mode 100644
index 00000000..a4594cc8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BusinessFlow undocumented
+type BusinessFlow struct {
+ // Entity is the base model of BusinessFlow
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DeDuplicationID undocumented
+ DeDuplicationID *string `json:"deDuplicationId,omitempty"`
+ // SchemaID undocumented
+ SchemaID *string `json:"schemaId,omitempty"`
+ // CustomData undocumented
+ CustomData *string `json:"customData,omitempty"`
+ // RecordVersion undocumented
+ RecordVersion *string `json:"recordVersion,omitempty"`
+ // Policy undocumented
+ Policy *GovernancePolicy `json:"policy,omitempty"`
+ // PolicyTemplateID undocumented
+ PolicyTemplateID *string `json:"policyTemplateId,omitempty"`
+ // Settings undocumented
+ Settings *BusinessFlowSettings `json:"settings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowRequest.go
new file mode 100644
index 00000000..31e9d49c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// BusinessFlowRequestBuilder is request builder for BusinessFlow
+type BusinessFlowRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BusinessFlowRequest
+func (b *BusinessFlowRequestBuilder) Request() *BusinessFlowRequest {
+ return &BusinessFlowRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BusinessFlowRequest is request for BusinessFlow
+type BusinessFlowRequest struct{ BaseRequest }
+
+// Get performs GET request for BusinessFlow
+func (r *BusinessFlowRequest) Get(ctx context.Context) (resObj *BusinessFlow, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BusinessFlow
+func (r *BusinessFlowRequest) Update(ctx context.Context, reqObj *BusinessFlow) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BusinessFlow
+func (r *BusinessFlowRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowSettingsModel.go
new file mode 100644
index 00000000..0daf3c67
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowSettingsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BusinessFlowSettings undocumented
+type BusinessFlowSettings struct {
+ // AccessReviewSettings is the base model of BusinessFlowSettings
+ AccessReviewSettings
+ // DurationInDays undocumented
+ DurationInDays *int `json:"durationInDays,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowTemplateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowTemplateModel.go
new file mode 100644
index 00000000..52ed6b9b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowTemplateModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BusinessFlowTemplate undocumented
+type BusinessFlowTemplate struct {
+ // Entity is the base model of BusinessFlowTemplate
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowTemplateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowTemplateRequest.go
new file mode 100644
index 00000000..b87eaf9f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/BusinessFlowTemplateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// BusinessFlowTemplateRequestBuilder is request builder for BusinessFlowTemplate
+type BusinessFlowTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BusinessFlowTemplateRequest
+func (b *BusinessFlowTemplateRequestBuilder) Request() *BusinessFlowTemplateRequest {
+ return &BusinessFlowTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BusinessFlowTemplateRequest is request for BusinessFlowTemplate
+type BusinessFlowTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for BusinessFlowTemplate
+func (r *BusinessFlowTemplateRequest) Get(ctx context.Context) (resObj *BusinessFlowTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BusinessFlowTemplate
+func (r *BusinessFlowTemplateRequest) Update(ctx context.Context, reqObj *BusinessFlowTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BusinessFlowTemplate
+func (r *BusinessFlowTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CalculatedColumnModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CalculatedColumnModel.go
new file mode 100644
index 00000000..2447df41
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CalculatedColumnModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CalculatedColumn undocumented
+type CalculatedColumn struct {
+ // Object is the base model of CalculatedColumn
+ Object
+ // Format undocumented
+ Format *string `json:"format,omitempty"`
+ // Formula undocumented
+ Formula *string `json:"formula,omitempty"`
+ // OutputType undocumented
+ OutputType *string `json:"outputType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CalendarAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarAction.go
new file mode 100644
index 00000000..a2cdbbba
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarAction.go
@@ -0,0 +1,106 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// CalendarGetScheduleRequestParameter undocumented
+type CalendarGetScheduleRequestParameter struct {
+ // Schedules undocumented
+ Schedules []string `json:"Schedules,omitempty"`
+ // EndTime undocumented
+ EndTime *DateTimeTimeZone `json:"EndTime,omitempty"`
+ // StartTime undocumented
+ StartTime *DateTimeTimeZone `json:"StartTime,omitempty"`
+ // AvailabilityViewInterval undocumented
+ AvailabilityViewInterval *int `json:"AvailabilityViewInterval,omitempty"`
+}
+
+//
+type CalendarGetScheduleRequestBuilder struct{ BaseRequestBuilder }
+
+// GetSchedule action undocumented
+func (b *CalendarRequestBuilder) GetSchedule(reqObj *CalendarGetScheduleRequestParameter) *CalendarGetScheduleRequestBuilder {
+ bb := &CalendarGetScheduleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getSchedule"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CalendarGetScheduleRequest struct{ BaseRequest }
+
+//
+func (b *CalendarGetScheduleRequestBuilder) Request() *CalendarGetScheduleRequest {
+ return &CalendarGetScheduleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CalendarGetScheduleRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]ScheduleInformation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]ScheduleInformation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]ScheduleInformation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *CalendarGetScheduleRequest) Get(ctx context.Context) ([][]ScheduleInformation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CalendarColorEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarColorEnum.go
new file mode 100644
index 00000000..69e2b393
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarColorEnum.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CalendarColor undocumented
+type CalendarColor int
+
+const (
+ // CalendarColorVLightBlue undocumented
+ CalendarColorVLightBlue CalendarColor = 0
+ // CalendarColorVLightGreen undocumented
+ CalendarColorVLightGreen CalendarColor = 1
+ // CalendarColorVLightOrange undocumented
+ CalendarColorVLightOrange CalendarColor = 2
+ // CalendarColorVLightGray undocumented
+ CalendarColorVLightGray CalendarColor = 3
+ // CalendarColorVLightYellow undocumented
+ CalendarColorVLightYellow CalendarColor = 4
+ // CalendarColorVLightTeal undocumented
+ CalendarColorVLightTeal CalendarColor = 5
+ // CalendarColorVLightPink undocumented
+ CalendarColorVLightPink CalendarColor = 6
+ // CalendarColorVLightBrown undocumented
+ CalendarColorVLightBrown CalendarColor = 7
+ // CalendarColorVLightRed undocumented
+ CalendarColorVLightRed CalendarColor = 8
+ // CalendarColorVMaxColor undocumented
+ CalendarColorVMaxColor CalendarColor = 9
+ // CalendarColorVAuto undocumented
+ CalendarColorVAuto CalendarColor = -1
+)
+
+// CalendarColorPLightBlue returns a pointer to CalendarColorVLightBlue
+func CalendarColorPLightBlue() *CalendarColor {
+ v := CalendarColorVLightBlue
+ return &v
+}
+
+// CalendarColorPLightGreen returns a pointer to CalendarColorVLightGreen
+func CalendarColorPLightGreen() *CalendarColor {
+ v := CalendarColorVLightGreen
+ return &v
+}
+
+// CalendarColorPLightOrange returns a pointer to CalendarColorVLightOrange
+func CalendarColorPLightOrange() *CalendarColor {
+ v := CalendarColorVLightOrange
+ return &v
+}
+
+// CalendarColorPLightGray returns a pointer to CalendarColorVLightGray
+func CalendarColorPLightGray() *CalendarColor {
+ v := CalendarColorVLightGray
+ return &v
+}
+
+// CalendarColorPLightYellow returns a pointer to CalendarColorVLightYellow
+func CalendarColorPLightYellow() *CalendarColor {
+ v := CalendarColorVLightYellow
+ return &v
+}
+
+// CalendarColorPLightTeal returns a pointer to CalendarColorVLightTeal
+func CalendarColorPLightTeal() *CalendarColor {
+ v := CalendarColorVLightTeal
+ return &v
+}
+
+// CalendarColorPLightPink returns a pointer to CalendarColorVLightPink
+func CalendarColorPLightPink() *CalendarColor {
+ v := CalendarColorVLightPink
+ return &v
+}
+
+// CalendarColorPLightBrown returns a pointer to CalendarColorVLightBrown
+func CalendarColorPLightBrown() *CalendarColor {
+ v := CalendarColorVLightBrown
+ return &v
+}
+
+// CalendarColorPLightRed returns a pointer to CalendarColorVLightRed
+func CalendarColorPLightRed() *CalendarColor {
+ v := CalendarColorVLightRed
+ return &v
+}
+
+// CalendarColorPMaxColor returns a pointer to CalendarColorVMaxColor
+func CalendarColorPMaxColor() *CalendarColor {
+ v := CalendarColorVMaxColor
+ return &v
+}
+
+// CalendarColorPAuto returns a pointer to CalendarColorVAuto
+func CalendarColorPAuto() *CalendarColor {
+ v := CalendarColorVAuto
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CalendarGroupModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarGroupModel.go
new file mode 100644
index 00000000..5fb800b6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarGroupModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CalendarGroup undocumented
+type CalendarGroup struct {
+ // Entity is the base model of CalendarGroup
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ClassID undocumented
+ ClassID *UUID `json:"classId,omitempty"`
+ // ChangeKey undocumented
+ ChangeKey *string `json:"changeKey,omitempty"`
+ // Calendars undocumented
+ Calendars []Calendar `json:"calendars,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CalendarGroupRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarGroupRequest.go
new file mode 100644
index 00000000..677c6859
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarGroupRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// CalendarGroupRequestBuilder is request builder for CalendarGroup
+type CalendarGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CalendarGroupRequest
+func (b *CalendarGroupRequestBuilder) Request() *CalendarGroupRequest {
+ return &CalendarGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CalendarGroupRequest is request for CalendarGroup
+type CalendarGroupRequest struct{ BaseRequest }
+
+// Get performs GET request for CalendarGroup
+func (r *CalendarGroupRequest) Get(ctx context.Context) (resObj *CalendarGroup, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CalendarGroup
+func (r *CalendarGroupRequest) Update(ctx context.Context, reqObj *CalendarGroup) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CalendarGroup
+func (r *CalendarGroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Calendars returns request builder for Calendar collection
+func (b *CalendarGroupRequestBuilder) Calendars() *CalendarGroupCalendarsCollectionRequestBuilder {
+ bb := &CalendarGroupCalendarsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendars"
+ return bb
+}
+
+// CalendarGroupCalendarsCollectionRequestBuilder is request builder for Calendar collection
+type CalendarGroupCalendarsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Calendar collection
+func (b *CalendarGroupCalendarsCollectionRequestBuilder) Request() *CalendarGroupCalendarsCollectionRequest {
+ return &CalendarGroupCalendarsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Calendar item
+func (b *CalendarGroupCalendarsCollectionRequestBuilder) ID(id string) *CalendarRequestBuilder {
+ bb := &CalendarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CalendarGroupCalendarsCollectionRequest is request for Calendar collection
+type CalendarGroupCalendarsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Calendar collection
+func (r *CalendarGroupCalendarsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Calendar, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Calendar
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Calendar
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Calendar collection
+func (r *CalendarGroupCalendarsCollectionRequest) Get(ctx context.Context) ([]Calendar, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Calendar collection
+func (r *CalendarGroupCalendarsCollectionRequest) Add(ctx context.Context, reqObj *Calendar) (resObj *Calendar, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CalendarModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarModel.go
new file mode 100644
index 00000000..e47574d9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Calendar undocumented
+type Calendar struct {
+ // Entity is the base model of Calendar
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Color undocumented
+ Color *CalendarColor `json:"color,omitempty"`
+ // HexColor undocumented
+ HexColor *string `json:"hexColor,omitempty"`
+ // IsDefaultCalendar undocumented
+ IsDefaultCalendar *bool `json:"isDefaultCalendar,omitempty"`
+ // ChangeKey undocumented
+ ChangeKey *string `json:"changeKey,omitempty"`
+ // CanShare undocumented
+ CanShare *bool `json:"canShare,omitempty"`
+ // CanViewPrivateItems undocumented
+ CanViewPrivateItems *bool `json:"canViewPrivateItems,omitempty"`
+ // IsShared undocumented
+ IsShared *bool `json:"isShared,omitempty"`
+ // IsSharedWithMe undocumented
+ IsSharedWithMe *bool `json:"isSharedWithMe,omitempty"`
+ // CanEdit undocumented
+ CanEdit *bool `json:"canEdit,omitempty"`
+ // Owner undocumented
+ Owner *EmailAddress `json:"owner,omitempty"`
+ // AllowedOnlineMeetingProviders undocumented
+ AllowedOnlineMeetingProviders []OnlineMeetingProviderType `json:"allowedOnlineMeetingProviders,omitempty"`
+ // DefaultOnlineMeetingProvider undocumented
+ DefaultOnlineMeetingProvider *OnlineMeetingProviderType `json:"defaultOnlineMeetingProvider,omitempty"`
+ // IsTallyingResponses undocumented
+ IsTallyingResponses *bool `json:"isTallyingResponses,omitempty"`
+ // IsRemovable undocumented
+ IsRemovable *bool `json:"isRemovable,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+ // CalendarPermissions undocumented
+ CalendarPermissions []CalendarPermission `json:"calendarPermissions,omitempty"`
+ // Events undocumented
+ Events []Event `json:"events,omitempty"`
+ // CalendarView undocumented
+ CalendarView []Event `json:"calendarView,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CalendarPermissionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarPermissionModel.go
new file mode 100644
index 00000000..53368224
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarPermissionModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CalendarPermission undocumented
+type CalendarPermission struct {
+ // Entity is the base model of CalendarPermission
+ Entity
+ // EmailAddress undocumented
+ EmailAddress *EmailAddress `json:"emailAddress,omitempty"`
+ // IsRemovable undocumented
+ IsRemovable *bool `json:"isRemovable,omitempty"`
+ // IsInsideOrganization undocumented
+ IsInsideOrganization *bool `json:"isInsideOrganization,omitempty"`
+ // Role undocumented
+ Role *CalendarRoleType `json:"role,omitempty"`
+ // AllowedRoles undocumented
+ AllowedRoles []CalendarRoleType `json:"allowedRoles,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CalendarPermissionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarPermissionRequest.go
new file mode 100644
index 00000000..41a0952c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarPermissionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CalendarPermissionRequestBuilder is request builder for CalendarPermission
+type CalendarPermissionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CalendarPermissionRequest
+func (b *CalendarPermissionRequestBuilder) Request() *CalendarPermissionRequest {
+ return &CalendarPermissionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CalendarPermissionRequest is request for CalendarPermission
+type CalendarPermissionRequest struct{ BaseRequest }
+
+// Get performs GET request for CalendarPermission
+func (r *CalendarPermissionRequest) Get(ctx context.Context) (resObj *CalendarPermission, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CalendarPermission
+func (r *CalendarPermissionRequest) Update(ctx context.Context, reqObj *CalendarPermission) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CalendarPermission
+func (r *CalendarPermissionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CalendarRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarRequest.go
new file mode 100644
index 00000000..15f4d975
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarRequest.go
@@ -0,0 +1,515 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// CalendarRequestBuilder is request builder for Calendar
+type CalendarRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CalendarRequest
+func (b *CalendarRequestBuilder) Request() *CalendarRequest {
+ return &CalendarRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CalendarRequest is request for Calendar
+type CalendarRequest struct{ BaseRequest }
+
+// Get performs GET request for Calendar
+func (r *CalendarRequest) Get(ctx context.Context) (resObj *Calendar, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Calendar
+func (r *CalendarRequest) Update(ctx context.Context, reqObj *Calendar) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Calendar
+func (r *CalendarRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// CalendarPermissions returns request builder for CalendarPermission collection
+func (b *CalendarRequestBuilder) CalendarPermissions() *CalendarCalendarPermissionsCollectionRequestBuilder {
+ bb := &CalendarCalendarPermissionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendarPermissions"
+ return bb
+}
+
+// CalendarCalendarPermissionsCollectionRequestBuilder is request builder for CalendarPermission collection
+type CalendarCalendarPermissionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CalendarPermission collection
+func (b *CalendarCalendarPermissionsCollectionRequestBuilder) Request() *CalendarCalendarPermissionsCollectionRequest {
+ return &CalendarCalendarPermissionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CalendarPermission item
+func (b *CalendarCalendarPermissionsCollectionRequestBuilder) ID(id string) *CalendarPermissionRequestBuilder {
+ bb := &CalendarPermissionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CalendarCalendarPermissionsCollectionRequest is request for CalendarPermission collection
+type CalendarCalendarPermissionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CalendarPermission collection
+func (r *CalendarCalendarPermissionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]CalendarPermission, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CalendarPermission
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CalendarPermission
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CalendarPermission collection
+func (r *CalendarCalendarPermissionsCollectionRequest) Get(ctx context.Context) ([]CalendarPermission, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for CalendarPermission collection
+func (r *CalendarCalendarPermissionsCollectionRequest) Add(ctx context.Context, reqObj *CalendarPermission) (resObj *CalendarPermission, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CalendarView returns request builder for Event collection
+func (b *CalendarRequestBuilder) CalendarView() *CalendarCalendarViewCollectionRequestBuilder {
+ bb := &CalendarCalendarViewCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendarView"
+ return bb
+}
+
+// CalendarCalendarViewCollectionRequestBuilder is request builder for Event collection
+type CalendarCalendarViewCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Event collection
+func (b *CalendarCalendarViewCollectionRequestBuilder) Request() *CalendarCalendarViewCollectionRequest {
+ return &CalendarCalendarViewCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Event item
+func (b *CalendarCalendarViewCollectionRequestBuilder) ID(id string) *EventRequestBuilder {
+ bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CalendarCalendarViewCollectionRequest is request for Event collection
+type CalendarCalendarViewCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Event collection
+func (r *CalendarCalendarViewCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Event, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Event
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Event
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Event collection
+func (r *CalendarCalendarViewCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Event collection
+func (r *CalendarCalendarViewCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Events returns request builder for Event collection
+func (b *CalendarRequestBuilder) Events() *CalendarEventsCollectionRequestBuilder {
+ bb := &CalendarEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/events"
+ return bb
+}
+
+// CalendarEventsCollectionRequestBuilder is request builder for Event collection
+type CalendarEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Event collection
+func (b *CalendarEventsCollectionRequestBuilder) Request() *CalendarEventsCollectionRequest {
+ return &CalendarEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Event item
+func (b *CalendarEventsCollectionRequestBuilder) ID(id string) *EventRequestBuilder {
+ bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CalendarEventsCollectionRequest is request for Event collection
+type CalendarEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Event collection
+func (r *CalendarEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Event, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Event
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Event
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Event collection
+func (r *CalendarEventsCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Event collection
+func (r *CalendarEventsCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *CalendarRequestBuilder) MultiValueExtendedProperties() *CalendarMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &CalendarMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// CalendarMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type CalendarMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *CalendarMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *CalendarMultiValueExtendedPropertiesCollectionRequest {
+ return &CalendarMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *CalendarMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CalendarMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type CalendarMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *CalendarMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *CalendarMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *CalendarMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *CalendarRequestBuilder) SingleValueExtendedProperties() *CalendarSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &CalendarSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// CalendarSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type CalendarSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *CalendarSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *CalendarSingleValueExtendedPropertiesCollectionRequest {
+ return &CalendarSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *CalendarSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CalendarSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type CalendarSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *CalendarSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *CalendarSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *CalendarSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CalendarRoleTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarRoleTypeEnum.go
new file mode 100644
index 00000000..7b744d18
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarRoleTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CalendarRoleType undocumented
+type CalendarRoleType int
+
+const (
+ // CalendarRoleTypeVNone undocumented
+ CalendarRoleTypeVNone CalendarRoleType = 0
+ // CalendarRoleTypeVFreeBusyRead undocumented
+ CalendarRoleTypeVFreeBusyRead CalendarRoleType = 1
+ // CalendarRoleTypeVLimitedRead undocumented
+ CalendarRoleTypeVLimitedRead CalendarRoleType = 2
+ // CalendarRoleTypeVRead undocumented
+ CalendarRoleTypeVRead CalendarRoleType = 3
+ // CalendarRoleTypeVWrite undocumented
+ CalendarRoleTypeVWrite CalendarRoleType = 4
+ // CalendarRoleTypeVDelegateWithoutPrivateEventAccess undocumented
+ CalendarRoleTypeVDelegateWithoutPrivateEventAccess CalendarRoleType = 5
+ // CalendarRoleTypeVDelegateWithPrivateEventAccess undocumented
+ CalendarRoleTypeVDelegateWithPrivateEventAccess CalendarRoleType = 6
+ // CalendarRoleTypeVCustom undocumented
+ CalendarRoleTypeVCustom CalendarRoleType = 7
+)
+
+// CalendarRoleTypePNone returns a pointer to CalendarRoleTypeVNone
+func CalendarRoleTypePNone() *CalendarRoleType {
+ v := CalendarRoleTypeVNone
+ return &v
+}
+
+// CalendarRoleTypePFreeBusyRead returns a pointer to CalendarRoleTypeVFreeBusyRead
+func CalendarRoleTypePFreeBusyRead() *CalendarRoleType {
+ v := CalendarRoleTypeVFreeBusyRead
+ return &v
+}
+
+// CalendarRoleTypePLimitedRead returns a pointer to CalendarRoleTypeVLimitedRead
+func CalendarRoleTypePLimitedRead() *CalendarRoleType {
+ v := CalendarRoleTypeVLimitedRead
+ return &v
+}
+
+// CalendarRoleTypePRead returns a pointer to CalendarRoleTypeVRead
+func CalendarRoleTypePRead() *CalendarRoleType {
+ v := CalendarRoleTypeVRead
+ return &v
+}
+
+// CalendarRoleTypePWrite returns a pointer to CalendarRoleTypeVWrite
+func CalendarRoleTypePWrite() *CalendarRoleType {
+ v := CalendarRoleTypeVWrite
+ return &v
+}
+
+// CalendarRoleTypePDelegateWithoutPrivateEventAccess returns a pointer to CalendarRoleTypeVDelegateWithoutPrivateEventAccess
+func CalendarRoleTypePDelegateWithoutPrivateEventAccess() *CalendarRoleType {
+ v := CalendarRoleTypeVDelegateWithoutPrivateEventAccess
+ return &v
+}
+
+// CalendarRoleTypePDelegateWithPrivateEventAccess returns a pointer to CalendarRoleTypeVDelegateWithPrivateEventAccess
+func CalendarRoleTypePDelegateWithPrivateEventAccess() *CalendarRoleType {
+ v := CalendarRoleTypeVDelegateWithPrivateEventAccess
+ return &v
+}
+
+// CalendarRoleTypePCustom returns a pointer to CalendarRoleTypeVCustom
+func CalendarRoleTypePCustom() *CalendarRoleType {
+ v := CalendarRoleTypeVCustom
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingActionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingActionEnum.go
new file mode 100644
index 00000000..8f924d03
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingActionEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CalendarSharingAction undocumented
+type CalendarSharingAction int
+
+const (
+ // CalendarSharingActionVAccept undocumented
+ CalendarSharingActionVAccept CalendarSharingAction = 0
+ // CalendarSharingActionVAcceptAndViewCalendar undocumented
+ CalendarSharingActionVAcceptAndViewCalendar CalendarSharingAction = 1
+ // CalendarSharingActionVViewCalendar undocumented
+ CalendarSharingActionVViewCalendar CalendarSharingAction = 2
+ // CalendarSharingActionVAddThisCalendar undocumented
+ CalendarSharingActionVAddThisCalendar CalendarSharingAction = 3
+)
+
+// CalendarSharingActionPAccept returns a pointer to CalendarSharingActionVAccept
+func CalendarSharingActionPAccept() *CalendarSharingAction {
+ v := CalendarSharingActionVAccept
+ return &v
+}
+
+// CalendarSharingActionPAcceptAndViewCalendar returns a pointer to CalendarSharingActionVAcceptAndViewCalendar
+func CalendarSharingActionPAcceptAndViewCalendar() *CalendarSharingAction {
+ v := CalendarSharingActionVAcceptAndViewCalendar
+ return &v
+}
+
+// CalendarSharingActionPViewCalendar returns a pointer to CalendarSharingActionVViewCalendar
+func CalendarSharingActionPViewCalendar() *CalendarSharingAction {
+ v := CalendarSharingActionVViewCalendar
+ return &v
+}
+
+// CalendarSharingActionPAddThisCalendar returns a pointer to CalendarSharingActionVAddThisCalendar
+func CalendarSharingActionPAddThisCalendar() *CalendarSharingAction {
+ v := CalendarSharingActionVAddThisCalendar
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingActionImportanceEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingActionImportanceEnum.go
new file mode 100644
index 00000000..8aab1b0c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingActionImportanceEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CalendarSharingActionImportance undocumented
+type CalendarSharingActionImportance int
+
+const (
+ // CalendarSharingActionImportanceVPrimary undocumented
+ CalendarSharingActionImportanceVPrimary CalendarSharingActionImportance = 0
+ // CalendarSharingActionImportanceVSecondary undocumented
+ CalendarSharingActionImportanceVSecondary CalendarSharingActionImportance = 1
+)
+
+// CalendarSharingActionImportancePPrimary returns a pointer to CalendarSharingActionImportanceVPrimary
+func CalendarSharingActionImportancePPrimary() *CalendarSharingActionImportance {
+ v := CalendarSharingActionImportanceVPrimary
+ return &v
+}
+
+// CalendarSharingActionImportancePSecondary returns a pointer to CalendarSharingActionImportanceVSecondary
+func CalendarSharingActionImportancePSecondary() *CalendarSharingActionImportance {
+ v := CalendarSharingActionImportanceVSecondary
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingActionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingActionTypeEnum.go
new file mode 100644
index 00000000..12728061
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingActionTypeEnum.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CalendarSharingActionType undocumented
+type CalendarSharingActionType int
+
+const (
+ // CalendarSharingActionTypeVAccept undocumented
+ CalendarSharingActionTypeVAccept CalendarSharingActionType = 0
+)
+
+// CalendarSharingActionTypePAccept returns a pointer to CalendarSharingActionTypeVAccept
+func CalendarSharingActionTypePAccept() *CalendarSharingActionType {
+ v := CalendarSharingActionTypeVAccept
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingMessageAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingMessageAction.go
new file mode 100644
index 00000000..7c049f06
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingMessageAction.go
@@ -0,0 +1,36 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CalendarSharingMessageAcceptRequestParameter undocumented
+type CalendarSharingMessageAcceptRequestParameter struct {
+}
+
+//
+type CalendarSharingMessageAcceptRequestBuilder struct{ BaseRequestBuilder }
+
+// Accept action undocumented
+func (b *CalendarSharingMessageRequestBuilder) Accept(reqObj *CalendarSharingMessageAcceptRequestParameter) *CalendarSharingMessageAcceptRequestBuilder {
+ bb := &CalendarSharingMessageAcceptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/accept"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CalendarSharingMessageAcceptRequest struct{ BaseRequest }
+
+//
+func (b *CalendarSharingMessageAcceptRequestBuilder) Request() *CalendarSharingMessageAcceptRequest {
+ return &CalendarSharingMessageAcceptRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CalendarSharingMessageAcceptRequest) Post(ctx context.Context) (resObj *Calendar, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingMessageActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingMessageActionModel.go
new file mode 100644
index 00000000..45f3aca4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingMessageActionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CalendarSharingMessageAction undocumented
+type CalendarSharingMessageAction struct {
+ // Object is the base model of CalendarSharingMessageAction
+ Object
+ // Importance undocumented
+ Importance *CalendarSharingActionImportance `json:"importance,omitempty"`
+ // ActionType undocumented
+ ActionType *CalendarSharingActionType `json:"actionType,omitempty"`
+ // Action undocumented
+ Action *CalendarSharingAction `json:"action,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingMessageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingMessageModel.go
new file mode 100644
index 00000000..ce8c1fa1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingMessageModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CalendarSharingMessage undocumented
+type CalendarSharingMessage struct {
+ // Message is the base model of CalendarSharingMessage
+ Message
+ // CanAccept undocumented
+ CanAccept *bool `json:"canAccept,omitempty"`
+ // SuggestedCalendarName undocumented
+ SuggestedCalendarName *string `json:"suggestedCalendarName,omitempty"`
+ // SharingMessageAction undocumented
+ SharingMessageAction *CalendarSharingMessageAction `json:"sharingMessageAction,omitempty"`
+ // SharingMessageActions undocumented
+ SharingMessageActions []CalendarSharingMessageAction `json:"sharingMessageActions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingMessageRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingMessageRequest.go
new file mode 100644
index 00000000..fc7191dc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CalendarSharingMessageRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CalendarSharingMessageRequestBuilder is request builder for CalendarSharingMessage
+type CalendarSharingMessageRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CalendarSharingMessageRequest
+func (b *CalendarSharingMessageRequestBuilder) Request() *CalendarSharingMessageRequest {
+ return &CalendarSharingMessageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CalendarSharingMessageRequest is request for CalendarSharingMessage
+type CalendarSharingMessageRequest struct{ BaseRequest }
+
+// Get performs GET request for CalendarSharingMessage
+func (r *CalendarSharingMessageRequest) Get(ctx context.Context) (resObj *CalendarSharingMessage, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CalendarSharingMessage
+func (r *CalendarSharingMessageRequest) Update(ctx context.Context, reqObj *CalendarSharingMessage) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CalendarSharingMessage
+func (r *CalendarSharingMessageRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CallAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/CallAction.go
new file mode 100644
index 00000000..28e0316a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CallAction.go
@@ -0,0 +1,513 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CallAnswerRequestParameter undocumented
+type CallAnswerRequestParameter struct {
+ // CallbackURI undocumented
+ CallbackURI *string `json:"callbackUri,omitempty"`
+ // MediaConfig undocumented
+ MediaConfig *MediaConfig `json:"mediaConfig,omitempty"`
+ // AcceptedModalities undocumented
+ AcceptedModalities []Modality `json:"acceptedModalities,omitempty"`
+}
+
+// CallCancelMediaProcessingRequestParameter undocumented
+type CallCancelMediaProcessingRequestParameter struct {
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// CallChangeScreenSharingRoleRequestParameter undocumented
+type CallChangeScreenSharingRoleRequestParameter struct {
+ // Role undocumented
+ Role *ScreenSharingRole `json:"role,omitempty"`
+}
+
+// CallKeepAliveRequestParameter undocumented
+type CallKeepAliveRequestParameter struct {
+}
+
+// CallMuteRequestParameter undocumented
+type CallMuteRequestParameter struct {
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// CallPlayPromptRequestParameter undocumented
+type CallPlayPromptRequestParameter struct {
+ // Prompts undocumented
+ Prompts []Prompt `json:"prompts,omitempty"`
+ // Loop undocumented
+ Loop *bool `json:"loop,omitempty"`
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// CallRecordRequestParameter undocumented
+type CallRecordRequestParameter struct {
+ // Prompts undocumented
+ Prompts []Prompt `json:"prompts,omitempty"`
+ // BargeInAllowed undocumented
+ BargeInAllowed *bool `json:"bargeInAllowed,omitempty"`
+ // InitialSilenceTimeoutInSeconds undocumented
+ InitialSilenceTimeoutInSeconds *int `json:"initialSilenceTimeoutInSeconds,omitempty"`
+ // MaxSilenceTimeoutInSeconds undocumented
+ MaxSilenceTimeoutInSeconds *int `json:"maxSilenceTimeoutInSeconds,omitempty"`
+ // MaxRecordDurationInSeconds undocumented
+ MaxRecordDurationInSeconds *int `json:"maxRecordDurationInSeconds,omitempty"`
+ // PlayBeep undocumented
+ PlayBeep *bool `json:"playBeep,omitempty"`
+ // StreamWhileRecording undocumented
+ StreamWhileRecording *bool `json:"streamWhileRecording,omitempty"`
+ // StopTones undocumented
+ StopTones []string `json:"stopTones,omitempty"`
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// CallRecordResponseRequestParameter undocumented
+type CallRecordResponseRequestParameter struct {
+ // Prompts undocumented
+ Prompts []Prompt `json:"prompts,omitempty"`
+ // BargeInAllowed undocumented
+ BargeInAllowed *bool `json:"bargeInAllowed,omitempty"`
+ // InitialSilenceTimeoutInSeconds undocumented
+ InitialSilenceTimeoutInSeconds *int `json:"initialSilenceTimeoutInSeconds,omitempty"`
+ // MaxSilenceTimeoutInSeconds undocumented
+ MaxSilenceTimeoutInSeconds *int `json:"maxSilenceTimeoutInSeconds,omitempty"`
+ // MaxRecordDurationInSeconds undocumented
+ MaxRecordDurationInSeconds *int `json:"maxRecordDurationInSeconds,omitempty"`
+ // PlayBeep undocumented
+ PlayBeep *bool `json:"playBeep,omitempty"`
+ // StreamWhileRecording undocumented
+ StreamWhileRecording *bool `json:"streamWhileRecording,omitempty"`
+ // StopTones undocumented
+ StopTones []string `json:"stopTones,omitempty"`
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// CallRedirectRequestParameter undocumented
+type CallRedirectRequestParameter struct {
+ // Targets undocumented
+ Targets []InvitationParticipantInfo `json:"targets,omitempty"`
+ // TargetDisposition undocumented
+ TargetDisposition *CallDisposition `json:"targetDisposition,omitempty"`
+ // Timeout undocumented
+ Timeout *int `json:"timeout,omitempty"`
+ // MaskCallee undocumented
+ MaskCallee *bool `json:"maskCallee,omitempty"`
+ // MaskCaller undocumented
+ MaskCaller *bool `json:"maskCaller,omitempty"`
+ // CallbackURI undocumented
+ CallbackURI *string `json:"callbackUri,omitempty"`
+}
+
+// CallRejectRequestParameter undocumented
+type CallRejectRequestParameter struct {
+ // Reason undocumented
+ Reason *RejectReason `json:"reason,omitempty"`
+ // CallbackURI undocumented
+ CallbackURI *string `json:"callbackUri,omitempty"`
+}
+
+// CallSubscribeToToneRequestParameter undocumented
+type CallSubscribeToToneRequestParameter struct {
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// CallTransferRequestParameter undocumented
+type CallTransferRequestParameter struct {
+ // TransferTarget undocumented
+ TransferTarget *InvitationParticipantInfo `json:"transferTarget,omitempty"`
+}
+
+// CallUnmuteRequestParameter undocumented
+type CallUnmuteRequestParameter struct {
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// CallUpdateRecordingStatusRequestParameter undocumented
+type CallUpdateRecordingStatusRequestParameter struct {
+ // Status undocumented
+ Status *RecordingStatus `json:"status,omitempty"`
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+//
+type CallAnswerRequestBuilder struct{ BaseRequestBuilder }
+
+// Answer action undocumented
+func (b *CallRequestBuilder) Answer(reqObj *CallAnswerRequestParameter) *CallAnswerRequestBuilder {
+ bb := &CallAnswerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/answer"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallAnswerRequest struct{ BaseRequest }
+
+//
+func (b *CallAnswerRequestBuilder) Request() *CallAnswerRequest {
+ return &CallAnswerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallAnswerRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type CallCancelMediaProcessingRequestBuilder struct{ BaseRequestBuilder }
+
+// CancelMediaProcessing action undocumented
+func (b *CallRequestBuilder) CancelMediaProcessing(reqObj *CallCancelMediaProcessingRequestParameter) *CallCancelMediaProcessingRequestBuilder {
+ bb := &CallCancelMediaProcessingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancelMediaProcessing"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallCancelMediaProcessingRequest struct{ BaseRequest }
+
+//
+func (b *CallCancelMediaProcessingRequestBuilder) Request() *CallCancelMediaProcessingRequest {
+ return &CallCancelMediaProcessingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallCancelMediaProcessingRequest) Post(ctx context.Context) (resObj *CancelMediaProcessingOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type CallChangeScreenSharingRoleRequestBuilder struct{ BaseRequestBuilder }
+
+// ChangeScreenSharingRole action undocumented
+func (b *CallRequestBuilder) ChangeScreenSharingRole(reqObj *CallChangeScreenSharingRoleRequestParameter) *CallChangeScreenSharingRoleRequestBuilder {
+ bb := &CallChangeScreenSharingRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/changeScreenSharingRole"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallChangeScreenSharingRoleRequest struct{ BaseRequest }
+
+//
+func (b *CallChangeScreenSharingRoleRequestBuilder) Request() *CallChangeScreenSharingRoleRequest {
+ return &CallChangeScreenSharingRoleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallChangeScreenSharingRoleRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type CallKeepAliveRequestBuilder struct{ BaseRequestBuilder }
+
+// KeepAlive action undocumented
+func (b *CallRequestBuilder) KeepAlive(reqObj *CallKeepAliveRequestParameter) *CallKeepAliveRequestBuilder {
+ bb := &CallKeepAliveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/keepAlive"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallKeepAliveRequest struct{ BaseRequest }
+
+//
+func (b *CallKeepAliveRequestBuilder) Request() *CallKeepAliveRequest {
+ return &CallKeepAliveRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallKeepAliveRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type CallMuteRequestBuilder struct{ BaseRequestBuilder }
+
+// Mute action undocumented
+func (b *CallRequestBuilder) Mute(reqObj *CallMuteRequestParameter) *CallMuteRequestBuilder {
+ bb := &CallMuteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/mute"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallMuteRequest struct{ BaseRequest }
+
+//
+func (b *CallMuteRequestBuilder) Request() *CallMuteRequest {
+ return &CallMuteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallMuteRequest) Post(ctx context.Context) (resObj *MuteParticipantOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type CallPlayPromptRequestBuilder struct{ BaseRequestBuilder }
+
+// PlayPrompt action undocumented
+func (b *CallRequestBuilder) PlayPrompt(reqObj *CallPlayPromptRequestParameter) *CallPlayPromptRequestBuilder {
+ bb := &CallPlayPromptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/playPrompt"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallPlayPromptRequest struct{ BaseRequest }
+
+//
+func (b *CallPlayPromptRequestBuilder) Request() *CallPlayPromptRequest {
+ return &CallPlayPromptRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallPlayPromptRequest) Post(ctx context.Context) (resObj *PlayPromptOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type CallRecordRequestBuilder struct{ BaseRequestBuilder }
+
+// Record action undocumented
+func (b *CallRequestBuilder) Record(reqObj *CallRecordRequestParameter) *CallRecordRequestBuilder {
+ bb := &CallRecordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/record"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallRecordRequest struct{ BaseRequest }
+
+//
+func (b *CallRecordRequestBuilder) Request() *CallRecordRequest {
+ return &CallRecordRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallRecordRequest) Post(ctx context.Context) (resObj *RecordOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type CallRecordResponseRequestBuilder struct{ BaseRequestBuilder }
+
+// RecordResponse action undocumented
+func (b *CallRequestBuilder) RecordResponse(reqObj *CallRecordResponseRequestParameter) *CallRecordResponseRequestBuilder {
+ bb := &CallRecordResponseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/recordResponse"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallRecordResponseRequest struct{ BaseRequest }
+
+//
+func (b *CallRecordResponseRequestBuilder) Request() *CallRecordResponseRequest {
+ return &CallRecordResponseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallRecordResponseRequest) Post(ctx context.Context) (resObj *RecordOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type CallRedirectRequestBuilder struct{ BaseRequestBuilder }
+
+// Redirect action undocumented
+func (b *CallRequestBuilder) Redirect(reqObj *CallRedirectRequestParameter) *CallRedirectRequestBuilder {
+ bb := &CallRedirectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/redirect"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallRedirectRequest struct{ BaseRequest }
+
+//
+func (b *CallRedirectRequestBuilder) Request() *CallRedirectRequest {
+ return &CallRedirectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallRedirectRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type CallRejectRequestBuilder struct{ BaseRequestBuilder }
+
+// Reject action undocumented
+func (b *CallRequestBuilder) Reject(reqObj *CallRejectRequestParameter) *CallRejectRequestBuilder {
+ bb := &CallRejectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/reject"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallRejectRequest struct{ BaseRequest }
+
+//
+func (b *CallRejectRequestBuilder) Request() *CallRejectRequest {
+ return &CallRejectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallRejectRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type CallSubscribeToToneRequestBuilder struct{ BaseRequestBuilder }
+
+// SubscribeToTone action undocumented
+func (b *CallRequestBuilder) SubscribeToTone(reqObj *CallSubscribeToToneRequestParameter) *CallSubscribeToToneRequestBuilder {
+ bb := &CallSubscribeToToneRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/subscribeToTone"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallSubscribeToToneRequest struct{ BaseRequest }
+
+//
+func (b *CallSubscribeToToneRequestBuilder) Request() *CallSubscribeToToneRequest {
+ return &CallSubscribeToToneRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallSubscribeToToneRequest) Post(ctx context.Context) (resObj *SubscribeToToneOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type CallTransferRequestBuilder struct{ BaseRequestBuilder }
+
+// Transfer action undocumented
+func (b *CallRequestBuilder) Transfer(reqObj *CallTransferRequestParameter) *CallTransferRequestBuilder {
+ bb := &CallTransferRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/transfer"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallTransferRequest struct{ BaseRequest }
+
+//
+func (b *CallTransferRequestBuilder) Request() *CallTransferRequest {
+ return &CallTransferRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallTransferRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type CallUnmuteRequestBuilder struct{ BaseRequestBuilder }
+
+// Unmute action undocumented
+func (b *CallRequestBuilder) Unmute(reqObj *CallUnmuteRequestParameter) *CallUnmuteRequestBuilder {
+ bb := &CallUnmuteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unmute"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallUnmuteRequest struct{ BaseRequest }
+
+//
+func (b *CallUnmuteRequestBuilder) Request() *CallUnmuteRequest {
+ return &CallUnmuteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallUnmuteRequest) Post(ctx context.Context) (resObj *UnmuteParticipantOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type CallUpdateRecordingStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateRecordingStatus action undocumented
+func (b *CallRequestBuilder) UpdateRecordingStatus(reqObj *CallUpdateRecordingStatusRequestParameter) *CallUpdateRecordingStatusRequestBuilder {
+ bb := &CallUpdateRecordingStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateRecordingStatus"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallUpdateRecordingStatusRequest struct{ BaseRequest }
+
+//
+func (b *CallUpdateRecordingStatusRequestBuilder) Request() *CallUpdateRecordingStatusRequest {
+ return &CallUpdateRecordingStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallUpdateRecordingStatusRequest) Post(ctx context.Context) (resObj *UpdateRecordingStatusOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CallActivityStatisticsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CallActivityStatisticsModel.go
new file mode 100644
index 00000000..ce73dfb5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CallActivityStatisticsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// CallActivityStatistics undocumented
+type CallActivityStatistics struct {
+ // ActivityStatistics is the base model of CallActivityStatistics
+ ActivityStatistics
+ // AfterHours undocumented
+ AfterHours *time.Duration `json:"afterHours,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CallDirectionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/CallDirectionEnum.go
new file mode 100644
index 00000000..2537e2c1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CallDirectionEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CallDirection undocumented
+type CallDirection int
+
+const (
+ // CallDirectionVIncoming undocumented
+ CallDirectionVIncoming CallDirection = 0
+ // CallDirectionVOutgoing undocumented
+ CallDirectionVOutgoing CallDirection = 1
+)
+
+// CallDirectionPIncoming returns a pointer to CallDirectionVIncoming
+func CallDirectionPIncoming() *CallDirection {
+ v := CallDirectionVIncoming
+ return &v
+}
+
+// CallDirectionPOutgoing returns a pointer to CallDirectionVOutgoing
+func CallDirectionPOutgoing() *CallDirection {
+ v := CallDirectionVOutgoing
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CallDispositionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/CallDispositionEnum.go
new file mode 100644
index 00000000..7422ddb7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CallDispositionEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CallDisposition undocumented
+type CallDisposition int
+
+const (
+ // CallDispositionVDefault undocumented
+ CallDispositionVDefault CallDisposition = 0
+ // CallDispositionVSimultaneousRing undocumented
+ CallDispositionVSimultaneousRing CallDisposition = 1
+ // CallDispositionVForward undocumented
+ CallDispositionVForward CallDisposition = 2
+)
+
+// CallDispositionPDefault returns a pointer to CallDispositionVDefault
+func CallDispositionPDefault() *CallDisposition {
+ v := CallDispositionVDefault
+ return &v
+}
+
+// CallDispositionPSimultaneousRing returns a pointer to CallDispositionVSimultaneousRing
+func CallDispositionPSimultaneousRing() *CallDisposition {
+ v := CallDispositionVSimultaneousRing
+ return &v
+}
+
+// CallDispositionPForward returns a pointer to CallDispositionVForward
+func CallDispositionPForward() *CallDisposition {
+ v := CallDispositionVForward
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CallMediaStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CallMediaStateModel.go
new file mode 100644
index 00000000..4ede2ae1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CallMediaStateModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CallMediaState undocumented
+type CallMediaState struct {
+ // Object is the base model of CallMediaState
+ Object
+ // Audio undocumented
+ Audio *MediaState `json:"audio,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CallModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CallModel.go
new file mode 100644
index 00000000..9b8a598e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CallModel.go
@@ -0,0 +1,63 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Call undocumented
+type Call struct {
+ // Entity is the base model of Call
+ Entity
+ // State undocumented
+ State *CallState `json:"state,omitempty"`
+ // MediaState undocumented
+ MediaState *CallMediaState `json:"mediaState,omitempty"`
+ // ResultInfo undocumented
+ ResultInfo *ResultInfo `json:"resultInfo,omitempty"`
+ // TerminationReason undocumented
+ TerminationReason *string `json:"terminationReason,omitempty"`
+ // Direction undocumented
+ Direction *CallDirection `json:"direction,omitempty"`
+ // RingingTimeoutInSeconds undocumented
+ RingingTimeoutInSeconds *int `json:"ringingTimeoutInSeconds,omitempty"`
+ // Subject undocumented
+ Subject *string `json:"subject,omitempty"`
+ // CallbackURI undocumented
+ CallbackURI *string `json:"callbackUri,omitempty"`
+ // CallRoutes undocumented
+ CallRoutes []CallRoute `json:"callRoutes,omitempty"`
+ // Source undocumented
+ Source *ParticipantInfo `json:"source,omitempty"`
+ // Targets undocumented
+ Targets []InvitationParticipantInfo `json:"targets,omitempty"`
+ // AnsweredBy undocumented
+ AnsweredBy *ParticipantInfo `json:"answeredBy,omitempty"`
+ // RequestedModalities undocumented
+ RequestedModalities []Modality `json:"requestedModalities,omitempty"`
+ // ActiveModalities undocumented
+ ActiveModalities []Modality `json:"activeModalities,omitempty"`
+ // MediaConfig undocumented
+ MediaConfig *MediaConfig `json:"mediaConfig,omitempty"`
+ // ChatInfo undocumented
+ ChatInfo *ChatInfo `json:"chatInfo,omitempty"`
+ // CallOptions undocumented
+ CallOptions *CallOptions `json:"callOptions,omitempty"`
+ // MeetingInfo undocumented
+ MeetingInfo *MeetingInfo `json:"meetingInfo,omitempty"`
+ // MeetingCapability undocumented
+ MeetingCapability *MeetingCapability `json:"meetingCapability,omitempty"`
+ // RoutingPolicies undocumented
+ RoutingPolicies []RoutingPolicy `json:"routingPolicies,omitempty"`
+ // TenantID undocumented
+ TenantID *string `json:"tenantId,omitempty"`
+ // MyParticipantID undocumented
+ MyParticipantID *string `json:"myParticipantId,omitempty"`
+ // ToneInfo undocumented
+ ToneInfo *ToneInfo `json:"toneInfo,omitempty"`
+ // IncomingContext undocumented
+ IncomingContext *IncomingContext `json:"incomingContext,omitempty"`
+ // Participants undocumented
+ Participants []Participant `json:"participants,omitempty"`
+ // AudioRoutingGroups undocumented
+ AudioRoutingGroups []AudioRoutingGroup `json:"audioRoutingGroups,omitempty"`
+ // Operations undocumented
+ Operations []CommsOperation `json:"operations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CallOptionsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CallOptionsModel.go
new file mode 100644
index 00000000..7f3f48cf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CallOptionsModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CallOptions undocumented
+type CallOptions struct {
+ // Object is the base model of CallOptions
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CallRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CallRequest.go
new file mode 100644
index 00000000..e05d31b9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CallRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// CallRequestBuilder is request builder for Call
+type CallRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CallRequest
+func (b *CallRequestBuilder) Request() *CallRequest {
+ return &CallRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CallRequest is request for Call
+type CallRequest struct{ BaseRequest }
+
+// Get performs GET request for Call
+func (r *CallRequest) Get(ctx context.Context) (resObj *Call, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Call
+func (r *CallRequest) Update(ctx context.Context, reqObj *Call) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Call
+func (r *CallRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AudioRoutingGroups returns request builder for AudioRoutingGroup collection
+func (b *CallRequestBuilder) AudioRoutingGroups() *CallAudioRoutingGroupsCollectionRequestBuilder {
+ bb := &CallAudioRoutingGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/audioRoutingGroups"
+ return bb
+}
+
+// CallAudioRoutingGroupsCollectionRequestBuilder is request builder for AudioRoutingGroup collection
+type CallAudioRoutingGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AudioRoutingGroup collection
+func (b *CallAudioRoutingGroupsCollectionRequestBuilder) Request() *CallAudioRoutingGroupsCollectionRequest {
+ return &CallAudioRoutingGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AudioRoutingGroup item
+func (b *CallAudioRoutingGroupsCollectionRequestBuilder) ID(id string) *AudioRoutingGroupRequestBuilder {
+ bb := &AudioRoutingGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CallAudioRoutingGroupsCollectionRequest is request for AudioRoutingGroup collection
+type CallAudioRoutingGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AudioRoutingGroup collection
+func (r *CallAudioRoutingGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AudioRoutingGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AudioRoutingGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AudioRoutingGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AudioRoutingGroup collection
+func (r *CallAudioRoutingGroupsCollectionRequest) Get(ctx context.Context) ([]AudioRoutingGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AudioRoutingGroup collection
+func (r *CallAudioRoutingGroupsCollectionRequest) Add(ctx context.Context, reqObj *AudioRoutingGroup) (resObj *AudioRoutingGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Operations returns request builder for CommsOperation collection
+func (b *CallRequestBuilder) Operations() *CallOperationsCollectionRequestBuilder {
+ bb := &CallOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/operations"
+ return bb
+}
+
+// CallOperationsCollectionRequestBuilder is request builder for CommsOperation collection
+type CallOperationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CommsOperation collection
+func (b *CallOperationsCollectionRequestBuilder) Request() *CallOperationsCollectionRequest {
+ return &CallOperationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CommsOperation item
+func (b *CallOperationsCollectionRequestBuilder) ID(id string) *CommsOperationRequestBuilder {
+ bb := &CommsOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CallOperationsCollectionRequest is request for CommsOperation collection
+type CallOperationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CommsOperation collection
+func (r *CallOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]CommsOperation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CommsOperation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CommsOperation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CommsOperation collection
+func (r *CallOperationsCollectionRequest) Get(ctx context.Context) ([]CommsOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for CommsOperation collection
+func (r *CallOperationsCollectionRequest) Add(ctx context.Context, reqObj *CommsOperation) (resObj *CommsOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Participants returns request builder for Participant collection
+func (b *CallRequestBuilder) Participants() *CallParticipantsCollectionRequestBuilder {
+ bb := &CallParticipantsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/participants"
+ return bb
+}
+
+// CallParticipantsCollectionRequestBuilder is request builder for Participant collection
+type CallParticipantsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Participant collection
+func (b *CallParticipantsCollectionRequestBuilder) Request() *CallParticipantsCollectionRequest {
+ return &CallParticipantsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Participant item
+func (b *CallParticipantsCollectionRequestBuilder) ID(id string) *ParticipantRequestBuilder {
+ bb := &ParticipantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CallParticipantsCollectionRequest is request for Participant collection
+type CallParticipantsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Participant collection
+func (r *CallParticipantsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Participant, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Participant
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Participant
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Participant collection
+func (r *CallParticipantsCollectionRequest) Get(ctx context.Context) ([]Participant, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Participant collection
+func (r *CallParticipantsCollectionRequest) Add(ctx context.Context, reqObj *Participant) (resObj *Participant, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CallRouteModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CallRouteModel.go
new file mode 100644
index 00000000..14ad2246
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CallRouteModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CallRoute undocumented
+type CallRoute struct {
+ // Object is the base model of CallRoute
+ Object
+ // RoutingType undocumented
+ RoutingType *RoutingType `json:"routingType,omitempty"`
+ // Original undocumented
+ Original *IdentitySet `json:"original,omitempty"`
+ // Final undocumented
+ Final *IdentitySet `json:"final,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CallStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/CallStateEnum.go
new file mode 100644
index 00000000..b6f49a08
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CallStateEnum.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CallState undocumented
+type CallState int
+
+const (
+ // CallStateVIncoming undocumented
+ CallStateVIncoming CallState = 0
+ // CallStateVEstablishing undocumented
+ CallStateVEstablishing CallState = 1
+ // CallStateVRinging undocumented
+ CallStateVRinging CallState = 2
+ // CallStateVEstablished undocumented
+ CallStateVEstablished CallState = 3
+ // CallStateVHold undocumented
+ CallStateVHold CallState = 4
+ // CallStateVTransferring undocumented
+ CallStateVTransferring CallState = 5
+ // CallStateVTransferAccepted undocumented
+ CallStateVTransferAccepted CallState = 6
+ // CallStateVRedirecting undocumented
+ CallStateVRedirecting CallState = 7
+ // CallStateVTerminating undocumented
+ CallStateVTerminating CallState = 8
+ // CallStateVTerminated undocumented
+ CallStateVTerminated CallState = 9
+ // CallStateVUnknownFutureValue undocumented
+ CallStateVUnknownFutureValue CallState = 10
+)
+
+// CallStatePIncoming returns a pointer to CallStateVIncoming
+func CallStatePIncoming() *CallState {
+ v := CallStateVIncoming
+ return &v
+}
+
+// CallStatePEstablishing returns a pointer to CallStateVEstablishing
+func CallStatePEstablishing() *CallState {
+ v := CallStateVEstablishing
+ return &v
+}
+
+// CallStatePRinging returns a pointer to CallStateVRinging
+func CallStatePRinging() *CallState {
+ v := CallStateVRinging
+ return &v
+}
+
+// CallStatePEstablished returns a pointer to CallStateVEstablished
+func CallStatePEstablished() *CallState {
+ v := CallStateVEstablished
+ return &v
+}
+
+// CallStatePHold returns a pointer to CallStateVHold
+func CallStatePHold() *CallState {
+ v := CallStateVHold
+ return &v
+}
+
+// CallStatePTransferring returns a pointer to CallStateVTransferring
+func CallStatePTransferring() *CallState {
+ v := CallStateVTransferring
+ return &v
+}
+
+// CallStatePTransferAccepted returns a pointer to CallStateVTransferAccepted
+func CallStatePTransferAccepted() *CallState {
+ v := CallStateVTransferAccepted
+ return &v
+}
+
+// CallStatePRedirecting returns a pointer to CallStateVRedirecting
+func CallStatePRedirecting() *CallState {
+ v := CallStateVRedirecting
+ return &v
+}
+
+// CallStatePTerminating returns a pointer to CallStateVTerminating
+func CallStatePTerminating() *CallState {
+ v := CallStateVTerminating
+ return &v
+}
+
+// CallStatePTerminated returns a pointer to CallStateVTerminated
+func CallStatePTerminated() *CallState {
+ v := CallStateVTerminated
+ return &v
+}
+
+// CallStatePUnknownFutureValue returns a pointer to CallStateVUnknownFutureValue
+func CallStatePUnknownFutureValue() *CallState {
+ v := CallStateVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CancelMediaProcessingOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CancelMediaProcessingOperationModel.go
new file mode 100644
index 00000000..a61dc475
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CancelMediaProcessingOperationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CancelMediaProcessingOperation undocumented
+type CancelMediaProcessingOperation struct {
+ // CommsOperation is the base model of CancelMediaProcessingOperation
+ CommsOperation
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CartToClassAssociationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CartToClassAssociationModel.go
new file mode 100644
index 00000000..a719a6a3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CartToClassAssociationModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// CartToClassAssociation CartToClassAssociation for associating device carts with classrooms.
+type CartToClassAssociation struct {
+ // Entity is the base model of CartToClassAssociation
+ Entity
+ // CreatedDateTime DateTime the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Version Version of the CartToClassAssociation.
+ Version *int `json:"version,omitempty"`
+ // DisplayName Admin provided name of the device configuration.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Admin provided description of the CartToClassAssociation.
+ Description *string `json:"description,omitempty"`
+ // DeviceCartIDs Identifiers of device carts to be associated with classes.
+ DeviceCartIDs []string `json:"deviceCartIds,omitempty"`
+ // ClassroomIDs Identifiers of classrooms to be associated with device carts.
+ ClassroomIDs []string `json:"classroomIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CartToClassAssociationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CartToClassAssociationRequest.go
new file mode 100644
index 00000000..3e31d71e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CartToClassAssociationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CartToClassAssociationRequestBuilder is request builder for CartToClassAssociation
+type CartToClassAssociationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CartToClassAssociationRequest
+func (b *CartToClassAssociationRequestBuilder) Request() *CartToClassAssociationRequest {
+ return &CartToClassAssociationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CartToClassAssociationRequest is request for CartToClassAssociation
+type CartToClassAssociationRequest struct{ BaseRequest }
+
+// Get performs GET request for CartToClassAssociation
+func (r *CartToClassAssociationRequest) Get(ctx context.Context) (resObj *CartToClassAssociation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CartToClassAssociation
+func (r *CartToClassAssociationRequest) Update(ctx context.Context, reqObj *CartToClassAssociation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CartToClassAssociation
+func (r *CartToClassAssociationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CategoryColorEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/CategoryColorEnum.go
new file mode 100644
index 00000000..f941ceaf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CategoryColorEnum.go
@@ -0,0 +1,217 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CategoryColor undocumented
+type CategoryColor int
+
+const (
+ // CategoryColorVPreset0 undocumented
+ CategoryColorVPreset0 CategoryColor = 0
+ // CategoryColorVPreset1 undocumented
+ CategoryColorVPreset1 CategoryColor = 1
+ // CategoryColorVPreset2 undocumented
+ CategoryColorVPreset2 CategoryColor = 2
+ // CategoryColorVPreset3 undocumented
+ CategoryColorVPreset3 CategoryColor = 3
+ // CategoryColorVPreset4 undocumented
+ CategoryColorVPreset4 CategoryColor = 4
+ // CategoryColorVPreset5 undocumented
+ CategoryColorVPreset5 CategoryColor = 5
+ // CategoryColorVPreset6 undocumented
+ CategoryColorVPreset6 CategoryColor = 6
+ // CategoryColorVPreset7 undocumented
+ CategoryColorVPreset7 CategoryColor = 7
+ // CategoryColorVPreset8 undocumented
+ CategoryColorVPreset8 CategoryColor = 8
+ // CategoryColorVPreset9 undocumented
+ CategoryColorVPreset9 CategoryColor = 9
+ // CategoryColorVPreset10 undocumented
+ CategoryColorVPreset10 CategoryColor = 10
+ // CategoryColorVPreset11 undocumented
+ CategoryColorVPreset11 CategoryColor = 11
+ // CategoryColorVPreset12 undocumented
+ CategoryColorVPreset12 CategoryColor = 12
+ // CategoryColorVPreset13 undocumented
+ CategoryColorVPreset13 CategoryColor = 13
+ // CategoryColorVPreset14 undocumented
+ CategoryColorVPreset14 CategoryColor = 14
+ // CategoryColorVPreset15 undocumented
+ CategoryColorVPreset15 CategoryColor = 15
+ // CategoryColorVPreset16 undocumented
+ CategoryColorVPreset16 CategoryColor = 16
+ // CategoryColorVPreset17 undocumented
+ CategoryColorVPreset17 CategoryColor = 17
+ // CategoryColorVPreset18 undocumented
+ CategoryColorVPreset18 CategoryColor = 18
+ // CategoryColorVPreset19 undocumented
+ CategoryColorVPreset19 CategoryColor = 19
+ // CategoryColorVPreset20 undocumented
+ CategoryColorVPreset20 CategoryColor = 20
+ // CategoryColorVPreset21 undocumented
+ CategoryColorVPreset21 CategoryColor = 21
+ // CategoryColorVPreset22 undocumented
+ CategoryColorVPreset22 CategoryColor = 22
+ // CategoryColorVPreset23 undocumented
+ CategoryColorVPreset23 CategoryColor = 23
+ // CategoryColorVPreset24 undocumented
+ CategoryColorVPreset24 CategoryColor = 24
+ // CategoryColorVNone undocumented
+ CategoryColorVNone CategoryColor = -1
+)
+
+// CategoryColorPPreset0 returns a pointer to CategoryColorVPreset0
+func CategoryColorPPreset0() *CategoryColor {
+ v := CategoryColorVPreset0
+ return &v
+}
+
+// CategoryColorPPreset1 returns a pointer to CategoryColorVPreset1
+func CategoryColorPPreset1() *CategoryColor {
+ v := CategoryColorVPreset1
+ return &v
+}
+
+// CategoryColorPPreset2 returns a pointer to CategoryColorVPreset2
+func CategoryColorPPreset2() *CategoryColor {
+ v := CategoryColorVPreset2
+ return &v
+}
+
+// CategoryColorPPreset3 returns a pointer to CategoryColorVPreset3
+func CategoryColorPPreset3() *CategoryColor {
+ v := CategoryColorVPreset3
+ return &v
+}
+
+// CategoryColorPPreset4 returns a pointer to CategoryColorVPreset4
+func CategoryColorPPreset4() *CategoryColor {
+ v := CategoryColorVPreset4
+ return &v
+}
+
+// CategoryColorPPreset5 returns a pointer to CategoryColorVPreset5
+func CategoryColorPPreset5() *CategoryColor {
+ v := CategoryColorVPreset5
+ return &v
+}
+
+// CategoryColorPPreset6 returns a pointer to CategoryColorVPreset6
+func CategoryColorPPreset6() *CategoryColor {
+ v := CategoryColorVPreset6
+ return &v
+}
+
+// CategoryColorPPreset7 returns a pointer to CategoryColorVPreset7
+func CategoryColorPPreset7() *CategoryColor {
+ v := CategoryColorVPreset7
+ return &v
+}
+
+// CategoryColorPPreset8 returns a pointer to CategoryColorVPreset8
+func CategoryColorPPreset8() *CategoryColor {
+ v := CategoryColorVPreset8
+ return &v
+}
+
+// CategoryColorPPreset9 returns a pointer to CategoryColorVPreset9
+func CategoryColorPPreset9() *CategoryColor {
+ v := CategoryColorVPreset9
+ return &v
+}
+
+// CategoryColorPPreset10 returns a pointer to CategoryColorVPreset10
+func CategoryColorPPreset10() *CategoryColor {
+ v := CategoryColorVPreset10
+ return &v
+}
+
+// CategoryColorPPreset11 returns a pointer to CategoryColorVPreset11
+func CategoryColorPPreset11() *CategoryColor {
+ v := CategoryColorVPreset11
+ return &v
+}
+
+// CategoryColorPPreset12 returns a pointer to CategoryColorVPreset12
+func CategoryColorPPreset12() *CategoryColor {
+ v := CategoryColorVPreset12
+ return &v
+}
+
+// CategoryColorPPreset13 returns a pointer to CategoryColorVPreset13
+func CategoryColorPPreset13() *CategoryColor {
+ v := CategoryColorVPreset13
+ return &v
+}
+
+// CategoryColorPPreset14 returns a pointer to CategoryColorVPreset14
+func CategoryColorPPreset14() *CategoryColor {
+ v := CategoryColorVPreset14
+ return &v
+}
+
+// CategoryColorPPreset15 returns a pointer to CategoryColorVPreset15
+func CategoryColorPPreset15() *CategoryColor {
+ v := CategoryColorVPreset15
+ return &v
+}
+
+// CategoryColorPPreset16 returns a pointer to CategoryColorVPreset16
+func CategoryColorPPreset16() *CategoryColor {
+ v := CategoryColorVPreset16
+ return &v
+}
+
+// CategoryColorPPreset17 returns a pointer to CategoryColorVPreset17
+func CategoryColorPPreset17() *CategoryColor {
+ v := CategoryColorVPreset17
+ return &v
+}
+
+// CategoryColorPPreset18 returns a pointer to CategoryColorVPreset18
+func CategoryColorPPreset18() *CategoryColor {
+ v := CategoryColorVPreset18
+ return &v
+}
+
+// CategoryColorPPreset19 returns a pointer to CategoryColorVPreset19
+func CategoryColorPPreset19() *CategoryColor {
+ v := CategoryColorVPreset19
+ return &v
+}
+
+// CategoryColorPPreset20 returns a pointer to CategoryColorVPreset20
+func CategoryColorPPreset20() *CategoryColor {
+ v := CategoryColorVPreset20
+ return &v
+}
+
+// CategoryColorPPreset21 returns a pointer to CategoryColorVPreset21
+func CategoryColorPPreset21() *CategoryColor {
+ v := CategoryColorVPreset21
+ return &v
+}
+
+// CategoryColorPPreset22 returns a pointer to CategoryColorVPreset22
+func CategoryColorPPreset22() *CategoryColor {
+ v := CategoryColorVPreset22
+ return &v
+}
+
+// CategoryColorPPreset23 returns a pointer to CategoryColorVPreset23
+func CategoryColorPPreset23() *CategoryColor {
+ v := CategoryColorVPreset23
+ return &v
+}
+
+// CategoryColorPPreset24 returns a pointer to CategoryColorVPreset24
+func CategoryColorPPreset24() *CategoryColor {
+ v := CategoryColorVPreset24
+ return &v
+}
+
+// CategoryColorPNone returns a pointer to CategoryColorVNone
+func CategoryColorPNone() *CategoryColor {
+ v := CategoryColorVNone
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CertificateAuthorityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateAuthorityModel.go
new file mode 100644
index 00000000..7b5abd22
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateAuthorityModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificateAuthority undocumented
+type CertificateAuthority struct {
+ // Object is the base model of CertificateAuthority
+ Object
+ // IsRootAuthority undocumented
+ IsRootAuthority *bool `json:"isRootAuthority,omitempty"`
+ // CertificateRevocationListURL undocumented
+ CertificateRevocationListURL *string `json:"certificateRevocationListUrl,omitempty"`
+ // DeltaCertificateRevocationListURL undocumented
+ DeltaCertificateRevocationListURL *string `json:"deltaCertificateRevocationListUrl,omitempty"`
+ // Certificate undocumented
+ Certificate *Binary `json:"certificate,omitempty"`
+ // Issuer undocumented
+ Issuer *string `json:"issuer,omitempty"`
+ // IssuerSki undocumented
+ IssuerSki *string `json:"issuerSki,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CertificateBasedAuthConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateBasedAuthConfigurationModel.go
new file mode 100644
index 00000000..5200321e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateBasedAuthConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificateBasedAuthConfiguration undocumented
+type CertificateBasedAuthConfiguration struct {
+ // Entity is the base model of CertificateBasedAuthConfiguration
+ Entity
+ // CertificateAuthorities undocumented
+ CertificateAuthorities []CertificateAuthority `json:"certificateAuthorities,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CertificateBasedAuthConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateBasedAuthConfigurationRequest.go
new file mode 100644
index 00000000..d5f5e4e7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateBasedAuthConfigurationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CertificateBasedAuthConfigurationRequestBuilder is request builder for CertificateBasedAuthConfiguration
+type CertificateBasedAuthConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CertificateBasedAuthConfigurationRequest
+func (b *CertificateBasedAuthConfigurationRequestBuilder) Request() *CertificateBasedAuthConfigurationRequest {
+ return &CertificateBasedAuthConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CertificateBasedAuthConfigurationRequest is request for CertificateBasedAuthConfiguration
+type CertificateBasedAuthConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for CertificateBasedAuthConfiguration
+func (r *CertificateBasedAuthConfigurationRequest) Get(ctx context.Context) (resObj *CertificateBasedAuthConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CertificateBasedAuthConfiguration
+func (r *CertificateBasedAuthConfigurationRequest) Update(ctx context.Context, reqObj *CertificateBasedAuthConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CertificateBasedAuthConfiguration
+func (r *CertificateBasedAuthConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CertificateConnectorSettingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateConnectorSettingModel.go
new file mode 100644
index 00000000..ad5aef62
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateConnectorSettingModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// CertificateConnectorSetting undocumented
+type CertificateConnectorSetting struct {
+ // Object is the base model of CertificateConnectorSetting
+ Object
+ // Status Certificate connector status
+ Status *int `json:"status,omitempty"`
+ // CertExpiryTime Certificate expire time
+ CertExpiryTime *time.Time `json:"certExpiryTime,omitempty"`
+ // EnrollmentError Certificate connector enrollment error
+ EnrollmentError *string `json:"enrollmentError,omitempty"`
+ // LastConnectorConnectionTime Last time certificate connector connected
+ LastConnectorConnectionTime *time.Time `json:"lastConnectorConnectionTime,omitempty"`
+ // ConnectorVersion Version of certificate connector
+ ConnectorVersion *string `json:"connectorVersion,omitempty"`
+ // LastUploadVersion Version of last uploaded certificate connector
+ LastUploadVersion *int `json:"lastUploadVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CertificateDestinationStoreEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateDestinationStoreEnum.go
new file mode 100644
index 00000000..baa56c9e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateDestinationStoreEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificateDestinationStore undocumented
+type CertificateDestinationStore int
+
+const (
+ // CertificateDestinationStoreVComputerCertStoreRoot undocumented
+ CertificateDestinationStoreVComputerCertStoreRoot CertificateDestinationStore = 0
+ // CertificateDestinationStoreVComputerCertStoreIntermediate undocumented
+ CertificateDestinationStoreVComputerCertStoreIntermediate CertificateDestinationStore = 1
+ // CertificateDestinationStoreVUserCertStoreIntermediate undocumented
+ CertificateDestinationStoreVUserCertStoreIntermediate CertificateDestinationStore = 2
+)
+
+// CertificateDestinationStorePComputerCertStoreRoot returns a pointer to CertificateDestinationStoreVComputerCertStoreRoot
+func CertificateDestinationStorePComputerCertStoreRoot() *CertificateDestinationStore {
+ v := CertificateDestinationStoreVComputerCertStoreRoot
+ return &v
+}
+
+// CertificateDestinationStorePComputerCertStoreIntermediate returns a pointer to CertificateDestinationStoreVComputerCertStoreIntermediate
+func CertificateDestinationStorePComputerCertStoreIntermediate() *CertificateDestinationStore {
+ v := CertificateDestinationStoreVComputerCertStoreIntermediate
+ return &v
+}
+
+// CertificateDestinationStorePUserCertStoreIntermediate returns a pointer to CertificateDestinationStoreVUserCertStoreIntermediate
+func CertificateDestinationStorePUserCertStoreIntermediate() *CertificateDestinationStore {
+ v := CertificateDestinationStoreVUserCertStoreIntermediate
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CertificateIssuanceStatesEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateIssuanceStatesEnum.go
new file mode 100644
index 00000000..c4b74841
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateIssuanceStatesEnum.go
@@ -0,0 +1,193 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificateIssuanceStates undocumented
+type CertificateIssuanceStates int
+
+const (
+ // CertificateIssuanceStatesVUnknown undocumented
+ CertificateIssuanceStatesVUnknown CertificateIssuanceStates = 0
+ // CertificateIssuanceStatesVChallengeIssued undocumented
+ CertificateIssuanceStatesVChallengeIssued CertificateIssuanceStates = 1
+ // CertificateIssuanceStatesVChallengeIssueFailed undocumented
+ CertificateIssuanceStatesVChallengeIssueFailed CertificateIssuanceStates = 2
+ // CertificateIssuanceStatesVRequestCreationFailed undocumented
+ CertificateIssuanceStatesVRequestCreationFailed CertificateIssuanceStates = 3
+ // CertificateIssuanceStatesVRequestSubmitFailed undocumented
+ CertificateIssuanceStatesVRequestSubmitFailed CertificateIssuanceStates = 4
+ // CertificateIssuanceStatesVChallengeValidationSucceeded undocumented
+ CertificateIssuanceStatesVChallengeValidationSucceeded CertificateIssuanceStates = 5
+ // CertificateIssuanceStatesVChallengeValidationFailed undocumented
+ CertificateIssuanceStatesVChallengeValidationFailed CertificateIssuanceStates = 6
+ // CertificateIssuanceStatesVIssueFailed undocumented
+ CertificateIssuanceStatesVIssueFailed CertificateIssuanceStates = 7
+ // CertificateIssuanceStatesVIssuePending undocumented
+ CertificateIssuanceStatesVIssuePending CertificateIssuanceStates = 8
+ // CertificateIssuanceStatesVIssued undocumented
+ CertificateIssuanceStatesVIssued CertificateIssuanceStates = 9
+ // CertificateIssuanceStatesVResponseProcessingFailed undocumented
+ CertificateIssuanceStatesVResponseProcessingFailed CertificateIssuanceStates = 10
+ // CertificateIssuanceStatesVResponsePending undocumented
+ CertificateIssuanceStatesVResponsePending CertificateIssuanceStates = 11
+ // CertificateIssuanceStatesVEnrollmentSucceeded undocumented
+ CertificateIssuanceStatesVEnrollmentSucceeded CertificateIssuanceStates = 12
+ // CertificateIssuanceStatesVEnrollmentNotNeeded undocumented
+ CertificateIssuanceStatesVEnrollmentNotNeeded CertificateIssuanceStates = 13
+ // CertificateIssuanceStatesVRevoked undocumented
+ CertificateIssuanceStatesVRevoked CertificateIssuanceStates = 14
+ // CertificateIssuanceStatesVRemovedFromCollection undocumented
+ CertificateIssuanceStatesVRemovedFromCollection CertificateIssuanceStates = 15
+ // CertificateIssuanceStatesVRenewVerified undocumented
+ CertificateIssuanceStatesVRenewVerified CertificateIssuanceStates = 16
+ // CertificateIssuanceStatesVInstallFailed undocumented
+ CertificateIssuanceStatesVInstallFailed CertificateIssuanceStates = 17
+ // CertificateIssuanceStatesVInstalled undocumented
+ CertificateIssuanceStatesVInstalled CertificateIssuanceStates = 18
+ // CertificateIssuanceStatesVDeleteFailed undocumented
+ CertificateIssuanceStatesVDeleteFailed CertificateIssuanceStates = 19
+ // CertificateIssuanceStatesVDeleted undocumented
+ CertificateIssuanceStatesVDeleted CertificateIssuanceStates = 20
+ // CertificateIssuanceStatesVRenewalRequested undocumented
+ CertificateIssuanceStatesVRenewalRequested CertificateIssuanceStates = 21
+ // CertificateIssuanceStatesVRequested undocumented
+ CertificateIssuanceStatesVRequested CertificateIssuanceStates = 22
+)
+
+// CertificateIssuanceStatesPUnknown returns a pointer to CertificateIssuanceStatesVUnknown
+func CertificateIssuanceStatesPUnknown() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVUnknown
+ return &v
+}
+
+// CertificateIssuanceStatesPChallengeIssued returns a pointer to CertificateIssuanceStatesVChallengeIssued
+func CertificateIssuanceStatesPChallengeIssued() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVChallengeIssued
+ return &v
+}
+
+// CertificateIssuanceStatesPChallengeIssueFailed returns a pointer to CertificateIssuanceStatesVChallengeIssueFailed
+func CertificateIssuanceStatesPChallengeIssueFailed() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVChallengeIssueFailed
+ return &v
+}
+
+// CertificateIssuanceStatesPRequestCreationFailed returns a pointer to CertificateIssuanceStatesVRequestCreationFailed
+func CertificateIssuanceStatesPRequestCreationFailed() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVRequestCreationFailed
+ return &v
+}
+
+// CertificateIssuanceStatesPRequestSubmitFailed returns a pointer to CertificateIssuanceStatesVRequestSubmitFailed
+func CertificateIssuanceStatesPRequestSubmitFailed() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVRequestSubmitFailed
+ return &v
+}
+
+// CertificateIssuanceStatesPChallengeValidationSucceeded returns a pointer to CertificateIssuanceStatesVChallengeValidationSucceeded
+func CertificateIssuanceStatesPChallengeValidationSucceeded() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVChallengeValidationSucceeded
+ return &v
+}
+
+// CertificateIssuanceStatesPChallengeValidationFailed returns a pointer to CertificateIssuanceStatesVChallengeValidationFailed
+func CertificateIssuanceStatesPChallengeValidationFailed() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVChallengeValidationFailed
+ return &v
+}
+
+// CertificateIssuanceStatesPIssueFailed returns a pointer to CertificateIssuanceStatesVIssueFailed
+func CertificateIssuanceStatesPIssueFailed() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVIssueFailed
+ return &v
+}
+
+// CertificateIssuanceStatesPIssuePending returns a pointer to CertificateIssuanceStatesVIssuePending
+func CertificateIssuanceStatesPIssuePending() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVIssuePending
+ return &v
+}
+
+// CertificateIssuanceStatesPIssued returns a pointer to CertificateIssuanceStatesVIssued
+func CertificateIssuanceStatesPIssued() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVIssued
+ return &v
+}
+
+// CertificateIssuanceStatesPResponseProcessingFailed returns a pointer to CertificateIssuanceStatesVResponseProcessingFailed
+func CertificateIssuanceStatesPResponseProcessingFailed() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVResponseProcessingFailed
+ return &v
+}
+
+// CertificateIssuanceStatesPResponsePending returns a pointer to CertificateIssuanceStatesVResponsePending
+func CertificateIssuanceStatesPResponsePending() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVResponsePending
+ return &v
+}
+
+// CertificateIssuanceStatesPEnrollmentSucceeded returns a pointer to CertificateIssuanceStatesVEnrollmentSucceeded
+func CertificateIssuanceStatesPEnrollmentSucceeded() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVEnrollmentSucceeded
+ return &v
+}
+
+// CertificateIssuanceStatesPEnrollmentNotNeeded returns a pointer to CertificateIssuanceStatesVEnrollmentNotNeeded
+func CertificateIssuanceStatesPEnrollmentNotNeeded() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVEnrollmentNotNeeded
+ return &v
+}
+
+// CertificateIssuanceStatesPRevoked returns a pointer to CertificateIssuanceStatesVRevoked
+func CertificateIssuanceStatesPRevoked() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVRevoked
+ return &v
+}
+
+// CertificateIssuanceStatesPRemovedFromCollection returns a pointer to CertificateIssuanceStatesVRemovedFromCollection
+func CertificateIssuanceStatesPRemovedFromCollection() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVRemovedFromCollection
+ return &v
+}
+
+// CertificateIssuanceStatesPRenewVerified returns a pointer to CertificateIssuanceStatesVRenewVerified
+func CertificateIssuanceStatesPRenewVerified() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVRenewVerified
+ return &v
+}
+
+// CertificateIssuanceStatesPInstallFailed returns a pointer to CertificateIssuanceStatesVInstallFailed
+func CertificateIssuanceStatesPInstallFailed() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVInstallFailed
+ return &v
+}
+
+// CertificateIssuanceStatesPInstalled returns a pointer to CertificateIssuanceStatesVInstalled
+func CertificateIssuanceStatesPInstalled() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVInstalled
+ return &v
+}
+
+// CertificateIssuanceStatesPDeleteFailed returns a pointer to CertificateIssuanceStatesVDeleteFailed
+func CertificateIssuanceStatesPDeleteFailed() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVDeleteFailed
+ return &v
+}
+
+// CertificateIssuanceStatesPDeleted returns a pointer to CertificateIssuanceStatesVDeleted
+func CertificateIssuanceStatesPDeleted() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVDeleted
+ return &v
+}
+
+// CertificateIssuanceStatesPRenewalRequested returns a pointer to CertificateIssuanceStatesVRenewalRequested
+func CertificateIssuanceStatesPRenewalRequested() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVRenewalRequested
+ return &v
+}
+
+// CertificateIssuanceStatesPRequested returns a pointer to CertificateIssuanceStatesVRequested
+func CertificateIssuanceStatesPRequested() *CertificateIssuanceStates {
+ v := CertificateIssuanceStatesVRequested
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CertificateRevocationStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateRevocationStatusEnum.go
new file mode 100644
index 00000000..f7a11375
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateRevocationStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificateRevocationStatus undocumented
+type CertificateRevocationStatus int
+
+const (
+ // CertificateRevocationStatusVNone undocumented
+ CertificateRevocationStatusVNone CertificateRevocationStatus = 0
+ // CertificateRevocationStatusVPending undocumented
+ CertificateRevocationStatusVPending CertificateRevocationStatus = 1
+ // CertificateRevocationStatusVIssued undocumented
+ CertificateRevocationStatusVIssued CertificateRevocationStatus = 2
+ // CertificateRevocationStatusVFailed undocumented
+ CertificateRevocationStatusVFailed CertificateRevocationStatus = 3
+ // CertificateRevocationStatusVRevoked undocumented
+ CertificateRevocationStatusVRevoked CertificateRevocationStatus = 4
+)
+
+// CertificateRevocationStatusPNone returns a pointer to CertificateRevocationStatusVNone
+func CertificateRevocationStatusPNone() *CertificateRevocationStatus {
+ v := CertificateRevocationStatusVNone
+ return &v
+}
+
+// CertificateRevocationStatusPPending returns a pointer to CertificateRevocationStatusVPending
+func CertificateRevocationStatusPPending() *CertificateRevocationStatus {
+ v := CertificateRevocationStatusVPending
+ return &v
+}
+
+// CertificateRevocationStatusPIssued returns a pointer to CertificateRevocationStatusVIssued
+func CertificateRevocationStatusPIssued() *CertificateRevocationStatus {
+ v := CertificateRevocationStatusVIssued
+ return &v
+}
+
+// CertificateRevocationStatusPFailed returns a pointer to CertificateRevocationStatusVFailed
+func CertificateRevocationStatusPFailed() *CertificateRevocationStatus {
+ v := CertificateRevocationStatusVFailed
+ return &v
+}
+
+// CertificateRevocationStatusPRevoked returns a pointer to CertificateRevocationStatusVRevoked
+func CertificateRevocationStatusPRevoked() *CertificateRevocationStatus {
+ v := CertificateRevocationStatusVRevoked
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CertificateStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateStatusEnum.go
new file mode 100644
index 00000000..a38e8b4e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateStatusEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificateStatus undocumented
+type CertificateStatus int
+
+const (
+ // CertificateStatusVNotProvisioned undocumented
+ CertificateStatusVNotProvisioned CertificateStatus = 0
+ // CertificateStatusVProvisioned undocumented
+ CertificateStatusVProvisioned CertificateStatus = 1
+)
+
+// CertificateStatusPNotProvisioned returns a pointer to CertificateStatusVNotProvisioned
+func CertificateStatusPNotProvisioned() *CertificateStatus {
+ v := CertificateStatusVNotProvisioned
+ return &v
+}
+
+// CertificateStatusPProvisioned returns a pointer to CertificateStatusVProvisioned
+func CertificateStatusPProvisioned() *CertificateStatus {
+ v := CertificateStatusVProvisioned
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CertificateStoreEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateStoreEnum.go
new file mode 100644
index 00000000..877b6af3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateStoreEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificateStore undocumented
+type CertificateStore int
+
+const (
+ // CertificateStoreVUser undocumented
+ CertificateStoreVUser CertificateStore = 1
+ // CertificateStoreVMachine undocumented
+ CertificateStoreVMachine CertificateStore = 2
+)
+
+// CertificateStorePUser returns a pointer to CertificateStoreVUser
+func CertificateStorePUser() *CertificateStore {
+ v := CertificateStoreVUser
+ return &v
+}
+
+// CertificateStorePMachine returns a pointer to CertificateStoreVMachine
+func CertificateStorePMachine() *CertificateStore {
+ v := CertificateStoreVMachine
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CertificateValidityPeriodScaleEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateValidityPeriodScaleEnum.go
new file mode 100644
index 00000000..191f8df7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CertificateValidityPeriodScaleEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificateValidityPeriodScale undocumented
+type CertificateValidityPeriodScale int
+
+const (
+ // CertificateValidityPeriodScaleVDays undocumented
+ CertificateValidityPeriodScaleVDays CertificateValidityPeriodScale = 0
+ // CertificateValidityPeriodScaleVMonths undocumented
+ CertificateValidityPeriodScaleVMonths CertificateValidityPeriodScale = 1
+ // CertificateValidityPeriodScaleVYears undocumented
+ CertificateValidityPeriodScaleVYears CertificateValidityPeriodScale = 2
+)
+
+// CertificateValidityPeriodScalePDays returns a pointer to CertificateValidityPeriodScaleVDays
+func CertificateValidityPeriodScalePDays() *CertificateValidityPeriodScale {
+ v := CertificateValidityPeriodScaleVDays
+ return &v
+}
+
+// CertificateValidityPeriodScalePMonths returns a pointer to CertificateValidityPeriodScaleVMonths
+func CertificateValidityPeriodScalePMonths() *CertificateValidityPeriodScale {
+ v := CertificateValidityPeriodScaleVMonths
+ return &v
+}
+
+// CertificateValidityPeriodScalePYears returns a pointer to CertificateValidityPeriodScaleVYears
+func CertificateValidityPeriodScalePYears() *CertificateValidityPeriodScale {
+ v := CertificateValidityPeriodScaleVYears
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CertificationControlModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CertificationControlModel.go
new file mode 100644
index 00000000..35d8e177
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CertificationControlModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificationControl undocumented
+type CertificationControl struct {
+ // Object is the base model of CertificationControl
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChangeTrackedEntityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChangeTrackedEntityModel.go
new file mode 100644
index 00000000..15532f2b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChangeTrackedEntityModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ChangeTrackedEntity undocumented
+type ChangeTrackedEntity struct {
+ // Entity is the base model of ChangeTrackedEntity
+ Entity
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChangeTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChangeTypeEnum.go
new file mode 100644
index 00000000..1d91383a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChangeTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChangeType undocumented
+type ChangeType int
+
+const (
+ // ChangeTypeVCreated undocumented
+ ChangeTypeVCreated ChangeType = 0
+ // ChangeTypeVUpdated undocumented
+ ChangeTypeVUpdated ChangeType = 1
+ // ChangeTypeVDeleted undocumented
+ ChangeTypeVDeleted ChangeType = 2
+)
+
+// ChangeTypePCreated returns a pointer to ChangeTypeVCreated
+func ChangeTypePCreated() *ChangeType {
+ v := ChangeTypeVCreated
+ return &v
+}
+
+// ChangeTypePUpdated returns a pointer to ChangeTypeVUpdated
+func ChangeTypePUpdated() *ChangeType {
+ v := ChangeTypeVUpdated
+ return &v
+}
+
+// ChangeTypePDeleted returns a pointer to ChangeTypeVDeleted
+func ChangeTypePDeleted() *ChangeType {
+ v := ChangeTypeVDeleted
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChangeUefiSettingsPermissionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChangeUefiSettingsPermissionEnum.go
new file mode 100644
index 00000000..0237e92a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChangeUefiSettingsPermissionEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChangeUefiSettingsPermission undocumented
+type ChangeUefiSettingsPermission int
+
+const (
+ // ChangeUefiSettingsPermissionVNotConfiguredOnly undocumented
+ ChangeUefiSettingsPermissionVNotConfiguredOnly ChangeUefiSettingsPermission = 0
+ // ChangeUefiSettingsPermissionVNone undocumented
+ ChangeUefiSettingsPermissionVNone ChangeUefiSettingsPermission = 1
+)
+
+// ChangeUefiSettingsPermissionPNotConfiguredOnly returns a pointer to ChangeUefiSettingsPermissionVNotConfiguredOnly
+func ChangeUefiSettingsPermissionPNotConfiguredOnly() *ChangeUefiSettingsPermission {
+ v := ChangeUefiSettingsPermissionVNotConfiguredOnly
+ return &v
+}
+
+// ChangeUefiSettingsPermissionPNone returns a pointer to ChangeUefiSettingsPermissionVNone
+func ChangeUefiSettingsPermissionPNone() *ChangeUefiSettingsPermission {
+ v := ChangeUefiSettingsPermissionVNone
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChannelMembershipTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChannelMembershipTypeEnum.go
new file mode 100644
index 00000000..63bde192
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChannelMembershipTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChannelMembershipType undocumented
+type ChannelMembershipType int
+
+const (
+ // ChannelMembershipTypeVStandard undocumented
+ ChannelMembershipTypeVStandard ChannelMembershipType = 0
+ // ChannelMembershipTypeVPrivate undocumented
+ ChannelMembershipTypeVPrivate ChannelMembershipType = 1
+ // ChannelMembershipTypeVUnknownFutureValue undocumented
+ ChannelMembershipTypeVUnknownFutureValue ChannelMembershipType = 2
+)
+
+// ChannelMembershipTypePStandard returns a pointer to ChannelMembershipTypeVStandard
+func ChannelMembershipTypePStandard() *ChannelMembershipType {
+ v := ChannelMembershipTypeVStandard
+ return &v
+}
+
+// ChannelMembershipTypePPrivate returns a pointer to ChannelMembershipTypeVPrivate
+func ChannelMembershipTypePPrivate() *ChannelMembershipType {
+ v := ChannelMembershipTypeVPrivate
+ return &v
+}
+
+// ChannelMembershipTypePUnknownFutureValue returns a pointer to ChannelMembershipTypeVUnknownFutureValue
+func ChannelMembershipTypePUnknownFutureValue() *ChannelMembershipType {
+ v := ChannelMembershipTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChannelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChannelModel.go
new file mode 100644
index 00000000..033e5907
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChannelModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Channel undocumented
+type Channel struct {
+ // Entity is the base model of Channel
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // IsFavoriteByDefault undocumented
+ IsFavoriteByDefault *bool `json:"isFavoriteByDefault,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+ // MembershipType undocumented
+ MembershipType *ChannelMembershipType `json:"membershipType,omitempty"`
+ // Messages undocumented
+ Messages []ChatMessage `json:"messages,omitempty"`
+ // Tabs undocumented
+ Tabs []TeamsTab `json:"tabs,omitempty"`
+ // Members undocumented
+ Members []ConversationMember `json:"members,omitempty"`
+ // FilesFolder undocumented
+ FilesFolder *DriveItem `json:"filesFolder,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChannelRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChannelRequest.go
new file mode 100644
index 00000000..a8b6b5c1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChannelRequest.go
@@ -0,0 +1,334 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ChannelRequestBuilder is request builder for Channel
+type ChannelRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ChannelRequest
+func (b *ChannelRequestBuilder) Request() *ChannelRequest {
+ return &ChannelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ChannelRequest is request for Channel
+type ChannelRequest struct{ BaseRequest }
+
+// Get performs GET request for Channel
+func (r *ChannelRequest) Get(ctx context.Context) (resObj *Channel, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Channel
+func (r *ChannelRequest) Update(ctx context.Context, reqObj *Channel) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Channel
+func (r *ChannelRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// FilesFolder is navigation property
+func (b *ChannelRequestBuilder) FilesFolder() *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/filesFolder"
+ return bb
+}
+
+// Members returns request builder for ConversationMember collection
+func (b *ChannelRequestBuilder) Members() *ChannelMembersCollectionRequestBuilder {
+ bb := &ChannelMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/members"
+ return bb
+}
+
+// ChannelMembersCollectionRequestBuilder is request builder for ConversationMember collection
+type ChannelMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ConversationMember collection
+func (b *ChannelMembersCollectionRequestBuilder) Request() *ChannelMembersCollectionRequest {
+ return &ChannelMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ConversationMember item
+func (b *ChannelMembersCollectionRequestBuilder) ID(id string) *ConversationMemberRequestBuilder {
+ bb := &ConversationMemberRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ChannelMembersCollectionRequest is request for ConversationMember collection
+type ChannelMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ConversationMember collection
+func (r *ChannelMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ConversationMember, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ConversationMember
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ConversationMember
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ConversationMember collection
+func (r *ChannelMembersCollectionRequest) Get(ctx context.Context) ([]ConversationMember, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ConversationMember collection
+func (r *ChannelMembersCollectionRequest) Add(ctx context.Context, reqObj *ConversationMember) (resObj *ConversationMember, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Messages returns request builder for ChatMessage collection
+func (b *ChannelRequestBuilder) Messages() *ChannelMessagesCollectionRequestBuilder {
+ bb := &ChannelMessagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/messages"
+ return bb
+}
+
+// ChannelMessagesCollectionRequestBuilder is request builder for ChatMessage collection
+type ChannelMessagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ChatMessage collection
+func (b *ChannelMessagesCollectionRequestBuilder) Request() *ChannelMessagesCollectionRequest {
+ return &ChannelMessagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ChatMessage item
+func (b *ChannelMessagesCollectionRequestBuilder) ID(id string) *ChatMessageRequestBuilder {
+ bb := &ChatMessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ChannelMessagesCollectionRequest is request for ChatMessage collection
+type ChannelMessagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ChatMessage collection
+func (r *ChannelMessagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ChatMessage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ChatMessage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ChatMessage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ChatMessage collection
+func (r *ChannelMessagesCollectionRequest) Get(ctx context.Context) ([]ChatMessage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ChatMessage collection
+func (r *ChannelMessagesCollectionRequest) Add(ctx context.Context, reqObj *ChatMessage) (resObj *ChatMessage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Tabs returns request builder for TeamsTab collection
+func (b *ChannelRequestBuilder) Tabs() *ChannelTabsCollectionRequestBuilder {
+ bb := &ChannelTabsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tabs"
+ return bb
+}
+
+// ChannelTabsCollectionRequestBuilder is request builder for TeamsTab collection
+type ChannelTabsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsTab collection
+func (b *ChannelTabsCollectionRequestBuilder) Request() *ChannelTabsCollectionRequest {
+ return &ChannelTabsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsTab item
+func (b *ChannelTabsCollectionRequestBuilder) ID(id string) *TeamsTabRequestBuilder {
+ bb := &TeamsTabRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ChannelTabsCollectionRequest is request for TeamsTab collection
+type ChannelTabsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsTab collection
+func (r *ChannelTabsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TeamsTab, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsTab
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsTab
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsTab collection
+func (r *ChannelTabsCollectionRequest) Get(ctx context.Context) ([]TeamsTab, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TeamsTab collection
+func (r *ChannelTabsCollectionRequest) Add(ctx context.Context, reqObj *TeamsTab) (resObj *TeamsTab, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChassisTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChassisTypeEnum.go
new file mode 100644
index 00000000..16a43425
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChassisTypeEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChassisType undocumented
+type ChassisType int
+
+const (
+ // ChassisTypeVUnknown undocumented
+ ChassisTypeVUnknown ChassisType = 0
+ // ChassisTypeVDesktop undocumented
+ ChassisTypeVDesktop ChassisType = 1
+ // ChassisTypeVLaptop undocumented
+ ChassisTypeVLaptop ChassisType = 2
+ // ChassisTypeVWorksWorkstation undocumented
+ ChassisTypeVWorksWorkstation ChassisType = 3
+ // ChassisTypeVEnterpriseServer undocumented
+ ChassisTypeVEnterpriseServer ChassisType = 4
+ // ChassisTypeVPhone undocumented
+ ChassisTypeVPhone ChassisType = 100
+ // ChassisTypeVTablet undocumented
+ ChassisTypeVTablet ChassisType = 101
+ // ChassisTypeVMobileOther undocumented
+ ChassisTypeVMobileOther ChassisType = 102
+ // ChassisTypeVMobileUnknown undocumented
+ ChassisTypeVMobileUnknown ChassisType = 103
+)
+
+// ChassisTypePUnknown returns a pointer to ChassisTypeVUnknown
+func ChassisTypePUnknown() *ChassisType {
+ v := ChassisTypeVUnknown
+ return &v
+}
+
+// ChassisTypePDesktop returns a pointer to ChassisTypeVDesktop
+func ChassisTypePDesktop() *ChassisType {
+ v := ChassisTypeVDesktop
+ return &v
+}
+
+// ChassisTypePLaptop returns a pointer to ChassisTypeVLaptop
+func ChassisTypePLaptop() *ChassisType {
+ v := ChassisTypeVLaptop
+ return &v
+}
+
+// ChassisTypePWorksWorkstation returns a pointer to ChassisTypeVWorksWorkstation
+func ChassisTypePWorksWorkstation() *ChassisType {
+ v := ChassisTypeVWorksWorkstation
+ return &v
+}
+
+// ChassisTypePEnterpriseServer returns a pointer to ChassisTypeVEnterpriseServer
+func ChassisTypePEnterpriseServer() *ChassisType {
+ v := ChassisTypeVEnterpriseServer
+ return &v
+}
+
+// ChassisTypePPhone returns a pointer to ChassisTypeVPhone
+func ChassisTypePPhone() *ChassisType {
+ v := ChassisTypeVPhone
+ return &v
+}
+
+// ChassisTypePTablet returns a pointer to ChassisTypeVTablet
+func ChassisTypePTablet() *ChassisType {
+ v := ChassisTypeVTablet
+ return &v
+}
+
+// ChassisTypePMobileOther returns a pointer to ChassisTypeVMobileOther
+func ChassisTypePMobileOther() *ChassisType {
+ v := ChassisTypeVMobileOther
+ return &v
+}
+
+// ChassisTypePMobileUnknown returns a pointer to ChassisTypeVMobileUnknown
+func ChassisTypePMobileUnknown() *ChassisType {
+ v := ChassisTypeVMobileUnknown
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatActivityStatisticsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatActivityStatisticsModel.go
new file mode 100644
index 00000000..0f3cff90
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatActivityStatisticsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ChatActivityStatistics undocumented
+type ChatActivityStatistics struct {
+ // ActivityStatistics is the base model of ChatActivityStatistics
+ ActivityStatistics
+ // AfterHours undocumented
+ AfterHours *time.Duration `json:"afterHours,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatInfoModel.go
new file mode 100644
index 00000000..d3f29468
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatInfoModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatInfo undocumented
+type ChatInfo struct {
+ // Object is the base model of ChatInfo
+ Object
+ // ThreadID undocumented
+ ThreadID *string `json:"threadId,omitempty"`
+ // MessageID undocumented
+ MessageID *string `json:"messageId,omitempty"`
+ // ReplyChainMessageID undocumented
+ ReplyChainMessageID *string `json:"replyChainMessageId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatMembersNotificationAudienceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMembersNotificationAudienceModel.go
new file mode 100644
index 00000000..056a4108
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMembersNotificationAudienceModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMembersNotificationAudience undocumented
+type ChatMembersNotificationAudience struct {
+ // Object is the base model of ChatMembersNotificationAudience
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageAttachmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageAttachmentModel.go
new file mode 100644
index 00000000..d52cd5cd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageAttachmentModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMessageAttachment undocumented
+type ChatMessageAttachment struct {
+ // Object is the base model of ChatMessageAttachment
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // ContentType undocumented
+ ContentType *string `json:"contentType,omitempty"`
+ // ContentURL undocumented
+ ContentURL *string `json:"contentUrl,omitempty"`
+ // Content undocumented
+ Content *string `json:"content,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ThumbnailURL undocumented
+ ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageHostedContentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageHostedContentModel.go
new file mode 100644
index 00000000..48a275c7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageHostedContentModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMessageHostedContent undocumented
+type ChatMessageHostedContent struct {
+ // Entity is the base model of ChatMessageHostedContent
+ Entity
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageHostedContentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageHostedContentRequest.go
new file mode 100644
index 00000000..8ad616db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageHostedContentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ChatMessageHostedContentRequestBuilder is request builder for ChatMessageHostedContent
+type ChatMessageHostedContentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ChatMessageHostedContentRequest
+func (b *ChatMessageHostedContentRequestBuilder) Request() *ChatMessageHostedContentRequest {
+ return &ChatMessageHostedContentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ChatMessageHostedContentRequest is request for ChatMessageHostedContent
+type ChatMessageHostedContentRequest struct{ BaseRequest }
+
+// Get performs GET request for ChatMessageHostedContent
+func (r *ChatMessageHostedContentRequest) Get(ctx context.Context) (resObj *ChatMessageHostedContent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ChatMessageHostedContent
+func (r *ChatMessageHostedContentRequest) Update(ctx context.Context, reqObj *ChatMessageHostedContent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ChatMessageHostedContent
+func (r *ChatMessageHostedContentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageImportanceEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageImportanceEnum.go
new file mode 100644
index 00000000..769ca19e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageImportanceEnum.go
@@ -0,0 +1,36 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMessageImportance undocumented
+type ChatMessageImportance string
+
+/*
+
+const (
+ // ChatMessageImportanceVNormal undocumented
+ ChatMessageImportanceVNormal ChatMessageImportance = 0
+ // ChatMessageImportanceVHigh undocumented
+ ChatMessageImportanceVHigh ChatMessageImportance = 1
+ // ChatMessageImportanceVUrgent undocumented
+ ChatMessageImportanceVUrgent ChatMessageImportance = 2
+)
+
+// ChatMessageImportancePNormal returns a pointer to ChatMessageImportanceVNormal
+func ChatMessageImportancePNormal() *ChatMessageImportance {
+ v := ChatMessageImportanceVNormal
+ return &v
+}
+
+// ChatMessageImportancePHigh returns a pointer to ChatMessageImportanceVHigh
+func ChatMessageImportancePHigh() *ChatMessageImportance {
+ v := ChatMessageImportanceVHigh
+ return &v
+}
+
+// ChatMessageImportancePUrgent returns a pointer to ChatMessageImportanceVUrgent
+func ChatMessageImportancePUrgent() *ChatMessageImportance {
+ v := ChatMessageImportanceVUrgent
+ return &v
+}
+*/
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageMentionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageMentionModel.go
new file mode 100644
index 00000000..64d2d0a9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageMentionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMessageMention undocumented
+type ChatMessageMention struct {
+ // Object is the base model of ChatMessageMention
+ Object
+ // ID undocumented
+ ID *int `json:"id,omitempty"`
+ // MentionText undocumented
+ MentionText *string `json:"mentionText,omitempty"`
+ // Mentioned undocumented
+ Mentioned *IdentitySet `json:"mentioned,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageModel.go
new file mode 100644
index 00000000..051c2bd5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ChatMessage undocumented
+type ChatMessage struct {
+ // Entity is the base model of ChatMessage
+ Entity
+ // ReplyToID undocumented
+ ReplyToID *string `json:"replyToId,omitempty"`
+ // From undocumented
+ From *IdentitySet `json:"from,omitempty"`
+ // Etag undocumented
+ Etag *string `json:"etag,omitempty"`
+ // MessageType undocumented
+ MessageType *ChatMessageType `json:"messageType,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DeletedDateTime undocumented
+ DeletedDateTime *time.Time `json:"deletedDateTime,omitempty"`
+ // Subject undocumented
+ Subject *string `json:"subject,omitempty"`
+ // Body undocumented
+ Body *ItemBody `json:"body,omitempty"`
+ // Summary undocumented
+ Summary *string `json:"summary,omitempty"`
+ // Attachments undocumented
+ Attachments []ChatMessageAttachment `json:"attachments,omitempty"`
+ // Mentions undocumented
+ Mentions []ChatMessageMention `json:"mentions,omitempty"`
+ // Importance undocumented
+ Importance *ChatMessageImportance `json:"importance,omitempty"`
+ // PolicyViolation undocumented
+ PolicyViolation *ChatMessagePolicyViolation `json:"policyViolation,omitempty"`
+ // Reactions undocumented
+ Reactions []ChatMessageReaction `json:"reactions,omitempty"`
+ // Locale undocumented
+ Locale *string `json:"locale,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+ // Replies undocumented
+ Replies []ChatMessage `json:"replies,omitempty"`
+ // HostedContents undocumented
+ HostedContents []ChatMessageHostedContent `json:"hostedContents,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessagePolicyViolationDlpActionTypesEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessagePolicyViolationDlpActionTypesEnum.go
new file mode 100644
index 00000000..6cdac306
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessagePolicyViolationDlpActionTypesEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMessagePolicyViolationDlpActionTypes undocumented
+type ChatMessagePolicyViolationDlpActionTypes int
+
+const (
+ // ChatMessagePolicyViolationDlpActionTypesVNone undocumented
+ ChatMessagePolicyViolationDlpActionTypesVNone ChatMessagePolicyViolationDlpActionTypes = 0
+ // ChatMessagePolicyViolationDlpActionTypesVNotifySender undocumented
+ ChatMessagePolicyViolationDlpActionTypesVNotifySender ChatMessagePolicyViolationDlpActionTypes = 1
+ // ChatMessagePolicyViolationDlpActionTypesVBlockAccess undocumented
+ ChatMessagePolicyViolationDlpActionTypesVBlockAccess ChatMessagePolicyViolationDlpActionTypes = 2
+ // ChatMessagePolicyViolationDlpActionTypesVBlockAccessExternal undocumented
+ ChatMessagePolicyViolationDlpActionTypesVBlockAccessExternal ChatMessagePolicyViolationDlpActionTypes = 4
+)
+
+// ChatMessagePolicyViolationDlpActionTypesPNone returns a pointer to ChatMessagePolicyViolationDlpActionTypesVNone
+func ChatMessagePolicyViolationDlpActionTypesPNone() *ChatMessagePolicyViolationDlpActionTypes {
+ v := ChatMessagePolicyViolationDlpActionTypesVNone
+ return &v
+}
+
+// ChatMessagePolicyViolationDlpActionTypesPNotifySender returns a pointer to ChatMessagePolicyViolationDlpActionTypesVNotifySender
+func ChatMessagePolicyViolationDlpActionTypesPNotifySender() *ChatMessagePolicyViolationDlpActionTypes {
+ v := ChatMessagePolicyViolationDlpActionTypesVNotifySender
+ return &v
+}
+
+// ChatMessagePolicyViolationDlpActionTypesPBlockAccess returns a pointer to ChatMessagePolicyViolationDlpActionTypesVBlockAccess
+func ChatMessagePolicyViolationDlpActionTypesPBlockAccess() *ChatMessagePolicyViolationDlpActionTypes {
+ v := ChatMessagePolicyViolationDlpActionTypesVBlockAccess
+ return &v
+}
+
+// ChatMessagePolicyViolationDlpActionTypesPBlockAccessExternal returns a pointer to ChatMessagePolicyViolationDlpActionTypesVBlockAccessExternal
+func ChatMessagePolicyViolationDlpActionTypesPBlockAccessExternal() *ChatMessagePolicyViolationDlpActionTypes {
+ v := ChatMessagePolicyViolationDlpActionTypesVBlockAccessExternal
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessagePolicyViolationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessagePolicyViolationModel.go
new file mode 100644
index 00000000..129cbdc1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessagePolicyViolationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMessagePolicyViolation undocumented
+type ChatMessagePolicyViolation struct {
+ // Object is the base model of ChatMessagePolicyViolation
+ Object
+ // DlpAction undocumented
+ DlpAction *ChatMessagePolicyViolationDlpActionTypes `json:"dlpAction,omitempty"`
+ // JustificationText undocumented
+ JustificationText *string `json:"justificationText,omitempty"`
+ // PolicyTip undocumented
+ PolicyTip *ChatMessagePolicyViolationPolicyTip `json:"policyTip,omitempty"`
+ // UserAction undocumented
+ UserAction *ChatMessagePolicyViolationUserActionTypes `json:"userAction,omitempty"`
+ // VerdictDetails undocumented
+ VerdictDetails *ChatMessagePolicyViolationVerdictDetailsTypes `json:"verdictDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessagePolicyViolationPolicyTipModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessagePolicyViolationPolicyTipModel.go
new file mode 100644
index 00000000..00856cea
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessagePolicyViolationPolicyTipModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMessagePolicyViolationPolicyTip undocumented
+type ChatMessagePolicyViolationPolicyTip struct {
+ // Object is the base model of ChatMessagePolicyViolationPolicyTip
+ Object
+ // GeneralText undocumented
+ GeneralText *string `json:"generalText,omitempty"`
+ // ComplianceURL undocumented
+ ComplianceURL *string `json:"complianceUrl,omitempty"`
+ // MatchedConditionDescriptions undocumented
+ MatchedConditionDescriptions []string `json:"matchedConditionDescriptions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessagePolicyViolationUserActionTypesEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessagePolicyViolationUserActionTypesEnum.go
new file mode 100644
index 00000000..1117d91f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessagePolicyViolationUserActionTypesEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMessagePolicyViolationUserActionTypes undocumented
+type ChatMessagePolicyViolationUserActionTypes int
+
+const (
+ // ChatMessagePolicyViolationUserActionTypesVNone undocumented
+ ChatMessagePolicyViolationUserActionTypesVNone ChatMessagePolicyViolationUserActionTypes = 0
+ // ChatMessagePolicyViolationUserActionTypesVOverride undocumented
+ ChatMessagePolicyViolationUserActionTypesVOverride ChatMessagePolicyViolationUserActionTypes = 1
+ // ChatMessagePolicyViolationUserActionTypesVReportFalsePositive undocumented
+ ChatMessagePolicyViolationUserActionTypesVReportFalsePositive ChatMessagePolicyViolationUserActionTypes = 2
+)
+
+// ChatMessagePolicyViolationUserActionTypesPNone returns a pointer to ChatMessagePolicyViolationUserActionTypesVNone
+func ChatMessagePolicyViolationUserActionTypesPNone() *ChatMessagePolicyViolationUserActionTypes {
+ v := ChatMessagePolicyViolationUserActionTypesVNone
+ return &v
+}
+
+// ChatMessagePolicyViolationUserActionTypesPOverride returns a pointer to ChatMessagePolicyViolationUserActionTypesVOverride
+func ChatMessagePolicyViolationUserActionTypesPOverride() *ChatMessagePolicyViolationUserActionTypes {
+ v := ChatMessagePolicyViolationUserActionTypesVOverride
+ return &v
+}
+
+// ChatMessagePolicyViolationUserActionTypesPReportFalsePositive returns a pointer to ChatMessagePolicyViolationUserActionTypesVReportFalsePositive
+func ChatMessagePolicyViolationUserActionTypesPReportFalsePositive() *ChatMessagePolicyViolationUserActionTypes {
+ v := ChatMessagePolicyViolationUserActionTypesVReportFalsePositive
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessagePolicyViolationVerdictDetailsTypesEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessagePolicyViolationVerdictDetailsTypesEnum.go
new file mode 100644
index 00000000..5b031fb1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessagePolicyViolationVerdictDetailsTypesEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMessagePolicyViolationVerdictDetailsTypes undocumented
+type ChatMessagePolicyViolationVerdictDetailsTypes int
+
+const (
+ // ChatMessagePolicyViolationVerdictDetailsTypesVNone undocumented
+ ChatMessagePolicyViolationVerdictDetailsTypesVNone ChatMessagePolicyViolationVerdictDetailsTypes = 0
+ // ChatMessagePolicyViolationVerdictDetailsTypesVAllowFalsePositiveOverride undocumented
+ ChatMessagePolicyViolationVerdictDetailsTypesVAllowFalsePositiveOverride ChatMessagePolicyViolationVerdictDetailsTypes = 1
+ // ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithoutJustification undocumented
+ ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithoutJustification ChatMessagePolicyViolationVerdictDetailsTypes = 2
+ // ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithJustification undocumented
+ ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithJustification ChatMessagePolicyViolationVerdictDetailsTypes = 4
+)
+
+// ChatMessagePolicyViolationVerdictDetailsTypesPNone returns a pointer to ChatMessagePolicyViolationVerdictDetailsTypesVNone
+func ChatMessagePolicyViolationVerdictDetailsTypesPNone() *ChatMessagePolicyViolationVerdictDetailsTypes {
+ v := ChatMessagePolicyViolationVerdictDetailsTypesVNone
+ return &v
+}
+
+// ChatMessagePolicyViolationVerdictDetailsTypesPAllowFalsePositiveOverride returns a pointer to ChatMessagePolicyViolationVerdictDetailsTypesVAllowFalsePositiveOverride
+func ChatMessagePolicyViolationVerdictDetailsTypesPAllowFalsePositiveOverride() *ChatMessagePolicyViolationVerdictDetailsTypes {
+ v := ChatMessagePolicyViolationVerdictDetailsTypesVAllowFalsePositiveOverride
+ return &v
+}
+
+// ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithoutJustification returns a pointer to ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithoutJustification
+func ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithoutJustification() *ChatMessagePolicyViolationVerdictDetailsTypes {
+ v := ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithoutJustification
+ return &v
+}
+
+// ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithJustification returns a pointer to ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithJustification
+func ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithJustification() *ChatMessagePolicyViolationVerdictDetailsTypes {
+ v := ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithJustification
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageReactionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageReactionModel.go
new file mode 100644
index 00000000..3f7bb4e5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageReactionModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ChatMessageReaction undocumented
+type ChatMessageReaction struct {
+ // Object is the base model of ChatMessageReaction
+ Object
+ // ReactionType undocumented
+ ReactionType *string `json:"reactionType,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // User undocumented
+ User *IdentitySet `json:"user,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageRequest.go
new file mode 100644
index 00000000..8e22ab5b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ChatMessageRequestBuilder is request builder for ChatMessage
+type ChatMessageRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ChatMessageRequest
+func (b *ChatMessageRequestBuilder) Request() *ChatMessageRequest {
+ return &ChatMessageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ChatMessageRequest is request for ChatMessage
+type ChatMessageRequest struct{ BaseRequest }
+
+// Get performs GET request for ChatMessage
+func (r *ChatMessageRequest) Get(ctx context.Context) (resObj *ChatMessage, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ChatMessage
+func (r *ChatMessageRequest) Update(ctx context.Context, reqObj *ChatMessage) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ChatMessage
+func (r *ChatMessageRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// HostedContents returns request builder for ChatMessageHostedContent collection
+func (b *ChatMessageRequestBuilder) HostedContents() *ChatMessageHostedContentsCollectionRequestBuilder {
+ bb := &ChatMessageHostedContentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/hostedContents"
+ return bb
+}
+
+// ChatMessageHostedContentsCollectionRequestBuilder is request builder for ChatMessageHostedContent collection
+type ChatMessageHostedContentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ChatMessageHostedContent collection
+func (b *ChatMessageHostedContentsCollectionRequestBuilder) Request() *ChatMessageHostedContentsCollectionRequest {
+ return &ChatMessageHostedContentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ChatMessageHostedContent item
+func (b *ChatMessageHostedContentsCollectionRequestBuilder) ID(id string) *ChatMessageHostedContentRequestBuilder {
+ bb := &ChatMessageHostedContentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ChatMessageHostedContentsCollectionRequest is request for ChatMessageHostedContent collection
+type ChatMessageHostedContentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ChatMessageHostedContent collection
+func (r *ChatMessageHostedContentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ChatMessageHostedContent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ChatMessageHostedContent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ChatMessageHostedContent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ChatMessageHostedContent collection
+func (r *ChatMessageHostedContentsCollectionRequest) Get(ctx context.Context) ([]ChatMessageHostedContent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ChatMessageHostedContent collection
+func (r *ChatMessageHostedContentsCollectionRequest) Add(ctx context.Context, reqObj *ChatMessageHostedContent) (resObj *ChatMessageHostedContent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Replies returns request builder for ChatMessage collection
+func (b *ChatMessageRequestBuilder) Replies() *ChatMessageRepliesCollectionRequestBuilder {
+ bb := &ChatMessageRepliesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/replies"
+ return bb
+}
+
+// ChatMessageRepliesCollectionRequestBuilder is request builder for ChatMessage collection
+type ChatMessageRepliesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ChatMessage collection
+func (b *ChatMessageRepliesCollectionRequestBuilder) Request() *ChatMessageRepliesCollectionRequest {
+ return &ChatMessageRepliesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ChatMessage item
+func (b *ChatMessageRepliesCollectionRequestBuilder) ID(id string) *ChatMessageRequestBuilder {
+ bb := &ChatMessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ChatMessageRepliesCollectionRequest is request for ChatMessage collection
+type ChatMessageRepliesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ChatMessage collection
+func (r *ChatMessageRepliesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ChatMessage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ChatMessage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ChatMessage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ChatMessage collection
+func (r *ChatMessageRepliesCollectionRequest) Get(ctx context.Context) ([]ChatMessage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ChatMessage collection
+func (r *ChatMessageRepliesCollectionRequest) Add(ctx context.Context, reqObj *ChatMessage) (resObj *ChatMessage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageTypeEnum.go
new file mode 100644
index 00000000..48a98a6b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatMessageTypeEnum.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMessageType undocumented
+type ChatMessageType string
+/*
+
+const (
+ // ChatMessageTypeVMessage undocumented
+ ChatMessageTypeVMessage ChatMessageType = 0
+ // ChatMessageTypeVChatEvent undocumented
+ ChatMessageTypeVChatEvent ChatMessageType = 1
+ // ChatMessageTypeVTyping undocumented
+ ChatMessageTypeVTyping ChatMessageType = 2
+)
+
+// ChatMessageTypePMessage returns a pointer to ChatMessageTypeVMessage
+func ChatMessageTypePMessage() *ChatMessageType {
+ v := ChatMessageTypeVMessage
+ return &v
+}
+
+// ChatMessageTypePChatEvent returns a pointer to ChatMessageTypeVChatEvent
+func ChatMessageTypePChatEvent() *ChatMessageType {
+ v := ChatMessageTypeVChatEvent
+ return &v
+}
+
+// ChatMessageTypePTyping returns a pointer to ChatMessageTypeVTyping
+func ChatMessageTypePTyping() *ChatMessageType {
+ v := ChatMessageTypeVTyping
+ return &v
+}
+*/
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatModel.go
new file mode 100644
index 00000000..2f96e52d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Chat undocumented
+type Chat struct {
+ // Entity is the base model of Chat
+ Entity
+ // Topic undocumented
+ Topic *string `json:"topic,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastUpdatedDateTime undocumented
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+ // Members undocumented
+ Members []ConversationMember `json:"members,omitempty"`
+ // Messages undocumented
+ Messages []ChatMessage `json:"messages,omitempty"`
+ // InstalledApps undocumented
+ InstalledApps []TeamsAppInstallation `json:"installedApps,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChatRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChatRequest.go
new file mode 100644
index 00000000..1e45c680
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChatRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ChatRequestBuilder is request builder for Chat
+type ChatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ChatRequest
+func (b *ChatRequestBuilder) Request() *ChatRequest {
+ return &ChatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ChatRequest is request for Chat
+type ChatRequest struct{ BaseRequest }
+
+// Get performs GET request for Chat
+func (r *ChatRequest) Get(ctx context.Context) (resObj *Chat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Chat
+func (r *ChatRequest) Update(ctx context.Context, reqObj *Chat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Chat
+func (r *ChatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// InstalledApps returns request builder for TeamsAppInstallation collection
+func (b *ChatRequestBuilder) InstalledApps() *ChatInstalledAppsCollectionRequestBuilder {
+ bb := &ChatInstalledAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/installedApps"
+ return bb
+}
+
+// ChatInstalledAppsCollectionRequestBuilder is request builder for TeamsAppInstallation collection
+type ChatInstalledAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsAppInstallation collection
+func (b *ChatInstalledAppsCollectionRequestBuilder) Request() *ChatInstalledAppsCollectionRequest {
+ return &ChatInstalledAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsAppInstallation item
+func (b *ChatInstalledAppsCollectionRequestBuilder) ID(id string) *TeamsAppInstallationRequestBuilder {
+ bb := &TeamsAppInstallationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ChatInstalledAppsCollectionRequest is request for TeamsAppInstallation collection
+type ChatInstalledAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsAppInstallation collection
+func (r *ChatInstalledAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TeamsAppInstallation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsAppInstallation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsAppInstallation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsAppInstallation collection
+func (r *ChatInstalledAppsCollectionRequest) Get(ctx context.Context) ([]TeamsAppInstallation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TeamsAppInstallation collection
+func (r *ChatInstalledAppsCollectionRequest) Add(ctx context.Context, reqObj *TeamsAppInstallation) (resObj *TeamsAppInstallation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Members returns request builder for ConversationMember collection
+func (b *ChatRequestBuilder) Members() *ChatMembersCollectionRequestBuilder {
+ bb := &ChatMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/members"
+ return bb
+}
+
+// ChatMembersCollectionRequestBuilder is request builder for ConversationMember collection
+type ChatMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ConversationMember collection
+func (b *ChatMembersCollectionRequestBuilder) Request() *ChatMembersCollectionRequest {
+ return &ChatMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ConversationMember item
+func (b *ChatMembersCollectionRequestBuilder) ID(id string) *ConversationMemberRequestBuilder {
+ bb := &ConversationMemberRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ChatMembersCollectionRequest is request for ConversationMember collection
+type ChatMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ConversationMember collection
+func (r *ChatMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ConversationMember, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ConversationMember
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ConversationMember
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ConversationMember collection
+func (r *ChatMembersCollectionRequest) Get(ctx context.Context) ([]ConversationMember, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ConversationMember collection
+func (r *ChatMembersCollectionRequest) Add(ctx context.Context, reqObj *ConversationMember) (resObj *ConversationMember, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Messages returns request builder for ChatMessage collection
+func (b *ChatRequestBuilder) Messages() *ChatMessagesCollectionRequestBuilder {
+ bb := &ChatMessagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/messages"
+ return bb
+}
+
+// ChatMessagesCollectionRequestBuilder is request builder for ChatMessage collection
+type ChatMessagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ChatMessage collection
+func (b *ChatMessagesCollectionRequestBuilder) Request() *ChatMessagesCollectionRequest {
+ return &ChatMessagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ChatMessage item
+func (b *ChatMessagesCollectionRequestBuilder) ID(id string) *ChatMessageRequestBuilder {
+ bb := &ChatMessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ChatMessagesCollectionRequest is request for ChatMessage collection
+type ChatMessagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ChatMessage collection
+func (r *ChatMessagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ChatMessage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ChatMessage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ChatMessage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ChatMessage collection
+func (r *ChatMessagesCollectionRequest) Get(ctx context.Context) ([]ChatMessage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ChatMessage collection
+func (r *ChatMessagesCollectionRequest) Add(ctx context.Context, reqObj *ChatMessage) (resObj *ChatMessage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ChoiceColumnModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ChoiceColumnModel.go
new file mode 100644
index 00000000..58bbc919
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ChoiceColumnModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChoiceColumn undocumented
+type ChoiceColumn struct {
+ // Object is the base model of ChoiceColumn
+ Object
+ // AllowTextEntry undocumented
+ AllowTextEntry *bool `json:"allowTextEntry,omitempty"`
+ // Choices undocumented
+ Choices []string `json:"choices,omitempty"`
+ // DisplayAs undocumented
+ DisplayAs *string `json:"displayAs,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CircularGeofenceManagementConditionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CircularGeofenceManagementConditionModel.go
new file mode 100644
index 00000000..85fa9195
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CircularGeofenceManagementConditionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CircularGeofenceManagementCondition Contains the information to define a circular geo-fence management condition, an area of interest, to monitor.
+type CircularGeofenceManagementCondition struct {
+ // LocationManagementCondition is the base model of CircularGeofenceManagementCondition
+ LocationManagementCondition
+ // Latitude Latitude in degrees, between -90 and +90 inclusive.
+ Latitude *float64 `json:"latitude,omitempty"`
+ // Longitude Longitude in degrees, between -180 and +180 inclusive.
+ Longitude *float64 `json:"longitude,omitempty"`
+ // RadiusInMeters Radius in meters.
+ RadiusInMeters *float64 `json:"radiusInMeters,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ClassifcationErrorBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ClassifcationErrorBaseModel.go
new file mode 100644
index 00000000..cb76c084
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ClassifcationErrorBaseModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ClassifcationErrorBase undocumented
+type ClassifcationErrorBase struct {
+ // Object is the base model of ClassifcationErrorBase
+ Object
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Target undocumented
+ Target *string `json:"target,omitempty"`
+ // InnerError undocumented
+ InnerError *ClassificationInnerError `json:"innerError,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ClassificationErrorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ClassificationErrorModel.go
new file mode 100644
index 00000000..6f430008
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ClassificationErrorModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ClassificationError undocumented
+type ClassificationError struct {
+ // ClassifcationErrorBase is the base model of ClassificationError
+ ClassifcationErrorBase
+ // Details undocumented
+ Details []ClassifcationErrorBase `json:"details,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ClassificationInnerErrorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ClassificationInnerErrorModel.go
new file mode 100644
index 00000000..ed09c201
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ClassificationInnerErrorModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ClassificationInnerError undocumented
+type ClassificationInnerError struct {
+ // Object is the base model of ClassificationInnerError
+ Object
+ // ErrorDateTime undocumented
+ ErrorDateTime *time.Time `json:"errorDateTime,omitempty"`
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // ClientRequestID undocumented
+ ClientRequestID *string `json:"clientRequestId,omitempty"`
+ // ActivityID undocumented
+ ActivityID *string `json:"activityId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ClassificationJobResponseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ClassificationJobResponseModel.go
new file mode 100644
index 00000000..4e84954f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ClassificationJobResponseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ClassificationJobResponse undocumented
+type ClassificationJobResponse struct {
+ // JobResponseBase is the base model of ClassificationJobResponse
+ JobResponseBase
+ // Result undocumented
+ Result *DetectedSensitiveContentWrapper `json:"result,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ClassificationResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ClassificationResultModel.go
new file mode 100644
index 00000000..fc5ef1a1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ClassificationResultModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ClassificationResult undocumented
+type ClassificationResult struct {
+ // Object is the base model of ClassificationResult
+ Object
+ // SensitiveTypeID undocumented
+ SensitiveTypeID *UUID `json:"sensitiveTypeId,omitempty"`
+ // Count undocumented
+ Count *int `json:"count,omitempty"`
+ // ConfidenceLevel undocumented
+ ConfidenceLevel *int `json:"confidenceLevel,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ClonableTeamPartsEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ClonableTeamPartsEnum.go
new file mode 100644
index 00000000..8702762f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ClonableTeamPartsEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ClonableTeamParts undocumented
+type ClonableTeamParts int
+
+const (
+ // ClonableTeamPartsVApps undocumented
+ ClonableTeamPartsVApps ClonableTeamParts = 1
+ // ClonableTeamPartsVTabs undocumented
+ ClonableTeamPartsVTabs ClonableTeamParts = 2
+ // ClonableTeamPartsVSettings undocumented
+ ClonableTeamPartsVSettings ClonableTeamParts = 4
+ // ClonableTeamPartsVChannels undocumented
+ ClonableTeamPartsVChannels ClonableTeamParts = 8
+ // ClonableTeamPartsVMembers undocumented
+ ClonableTeamPartsVMembers ClonableTeamParts = 16
+)
+
+// ClonableTeamPartsPApps returns a pointer to ClonableTeamPartsVApps
+func ClonableTeamPartsPApps() *ClonableTeamParts {
+ v := ClonableTeamPartsVApps
+ return &v
+}
+
+// ClonableTeamPartsPTabs returns a pointer to ClonableTeamPartsVTabs
+func ClonableTeamPartsPTabs() *ClonableTeamParts {
+ v := ClonableTeamPartsVTabs
+ return &v
+}
+
+// ClonableTeamPartsPSettings returns a pointer to ClonableTeamPartsVSettings
+func ClonableTeamPartsPSettings() *ClonableTeamParts {
+ v := ClonableTeamPartsVSettings
+ return &v
+}
+
+// ClonableTeamPartsPChannels returns a pointer to ClonableTeamPartsVChannels
+func ClonableTeamPartsPChannels() *ClonableTeamParts {
+ v := ClonableTeamPartsVChannels
+ return &v
+}
+
+// ClonableTeamPartsPMembers returns a pointer to ClonableTeamPartsVMembers
+func ClonableTeamPartsPMembers() *ClonableTeamParts {
+ v := ClonableTeamPartsVMembers
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CloudAppSecurityProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CloudAppSecurityProfileModel.go
new file mode 100644
index 00000000..6a07b741
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CloudAppSecurityProfileModel.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// CloudAppSecurityProfile undocumented
+type CloudAppSecurityProfile struct {
+ // Entity is the base model of CloudAppSecurityProfile
+ Entity
+ // AzureSubscriptionID undocumented
+ AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DeploymentPackageURL undocumented
+ DeploymentPackageURL *string `json:"deploymentPackageUrl,omitempty"`
+ // DestinationServiceName undocumented
+ DestinationServiceName *string `json:"destinationServiceName,omitempty"`
+ // IsSigned undocumented
+ IsSigned *bool `json:"isSigned,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Manifest undocumented
+ Manifest *string `json:"manifest,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // PermissionsRequired undocumented
+ PermissionsRequired *ApplicationPermissionsRequired `json:"permissionsRequired,omitempty"`
+ // Platform undocumented
+ Platform *string `json:"platform,omitempty"`
+ // PolicyName undocumented
+ PolicyName *string `json:"policyName,omitempty"`
+ // Publisher undocumented
+ Publisher *string `json:"publisher,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CloudAppSecurityProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CloudAppSecurityProfileRequest.go
new file mode 100644
index 00000000..04a15964
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CloudAppSecurityProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CloudAppSecurityProfileRequestBuilder is request builder for CloudAppSecurityProfile
+type CloudAppSecurityProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CloudAppSecurityProfileRequest
+func (b *CloudAppSecurityProfileRequestBuilder) Request() *CloudAppSecurityProfileRequest {
+ return &CloudAppSecurityProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CloudAppSecurityProfileRequest is request for CloudAppSecurityProfile
+type CloudAppSecurityProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for CloudAppSecurityProfile
+func (r *CloudAppSecurityProfileRequest) Get(ctx context.Context) (resObj *CloudAppSecurityProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CloudAppSecurityProfile
+func (r *CloudAppSecurityProfileRequest) Update(ctx context.Context, reqObj *CloudAppSecurityProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CloudAppSecurityProfile
+func (r *CloudAppSecurityProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CloudAppSecuritySessionControlModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CloudAppSecuritySessionControlModel.go
new file mode 100644
index 00000000..ead22dbb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CloudAppSecuritySessionControlModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CloudAppSecuritySessionControl undocumented
+type CloudAppSecuritySessionControl struct {
+ // ConditionalAccessSessionControl is the base model of CloudAppSecuritySessionControl
+ ConditionalAccessSessionControl
+ // CloudAppSecurityType undocumented
+ CloudAppSecurityType *CloudAppSecuritySessionControlType `json:"cloudAppSecurityType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CloudAppSecuritySessionControlTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/CloudAppSecuritySessionControlTypeEnum.go
new file mode 100644
index 00000000..94a6f1ee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CloudAppSecuritySessionControlTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CloudAppSecuritySessionControlType undocumented
+type CloudAppSecuritySessionControlType int
+
+const (
+ // CloudAppSecuritySessionControlTypeVMcasConfigured undocumented
+ CloudAppSecuritySessionControlTypeVMcasConfigured CloudAppSecuritySessionControlType = 0
+ // CloudAppSecuritySessionControlTypeVMonitorOnly undocumented
+ CloudAppSecuritySessionControlTypeVMonitorOnly CloudAppSecuritySessionControlType = 1
+ // CloudAppSecuritySessionControlTypeVBlockDownloads undocumented
+ CloudAppSecuritySessionControlTypeVBlockDownloads CloudAppSecuritySessionControlType = 2
+)
+
+// CloudAppSecuritySessionControlTypePMcasConfigured returns a pointer to CloudAppSecuritySessionControlTypeVMcasConfigured
+func CloudAppSecuritySessionControlTypePMcasConfigured() *CloudAppSecuritySessionControlType {
+ v := CloudAppSecuritySessionControlTypeVMcasConfigured
+ return &v
+}
+
+// CloudAppSecuritySessionControlTypePMonitorOnly returns a pointer to CloudAppSecuritySessionControlTypeVMonitorOnly
+func CloudAppSecuritySessionControlTypePMonitorOnly() *CloudAppSecuritySessionControlType {
+ v := CloudAppSecuritySessionControlTypeVMonitorOnly
+ return &v
+}
+
+// CloudAppSecuritySessionControlTypePBlockDownloads returns a pointer to CloudAppSecuritySessionControlTypeVBlockDownloads
+func CloudAppSecuritySessionControlTypePBlockDownloads() *CloudAppSecuritySessionControlType {
+ v := CloudAppSecuritySessionControlTypeVBlockDownloads
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CloudAppSecurityStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CloudAppSecurityStateModel.go
new file mode 100644
index 00000000..9466ff2b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CloudAppSecurityStateModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CloudAppSecurityState undocumented
+type CloudAppSecurityState struct {
+ // Object is the base model of CloudAppSecurityState
+ Object
+ // DestinationServiceIP undocumented
+ DestinationServiceIP *string `json:"destinationServiceIp,omitempty"`
+ // DestinationServiceName undocumented
+ DestinationServiceName *string `json:"destinationServiceName,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CloudCommunicationsAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/CloudCommunicationsAction.go
new file mode 100644
index 00000000..c1e8790c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CloudCommunicationsAction.go
@@ -0,0 +1,100 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// CloudCommunicationsGetPresencesByUserIDRequestParameter undocumented
+type CloudCommunicationsGetPresencesByUserIDRequestParameter struct {
+ // IDs undocumented
+ IDs []string `json:"ids,omitempty"`
+}
+
+//
+type CloudCommunicationsGetPresencesByUserIDRequestBuilder struct{ BaseRequestBuilder }
+
+// GetPresencesByUserID action undocumented
+func (b *CloudCommunicationsRequestBuilder) GetPresencesByUserID(reqObj *CloudCommunicationsGetPresencesByUserIDRequestParameter) *CloudCommunicationsGetPresencesByUserIDRequestBuilder {
+ bb := &CloudCommunicationsGetPresencesByUserIDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getPresencesByUserId"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CloudCommunicationsGetPresencesByUserIDRequest struct{ BaseRequest }
+
+//
+func (b *CloudCommunicationsGetPresencesByUserIDRequestBuilder) Request() *CloudCommunicationsGetPresencesByUserIDRequest {
+ return &CloudCommunicationsGetPresencesByUserIDRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CloudCommunicationsGetPresencesByUserIDRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]Presence, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]Presence
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]Presence
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *CloudCommunicationsGetPresencesByUserIDRequest) Get(ctx context.Context) ([][]Presence, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CloudCommunicationsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CloudCommunicationsModel.go
new file mode 100644
index 00000000..1d0c2913
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CloudCommunicationsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CloudCommunications undocumented
+type CloudCommunications struct {
+ // Entity is the base model of CloudCommunications
+ Entity
+ // Calls undocumented
+ Calls []Call `json:"calls,omitempty"`
+ // OnlineMeetings undocumented
+ OnlineMeetings []OnlineMeeting `json:"onlineMeetings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CloudCommunicationsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CloudCommunicationsRequest.go
new file mode 100644
index 00000000..e67d412e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CloudCommunicationsRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// CloudCommunicationsRequestBuilder is request builder for CloudCommunications
+type CloudCommunicationsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CloudCommunicationsRequest
+func (b *CloudCommunicationsRequestBuilder) Request() *CloudCommunicationsRequest {
+ return &CloudCommunicationsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CloudCommunicationsRequest is request for CloudCommunications
+type CloudCommunicationsRequest struct{ BaseRequest }
+
+// Get performs GET request for CloudCommunications
+func (r *CloudCommunicationsRequest) Get(ctx context.Context) (resObj *CloudCommunications, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CloudCommunications
+func (r *CloudCommunicationsRequest) Update(ctx context.Context, reqObj *CloudCommunications) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CloudCommunications
+func (r *CloudCommunicationsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Calls returns request builder for Call collection
+func (b *CloudCommunicationsRequestBuilder) Calls() *CloudCommunicationsCallsCollectionRequestBuilder {
+ bb := &CloudCommunicationsCallsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calls"
+ return bb
+}
+
+// CloudCommunicationsCallsCollectionRequestBuilder is request builder for Call collection
+type CloudCommunicationsCallsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Call collection
+func (b *CloudCommunicationsCallsCollectionRequestBuilder) Request() *CloudCommunicationsCallsCollectionRequest {
+ return &CloudCommunicationsCallsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Call item
+func (b *CloudCommunicationsCallsCollectionRequestBuilder) ID(id string) *CallRequestBuilder {
+ bb := &CallRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CloudCommunicationsCallsCollectionRequest is request for Call collection
+type CloudCommunicationsCallsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Call collection
+func (r *CloudCommunicationsCallsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Call, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Call
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Call
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Call collection
+func (r *CloudCommunicationsCallsCollectionRequest) Get(ctx context.Context) ([]Call, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Call collection
+func (r *CloudCommunicationsCallsCollectionRequest) Add(ctx context.Context, reqObj *Call) (resObj *Call, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// OnlineMeetings returns request builder for OnlineMeeting collection
+func (b *CloudCommunicationsRequestBuilder) OnlineMeetings() *CloudCommunicationsOnlineMeetingsCollectionRequestBuilder {
+ bb := &CloudCommunicationsOnlineMeetingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/onlineMeetings"
+ return bb
+}
+
+// CloudCommunicationsOnlineMeetingsCollectionRequestBuilder is request builder for OnlineMeeting collection
+type CloudCommunicationsOnlineMeetingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnlineMeeting collection
+func (b *CloudCommunicationsOnlineMeetingsCollectionRequestBuilder) Request() *CloudCommunicationsOnlineMeetingsCollectionRequest {
+ return &CloudCommunicationsOnlineMeetingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnlineMeeting item
+func (b *CloudCommunicationsOnlineMeetingsCollectionRequestBuilder) ID(id string) *OnlineMeetingRequestBuilder {
+ bb := &OnlineMeetingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CloudCommunicationsOnlineMeetingsCollectionRequest is request for OnlineMeeting collection
+type CloudCommunicationsOnlineMeetingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnlineMeeting collection
+func (r *CloudCommunicationsOnlineMeetingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OnlineMeeting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnlineMeeting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnlineMeeting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnlineMeeting collection
+func (r *CloudCommunicationsOnlineMeetingsCollectionRequest) Get(ctx context.Context) ([]OnlineMeeting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OnlineMeeting collection
+func (r *CloudCommunicationsOnlineMeetingsCollectionRequest) Add(ctx context.Context, reqObj *OnlineMeeting) (resObj *OnlineMeeting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ColumnDefinitionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ColumnDefinitionModel.go
new file mode 100644
index 00000000..9a745e7b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ColumnDefinitionModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ColumnDefinition undocumented
+type ColumnDefinition struct {
+ // Entity is the base model of ColumnDefinition
+ Entity
+ // Boolean undocumented
+ Boolean *BooleanColumn `json:"boolean,omitempty"`
+ // Calculated undocumented
+ Calculated *CalculatedColumn `json:"calculated,omitempty"`
+ // Choice undocumented
+ Choice *ChoiceColumn `json:"choice,omitempty"`
+ // ColumnGroup undocumented
+ ColumnGroup *string `json:"columnGroup,omitempty"`
+ // Currency undocumented
+ Currency *CurrencyColumn `json:"currency,omitempty"`
+ // DateTime undocumented
+ DateTime *DateTimeColumn `json:"dateTime,omitempty"`
+ // DefaultValue undocumented
+ DefaultValue *DefaultColumnValue `json:"defaultValue,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // EnforceUniqueValues undocumented
+ EnforceUniqueValues *bool `json:"enforceUniqueValues,omitempty"`
+ // Geolocation undocumented
+ Geolocation *GeolocationColumn `json:"geolocation,omitempty"`
+ // Hidden undocumented
+ Hidden *bool `json:"hidden,omitempty"`
+ // Indexed undocumented
+ Indexed *bool `json:"indexed,omitempty"`
+ // Lookup undocumented
+ Lookup *LookupColumn `json:"lookup,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Number undocumented
+ Number *NumberColumn `json:"number,omitempty"`
+ // PersonOrGroup undocumented
+ PersonOrGroup *PersonOrGroupColumn `json:"personOrGroup,omitempty"`
+ // ReadOnly undocumented
+ ReadOnly *bool `json:"readOnly,omitempty"`
+ // Required undocumented
+ Required *bool `json:"required,omitempty"`
+ // Text undocumented
+ Text *TextColumn `json:"text,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ColumnDefinitionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ColumnDefinitionRequest.go
new file mode 100644
index 00000000..1b70a22e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ColumnDefinitionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ColumnDefinitionRequestBuilder is request builder for ColumnDefinition
+type ColumnDefinitionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ColumnDefinitionRequest
+func (b *ColumnDefinitionRequestBuilder) Request() *ColumnDefinitionRequest {
+ return &ColumnDefinitionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ColumnDefinitionRequest is request for ColumnDefinition
+type ColumnDefinitionRequest struct{ BaseRequest }
+
+// Get performs GET request for ColumnDefinition
+func (r *ColumnDefinitionRequest) Get(ctx context.Context) (resObj *ColumnDefinition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ColumnDefinition
+func (r *ColumnDefinitionRequest) Update(ctx context.Context, reqObj *ColumnDefinition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ColumnDefinition
+func (r *ColumnDefinitionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ColumnLinkModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ColumnLinkModel.go
new file mode 100644
index 00000000..5d4b0ae6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ColumnLinkModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ColumnLink undocumented
+type ColumnLink struct {
+ // Entity is the base model of ColumnLink
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ColumnLinkRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ColumnLinkRequest.go
new file mode 100644
index 00000000..92837d0b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ColumnLinkRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ColumnLinkRequestBuilder is request builder for ColumnLink
+type ColumnLinkRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ColumnLinkRequest
+func (b *ColumnLinkRequestBuilder) Request() *ColumnLinkRequest {
+ return &ColumnLinkRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ColumnLinkRequest is request for ColumnLink
+type ColumnLinkRequest struct{ BaseRequest }
+
+// Get performs GET request for ColumnLink
+func (r *ColumnLinkRequest) Get(ctx context.Context) (resObj *ColumnLink, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ColumnLink
+func (r *ColumnLinkRequest) Update(ctx context.Context, reqObj *ColumnLink) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ColumnLink
+func (r *ColumnLinkRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CommandModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CommandModel.go
new file mode 100644
index 00000000..a4d6e887
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CommandModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Command undocumented
+type Command struct {
+ // Entity is the base model of Command
+ Entity
+ // Status undocumented
+ Status *string `json:"Status,omitempty"`
+ // Type undocumented
+ Type *string `json:"Type,omitempty"`
+ // AppServiceName undocumented
+ AppServiceName *string `json:"AppServiceName,omitempty"`
+ // PackageFamilyName undocumented
+ PackageFamilyName *string `json:"PackageFamilyName,omitempty"`
+ // Error undocumented
+ Error *string `json:"Error,omitempty"`
+ // Payload undocumented
+ Payload *PayloadRequestObject `json:"Payload,omitempty"`
+ // PermissionTicket undocumented
+ PermissionTicket *string `json:"PermissionTicket,omitempty"`
+ // PostBackURI undocumented
+ PostBackURI *string `json:"PostBackUri,omitempty"`
+ // Responsepayload undocumented
+ Responsepayload *PayloadResponse `json:"responsepayload,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CommandRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CommandRequest.go
new file mode 100644
index 00000000..a3f18a9b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CommandRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CommandRequestBuilder is request builder for Command
+type CommandRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CommandRequest
+func (b *CommandRequestBuilder) Request() *CommandRequest {
+ return &CommandRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CommandRequest is request for Command
+type CommandRequest struct{ BaseRequest }
+
+// Get performs GET request for Command
+func (r *CommandRequest) Get(ctx context.Context) (resObj *Command, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Command
+func (r *CommandRequest) Update(ctx context.Context, reqObj *Command) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Command
+func (r *CommandRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Responsepayload is navigation property
+func (b *CommandRequestBuilder) Responsepayload() *PayloadResponseRequestBuilder {
+ bb := &PayloadResponseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/responsepayload"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CommentActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CommentActionModel.go
new file mode 100644
index 00000000..2b7daaef
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CommentActionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CommentAction undocumented
+type CommentAction struct {
+ // Object is the base model of CommentAction
+ Object
+ // IsReply undocumented
+ IsReply *bool `json:"isReply,omitempty"`
+ // ParentAuthor undocumented
+ ParentAuthor *IdentitySet `json:"parentAuthor,omitempty"`
+ // Participants undocumented
+ Participants []IdentitySet `json:"participants,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CommsApplicationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CommsApplicationModel.go
new file mode 100644
index 00000000..553a9e8b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CommsApplicationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CommsApplication undocumented
+type CommsApplication struct {
+ // Entity is the base model of CommsApplication
+ Entity
+ // Calls undocumented
+ Calls []Call `json:"calls,omitempty"`
+ // OnlineMeetings undocumented
+ OnlineMeetings []OnlineMeeting `json:"onlineMeetings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CommsApplicationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CommsApplicationRequest.go
new file mode 100644
index 00000000..a1dbeca7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CommsApplicationRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// CommsApplicationRequestBuilder is request builder for CommsApplication
+type CommsApplicationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CommsApplicationRequest
+func (b *CommsApplicationRequestBuilder) Request() *CommsApplicationRequest {
+ return &CommsApplicationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CommsApplicationRequest is request for CommsApplication
+type CommsApplicationRequest struct{ BaseRequest }
+
+// Get performs GET request for CommsApplication
+func (r *CommsApplicationRequest) Get(ctx context.Context) (resObj *CommsApplication, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CommsApplication
+func (r *CommsApplicationRequest) Update(ctx context.Context, reqObj *CommsApplication) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CommsApplication
+func (r *CommsApplicationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Calls returns request builder for Call collection
+func (b *CommsApplicationRequestBuilder) Calls() *CommsApplicationCallsCollectionRequestBuilder {
+ bb := &CommsApplicationCallsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calls"
+ return bb
+}
+
+// CommsApplicationCallsCollectionRequestBuilder is request builder for Call collection
+type CommsApplicationCallsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Call collection
+func (b *CommsApplicationCallsCollectionRequestBuilder) Request() *CommsApplicationCallsCollectionRequest {
+ return &CommsApplicationCallsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Call item
+func (b *CommsApplicationCallsCollectionRequestBuilder) ID(id string) *CallRequestBuilder {
+ bb := &CallRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CommsApplicationCallsCollectionRequest is request for Call collection
+type CommsApplicationCallsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Call collection
+func (r *CommsApplicationCallsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Call, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Call
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Call
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Call collection
+func (r *CommsApplicationCallsCollectionRequest) Get(ctx context.Context) ([]Call, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Call collection
+func (r *CommsApplicationCallsCollectionRequest) Add(ctx context.Context, reqObj *Call) (resObj *Call, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// OnlineMeetings returns request builder for OnlineMeeting collection
+func (b *CommsApplicationRequestBuilder) OnlineMeetings() *CommsApplicationOnlineMeetingsCollectionRequestBuilder {
+ bb := &CommsApplicationOnlineMeetingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/onlineMeetings"
+ return bb
+}
+
+// CommsApplicationOnlineMeetingsCollectionRequestBuilder is request builder for OnlineMeeting collection
+type CommsApplicationOnlineMeetingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnlineMeeting collection
+func (b *CommsApplicationOnlineMeetingsCollectionRequestBuilder) Request() *CommsApplicationOnlineMeetingsCollectionRequest {
+ return &CommsApplicationOnlineMeetingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnlineMeeting item
+func (b *CommsApplicationOnlineMeetingsCollectionRequestBuilder) ID(id string) *OnlineMeetingRequestBuilder {
+ bb := &OnlineMeetingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CommsApplicationOnlineMeetingsCollectionRequest is request for OnlineMeeting collection
+type CommsApplicationOnlineMeetingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnlineMeeting collection
+func (r *CommsApplicationOnlineMeetingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OnlineMeeting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnlineMeeting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnlineMeeting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnlineMeeting collection
+func (r *CommsApplicationOnlineMeetingsCollectionRequest) Get(ctx context.Context) ([]OnlineMeeting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OnlineMeeting collection
+func (r *CommsApplicationOnlineMeetingsCollectionRequest) Add(ctx context.Context, reqObj *OnlineMeeting) (resObj *OnlineMeeting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CommsNotificationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CommsNotificationModel.go
new file mode 100644
index 00000000..0446e97c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CommsNotificationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CommsNotification undocumented
+type CommsNotification struct {
+ // Object is the base model of CommsNotification
+ Object
+ // ChangeType undocumented
+ ChangeType *ChangeType `json:"changeType,omitempty"`
+ // ResourceURL undocumented
+ ResourceURL *string `json:"resourceUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CommsNotificationsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CommsNotificationsModel.go
new file mode 100644
index 00000000..f916100a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CommsNotificationsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CommsNotifications undocumented
+type CommsNotifications struct {
+ // Object is the base model of CommsNotifications
+ Object
+ // Value undocumented
+ Value []CommsNotification `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CommsOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CommsOperationModel.go
new file mode 100644
index 00000000..a63ca776
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CommsOperationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CommsOperation undocumented
+type CommsOperation struct {
+ // Entity is the base model of CommsOperation
+ Entity
+ // Status undocumented
+ Status *OperationStatus `json:"status,omitempty"`
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+ // ResultInfo undocumented
+ ResultInfo *ResultInfo `json:"resultInfo,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CommsOperationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CommsOperationRequest.go
new file mode 100644
index 00000000..536db576
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CommsOperationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CommsOperationRequestBuilder is request builder for CommsOperation
+type CommsOperationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CommsOperationRequest
+func (b *CommsOperationRequestBuilder) Request() *CommsOperationRequest {
+ return &CommsOperationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CommsOperationRequest is request for CommsOperation
+type CommsOperationRequest struct{ BaseRequest }
+
+// Get performs GET request for CommsOperation
+func (r *CommsOperationRequest) Get(ctx context.Context) (resObj *CommsOperation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CommsOperation
+func (r *CommsOperationRequest) Update(ctx context.Context, reqObj *CommsOperation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CommsOperation
+func (r *CommsOperationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CompanyDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CompanyDetailModel.go
new file mode 100644
index 00000000..36ee49e8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CompanyDetailModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CompanyDetail undocumented
+type CompanyDetail struct {
+ // Object is the base model of CompanyDetail
+ Object
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Pronunciation undocumented
+ Pronunciation *string `json:"pronunciation,omitempty"`
+ // Department undocumented
+ Department *string `json:"department,omitempty"`
+ // OfficeLocation undocumented
+ OfficeLocation *string `json:"officeLocation,omitempty"`
+ // Address undocumented
+ Address *PhysicalAddress `json:"address,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CompanyInformationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CompanyInformationModel.go
new file mode 100644
index 00000000..35e805de
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CompanyInformationModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// CompanyInformation undocumented
+type CompanyInformation struct {
+ // Entity is the base model of CompanyInformation
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Address undocumented
+ Address *PostalAddressType `json:"address,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // FaxNumber undocumented
+ FaxNumber *string `json:"faxNumber,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // Website undocumented
+ Website *string `json:"website,omitempty"`
+ // TaxRegistrationNumber undocumented
+ TaxRegistrationNumber *string `json:"taxRegistrationNumber,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // CurrentFiscalYearStartDate undocumented
+ CurrentFiscalYearStartDate *time.Time `json:"currentFiscalYearStartDate,omitempty"`
+ // Industry undocumented
+ Industry *string `json:"industry,omitempty"`
+ // Picture undocumented
+ Picture *Stream `json:"picture,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CompanyInformationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CompanyInformationRequest.go
new file mode 100644
index 00000000..d0658457
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CompanyInformationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CompanyInformationRequestBuilder is request builder for CompanyInformation
+type CompanyInformationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CompanyInformationRequest
+func (b *CompanyInformationRequestBuilder) Request() *CompanyInformationRequest {
+ return &CompanyInformationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CompanyInformationRequest is request for CompanyInformation
+type CompanyInformationRequest struct{ BaseRequest }
+
+// Get performs GET request for CompanyInformation
+func (r *CompanyInformationRequest) Get(ctx context.Context) (resObj *CompanyInformation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CompanyInformation
+func (r *CompanyInformationRequest) Update(ctx context.Context, reqObj *CompanyInformation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CompanyInformation
+func (r *CompanyInformationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CompanyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CompanyModel.go
new file mode 100644
index 00000000..97b3a923
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CompanyModel.go
@@ -0,0 +1,87 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Company undocumented
+type Company struct {
+ // Entity is the base model of Company
+ Entity
+ // SystemVersion undocumented
+ SystemVersion *string `json:"systemVersion,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // BusinessProfileID undocumented
+ BusinessProfileID *string `json:"businessProfileId,omitempty"`
+ // Items undocumented
+ Items []Item `json:"items,omitempty"`
+ // Customers undocumented
+ Customers []Customer `json:"customers,omitempty"`
+ // Vendors undocumented
+ Vendors []Vendor `json:"vendors,omitempty"`
+ // CompanyInformation undocumented
+ CompanyInformation []CompanyInformation `json:"companyInformation,omitempty"`
+ // SalesInvoices undocumented
+ SalesInvoices []SalesInvoice `json:"salesInvoices,omitempty"`
+ // SalesInvoiceLines undocumented
+ SalesInvoiceLines []SalesInvoiceLine `json:"salesInvoiceLines,omitempty"`
+ // CustomerPaymentJournals undocumented
+ CustomerPaymentJournals []CustomerPaymentJournal `json:"customerPaymentJournals,omitempty"`
+ // CustomerPayments undocumented
+ CustomerPayments []CustomerPayment `json:"customerPayments,omitempty"`
+ // Accounts undocumented
+ Accounts []Account `json:"accounts,omitempty"`
+ // TaxGroups undocumented
+ TaxGroups []TaxGroup `json:"taxGroups,omitempty"`
+ // Journals undocumented
+ Journals []Journal `json:"journals,omitempty"`
+ // JournalLines undocumented
+ JournalLines []JournalLine `json:"journalLines,omitempty"`
+ // Employees undocumented
+ Employees []Employee `json:"employees,omitempty"`
+ // GeneralLedgerEntries undocumented
+ GeneralLedgerEntries []GeneralLedgerEntry `json:"generalLedgerEntries,omitempty"`
+ // Currencies undocumented
+ Currencies []Currency `json:"currencies,omitempty"`
+ // PaymentMethods undocumented
+ PaymentMethods []PaymentMethod `json:"paymentMethods,omitempty"`
+ // Dimensions undocumented
+ Dimensions []Dimension `json:"dimensions,omitempty"`
+ // DimensionValues undocumented
+ DimensionValues []DimensionValue `json:"dimensionValues,omitempty"`
+ // PaymentTerms undocumented
+ PaymentTerms []PaymentTerm `json:"paymentTerms,omitempty"`
+ // ShipmentMethods undocumented
+ ShipmentMethods []ShipmentMethod `json:"shipmentMethods,omitempty"`
+ // ItemCategories undocumented
+ ItemCategories []ItemCategory `json:"itemCategories,omitempty"`
+ // CountriesRegions undocumented
+ CountriesRegions []CountryRegion `json:"countriesRegions,omitempty"`
+ // SalesOrders undocumented
+ SalesOrders []SalesOrder `json:"salesOrders,omitempty"`
+ // SalesOrderLines undocumented
+ SalesOrderLines []SalesOrderLine `json:"salesOrderLines,omitempty"`
+ // UnitsOfMeasure undocumented
+ UnitsOfMeasure []UnitOfMeasure `json:"unitsOfMeasure,omitempty"`
+ // AgedAccountsReceivable undocumented
+ AgedAccountsReceivable []AgedAccountsReceivable `json:"agedAccountsReceivable,omitempty"`
+ // AgedAccountsPayable undocumented
+ AgedAccountsPayable []AgedAccountsPayable `json:"agedAccountsPayable,omitempty"`
+ // TaxAreas undocumented
+ TaxAreas []TaxArea `json:"taxAreas,omitempty"`
+ // SalesQuotes undocumented
+ SalesQuotes []SalesQuote `json:"salesQuotes,omitempty"`
+ // SalesQuoteLines undocumented
+ SalesQuoteLines []SalesQuoteLine `json:"salesQuoteLines,omitempty"`
+ // SalesCreditMemos undocumented
+ SalesCreditMemos []SalesCreditMemo `json:"salesCreditMemos,omitempty"`
+ // SalesCreditMemoLines undocumented
+ SalesCreditMemoLines []SalesCreditMemoLine `json:"salesCreditMemoLines,omitempty"`
+ // PurchaseInvoices undocumented
+ PurchaseInvoices []PurchaseInvoice `json:"purchaseInvoices,omitempty"`
+ // PurchaseInvoiceLines undocumented
+ PurchaseInvoiceLines []PurchaseInvoiceLine `json:"purchaseInvoiceLines,omitempty"`
+ // Picture undocumented
+ Picture []Picture `json:"picture,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CompanyPortalActionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/CompanyPortalActionEnum.go
new file mode 100644
index 00000000..46712849
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CompanyPortalActionEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CompanyPortalAction undocumented
+type CompanyPortalAction int
+
+const (
+ // CompanyPortalActionVUnknown undocumented
+ CompanyPortalActionVUnknown CompanyPortalAction = 0
+ // CompanyPortalActionVRemove undocumented
+ CompanyPortalActionVRemove CompanyPortalAction = 1
+ // CompanyPortalActionVReset undocumented
+ CompanyPortalActionVReset CompanyPortalAction = 2
+)
+
+// CompanyPortalActionPUnknown returns a pointer to CompanyPortalActionVUnknown
+func CompanyPortalActionPUnknown() *CompanyPortalAction {
+ v := CompanyPortalActionVUnknown
+ return &v
+}
+
+// CompanyPortalActionPRemove returns a pointer to CompanyPortalActionVRemove
+func CompanyPortalActionPRemove() *CompanyPortalAction {
+ v := CompanyPortalActionVRemove
+ return &v
+}
+
+// CompanyPortalActionPReset returns a pointer to CompanyPortalActionVReset
+func CompanyPortalActionPReset() *CompanyPortalAction {
+ v := CompanyPortalActionVReset
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CompanyPortalBlockedActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CompanyPortalBlockedActionModel.go
new file mode 100644
index 00000000..257ccba9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CompanyPortalBlockedActionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CompanyPortalBlockedAction undocumented
+type CompanyPortalBlockedAction struct {
+ // Object is the base model of CompanyPortalBlockedAction
+ Object
+ // Platform Device OS/Platform
+ Platform *DevicePlatformType `json:"platform,omitempty"`
+ // OwnerType Device ownership type
+ OwnerType *OwnerType `json:"ownerType,omitempty"`
+ // Action Device Action
+ Action *CompanyPortalAction `json:"action,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CompanyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CompanyRequest.go
new file mode 100644
index 00000000..5c1e0abe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CompanyRequest.go
@@ -0,0 +1,3335 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// CompanyRequestBuilder is request builder for Company
+type CompanyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CompanyRequest
+func (b *CompanyRequestBuilder) Request() *CompanyRequest {
+ return &CompanyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CompanyRequest is request for Company
+type CompanyRequest struct{ BaseRequest }
+
+// Get performs GET request for Company
+func (r *CompanyRequest) Get(ctx context.Context) (resObj *Company, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Company
+func (r *CompanyRequest) Update(ctx context.Context, reqObj *Company) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Company
+func (r *CompanyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Accounts returns request builder for Account collection
+func (b *CompanyRequestBuilder) Accounts() *CompanyAccountsCollectionRequestBuilder {
+ bb := &CompanyAccountsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accounts"
+ return bb
+}
+
+// CompanyAccountsCollectionRequestBuilder is request builder for Account collection
+type CompanyAccountsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Account collection
+func (b *CompanyAccountsCollectionRequestBuilder) Request() *CompanyAccountsCollectionRequest {
+ return &CompanyAccountsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Account item
+func (b *CompanyAccountsCollectionRequestBuilder) ID(id string) *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyAccountsCollectionRequest is request for Account collection
+type CompanyAccountsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Account collection
+func (r *CompanyAccountsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Account, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Account
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Account
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Account collection
+func (r *CompanyAccountsCollectionRequest) Get(ctx context.Context) ([]Account, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Account collection
+func (r *CompanyAccountsCollectionRequest) Add(ctx context.Context, reqObj *Account) (resObj *Account, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AgedAccountsPayable returns request builder for AgedAccountsPayable collection
+func (b *CompanyRequestBuilder) AgedAccountsPayable() *CompanyAgedAccountsPayableCollectionRequestBuilder {
+ bb := &CompanyAgedAccountsPayableCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agedAccountsPayable"
+ return bb
+}
+
+// CompanyAgedAccountsPayableCollectionRequestBuilder is request builder for AgedAccountsPayable collection
+type CompanyAgedAccountsPayableCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AgedAccountsPayable collection
+func (b *CompanyAgedAccountsPayableCollectionRequestBuilder) Request() *CompanyAgedAccountsPayableCollectionRequest {
+ return &CompanyAgedAccountsPayableCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AgedAccountsPayable item
+func (b *CompanyAgedAccountsPayableCollectionRequestBuilder) ID(id string) *AgedAccountsPayableRequestBuilder {
+ bb := &AgedAccountsPayableRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyAgedAccountsPayableCollectionRequest is request for AgedAccountsPayable collection
+type CompanyAgedAccountsPayableCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AgedAccountsPayable collection
+func (r *CompanyAgedAccountsPayableCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AgedAccountsPayable, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AgedAccountsPayable
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AgedAccountsPayable
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AgedAccountsPayable collection
+func (r *CompanyAgedAccountsPayableCollectionRequest) Get(ctx context.Context) ([]AgedAccountsPayable, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AgedAccountsPayable collection
+func (r *CompanyAgedAccountsPayableCollectionRequest) Add(ctx context.Context, reqObj *AgedAccountsPayable) (resObj *AgedAccountsPayable, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AgedAccountsReceivable returns request builder for AgedAccountsReceivable collection
+func (b *CompanyRequestBuilder) AgedAccountsReceivable() *CompanyAgedAccountsReceivableCollectionRequestBuilder {
+ bb := &CompanyAgedAccountsReceivableCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agedAccountsReceivable"
+ return bb
+}
+
+// CompanyAgedAccountsReceivableCollectionRequestBuilder is request builder for AgedAccountsReceivable collection
+type CompanyAgedAccountsReceivableCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AgedAccountsReceivable collection
+func (b *CompanyAgedAccountsReceivableCollectionRequestBuilder) Request() *CompanyAgedAccountsReceivableCollectionRequest {
+ return &CompanyAgedAccountsReceivableCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AgedAccountsReceivable item
+func (b *CompanyAgedAccountsReceivableCollectionRequestBuilder) ID(id string) *AgedAccountsReceivableRequestBuilder {
+ bb := &AgedAccountsReceivableRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyAgedAccountsReceivableCollectionRequest is request for AgedAccountsReceivable collection
+type CompanyAgedAccountsReceivableCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AgedAccountsReceivable collection
+func (r *CompanyAgedAccountsReceivableCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AgedAccountsReceivable, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AgedAccountsReceivable
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AgedAccountsReceivable
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AgedAccountsReceivable collection
+func (r *CompanyAgedAccountsReceivableCollectionRequest) Get(ctx context.Context) ([]AgedAccountsReceivable, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AgedAccountsReceivable collection
+func (r *CompanyAgedAccountsReceivableCollectionRequest) Add(ctx context.Context, reqObj *AgedAccountsReceivable) (resObj *AgedAccountsReceivable, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CompanyInformation returns request builder for CompanyInformation collection
+func (b *CompanyRequestBuilder) CompanyInformation() *CompanyCompanyInformationCollectionRequestBuilder {
+ bb := &CompanyCompanyInformationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/companyInformation"
+ return bb
+}
+
+// CompanyCompanyInformationCollectionRequestBuilder is request builder for CompanyInformation collection
+type CompanyCompanyInformationCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CompanyInformation collection
+func (b *CompanyCompanyInformationCollectionRequestBuilder) Request() *CompanyCompanyInformationCollectionRequest {
+ return &CompanyCompanyInformationCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CompanyInformation item
+func (b *CompanyCompanyInformationCollectionRequestBuilder) ID(id string) *CompanyInformationRequestBuilder {
+ bb := &CompanyInformationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyCompanyInformationCollectionRequest is request for CompanyInformation collection
+type CompanyCompanyInformationCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CompanyInformation collection
+func (r *CompanyCompanyInformationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]CompanyInformation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CompanyInformation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CompanyInformation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CompanyInformation collection
+func (r *CompanyCompanyInformationCollectionRequest) Get(ctx context.Context) ([]CompanyInformation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for CompanyInformation collection
+func (r *CompanyCompanyInformationCollectionRequest) Add(ctx context.Context, reqObj *CompanyInformation) (resObj *CompanyInformation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CountriesRegions returns request builder for CountryRegion collection
+func (b *CompanyRequestBuilder) CountriesRegions() *CompanyCountriesRegionsCollectionRequestBuilder {
+ bb := &CompanyCountriesRegionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/countriesRegions"
+ return bb
+}
+
+// CompanyCountriesRegionsCollectionRequestBuilder is request builder for CountryRegion collection
+type CompanyCountriesRegionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CountryRegion collection
+func (b *CompanyCountriesRegionsCollectionRequestBuilder) Request() *CompanyCountriesRegionsCollectionRequest {
+ return &CompanyCountriesRegionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CountryRegion item
+func (b *CompanyCountriesRegionsCollectionRequestBuilder) ID(id string) *CountryRegionRequestBuilder {
+ bb := &CountryRegionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyCountriesRegionsCollectionRequest is request for CountryRegion collection
+type CompanyCountriesRegionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CountryRegion collection
+func (r *CompanyCountriesRegionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]CountryRegion, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CountryRegion
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CountryRegion
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CountryRegion collection
+func (r *CompanyCountriesRegionsCollectionRequest) Get(ctx context.Context) ([]CountryRegion, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for CountryRegion collection
+func (r *CompanyCountriesRegionsCollectionRequest) Add(ctx context.Context, reqObj *CountryRegion) (resObj *CountryRegion, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Currencies returns request builder for Currency collection
+func (b *CompanyRequestBuilder) Currencies() *CompanyCurrenciesCollectionRequestBuilder {
+ bb := &CompanyCurrenciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/currencies"
+ return bb
+}
+
+// CompanyCurrenciesCollectionRequestBuilder is request builder for Currency collection
+type CompanyCurrenciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Currency collection
+func (b *CompanyCurrenciesCollectionRequestBuilder) Request() *CompanyCurrenciesCollectionRequest {
+ return &CompanyCurrenciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Currency item
+func (b *CompanyCurrenciesCollectionRequestBuilder) ID(id string) *CurrencyRequestBuilder {
+ bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyCurrenciesCollectionRequest is request for Currency collection
+type CompanyCurrenciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Currency collection
+func (r *CompanyCurrenciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Currency, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Currency
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Currency
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Currency collection
+func (r *CompanyCurrenciesCollectionRequest) Get(ctx context.Context) ([]Currency, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Currency collection
+func (r *CompanyCurrenciesCollectionRequest) Add(ctx context.Context, reqObj *Currency) (resObj *Currency, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CustomerPaymentJournals returns request builder for CustomerPaymentJournal collection
+func (b *CompanyRequestBuilder) CustomerPaymentJournals() *CompanyCustomerPaymentJournalsCollectionRequestBuilder {
+ bb := &CompanyCustomerPaymentJournalsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customerPaymentJournals"
+ return bb
+}
+
+// CompanyCustomerPaymentJournalsCollectionRequestBuilder is request builder for CustomerPaymentJournal collection
+type CompanyCustomerPaymentJournalsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CustomerPaymentJournal collection
+func (b *CompanyCustomerPaymentJournalsCollectionRequestBuilder) Request() *CompanyCustomerPaymentJournalsCollectionRequest {
+ return &CompanyCustomerPaymentJournalsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CustomerPaymentJournal item
+func (b *CompanyCustomerPaymentJournalsCollectionRequestBuilder) ID(id string) *CustomerPaymentJournalRequestBuilder {
+ bb := &CustomerPaymentJournalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyCustomerPaymentJournalsCollectionRequest is request for CustomerPaymentJournal collection
+type CompanyCustomerPaymentJournalsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CustomerPaymentJournal collection
+func (r *CompanyCustomerPaymentJournalsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]CustomerPaymentJournal, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CustomerPaymentJournal
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CustomerPaymentJournal
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CustomerPaymentJournal collection
+func (r *CompanyCustomerPaymentJournalsCollectionRequest) Get(ctx context.Context) ([]CustomerPaymentJournal, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for CustomerPaymentJournal collection
+func (r *CompanyCustomerPaymentJournalsCollectionRequest) Add(ctx context.Context, reqObj *CustomerPaymentJournal) (resObj *CustomerPaymentJournal, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CustomerPayments returns request builder for CustomerPayment collection
+func (b *CompanyRequestBuilder) CustomerPayments() *CompanyCustomerPaymentsCollectionRequestBuilder {
+ bb := &CompanyCustomerPaymentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customerPayments"
+ return bb
+}
+
+// CompanyCustomerPaymentsCollectionRequestBuilder is request builder for CustomerPayment collection
+type CompanyCustomerPaymentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CustomerPayment collection
+func (b *CompanyCustomerPaymentsCollectionRequestBuilder) Request() *CompanyCustomerPaymentsCollectionRequest {
+ return &CompanyCustomerPaymentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CustomerPayment item
+func (b *CompanyCustomerPaymentsCollectionRequestBuilder) ID(id string) *CustomerPaymentRequestBuilder {
+ bb := &CustomerPaymentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyCustomerPaymentsCollectionRequest is request for CustomerPayment collection
+type CompanyCustomerPaymentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CustomerPayment collection
+func (r *CompanyCustomerPaymentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]CustomerPayment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CustomerPayment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CustomerPayment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CustomerPayment collection
+func (r *CompanyCustomerPaymentsCollectionRequest) Get(ctx context.Context) ([]CustomerPayment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for CustomerPayment collection
+func (r *CompanyCustomerPaymentsCollectionRequest) Add(ctx context.Context, reqObj *CustomerPayment) (resObj *CustomerPayment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Customers returns request builder for Customer collection
+func (b *CompanyRequestBuilder) Customers() *CompanyCustomersCollectionRequestBuilder {
+ bb := &CompanyCustomersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customers"
+ return bb
+}
+
+// CompanyCustomersCollectionRequestBuilder is request builder for Customer collection
+type CompanyCustomersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Customer collection
+func (b *CompanyCustomersCollectionRequestBuilder) Request() *CompanyCustomersCollectionRequest {
+ return &CompanyCustomersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Customer item
+func (b *CompanyCustomersCollectionRequestBuilder) ID(id string) *CustomerRequestBuilder {
+ bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyCustomersCollectionRequest is request for Customer collection
+type CompanyCustomersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Customer collection
+func (r *CompanyCustomersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Customer, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Customer
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Customer
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Customer collection
+func (r *CompanyCustomersCollectionRequest) Get(ctx context.Context) ([]Customer, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Customer collection
+func (r *CompanyCustomersCollectionRequest) Add(ctx context.Context, reqObj *Customer) (resObj *Customer, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DimensionValues returns request builder for DimensionValue collection
+func (b *CompanyRequestBuilder) DimensionValues() *CompanyDimensionValuesCollectionRequestBuilder {
+ bb := &CompanyDimensionValuesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/dimensionValues"
+ return bb
+}
+
+// CompanyDimensionValuesCollectionRequestBuilder is request builder for DimensionValue collection
+type CompanyDimensionValuesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DimensionValue collection
+func (b *CompanyDimensionValuesCollectionRequestBuilder) Request() *CompanyDimensionValuesCollectionRequest {
+ return &CompanyDimensionValuesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DimensionValue item
+func (b *CompanyDimensionValuesCollectionRequestBuilder) ID(id string) *DimensionValueRequestBuilder {
+ bb := &DimensionValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyDimensionValuesCollectionRequest is request for DimensionValue collection
+type CompanyDimensionValuesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DimensionValue collection
+func (r *CompanyDimensionValuesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DimensionValue, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DimensionValue
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DimensionValue
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DimensionValue collection
+func (r *CompanyDimensionValuesCollectionRequest) Get(ctx context.Context) ([]DimensionValue, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DimensionValue collection
+func (r *CompanyDimensionValuesCollectionRequest) Add(ctx context.Context, reqObj *DimensionValue) (resObj *DimensionValue, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Dimensions returns request builder for Dimension collection
+func (b *CompanyRequestBuilder) Dimensions() *CompanyDimensionsCollectionRequestBuilder {
+ bb := &CompanyDimensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/dimensions"
+ return bb
+}
+
+// CompanyDimensionsCollectionRequestBuilder is request builder for Dimension collection
+type CompanyDimensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Dimension collection
+func (b *CompanyDimensionsCollectionRequestBuilder) Request() *CompanyDimensionsCollectionRequest {
+ return &CompanyDimensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Dimension item
+func (b *CompanyDimensionsCollectionRequestBuilder) ID(id string) *DimensionRequestBuilder {
+ bb := &DimensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyDimensionsCollectionRequest is request for Dimension collection
+type CompanyDimensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Dimension collection
+func (r *CompanyDimensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Dimension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Dimension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Dimension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Dimension collection
+func (r *CompanyDimensionsCollectionRequest) Get(ctx context.Context) ([]Dimension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Dimension collection
+func (r *CompanyDimensionsCollectionRequest) Add(ctx context.Context, reqObj *Dimension) (resObj *Dimension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Employees returns request builder for Employee collection
+func (b *CompanyRequestBuilder) Employees() *CompanyEmployeesCollectionRequestBuilder {
+ bb := &CompanyEmployeesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/employees"
+ return bb
+}
+
+// CompanyEmployeesCollectionRequestBuilder is request builder for Employee collection
+type CompanyEmployeesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Employee collection
+func (b *CompanyEmployeesCollectionRequestBuilder) Request() *CompanyEmployeesCollectionRequest {
+ return &CompanyEmployeesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Employee item
+func (b *CompanyEmployeesCollectionRequestBuilder) ID(id string) *EmployeeRequestBuilder {
+ bb := &EmployeeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyEmployeesCollectionRequest is request for Employee collection
+type CompanyEmployeesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Employee collection
+func (r *CompanyEmployeesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Employee, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Employee
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Employee
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Employee collection
+func (r *CompanyEmployeesCollectionRequest) Get(ctx context.Context) ([]Employee, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Employee collection
+func (r *CompanyEmployeesCollectionRequest) Add(ctx context.Context, reqObj *Employee) (resObj *Employee, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GeneralLedgerEntries returns request builder for GeneralLedgerEntry collection
+func (b *CompanyRequestBuilder) GeneralLedgerEntries() *CompanyGeneralLedgerEntriesCollectionRequestBuilder {
+ bb := &CompanyGeneralLedgerEntriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/generalLedgerEntries"
+ return bb
+}
+
+// CompanyGeneralLedgerEntriesCollectionRequestBuilder is request builder for GeneralLedgerEntry collection
+type CompanyGeneralLedgerEntriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GeneralLedgerEntry collection
+func (b *CompanyGeneralLedgerEntriesCollectionRequestBuilder) Request() *CompanyGeneralLedgerEntriesCollectionRequest {
+ return &CompanyGeneralLedgerEntriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GeneralLedgerEntry item
+func (b *CompanyGeneralLedgerEntriesCollectionRequestBuilder) ID(id string) *GeneralLedgerEntryRequestBuilder {
+ bb := &GeneralLedgerEntryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyGeneralLedgerEntriesCollectionRequest is request for GeneralLedgerEntry collection
+type CompanyGeneralLedgerEntriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GeneralLedgerEntry collection
+func (r *CompanyGeneralLedgerEntriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GeneralLedgerEntry, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GeneralLedgerEntry
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GeneralLedgerEntry
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GeneralLedgerEntry collection
+func (r *CompanyGeneralLedgerEntriesCollectionRequest) Get(ctx context.Context) ([]GeneralLedgerEntry, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GeneralLedgerEntry collection
+func (r *CompanyGeneralLedgerEntriesCollectionRequest) Add(ctx context.Context, reqObj *GeneralLedgerEntry) (resObj *GeneralLedgerEntry, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ItemCategories returns request builder for ItemCategory collection
+func (b *CompanyRequestBuilder) ItemCategories() *CompanyItemCategoriesCollectionRequestBuilder {
+ bb := &CompanyItemCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/itemCategories"
+ return bb
+}
+
+// CompanyItemCategoriesCollectionRequestBuilder is request builder for ItemCategory collection
+type CompanyItemCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemCategory collection
+func (b *CompanyItemCategoriesCollectionRequestBuilder) Request() *CompanyItemCategoriesCollectionRequest {
+ return &CompanyItemCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemCategory item
+func (b *CompanyItemCategoriesCollectionRequestBuilder) ID(id string) *ItemCategoryRequestBuilder {
+ bb := &ItemCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyItemCategoriesCollectionRequest is request for ItemCategory collection
+type CompanyItemCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemCategory collection
+func (r *CompanyItemCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ItemCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemCategory collection
+func (r *CompanyItemCategoriesCollectionRequest) Get(ctx context.Context) ([]ItemCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ItemCategory collection
+func (r *CompanyItemCategoriesCollectionRequest) Add(ctx context.Context, reqObj *ItemCategory) (resObj *ItemCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Items returns request builder for Item collection
+func (b *CompanyRequestBuilder) Items() *CompanyItemsCollectionRequestBuilder {
+ bb := &CompanyItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/items"
+ return bb
+}
+
+// CompanyItemsCollectionRequestBuilder is request builder for Item collection
+type CompanyItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Item collection
+func (b *CompanyItemsCollectionRequestBuilder) Request() *CompanyItemsCollectionRequest {
+ return &CompanyItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Item item
+func (b *CompanyItemsCollectionRequestBuilder) ID(id string) *ItemRequestBuilder {
+ bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyItemsCollectionRequest is request for Item collection
+type CompanyItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Item collection
+func (r *CompanyItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Item, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Item
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Item
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Item collection
+func (r *CompanyItemsCollectionRequest) Get(ctx context.Context) ([]Item, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Item collection
+func (r *CompanyItemsCollectionRequest) Add(ctx context.Context, reqObj *Item) (resObj *Item, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// JournalLines returns request builder for JournalLine collection
+func (b *CompanyRequestBuilder) JournalLines() *CompanyJournalLinesCollectionRequestBuilder {
+ bb := &CompanyJournalLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/journalLines"
+ return bb
+}
+
+// CompanyJournalLinesCollectionRequestBuilder is request builder for JournalLine collection
+type CompanyJournalLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for JournalLine collection
+func (b *CompanyJournalLinesCollectionRequestBuilder) Request() *CompanyJournalLinesCollectionRequest {
+ return &CompanyJournalLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for JournalLine item
+func (b *CompanyJournalLinesCollectionRequestBuilder) ID(id string) *JournalLineRequestBuilder {
+ bb := &JournalLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyJournalLinesCollectionRequest is request for JournalLine collection
+type CompanyJournalLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for JournalLine collection
+func (r *CompanyJournalLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]JournalLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []JournalLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []JournalLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for JournalLine collection
+func (r *CompanyJournalLinesCollectionRequest) Get(ctx context.Context) ([]JournalLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for JournalLine collection
+func (r *CompanyJournalLinesCollectionRequest) Add(ctx context.Context, reqObj *JournalLine) (resObj *JournalLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Journals returns request builder for Journal collection
+func (b *CompanyRequestBuilder) Journals() *CompanyJournalsCollectionRequestBuilder {
+ bb := &CompanyJournalsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/journals"
+ return bb
+}
+
+// CompanyJournalsCollectionRequestBuilder is request builder for Journal collection
+type CompanyJournalsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Journal collection
+func (b *CompanyJournalsCollectionRequestBuilder) Request() *CompanyJournalsCollectionRequest {
+ return &CompanyJournalsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Journal item
+func (b *CompanyJournalsCollectionRequestBuilder) ID(id string) *JournalRequestBuilder {
+ bb := &JournalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyJournalsCollectionRequest is request for Journal collection
+type CompanyJournalsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Journal collection
+func (r *CompanyJournalsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Journal, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Journal
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Journal
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Journal collection
+func (r *CompanyJournalsCollectionRequest) Get(ctx context.Context) ([]Journal, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Journal collection
+func (r *CompanyJournalsCollectionRequest) Add(ctx context.Context, reqObj *Journal) (resObj *Journal, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PaymentMethods returns request builder for PaymentMethod collection
+func (b *CompanyRequestBuilder) PaymentMethods() *CompanyPaymentMethodsCollectionRequestBuilder {
+ bb := &CompanyPaymentMethodsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentMethods"
+ return bb
+}
+
+// CompanyPaymentMethodsCollectionRequestBuilder is request builder for PaymentMethod collection
+type CompanyPaymentMethodsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PaymentMethod collection
+func (b *CompanyPaymentMethodsCollectionRequestBuilder) Request() *CompanyPaymentMethodsCollectionRequest {
+ return &CompanyPaymentMethodsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PaymentMethod item
+func (b *CompanyPaymentMethodsCollectionRequestBuilder) ID(id string) *PaymentMethodRequestBuilder {
+ bb := &PaymentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyPaymentMethodsCollectionRequest is request for PaymentMethod collection
+type CompanyPaymentMethodsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PaymentMethod collection
+func (r *CompanyPaymentMethodsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PaymentMethod, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PaymentMethod
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PaymentMethod
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PaymentMethod collection
+func (r *CompanyPaymentMethodsCollectionRequest) Get(ctx context.Context) ([]PaymentMethod, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PaymentMethod collection
+func (r *CompanyPaymentMethodsCollectionRequest) Add(ctx context.Context, reqObj *PaymentMethod) (resObj *PaymentMethod, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PaymentTerms returns request builder for PaymentTerm collection
+func (b *CompanyRequestBuilder) PaymentTerms() *CompanyPaymentTermsCollectionRequestBuilder {
+ bb := &CompanyPaymentTermsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentTerms"
+ return bb
+}
+
+// CompanyPaymentTermsCollectionRequestBuilder is request builder for PaymentTerm collection
+type CompanyPaymentTermsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PaymentTerm collection
+func (b *CompanyPaymentTermsCollectionRequestBuilder) Request() *CompanyPaymentTermsCollectionRequest {
+ return &CompanyPaymentTermsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PaymentTerm item
+func (b *CompanyPaymentTermsCollectionRequestBuilder) ID(id string) *PaymentTermRequestBuilder {
+ bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyPaymentTermsCollectionRequest is request for PaymentTerm collection
+type CompanyPaymentTermsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PaymentTerm collection
+func (r *CompanyPaymentTermsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PaymentTerm, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PaymentTerm
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PaymentTerm
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PaymentTerm collection
+func (r *CompanyPaymentTermsCollectionRequest) Get(ctx context.Context) ([]PaymentTerm, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PaymentTerm collection
+func (r *CompanyPaymentTermsCollectionRequest) Add(ctx context.Context, reqObj *PaymentTerm) (resObj *PaymentTerm, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Picture returns request builder for Picture collection
+func (b *CompanyRequestBuilder) Picture() *CompanyPictureCollectionRequestBuilder {
+ bb := &CompanyPictureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/picture"
+ return bb
+}
+
+// CompanyPictureCollectionRequestBuilder is request builder for Picture collection
+type CompanyPictureCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Picture collection
+func (b *CompanyPictureCollectionRequestBuilder) Request() *CompanyPictureCollectionRequest {
+ return &CompanyPictureCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Picture item
+func (b *CompanyPictureCollectionRequestBuilder) ID(id string) *PictureRequestBuilder {
+ bb := &PictureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyPictureCollectionRequest is request for Picture collection
+type CompanyPictureCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Picture collection
+func (r *CompanyPictureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Picture, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Picture
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Picture
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Picture collection
+func (r *CompanyPictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Picture collection
+func (r *CompanyPictureCollectionRequest) Add(ctx context.Context, reqObj *Picture) (resObj *Picture, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PurchaseInvoiceLines returns request builder for PurchaseInvoiceLine collection
+func (b *CompanyRequestBuilder) PurchaseInvoiceLines() *CompanyPurchaseInvoiceLinesCollectionRequestBuilder {
+ bb := &CompanyPurchaseInvoiceLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/purchaseInvoiceLines"
+ return bb
+}
+
+// CompanyPurchaseInvoiceLinesCollectionRequestBuilder is request builder for PurchaseInvoiceLine collection
+type CompanyPurchaseInvoiceLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PurchaseInvoiceLine collection
+func (b *CompanyPurchaseInvoiceLinesCollectionRequestBuilder) Request() *CompanyPurchaseInvoiceLinesCollectionRequest {
+ return &CompanyPurchaseInvoiceLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PurchaseInvoiceLine item
+func (b *CompanyPurchaseInvoiceLinesCollectionRequestBuilder) ID(id string) *PurchaseInvoiceLineRequestBuilder {
+ bb := &PurchaseInvoiceLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyPurchaseInvoiceLinesCollectionRequest is request for PurchaseInvoiceLine collection
+type CompanyPurchaseInvoiceLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PurchaseInvoiceLine collection
+func (r *CompanyPurchaseInvoiceLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PurchaseInvoiceLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PurchaseInvoiceLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PurchaseInvoiceLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PurchaseInvoiceLine collection
+func (r *CompanyPurchaseInvoiceLinesCollectionRequest) Get(ctx context.Context) ([]PurchaseInvoiceLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PurchaseInvoiceLine collection
+func (r *CompanyPurchaseInvoiceLinesCollectionRequest) Add(ctx context.Context, reqObj *PurchaseInvoiceLine) (resObj *PurchaseInvoiceLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PurchaseInvoices returns request builder for PurchaseInvoice collection
+func (b *CompanyRequestBuilder) PurchaseInvoices() *CompanyPurchaseInvoicesCollectionRequestBuilder {
+ bb := &CompanyPurchaseInvoicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/purchaseInvoices"
+ return bb
+}
+
+// CompanyPurchaseInvoicesCollectionRequestBuilder is request builder for PurchaseInvoice collection
+type CompanyPurchaseInvoicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PurchaseInvoice collection
+func (b *CompanyPurchaseInvoicesCollectionRequestBuilder) Request() *CompanyPurchaseInvoicesCollectionRequest {
+ return &CompanyPurchaseInvoicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PurchaseInvoice item
+func (b *CompanyPurchaseInvoicesCollectionRequestBuilder) ID(id string) *PurchaseInvoiceRequestBuilder {
+ bb := &PurchaseInvoiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyPurchaseInvoicesCollectionRequest is request for PurchaseInvoice collection
+type CompanyPurchaseInvoicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PurchaseInvoice collection
+func (r *CompanyPurchaseInvoicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PurchaseInvoice, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PurchaseInvoice
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PurchaseInvoice
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PurchaseInvoice collection
+func (r *CompanyPurchaseInvoicesCollectionRequest) Get(ctx context.Context) ([]PurchaseInvoice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PurchaseInvoice collection
+func (r *CompanyPurchaseInvoicesCollectionRequest) Add(ctx context.Context, reqObj *PurchaseInvoice) (resObj *PurchaseInvoice, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SalesCreditMemoLines returns request builder for SalesCreditMemoLine collection
+func (b *CompanyRequestBuilder) SalesCreditMemoLines() *CompanySalesCreditMemoLinesCollectionRequestBuilder {
+ bb := &CompanySalesCreditMemoLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesCreditMemoLines"
+ return bb
+}
+
+// CompanySalesCreditMemoLinesCollectionRequestBuilder is request builder for SalesCreditMemoLine collection
+type CompanySalesCreditMemoLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesCreditMemoLine collection
+func (b *CompanySalesCreditMemoLinesCollectionRequestBuilder) Request() *CompanySalesCreditMemoLinesCollectionRequest {
+ return &CompanySalesCreditMemoLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesCreditMemoLine item
+func (b *CompanySalesCreditMemoLinesCollectionRequestBuilder) ID(id string) *SalesCreditMemoLineRequestBuilder {
+ bb := &SalesCreditMemoLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanySalesCreditMemoLinesCollectionRequest is request for SalesCreditMemoLine collection
+type CompanySalesCreditMemoLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesCreditMemoLine collection
+func (r *CompanySalesCreditMemoLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SalesCreditMemoLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesCreditMemoLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesCreditMemoLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesCreditMemoLine collection
+func (r *CompanySalesCreditMemoLinesCollectionRequest) Get(ctx context.Context) ([]SalesCreditMemoLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SalesCreditMemoLine collection
+func (r *CompanySalesCreditMemoLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesCreditMemoLine) (resObj *SalesCreditMemoLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SalesCreditMemos returns request builder for SalesCreditMemo collection
+func (b *CompanyRequestBuilder) SalesCreditMemos() *CompanySalesCreditMemosCollectionRequestBuilder {
+ bb := &CompanySalesCreditMemosCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesCreditMemos"
+ return bb
+}
+
+// CompanySalesCreditMemosCollectionRequestBuilder is request builder for SalesCreditMemo collection
+type CompanySalesCreditMemosCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesCreditMemo collection
+func (b *CompanySalesCreditMemosCollectionRequestBuilder) Request() *CompanySalesCreditMemosCollectionRequest {
+ return &CompanySalesCreditMemosCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesCreditMemo item
+func (b *CompanySalesCreditMemosCollectionRequestBuilder) ID(id string) *SalesCreditMemoRequestBuilder {
+ bb := &SalesCreditMemoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanySalesCreditMemosCollectionRequest is request for SalesCreditMemo collection
+type CompanySalesCreditMemosCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesCreditMemo collection
+func (r *CompanySalesCreditMemosCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SalesCreditMemo, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesCreditMemo
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesCreditMemo
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesCreditMemo collection
+func (r *CompanySalesCreditMemosCollectionRequest) Get(ctx context.Context) ([]SalesCreditMemo, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SalesCreditMemo collection
+func (r *CompanySalesCreditMemosCollectionRequest) Add(ctx context.Context, reqObj *SalesCreditMemo) (resObj *SalesCreditMemo, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SalesInvoiceLines returns request builder for SalesInvoiceLine collection
+func (b *CompanyRequestBuilder) SalesInvoiceLines() *CompanySalesInvoiceLinesCollectionRequestBuilder {
+ bb := &CompanySalesInvoiceLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesInvoiceLines"
+ return bb
+}
+
+// CompanySalesInvoiceLinesCollectionRequestBuilder is request builder for SalesInvoiceLine collection
+type CompanySalesInvoiceLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesInvoiceLine collection
+func (b *CompanySalesInvoiceLinesCollectionRequestBuilder) Request() *CompanySalesInvoiceLinesCollectionRequest {
+ return &CompanySalesInvoiceLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesInvoiceLine item
+func (b *CompanySalesInvoiceLinesCollectionRequestBuilder) ID(id string) *SalesInvoiceLineRequestBuilder {
+ bb := &SalesInvoiceLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanySalesInvoiceLinesCollectionRequest is request for SalesInvoiceLine collection
+type CompanySalesInvoiceLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesInvoiceLine collection
+func (r *CompanySalesInvoiceLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SalesInvoiceLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesInvoiceLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesInvoiceLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesInvoiceLine collection
+func (r *CompanySalesInvoiceLinesCollectionRequest) Get(ctx context.Context) ([]SalesInvoiceLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SalesInvoiceLine collection
+func (r *CompanySalesInvoiceLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesInvoiceLine) (resObj *SalesInvoiceLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SalesInvoices returns request builder for SalesInvoice collection
+func (b *CompanyRequestBuilder) SalesInvoices() *CompanySalesInvoicesCollectionRequestBuilder {
+ bb := &CompanySalesInvoicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesInvoices"
+ return bb
+}
+
+// CompanySalesInvoicesCollectionRequestBuilder is request builder for SalesInvoice collection
+type CompanySalesInvoicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesInvoice collection
+func (b *CompanySalesInvoicesCollectionRequestBuilder) Request() *CompanySalesInvoicesCollectionRequest {
+ return &CompanySalesInvoicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesInvoice item
+func (b *CompanySalesInvoicesCollectionRequestBuilder) ID(id string) *SalesInvoiceRequestBuilder {
+ bb := &SalesInvoiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanySalesInvoicesCollectionRequest is request for SalesInvoice collection
+type CompanySalesInvoicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesInvoice collection
+func (r *CompanySalesInvoicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SalesInvoice, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesInvoice
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesInvoice
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesInvoice collection
+func (r *CompanySalesInvoicesCollectionRequest) Get(ctx context.Context) ([]SalesInvoice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SalesInvoice collection
+func (r *CompanySalesInvoicesCollectionRequest) Add(ctx context.Context, reqObj *SalesInvoice) (resObj *SalesInvoice, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SalesOrderLines returns request builder for SalesOrderLine collection
+func (b *CompanyRequestBuilder) SalesOrderLines() *CompanySalesOrderLinesCollectionRequestBuilder {
+ bb := &CompanySalesOrderLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesOrderLines"
+ return bb
+}
+
+// CompanySalesOrderLinesCollectionRequestBuilder is request builder for SalesOrderLine collection
+type CompanySalesOrderLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesOrderLine collection
+func (b *CompanySalesOrderLinesCollectionRequestBuilder) Request() *CompanySalesOrderLinesCollectionRequest {
+ return &CompanySalesOrderLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesOrderLine item
+func (b *CompanySalesOrderLinesCollectionRequestBuilder) ID(id string) *SalesOrderLineRequestBuilder {
+ bb := &SalesOrderLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanySalesOrderLinesCollectionRequest is request for SalesOrderLine collection
+type CompanySalesOrderLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesOrderLine collection
+func (r *CompanySalesOrderLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SalesOrderLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesOrderLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesOrderLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesOrderLine collection
+func (r *CompanySalesOrderLinesCollectionRequest) Get(ctx context.Context) ([]SalesOrderLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SalesOrderLine collection
+func (r *CompanySalesOrderLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesOrderLine) (resObj *SalesOrderLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SalesOrders returns request builder for SalesOrder collection
+func (b *CompanyRequestBuilder) SalesOrders() *CompanySalesOrdersCollectionRequestBuilder {
+ bb := &CompanySalesOrdersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesOrders"
+ return bb
+}
+
+// CompanySalesOrdersCollectionRequestBuilder is request builder for SalesOrder collection
+type CompanySalesOrdersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesOrder collection
+func (b *CompanySalesOrdersCollectionRequestBuilder) Request() *CompanySalesOrdersCollectionRequest {
+ return &CompanySalesOrdersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesOrder item
+func (b *CompanySalesOrdersCollectionRequestBuilder) ID(id string) *SalesOrderRequestBuilder {
+ bb := &SalesOrderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanySalesOrdersCollectionRequest is request for SalesOrder collection
+type CompanySalesOrdersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesOrder collection
+func (r *CompanySalesOrdersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SalesOrder, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesOrder
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesOrder
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesOrder collection
+func (r *CompanySalesOrdersCollectionRequest) Get(ctx context.Context) ([]SalesOrder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SalesOrder collection
+func (r *CompanySalesOrdersCollectionRequest) Add(ctx context.Context, reqObj *SalesOrder) (resObj *SalesOrder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SalesQuoteLines returns request builder for SalesQuoteLine collection
+func (b *CompanyRequestBuilder) SalesQuoteLines() *CompanySalesQuoteLinesCollectionRequestBuilder {
+ bb := &CompanySalesQuoteLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesQuoteLines"
+ return bb
+}
+
+// CompanySalesQuoteLinesCollectionRequestBuilder is request builder for SalesQuoteLine collection
+type CompanySalesQuoteLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesQuoteLine collection
+func (b *CompanySalesQuoteLinesCollectionRequestBuilder) Request() *CompanySalesQuoteLinesCollectionRequest {
+ return &CompanySalesQuoteLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesQuoteLine item
+func (b *CompanySalesQuoteLinesCollectionRequestBuilder) ID(id string) *SalesQuoteLineRequestBuilder {
+ bb := &SalesQuoteLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanySalesQuoteLinesCollectionRequest is request for SalesQuoteLine collection
+type CompanySalesQuoteLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesQuoteLine collection
+func (r *CompanySalesQuoteLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SalesQuoteLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesQuoteLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesQuoteLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesQuoteLine collection
+func (r *CompanySalesQuoteLinesCollectionRequest) Get(ctx context.Context) ([]SalesQuoteLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SalesQuoteLine collection
+func (r *CompanySalesQuoteLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesQuoteLine) (resObj *SalesQuoteLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SalesQuotes returns request builder for SalesQuote collection
+func (b *CompanyRequestBuilder) SalesQuotes() *CompanySalesQuotesCollectionRequestBuilder {
+ bb := &CompanySalesQuotesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesQuotes"
+ return bb
+}
+
+// CompanySalesQuotesCollectionRequestBuilder is request builder for SalesQuote collection
+type CompanySalesQuotesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesQuote collection
+func (b *CompanySalesQuotesCollectionRequestBuilder) Request() *CompanySalesQuotesCollectionRequest {
+ return &CompanySalesQuotesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesQuote item
+func (b *CompanySalesQuotesCollectionRequestBuilder) ID(id string) *SalesQuoteRequestBuilder {
+ bb := &SalesQuoteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanySalesQuotesCollectionRequest is request for SalesQuote collection
+type CompanySalesQuotesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesQuote collection
+func (r *CompanySalesQuotesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SalesQuote, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesQuote
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesQuote
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesQuote collection
+func (r *CompanySalesQuotesCollectionRequest) Get(ctx context.Context) ([]SalesQuote, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SalesQuote collection
+func (r *CompanySalesQuotesCollectionRequest) Add(ctx context.Context, reqObj *SalesQuote) (resObj *SalesQuote, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ShipmentMethods returns request builder for ShipmentMethod collection
+func (b *CompanyRequestBuilder) ShipmentMethods() *CompanyShipmentMethodsCollectionRequestBuilder {
+ bb := &CompanyShipmentMethodsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/shipmentMethods"
+ return bb
+}
+
+// CompanyShipmentMethodsCollectionRequestBuilder is request builder for ShipmentMethod collection
+type CompanyShipmentMethodsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ShipmentMethod collection
+func (b *CompanyShipmentMethodsCollectionRequestBuilder) Request() *CompanyShipmentMethodsCollectionRequest {
+ return &CompanyShipmentMethodsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ShipmentMethod item
+func (b *CompanyShipmentMethodsCollectionRequestBuilder) ID(id string) *ShipmentMethodRequestBuilder {
+ bb := &ShipmentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyShipmentMethodsCollectionRequest is request for ShipmentMethod collection
+type CompanyShipmentMethodsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ShipmentMethod collection
+func (r *CompanyShipmentMethodsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ShipmentMethod, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ShipmentMethod
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ShipmentMethod
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ShipmentMethod collection
+func (r *CompanyShipmentMethodsCollectionRequest) Get(ctx context.Context) ([]ShipmentMethod, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ShipmentMethod collection
+func (r *CompanyShipmentMethodsCollectionRequest) Add(ctx context.Context, reqObj *ShipmentMethod) (resObj *ShipmentMethod, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TaxAreas returns request builder for TaxArea collection
+func (b *CompanyRequestBuilder) TaxAreas() *CompanyTaxAreasCollectionRequestBuilder {
+ bb := &CompanyTaxAreasCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/taxAreas"
+ return bb
+}
+
+// CompanyTaxAreasCollectionRequestBuilder is request builder for TaxArea collection
+type CompanyTaxAreasCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TaxArea collection
+func (b *CompanyTaxAreasCollectionRequestBuilder) Request() *CompanyTaxAreasCollectionRequest {
+ return &CompanyTaxAreasCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TaxArea item
+func (b *CompanyTaxAreasCollectionRequestBuilder) ID(id string) *TaxAreaRequestBuilder {
+ bb := &TaxAreaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyTaxAreasCollectionRequest is request for TaxArea collection
+type CompanyTaxAreasCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TaxArea collection
+func (r *CompanyTaxAreasCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TaxArea, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TaxArea
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TaxArea
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TaxArea collection
+func (r *CompanyTaxAreasCollectionRequest) Get(ctx context.Context) ([]TaxArea, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TaxArea collection
+func (r *CompanyTaxAreasCollectionRequest) Add(ctx context.Context, reqObj *TaxArea) (resObj *TaxArea, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TaxGroups returns request builder for TaxGroup collection
+func (b *CompanyRequestBuilder) TaxGroups() *CompanyTaxGroupsCollectionRequestBuilder {
+ bb := &CompanyTaxGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/taxGroups"
+ return bb
+}
+
+// CompanyTaxGroupsCollectionRequestBuilder is request builder for TaxGroup collection
+type CompanyTaxGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TaxGroup collection
+func (b *CompanyTaxGroupsCollectionRequestBuilder) Request() *CompanyTaxGroupsCollectionRequest {
+ return &CompanyTaxGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TaxGroup item
+func (b *CompanyTaxGroupsCollectionRequestBuilder) ID(id string) *TaxGroupRequestBuilder {
+ bb := &TaxGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyTaxGroupsCollectionRequest is request for TaxGroup collection
+type CompanyTaxGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TaxGroup collection
+func (r *CompanyTaxGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TaxGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TaxGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TaxGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TaxGroup collection
+func (r *CompanyTaxGroupsCollectionRequest) Get(ctx context.Context) ([]TaxGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TaxGroup collection
+func (r *CompanyTaxGroupsCollectionRequest) Add(ctx context.Context, reqObj *TaxGroup) (resObj *TaxGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UnitsOfMeasure returns request builder for UnitOfMeasure collection
+func (b *CompanyRequestBuilder) UnitsOfMeasure() *CompanyUnitsOfMeasureCollectionRequestBuilder {
+ bb := &CompanyUnitsOfMeasureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/unitsOfMeasure"
+ return bb
+}
+
+// CompanyUnitsOfMeasureCollectionRequestBuilder is request builder for UnitOfMeasure collection
+type CompanyUnitsOfMeasureCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UnitOfMeasure collection
+func (b *CompanyUnitsOfMeasureCollectionRequestBuilder) Request() *CompanyUnitsOfMeasureCollectionRequest {
+ return &CompanyUnitsOfMeasureCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UnitOfMeasure item
+func (b *CompanyUnitsOfMeasureCollectionRequestBuilder) ID(id string) *UnitOfMeasureRequestBuilder {
+ bb := &UnitOfMeasureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyUnitsOfMeasureCollectionRequest is request for UnitOfMeasure collection
+type CompanyUnitsOfMeasureCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UnitOfMeasure collection
+func (r *CompanyUnitsOfMeasureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UnitOfMeasure, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UnitOfMeasure
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UnitOfMeasure
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UnitOfMeasure collection
+func (r *CompanyUnitsOfMeasureCollectionRequest) Get(ctx context.Context) ([]UnitOfMeasure, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UnitOfMeasure collection
+func (r *CompanyUnitsOfMeasureCollectionRequest) Add(ctx context.Context, reqObj *UnitOfMeasure) (resObj *UnitOfMeasure, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Vendors returns request builder for Vendor collection
+func (b *CompanyRequestBuilder) Vendors() *CompanyVendorsCollectionRequestBuilder {
+ bb := &CompanyVendorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/vendors"
+ return bb
+}
+
+// CompanyVendorsCollectionRequestBuilder is request builder for Vendor collection
+type CompanyVendorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Vendor collection
+func (b *CompanyVendorsCollectionRequestBuilder) Request() *CompanyVendorsCollectionRequest {
+ return &CompanyVendorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Vendor item
+func (b *CompanyVendorsCollectionRequestBuilder) ID(id string) *VendorRequestBuilder {
+ bb := &VendorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyVendorsCollectionRequest is request for Vendor collection
+type CompanyVendorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Vendor collection
+func (r *CompanyVendorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Vendor, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Vendor
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Vendor
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Vendor collection
+func (r *CompanyVendorsCollectionRequest) Get(ctx context.Context) ([]Vendor, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Vendor collection
+func (r *CompanyVendorsCollectionRequest) Add(ctx context.Context, reqObj *Vendor) (resObj *Vendor, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ComplexExtensionValueModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ComplexExtensionValueModel.go
new file mode 100644
index 00000000..032ff849
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ComplexExtensionValueModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ComplexExtensionValue undocumented
+type ComplexExtensionValue struct {
+ // Object is the base model of ComplexExtensionValue
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceInformationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceInformationModel.go
new file mode 100644
index 00000000..9924976b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceInformationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ComplianceInformation undocumented
+type ComplianceInformation struct {
+ // Object is the base model of ComplianceInformation
+ Object
+ // CertificationControls undocumented
+ CertificationControls []CertificationControl `json:"certificationControls,omitempty"`
+ // CertificationName undocumented
+ CertificationName *string `json:"certificationName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceManagementPartnerAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceManagementPartnerAssignmentModel.go
new file mode 100644
index 00000000..3e1ba9ee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceManagementPartnerAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ComplianceManagementPartnerAssignment undocumented
+type ComplianceManagementPartnerAssignment struct {
+ // Object is the base model of ComplianceManagementPartnerAssignment
+ Object
+ // Target Group assignment target.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceManagementPartnerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceManagementPartnerModel.go
new file mode 100644
index 00000000..31263f12
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceManagementPartnerModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ComplianceManagementPartner Compliance management partner for all platforms
+type ComplianceManagementPartner struct {
+ // Entity is the base model of ComplianceManagementPartner
+ Entity
+ // LastHeartbeatDateTime Timestamp of last heartbeat after admin onboarded to the compliance management partner
+ LastHeartbeatDateTime *time.Time `json:"lastHeartbeatDateTime,omitempty"`
+ // PartnerState Partner state of this tenant
+ PartnerState *DeviceManagementPartnerTenantState `json:"partnerState,omitempty"`
+ // DisplayName Partner display name
+ DisplayName *string `json:"displayName,omitempty"`
+ // MacOsOnboarded Partner onboarded for Mac devices.
+ MacOsOnboarded *bool `json:"macOsOnboarded,omitempty"`
+ // WindowsOnboarded Partner onboarded for Windows devices.
+ WindowsOnboarded *bool `json:"windowsOnboarded,omitempty"`
+ // AndroidOnboarded Partner onboarded for Android devices.
+ AndroidOnboarded *bool `json:"androidOnboarded,omitempty"`
+ // IOSOnboarded Partner onboarded for ios devices.
+ IOSOnboarded *bool `json:"iosOnboarded,omitempty"`
+ // MacOsEnrollmentAssignments User groups which enroll Mac devices through partner.
+ MacOsEnrollmentAssignments []ComplianceManagementPartnerAssignment `json:"macOsEnrollmentAssignments,omitempty"`
+ // WindowsEnrollmentAssignments User groups which enroll Windows devices through partner.
+ WindowsEnrollmentAssignments []ComplianceManagementPartnerAssignment `json:"windowsEnrollmentAssignments,omitempty"`
+ // AndroidEnrollmentAssignments User groups which enroll Android devices through partner.
+ AndroidEnrollmentAssignments []ComplianceManagementPartnerAssignment `json:"androidEnrollmentAssignments,omitempty"`
+ // IOSEnrollmentAssignments User groups which enroll ios devices through partner.
+ IOSEnrollmentAssignments []ComplianceManagementPartnerAssignment `json:"iosEnrollmentAssignments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceManagementPartnerRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceManagementPartnerRequest.go
new file mode 100644
index 00000000..1b2d8ded
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceManagementPartnerRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ComplianceManagementPartnerRequestBuilder is request builder for ComplianceManagementPartner
+type ComplianceManagementPartnerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ComplianceManagementPartnerRequest
+func (b *ComplianceManagementPartnerRequestBuilder) Request() *ComplianceManagementPartnerRequest {
+ return &ComplianceManagementPartnerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ComplianceManagementPartnerRequest is request for ComplianceManagementPartner
+type ComplianceManagementPartnerRequest struct{ BaseRequest }
+
+// Get performs GET request for ComplianceManagementPartner
+func (r *ComplianceManagementPartnerRequest) Get(ctx context.Context) (resObj *ComplianceManagementPartner, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ComplianceManagementPartner
+func (r *ComplianceManagementPartnerRequest) Update(ctx context.Context, reqObj *ComplianceManagementPartner) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ComplianceManagementPartner
+func (r *ComplianceManagementPartnerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceStateEnum.go
new file mode 100644
index 00000000..478e7ab9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceStateEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ComplianceState undocumented
+type ComplianceState int
+
+const (
+ // ComplianceStateVUnknown undocumented
+ ComplianceStateVUnknown ComplianceState = 0
+ // ComplianceStateVCompliant undocumented
+ ComplianceStateVCompliant ComplianceState = 1
+ // ComplianceStateVNoncompliant undocumented
+ ComplianceStateVNoncompliant ComplianceState = 2
+ // ComplianceStateVConflict undocumented
+ ComplianceStateVConflict ComplianceState = 3
+ // ComplianceStateVError undocumented
+ ComplianceStateVError ComplianceState = 4
+ // ComplianceStateVInGracePeriod undocumented
+ ComplianceStateVInGracePeriod ComplianceState = 254
+ // ComplianceStateVConfigManager undocumented
+ ComplianceStateVConfigManager ComplianceState = 255
+)
+
+// ComplianceStatePUnknown returns a pointer to ComplianceStateVUnknown
+func ComplianceStatePUnknown() *ComplianceState {
+ v := ComplianceStateVUnknown
+ return &v
+}
+
+// ComplianceStatePCompliant returns a pointer to ComplianceStateVCompliant
+func ComplianceStatePCompliant() *ComplianceState {
+ v := ComplianceStateVCompliant
+ return &v
+}
+
+// ComplianceStatePNoncompliant returns a pointer to ComplianceStateVNoncompliant
+func ComplianceStatePNoncompliant() *ComplianceState {
+ v := ComplianceStateVNoncompliant
+ return &v
+}
+
+// ComplianceStatePConflict returns a pointer to ComplianceStateVConflict
+func ComplianceStatePConflict() *ComplianceState {
+ v := ComplianceStateVConflict
+ return &v
+}
+
+// ComplianceStatePError returns a pointer to ComplianceStateVError
+func ComplianceStatePError() *ComplianceState {
+ v := ComplianceStateVError
+ return &v
+}
+
+// ComplianceStatePInGracePeriod returns a pointer to ComplianceStateVInGracePeriod
+func ComplianceStatePInGracePeriod() *ComplianceState {
+ v := ComplianceStateVInGracePeriod
+ return &v
+}
+
+// ComplianceStatePConfigManager returns a pointer to ComplianceStateVConfigManager
+func ComplianceStatePConfigManager() *ComplianceState {
+ v := ComplianceStateVConfigManager
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceStatusEnum.go
new file mode 100644
index 00000000..86de83ac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ComplianceStatusEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ComplianceStatus undocumented
+type ComplianceStatus int
+
+const (
+ // ComplianceStatusVUnknown undocumented
+ ComplianceStatusVUnknown ComplianceStatus = 0
+ // ComplianceStatusVNotApplicable undocumented
+ ComplianceStatusVNotApplicable ComplianceStatus = 1
+ // ComplianceStatusVCompliant undocumented
+ ComplianceStatusVCompliant ComplianceStatus = 2
+ // ComplianceStatusVRemediated undocumented
+ ComplianceStatusVRemediated ComplianceStatus = 3
+ // ComplianceStatusVNonCompliant undocumented
+ ComplianceStatusVNonCompliant ComplianceStatus = 4
+ // ComplianceStatusVError undocumented
+ ComplianceStatusVError ComplianceStatus = 5
+ // ComplianceStatusVConflict undocumented
+ ComplianceStatusVConflict ComplianceStatus = 6
+ // ComplianceStatusVNotAssigned undocumented
+ ComplianceStatusVNotAssigned ComplianceStatus = 7
+)
+
+// ComplianceStatusPUnknown returns a pointer to ComplianceStatusVUnknown
+func ComplianceStatusPUnknown() *ComplianceStatus {
+ v := ComplianceStatusVUnknown
+ return &v
+}
+
+// ComplianceStatusPNotApplicable returns a pointer to ComplianceStatusVNotApplicable
+func ComplianceStatusPNotApplicable() *ComplianceStatus {
+ v := ComplianceStatusVNotApplicable
+ return &v
+}
+
+// ComplianceStatusPCompliant returns a pointer to ComplianceStatusVCompliant
+func ComplianceStatusPCompliant() *ComplianceStatus {
+ v := ComplianceStatusVCompliant
+ return &v
+}
+
+// ComplianceStatusPRemediated returns a pointer to ComplianceStatusVRemediated
+func ComplianceStatusPRemediated() *ComplianceStatus {
+ v := ComplianceStatusVRemediated
+ return &v
+}
+
+// ComplianceStatusPNonCompliant returns a pointer to ComplianceStatusVNonCompliant
+func ComplianceStatusPNonCompliant() *ComplianceStatus {
+ v := ComplianceStatusVNonCompliant
+ return &v
+}
+
+// ComplianceStatusPError returns a pointer to ComplianceStatusVError
+func ComplianceStatusPError() *ComplianceStatus {
+ v := ComplianceStatusVError
+ return &v
+}
+
+// ComplianceStatusPConflict returns a pointer to ComplianceStatusVConflict
+func ComplianceStatusPConflict() *ComplianceStatus {
+ v := ComplianceStatusVConflict
+ return &v
+}
+
+// ComplianceStatusPNotAssigned returns a pointer to ComplianceStatusVNotAssigned
+func ComplianceStatusPNotAssigned() *ComplianceStatus {
+ v := ComplianceStatusVNotAssigned
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ComponentEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ComponentEnum.go
new file mode 100644
index 00000000..96cfe7a1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ComponentEnum.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Component undocumented
+type Component int
+
+const (
+ // ComponentVLabel undocumented
+ ComponentVLabel Component = 0
+)
+
+// ComponentPLabel returns a pointer to ComponentVLabel
+func ComponentPLabel() *Component {
+ v := ComponentVLabel
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessApplicationsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessApplicationsModel.go
new file mode 100644
index 00000000..9bb17c18
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessApplicationsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessApplications undocumented
+type ConditionalAccessApplications struct {
+ // Object is the base model of ConditionalAccessApplications
+ Object
+ // IncludeApplications undocumented
+ IncludeApplications []string `json:"includeApplications,omitempty"`
+ // ExcludeApplications undocumented
+ ExcludeApplications []string `json:"excludeApplications,omitempty"`
+ // IncludeUserActions undocumented
+ IncludeUserActions []string `json:"includeUserActions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessClientAppEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessClientAppEnum.go
new file mode 100644
index 00000000..f0b85f60
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessClientAppEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessClientApp undocumented
+type ConditionalAccessClientApp int
+
+const (
+ // ConditionalAccessClientAppVBrowser undocumented
+ ConditionalAccessClientAppVBrowser ConditionalAccessClientApp = 0
+ // ConditionalAccessClientAppVModern undocumented
+ ConditionalAccessClientAppVModern ConditionalAccessClientApp = 1
+ // ConditionalAccessClientAppVEasSupported undocumented
+ ConditionalAccessClientAppVEasSupported ConditionalAccessClientApp = 2
+ // ConditionalAccessClientAppVEasUnsupported undocumented
+ ConditionalAccessClientAppVEasUnsupported ConditionalAccessClientApp = 3
+ // ConditionalAccessClientAppVOther undocumented
+ ConditionalAccessClientAppVOther ConditionalAccessClientApp = 4
+)
+
+// ConditionalAccessClientAppPBrowser returns a pointer to ConditionalAccessClientAppVBrowser
+func ConditionalAccessClientAppPBrowser() *ConditionalAccessClientApp {
+ v := ConditionalAccessClientAppVBrowser
+ return &v
+}
+
+// ConditionalAccessClientAppPModern returns a pointer to ConditionalAccessClientAppVModern
+func ConditionalAccessClientAppPModern() *ConditionalAccessClientApp {
+ v := ConditionalAccessClientAppVModern
+ return &v
+}
+
+// ConditionalAccessClientAppPEasSupported returns a pointer to ConditionalAccessClientAppVEasSupported
+func ConditionalAccessClientAppPEasSupported() *ConditionalAccessClientApp {
+ v := ConditionalAccessClientAppVEasSupported
+ return &v
+}
+
+// ConditionalAccessClientAppPEasUnsupported returns a pointer to ConditionalAccessClientAppVEasUnsupported
+func ConditionalAccessClientAppPEasUnsupported() *ConditionalAccessClientApp {
+ v := ConditionalAccessClientAppVEasUnsupported
+ return &v
+}
+
+// ConditionalAccessClientAppPOther returns a pointer to ConditionalAccessClientAppVOther
+func ConditionalAccessClientAppPOther() *ConditionalAccessClientApp {
+ v := ConditionalAccessClientAppVOther
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessConditionSetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessConditionSetModel.go
new file mode 100644
index 00000000..a3dafb7f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessConditionSetModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessConditionSet undocumented
+type ConditionalAccessConditionSet struct {
+ // Object is the base model of ConditionalAccessConditionSet
+ Object
+ // Applications undocumented
+ Applications *ConditionalAccessApplications `json:"applications,omitempty"`
+ // Users undocumented
+ Users *ConditionalAccessUsers `json:"users,omitempty"`
+ // SignInRiskLevels undocumented
+ SignInRiskLevels []RiskLevel `json:"signInRiskLevels,omitempty"`
+ // Platforms undocumented
+ Platforms *ConditionalAccessPlatforms `json:"platforms,omitempty"`
+ // Locations undocumented
+ Locations *ConditionalAccessLocations `json:"locations,omitempty"`
+ // ClientAppTypes undocumented
+ ClientAppTypes []ConditionalAccessClientApp `json:"clientAppTypes,omitempty"`
+ // DeviceStates undocumented
+ DeviceStates *ConditionalAccessDeviceStates `json:"deviceStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessConditionsEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessConditionsEnum.go
new file mode 100644
index 00000000..08c9dcf7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessConditionsEnum.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessConditions undocumented
+type ConditionalAccessConditions int
+
+const (
+ // ConditionalAccessConditionsVNone undocumented
+ ConditionalAccessConditionsVNone ConditionalAccessConditions = 0
+ // ConditionalAccessConditionsVApplication undocumented
+ ConditionalAccessConditionsVApplication ConditionalAccessConditions = 1
+ // ConditionalAccessConditionsVUsers undocumented
+ ConditionalAccessConditionsVUsers ConditionalAccessConditions = 2
+ // ConditionalAccessConditionsVDevicePlatform undocumented
+ ConditionalAccessConditionsVDevicePlatform ConditionalAccessConditions = 4
+ // ConditionalAccessConditionsVLocation undocumented
+ ConditionalAccessConditionsVLocation ConditionalAccessConditions = 8
+ // ConditionalAccessConditionsVClientType undocumented
+ ConditionalAccessConditionsVClientType ConditionalAccessConditions = 16
+ // ConditionalAccessConditionsVSignInRisk undocumented
+ ConditionalAccessConditionsVSignInRisk ConditionalAccessConditions = 32
+ // ConditionalAccessConditionsVUserRisk undocumented
+ ConditionalAccessConditionsVUserRisk ConditionalAccessConditions = 64
+ // ConditionalAccessConditionsVTime undocumented
+ ConditionalAccessConditionsVTime ConditionalAccessConditions = 128
+ // ConditionalAccessConditionsVDeviceState undocumented
+ ConditionalAccessConditionsVDeviceState ConditionalAccessConditions = 256
+ // ConditionalAccessConditionsVClient undocumented
+ ConditionalAccessConditionsVClient ConditionalAccessConditions = 512
+)
+
+// ConditionalAccessConditionsPNone returns a pointer to ConditionalAccessConditionsVNone
+func ConditionalAccessConditionsPNone() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVNone
+ return &v
+}
+
+// ConditionalAccessConditionsPApplication returns a pointer to ConditionalAccessConditionsVApplication
+func ConditionalAccessConditionsPApplication() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVApplication
+ return &v
+}
+
+// ConditionalAccessConditionsPUsers returns a pointer to ConditionalAccessConditionsVUsers
+func ConditionalAccessConditionsPUsers() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVUsers
+ return &v
+}
+
+// ConditionalAccessConditionsPDevicePlatform returns a pointer to ConditionalAccessConditionsVDevicePlatform
+func ConditionalAccessConditionsPDevicePlatform() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVDevicePlatform
+ return &v
+}
+
+// ConditionalAccessConditionsPLocation returns a pointer to ConditionalAccessConditionsVLocation
+func ConditionalAccessConditionsPLocation() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVLocation
+ return &v
+}
+
+// ConditionalAccessConditionsPClientType returns a pointer to ConditionalAccessConditionsVClientType
+func ConditionalAccessConditionsPClientType() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVClientType
+ return &v
+}
+
+// ConditionalAccessConditionsPSignInRisk returns a pointer to ConditionalAccessConditionsVSignInRisk
+func ConditionalAccessConditionsPSignInRisk() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVSignInRisk
+ return &v
+}
+
+// ConditionalAccessConditionsPUserRisk returns a pointer to ConditionalAccessConditionsVUserRisk
+func ConditionalAccessConditionsPUserRisk() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVUserRisk
+ return &v
+}
+
+// ConditionalAccessConditionsPTime returns a pointer to ConditionalAccessConditionsVTime
+func ConditionalAccessConditionsPTime() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVTime
+ return &v
+}
+
+// ConditionalAccessConditionsPDeviceState returns a pointer to ConditionalAccessConditionsVDeviceState
+func ConditionalAccessConditionsPDeviceState() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVDeviceState
+ return &v
+}
+
+// ConditionalAccessConditionsPClient returns a pointer to ConditionalAccessConditionsVClient
+func ConditionalAccessConditionsPClient() *ConditionalAccessConditions {
+ v := ConditionalAccessConditionsVClient
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessDevicePlatformEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessDevicePlatformEnum.go
new file mode 100644
index 00000000..b4366175
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessDevicePlatformEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessDevicePlatform undocumented
+type ConditionalAccessDevicePlatform int
+
+const (
+ // ConditionalAccessDevicePlatformVAndroid undocumented
+ ConditionalAccessDevicePlatformVAndroid ConditionalAccessDevicePlatform = 0
+ // ConditionalAccessDevicePlatformVIOS undocumented
+ ConditionalAccessDevicePlatformVIOS ConditionalAccessDevicePlatform = 1
+ // ConditionalAccessDevicePlatformVWindows undocumented
+ ConditionalAccessDevicePlatformVWindows ConditionalAccessDevicePlatform = 2
+ // ConditionalAccessDevicePlatformVWindowsPhone undocumented
+ ConditionalAccessDevicePlatformVWindowsPhone ConditionalAccessDevicePlatform = 3
+ // ConditionalAccessDevicePlatformVMacOS undocumented
+ ConditionalAccessDevicePlatformVMacOS ConditionalAccessDevicePlatform = 4
+ // ConditionalAccessDevicePlatformVAll undocumented
+ ConditionalAccessDevicePlatformVAll ConditionalAccessDevicePlatform = 5
+)
+
+// ConditionalAccessDevicePlatformPAndroid returns a pointer to ConditionalAccessDevicePlatformVAndroid
+func ConditionalAccessDevicePlatformPAndroid() *ConditionalAccessDevicePlatform {
+ v := ConditionalAccessDevicePlatformVAndroid
+ return &v
+}
+
+// ConditionalAccessDevicePlatformPIOS returns a pointer to ConditionalAccessDevicePlatformVIOS
+func ConditionalAccessDevicePlatformPIOS() *ConditionalAccessDevicePlatform {
+ v := ConditionalAccessDevicePlatformVIOS
+ return &v
+}
+
+// ConditionalAccessDevicePlatformPWindows returns a pointer to ConditionalAccessDevicePlatformVWindows
+func ConditionalAccessDevicePlatformPWindows() *ConditionalAccessDevicePlatform {
+ v := ConditionalAccessDevicePlatformVWindows
+ return &v
+}
+
+// ConditionalAccessDevicePlatformPWindowsPhone returns a pointer to ConditionalAccessDevicePlatformVWindowsPhone
+func ConditionalAccessDevicePlatformPWindowsPhone() *ConditionalAccessDevicePlatform {
+ v := ConditionalAccessDevicePlatformVWindowsPhone
+ return &v
+}
+
+// ConditionalAccessDevicePlatformPMacOS returns a pointer to ConditionalAccessDevicePlatformVMacOS
+func ConditionalAccessDevicePlatformPMacOS() *ConditionalAccessDevicePlatform {
+ v := ConditionalAccessDevicePlatformVMacOS
+ return &v
+}
+
+// ConditionalAccessDevicePlatformPAll returns a pointer to ConditionalAccessDevicePlatformVAll
+func ConditionalAccessDevicePlatformPAll() *ConditionalAccessDevicePlatform {
+ v := ConditionalAccessDevicePlatformVAll
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessDeviceStatesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessDeviceStatesModel.go
new file mode 100644
index 00000000..6f1303cd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessDeviceStatesModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessDeviceStates undocumented
+type ConditionalAccessDeviceStates struct {
+ // Object is the base model of ConditionalAccessDeviceStates
+ Object
+ // IncludeStates undocumented
+ IncludeStates []string `json:"includeStates,omitempty"`
+ // ExcludeStates undocumented
+ ExcludeStates []string `json:"excludeStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessGrantControlEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessGrantControlEnum.go
new file mode 100644
index 00000000..52786133
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessGrantControlEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessGrantControl undocumented
+type ConditionalAccessGrantControl int
+
+const (
+ // ConditionalAccessGrantControlVBlock undocumented
+ ConditionalAccessGrantControlVBlock ConditionalAccessGrantControl = 0
+ // ConditionalAccessGrantControlVMFA undocumented
+ ConditionalAccessGrantControlVMFA ConditionalAccessGrantControl = 1
+ // ConditionalAccessGrantControlVCompliantDevice undocumented
+ ConditionalAccessGrantControlVCompliantDevice ConditionalAccessGrantControl = 2
+ // ConditionalAccessGrantControlVDomainJoinedDevice undocumented
+ ConditionalAccessGrantControlVDomainJoinedDevice ConditionalAccessGrantControl = 3
+ // ConditionalAccessGrantControlVApprovedApplication undocumented
+ ConditionalAccessGrantControlVApprovedApplication ConditionalAccessGrantControl = 4
+ // ConditionalAccessGrantControlVCompliantApplication undocumented
+ ConditionalAccessGrantControlVCompliantApplication ConditionalAccessGrantControl = 5
+)
+
+// ConditionalAccessGrantControlPBlock returns a pointer to ConditionalAccessGrantControlVBlock
+func ConditionalAccessGrantControlPBlock() *ConditionalAccessGrantControl {
+ v := ConditionalAccessGrantControlVBlock
+ return &v
+}
+
+// ConditionalAccessGrantControlPMFA returns a pointer to ConditionalAccessGrantControlVMFA
+func ConditionalAccessGrantControlPMFA() *ConditionalAccessGrantControl {
+ v := ConditionalAccessGrantControlVMFA
+ return &v
+}
+
+// ConditionalAccessGrantControlPCompliantDevice returns a pointer to ConditionalAccessGrantControlVCompliantDevice
+func ConditionalAccessGrantControlPCompliantDevice() *ConditionalAccessGrantControl {
+ v := ConditionalAccessGrantControlVCompliantDevice
+ return &v
+}
+
+// ConditionalAccessGrantControlPDomainJoinedDevice returns a pointer to ConditionalAccessGrantControlVDomainJoinedDevice
+func ConditionalAccessGrantControlPDomainJoinedDevice() *ConditionalAccessGrantControl {
+ v := ConditionalAccessGrantControlVDomainJoinedDevice
+ return &v
+}
+
+// ConditionalAccessGrantControlPApprovedApplication returns a pointer to ConditionalAccessGrantControlVApprovedApplication
+func ConditionalAccessGrantControlPApprovedApplication() *ConditionalAccessGrantControl {
+ v := ConditionalAccessGrantControlVApprovedApplication
+ return &v
+}
+
+// ConditionalAccessGrantControlPCompliantApplication returns a pointer to ConditionalAccessGrantControlVCompliantApplication
+func ConditionalAccessGrantControlPCompliantApplication() *ConditionalAccessGrantControl {
+ v := ConditionalAccessGrantControlVCompliantApplication
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessGrantControlsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessGrantControlsModel.go
new file mode 100644
index 00000000..d9c23587
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessGrantControlsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessGrantControls undocumented
+type ConditionalAccessGrantControls struct {
+ // Object is the base model of ConditionalAccessGrantControls
+ Object
+ // Operator undocumented
+ Operator *string `json:"operator,omitempty"`
+ // BuiltInControls undocumented
+ BuiltInControls []ConditionalAccessGrantControl `json:"builtInControls,omitempty"`
+ // CustomAuthenticationFactors undocumented
+ CustomAuthenticationFactors []string `json:"customAuthenticationFactors,omitempty"`
+ // TermsOfUse undocumented
+ TermsOfUse []string `json:"termsOfUse,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessLocationsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessLocationsModel.go
new file mode 100644
index 00000000..dae883ad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessLocationsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessLocations undocumented
+type ConditionalAccessLocations struct {
+ // Object is the base model of ConditionalAccessLocations
+ Object
+ // IncludeLocations undocumented
+ IncludeLocations []string `json:"includeLocations,omitempty"`
+ // ExcludeLocations undocumented
+ ExcludeLocations []string `json:"excludeLocations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessPlatformsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessPlatformsModel.go
new file mode 100644
index 00000000..1e484277
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessPlatformsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessPlatforms undocumented
+type ConditionalAccessPlatforms struct {
+ // Object is the base model of ConditionalAccessPlatforms
+ Object
+ // IncludePlatforms undocumented
+ IncludePlatforms []ConditionalAccessDevicePlatform `json:"includePlatforms,omitempty"`
+ // ExcludePlatforms undocumented
+ ExcludePlatforms []ConditionalAccessDevicePlatform `json:"excludePlatforms,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessPolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessPolicyModel.go
new file mode 100644
index 00000000..fbad5ea6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessPolicyModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ConditionalAccessPolicy undocumented
+type ConditionalAccessPolicy struct {
+ // Entity is the base model of ConditionalAccessPolicy
+ Entity
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedDateTime undocumented
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // State undocumented
+ State *ConditionalAccessPolicyState `json:"state,omitempty"`
+ // Conditions undocumented
+ Conditions *ConditionalAccessConditionSet `json:"conditions,omitempty"`
+ // GrantControls undocumented
+ GrantControls *ConditionalAccessGrantControls `json:"grantControls,omitempty"`
+ // SessionControls undocumented
+ SessionControls *ConditionalAccessSessionControls `json:"sessionControls,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessPolicyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessPolicyRequest.go
new file mode 100644
index 00000000..26f3ef1d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessPolicyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ConditionalAccessPolicyRequestBuilder is request builder for ConditionalAccessPolicy
+type ConditionalAccessPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ConditionalAccessPolicyRequest
+func (b *ConditionalAccessPolicyRequestBuilder) Request() *ConditionalAccessPolicyRequest {
+ return &ConditionalAccessPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ConditionalAccessPolicyRequest is request for ConditionalAccessPolicy
+type ConditionalAccessPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for ConditionalAccessPolicy
+func (r *ConditionalAccessPolicyRequest) Get(ctx context.Context) (resObj *ConditionalAccessPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ConditionalAccessPolicy
+func (r *ConditionalAccessPolicyRequest) Update(ctx context.Context, reqObj *ConditionalAccessPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ConditionalAccessPolicy
+func (r *ConditionalAccessPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessPolicyStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessPolicyStateEnum.go
new file mode 100644
index 00000000..080c00c4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessPolicyStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessPolicyState undocumented
+type ConditionalAccessPolicyState int
+
+const (
+ // ConditionalAccessPolicyStateVEnabled undocumented
+ ConditionalAccessPolicyStateVEnabled ConditionalAccessPolicyState = 0
+ // ConditionalAccessPolicyStateVDisabled undocumented
+ ConditionalAccessPolicyStateVDisabled ConditionalAccessPolicyState = 1
+ // ConditionalAccessPolicyStateVEnabledForReportingButNotEnforced undocumented
+ ConditionalAccessPolicyStateVEnabledForReportingButNotEnforced ConditionalAccessPolicyState = 2
+)
+
+// ConditionalAccessPolicyStatePEnabled returns a pointer to ConditionalAccessPolicyStateVEnabled
+func ConditionalAccessPolicyStatePEnabled() *ConditionalAccessPolicyState {
+ v := ConditionalAccessPolicyStateVEnabled
+ return &v
+}
+
+// ConditionalAccessPolicyStatePDisabled returns a pointer to ConditionalAccessPolicyStateVDisabled
+func ConditionalAccessPolicyStatePDisabled() *ConditionalAccessPolicyState {
+ v := ConditionalAccessPolicyStateVDisabled
+ return &v
+}
+
+// ConditionalAccessPolicyStatePEnabledForReportingButNotEnforced returns a pointer to ConditionalAccessPolicyStateVEnabledForReportingButNotEnforced
+func ConditionalAccessPolicyStatePEnabledForReportingButNotEnforced() *ConditionalAccessPolicyState {
+ v := ConditionalAccessPolicyStateVEnabledForReportingButNotEnforced
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessRootModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessRootModel.go
new file mode 100644
index 00000000..8f3da790
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessRootModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessRoot undocumented
+type ConditionalAccessRoot struct {
+ // Entity is the base model of ConditionalAccessRoot
+ Entity
+ // Policies undocumented
+ Policies []ConditionalAccessPolicy `json:"policies,omitempty"`
+ // NamedLocations undocumented
+ NamedLocations []NamedLocation `json:"namedLocations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessRootRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessRootRequest.go
new file mode 100644
index 00000000..94d054aa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessRootRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ConditionalAccessRootRequestBuilder is request builder for ConditionalAccessRoot
+type ConditionalAccessRootRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ConditionalAccessRootRequest
+func (b *ConditionalAccessRootRequestBuilder) Request() *ConditionalAccessRootRequest {
+ return &ConditionalAccessRootRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ConditionalAccessRootRequest is request for ConditionalAccessRoot
+type ConditionalAccessRootRequest struct{ BaseRequest }
+
+// Get performs GET request for ConditionalAccessRoot
+func (r *ConditionalAccessRootRequest) Get(ctx context.Context) (resObj *ConditionalAccessRoot, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ConditionalAccessRoot
+func (r *ConditionalAccessRootRequest) Update(ctx context.Context, reqObj *ConditionalAccessRoot) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ConditionalAccessRoot
+func (r *ConditionalAccessRootRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// NamedLocations returns request builder for NamedLocation collection
+func (b *ConditionalAccessRootRequestBuilder) NamedLocations() *ConditionalAccessRootNamedLocationsCollectionRequestBuilder {
+ bb := &ConditionalAccessRootNamedLocationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/namedLocations"
+ return bb
+}
+
+// ConditionalAccessRootNamedLocationsCollectionRequestBuilder is request builder for NamedLocation collection
+type ConditionalAccessRootNamedLocationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for NamedLocation collection
+func (b *ConditionalAccessRootNamedLocationsCollectionRequestBuilder) Request() *ConditionalAccessRootNamedLocationsCollectionRequest {
+ return &ConditionalAccessRootNamedLocationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for NamedLocation item
+func (b *ConditionalAccessRootNamedLocationsCollectionRequestBuilder) ID(id string) *NamedLocationRequestBuilder {
+ bb := &NamedLocationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ConditionalAccessRootNamedLocationsCollectionRequest is request for NamedLocation collection
+type ConditionalAccessRootNamedLocationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for NamedLocation collection
+func (r *ConditionalAccessRootNamedLocationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]NamedLocation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []NamedLocation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []NamedLocation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for NamedLocation collection
+func (r *ConditionalAccessRootNamedLocationsCollectionRequest) Get(ctx context.Context) ([]NamedLocation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for NamedLocation collection
+func (r *ConditionalAccessRootNamedLocationsCollectionRequest) Add(ctx context.Context, reqObj *NamedLocation) (resObj *NamedLocation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Policies returns request builder for ConditionalAccessPolicy collection
+func (b *ConditionalAccessRootRequestBuilder) Policies() *ConditionalAccessRootPoliciesCollectionRequestBuilder {
+ bb := &ConditionalAccessRootPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policies"
+ return bb
+}
+
+// ConditionalAccessRootPoliciesCollectionRequestBuilder is request builder for ConditionalAccessPolicy collection
+type ConditionalAccessRootPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ConditionalAccessPolicy collection
+func (b *ConditionalAccessRootPoliciesCollectionRequestBuilder) Request() *ConditionalAccessRootPoliciesCollectionRequest {
+ return &ConditionalAccessRootPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ConditionalAccessPolicy item
+func (b *ConditionalAccessRootPoliciesCollectionRequestBuilder) ID(id string) *ConditionalAccessPolicyRequestBuilder {
+ bb := &ConditionalAccessPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ConditionalAccessRootPoliciesCollectionRequest is request for ConditionalAccessPolicy collection
+type ConditionalAccessRootPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ConditionalAccessPolicy collection
+func (r *ConditionalAccessRootPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ConditionalAccessPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ConditionalAccessPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ConditionalAccessPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ConditionalAccessPolicy collection
+func (r *ConditionalAccessRootPoliciesCollectionRequest) Get(ctx context.Context) ([]ConditionalAccessPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ConditionalAccessPolicy collection
+func (r *ConditionalAccessRootPoliciesCollectionRequest) Add(ctx context.Context, reqObj *ConditionalAccessPolicy) (resObj *ConditionalAccessPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessSessionControlModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessSessionControlModel.go
new file mode 100644
index 00000000..1c9f6925
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessSessionControlModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessSessionControl undocumented
+type ConditionalAccessSessionControl struct {
+ // Object is the base model of ConditionalAccessSessionControl
+ Object
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessSessionControlsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessSessionControlsModel.go
new file mode 100644
index 00000000..01ee8291
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessSessionControlsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessSessionControls undocumented
+type ConditionalAccessSessionControls struct {
+ // Object is the base model of ConditionalAccessSessionControls
+ Object
+ // ApplicationEnforcedRestrictions undocumented
+ ApplicationEnforcedRestrictions *ApplicationEnforcedRestrictionsSessionControl `json:"applicationEnforcedRestrictions,omitempty"`
+ // CloudAppSecurity undocumented
+ CloudAppSecurity *CloudAppSecuritySessionControl `json:"cloudAppSecurity,omitempty"`
+ // SignInFrequency undocumented
+ SignInFrequency *SignInFrequencySessionControl `json:"signInFrequency,omitempty"`
+ // PersistentBrowser undocumented
+ PersistentBrowser *PersistentBrowserSessionControl `json:"persistentBrowser,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessStatusEnum.go
new file mode 100644
index 00000000..c4d7a837
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessStatus undocumented
+type ConditionalAccessStatus int
+
+const (
+ // ConditionalAccessStatusVSuccess undocumented
+ ConditionalAccessStatusVSuccess ConditionalAccessStatus = 0
+ // ConditionalAccessStatusVFailure undocumented
+ ConditionalAccessStatusVFailure ConditionalAccessStatus = 1
+ // ConditionalAccessStatusVNotApplied undocumented
+ ConditionalAccessStatusVNotApplied ConditionalAccessStatus = 2
+ // ConditionalAccessStatusVUnknownFutureValue undocumented
+ ConditionalAccessStatusVUnknownFutureValue ConditionalAccessStatus = 3
+)
+
+// ConditionalAccessStatusPSuccess returns a pointer to ConditionalAccessStatusVSuccess
+func ConditionalAccessStatusPSuccess() *ConditionalAccessStatus {
+ v := ConditionalAccessStatusVSuccess
+ return &v
+}
+
+// ConditionalAccessStatusPFailure returns a pointer to ConditionalAccessStatusVFailure
+func ConditionalAccessStatusPFailure() *ConditionalAccessStatus {
+ v := ConditionalAccessStatusVFailure
+ return &v
+}
+
+// ConditionalAccessStatusPNotApplied returns a pointer to ConditionalAccessStatusVNotApplied
+func ConditionalAccessStatusPNotApplied() *ConditionalAccessStatus {
+ v := ConditionalAccessStatusVNotApplied
+ return &v
+}
+
+// ConditionalAccessStatusPUnknownFutureValue returns a pointer to ConditionalAccessStatusVUnknownFutureValue
+func ConditionalAccessStatusPUnknownFutureValue() *ConditionalAccessStatus {
+ v := ConditionalAccessStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessUsersModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessUsersModel.go
new file mode 100644
index 00000000..ca8916be
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConditionalAccessUsersModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessUsers undocumented
+type ConditionalAccessUsers struct {
+ // Object is the base model of ConditionalAccessUsers
+ Object
+ // IncludeUsers undocumented
+ IncludeUsers []string `json:"includeUsers,omitempty"`
+ // ExcludeUsers undocumented
+ ExcludeUsers []string `json:"excludeUsers,omitempty"`
+ // IncludeGroups undocumented
+ IncludeGroups []string `json:"includeGroups,omitempty"`
+ // ExcludeGroups undocumented
+ ExcludeGroups []string `json:"excludeGroups,omitempty"`
+ // IncludeRoles undocumented
+ IncludeRoles []string `json:"includeRoles,omitempty"`
+ // ExcludeRoles undocumented
+ ExcludeRoles []string `json:"excludeRoles,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerActionModel.go
new file mode 100644
index 00000000..f19079d2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerActionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConfigurationManagerAction undocumented
+type ConfigurationManagerAction struct {
+ // Object is the base model of ConfigurationManagerAction
+ Object
+ // Action The action type to trigger on Configuration Manager client
+ Action *ConfigurationManagerActionType `json:"action,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerActionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerActionTypeEnum.go
new file mode 100644
index 00000000..596cc4db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerActionTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConfigurationManagerActionType undocumented
+type ConfigurationManagerActionType int
+
+const (
+ // ConfigurationManagerActionTypeVRefreshMachinePolicy undocumented
+ ConfigurationManagerActionTypeVRefreshMachinePolicy ConfigurationManagerActionType = 0
+ // ConfigurationManagerActionTypeVRefreshUserPolicy undocumented
+ ConfigurationManagerActionTypeVRefreshUserPolicy ConfigurationManagerActionType = 1
+ // ConfigurationManagerActionTypeVWakeUpClient undocumented
+ ConfigurationManagerActionTypeVWakeUpClient ConfigurationManagerActionType = 2
+ // ConfigurationManagerActionTypeVAppEvaluation undocumented
+ ConfigurationManagerActionTypeVAppEvaluation ConfigurationManagerActionType = 3
+)
+
+// ConfigurationManagerActionTypePRefreshMachinePolicy returns a pointer to ConfigurationManagerActionTypeVRefreshMachinePolicy
+func ConfigurationManagerActionTypePRefreshMachinePolicy() *ConfigurationManagerActionType {
+ v := ConfigurationManagerActionTypeVRefreshMachinePolicy
+ return &v
+}
+
+// ConfigurationManagerActionTypePRefreshUserPolicy returns a pointer to ConfigurationManagerActionTypeVRefreshUserPolicy
+func ConfigurationManagerActionTypePRefreshUserPolicy() *ConfigurationManagerActionType {
+ v := ConfigurationManagerActionTypeVRefreshUserPolicy
+ return &v
+}
+
+// ConfigurationManagerActionTypePWakeUpClient returns a pointer to ConfigurationManagerActionTypeVWakeUpClient
+func ConfigurationManagerActionTypePWakeUpClient() *ConfigurationManagerActionType {
+ v := ConfigurationManagerActionTypeVWakeUpClient
+ return &v
+}
+
+// ConfigurationManagerActionTypePAppEvaluation returns a pointer to ConfigurationManagerActionTypeVAppEvaluation
+func ConfigurationManagerActionTypePAppEvaluation() *ConfigurationManagerActionType {
+ v := ConfigurationManagerActionTypeVAppEvaluation
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerClientEnabledFeaturesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerClientEnabledFeaturesModel.go
new file mode 100644
index 00000000..26208bbc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerClientEnabledFeaturesModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConfigurationManagerClientEnabledFeatures undocumented
+type ConfigurationManagerClientEnabledFeatures struct {
+ // Object is the base model of ConfigurationManagerClientEnabledFeatures
+ Object
+ // Inventory Whether inventory is managed by Intune
+ Inventory *bool `json:"inventory,omitempty"`
+ // ModernApps Whether modern application is managed by Intune
+ ModernApps *bool `json:"modernApps,omitempty"`
+ // ResourceAccess Whether resource access is managed by Intune
+ ResourceAccess *bool `json:"resourceAccess,omitempty"`
+ // DeviceConfiguration Whether device configuration is managed by Intune
+ DeviceConfiguration *bool `json:"deviceConfiguration,omitempty"`
+ // CompliancePolicy Whether compliance policy is managed by Intune
+ CompliancePolicy *bool `json:"compliancePolicy,omitempty"`
+ // WindowsUpdateForBusiness Whether Windows Update for Business is managed by Intune
+ WindowsUpdateForBusiness *bool `json:"windowsUpdateForBusiness,omitempty"`
+ // EndpointProtection Whether Endpoint Protection is managed by Intune
+ EndpointProtection *bool `json:"endpointProtection,omitempty"`
+ // OfficeApps Whether Office application is managed by Intune
+ OfficeApps *bool `json:"officeApps,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerClientHealthStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerClientHealthStateModel.go
new file mode 100644
index 00000000..c207ffe8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerClientHealthStateModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ConfigurationManagerClientHealthState undocumented
+type ConfigurationManagerClientHealthState struct {
+ // Object is the base model of ConfigurationManagerClientHealthState
+ Object
+ // State Current configuration manager client state.
+ State *ConfigurationManagerClientState `json:"state,omitempty"`
+ // ErrorCode Error code for failed state.
+ ErrorCode *int `json:"errorCode,omitempty"`
+ // LastSyncDateTime Datetime fo last sync with configuration manager management point.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerClientInformationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerClientInformationModel.go
new file mode 100644
index 00000000..d5c741b2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerClientInformationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConfigurationManagerClientInformation undocumented
+type ConfigurationManagerClientInformation struct {
+ // Object is the base model of ConfigurationManagerClientInformation
+ Object
+ // ClientIdentifier Configuration Manager Client Id from SCCM
+ ClientIdentifier *string `json:"clientIdentifier,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerClientStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerClientStateEnum.go
new file mode 100644
index 00000000..6c11f637
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationManagerClientStateEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConfigurationManagerClientState undocumented
+type ConfigurationManagerClientState int
+
+const (
+ // ConfigurationManagerClientStateVUnknown undocumented
+ ConfigurationManagerClientStateVUnknown ConfigurationManagerClientState = 0
+ // ConfigurationManagerClientStateVInstalled undocumented
+ ConfigurationManagerClientStateVInstalled ConfigurationManagerClientState = 1
+ // ConfigurationManagerClientStateVHealthy undocumented
+ ConfigurationManagerClientStateVHealthy ConfigurationManagerClientState = 7
+ // ConfigurationManagerClientStateVInstallFailed undocumented
+ ConfigurationManagerClientStateVInstallFailed ConfigurationManagerClientState = 8
+ // ConfigurationManagerClientStateVUpdateFailed undocumented
+ ConfigurationManagerClientStateVUpdateFailed ConfigurationManagerClientState = 11
+ // ConfigurationManagerClientStateVCommunicationError undocumented
+ ConfigurationManagerClientStateVCommunicationError ConfigurationManagerClientState = 19
+)
+
+// ConfigurationManagerClientStatePUnknown returns a pointer to ConfigurationManagerClientStateVUnknown
+func ConfigurationManagerClientStatePUnknown() *ConfigurationManagerClientState {
+ v := ConfigurationManagerClientStateVUnknown
+ return &v
+}
+
+// ConfigurationManagerClientStatePInstalled returns a pointer to ConfigurationManagerClientStateVInstalled
+func ConfigurationManagerClientStatePInstalled() *ConfigurationManagerClientState {
+ v := ConfigurationManagerClientStateVInstalled
+ return &v
+}
+
+// ConfigurationManagerClientStatePHealthy returns a pointer to ConfigurationManagerClientStateVHealthy
+func ConfigurationManagerClientStatePHealthy() *ConfigurationManagerClientState {
+ v := ConfigurationManagerClientStateVHealthy
+ return &v
+}
+
+// ConfigurationManagerClientStatePInstallFailed returns a pointer to ConfigurationManagerClientStateVInstallFailed
+func ConfigurationManagerClientStatePInstallFailed() *ConfigurationManagerClientState {
+ v := ConfigurationManagerClientStateVInstallFailed
+ return &v
+}
+
+// ConfigurationManagerClientStatePUpdateFailed returns a pointer to ConfigurationManagerClientStateVUpdateFailed
+func ConfigurationManagerClientStatePUpdateFailed() *ConfigurationManagerClientState {
+ v := ConfigurationManagerClientStateVUpdateFailed
+ return &v
+}
+
+// ConfigurationManagerClientStatePCommunicationError returns a pointer to ConfigurationManagerClientStateVCommunicationError
+func ConfigurationManagerClientStatePCommunicationError() *ConfigurationManagerClientState {
+ v := ConfigurationManagerClientStateVCommunicationError
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationModel.go
new file mode 100644
index 00000000..f5c75301
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Configuration undocumented
+type Configuration struct {
+ // Object is the base model of Configuration
+ Object
+ // AuthorizedApps undocumented
+ AuthorizedApps []string `json:"authorizedApps,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationUsageEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationUsageEnum.go
new file mode 100644
index 00000000..7c58ce83
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConfigurationUsageEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConfigurationUsage undocumented
+type ConfigurationUsage int
+
+const (
+ // ConfigurationUsageVBlocked undocumented
+ ConfigurationUsageVBlocked ConfigurationUsage = 0
+ // ConfigurationUsageVRequired undocumented
+ ConfigurationUsageVRequired ConfigurationUsage = 1
+ // ConfigurationUsageVAllowed undocumented
+ ConfigurationUsageVAllowed ConfigurationUsage = 2
+)
+
+// ConfigurationUsagePBlocked returns a pointer to ConfigurationUsageVBlocked
+func ConfigurationUsagePBlocked() *ConfigurationUsage {
+ v := ConfigurationUsageVBlocked
+ return &v
+}
+
+// ConfigurationUsagePRequired returns a pointer to ConfigurationUsageVRequired
+func ConfigurationUsagePRequired() *ConfigurationUsage {
+ v := ConfigurationUsageVRequired
+ return &v
+}
+
+// ConfigurationUsagePAllowed returns a pointer to ConfigurationUsageVAllowed
+func ConfigurationUsagePAllowed() *ConfigurationUsage {
+ v := ConfigurationUsageVAllowed
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConnectionDirectionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConnectionDirectionEnum.go
new file mode 100644
index 00000000..46f15793
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConnectionDirectionEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConnectionDirection undocumented
+type ConnectionDirection int
+
+const (
+ // ConnectionDirectionVUnknown undocumented
+ ConnectionDirectionVUnknown ConnectionDirection = 0
+ // ConnectionDirectionVInbound undocumented
+ ConnectionDirectionVInbound ConnectionDirection = 1
+ // ConnectionDirectionVOutbound undocumented
+ ConnectionDirectionVOutbound ConnectionDirection = 2
+ // ConnectionDirectionVUnknownFutureValue undocumented
+ ConnectionDirectionVUnknownFutureValue ConnectionDirection = 127
+)
+
+// ConnectionDirectionPUnknown returns a pointer to ConnectionDirectionVUnknown
+func ConnectionDirectionPUnknown() *ConnectionDirection {
+ v := ConnectionDirectionVUnknown
+ return &v
+}
+
+// ConnectionDirectionPInbound returns a pointer to ConnectionDirectionVInbound
+func ConnectionDirectionPInbound() *ConnectionDirection {
+ v := ConnectionDirectionVInbound
+ return &v
+}
+
+// ConnectionDirectionPOutbound returns a pointer to ConnectionDirectionVOutbound
+func ConnectionDirectionPOutbound() *ConnectionDirection {
+ v := ConnectionDirectionVOutbound
+ return &v
+}
+
+// ConnectionDirectionPUnknownFutureValue returns a pointer to ConnectionDirectionVUnknownFutureValue
+func ConnectionDirectionPUnknownFutureValue() *ConnectionDirection {
+ v := ConnectionDirectionVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConnectionOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConnectionOperationModel.go
new file mode 100644
index 00000000..a8d5e3b1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConnectionOperationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConnectionOperation undocumented
+type ConnectionOperation struct {
+ // Entity is the base model of ConnectionOperation
+ Entity
+ // Status undocumented
+ Status *ConnectionOperationStatus `json:"status,omitempty"`
+ // Error undocumented
+ Error *ErrorDetail `json:"error,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConnectionOperationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConnectionOperationRequest.go
new file mode 100644
index 00000000..8d975eff
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConnectionOperationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ConnectionOperationRequestBuilder is request builder for ConnectionOperation
+type ConnectionOperationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ConnectionOperationRequest
+func (b *ConnectionOperationRequestBuilder) Request() *ConnectionOperationRequest {
+ return &ConnectionOperationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ConnectionOperationRequest is request for ConnectionOperation
+type ConnectionOperationRequest struct{ BaseRequest }
+
+// Get performs GET request for ConnectionOperation
+func (r *ConnectionOperationRequest) Get(ctx context.Context) (resObj *ConnectionOperation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ConnectionOperation
+func (r *ConnectionOperationRequest) Update(ctx context.Context, reqObj *ConnectionOperation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ConnectionOperation
+func (r *ConnectionOperationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConnectionOperationStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConnectionOperationStatusEnum.go
new file mode 100644
index 00000000..d6488cb3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConnectionOperationStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConnectionOperationStatus undocumented
+type ConnectionOperationStatus int
+
+const (
+ // ConnectionOperationStatusVUnspecified undocumented
+ ConnectionOperationStatusVUnspecified ConnectionOperationStatus = 0
+ // ConnectionOperationStatusVInprogress undocumented
+ ConnectionOperationStatusVInprogress ConnectionOperationStatus = 1
+ // ConnectionOperationStatusVCompleted undocumented
+ ConnectionOperationStatusVCompleted ConnectionOperationStatus = 2
+ // ConnectionOperationStatusVFailed undocumented
+ ConnectionOperationStatusVFailed ConnectionOperationStatus = 3
+)
+
+// ConnectionOperationStatusPUnspecified returns a pointer to ConnectionOperationStatusVUnspecified
+func ConnectionOperationStatusPUnspecified() *ConnectionOperationStatus {
+ v := ConnectionOperationStatusVUnspecified
+ return &v
+}
+
+// ConnectionOperationStatusPInprogress returns a pointer to ConnectionOperationStatusVInprogress
+func ConnectionOperationStatusPInprogress() *ConnectionOperationStatus {
+ v := ConnectionOperationStatusVInprogress
+ return &v
+}
+
+// ConnectionOperationStatusPCompleted returns a pointer to ConnectionOperationStatusVCompleted
+func ConnectionOperationStatusPCompleted() *ConnectionOperationStatus {
+ v := ConnectionOperationStatusVCompleted
+ return &v
+}
+
+// ConnectionOperationStatusPFailed returns a pointer to ConnectionOperationStatusVFailed
+func ConnectionOperationStatusPFailed() *ConnectionOperationStatus {
+ v := ConnectionOperationStatusVFailed
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConnectionStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConnectionStatusEnum.go
new file mode 100644
index 00000000..1e28b41f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConnectionStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConnectionStatus undocumented
+type ConnectionStatus int
+
+const (
+ // ConnectionStatusVUnknown undocumented
+ ConnectionStatusVUnknown ConnectionStatus = 0
+ // ConnectionStatusVAttempted undocumented
+ ConnectionStatusVAttempted ConnectionStatus = 1
+ // ConnectionStatusVSucceeded undocumented
+ ConnectionStatusVSucceeded ConnectionStatus = 2
+ // ConnectionStatusVBlocked undocumented
+ ConnectionStatusVBlocked ConnectionStatus = 3
+ // ConnectionStatusVFailed undocumented
+ ConnectionStatusVFailed ConnectionStatus = 4
+ // ConnectionStatusVUnknownFutureValue undocumented
+ ConnectionStatusVUnknownFutureValue ConnectionStatus = 127
+)
+
+// ConnectionStatusPUnknown returns a pointer to ConnectionStatusVUnknown
+func ConnectionStatusPUnknown() *ConnectionStatus {
+ v := ConnectionStatusVUnknown
+ return &v
+}
+
+// ConnectionStatusPAttempted returns a pointer to ConnectionStatusVAttempted
+func ConnectionStatusPAttempted() *ConnectionStatus {
+ v := ConnectionStatusVAttempted
+ return &v
+}
+
+// ConnectionStatusPSucceeded returns a pointer to ConnectionStatusVSucceeded
+func ConnectionStatusPSucceeded() *ConnectionStatus {
+ v := ConnectionStatusVSucceeded
+ return &v
+}
+
+// ConnectionStatusPBlocked returns a pointer to ConnectionStatusVBlocked
+func ConnectionStatusPBlocked() *ConnectionStatus {
+ v := ConnectionStatusVBlocked
+ return &v
+}
+
+// ConnectionStatusPFailed returns a pointer to ConnectionStatusVFailed
+func ConnectionStatusPFailed() *ConnectionStatus {
+ v := ConnectionStatusVFailed
+ return &v
+}
+
+// ConnectionStatusPUnknownFutureValue returns a pointer to ConnectionStatusVUnknownFutureValue
+func ConnectionStatusPUnknownFutureValue() *ConnectionStatus {
+ v := ConnectionStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContactFolderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContactFolderModel.go
new file mode 100644
index 00000000..61ccbc0f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContactFolderModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContactFolder undocumented
+type ContactFolder struct {
+ // Entity is the base model of ContactFolder
+ Entity
+ // ParentFolderID undocumented
+ ParentFolderID *string `json:"parentFolderId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // WellKnownName undocumented
+ WellKnownName *string `json:"wellKnownName,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+ // Contacts undocumented
+ Contacts []Contact `json:"contacts,omitempty"`
+ // ChildFolders undocumented
+ ChildFolders []ContactFolder `json:"childFolders,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContactFolderRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContactFolderRequest.go
new file mode 100644
index 00000000..50ff212e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContactFolderRequest.go
@@ -0,0 +1,421 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ContactFolderRequestBuilder is request builder for ContactFolder
+type ContactFolderRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ContactFolderRequest
+func (b *ContactFolderRequestBuilder) Request() *ContactFolderRequest {
+ return &ContactFolderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ContactFolderRequest is request for ContactFolder
+type ContactFolderRequest struct{ BaseRequest }
+
+// Get performs GET request for ContactFolder
+func (r *ContactFolderRequest) Get(ctx context.Context) (resObj *ContactFolder, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ContactFolder
+func (r *ContactFolderRequest) Update(ctx context.Context, reqObj *ContactFolder) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ContactFolder
+func (r *ContactFolderRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ChildFolders returns request builder for ContactFolder collection
+func (b *ContactFolderRequestBuilder) ChildFolders() *ContactFolderChildFoldersCollectionRequestBuilder {
+ bb := &ContactFolderChildFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/childFolders"
+ return bb
+}
+
+// ContactFolderChildFoldersCollectionRequestBuilder is request builder for ContactFolder collection
+type ContactFolderChildFoldersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ContactFolder collection
+func (b *ContactFolderChildFoldersCollectionRequestBuilder) Request() *ContactFolderChildFoldersCollectionRequest {
+ return &ContactFolderChildFoldersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ContactFolder item
+func (b *ContactFolderChildFoldersCollectionRequestBuilder) ID(id string) *ContactFolderRequestBuilder {
+ bb := &ContactFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ContactFolderChildFoldersCollectionRequest is request for ContactFolder collection
+type ContactFolderChildFoldersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ContactFolder collection
+func (r *ContactFolderChildFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ContactFolder, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ContactFolder
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ContactFolder
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ContactFolder collection
+func (r *ContactFolderChildFoldersCollectionRequest) Get(ctx context.Context) ([]ContactFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ContactFolder collection
+func (r *ContactFolderChildFoldersCollectionRequest) Add(ctx context.Context, reqObj *ContactFolder) (resObj *ContactFolder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Contacts returns request builder for Contact collection
+func (b *ContactFolderRequestBuilder) Contacts() *ContactFolderContactsCollectionRequestBuilder {
+ bb := &ContactFolderContactsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contacts"
+ return bb
+}
+
+// ContactFolderContactsCollectionRequestBuilder is request builder for Contact collection
+type ContactFolderContactsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Contact collection
+func (b *ContactFolderContactsCollectionRequestBuilder) Request() *ContactFolderContactsCollectionRequest {
+ return &ContactFolderContactsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Contact item
+func (b *ContactFolderContactsCollectionRequestBuilder) ID(id string) *ContactRequestBuilder {
+ bb := &ContactRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ContactFolderContactsCollectionRequest is request for Contact collection
+type ContactFolderContactsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Contact collection
+func (r *ContactFolderContactsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Contact, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Contact
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Contact
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Contact collection
+func (r *ContactFolderContactsCollectionRequest) Get(ctx context.Context) ([]Contact, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Contact collection
+func (r *ContactFolderContactsCollectionRequest) Add(ctx context.Context, reqObj *Contact) (resObj *Contact, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *ContactFolderRequestBuilder) MultiValueExtendedProperties() *ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *ContactFolderMultiValueExtendedPropertiesCollectionRequest {
+ return &ContactFolderMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ContactFolderMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type ContactFolderMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *ContactFolderMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *ContactFolderMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *ContactFolderMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *ContactFolderRequestBuilder) SingleValueExtendedProperties() *ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *ContactFolderSingleValueExtendedPropertiesCollectionRequest {
+ return &ContactFolderSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ContactFolderSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type ContactFolderSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *ContactFolderSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *ContactFolderSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *ContactFolderSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContactModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContactModel.go
new file mode 100644
index 00000000..56bf922e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContactModel.go
@@ -0,0 +1,85 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Contact undocumented
+type Contact struct {
+ // OutlookItem is the base model of Contact
+ OutlookItem
+ // ParentFolderID undocumented
+ ParentFolderID *string `json:"parentFolderId,omitempty"`
+ // Birthday undocumented
+ Birthday *time.Time `json:"birthday,omitempty"`
+ // FileAs undocumented
+ FileAs *string `json:"fileAs,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // GivenName undocumented
+ GivenName *string `json:"givenName,omitempty"`
+ // Initials undocumented
+ Initials *string `json:"initials,omitempty"`
+ // MiddleName undocumented
+ MiddleName *string `json:"middleName,omitempty"`
+ // NickName undocumented
+ NickName *string `json:"nickName,omitempty"`
+ // Surname undocumented
+ Surname *string `json:"surname,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // YomiGivenName undocumented
+ YomiGivenName *string `json:"yomiGivenName,omitempty"`
+ // YomiSurname undocumented
+ YomiSurname *string `json:"yomiSurname,omitempty"`
+ // YomiCompanyName undocumented
+ YomiCompanyName *string `json:"yomiCompanyName,omitempty"`
+ // Generation undocumented
+ Generation *string `json:"generation,omitempty"`
+ // EmailAddresses undocumented
+ EmailAddresses []TypedEmailAddress `json:"emailAddresses,omitempty"`
+ // Websites undocumented
+ Websites []Website `json:"websites,omitempty"`
+ // ImAddresses undocumented
+ ImAddresses []string `json:"imAddresses,omitempty"`
+ // JobTitle undocumented
+ JobTitle *string `json:"jobTitle,omitempty"`
+ // CompanyName undocumented
+ CompanyName *string `json:"companyName,omitempty"`
+ // Department undocumented
+ Department *string `json:"department,omitempty"`
+ // OfficeLocation undocumented
+ OfficeLocation *string `json:"officeLocation,omitempty"`
+ // Profession undocumented
+ Profession *string `json:"profession,omitempty"`
+ // AssistantName undocumented
+ AssistantName *string `json:"assistantName,omitempty"`
+ // Manager undocumented
+ Manager *string `json:"manager,omitempty"`
+ // Phones undocumented
+ Phones []Phone `json:"phones,omitempty"`
+ // PostalAddresses undocumented
+ PostalAddresses []PhysicalAddress `json:"postalAddresses,omitempty"`
+ // SpouseName undocumented
+ SpouseName *string `json:"spouseName,omitempty"`
+ // PersonalNotes undocumented
+ PersonalNotes *string `json:"personalNotes,omitempty"`
+ // Children undocumented
+ Children []string `json:"children,omitempty"`
+ // WeddingAnniversary undocumented
+ WeddingAnniversary *time.Time `json:"weddingAnniversary,omitempty"`
+ // Gender undocumented
+ Gender *string `json:"gender,omitempty"`
+ // IsFavorite undocumented
+ IsFavorite *bool `json:"isFavorite,omitempty"`
+ // Flag undocumented
+ Flag *FollowupFlag `json:"flag,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+ // Photo undocumented
+ Photo *ProfilePhoto `json:"photo,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContactRelationshipEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContactRelationshipEnum.go
new file mode 100644
index 00000000..769ef825
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContactRelationshipEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContactRelationship undocumented
+type ContactRelationship int
+
+const (
+ // ContactRelationshipVParent undocumented
+ ContactRelationshipVParent ContactRelationship = 0
+ // ContactRelationshipVRelative undocumented
+ ContactRelationshipVRelative ContactRelationship = 1
+ // ContactRelationshipVAide undocumented
+ ContactRelationshipVAide ContactRelationship = 2
+ // ContactRelationshipVDoctor undocumented
+ ContactRelationshipVDoctor ContactRelationship = 3
+ // ContactRelationshipVGuardian undocumented
+ ContactRelationshipVGuardian ContactRelationship = 4
+ // ContactRelationshipVChild undocumented
+ ContactRelationshipVChild ContactRelationship = 5
+ // ContactRelationshipVOther undocumented
+ ContactRelationshipVOther ContactRelationship = 6
+ // ContactRelationshipVUnknownFutureValue undocumented
+ ContactRelationshipVUnknownFutureValue ContactRelationship = 7
+)
+
+// ContactRelationshipPParent returns a pointer to ContactRelationshipVParent
+func ContactRelationshipPParent() *ContactRelationship {
+ v := ContactRelationshipVParent
+ return &v
+}
+
+// ContactRelationshipPRelative returns a pointer to ContactRelationshipVRelative
+func ContactRelationshipPRelative() *ContactRelationship {
+ v := ContactRelationshipVRelative
+ return &v
+}
+
+// ContactRelationshipPAide returns a pointer to ContactRelationshipVAide
+func ContactRelationshipPAide() *ContactRelationship {
+ v := ContactRelationshipVAide
+ return &v
+}
+
+// ContactRelationshipPDoctor returns a pointer to ContactRelationshipVDoctor
+func ContactRelationshipPDoctor() *ContactRelationship {
+ v := ContactRelationshipVDoctor
+ return &v
+}
+
+// ContactRelationshipPGuardian returns a pointer to ContactRelationshipVGuardian
+func ContactRelationshipPGuardian() *ContactRelationship {
+ v := ContactRelationshipVGuardian
+ return &v
+}
+
+// ContactRelationshipPChild returns a pointer to ContactRelationshipVChild
+func ContactRelationshipPChild() *ContactRelationship {
+ v := ContactRelationshipVChild
+ return &v
+}
+
+// ContactRelationshipPOther returns a pointer to ContactRelationshipVOther
+func ContactRelationshipPOther() *ContactRelationship {
+ v := ContactRelationshipVOther
+ return &v
+}
+
+// ContactRelationshipPUnknownFutureValue returns a pointer to ContactRelationshipVUnknownFutureValue
+func ContactRelationshipPUnknownFutureValue() *ContactRelationship {
+ v := ContactRelationshipVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContactRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContactRequest.go
new file mode 100644
index 00000000..cb963149
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContactRequest.go
@@ -0,0 +1,334 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ContactRequestBuilder is request builder for Contact
+type ContactRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ContactRequest
+func (b *ContactRequestBuilder) Request() *ContactRequest {
+ return &ContactRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ContactRequest is request for Contact
+type ContactRequest struct{ BaseRequest }
+
+// Get performs GET request for Contact
+func (r *ContactRequest) Get(ctx context.Context) (resObj *Contact, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Contact
+func (r *ContactRequest) Update(ctx context.Context, reqObj *Contact) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Contact
+func (r *ContactRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Extensions returns request builder for Extension collection
+func (b *ContactRequestBuilder) Extensions() *ContactExtensionsCollectionRequestBuilder {
+ bb := &ContactExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// ContactExtensionsCollectionRequestBuilder is request builder for Extension collection
+type ContactExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *ContactExtensionsCollectionRequestBuilder) Request() *ContactExtensionsCollectionRequest {
+ return &ContactExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *ContactExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ContactExtensionsCollectionRequest is request for Extension collection
+type ContactExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *ContactExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *ContactExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Extension collection
+func (r *ContactExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *ContactRequestBuilder) MultiValueExtendedProperties() *ContactMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &ContactMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// ContactMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type ContactMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *ContactMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *ContactMultiValueExtendedPropertiesCollectionRequest {
+ return &ContactMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *ContactMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ContactMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type ContactMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *ContactMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *ContactMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *ContactMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Photo is navigation property
+func (b *ContactRequestBuilder) Photo() *ProfilePhotoRequestBuilder {
+ bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/photo"
+ return bb
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *ContactRequestBuilder) SingleValueExtendedProperties() *ContactSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &ContactSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// ContactSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type ContactSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *ContactSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *ContactSingleValueExtendedPropertiesCollectionRequest {
+ return &ContactSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *ContactSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ContactSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type ContactSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *ContactSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *ContactSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *ContactSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContentAlignmentEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContentAlignmentEnum.go
new file mode 100644
index 00000000..8a27e451
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContentAlignmentEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContentAlignment undocumented
+type ContentAlignment int
+
+const (
+ // ContentAlignmentVLeft undocumented
+ ContentAlignmentVLeft ContentAlignment = 0
+ // ContentAlignmentVRight undocumented
+ ContentAlignmentVRight ContentAlignment = 1
+ // ContentAlignmentVCenter undocumented
+ ContentAlignmentVCenter ContentAlignment = 2
+)
+
+// ContentAlignmentPLeft returns a pointer to ContentAlignmentVLeft
+func ContentAlignmentPLeft() *ContentAlignment {
+ v := ContentAlignmentVLeft
+ return &v
+}
+
+// ContentAlignmentPRight returns a pointer to ContentAlignmentVRight
+func ContentAlignmentPRight() *ContentAlignment {
+ v := ContentAlignmentVRight
+ return &v
+}
+
+// ContentAlignmentPCenter returns a pointer to ContentAlignmentVCenter
+func ContentAlignmentPCenter() *ContentAlignment {
+ v := ContentAlignmentVCenter
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContentClassificationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContentClassificationModel.go
new file mode 100644
index 00000000..67909aad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContentClassificationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContentClassification undocumented
+type ContentClassification struct {
+ // Object is the base model of ContentClassification
+ Object
+ // SensitiveTypeID undocumented
+ SensitiveTypeID *string `json:"sensitiveTypeId,omitempty"`
+ // UniqueCount undocumented
+ UniqueCount *int `json:"uniqueCount,omitempty"`
+ // Confidence undocumented
+ Confidence *int `json:"confidence,omitempty"`
+ // Matches undocumented
+ Matches []MatchLocation `json:"matches,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContentFormatEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContentFormatEnum.go
new file mode 100644
index 00000000..2bd410b4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContentFormatEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContentFormat undocumented
+type ContentFormat int
+
+const (
+ // ContentFormatVDefault undocumented
+ ContentFormatVDefault ContentFormat = 0
+ // ContentFormatVEmail undocumented
+ ContentFormatVEmail ContentFormat = 1
+)
+
+// ContentFormatPDefault returns a pointer to ContentFormatVDefault
+func ContentFormatPDefault() *ContentFormat {
+ v := ContentFormatVDefault
+ return &v
+}
+
+// ContentFormatPEmail returns a pointer to ContentFormatVEmail
+func ContentFormatPEmail() *ContentFormat {
+ v := ContentFormatVEmail
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContentInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContentInfoModel.go
new file mode 100644
index 00000000..83fbca1f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContentInfoModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContentInfo undocumented
+type ContentInfo struct {
+ // Object is the base model of ContentInfo
+ Object
+ // Format undocumented
+ Format *ContentFormat `json:"format,omitempty"`
+ // State undocumented
+ State *ContentState `json:"state,omitempty"`
+ // Identifier undocumented
+ Identifier *string `json:"identifier,omitempty"`
+ // Metadata undocumented
+ Metadata []KeyValuePair `json:"metadata,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContentMetadataModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContentMetadataModel.go
new file mode 100644
index 00000000..93b21872
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContentMetadataModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContentMetadata undocumented
+type ContentMetadata struct {
+ // Object is the base model of ContentMetadata
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContentPropertiesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContentPropertiesModel.go
new file mode 100644
index 00000000..bc71d64c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContentPropertiesModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ContentProperties undocumented
+type ContentProperties struct {
+ // Object is the base model of ContentProperties
+ Object
+ // Extensions undocumented
+ Extensions []string `json:"extensions,omitempty"`
+ // Metadata undocumented
+ Metadata *ContentMetadata `json:"metadata,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContentStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContentStateEnum.go
new file mode 100644
index 00000000..45d4b973
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContentStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContentState undocumented
+type ContentState int
+
+const (
+ // ContentStateVRest undocumented
+ ContentStateVRest ContentState = 0
+ // ContentStateVMotion undocumented
+ ContentStateVMotion ContentState = 1
+ // ContentStateVUse undocumented
+ ContentStateVUse ContentState = 2
+)
+
+// ContentStatePRest returns a pointer to ContentStateVRest
+func ContentStatePRest() *ContentState {
+ v := ContentStateVRest
+ return &v
+}
+
+// ContentStatePMotion returns a pointer to ContentStateVMotion
+func ContentStatePMotion() *ContentState {
+ v := ContentStateVMotion
+ return &v
+}
+
+// ContentStatePUse returns a pointer to ContentStateVUse
+func ContentStatePUse() *ContentState {
+ v := ContentStateVUse
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContentTypeInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContentTypeInfoModel.go
new file mode 100644
index 00000000..f600f4ae
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContentTypeInfoModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContentTypeInfo undocumented
+type ContentTypeInfo struct {
+ // Object is the base model of ContentTypeInfo
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContentTypeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContentTypeModel.go
new file mode 100644
index 00000000..0b2e76cc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContentTypeModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContentType undocumented
+type ContentType struct {
+ // Entity is the base model of ContentType
+ Entity
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Group undocumented
+ Group *string `json:"group,omitempty"`
+ // Hidden undocumented
+ Hidden *bool `json:"hidden,omitempty"`
+ // InheritedFrom undocumented
+ InheritedFrom *ItemReference `json:"inheritedFrom,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Order undocumented
+ Order *ContentTypeOrder `json:"order,omitempty"`
+ // ParentID undocumented
+ ParentID *string `json:"parentId,omitempty"`
+ // ReadOnly undocumented
+ ReadOnly *bool `json:"readOnly,omitempty"`
+ // Sealed undocumented
+ Sealed *bool `json:"sealed,omitempty"`
+ // ColumnLinks undocumented
+ ColumnLinks []ColumnLink `json:"columnLinks,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContentTypeOrderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContentTypeOrderModel.go
new file mode 100644
index 00000000..dcdb966b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContentTypeOrderModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContentTypeOrder undocumented
+type ContentTypeOrder struct {
+ // Object is the base model of ContentTypeOrder
+ Object
+ // Default undocumented
+ Default *bool `json:"default,omitempty"`
+ // Position undocumented
+ Position *int `json:"position,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContentTypeRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContentTypeRequest.go
new file mode 100644
index 00000000..739c6b6d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContentTypeRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ContentTypeRequestBuilder is request builder for ContentType
+type ContentTypeRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ContentTypeRequest
+func (b *ContentTypeRequestBuilder) Request() *ContentTypeRequest {
+ return &ContentTypeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ContentTypeRequest is request for ContentType
+type ContentTypeRequest struct{ BaseRequest }
+
+// Get performs GET request for ContentType
+func (r *ContentTypeRequest) Get(ctx context.Context) (resObj *ContentType, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ContentType
+func (r *ContentTypeRequest) Update(ctx context.Context, reqObj *ContentType) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ContentType
+func (r *ContentTypeRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ColumnLinks returns request builder for ColumnLink collection
+func (b *ContentTypeRequestBuilder) ColumnLinks() *ContentTypeColumnLinksCollectionRequestBuilder {
+ bb := &ContentTypeColumnLinksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/columnLinks"
+ return bb
+}
+
+// ContentTypeColumnLinksCollectionRequestBuilder is request builder for ColumnLink collection
+type ContentTypeColumnLinksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ColumnLink collection
+func (b *ContentTypeColumnLinksCollectionRequestBuilder) Request() *ContentTypeColumnLinksCollectionRequest {
+ return &ContentTypeColumnLinksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ColumnLink item
+func (b *ContentTypeColumnLinksCollectionRequestBuilder) ID(id string) *ColumnLinkRequestBuilder {
+ bb := &ColumnLinkRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ContentTypeColumnLinksCollectionRequest is request for ColumnLink collection
+type ContentTypeColumnLinksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ColumnLink collection
+func (r *ContentTypeColumnLinksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ColumnLink, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ColumnLink
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ColumnLink
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ColumnLink collection
+func (r *ContentTypeColumnLinksCollectionRequest) Get(ctx context.Context) ([]ColumnLink, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ColumnLink collection
+func (r *ContentTypeColumnLinksCollectionRequest) Add(ctx context.Context, reqObj *ColumnLink) (resObj *ColumnLink, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContractModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContractModel.go
new file mode 100644
index 00000000..3e9ab95c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContractModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Contract undocumented
+type Contract struct {
+ // DirectoryObject is the base model of Contract
+ DirectoryObject
+ // ContractType undocumented
+ ContractType *string `json:"contractType,omitempty"`
+ // CustomerID undocumented
+ CustomerID *UUID `json:"customerId,omitempty"`
+ // DefaultDomainName undocumented
+ DefaultDomainName *string `json:"defaultDomainName,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ContractRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ContractRequest.go
new file mode 100644
index 00000000..d8465c8f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ContractRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ContractRequestBuilder is request builder for Contract
+type ContractRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ContractRequest
+func (b *ContractRequestBuilder) Request() *ContractRequest {
+ return &ContractRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ContractRequest is request for Contract
+type ContractRequest struct{ BaseRequest }
+
+// Get performs GET request for Contract
+func (r *ContractRequest) Get(ctx context.Context) (resObj *Contract, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Contract
+func (r *ContractRequest) Update(ctx context.Context, reqObj *Contract) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Contract
+func (r *ContractRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ControlScoreModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ControlScoreModel.go
new file mode 100644
index 00000000..5153f2eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ControlScoreModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ControlScore undocumented
+type ControlScore struct {
+ // Object is the base model of ControlScore
+ Object
+ // ControlCategory undocumented
+ ControlCategory *string `json:"controlCategory,omitempty"`
+ // ControlName undocumented
+ ControlName *string `json:"controlName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Score undocumented
+ Score *float64 `json:"score,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConversationIdentityTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationIdentityTypeEnum.go
new file mode 100644
index 00000000..a20c19d8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationIdentityTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConversationIdentityType undocumented
+type ConversationIdentityType int
+
+const (
+ // ConversationIdentityTypeVTeam undocumented
+ ConversationIdentityTypeVTeam ConversationIdentityType = 0
+ // ConversationIdentityTypeVChannel undocumented
+ ConversationIdentityTypeVChannel ConversationIdentityType = 1
+)
+
+// ConversationIdentityTypePTeam returns a pointer to ConversationIdentityTypeVTeam
+func ConversationIdentityTypePTeam() *ConversationIdentityType {
+ v := ConversationIdentityTypeVTeam
+ return &v
+}
+
+// ConversationIdentityTypePChannel returns a pointer to ConversationIdentityTypeVChannel
+func ConversationIdentityTypePChannel() *ConversationIdentityType {
+ v := ConversationIdentityTypeVChannel
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConversationMemberModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationMemberModel.go
new file mode 100644
index 00000000..f3fde9b0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationMemberModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConversationMember undocumented
+type ConversationMember struct {
+ // Entity is the base model of ConversationMember
+ Entity
+ // Roles undocumented
+ Roles []string `json:"roles,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConversationMemberRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationMemberRequest.go
new file mode 100644
index 00000000..7785f3ec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationMemberRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ConversationMemberRequestBuilder is request builder for ConversationMember
+type ConversationMemberRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ConversationMemberRequest
+func (b *ConversationMemberRequestBuilder) Request() *ConversationMemberRequest {
+ return &ConversationMemberRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ConversationMemberRequest is request for ConversationMember
+type ConversationMemberRequest struct{ BaseRequest }
+
+// Get performs GET request for ConversationMember
+func (r *ConversationMemberRequest) Get(ctx context.Context) (resObj *ConversationMember, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ConversationMember
+func (r *ConversationMemberRequest) Update(ctx context.Context, reqObj *ConversationMember) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ConversationMember
+func (r *ConversationMemberRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConversationMemberRolesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationMemberRolesModel.go
new file mode 100644
index 00000000..63746df1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationMemberRolesModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConversationMemberRoles undocumented
+type ConversationMemberRoles struct {
+ // Object is the base model of ConversationMemberRoles
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConversationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationModel.go
new file mode 100644
index 00000000..cff50a02
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Conversation undocumented
+type Conversation struct {
+ // Entity is the base model of Conversation
+ Entity
+ // Topic undocumented
+ Topic *string `json:"topic,omitempty"`
+ // HasAttachments undocumented
+ HasAttachments *bool `json:"hasAttachments,omitempty"`
+ // LastDeliveredDateTime undocumented
+ LastDeliveredDateTime *time.Time `json:"lastDeliveredDateTime,omitempty"`
+ // UniqueSenders undocumented
+ UniqueSenders []string `json:"uniqueSenders,omitempty"`
+ // Preview undocumented
+ Preview *string `json:"preview,omitempty"`
+ // Threads undocumented
+ Threads []ConversationThread `json:"threads,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConversationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationRequest.go
new file mode 100644
index 00000000..d215b489
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ConversationRequestBuilder is request builder for Conversation
+type ConversationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ConversationRequest
+func (b *ConversationRequestBuilder) Request() *ConversationRequest {
+ return &ConversationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ConversationRequest is request for Conversation
+type ConversationRequest struct{ BaseRequest }
+
+// Get performs GET request for Conversation
+func (r *ConversationRequest) Get(ctx context.Context) (resObj *Conversation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Conversation
+func (r *ConversationRequest) Update(ctx context.Context, reqObj *Conversation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Conversation
+func (r *ConversationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Threads returns request builder for ConversationThread collection
+func (b *ConversationRequestBuilder) Threads() *ConversationThreadsCollectionRequestBuilder {
+ bb := &ConversationThreadsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/threads"
+ return bb
+}
+
+// ConversationThreadsCollectionRequestBuilder is request builder for ConversationThread collection
+type ConversationThreadsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ConversationThread collection
+func (b *ConversationThreadsCollectionRequestBuilder) Request() *ConversationThreadsCollectionRequest {
+ return &ConversationThreadsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ConversationThread item
+func (b *ConversationThreadsCollectionRequestBuilder) ID(id string) *ConversationThreadRequestBuilder {
+ bb := &ConversationThreadRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ConversationThreadsCollectionRequest is request for ConversationThread collection
+type ConversationThreadsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ConversationThread collection
+func (r *ConversationThreadsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ConversationThread, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ConversationThread
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ConversationThread
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ConversationThread collection
+func (r *ConversationThreadsCollectionRequest) Get(ctx context.Context) ([]ConversationThread, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ConversationThread collection
+func (r *ConversationThreadsCollectionRequest) Add(ctx context.Context, reqObj *ConversationThread) (resObj *ConversationThread, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConversationThreadAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationThreadAction.go
new file mode 100644
index 00000000..756eb873
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationThreadAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ConversationThreadReplyRequestParameter undocumented
+type ConversationThreadReplyRequestParameter struct {
+ // Post undocumented
+ Post *Post `json:"Post,omitempty"`
+}
+
+//
+type ConversationThreadReplyRequestBuilder struct{ BaseRequestBuilder }
+
+// Reply action undocumented
+func (b *ConversationThreadRequestBuilder) Reply(reqObj *ConversationThreadReplyRequestParameter) *ConversationThreadReplyRequestBuilder {
+ bb := &ConversationThreadReplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/reply"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ConversationThreadReplyRequest struct{ BaseRequest }
+
+//
+func (b *ConversationThreadReplyRequestBuilder) Request() *ConversationThreadReplyRequest {
+ return &ConversationThreadReplyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ConversationThreadReplyRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConversationThreadModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationThreadModel.go
new file mode 100644
index 00000000..1cbeb64f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationThreadModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ConversationThread undocumented
+type ConversationThread struct {
+ // Entity is the base model of ConversationThread
+ Entity
+ // ToRecipients undocumented
+ ToRecipients []Recipient `json:"toRecipients,omitempty"`
+ // Topic undocumented
+ Topic *string `json:"topic,omitempty"`
+ // HasAttachments undocumented
+ HasAttachments *bool `json:"hasAttachments,omitempty"`
+ // LastDeliveredDateTime undocumented
+ LastDeliveredDateTime *time.Time `json:"lastDeliveredDateTime,omitempty"`
+ // UniqueSenders undocumented
+ UniqueSenders []string `json:"uniqueSenders,omitempty"`
+ // CcRecipients undocumented
+ CcRecipients []Recipient `json:"ccRecipients,omitempty"`
+ // Preview undocumented
+ Preview *string `json:"preview,omitempty"`
+ // IsLocked undocumented
+ IsLocked *bool `json:"isLocked,omitempty"`
+ // Posts undocumented
+ Posts []Post `json:"posts,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConversationThreadRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationThreadRequest.go
new file mode 100644
index 00000000..991329e9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConversationThreadRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ConversationThreadRequestBuilder is request builder for ConversationThread
+type ConversationThreadRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ConversationThreadRequest
+func (b *ConversationThreadRequestBuilder) Request() *ConversationThreadRequest {
+ return &ConversationThreadRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ConversationThreadRequest is request for ConversationThread
+type ConversationThreadRequest struct{ BaseRequest }
+
+// Get performs GET request for ConversationThread
+func (r *ConversationThreadRequest) Get(ctx context.Context) (resObj *ConversationThread, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ConversationThread
+func (r *ConversationThreadRequest) Update(ctx context.Context, reqObj *ConversationThread) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ConversationThread
+func (r *ConversationThreadRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Posts returns request builder for Post collection
+func (b *ConversationThreadRequestBuilder) Posts() *ConversationThreadPostsCollectionRequestBuilder {
+ bb := &ConversationThreadPostsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/posts"
+ return bb
+}
+
+// ConversationThreadPostsCollectionRequestBuilder is request builder for Post collection
+type ConversationThreadPostsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Post collection
+func (b *ConversationThreadPostsCollectionRequestBuilder) Request() *ConversationThreadPostsCollectionRequest {
+ return &ConversationThreadPostsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Post item
+func (b *ConversationThreadPostsCollectionRequestBuilder) ID(id string) *PostRequestBuilder {
+ bb := &PostRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ConversationThreadPostsCollectionRequest is request for Post collection
+type ConversationThreadPostsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Post collection
+func (r *ConversationThreadPostsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Post, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Post
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Post
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Post collection
+func (r *ConversationThreadPostsCollectionRequest) Get(ctx context.Context) ([]Post, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Post collection
+func (r *ConversationThreadPostsCollectionRequest) Add(ctx context.Context, reqObj *Post) (resObj *Post, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ConvertIDResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ConvertIDResultModel.go
new file mode 100644
index 00000000..ff076bbb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ConvertIDResultModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConvertIDResult undocumented
+type ConvertIDResult struct {
+ // Object is the base model of ConvertIDResult
+ Object
+ // SourceID undocumented
+ SourceID *string `json:"sourceId,omitempty"`
+ // TargetID undocumented
+ TargetID *string `json:"targetId,omitempty"`
+ // ErrorDetails undocumented
+ ErrorDetails *GenericError `json:"errorDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CopyNotebookModelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CopyNotebookModelModel.go
new file mode 100644
index 00000000..368e21f9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CopyNotebookModelModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// CopyNotebookModel undocumented
+type CopyNotebookModel struct {
+ // Object is the base model of CopyNotebookModel
+ Object
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // UserRole undocumented
+ UserRole *OnenoteUserRole `json:"userRole,omitempty"`
+ // IsShared undocumented
+ IsShared *bool `json:"isShared,omitempty"`
+ // SectionsURL undocumented
+ SectionsURL *string `json:"sectionsUrl,omitempty"`
+ // SectionGroupsURL undocumented
+ SectionGroupsURL *string `json:"sectionGroupsUrl,omitempty"`
+ // Links undocumented
+ Links *NotebookLinks `json:"links,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *string `json:"createdBy,omitempty"`
+ // CreatedByIdentity undocumented
+ CreatedByIdentity *IdentitySet `json:"createdByIdentity,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
+ // LastModifiedByIdentity undocumented
+ LastModifiedByIdentity *IdentitySet `json:"lastModifiedByIdentity,omitempty"`
+ // LastModifiedTime undocumented
+ LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty"`
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Self undocumented
+ Self *string `json:"self,omitempty"`
+ // CreatedTime undocumented
+ CreatedTime *time.Time `json:"createdTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CountryNamedLocationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CountryNamedLocationModel.go
new file mode 100644
index 00000000..9c8500c7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CountryNamedLocationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CountryNamedLocation undocumented
+type CountryNamedLocation struct {
+ // NamedLocation is the base model of CountryNamedLocation
+ NamedLocation
+ // CountriesAndRegions undocumented
+ CountriesAndRegions []string `json:"countriesAndRegions,omitempty"`
+ // IncludeUnknownCountriesAndRegions undocumented
+ IncludeUnknownCountriesAndRegions *bool `json:"includeUnknownCountriesAndRegions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CountryRegionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CountryRegionModel.go
new file mode 100644
index 00000000..9a59e86e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CountryRegionModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// CountryRegion undocumented
+type CountryRegion struct {
+ // Entity is the base model of CountryRegion
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // AddressFormat undocumented
+ AddressFormat *string `json:"addressFormat,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CountryRegionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CountryRegionRequest.go
new file mode 100644
index 00000000..1a37db72
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CountryRegionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CountryRegionRequestBuilder is request builder for CountryRegion
+type CountryRegionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CountryRegionRequest
+func (b *CountryRegionRequestBuilder) Request() *CountryRegionRequest {
+ return &CountryRegionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CountryRegionRequest is request for CountryRegion
+type CountryRegionRequest struct{ BaseRequest }
+
+// Get performs GET request for CountryRegion
+func (r *CountryRegionRequest) Get(ctx context.Context) (resObj *CountryRegion, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CountryRegion
+func (r *CountryRegionRequest) Update(ctx context.Context, reqObj *CountryRegion) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CountryRegion
+func (r *CountryRegionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CreateActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CreateActionModel.go
new file mode 100644
index 00000000..8d598713
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CreateActionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CreateAction undocumented
+type CreateAction struct {
+ // Object is the base model of CreateAction
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CredentialModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CredentialModel.go
new file mode 100644
index 00000000..cc4164f5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CredentialModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Credential undocumented
+type Credential struct {
+ // Object is the base model of Credential
+ Object
+ // FieldID undocumented
+ FieldID *string `json:"fieldId,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CredentialSingleSignOnExtensionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CredentialSingleSignOnExtensionModel.go
new file mode 100644
index 00000000..6f560e20
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CredentialSingleSignOnExtensionModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CredentialSingleSignOnExtension undocumented
+type CredentialSingleSignOnExtension struct {
+ // SingleSignOnExtension is the base model of CredentialSingleSignOnExtension
+ SingleSignOnExtension
+ // ExtensionIdentifier Gets or sets the bundle ID of the app extension that performs SSO for the specified URLs.
+ ExtensionIdentifier *string `json:"extensionIdentifier,omitempty"`
+ // TeamIdentifier Gets or sets the team ID of the app extension that performs SSO for the specified URLs.
+ TeamIdentifier *string `json:"teamIdentifier,omitempty"`
+ // Domains Gets or sets a list of hosts or domain names for which the app extension performs SSO.
+ Domains []string `json:"domains,omitempty"`
+ // Realm Gets or sets the case-sensitive realm name for this profile.
+ Realm *string `json:"realm,omitempty"`
+ // Configurations Gets or sets a list of typed key-value pairs used to configure Credential-type profiles. This collection can contain a maximum of 500 elements.
+ Configurations []KeyTypedValuePair `json:"configurations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CredentialUsageSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CredentialUsageSummaryModel.go
new file mode 100644
index 00000000..4a73ecf3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CredentialUsageSummaryModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CredentialUsageSummary undocumented
+type CredentialUsageSummary struct {
+ // Entity is the base model of CredentialUsageSummary
+ Entity
+ // Feature undocumented
+ Feature *FeatureType `json:"feature,omitempty"`
+ // SuccessfulActivityCount undocumented
+ SuccessfulActivityCount *int `json:"successfulActivityCount,omitempty"`
+ // FailureActivityCount undocumented
+ FailureActivityCount *int `json:"failureActivityCount,omitempty"`
+ // AuthMethod undocumented
+ AuthMethod *UsageAuthMethod `json:"authMethod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CredentialUserRegistrationCountModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CredentialUserRegistrationCountModel.go
new file mode 100644
index 00000000..1d74a5f0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CredentialUserRegistrationCountModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CredentialUserRegistrationCount undocumented
+type CredentialUserRegistrationCount struct {
+ // Entity is the base model of CredentialUserRegistrationCount
+ Entity
+ // TotalUserCount undocumented
+ TotalUserCount *int `json:"totalUserCount,omitempty"`
+ // UserRegistrationCounts undocumented
+ UserRegistrationCounts []UserRegistrationCount `json:"userRegistrationCounts,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CredentialUserRegistrationDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CredentialUserRegistrationDetailsModel.go
new file mode 100644
index 00000000..153e690b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CredentialUserRegistrationDetailsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CredentialUserRegistrationDetails undocumented
+type CredentialUserRegistrationDetails struct {
+ // Entity is the base model of CredentialUserRegistrationDetails
+ Entity
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // UserDisplayName undocumented
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // AuthMethods undocumented
+ AuthMethods []RegistrationAuthMethod `json:"authMethods,omitempty"`
+ // IsRegistered undocumented
+ IsRegistered *bool `json:"isRegistered,omitempty"`
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // IsCapable undocumented
+ IsCapable *bool `json:"isCapable,omitempty"`
+ // IsMFARegistered undocumented
+ IsMFARegistered *bool `json:"isMfaRegistered,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CredentialUserRegistrationDetailsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CredentialUserRegistrationDetailsRequest.go
new file mode 100644
index 00000000..3e2a29f3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CredentialUserRegistrationDetailsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CredentialUserRegistrationDetailsRequestBuilder is request builder for CredentialUserRegistrationDetails
+type CredentialUserRegistrationDetailsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CredentialUserRegistrationDetailsRequest
+func (b *CredentialUserRegistrationDetailsRequestBuilder) Request() *CredentialUserRegistrationDetailsRequest {
+ return &CredentialUserRegistrationDetailsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CredentialUserRegistrationDetailsRequest is request for CredentialUserRegistrationDetails
+type CredentialUserRegistrationDetailsRequest struct{ BaseRequest }
+
+// Get performs GET request for CredentialUserRegistrationDetails
+func (r *CredentialUserRegistrationDetailsRequest) Get(ctx context.Context) (resObj *CredentialUserRegistrationDetails, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CredentialUserRegistrationDetails
+func (r *CredentialUserRegistrationDetailsRequest) Update(ctx context.Context, reqObj *CredentialUserRegistrationDetails) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CredentialUserRegistrationDetails
+func (r *CredentialUserRegistrationDetailsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CurrencyColumnModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CurrencyColumnModel.go
new file mode 100644
index 00000000..c1cb1c53
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CurrencyColumnModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CurrencyColumn undocumented
+type CurrencyColumn struct {
+ // Object is the base model of CurrencyColumn
+ Object
+ // Locale undocumented
+ Locale *string `json:"locale,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CurrencyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CurrencyModel.go
new file mode 100644
index 00000000..7d8aaa59
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CurrencyModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Currency undocumented
+type Currency struct {
+ // Entity is the base model of Currency
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Symbol undocumented
+ Symbol *string `json:"symbol,omitempty"`
+ // AmountDecimalPlaces undocumented
+ AmountDecimalPlaces *string `json:"amountDecimalPlaces,omitempty"`
+ // AmountRoundingPrecision undocumented
+ AmountRoundingPrecision *int `json:"amountRoundingPrecision,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CurrencyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CurrencyRequest.go
new file mode 100644
index 00000000..3605e038
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CurrencyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CurrencyRequestBuilder is request builder for Currency
+type CurrencyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CurrencyRequest
+func (b *CurrencyRequestBuilder) Request() *CurrencyRequest {
+ return &CurrencyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CurrencyRequest is request for Currency
+type CurrencyRequest struct{ BaseRequest }
+
+// Get performs GET request for Currency
+func (r *CurrencyRequest) Get(ctx context.Context) (resObj *Currency, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Currency
+func (r *CurrencyRequest) Update(ctx context.Context, reqObj *Currency) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Currency
+func (r *CurrencyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CurrentLabelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CurrentLabelModel.go
new file mode 100644
index 00000000..03afed08
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CurrentLabelModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CurrentLabel undocumented
+type CurrentLabel struct {
+ // Object is the base model of CurrentLabel
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // ApplicationMode undocumented
+ ApplicationMode *ApplicationMode `json:"applicationMode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CustomActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CustomActionModel.go
new file mode 100644
index 00000000..338d6ebd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CustomActionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CustomAction undocumented
+type CustomAction struct {
+ // InformationProtectionAction is the base model of CustomAction
+ InformationProtectionAction
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Properties undocumented
+ Properties []KeyValuePair `json:"properties,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CustomSubjectAlternativeNameModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CustomSubjectAlternativeNameModel.go
new file mode 100644
index 00000000..2b91ae09
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CustomSubjectAlternativeNameModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CustomSubjectAlternativeName undocumented
+type CustomSubjectAlternativeName struct {
+ // Object is the base model of CustomSubjectAlternativeName
+ Object
+ // SanType Custom SAN Type.
+ SanType *SubjectAlternativeNameType `json:"sanType,omitempty"`
+ // Name Custom SAN Name
+ Name *string `json:"name,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CustomTimeZoneModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CustomTimeZoneModel.go
new file mode 100644
index 00000000..d8c81fe6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CustomTimeZoneModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CustomTimeZone undocumented
+type CustomTimeZone struct {
+ // TimeZoneBase is the base model of CustomTimeZone
+ TimeZoneBase
+ // Bias undocumented
+ Bias *int `json:"bias,omitempty"`
+ // StandardOffset undocumented
+ StandardOffset *StandardTimeZoneOffset `json:"standardOffset,omitempty"`
+ // DaylightOffset undocumented
+ DaylightOffset *DaylightTimeZoneOffset `json:"daylightOffset,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CustomerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CustomerModel.go
new file mode 100644
index 00000000..e5f4efc0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CustomerModel.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Customer undocumented
+type Customer struct {
+ // Entity is the base model of Customer
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Address undocumented
+ Address *PostalAddressType `json:"address,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // Website undocumented
+ Website *string `json:"website,omitempty"`
+ // TaxLiable undocumented
+ TaxLiable *bool `json:"taxLiable,omitempty"`
+ // TaxAreaID undocumented
+ TaxAreaID *UUID `json:"taxAreaId,omitempty"`
+ // TaxAreaDisplayName undocumented
+ TaxAreaDisplayName *string `json:"taxAreaDisplayName,omitempty"`
+ // TaxRegistrationNumber undocumented
+ TaxRegistrationNumber *string `json:"taxRegistrationNumber,omitempty"`
+ // CurrencyID undocumented
+ CurrencyID *UUID `json:"currencyId,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // PaymentTermsID undocumented
+ PaymentTermsID *UUID `json:"paymentTermsId,omitempty"`
+ // ShipmentMethodID undocumented
+ ShipmentMethodID *UUID `json:"shipmentMethodId,omitempty"`
+ // PaymentMethodID undocumented
+ PaymentMethodID *UUID `json:"paymentMethodId,omitempty"`
+ // Blocked undocumented
+ Blocked *string `json:"blocked,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Picture undocumented
+ Picture []Picture `json:"picture,omitempty"`
+ // Currency undocumented
+ Currency *Currency `json:"currency,omitempty"`
+ // PaymentTerm undocumented
+ PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"`
+ // ShipmentMethod undocumented
+ ShipmentMethod *ShipmentMethod `json:"shipmentMethod,omitempty"`
+ // PaymentMethod undocumented
+ PaymentMethod *PaymentMethod `json:"paymentMethod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CustomerPaymentJournalModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CustomerPaymentJournalModel.go
new file mode 100644
index 00000000..b52aefb1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CustomerPaymentJournalModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// CustomerPaymentJournal undocumented
+type CustomerPaymentJournal struct {
+ // Entity is the base model of CustomerPaymentJournal
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // BalancingAccountID undocumented
+ BalancingAccountID *UUID `json:"balancingAccountId,omitempty"`
+ // BalancingAccountNumber undocumented
+ BalancingAccountNumber *string `json:"balancingAccountNumber,omitempty"`
+ // CustomerPayments undocumented
+ CustomerPayments []CustomerPayment `json:"customerPayments,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CustomerPaymentJournalRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CustomerPaymentJournalRequest.go
new file mode 100644
index 00000000..294d4cca
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CustomerPaymentJournalRequest.go
@@ -0,0 +1,146 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// CustomerPaymentJournalRequestBuilder is request builder for CustomerPaymentJournal
+type CustomerPaymentJournalRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CustomerPaymentJournalRequest
+func (b *CustomerPaymentJournalRequestBuilder) Request() *CustomerPaymentJournalRequest {
+ return &CustomerPaymentJournalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CustomerPaymentJournalRequest is request for CustomerPaymentJournal
+type CustomerPaymentJournalRequest struct{ BaseRequest }
+
+// Get performs GET request for CustomerPaymentJournal
+func (r *CustomerPaymentJournalRequest) Get(ctx context.Context) (resObj *CustomerPaymentJournal, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CustomerPaymentJournal
+func (r *CustomerPaymentJournalRequest) Update(ctx context.Context, reqObj *CustomerPaymentJournal) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CustomerPaymentJournal
+func (r *CustomerPaymentJournalRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Account is navigation property
+func (b *CustomerPaymentJournalRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
+
+// CustomerPayments returns request builder for CustomerPayment collection
+func (b *CustomerPaymentJournalRequestBuilder) CustomerPayments() *CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder {
+ bb := &CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customerPayments"
+ return bb
+}
+
+// CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder is request builder for CustomerPayment collection
+type CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CustomerPayment collection
+func (b *CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder) Request() *CustomerPaymentJournalCustomerPaymentsCollectionRequest {
+ return &CustomerPaymentJournalCustomerPaymentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CustomerPayment item
+func (b *CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder) ID(id string) *CustomerPaymentRequestBuilder {
+ bb := &CustomerPaymentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CustomerPaymentJournalCustomerPaymentsCollectionRequest is request for CustomerPayment collection
+type CustomerPaymentJournalCustomerPaymentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CustomerPayment collection
+func (r *CustomerPaymentJournalCustomerPaymentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]CustomerPayment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CustomerPayment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CustomerPayment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CustomerPayment collection
+func (r *CustomerPaymentJournalCustomerPaymentsCollectionRequest) Get(ctx context.Context) ([]CustomerPayment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for CustomerPayment collection
+func (r *CustomerPaymentJournalCustomerPaymentsCollectionRequest) Add(ctx context.Context, reqObj *CustomerPayment) (resObj *CustomerPayment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CustomerPaymentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/CustomerPaymentModel.go
new file mode 100644
index 00000000..e15bb841
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CustomerPaymentModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// CustomerPayment undocumented
+type CustomerPayment struct {
+ // Entity is the base model of CustomerPayment
+ Entity
+ // JournalDisplayName undocumented
+ JournalDisplayName *string `json:"journalDisplayName,omitempty"`
+ // LineNumber undocumented
+ LineNumber *int `json:"lineNumber,omitempty"`
+ // CustomerID undocumented
+ CustomerID *UUID `json:"customerId,omitempty"`
+ // CustomerNumber undocumented
+ CustomerNumber *string `json:"customerNumber,omitempty"`
+ // ContactID undocumented
+ ContactID *string `json:"contactId,omitempty"`
+ // PostingDate undocumented
+ PostingDate *time.Time `json:"postingDate,omitempty"`
+ // DocumentNumber undocumented
+ DocumentNumber *string `json:"documentNumber,omitempty"`
+ // ExternalDocumentNumber undocumented
+ ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"`
+ // Amount undocumented
+ Amount *int `json:"amount,omitempty"`
+ // AppliesToInvoiceID undocumented
+ AppliesToInvoiceID *UUID `json:"appliesToInvoiceId,omitempty"`
+ // AppliesToInvoiceNumber undocumented
+ AppliesToInvoiceNumber *string `json:"appliesToInvoiceNumber,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"comment,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Customer undocumented
+ Customer *Customer `json:"customer,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CustomerPaymentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CustomerPaymentRequest.go
new file mode 100644
index 00000000..db2d49ad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CustomerPaymentRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CustomerPaymentRequestBuilder is request builder for CustomerPayment
+type CustomerPaymentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CustomerPaymentRequest
+func (b *CustomerPaymentRequestBuilder) Request() *CustomerPaymentRequest {
+ return &CustomerPaymentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CustomerPaymentRequest is request for CustomerPayment
+type CustomerPaymentRequest struct{ BaseRequest }
+
+// Get performs GET request for CustomerPayment
+func (r *CustomerPaymentRequest) Get(ctx context.Context) (resObj *CustomerPayment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CustomerPayment
+func (r *CustomerPaymentRequest) Update(ctx context.Context, reqObj *CustomerPayment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CustomerPayment
+func (r *CustomerPaymentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Customer is navigation property
+func (b *CustomerPaymentRequestBuilder) Customer() *CustomerRequestBuilder {
+ bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customer"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/CustomerRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/CustomerRequest.go
new file mode 100644
index 00000000..8f24b146
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/CustomerRequest.go
@@ -0,0 +1,167 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// CustomerRequestBuilder is request builder for Customer
+type CustomerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CustomerRequest
+func (b *CustomerRequestBuilder) Request() *CustomerRequest {
+ return &CustomerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CustomerRequest is request for Customer
+type CustomerRequest struct{ BaseRequest }
+
+// Get performs GET request for Customer
+func (r *CustomerRequest) Get(ctx context.Context) (resObj *Customer, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Customer
+func (r *CustomerRequest) Update(ctx context.Context, reqObj *Customer) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Customer
+func (r *CustomerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Currency is navigation property
+func (b *CustomerRequestBuilder) Currency() *CurrencyRequestBuilder {
+ bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/currency"
+ return bb
+}
+
+// PaymentMethod is navigation property
+func (b *CustomerRequestBuilder) PaymentMethod() *PaymentMethodRequestBuilder {
+ bb := &PaymentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentMethod"
+ return bb
+}
+
+// PaymentTerm is navigation property
+func (b *CustomerRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder {
+ bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentTerm"
+ return bb
+}
+
+// Picture returns request builder for Picture collection
+func (b *CustomerRequestBuilder) Picture() *CustomerPictureCollectionRequestBuilder {
+ bb := &CustomerPictureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/picture"
+ return bb
+}
+
+// CustomerPictureCollectionRequestBuilder is request builder for Picture collection
+type CustomerPictureCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Picture collection
+func (b *CustomerPictureCollectionRequestBuilder) Request() *CustomerPictureCollectionRequest {
+ return &CustomerPictureCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Picture item
+func (b *CustomerPictureCollectionRequestBuilder) ID(id string) *PictureRequestBuilder {
+ bb := &PictureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CustomerPictureCollectionRequest is request for Picture collection
+type CustomerPictureCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Picture collection
+func (r *CustomerPictureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Picture, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Picture
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Picture
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Picture collection
+func (r *CustomerPictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Picture collection
+func (r *CustomerPictureCollectionRequest) Add(ctx context.Context, reqObj *Picture) (resObj *Picture, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ShipmentMethod is navigation property
+func (b *CustomerRequestBuilder) ShipmentMethod() *ShipmentMethodRequestBuilder {
+ bb := &ShipmentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/shipmentMethod"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DailyScheduleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DailyScheduleModel.go
new file mode 100644
index 00000000..22d5c90b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DailyScheduleModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DailySchedule undocumented
+type DailySchedule struct {
+ // RunSchedule is the base model of DailySchedule
+ RunSchedule
+ // Interval Interval in number of days
+ Interval *int `json:"interval,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DataClassificationServiceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DataClassificationServiceModel.go
new file mode 100644
index 00000000..48234991
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DataClassificationServiceModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DataClassificationService undocumented
+type DataClassificationService struct {
+ // Entity is the base model of DataClassificationService
+ Entity
+ // ExactMatchDataStores undocumented
+ ExactMatchDataStores []ExactMatchDataStore `json:"exactMatchDataStores,omitempty"`
+ // SensitiveTypes undocumented
+ SensitiveTypes []SensitiveType `json:"sensitiveTypes,omitempty"`
+ // Jobs undocumented
+ Jobs []JobResponseBase `json:"jobs,omitempty"`
+ // ClassifyFileJobs undocumented
+ ClassifyFileJobs []JobResponseBase `json:"classifyFileJobs,omitempty"`
+ // ClassifyTextJobs undocumented
+ ClassifyTextJobs []JobResponseBase `json:"classifyTextJobs,omitempty"`
+ // EvaluateLabelJobs undocumented
+ EvaluateLabelJobs []JobResponseBase `json:"evaluateLabelJobs,omitempty"`
+ // EvaluateDlpPoliciesJobs undocumented
+ EvaluateDlpPoliciesJobs []JobResponseBase `json:"evaluateDlpPoliciesJobs,omitempty"`
+ // LabelsAndPoliciesEvaluationJobs undocumented
+ LabelsAndPoliciesEvaluationJobs []JobResponseBase `json:"labelsAndPoliciesEvaluationJobs,omitempty"`
+ // ClassifyText undocumented
+ ClassifyText []TextClassificationRequestObject `json:"classifyText,omitempty"`
+ // ClassifyFile undocumented
+ ClassifyFile []FileClassificationRequestObject `json:"classifyFile,omitempty"`
+ // SensitivityLabels undocumented
+ SensitivityLabels []SensitivityLabel `json:"sensitivityLabels,omitempty"`
+ // ExactMatchUploadAgents undocumented
+ ExactMatchUploadAgents []ExactMatchUploadAgent `json:"exactMatchUploadAgents,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DataClassificationServiceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DataClassificationServiceRequest.go
new file mode 100644
index 00000000..5dd5c90e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DataClassificationServiceRequest.go
@@ -0,0 +1,1173 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DataClassificationServiceRequestBuilder is request builder for DataClassificationService
+type DataClassificationServiceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DataClassificationServiceRequest
+func (b *DataClassificationServiceRequestBuilder) Request() *DataClassificationServiceRequest {
+ return &DataClassificationServiceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DataClassificationServiceRequest is request for DataClassificationService
+type DataClassificationServiceRequest struct{ BaseRequest }
+
+// Get performs GET request for DataClassificationService
+func (r *DataClassificationServiceRequest) Get(ctx context.Context) (resObj *DataClassificationService, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DataClassificationService
+func (r *DataClassificationServiceRequest) Update(ctx context.Context, reqObj *DataClassificationService) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DataClassificationService
+func (r *DataClassificationServiceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ClassifyFile returns request builder for FileClassificationRequestObject collection
+func (b *DataClassificationServiceRequestBuilder) ClassifyFile() *DataClassificationServiceClassifyFileCollectionRequestBuilder {
+ bb := &DataClassificationServiceClassifyFileCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/classifyFile"
+ return bb
+}
+
+// DataClassificationServiceClassifyFileCollectionRequestBuilder is request builder for FileClassificationRequestObject collection
+type DataClassificationServiceClassifyFileCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for FileClassificationRequestObject collection
+func (b *DataClassificationServiceClassifyFileCollectionRequestBuilder) Request() *DataClassificationServiceClassifyFileCollectionRequest {
+ return &DataClassificationServiceClassifyFileCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for FileClassificationRequestObject item
+func (b *DataClassificationServiceClassifyFileCollectionRequestBuilder) ID(id string) *FileClassificationRequestObjectRequestBuilder {
+ bb := &FileClassificationRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceClassifyFileCollectionRequest is request for FileClassificationRequestObject collection
+type DataClassificationServiceClassifyFileCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for FileClassificationRequestObject collection
+func (r *DataClassificationServiceClassifyFileCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]FileClassificationRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []FileClassificationRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []FileClassificationRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for FileClassificationRequestObject collection
+func (r *DataClassificationServiceClassifyFileCollectionRequest) Get(ctx context.Context) ([]FileClassificationRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for FileClassificationRequestObject collection
+func (r *DataClassificationServiceClassifyFileCollectionRequest) Add(ctx context.Context, reqObj *FileClassificationRequestObject) (resObj *FileClassificationRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ClassifyFileJobs returns request builder for JobResponseBase collection
+func (b *DataClassificationServiceRequestBuilder) ClassifyFileJobs() *DataClassificationServiceClassifyFileJobsCollectionRequestBuilder {
+ bb := &DataClassificationServiceClassifyFileJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/classifyFileJobs"
+ return bb
+}
+
+// DataClassificationServiceClassifyFileJobsCollectionRequestBuilder is request builder for JobResponseBase collection
+type DataClassificationServiceClassifyFileJobsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for JobResponseBase collection
+func (b *DataClassificationServiceClassifyFileJobsCollectionRequestBuilder) Request() *DataClassificationServiceClassifyFileJobsCollectionRequest {
+ return &DataClassificationServiceClassifyFileJobsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for JobResponseBase item
+func (b *DataClassificationServiceClassifyFileJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder {
+ bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceClassifyFileJobsCollectionRequest is request for JobResponseBase collection
+type DataClassificationServiceClassifyFileJobsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for JobResponseBase collection
+func (r *DataClassificationServiceClassifyFileJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]JobResponseBase, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []JobResponseBase
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []JobResponseBase
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceClassifyFileJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for JobResponseBase collection
+func (r *DataClassificationServiceClassifyFileJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ClassifyText returns request builder for TextClassificationRequestObject collection
+func (b *DataClassificationServiceRequestBuilder) ClassifyText() *DataClassificationServiceClassifyTextCollectionRequestBuilder {
+ bb := &DataClassificationServiceClassifyTextCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/classifyText"
+ return bb
+}
+
+// DataClassificationServiceClassifyTextCollectionRequestBuilder is request builder for TextClassificationRequestObject collection
+type DataClassificationServiceClassifyTextCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TextClassificationRequestObject collection
+func (b *DataClassificationServiceClassifyTextCollectionRequestBuilder) Request() *DataClassificationServiceClassifyTextCollectionRequest {
+ return &DataClassificationServiceClassifyTextCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TextClassificationRequestObject item
+func (b *DataClassificationServiceClassifyTextCollectionRequestBuilder) ID(id string) *TextClassificationRequestObjectRequestBuilder {
+ bb := &TextClassificationRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceClassifyTextCollectionRequest is request for TextClassificationRequestObject collection
+type DataClassificationServiceClassifyTextCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TextClassificationRequestObject collection
+func (r *DataClassificationServiceClassifyTextCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TextClassificationRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TextClassificationRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TextClassificationRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TextClassificationRequestObject collection
+func (r *DataClassificationServiceClassifyTextCollectionRequest) Get(ctx context.Context) ([]TextClassificationRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TextClassificationRequestObject collection
+func (r *DataClassificationServiceClassifyTextCollectionRequest) Add(ctx context.Context, reqObj *TextClassificationRequestObject) (resObj *TextClassificationRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ClassifyTextJobs returns request builder for JobResponseBase collection
+func (b *DataClassificationServiceRequestBuilder) ClassifyTextJobs() *DataClassificationServiceClassifyTextJobsCollectionRequestBuilder {
+ bb := &DataClassificationServiceClassifyTextJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/classifyTextJobs"
+ return bb
+}
+
+// DataClassificationServiceClassifyTextJobsCollectionRequestBuilder is request builder for JobResponseBase collection
+type DataClassificationServiceClassifyTextJobsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for JobResponseBase collection
+func (b *DataClassificationServiceClassifyTextJobsCollectionRequestBuilder) Request() *DataClassificationServiceClassifyTextJobsCollectionRequest {
+ return &DataClassificationServiceClassifyTextJobsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for JobResponseBase item
+func (b *DataClassificationServiceClassifyTextJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder {
+ bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceClassifyTextJobsCollectionRequest is request for JobResponseBase collection
+type DataClassificationServiceClassifyTextJobsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for JobResponseBase collection
+func (r *DataClassificationServiceClassifyTextJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]JobResponseBase, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []JobResponseBase
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []JobResponseBase
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceClassifyTextJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for JobResponseBase collection
+func (r *DataClassificationServiceClassifyTextJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// EvaluateDlpPoliciesJobs returns request builder for JobResponseBase collection
+func (b *DataClassificationServiceRequestBuilder) EvaluateDlpPoliciesJobs() *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder {
+ bb := &DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/evaluateDlpPoliciesJobs"
+ return bb
+}
+
+// DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder is request builder for JobResponseBase collection
+type DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for JobResponseBase collection
+func (b *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder) Request() *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest {
+ return &DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for JobResponseBase item
+func (b *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder {
+ bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest is request for JobResponseBase collection
+type DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for JobResponseBase collection
+func (r *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]JobResponseBase, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []JobResponseBase
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []JobResponseBase
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for JobResponseBase collection
+func (r *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// EvaluateLabelJobs returns request builder for JobResponseBase collection
+func (b *DataClassificationServiceRequestBuilder) EvaluateLabelJobs() *DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder {
+ bb := &DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/evaluateLabelJobs"
+ return bb
+}
+
+// DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder is request builder for JobResponseBase collection
+type DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for JobResponseBase collection
+func (b *DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder) Request() *DataClassificationServiceEvaluateLabelJobsCollectionRequest {
+ return &DataClassificationServiceEvaluateLabelJobsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for JobResponseBase item
+func (b *DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder {
+ bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceEvaluateLabelJobsCollectionRequest is request for JobResponseBase collection
+type DataClassificationServiceEvaluateLabelJobsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for JobResponseBase collection
+func (r *DataClassificationServiceEvaluateLabelJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]JobResponseBase, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []JobResponseBase
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []JobResponseBase
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceEvaluateLabelJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for JobResponseBase collection
+func (r *DataClassificationServiceEvaluateLabelJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ExactMatchDataStores returns request builder for ExactMatchDataStore collection
+func (b *DataClassificationServiceRequestBuilder) ExactMatchDataStores() *DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder {
+ bb := &DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/exactMatchDataStores"
+ return bb
+}
+
+// DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder is request builder for ExactMatchDataStore collection
+type DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ExactMatchDataStore collection
+func (b *DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder) Request() *DataClassificationServiceExactMatchDataStoresCollectionRequest {
+ return &DataClassificationServiceExactMatchDataStoresCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ExactMatchDataStore item
+func (b *DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder) ID(id string) *ExactMatchDataStoreRequestBuilder {
+ bb := &ExactMatchDataStoreRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceExactMatchDataStoresCollectionRequest is request for ExactMatchDataStore collection
+type DataClassificationServiceExactMatchDataStoresCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ExactMatchDataStore collection
+func (r *DataClassificationServiceExactMatchDataStoresCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ExactMatchDataStore, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ExactMatchDataStore
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ExactMatchDataStore
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ExactMatchDataStore collection
+func (r *DataClassificationServiceExactMatchDataStoresCollectionRequest) Get(ctx context.Context) ([]ExactMatchDataStore, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ExactMatchDataStore collection
+func (r *DataClassificationServiceExactMatchDataStoresCollectionRequest) Add(ctx context.Context, reqObj *ExactMatchDataStore) (resObj *ExactMatchDataStore, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ExactMatchUploadAgents returns request builder for ExactMatchUploadAgent collection
+func (b *DataClassificationServiceRequestBuilder) ExactMatchUploadAgents() *DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder {
+ bb := &DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/exactMatchUploadAgents"
+ return bb
+}
+
+// DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder is request builder for ExactMatchUploadAgent collection
+type DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ExactMatchUploadAgent collection
+func (b *DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder) Request() *DataClassificationServiceExactMatchUploadAgentsCollectionRequest {
+ return &DataClassificationServiceExactMatchUploadAgentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ExactMatchUploadAgent item
+func (b *DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder) ID(id string) *ExactMatchUploadAgentRequestBuilder {
+ bb := &ExactMatchUploadAgentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceExactMatchUploadAgentsCollectionRequest is request for ExactMatchUploadAgent collection
+type DataClassificationServiceExactMatchUploadAgentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ExactMatchUploadAgent collection
+func (r *DataClassificationServiceExactMatchUploadAgentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ExactMatchUploadAgent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ExactMatchUploadAgent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ExactMatchUploadAgent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ExactMatchUploadAgent collection
+func (r *DataClassificationServiceExactMatchUploadAgentsCollectionRequest) Get(ctx context.Context) ([]ExactMatchUploadAgent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ExactMatchUploadAgent collection
+func (r *DataClassificationServiceExactMatchUploadAgentsCollectionRequest) Add(ctx context.Context, reqObj *ExactMatchUploadAgent) (resObj *ExactMatchUploadAgent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Jobs returns request builder for JobResponseBase collection
+func (b *DataClassificationServiceRequestBuilder) Jobs() *DataClassificationServiceJobsCollectionRequestBuilder {
+ bb := &DataClassificationServiceJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/jobs"
+ return bb
+}
+
+// DataClassificationServiceJobsCollectionRequestBuilder is request builder for JobResponseBase collection
+type DataClassificationServiceJobsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for JobResponseBase collection
+func (b *DataClassificationServiceJobsCollectionRequestBuilder) Request() *DataClassificationServiceJobsCollectionRequest {
+ return &DataClassificationServiceJobsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for JobResponseBase item
+func (b *DataClassificationServiceJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder {
+ bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceJobsCollectionRequest is request for JobResponseBase collection
+type DataClassificationServiceJobsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for JobResponseBase collection
+func (r *DataClassificationServiceJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]JobResponseBase, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []JobResponseBase
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []JobResponseBase
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for JobResponseBase collection
+func (r *DataClassificationServiceJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// LabelsAndPoliciesEvaluationJobs returns request builder for JobResponseBase collection
+func (b *DataClassificationServiceRequestBuilder) LabelsAndPoliciesEvaluationJobs() *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder {
+ bb := &DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/labelsAndPoliciesEvaluationJobs"
+ return bb
+}
+
+// DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder is request builder for JobResponseBase collection
+type DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for JobResponseBase collection
+func (b *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder) Request() *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest {
+ return &DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for JobResponseBase item
+func (b *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder {
+ bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest is request for JobResponseBase collection
+type DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for JobResponseBase collection
+func (r *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]JobResponseBase, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []JobResponseBase
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []JobResponseBase
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for JobResponseBase collection
+func (r *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SensitiveTypes returns request builder for SensitiveType collection
+func (b *DataClassificationServiceRequestBuilder) SensitiveTypes() *DataClassificationServiceSensitiveTypesCollectionRequestBuilder {
+ bb := &DataClassificationServiceSensitiveTypesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sensitiveTypes"
+ return bb
+}
+
+// DataClassificationServiceSensitiveTypesCollectionRequestBuilder is request builder for SensitiveType collection
+type DataClassificationServiceSensitiveTypesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SensitiveType collection
+func (b *DataClassificationServiceSensitiveTypesCollectionRequestBuilder) Request() *DataClassificationServiceSensitiveTypesCollectionRequest {
+ return &DataClassificationServiceSensitiveTypesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SensitiveType item
+func (b *DataClassificationServiceSensitiveTypesCollectionRequestBuilder) ID(id string) *SensitiveTypeRequestBuilder {
+ bb := &SensitiveTypeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceSensitiveTypesCollectionRequest is request for SensitiveType collection
+type DataClassificationServiceSensitiveTypesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SensitiveType collection
+func (r *DataClassificationServiceSensitiveTypesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SensitiveType, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SensitiveType
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SensitiveType
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SensitiveType collection
+func (r *DataClassificationServiceSensitiveTypesCollectionRequest) Get(ctx context.Context) ([]SensitiveType, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SensitiveType collection
+func (r *DataClassificationServiceSensitiveTypesCollectionRequest) Add(ctx context.Context, reqObj *SensitiveType) (resObj *SensitiveType, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SensitivityLabels returns request builder for SensitivityLabel collection
+func (b *DataClassificationServiceRequestBuilder) SensitivityLabels() *DataClassificationServiceSensitivityLabelsCollectionRequestBuilder {
+ bb := &DataClassificationServiceSensitivityLabelsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sensitivityLabels"
+ return bb
+}
+
+// DataClassificationServiceSensitivityLabelsCollectionRequestBuilder is request builder for SensitivityLabel collection
+type DataClassificationServiceSensitivityLabelsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SensitivityLabel collection
+func (b *DataClassificationServiceSensitivityLabelsCollectionRequestBuilder) Request() *DataClassificationServiceSensitivityLabelsCollectionRequest {
+ return &DataClassificationServiceSensitivityLabelsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SensitivityLabel item
+func (b *DataClassificationServiceSensitivityLabelsCollectionRequestBuilder) ID(id string) *SensitivityLabelRequestBuilder {
+ bb := &SensitivityLabelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceSensitivityLabelsCollectionRequest is request for SensitivityLabel collection
+type DataClassificationServiceSensitivityLabelsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SensitivityLabel collection
+func (r *DataClassificationServiceSensitivityLabelsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SensitivityLabel, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SensitivityLabel
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SensitivityLabel
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SensitivityLabel collection
+func (r *DataClassificationServiceSensitivityLabelsCollectionRequest) Get(ctx context.Context) ([]SensitivityLabel, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SensitivityLabel collection
+func (r *DataClassificationServiceSensitivityLabelsCollectionRequest) Add(ctx context.Context, reqObj *SensitivityLabel) (resObj *SensitivityLabel, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DataLossPreventionPolicyAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DataLossPreventionPolicyAction.go
new file mode 100644
index 00000000..3320b921
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DataLossPreventionPolicyAction.go
@@ -0,0 +1,42 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DataLossPreventionPolicyCollectionEvaluateRequestParameter undocumented
+type DataLossPreventionPolicyCollectionEvaluateRequestParameter struct {
+ // Target undocumented
+ Target *string `json:"target,omitempty"`
+ // EvaluationInput undocumented
+ EvaluationInput *DlpEvaluationInput `json:"evaluationInput,omitempty"`
+ // NotificationInfo undocumented
+ NotificationInfo *DlpNotification `json:"notificationInfo,omitempty"`
+}
+
+//
+type DataLossPreventionPolicyCollectionEvaluateRequestBuilder struct{ BaseRequestBuilder }
+
+// Evaluate action undocumented
+func (b *InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder) Evaluate(reqObj *DataLossPreventionPolicyCollectionEvaluateRequestParameter) *DataLossPreventionPolicyCollectionEvaluateRequestBuilder {
+ bb := &DataLossPreventionPolicyCollectionEvaluateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DataLossPreventionPolicyCollectionEvaluateRequest struct{ BaseRequest }
+
+//
+func (b *DataLossPreventionPolicyCollectionEvaluateRequestBuilder) Request() *DataLossPreventionPolicyCollectionEvaluateRequest {
+ return &DataLossPreventionPolicyCollectionEvaluateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DataLossPreventionPolicyCollectionEvaluateRequest) Post(ctx context.Context) (resObj *DlpEvaluatePoliciesJobResponse, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DataLossPreventionPolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DataLossPreventionPolicyModel.go
new file mode 100644
index 00000000..848c095d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DataLossPreventionPolicyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DataLossPreventionPolicy undocumented
+type DataLossPreventionPolicy struct {
+ // Entity is the base model of DataLossPreventionPolicy
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DataLossPreventionPolicyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DataLossPreventionPolicyRequest.go
new file mode 100644
index 00000000..65db4284
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DataLossPreventionPolicyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DataLossPreventionPolicyRequestBuilder is request builder for DataLossPreventionPolicy
+type DataLossPreventionPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DataLossPreventionPolicyRequest
+func (b *DataLossPreventionPolicyRequestBuilder) Request() *DataLossPreventionPolicyRequest {
+ return &DataLossPreventionPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DataLossPreventionPolicyRequest is request for DataLossPreventionPolicy
+type DataLossPreventionPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for DataLossPreventionPolicy
+func (r *DataLossPreventionPolicyRequest) Get(ctx context.Context) (resObj *DataLossPreventionPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DataLossPreventionPolicy
+func (r *DataLossPreventionPolicyRequest) Update(ctx context.Context, reqObj *DataLossPreventionPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DataLossPreventionPolicy
+func (r *DataLossPreventionPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DataPolicyOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DataPolicyOperationModel.go
new file mode 100644
index 00000000..1cb4477e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DataPolicyOperationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DataPolicyOperation undocumented
+type DataPolicyOperation struct {
+ // Entity is the base model of DataPolicyOperation
+ Entity
+ // CompletedDateTime undocumented
+ CompletedDateTime *time.Time `json:"completedDateTime,omitempty"`
+ // Status undocumented
+ Status *DataPolicyOperationStatus `json:"status,omitempty"`
+ // StorageLocation undocumented
+ StorageLocation *string `json:"storageLocation,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // SubmittedDateTime undocumented
+ SubmittedDateTime *time.Time `json:"submittedDateTime,omitempty"`
+ // Progress undocumented
+ Progress *float64 `json:"progress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DataPolicyOperationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DataPolicyOperationRequest.go
new file mode 100644
index 00000000..5e443ca0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DataPolicyOperationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DataPolicyOperationRequestBuilder is request builder for DataPolicyOperation
+type DataPolicyOperationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DataPolicyOperationRequest
+func (b *DataPolicyOperationRequestBuilder) Request() *DataPolicyOperationRequest {
+ return &DataPolicyOperationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DataPolicyOperationRequest is request for DataPolicyOperation
+type DataPolicyOperationRequest struct{ BaseRequest }
+
+// Get performs GET request for DataPolicyOperation
+func (r *DataPolicyOperationRequest) Get(ctx context.Context) (resObj *DataPolicyOperation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DataPolicyOperation
+func (r *DataPolicyOperationRequest) Update(ctx context.Context, reqObj *DataPolicyOperation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DataPolicyOperation
+func (r *DataPolicyOperationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DataPolicyOperationStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DataPolicyOperationStatusEnum.go
new file mode 100644
index 00000000..9dd1bfb6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DataPolicyOperationStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DataPolicyOperationStatus undocumented
+type DataPolicyOperationStatus int
+
+const (
+ // DataPolicyOperationStatusVNotStarted undocumented
+ DataPolicyOperationStatusVNotStarted DataPolicyOperationStatus = 0
+ // DataPolicyOperationStatusVRunning undocumented
+ DataPolicyOperationStatusVRunning DataPolicyOperationStatus = 1
+ // DataPolicyOperationStatusVComplete undocumented
+ DataPolicyOperationStatusVComplete DataPolicyOperationStatus = 2
+ // DataPolicyOperationStatusVFailed undocumented
+ DataPolicyOperationStatusVFailed DataPolicyOperationStatus = 3
+ // DataPolicyOperationStatusVUnknownFutureValue undocumented
+ DataPolicyOperationStatusVUnknownFutureValue DataPolicyOperationStatus = 4
+)
+
+// DataPolicyOperationStatusPNotStarted returns a pointer to DataPolicyOperationStatusVNotStarted
+func DataPolicyOperationStatusPNotStarted() *DataPolicyOperationStatus {
+ v := DataPolicyOperationStatusVNotStarted
+ return &v
+}
+
+// DataPolicyOperationStatusPRunning returns a pointer to DataPolicyOperationStatusVRunning
+func DataPolicyOperationStatusPRunning() *DataPolicyOperationStatus {
+ v := DataPolicyOperationStatusVRunning
+ return &v
+}
+
+// DataPolicyOperationStatusPComplete returns a pointer to DataPolicyOperationStatusVComplete
+func DataPolicyOperationStatusPComplete() *DataPolicyOperationStatus {
+ v := DataPolicyOperationStatusVComplete
+ return &v
+}
+
+// DataPolicyOperationStatusPFailed returns a pointer to DataPolicyOperationStatusVFailed
+func DataPolicyOperationStatusPFailed() *DataPolicyOperationStatus {
+ v := DataPolicyOperationStatusVFailed
+ return &v
+}
+
+// DataPolicyOperationStatusPUnknownFutureValue returns a pointer to DataPolicyOperationStatusVUnknownFutureValue
+func DataPolicyOperationStatusPUnknownFutureValue() *DataPolicyOperationStatus {
+ v := DataPolicyOperationStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DataSharingConsentAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DataSharingConsentAction.go
new file mode 100644
index 00000000..eeb2d520
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DataSharingConsentAction.go
@@ -0,0 +1,36 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DataSharingConsentConsentToDataSharingRequestParameter undocumented
+type DataSharingConsentConsentToDataSharingRequestParameter struct {
+}
+
+//
+type DataSharingConsentConsentToDataSharingRequestBuilder struct{ BaseRequestBuilder }
+
+// ConsentToDataSharing action undocumented
+func (b *DataSharingConsentRequestBuilder) ConsentToDataSharing(reqObj *DataSharingConsentConsentToDataSharingRequestParameter) *DataSharingConsentConsentToDataSharingRequestBuilder {
+ bb := &DataSharingConsentConsentToDataSharingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/consentToDataSharing"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DataSharingConsentConsentToDataSharingRequest struct{ BaseRequest }
+
+//
+func (b *DataSharingConsentConsentToDataSharingRequestBuilder) Request() *DataSharingConsentConsentToDataSharingRequest {
+ return &DataSharingConsentConsentToDataSharingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DataSharingConsentConsentToDataSharingRequest) Post(ctx context.Context) (resObj *DataSharingConsent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DataSharingConsentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DataSharingConsentModel.go
new file mode 100644
index 00000000..323f6d03
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DataSharingConsentModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DataSharingConsent Data sharing consent information.
+type DataSharingConsent struct {
+ // Entity is the base model of DataSharingConsent
+ Entity
+ // ServiceDisplayName The display name of the service work flow
+ ServiceDisplayName *string `json:"serviceDisplayName,omitempty"`
+ // TermsURL The TermsUrl for the data sharing consent
+ TermsURL *string `json:"termsUrl,omitempty"`
+ // Granted The granted state for the data sharing consent
+ Granted *bool `json:"granted,omitempty"`
+ // GrantDateTime The time consent was granted for this account
+ GrantDateTime *time.Time `json:"grantDateTime,omitempty"`
+ // GrantedByUpn The Upn of the user that granted consent for this account
+ GrantedByUpn *string `json:"grantedByUpn,omitempty"`
+ // GrantedByUserID The UserId of the user that granted consent for this account
+ GrantedByUserID *string `json:"grantedByUserId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DataSharingConsentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DataSharingConsentRequest.go
new file mode 100644
index 00000000..2f617003
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DataSharingConsentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DataSharingConsentRequestBuilder is request builder for DataSharingConsent
+type DataSharingConsentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DataSharingConsentRequest
+func (b *DataSharingConsentRequestBuilder) Request() *DataSharingConsentRequest {
+ return &DataSharingConsentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DataSharingConsentRequest is request for DataSharingConsent
+type DataSharingConsentRequest struct{ BaseRequest }
+
+// Get performs GET request for DataSharingConsent
+func (r *DataSharingConsentRequest) Get(ctx context.Context) (resObj *DataSharingConsent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DataSharingConsent
+func (r *DataSharingConsentRequest) Update(ctx context.Context, reqObj *DataSharingConsent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DataSharingConsent
+func (r *DataSharingConsentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DataStoreFieldModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DataStoreFieldModel.go
new file mode 100644
index 00000000..2d7326d4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DataStoreFieldModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DataStoreField undocumented
+type DataStoreField struct {
+ // Object is the base model of DataStoreField
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Unique undocumented
+ Unique *bool `json:"unique,omitempty"`
+ // Searchable undocumented
+ Searchable *bool `json:"searchable,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DateTimeColumnModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DateTimeColumnModel.go
new file mode 100644
index 00000000..97e60cfa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DateTimeColumnModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DateTimeColumn undocumented
+type DateTimeColumn struct {
+ // Object is the base model of DateTimeColumn
+ Object
+ // DisplayAs undocumented
+ DisplayAs *string `json:"displayAs,omitempty"`
+ // Format undocumented
+ Format *string `json:"format,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DateTimeTimeZoneModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DateTimeTimeZoneModel.go
new file mode 100644
index 00000000..84e890f5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DateTimeTimeZoneModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DateTimeTimeZone undocumented
+type DateTimeTimeZone struct {
+ // Object is the base model of DateTimeTimeZone
+ Object
+ // DateTime undocumented
+ DateTime *string `json:"dateTime,omitempty"`
+ // TimeZone undocumented
+ TimeZone *string `json:"timeZone,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DateTimeTimeZoneTypeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DateTimeTimeZoneTypeModel.go
new file mode 100644
index 00000000..5219d147
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DateTimeTimeZoneTypeModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DateTimeTimeZoneType undocumented
+type DateTimeTimeZoneType struct {
+ // Object is the base model of DateTimeTimeZoneType
+ Object
+ // DateTime undocumented
+ DateTime *string `json:"dateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DayOfWeekEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DayOfWeekEnum.go
new file mode 100644
index 00000000..310f11c2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DayOfWeekEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DayOfWeek undocumented
+type DayOfWeek int
+
+const (
+ // DayOfWeekVSunday undocumented
+ DayOfWeekVSunday DayOfWeek = 0
+ // DayOfWeekVMonday undocumented
+ DayOfWeekVMonday DayOfWeek = 1
+ // DayOfWeekVTuesday undocumented
+ DayOfWeekVTuesday DayOfWeek = 2
+ // DayOfWeekVWednesday undocumented
+ DayOfWeekVWednesday DayOfWeek = 3
+ // DayOfWeekVThursday undocumented
+ DayOfWeekVThursday DayOfWeek = 4
+ // DayOfWeekVFriday undocumented
+ DayOfWeekVFriday DayOfWeek = 5
+ // DayOfWeekVSaturday undocumented
+ DayOfWeekVSaturday DayOfWeek = 6
+)
+
+// DayOfWeekPSunday returns a pointer to DayOfWeekVSunday
+func DayOfWeekPSunday() *DayOfWeek {
+ v := DayOfWeekVSunday
+ return &v
+}
+
+// DayOfWeekPMonday returns a pointer to DayOfWeekVMonday
+func DayOfWeekPMonday() *DayOfWeek {
+ v := DayOfWeekVMonday
+ return &v
+}
+
+// DayOfWeekPTuesday returns a pointer to DayOfWeekVTuesday
+func DayOfWeekPTuesday() *DayOfWeek {
+ v := DayOfWeekVTuesday
+ return &v
+}
+
+// DayOfWeekPWednesday returns a pointer to DayOfWeekVWednesday
+func DayOfWeekPWednesday() *DayOfWeek {
+ v := DayOfWeekVWednesday
+ return &v
+}
+
+// DayOfWeekPThursday returns a pointer to DayOfWeekVThursday
+func DayOfWeekPThursday() *DayOfWeek {
+ v := DayOfWeekVThursday
+ return &v
+}
+
+// DayOfWeekPFriday returns a pointer to DayOfWeekVFriday
+func DayOfWeekPFriday() *DayOfWeek {
+ v := DayOfWeekVFriday
+ return &v
+}
+
+// DayOfWeekPSaturday returns a pointer to DayOfWeekVSaturday
+func DayOfWeekPSaturday() *DayOfWeek {
+ v := DayOfWeekVSaturday
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DaylightTimeZoneOffsetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DaylightTimeZoneOffsetModel.go
new file mode 100644
index 00000000..48cc72c9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DaylightTimeZoneOffsetModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DaylightTimeZoneOffset undocumented
+type DaylightTimeZoneOffset struct {
+ // StandardTimeZoneOffset is the base model of DaylightTimeZoneOffset
+ StandardTimeZoneOffset
+ // DaylightBias undocumented
+ DaylightBias *int `json:"daylightBias,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DefaultColumnValueModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DefaultColumnValueModel.go
new file mode 100644
index 00000000..b6771b48
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DefaultColumnValueModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefaultColumnValue undocumented
+type DefaultColumnValue struct {
+ // Object is the base model of DefaultColumnValue
+ Object
+ // Formula undocumented
+ Formula *string `json:"formula,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DefaultDeviceCompliancePolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DefaultDeviceCompliancePolicyModel.go
new file mode 100644
index 00000000..6959f504
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DefaultDeviceCompliancePolicyModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefaultDeviceCompliancePolicy Default device compliance policy rules that are enforced account wide.
+type DefaultDeviceCompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of DefaultDeviceCompliancePolicy
+ DeviceCompliancePolicy
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DefaultManagedAppProtectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DefaultManagedAppProtectionModel.go
new file mode 100644
index 00000000..34458e68
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DefaultManagedAppProtectionModel.go
@@ -0,0 +1,77 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefaultManagedAppProtection Policy used to configure detailed management settings for a specified set of apps for all users not targeted by a TargetedManagedAppProtection Policy
+type DefaultManagedAppProtection struct {
+ // ManagedAppProtection is the base model of DefaultManagedAppProtection
+ ManagedAppProtection
+ // AppDataEncryptionType Type of encryption which should be used for data in a managed app. (iOS Only)
+ AppDataEncryptionType *ManagedAppDataEncryptionType `json:"appDataEncryptionType,omitempty"`
+ // ScreenCaptureBlocked Indicates whether screen capture is blocked. (Android only)
+ ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"`
+ // EncryptAppData Indicates whether managed-app data should be encrypted. (Android only)
+ EncryptAppData *bool `json:"encryptAppData,omitempty"`
+ // DisableAppEncryptionIfDeviceEncryptionIsEnabled When this setting is enabled, app level encryption is disabled if device level encryption is enabled. (Android only)
+ DisableAppEncryptionIfDeviceEncryptionIsEnabled *bool `json:"disableAppEncryptionIfDeviceEncryptionIsEnabled,omitempty"`
+ // MinimumRequiredSdkVersion Versions less than the specified version will block the managed app from accessing company data. (iOS Only)
+ MinimumRequiredSdkVersion *string `json:"minimumRequiredSdkVersion,omitempty"`
+ // CustomSettings A set of string key and string value pairs to be sent to the affected users, unalterned by this service
+ CustomSettings []KeyValuePair `json:"customSettings,omitempty"`
+ // DeployedAppCount Count of apps to which the current policy is deployed.
+ DeployedAppCount *int `json:"deployedAppCount,omitempty"`
+ // MinimumRequiredPatchVersion Define the oldest required Android security patch level a user can have to gain secure access to the app. (Android only)
+ MinimumRequiredPatchVersion *string `json:"minimumRequiredPatchVersion,omitempty"`
+ // MinimumWarningPatchVersion Define the oldest recommended Android security patch level a user can have for secure access to the app. (Android only)
+ MinimumWarningPatchVersion *string `json:"minimumWarningPatchVersion,omitempty"`
+ // ExemptedAppProtocols iOS Apps in this list will be exempt from the policy and will be able to receive data from managed apps. (iOS Only)
+ ExemptedAppProtocols []KeyValuePair `json:"exemptedAppProtocols,omitempty"`
+ // ExemptedAppPackages Android App packages in this list will be exempt from the policy and will be able to receive data from managed apps. (Android only)
+ ExemptedAppPackages []KeyValuePair `json:"exemptedAppPackages,omitempty"`
+ // FaceIDBlocked Indicates whether use of the FaceID is allowed in place of a pin if PinRequired is set to True. (iOS Only)
+ FaceIDBlocked *bool `json:"faceIdBlocked,omitempty"`
+ // MinimumWipeSdkVersion Versions less than the specified version will block the managed app from accessing company data.
+ MinimumWipeSdkVersion *string `json:"minimumWipeSdkVersion,omitempty"`
+ // MinimumWipePatchVersion Android security patch level less than or equal to the specified value will wipe the managed app and the associated company data. (Android only)
+ MinimumWipePatchVersion *string `json:"minimumWipePatchVersion,omitempty"`
+ // AllowedIOSDeviceModels Semicolon seperated list of device models allowed, as a string, for the managed app to work. (iOS Only)
+ AllowedIOSDeviceModels *string `json:"allowedIosDeviceModels,omitempty"`
+ // AppActionIfIOSDeviceModelNotAllowed Defines a managed app behavior, either block or wipe, if the specified device model is not allowed. (iOS Only)
+ AppActionIfIOSDeviceModelNotAllowed *ManagedAppRemediationAction `json:"appActionIfIosDeviceModelNotAllowed,omitempty"`
+ // AllowedAndroidDeviceManufacturers Semicolon seperated list of device manufacturers allowed, as a string, for the managed app to work. (Android only)
+ AllowedAndroidDeviceManufacturers *string `json:"allowedAndroidDeviceManufacturers,omitempty"`
+ // AppActionIfAndroidDeviceManufacturerNotAllowed Defines a managed app behavior, either block or wipe, if the specified device manufacturer is not allowed. (Android only)
+ AppActionIfAndroidDeviceManufacturerNotAllowed *ManagedAppRemediationAction `json:"appActionIfAndroidDeviceManufacturerNotAllowed,omitempty"`
+ // ThirdPartyKeyboardsBlocked Defines if third party keyboards are allowed while accessing a managed app. (iOS Only)
+ ThirdPartyKeyboardsBlocked *bool `json:"thirdPartyKeyboardsBlocked,omitempty"`
+ // FilterOpenInToOnlyManagedApps Defines if open-in operation is supported from the managed app to the filesharing locations selected. This setting only applies when AllowedOutboundDataTransferDestinations is set to ManagedApps and DisableProtectionOfManagedOutboundOpenInData is set to False. (iOS Only)
+ FilterOpenInToOnlyManagedApps *bool `json:"filterOpenInToOnlyManagedApps,omitempty"`
+ // DisableProtectionOfManagedOutboundOpenInData Disable protection of data transferred to other apps through IOS OpenIn option. This setting is only allowed to be True when AllowedOutboundDataTransferDestinations is set to ManagedApps. (iOS Only)
+ DisableProtectionOfManagedOutboundOpenInData *bool `json:"disableProtectionOfManagedOutboundOpenInData,omitempty"`
+ // ProtectInboundDataFromUnknownSources Protect incoming data from unknown source. This setting is only allowed to be True when AllowedInboundDataTransferSources is set to AllApps. (iOS Only)
+ ProtectInboundDataFromUnknownSources *bool `json:"protectInboundDataFromUnknownSources,omitempty"`
+ // RequiredAndroidSafetyNetDeviceAttestationType Defines the Android SafetyNet Device Attestation requirement for a managed app to work.
+ RequiredAndroidSafetyNetDeviceAttestationType *AndroidManagedAppSafetyNetDeviceAttestationType `json:"requiredAndroidSafetyNetDeviceAttestationType,omitempty"`
+ // AppActionIfAndroidSafetyNetDeviceAttestationFailed Defines a managed app behavior, either warn or block, if the specified Android SafetyNet Attestation requirment fails.
+ AppActionIfAndroidSafetyNetDeviceAttestationFailed *ManagedAppRemediationAction `json:"appActionIfAndroidSafetyNetDeviceAttestationFailed,omitempty"`
+ // RequiredAndroidSafetyNetAppsVerificationType Defines the Android SafetyNet Apps Verification requirement for a managed app to work.
+ RequiredAndroidSafetyNetAppsVerificationType *AndroidManagedAppSafetyNetAppsVerificationType `json:"requiredAndroidSafetyNetAppsVerificationType,omitempty"`
+ // AppActionIfAndroidSafetyNetAppsVerificationFailed Defines a managed app behavior, either warn or block, if the specified Android App Verification requirment fails.
+ AppActionIfAndroidSafetyNetAppsVerificationFailed *ManagedAppRemediationAction `json:"appActionIfAndroidSafetyNetAppsVerificationFailed,omitempty"`
+ // CustomBrowserProtocol A custom browser protocol to open weblink on iOS. (iOS only)
+ CustomBrowserProtocol *string `json:"customBrowserProtocol,omitempty"`
+ // CustomBrowserPackageID Unique identifier of a custom browser to open weblink on Android. (Android only)
+ CustomBrowserPackageID *string `json:"customBrowserPackageId,omitempty"`
+ // CustomBrowserDisplayName Friendly name of the preferred custom browser to open weblink on Android. (Android only)
+ CustomBrowserDisplayName *string `json:"customBrowserDisplayName,omitempty"`
+ // MinimumRequiredCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or app access will be blocked
+ MinimumRequiredCompanyPortalVersion *string `json:"minimumRequiredCompanyPortalVersion,omitempty"`
+ // MinimumWarningCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or the user will receive a warning
+ MinimumWarningCompanyPortalVersion *string `json:"minimumWarningCompanyPortalVersion,omitempty"`
+ // MinimumWipeCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or the company data on the app will be wiped
+ MinimumWipeCompanyPortalVersion *string `json:"minimumWipeCompanyPortalVersion,omitempty"`
+ // Apps undocumented
+ Apps []ManagedMobileApp `json:"apps,omitempty"`
+ // DeploymentSummary undocumented
+ DeploymentSummary *ManagedAppPolicyDeploymentSummary `json:"deploymentSummary,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DefaultManagedAppProtectionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DefaultManagedAppProtectionRequest.go
new file mode 100644
index 00000000..850b6fbe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DefaultManagedAppProtectionRequest.go
@@ -0,0 +1,146 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DefaultManagedAppProtectionRequestBuilder is request builder for DefaultManagedAppProtection
+type DefaultManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DefaultManagedAppProtectionRequest
+func (b *DefaultManagedAppProtectionRequestBuilder) Request() *DefaultManagedAppProtectionRequest {
+ return &DefaultManagedAppProtectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DefaultManagedAppProtectionRequest is request for DefaultManagedAppProtection
+type DefaultManagedAppProtectionRequest struct{ BaseRequest }
+
+// Get performs GET request for DefaultManagedAppProtection
+func (r *DefaultManagedAppProtectionRequest) Get(ctx context.Context) (resObj *DefaultManagedAppProtection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DefaultManagedAppProtection
+func (r *DefaultManagedAppProtectionRequest) Update(ctx context.Context, reqObj *DefaultManagedAppProtection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DefaultManagedAppProtection
+func (r *DefaultManagedAppProtectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Apps returns request builder for ManagedMobileApp collection
+func (b *DefaultManagedAppProtectionRequestBuilder) Apps() *DefaultManagedAppProtectionAppsCollectionRequestBuilder {
+ bb := &DefaultManagedAppProtectionAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/apps"
+ return bb
+}
+
+// DefaultManagedAppProtectionAppsCollectionRequestBuilder is request builder for ManagedMobileApp collection
+type DefaultManagedAppProtectionAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedMobileApp collection
+func (b *DefaultManagedAppProtectionAppsCollectionRequestBuilder) Request() *DefaultManagedAppProtectionAppsCollectionRequest {
+ return &DefaultManagedAppProtectionAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedMobileApp item
+func (b *DefaultManagedAppProtectionAppsCollectionRequestBuilder) ID(id string) *ManagedMobileAppRequestBuilder {
+ bb := &ManagedMobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DefaultManagedAppProtectionAppsCollectionRequest is request for ManagedMobileApp collection
+type DefaultManagedAppProtectionAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedMobileApp collection
+func (r *DefaultManagedAppProtectionAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedMobileApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedMobileApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedMobileApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedMobileApp collection
+func (r *DefaultManagedAppProtectionAppsCollectionRequest) Get(ctx context.Context) ([]ManagedMobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedMobileApp collection
+func (r *DefaultManagedAppProtectionAppsCollectionRequest) Add(ctx context.Context, reqObj *ManagedMobileApp) (resObj *ManagedMobileApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeploymentSummary is navigation property
+func (b *DefaultManagedAppProtectionRequestBuilder) DeploymentSummary() *ManagedAppPolicyDeploymentSummaryRequestBuilder {
+ bb := &ManagedAppPolicyDeploymentSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deploymentSummary"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DefenderAttackSurfaceTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderAttackSurfaceTypeEnum.go
new file mode 100644
index 00000000..0fe2c716
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderAttackSurfaceTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderAttackSurfaceType undocumented
+type DefenderAttackSurfaceType int
+
+const (
+ // DefenderAttackSurfaceTypeVUserDefined undocumented
+ DefenderAttackSurfaceTypeVUserDefined DefenderAttackSurfaceType = 0
+ // DefenderAttackSurfaceTypeVBlock undocumented
+ DefenderAttackSurfaceTypeVBlock DefenderAttackSurfaceType = 1
+ // DefenderAttackSurfaceTypeVAuditMode undocumented
+ DefenderAttackSurfaceTypeVAuditMode DefenderAttackSurfaceType = 2
+)
+
+// DefenderAttackSurfaceTypePUserDefined returns a pointer to DefenderAttackSurfaceTypeVUserDefined
+func DefenderAttackSurfaceTypePUserDefined() *DefenderAttackSurfaceType {
+ v := DefenderAttackSurfaceTypeVUserDefined
+ return &v
+}
+
+// DefenderAttackSurfaceTypePBlock returns a pointer to DefenderAttackSurfaceTypeVBlock
+func DefenderAttackSurfaceTypePBlock() *DefenderAttackSurfaceType {
+ v := DefenderAttackSurfaceTypeVBlock
+ return &v
+}
+
+// DefenderAttackSurfaceTypePAuditMode returns a pointer to DefenderAttackSurfaceTypeVAuditMode
+func DefenderAttackSurfaceTypePAuditMode() *DefenderAttackSurfaceType {
+ v := DefenderAttackSurfaceTypeVAuditMode
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DefenderCloudBlockLevelTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderCloudBlockLevelTypeEnum.go
new file mode 100644
index 00000000..fc80296d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderCloudBlockLevelTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderCloudBlockLevelType undocumented
+type DefenderCloudBlockLevelType int
+
+const (
+ // DefenderCloudBlockLevelTypeVNotConfigured undocumented
+ DefenderCloudBlockLevelTypeVNotConfigured DefenderCloudBlockLevelType = 0
+ // DefenderCloudBlockLevelTypeVHigh undocumented
+ DefenderCloudBlockLevelTypeVHigh DefenderCloudBlockLevelType = 1
+ // DefenderCloudBlockLevelTypeVHighPlus undocumented
+ DefenderCloudBlockLevelTypeVHighPlus DefenderCloudBlockLevelType = 2
+ // DefenderCloudBlockLevelTypeVZeroTolerance undocumented
+ DefenderCloudBlockLevelTypeVZeroTolerance DefenderCloudBlockLevelType = 3
+)
+
+// DefenderCloudBlockLevelTypePNotConfigured returns a pointer to DefenderCloudBlockLevelTypeVNotConfigured
+func DefenderCloudBlockLevelTypePNotConfigured() *DefenderCloudBlockLevelType {
+ v := DefenderCloudBlockLevelTypeVNotConfigured
+ return &v
+}
+
+// DefenderCloudBlockLevelTypePHigh returns a pointer to DefenderCloudBlockLevelTypeVHigh
+func DefenderCloudBlockLevelTypePHigh() *DefenderCloudBlockLevelType {
+ v := DefenderCloudBlockLevelTypeVHigh
+ return &v
+}
+
+// DefenderCloudBlockLevelTypePHighPlus returns a pointer to DefenderCloudBlockLevelTypeVHighPlus
+func DefenderCloudBlockLevelTypePHighPlus() *DefenderCloudBlockLevelType {
+ v := DefenderCloudBlockLevelTypeVHighPlus
+ return &v
+}
+
+// DefenderCloudBlockLevelTypePZeroTolerance returns a pointer to DefenderCloudBlockLevelTypeVZeroTolerance
+func DefenderCloudBlockLevelTypePZeroTolerance() *DefenderCloudBlockLevelType {
+ v := DefenderCloudBlockLevelTypeVZeroTolerance
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DefenderDetectedMalwareActionsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderDetectedMalwareActionsModel.go
new file mode 100644
index 00000000..92a09305
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderDetectedMalwareActionsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderDetectedMalwareActions undocumented
+type DefenderDetectedMalwareActions struct {
+ // Object is the base model of DefenderDetectedMalwareActions
+ Object
+ // LowSeverity Indicates a Defender action to take for low severity Malware threat detected.
+ LowSeverity *DefenderThreatAction `json:"lowSeverity,omitempty"`
+ // ModerateSeverity Indicates a Defender action to take for moderate severity Malware threat detected.
+ ModerateSeverity *DefenderThreatAction `json:"moderateSeverity,omitempty"`
+ // HighSeverity Indicates a Defender action to take for high severity Malware threat detected.
+ HighSeverity *DefenderThreatAction `json:"highSeverity,omitempty"`
+ // SevereSeverity Indicates a Defender action to take for severe severity Malware threat detected.
+ SevereSeverity *DefenderThreatAction `json:"severeSeverity,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DefenderMonitorFileActivityEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderMonitorFileActivityEnum.go
new file mode 100644
index 00000000..5ace9e98
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderMonitorFileActivityEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderMonitorFileActivity undocumented
+type DefenderMonitorFileActivity int
+
+const (
+ // DefenderMonitorFileActivityVUserDefined undocumented
+ DefenderMonitorFileActivityVUserDefined DefenderMonitorFileActivity = 0
+ // DefenderMonitorFileActivityVDisable undocumented
+ DefenderMonitorFileActivityVDisable DefenderMonitorFileActivity = 1
+ // DefenderMonitorFileActivityVMonitorAllFiles undocumented
+ DefenderMonitorFileActivityVMonitorAllFiles DefenderMonitorFileActivity = 2
+ // DefenderMonitorFileActivityVMonitorIncomingFilesOnly undocumented
+ DefenderMonitorFileActivityVMonitorIncomingFilesOnly DefenderMonitorFileActivity = 3
+ // DefenderMonitorFileActivityVMonitorOutgoingFilesOnly undocumented
+ DefenderMonitorFileActivityVMonitorOutgoingFilesOnly DefenderMonitorFileActivity = 4
+)
+
+// DefenderMonitorFileActivityPUserDefined returns a pointer to DefenderMonitorFileActivityVUserDefined
+func DefenderMonitorFileActivityPUserDefined() *DefenderMonitorFileActivity {
+ v := DefenderMonitorFileActivityVUserDefined
+ return &v
+}
+
+// DefenderMonitorFileActivityPDisable returns a pointer to DefenderMonitorFileActivityVDisable
+func DefenderMonitorFileActivityPDisable() *DefenderMonitorFileActivity {
+ v := DefenderMonitorFileActivityVDisable
+ return &v
+}
+
+// DefenderMonitorFileActivityPMonitorAllFiles returns a pointer to DefenderMonitorFileActivityVMonitorAllFiles
+func DefenderMonitorFileActivityPMonitorAllFiles() *DefenderMonitorFileActivity {
+ v := DefenderMonitorFileActivityVMonitorAllFiles
+ return &v
+}
+
+// DefenderMonitorFileActivityPMonitorIncomingFilesOnly returns a pointer to DefenderMonitorFileActivityVMonitorIncomingFilesOnly
+func DefenderMonitorFileActivityPMonitorIncomingFilesOnly() *DefenderMonitorFileActivity {
+ v := DefenderMonitorFileActivityVMonitorIncomingFilesOnly
+ return &v
+}
+
+// DefenderMonitorFileActivityPMonitorOutgoingFilesOnly returns a pointer to DefenderMonitorFileActivityVMonitorOutgoingFilesOnly
+func DefenderMonitorFileActivityPMonitorOutgoingFilesOnly() *DefenderMonitorFileActivity {
+ v := DefenderMonitorFileActivityVMonitorOutgoingFilesOnly
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DefenderPotentiallyUnwantedAppActionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderPotentiallyUnwantedAppActionEnum.go
new file mode 100644
index 00000000..ad431bbb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderPotentiallyUnwantedAppActionEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderPotentiallyUnwantedAppAction undocumented
+type DefenderPotentiallyUnwantedAppAction int
+
+const (
+ // DefenderPotentiallyUnwantedAppActionVDeviceDefault undocumented
+ DefenderPotentiallyUnwantedAppActionVDeviceDefault DefenderPotentiallyUnwantedAppAction = 0
+ // DefenderPotentiallyUnwantedAppActionVBlock undocumented
+ DefenderPotentiallyUnwantedAppActionVBlock DefenderPotentiallyUnwantedAppAction = 1
+ // DefenderPotentiallyUnwantedAppActionVAudit undocumented
+ DefenderPotentiallyUnwantedAppActionVAudit DefenderPotentiallyUnwantedAppAction = 2
+)
+
+// DefenderPotentiallyUnwantedAppActionPDeviceDefault returns a pointer to DefenderPotentiallyUnwantedAppActionVDeviceDefault
+func DefenderPotentiallyUnwantedAppActionPDeviceDefault() *DefenderPotentiallyUnwantedAppAction {
+ v := DefenderPotentiallyUnwantedAppActionVDeviceDefault
+ return &v
+}
+
+// DefenderPotentiallyUnwantedAppActionPBlock returns a pointer to DefenderPotentiallyUnwantedAppActionVBlock
+func DefenderPotentiallyUnwantedAppActionPBlock() *DefenderPotentiallyUnwantedAppAction {
+ v := DefenderPotentiallyUnwantedAppActionVBlock
+ return &v
+}
+
+// DefenderPotentiallyUnwantedAppActionPAudit returns a pointer to DefenderPotentiallyUnwantedAppActionVAudit
+func DefenderPotentiallyUnwantedAppActionPAudit() *DefenderPotentiallyUnwantedAppAction {
+ v := DefenderPotentiallyUnwantedAppActionVAudit
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DefenderPromptForSampleSubmissionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderPromptForSampleSubmissionEnum.go
new file mode 100644
index 00000000..b2a2d208
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderPromptForSampleSubmissionEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderPromptForSampleSubmission undocumented
+type DefenderPromptForSampleSubmission int
+
+const (
+ // DefenderPromptForSampleSubmissionVUserDefined undocumented
+ DefenderPromptForSampleSubmissionVUserDefined DefenderPromptForSampleSubmission = 0
+ // DefenderPromptForSampleSubmissionVAlwaysPrompt undocumented
+ DefenderPromptForSampleSubmissionVAlwaysPrompt DefenderPromptForSampleSubmission = 1
+ // DefenderPromptForSampleSubmissionVPromptBeforeSendingPersonalData undocumented
+ DefenderPromptForSampleSubmissionVPromptBeforeSendingPersonalData DefenderPromptForSampleSubmission = 2
+ // DefenderPromptForSampleSubmissionVNeverSendData undocumented
+ DefenderPromptForSampleSubmissionVNeverSendData DefenderPromptForSampleSubmission = 3
+ // DefenderPromptForSampleSubmissionVSendAllDataWithoutPrompting undocumented
+ DefenderPromptForSampleSubmissionVSendAllDataWithoutPrompting DefenderPromptForSampleSubmission = 4
+)
+
+// DefenderPromptForSampleSubmissionPUserDefined returns a pointer to DefenderPromptForSampleSubmissionVUserDefined
+func DefenderPromptForSampleSubmissionPUserDefined() *DefenderPromptForSampleSubmission {
+ v := DefenderPromptForSampleSubmissionVUserDefined
+ return &v
+}
+
+// DefenderPromptForSampleSubmissionPAlwaysPrompt returns a pointer to DefenderPromptForSampleSubmissionVAlwaysPrompt
+func DefenderPromptForSampleSubmissionPAlwaysPrompt() *DefenderPromptForSampleSubmission {
+ v := DefenderPromptForSampleSubmissionVAlwaysPrompt
+ return &v
+}
+
+// DefenderPromptForSampleSubmissionPPromptBeforeSendingPersonalData returns a pointer to DefenderPromptForSampleSubmissionVPromptBeforeSendingPersonalData
+func DefenderPromptForSampleSubmissionPPromptBeforeSendingPersonalData() *DefenderPromptForSampleSubmission {
+ v := DefenderPromptForSampleSubmissionVPromptBeforeSendingPersonalData
+ return &v
+}
+
+// DefenderPromptForSampleSubmissionPNeverSendData returns a pointer to DefenderPromptForSampleSubmissionVNeverSendData
+func DefenderPromptForSampleSubmissionPNeverSendData() *DefenderPromptForSampleSubmission {
+ v := DefenderPromptForSampleSubmissionVNeverSendData
+ return &v
+}
+
+// DefenderPromptForSampleSubmissionPSendAllDataWithoutPrompting returns a pointer to DefenderPromptForSampleSubmissionVSendAllDataWithoutPrompting
+func DefenderPromptForSampleSubmissionPSendAllDataWithoutPrompting() *DefenderPromptForSampleSubmission {
+ v := DefenderPromptForSampleSubmissionVSendAllDataWithoutPrompting
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DefenderProtectionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderProtectionTypeEnum.go
new file mode 100644
index 00000000..1479d39a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderProtectionTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderProtectionType undocumented
+type DefenderProtectionType int
+
+const (
+ // DefenderProtectionTypeVUserDefined undocumented
+ DefenderProtectionTypeVUserDefined DefenderProtectionType = 0
+ // DefenderProtectionTypeVEnable undocumented
+ DefenderProtectionTypeVEnable DefenderProtectionType = 1
+ // DefenderProtectionTypeVAuditMode undocumented
+ DefenderProtectionTypeVAuditMode DefenderProtectionType = 2
+)
+
+// DefenderProtectionTypePUserDefined returns a pointer to DefenderProtectionTypeVUserDefined
+func DefenderProtectionTypePUserDefined() *DefenderProtectionType {
+ v := DefenderProtectionTypeVUserDefined
+ return &v
+}
+
+// DefenderProtectionTypePEnable returns a pointer to DefenderProtectionTypeVEnable
+func DefenderProtectionTypePEnable() *DefenderProtectionType {
+ v := DefenderProtectionTypeVEnable
+ return &v
+}
+
+// DefenderProtectionTypePAuditMode returns a pointer to DefenderProtectionTypeVAuditMode
+func DefenderProtectionTypePAuditMode() *DefenderProtectionType {
+ v := DefenderProtectionTypeVAuditMode
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DefenderScanTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderScanTypeEnum.go
new file mode 100644
index 00000000..19588595
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderScanTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderScanType undocumented
+type DefenderScanType int
+
+const (
+ // DefenderScanTypeVUserDefined undocumented
+ DefenderScanTypeVUserDefined DefenderScanType = 0
+ // DefenderScanTypeVDisabled undocumented
+ DefenderScanTypeVDisabled DefenderScanType = 1
+ // DefenderScanTypeVQuick undocumented
+ DefenderScanTypeVQuick DefenderScanType = 2
+ // DefenderScanTypeVFull undocumented
+ DefenderScanTypeVFull DefenderScanType = 3
+)
+
+// DefenderScanTypePUserDefined returns a pointer to DefenderScanTypeVUserDefined
+func DefenderScanTypePUserDefined() *DefenderScanType {
+ v := DefenderScanTypeVUserDefined
+ return &v
+}
+
+// DefenderScanTypePDisabled returns a pointer to DefenderScanTypeVDisabled
+func DefenderScanTypePDisabled() *DefenderScanType {
+ v := DefenderScanTypeVDisabled
+ return &v
+}
+
+// DefenderScanTypePQuick returns a pointer to DefenderScanTypeVQuick
+func DefenderScanTypePQuick() *DefenderScanType {
+ v := DefenderScanTypeVQuick
+ return &v
+}
+
+// DefenderScanTypePFull returns a pointer to DefenderScanTypeVFull
+func DefenderScanTypePFull() *DefenderScanType {
+ v := DefenderScanTypeVFull
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DefenderSecurityCenterITContactDisplayTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderSecurityCenterITContactDisplayTypeEnum.go
new file mode 100644
index 00000000..5cf5c940
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderSecurityCenterITContactDisplayTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderSecurityCenterITContactDisplayType undocumented
+type DefenderSecurityCenterITContactDisplayType int
+
+const (
+ // DefenderSecurityCenterITContactDisplayTypeVNotConfigured undocumented
+ DefenderSecurityCenterITContactDisplayTypeVNotConfigured DefenderSecurityCenterITContactDisplayType = 0
+ // DefenderSecurityCenterITContactDisplayTypeVDisplayInAppAndInNotifications undocumented
+ DefenderSecurityCenterITContactDisplayTypeVDisplayInAppAndInNotifications DefenderSecurityCenterITContactDisplayType = 1
+ // DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInApp undocumented
+ DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInApp DefenderSecurityCenterITContactDisplayType = 2
+ // DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInNotifications undocumented
+ DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInNotifications DefenderSecurityCenterITContactDisplayType = 3
+)
+
+// DefenderSecurityCenterITContactDisplayTypePNotConfigured returns a pointer to DefenderSecurityCenterITContactDisplayTypeVNotConfigured
+func DefenderSecurityCenterITContactDisplayTypePNotConfigured() *DefenderSecurityCenterITContactDisplayType {
+ v := DefenderSecurityCenterITContactDisplayTypeVNotConfigured
+ return &v
+}
+
+// DefenderSecurityCenterITContactDisplayTypePDisplayInAppAndInNotifications returns a pointer to DefenderSecurityCenterITContactDisplayTypeVDisplayInAppAndInNotifications
+func DefenderSecurityCenterITContactDisplayTypePDisplayInAppAndInNotifications() *DefenderSecurityCenterITContactDisplayType {
+ v := DefenderSecurityCenterITContactDisplayTypeVDisplayInAppAndInNotifications
+ return &v
+}
+
+// DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInApp returns a pointer to DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInApp
+func DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInApp() *DefenderSecurityCenterITContactDisplayType {
+ v := DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInApp
+ return &v
+}
+
+// DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInNotifications returns a pointer to DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInNotifications
+func DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInNotifications() *DefenderSecurityCenterITContactDisplayType {
+ v := DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInNotifications
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DefenderSecurityCenterNotificationsFromAppTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderSecurityCenterNotificationsFromAppTypeEnum.go
new file mode 100644
index 00000000..9a99bafd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderSecurityCenterNotificationsFromAppTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderSecurityCenterNotificationsFromAppType undocumented
+type DefenderSecurityCenterNotificationsFromAppType int
+
+const (
+ // DefenderSecurityCenterNotificationsFromAppTypeVNotConfigured undocumented
+ DefenderSecurityCenterNotificationsFromAppTypeVNotConfigured DefenderSecurityCenterNotificationsFromAppType = 0
+ // DefenderSecurityCenterNotificationsFromAppTypeVBlockNoncriticalNotifications undocumented
+ DefenderSecurityCenterNotificationsFromAppTypeVBlockNoncriticalNotifications DefenderSecurityCenterNotificationsFromAppType = 1
+ // DefenderSecurityCenterNotificationsFromAppTypeVBlockAllNotifications undocumented
+ DefenderSecurityCenterNotificationsFromAppTypeVBlockAllNotifications DefenderSecurityCenterNotificationsFromAppType = 2
+)
+
+// DefenderSecurityCenterNotificationsFromAppTypePNotConfigured returns a pointer to DefenderSecurityCenterNotificationsFromAppTypeVNotConfigured
+func DefenderSecurityCenterNotificationsFromAppTypePNotConfigured() *DefenderSecurityCenterNotificationsFromAppType {
+ v := DefenderSecurityCenterNotificationsFromAppTypeVNotConfigured
+ return &v
+}
+
+// DefenderSecurityCenterNotificationsFromAppTypePBlockNoncriticalNotifications returns a pointer to DefenderSecurityCenterNotificationsFromAppTypeVBlockNoncriticalNotifications
+func DefenderSecurityCenterNotificationsFromAppTypePBlockNoncriticalNotifications() *DefenderSecurityCenterNotificationsFromAppType {
+ v := DefenderSecurityCenterNotificationsFromAppTypeVBlockNoncriticalNotifications
+ return &v
+}
+
+// DefenderSecurityCenterNotificationsFromAppTypePBlockAllNotifications returns a pointer to DefenderSecurityCenterNotificationsFromAppTypeVBlockAllNotifications
+func DefenderSecurityCenterNotificationsFromAppTypePBlockAllNotifications() *DefenderSecurityCenterNotificationsFromAppType {
+ v := DefenderSecurityCenterNotificationsFromAppTypeVBlockAllNotifications
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DefenderSubmitSamplesConsentTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderSubmitSamplesConsentTypeEnum.go
new file mode 100644
index 00000000..3a4de7c7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderSubmitSamplesConsentTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderSubmitSamplesConsentType undocumented
+type DefenderSubmitSamplesConsentType int
+
+const (
+ // DefenderSubmitSamplesConsentTypeVSendSafeSamplesAutomatically undocumented
+ DefenderSubmitSamplesConsentTypeVSendSafeSamplesAutomatically DefenderSubmitSamplesConsentType = 0
+ // DefenderSubmitSamplesConsentTypeVAlwaysPrompt undocumented
+ DefenderSubmitSamplesConsentTypeVAlwaysPrompt DefenderSubmitSamplesConsentType = 1
+ // DefenderSubmitSamplesConsentTypeVNeverSend undocumented
+ DefenderSubmitSamplesConsentTypeVNeverSend DefenderSubmitSamplesConsentType = 2
+ // DefenderSubmitSamplesConsentTypeVSendAllSamplesAutomatically undocumented
+ DefenderSubmitSamplesConsentTypeVSendAllSamplesAutomatically DefenderSubmitSamplesConsentType = 3
+)
+
+// DefenderSubmitSamplesConsentTypePSendSafeSamplesAutomatically returns a pointer to DefenderSubmitSamplesConsentTypeVSendSafeSamplesAutomatically
+func DefenderSubmitSamplesConsentTypePSendSafeSamplesAutomatically() *DefenderSubmitSamplesConsentType {
+ v := DefenderSubmitSamplesConsentTypeVSendSafeSamplesAutomatically
+ return &v
+}
+
+// DefenderSubmitSamplesConsentTypePAlwaysPrompt returns a pointer to DefenderSubmitSamplesConsentTypeVAlwaysPrompt
+func DefenderSubmitSamplesConsentTypePAlwaysPrompt() *DefenderSubmitSamplesConsentType {
+ v := DefenderSubmitSamplesConsentTypeVAlwaysPrompt
+ return &v
+}
+
+// DefenderSubmitSamplesConsentTypePNeverSend returns a pointer to DefenderSubmitSamplesConsentTypeVNeverSend
+func DefenderSubmitSamplesConsentTypePNeverSend() *DefenderSubmitSamplesConsentType {
+ v := DefenderSubmitSamplesConsentTypeVNeverSend
+ return &v
+}
+
+// DefenderSubmitSamplesConsentTypePSendAllSamplesAutomatically returns a pointer to DefenderSubmitSamplesConsentTypeVSendAllSamplesAutomatically
+func DefenderSubmitSamplesConsentTypePSendAllSamplesAutomatically() *DefenderSubmitSamplesConsentType {
+ v := DefenderSubmitSamplesConsentTypeVSendAllSamplesAutomatically
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DefenderThreatActionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderThreatActionEnum.go
new file mode 100644
index 00000000..62d2e240
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DefenderThreatActionEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderThreatAction undocumented
+type DefenderThreatAction int
+
+const (
+ // DefenderThreatActionVDeviceDefault undocumented
+ DefenderThreatActionVDeviceDefault DefenderThreatAction = 0
+ // DefenderThreatActionVClean undocumented
+ DefenderThreatActionVClean DefenderThreatAction = 1
+ // DefenderThreatActionVQuarantine undocumented
+ DefenderThreatActionVQuarantine DefenderThreatAction = 2
+ // DefenderThreatActionVRemove undocumented
+ DefenderThreatActionVRemove DefenderThreatAction = 3
+ // DefenderThreatActionVAllow undocumented
+ DefenderThreatActionVAllow DefenderThreatAction = 4
+ // DefenderThreatActionVUserDefined undocumented
+ DefenderThreatActionVUserDefined DefenderThreatAction = 5
+ // DefenderThreatActionVBlock undocumented
+ DefenderThreatActionVBlock DefenderThreatAction = 6
+)
+
+// DefenderThreatActionPDeviceDefault returns a pointer to DefenderThreatActionVDeviceDefault
+func DefenderThreatActionPDeviceDefault() *DefenderThreatAction {
+ v := DefenderThreatActionVDeviceDefault
+ return &v
+}
+
+// DefenderThreatActionPClean returns a pointer to DefenderThreatActionVClean
+func DefenderThreatActionPClean() *DefenderThreatAction {
+ v := DefenderThreatActionVClean
+ return &v
+}
+
+// DefenderThreatActionPQuarantine returns a pointer to DefenderThreatActionVQuarantine
+func DefenderThreatActionPQuarantine() *DefenderThreatAction {
+ v := DefenderThreatActionVQuarantine
+ return &v
+}
+
+// DefenderThreatActionPRemove returns a pointer to DefenderThreatActionVRemove
+func DefenderThreatActionPRemove() *DefenderThreatAction {
+ v := DefenderThreatActionVRemove
+ return &v
+}
+
+// DefenderThreatActionPAllow returns a pointer to DefenderThreatActionVAllow
+func DefenderThreatActionPAllow() *DefenderThreatAction {
+ v := DefenderThreatActionVAllow
+ return &v
+}
+
+// DefenderThreatActionPUserDefined returns a pointer to DefenderThreatActionVUserDefined
+func DefenderThreatActionPUserDefined() *DefenderThreatAction {
+ v := DefenderThreatActionVUserDefined
+ return &v
+}
+
+// DefenderThreatActionPBlock returns a pointer to DefenderThreatActionVBlock
+func DefenderThreatActionPBlock() *DefenderThreatAction {
+ v := DefenderThreatActionVBlock
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DelegateMeetingMessageDeliveryOptionsEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DelegateMeetingMessageDeliveryOptionsEnum.go
new file mode 100644
index 00000000..2bfb1b95
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DelegateMeetingMessageDeliveryOptionsEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DelegateMeetingMessageDeliveryOptions undocumented
+type DelegateMeetingMessageDeliveryOptions int
+
+const (
+ // DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndInformationToPrincipal undocumented
+ DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndInformationToPrincipal DelegateMeetingMessageDeliveryOptions = 0
+ // DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndPrincipal undocumented
+ DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndPrincipal DelegateMeetingMessageDeliveryOptions = 1
+ // DelegateMeetingMessageDeliveryOptionsVSendToDelegateOnly undocumented
+ DelegateMeetingMessageDeliveryOptionsVSendToDelegateOnly DelegateMeetingMessageDeliveryOptions = 2
+)
+
+// DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndInformationToPrincipal returns a pointer to DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndInformationToPrincipal
+func DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndInformationToPrincipal() *DelegateMeetingMessageDeliveryOptions {
+ v := DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndInformationToPrincipal
+ return &v
+}
+
+// DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndPrincipal returns a pointer to DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndPrincipal
+func DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndPrincipal() *DelegateMeetingMessageDeliveryOptions {
+ v := DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndPrincipal
+ return &v
+}
+
+// DelegateMeetingMessageDeliveryOptionsPSendToDelegateOnly returns a pointer to DelegateMeetingMessageDeliveryOptionsVSendToDelegateOnly
+func DelegateMeetingMessageDeliveryOptionsPSendToDelegateOnly() *DelegateMeetingMessageDeliveryOptions {
+ v := DelegateMeetingMessageDeliveryOptionsVSendToDelegateOnly
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DelegatedPermissionClassificationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DelegatedPermissionClassificationModel.go
new file mode 100644
index 00000000..6409dc8e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DelegatedPermissionClassificationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DelegatedPermissionClassification undocumented
+type DelegatedPermissionClassification struct {
+ // Entity is the base model of DelegatedPermissionClassification
+ Entity
+ // PermissionID undocumented
+ PermissionID *string `json:"permissionId,omitempty"`
+ // PermissionName undocumented
+ PermissionName *string `json:"permissionName,omitempty"`
+ // Classification undocumented
+ Classification *PermissionClassificationType `json:"classification,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeleteActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeleteActionModel.go
new file mode 100644
index 00000000..47164ec9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeleteActionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeleteAction undocumented
+type DeleteAction struct {
+ // Object is the base model of DeleteAction
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ObjectType undocumented
+ ObjectType *string `json:"objectType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeleteUserFromSharedAppleDeviceActionResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeleteUserFromSharedAppleDeviceActionResultModel.go
new file mode 100644
index 00000000..3cd94d2c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeleteUserFromSharedAppleDeviceActionResultModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeleteUserFromSharedAppleDeviceActionResult undocumented
+type DeleteUserFromSharedAppleDeviceActionResult struct {
+ // DeviceActionResult is the base model of DeleteUserFromSharedAppleDeviceActionResult
+ DeviceActionResult
+ // UserPrincipalName User principal name of the user to be deleted
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeletedModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeletedModel.go
new file mode 100644
index 00000000..6e58e673
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeletedModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Deleted undocumented
+type Deleted struct {
+ // Object is the base model of Deleted
+ Object
+ // State undocumented
+ State *string `json:"state,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationBandwidthAbsoluteModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationBandwidthAbsoluteModel.go
new file mode 100644
index 00000000..6264e3ad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationBandwidthAbsoluteModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationBandwidthAbsolute undocumented
+type DeliveryOptimizationBandwidthAbsolute struct {
+ // DeliveryOptimizationBandwidth is the base model of DeliveryOptimizationBandwidthAbsolute
+ DeliveryOptimizationBandwidth
+ // MaximumDownloadBandwidthInKilobytesPerSecond Specifies the maximum download bandwidth in KiloBytes/second that the device can use across all concurrent download activities using Delivery Optimization. Valid values 0 to 4294967295
+ MaximumDownloadBandwidthInKilobytesPerSecond *int `json:"maximumDownloadBandwidthInKilobytesPerSecond,omitempty"`
+ // MaximumUploadBandwidthInKilobytesPerSecond Specifies the maximum upload bandwidth in KiloBytes/second that a device will use across all concurrent upload activity using Delivery Optimization (0-4000000). Valid values 0 to 4000000
+ MaximumUploadBandwidthInKilobytesPerSecond *int `json:"maximumUploadBandwidthInKilobytesPerSecond,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationBandwidthBusinessHoursLimitModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationBandwidthBusinessHoursLimitModel.go
new file mode 100644
index 00000000..4b7dc4d3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationBandwidthBusinessHoursLimitModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationBandwidthBusinessHoursLimit undocumented
+type DeliveryOptimizationBandwidthBusinessHoursLimit struct {
+ // Object is the base model of DeliveryOptimizationBandwidthBusinessHoursLimit
+ Object
+ // BandwidthBeginBusinessHours Specifies the beginning of business hours using a 24-hour clock (0-23). Valid values 0 to 23
+ BandwidthBeginBusinessHours *int `json:"bandwidthBeginBusinessHours,omitempty"`
+ // BandwidthEndBusinessHours Specifies the end of business hours using a 24-hour clock (0-23). Valid values 0 to 23
+ BandwidthEndBusinessHours *int `json:"bandwidthEndBusinessHours,omitempty"`
+ // BandwidthPercentageDuringBusinessHours Specifies the percentage of bandwidth to limit during business hours (0-100). Valid values 0 to 100
+ BandwidthPercentageDuringBusinessHours *int `json:"bandwidthPercentageDuringBusinessHours,omitempty"`
+ // BandwidthPercentageOutsideBusinessHours Specifies the percentage of bandwidth to limit outsidse business hours (0-100). Valid values 0 to 100
+ BandwidthPercentageOutsideBusinessHours *int `json:"bandwidthPercentageOutsideBusinessHours,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationBandwidthHoursWithPercentageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationBandwidthHoursWithPercentageModel.go
new file mode 100644
index 00000000..2b7d1ac6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationBandwidthHoursWithPercentageModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationBandwidthHoursWithPercentage undocumented
+type DeliveryOptimizationBandwidthHoursWithPercentage struct {
+ // DeliveryOptimizationBandwidth is the base model of DeliveryOptimizationBandwidthHoursWithPercentage
+ DeliveryOptimizationBandwidth
+ // BandwidthBackgroundPercentageHours Background download percentage hours.
+ BandwidthBackgroundPercentageHours *DeliveryOptimizationBandwidthBusinessHoursLimit `json:"bandwidthBackgroundPercentageHours,omitempty"`
+ // BandwidthForegroundPercentageHours Foreground download percentage hours.
+ BandwidthForegroundPercentageHours *DeliveryOptimizationBandwidthBusinessHoursLimit `json:"bandwidthForegroundPercentageHours,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationBandwidthModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationBandwidthModel.go
new file mode 100644
index 00000000..5d7e72da
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationBandwidthModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationBandwidth undocumented
+type DeliveryOptimizationBandwidth struct {
+ // Object is the base model of DeliveryOptimizationBandwidth
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationBandwidthPercentageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationBandwidthPercentageModel.go
new file mode 100644
index 00000000..107148e4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationBandwidthPercentageModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationBandwidthPercentage undocumented
+type DeliveryOptimizationBandwidthPercentage struct {
+ // DeliveryOptimizationBandwidth is the base model of DeliveryOptimizationBandwidthPercentage
+ DeliveryOptimizationBandwidth
+ // MaximumBackgroundBandwidthPercentage Specifies the maximum background download bandwidth that Delivery Optimization uses across all concurrent download activities as a percentage of available download bandwidth (0-100). Valid values 0 to 100
+ MaximumBackgroundBandwidthPercentage *int `json:"maximumBackgroundBandwidthPercentage,omitempty"`
+ // MaximumForegroundBandwidthPercentage Specifies the maximum foreground download bandwidth that Delivery Optimization uses across all concurrent download activities as a percentage of available download bandwidth (0-100). Valid values 0 to 100
+ MaximumForegroundBandwidthPercentage *int `json:"maximumForegroundBandwidthPercentage,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationGroupIDCustomModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationGroupIDCustomModel.go
new file mode 100644
index 00000000..8e5d2001
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationGroupIDCustomModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationGroupIDCustom undocumented
+type DeliveryOptimizationGroupIDCustom struct {
+ // DeliveryOptimizationGroupIDSource is the base model of DeliveryOptimizationGroupIDCustom
+ DeliveryOptimizationGroupIDSource
+ // GroupIDCustom Specifies an arbitrary group ID that the device belongs to
+ GroupIDCustom *string `json:"groupIdCustom,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationGroupIDOptionsTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationGroupIDOptionsTypeEnum.go
new file mode 100644
index 00000000..94042652
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationGroupIDOptionsTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationGroupIDOptionsType undocumented
+type DeliveryOptimizationGroupIDOptionsType int
+
+const (
+ // DeliveryOptimizationGroupIDOptionsTypeVNotConfigured undocumented
+ DeliveryOptimizationGroupIDOptionsTypeVNotConfigured DeliveryOptimizationGroupIDOptionsType = 0
+ // DeliveryOptimizationGroupIDOptionsTypeVAdSite undocumented
+ DeliveryOptimizationGroupIDOptionsTypeVAdSite DeliveryOptimizationGroupIDOptionsType = 1
+ // DeliveryOptimizationGroupIDOptionsTypeVAuthenticatedDomainSid undocumented
+ DeliveryOptimizationGroupIDOptionsTypeVAuthenticatedDomainSid DeliveryOptimizationGroupIDOptionsType = 2
+ // DeliveryOptimizationGroupIDOptionsTypeVDhcpUserOption undocumented
+ DeliveryOptimizationGroupIDOptionsTypeVDhcpUserOption DeliveryOptimizationGroupIDOptionsType = 3
+ // DeliveryOptimizationGroupIDOptionsTypeVDNSSuffix undocumented
+ DeliveryOptimizationGroupIDOptionsTypeVDNSSuffix DeliveryOptimizationGroupIDOptionsType = 4
+)
+
+// DeliveryOptimizationGroupIDOptionsTypePNotConfigured returns a pointer to DeliveryOptimizationGroupIDOptionsTypeVNotConfigured
+func DeliveryOptimizationGroupIDOptionsTypePNotConfigured() *DeliveryOptimizationGroupIDOptionsType {
+ v := DeliveryOptimizationGroupIDOptionsTypeVNotConfigured
+ return &v
+}
+
+// DeliveryOptimizationGroupIDOptionsTypePAdSite returns a pointer to DeliveryOptimizationGroupIDOptionsTypeVAdSite
+func DeliveryOptimizationGroupIDOptionsTypePAdSite() *DeliveryOptimizationGroupIDOptionsType {
+ v := DeliveryOptimizationGroupIDOptionsTypeVAdSite
+ return &v
+}
+
+// DeliveryOptimizationGroupIDOptionsTypePAuthenticatedDomainSid returns a pointer to DeliveryOptimizationGroupIDOptionsTypeVAuthenticatedDomainSid
+func DeliveryOptimizationGroupIDOptionsTypePAuthenticatedDomainSid() *DeliveryOptimizationGroupIDOptionsType {
+ v := DeliveryOptimizationGroupIDOptionsTypeVAuthenticatedDomainSid
+ return &v
+}
+
+// DeliveryOptimizationGroupIDOptionsTypePDhcpUserOption returns a pointer to DeliveryOptimizationGroupIDOptionsTypeVDhcpUserOption
+func DeliveryOptimizationGroupIDOptionsTypePDhcpUserOption() *DeliveryOptimizationGroupIDOptionsType {
+ v := DeliveryOptimizationGroupIDOptionsTypeVDhcpUserOption
+ return &v
+}
+
+// DeliveryOptimizationGroupIDOptionsTypePDNSSuffix returns a pointer to DeliveryOptimizationGroupIDOptionsTypeVDNSSuffix
+func DeliveryOptimizationGroupIDOptionsTypePDNSSuffix() *DeliveryOptimizationGroupIDOptionsType {
+ v := DeliveryOptimizationGroupIDOptionsTypeVDNSSuffix
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationGroupIDSourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationGroupIDSourceModel.go
new file mode 100644
index 00000000..45ab6547
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationGroupIDSourceModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationGroupIDSource undocumented
+type DeliveryOptimizationGroupIDSource struct {
+ // Object is the base model of DeliveryOptimizationGroupIDSource
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationGroupIDSourceOptionsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationGroupIDSourceOptionsModel.go
new file mode 100644
index 00000000..a7957541
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationGroupIDSourceOptionsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationGroupIDSourceOptions undocumented
+type DeliveryOptimizationGroupIDSourceOptions struct {
+ // DeliveryOptimizationGroupIDSource is the base model of DeliveryOptimizationGroupIDSourceOptions
+ DeliveryOptimizationGroupIDSource
+ // GroupIDSourceOption Set this policy to restrict peer selection to a specific source.
+ GroupIDSourceOption *DeliveryOptimizationGroupIDOptionsType `json:"groupIdSourceOption,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeAbsoluteModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeAbsoluteModel.go
new file mode 100644
index 00000000..ff1e33bc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeAbsoluteModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationMaxCacheSizeAbsolute undocumented
+type DeliveryOptimizationMaxCacheSizeAbsolute struct {
+ // DeliveryOptimizationMaxCacheSize is the base model of DeliveryOptimizationMaxCacheSizeAbsolute
+ DeliveryOptimizationMaxCacheSize
+ // MaximumCacheSizeInGigabytes Specifies the maximum size in GB of Delivery Optimization cache. Valid values 0 to 4294967295
+ MaximumCacheSizeInGigabytes *int `json:"maximumCacheSizeInGigabytes,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeModel.go
new file mode 100644
index 00000000..7f1723f4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationMaxCacheSizeModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationMaxCacheSize undocumented
+type DeliveryOptimizationMaxCacheSize struct {
+ // Object is the base model of DeliveryOptimizationMaxCacheSize
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationMaxCacheSizePercentageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationMaxCacheSizePercentageModel.go
new file mode 100644
index 00000000..9eefd0b5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationMaxCacheSizePercentageModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationMaxCacheSizePercentage undocumented
+type DeliveryOptimizationMaxCacheSizePercentage struct {
+ // DeliveryOptimizationMaxCacheSize is the base model of DeliveryOptimizationMaxCacheSizePercentage
+ DeliveryOptimizationMaxCacheSize
+ // MaximumCacheSizePercentage Specifies the maximum cache size that Delivery Optimization can utilize, as a percentage of disk size (1-100). Valid values 1 to 100
+ MaximumCacheSizePercentage *int `json:"maximumCacheSizePercentage,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationRestrictPeerSelectionByOptionsEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationRestrictPeerSelectionByOptionsEnum.go
new file mode 100644
index 00000000..d4ca9d58
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeliveryOptimizationRestrictPeerSelectionByOptionsEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationRestrictPeerSelectionByOptions undocumented
+type DeliveryOptimizationRestrictPeerSelectionByOptions int
+
+const (
+ // DeliveryOptimizationRestrictPeerSelectionByOptionsVNotConfigured undocumented
+ DeliveryOptimizationRestrictPeerSelectionByOptionsVNotConfigured DeliveryOptimizationRestrictPeerSelectionByOptions = 0
+ // DeliveryOptimizationRestrictPeerSelectionByOptionsVSubnetMask undocumented
+ DeliveryOptimizationRestrictPeerSelectionByOptionsVSubnetMask DeliveryOptimizationRestrictPeerSelectionByOptions = 1
+)
+
+// DeliveryOptimizationRestrictPeerSelectionByOptionsPNotConfigured returns a pointer to DeliveryOptimizationRestrictPeerSelectionByOptionsVNotConfigured
+func DeliveryOptimizationRestrictPeerSelectionByOptionsPNotConfigured() *DeliveryOptimizationRestrictPeerSelectionByOptions {
+ v := DeliveryOptimizationRestrictPeerSelectionByOptionsVNotConfigured
+ return &v
+}
+
+// DeliveryOptimizationRestrictPeerSelectionByOptionsPSubnetMask returns a pointer to DeliveryOptimizationRestrictPeerSelectionByOptionsVSubnetMask
+func DeliveryOptimizationRestrictPeerSelectionByOptionsPSubnetMask() *DeliveryOptimizationRestrictPeerSelectionByOptions {
+ v := DeliveryOptimizationRestrictPeerSelectionByOptionsVSubnetMask
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DepEnrollmentBaseProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DepEnrollmentBaseProfileModel.go
new file mode 100644
index 00000000..605fad19
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DepEnrollmentBaseProfileModel.go
@@ -0,0 +1,51 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DepEnrollmentBaseProfile The DepEnrollmentBaseProfile resource represents an Apple Device Enrollment Program (DEP) enrollment profile. This type of profile must be assigned to Apple DEP serial numbers before the corresponding devices can enroll via DEP.
+type DepEnrollmentBaseProfile struct {
+ // EnrollmentProfile is the base model of DepEnrollmentBaseProfile
+ EnrollmentProfile
+ // IsDefault Indicates if this is the default profile
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // SupervisedModeEnabled Supervised mode, True to enable, false otherwise. See https://docs.microsoft.com/en-us/intune/deploy-use/enroll-devices-in-microsoft-intune for additional information.
+ SupervisedModeEnabled *bool `json:"supervisedModeEnabled,omitempty"`
+ // SupportDepartment Support department information
+ SupportDepartment *string `json:"supportDepartment,omitempty"`
+ // PassCodeDisabled Indicates if Passcode setup pane is disabled
+ PassCodeDisabled *bool `json:"passCodeDisabled,omitempty"`
+ // IsMandatory Indicates if the profile is mandatory
+ IsMandatory *bool `json:"isMandatory,omitempty"`
+ // LocationDisabled Indicates if Location service setup pane is disabled
+ LocationDisabled *bool `json:"locationDisabled,omitempty"`
+ // SupportPhoneNumber Support phone number
+ SupportPhoneNumber *string `json:"supportPhoneNumber,omitempty"`
+ // ProfileRemovalDisabled Indicates if the profile removal option is disabled
+ ProfileRemovalDisabled *bool `json:"profileRemovalDisabled,omitempty"`
+ // RestoreBlocked Indicates if Restore setup pane is blocked
+ RestoreBlocked *bool `json:"restoreBlocked,omitempty"`
+ // AppleIDDisabled Indicates if Apple id setup pane is disabled
+ AppleIDDisabled *bool `json:"appleIdDisabled,omitempty"`
+ // TermsAndConditionsDisabled Indicates if 'Terms and Conditions' setup pane is disabled
+ TermsAndConditionsDisabled *bool `json:"termsAndConditionsDisabled,omitempty"`
+ // TouchIDDisabled Indicates if touch id setup pane is disabled
+ TouchIDDisabled *bool `json:"touchIdDisabled,omitempty"`
+ // ApplePayDisabled Indicates if Apple pay setup pane is disabled
+ ApplePayDisabled *bool `json:"applePayDisabled,omitempty"`
+ // ZoomDisabled Indicates if zoom setup pane is disabled
+ ZoomDisabled *bool `json:"zoomDisabled,omitempty"`
+ // SiriDisabled Indicates if siri setup pane is disabled
+ SiriDisabled *bool `json:"siriDisabled,omitempty"`
+ // DiagnosticsDisabled Indicates if diagnostics setup pane is disabled
+ DiagnosticsDisabled *bool `json:"diagnosticsDisabled,omitempty"`
+ // DisplayToneSetupDisabled Indicates if displaytone setup screen is disabled
+ DisplayToneSetupDisabled *bool `json:"displayToneSetupDisabled,omitempty"`
+ // PrivacyPaneDisabled Indicates if privacy screen is disabled
+ PrivacyPaneDisabled *bool `json:"privacyPaneDisabled,omitempty"`
+ // ScreenTimeScreenDisabled Indicates if screen timeout setup is disabled
+ ScreenTimeScreenDisabled *bool `json:"screenTimeScreenDisabled,omitempty"`
+ // DeviceNameTemplate Sets a literal or name pattern.
+ DeviceNameTemplate *string `json:"deviceNameTemplate,omitempty"`
+ // ConfigurationWebURL URL for setup assistant login
+ ConfigurationWebURL *bool `json:"configurationWebUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DepEnrollmentProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DepEnrollmentProfileModel.go
new file mode 100644
index 00000000..54db70b8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DepEnrollmentProfileModel.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DepEnrollmentProfile The depEnrollmentProfile resource represents an Apple Device Enrollment Program (DEP) enrollment profile. This type of profile must be assigned to Apple DEP serial numbers before the corresponding devices can enroll via DEP.
+type DepEnrollmentProfile struct {
+ // EnrollmentProfile is the base model of DepEnrollmentProfile
+ EnrollmentProfile
+ // IsDefault Indicates if this is the default profile
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // SupervisedModeEnabled Supervised mode, True to enable, false otherwise. See https://docs.microsoft.com/en-us/intune/deploy-use/enroll-devices-in-microsoft-intune for additional information.
+ SupervisedModeEnabled *bool `json:"supervisedModeEnabled,omitempty"`
+ // SupportDepartment Support department information
+ SupportDepartment *string `json:"supportDepartment,omitempty"`
+ // PassCodeDisabled Indicates if Passcode setup pane is disabled
+ PassCodeDisabled *bool `json:"passCodeDisabled,omitempty"`
+ // IsMandatory Indicates if the profile is mandatory
+ IsMandatory *bool `json:"isMandatory,omitempty"`
+ // LocationDisabled Indicates if Location service setup pane is disabled
+ LocationDisabled *bool `json:"locationDisabled,omitempty"`
+ // SupportPhoneNumber Support phone number
+ SupportPhoneNumber *string `json:"supportPhoneNumber,omitempty"`
+ // ITunesPairingMode Indicates the iTunes pairing mode
+ ITunesPairingMode *ITunesPairingMode `json:"iTunesPairingMode,omitempty"`
+ // ProfileRemovalDisabled Indicates if the profile removal option is disabled
+ ProfileRemovalDisabled *bool `json:"profileRemovalDisabled,omitempty"`
+ // ManagementCertificates Management certificates for Apple Configurator
+ ManagementCertificates []ManagementCertificateWithThumbprint `json:"managementCertificates,omitempty"`
+ // RestoreBlocked Indicates if Restore setup pane is blocked
+ RestoreBlocked *bool `json:"restoreBlocked,omitempty"`
+ // RestoreFromAndroidDisabled Indicates if Restore from Android is disabled
+ RestoreFromAndroidDisabled *bool `json:"restoreFromAndroidDisabled,omitempty"`
+ // AppleIDDisabled Indicates if Apple id setup pane is disabled
+ AppleIDDisabled *bool `json:"appleIdDisabled,omitempty"`
+ // TermsAndConditionsDisabled Indicates if 'Terms and Conditions' setup pane is disabled
+ TermsAndConditionsDisabled *bool `json:"termsAndConditionsDisabled,omitempty"`
+ // TouchIDDisabled Indicates if touch id setup pane is disabled
+ TouchIDDisabled *bool `json:"touchIdDisabled,omitempty"`
+ // ApplePayDisabled Indicates if Apple pay setup pane is disabled
+ ApplePayDisabled *bool `json:"applePayDisabled,omitempty"`
+ // ZoomDisabled Indicates if zoom setup pane is disabled
+ ZoomDisabled *bool `json:"zoomDisabled,omitempty"`
+ // SiriDisabled Indicates if siri setup pane is disabled
+ SiriDisabled *bool `json:"siriDisabled,omitempty"`
+ // DiagnosticsDisabled Indicates if diagnostics setup pane is disabled
+ DiagnosticsDisabled *bool `json:"diagnosticsDisabled,omitempty"`
+ // MacOSRegistrationDisabled Indicates if Mac OS registration is disabled
+ MacOSRegistrationDisabled *bool `json:"macOSRegistrationDisabled,omitempty"`
+ // MacOSFileVaultDisabled Indicates if Mac OS file vault is disabled
+ MacOSFileVaultDisabled *bool `json:"macOSFileVaultDisabled,omitempty"`
+ // AwaitDeviceConfiguredConfirmation Indicates if the device will need to wait for configured confirmation
+ AwaitDeviceConfiguredConfirmation *bool `json:"awaitDeviceConfiguredConfirmation,omitempty"`
+ // SharedIPadMaximumUserCount This specifies the maximum number of users that can use a shared iPad. Only applicable in shared iPad mode.
+ SharedIPadMaximumUserCount *int `json:"sharedIPadMaximumUserCount,omitempty"`
+ // EnableSharedIPad This indicates whether the device is to be enrolled in a mode which enables multi user scenarios. Only applicable in shared iPads.
+ EnableSharedIPad *bool `json:"enableSharedIPad,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DepIOSEnrollmentProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DepIOSEnrollmentProfileModel.go
new file mode 100644
index 00000000..e4b8ad2d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DepIOSEnrollmentProfileModel.go
@@ -0,0 +1,47 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DepIOSEnrollmentProfile The DepIOSEnrollmentProfile resource represents an Apple Device Enrollment Program (DEP) enrollment profile specific to iOS configuration. This type of profile must be assigned to Apple DEP serial numbers before the corresponding devices can enroll via DEP.
+type DepIOSEnrollmentProfile struct {
+ // DepEnrollmentBaseProfile is the base model of DepIOSEnrollmentProfile
+ DepEnrollmentBaseProfile
+ // ITunesPairingMode Indicates the iTunes pairing mode
+ ITunesPairingMode *ITunesPairingMode `json:"iTunesPairingMode,omitempty"`
+ // ManagementCertificates Management certificates for Apple Configurator
+ ManagementCertificates []ManagementCertificateWithThumbprint `json:"managementCertificates,omitempty"`
+ // RestoreFromAndroidDisabled Indicates if Restore from Android is disabled
+ RestoreFromAndroidDisabled *bool `json:"restoreFromAndroidDisabled,omitempty"`
+ // AwaitDeviceConfiguredConfirmation Indicates if the device will need to wait for configured confirmation
+ AwaitDeviceConfiguredConfirmation *bool `json:"awaitDeviceConfiguredConfirmation,omitempty"`
+ // SharedIPadMaximumUserCount This specifies the maximum number of users that can use a shared iPad. Only applicable in shared iPad mode.
+ SharedIPadMaximumUserCount *int `json:"sharedIPadMaximumUserCount,omitempty"`
+ // EnableSharedIPad This indicates whether the device is to be enrolled in a mode which enables multi user scenarios. Only applicable in shared iPads.
+ EnableSharedIPad *bool `json:"enableSharedIPad,omitempty"`
+ // CompanyPortalVppTokenID If set, indicates which Vpp token should be used to deploy the Company Portal w/ device licensing. 'enableAuthenticationViaCompanyPortal' must be set in order for this property to be set.
+ CompanyPortalVppTokenID *string `json:"companyPortalVppTokenId,omitempty"`
+ // EnableSingleAppEnrollmentMode Tells the device to enable single app mode and apply app-lock during enrollment. Default is false. 'enableAuthenticationViaCompanyPortal' and 'companyPortalVppTokenId' must be set for this property to be set.
+ EnableSingleAppEnrollmentMode *bool `json:"enableSingleAppEnrollmentMode,omitempty"`
+ // HomeButtonScreenDisabled Indicates if home button sensitivity screen is disabled
+ HomeButtonScreenDisabled *bool `json:"homeButtonScreenDisabled,omitempty"`
+ // IMessageAndFaceTimeScreenDisabled Indicates if iMessage and FaceTime screen is disabled
+ IMessageAndFaceTimeScreenDisabled *bool `json:"iMessageAndFaceTimeScreenDisabled,omitempty"`
+ // OnBoardingScreenDisabled Indicates if onboarding setup screen is disabled
+ OnBoardingScreenDisabled *bool `json:"onBoardingScreenDisabled,omitempty"`
+ // SimSetupScreenDisabled Indicates if the SIMSetup screen is disabled
+ SimSetupScreenDisabled *bool `json:"simSetupScreenDisabled,omitempty"`
+ // SoftwareUpdateScreenDisabled Indicates if the mandatory sofware update screen is disabled
+ SoftwareUpdateScreenDisabled *bool `json:"softwareUpdateScreenDisabled,omitempty"`
+ // WatchMigrationScreenDisabled Indicates if the watch migration screen is disabled
+ WatchMigrationScreenDisabled *bool `json:"watchMigrationScreenDisabled,omitempty"`
+ // AppearanceScreenDisabled Indicates if Apperance screen is disabled
+ AppearanceScreenDisabled *bool `json:"appearanceScreenDisabled,omitempty"`
+ // ExpressLanguageScreenDisabled Indicates if Express Language screen is disabled
+ ExpressLanguageScreenDisabled *bool `json:"expressLanguageScreenDisabled,omitempty"`
+ // PreferredLanguageScreenDisabled Indicates if Preferred language screen is disabled
+ PreferredLanguageScreenDisabled *bool `json:"preferredLanguageScreenDisabled,omitempty"`
+ // DeviceToDeviceMigrationDisabled Indicates if Device To Device Migration is disabled
+ DeviceToDeviceMigrationDisabled *bool `json:"deviceToDeviceMigrationDisabled,omitempty"`
+ // WelcomeScreenDisabled Indicates if Weclome screen is disabled
+ WelcomeScreenDisabled *bool `json:"welcomeScreenDisabled,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DepIOSEnrollmentProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DepIOSEnrollmentProfileRequest.go
new file mode 100644
index 00000000..7d8c74b4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DepIOSEnrollmentProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DepIOSEnrollmentProfileRequestBuilder is request builder for DepIOSEnrollmentProfile
+type DepIOSEnrollmentProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DepIOSEnrollmentProfileRequest
+func (b *DepIOSEnrollmentProfileRequestBuilder) Request() *DepIOSEnrollmentProfileRequest {
+ return &DepIOSEnrollmentProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DepIOSEnrollmentProfileRequest is request for DepIOSEnrollmentProfile
+type DepIOSEnrollmentProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for DepIOSEnrollmentProfile
+func (r *DepIOSEnrollmentProfileRequest) Get(ctx context.Context) (resObj *DepIOSEnrollmentProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DepIOSEnrollmentProfile
+func (r *DepIOSEnrollmentProfileRequest) Update(ctx context.Context, reqObj *DepIOSEnrollmentProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DepIOSEnrollmentProfile
+func (r *DepIOSEnrollmentProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DepMacOSEnrollmentProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DepMacOSEnrollmentProfileModel.go
new file mode 100644
index 00000000..4f4203ca
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DepMacOSEnrollmentProfileModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DepMacOSEnrollmentProfile The DepMacOSEnrollmentProfile resource represents an Apple Device Enrollment Program (DEP) enrollment profile specific to macOS configuration. This type of profile must be assigned to Apple DEP serial numbers before the corresponding devices can enroll via DEP.
+type DepMacOSEnrollmentProfile struct {
+ // DepEnrollmentBaseProfile is the base model of DepMacOSEnrollmentProfile
+ DepEnrollmentBaseProfile
+ // RegistrationDisabled Indicates if registration is disabled
+ RegistrationDisabled *bool `json:"registrationDisabled,omitempty"`
+ // FileVaultDisabled Indicates if file vault is disabled
+ FileVaultDisabled *bool `json:"fileVaultDisabled,omitempty"`
+ // ICloudDiagnosticsDisabled Indicates if iCloud Analytics screen is disabled
+ ICloudDiagnosticsDisabled *bool `json:"iCloudDiagnosticsDisabled,omitempty"`
+ // ICloudStorageDisabled Indicates if iCloud Documents and Desktop screen is disabled
+ ICloudStorageDisabled *bool `json:"iCloudStorageDisabled,omitempty"`
+ // ChooseYourLockScreenDisabled Indicates if iCloud Documents and Desktop screen is disabled
+ ChooseYourLockScreenDisabled *bool `json:"chooseYourLockScreenDisabled,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DepMacOSEnrollmentProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DepMacOSEnrollmentProfileRequest.go
new file mode 100644
index 00000000..5b00e343
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DepMacOSEnrollmentProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DepMacOSEnrollmentProfileRequestBuilder is request builder for DepMacOSEnrollmentProfile
+type DepMacOSEnrollmentProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DepMacOSEnrollmentProfileRequest
+func (b *DepMacOSEnrollmentProfileRequestBuilder) Request() *DepMacOSEnrollmentProfileRequest {
+ return &DepMacOSEnrollmentProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DepMacOSEnrollmentProfileRequest is request for DepMacOSEnrollmentProfile
+type DepMacOSEnrollmentProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for DepMacOSEnrollmentProfile
+func (r *DepMacOSEnrollmentProfileRequest) Get(ctx context.Context) (resObj *DepMacOSEnrollmentProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DepMacOSEnrollmentProfile
+func (r *DepMacOSEnrollmentProfileRequest) Update(ctx context.Context, reqObj *DepMacOSEnrollmentProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DepMacOSEnrollmentProfile
+func (r *DepMacOSEnrollmentProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DepOnboardingSettingAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DepOnboardingSettingAction.go
new file mode 100644
index 00000000..d3fc24be
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DepOnboardingSettingAction.go
@@ -0,0 +1,129 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DepOnboardingSettingUploadDepTokenRequestParameter undocumented
+type DepOnboardingSettingUploadDepTokenRequestParameter struct {
+ // AppleID undocumented
+ AppleID *string `json:"appleId,omitempty"`
+ // DepToken undocumented
+ DepToken *string `json:"depToken,omitempty"`
+}
+
+// DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestParameter undocumented
+type DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestParameter struct {
+}
+
+// DepOnboardingSettingShareForSchoolDataSyncServiceRequestParameter undocumented
+type DepOnboardingSettingShareForSchoolDataSyncServiceRequestParameter struct {
+}
+
+// DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestParameter undocumented
+type DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestParameter struct {
+}
+
+//
+type DepOnboardingSettingUploadDepTokenRequestBuilder struct{ BaseRequestBuilder }
+
+// UploadDepToken action undocumented
+func (b *DepOnboardingSettingRequestBuilder) UploadDepToken(reqObj *DepOnboardingSettingUploadDepTokenRequestParameter) *DepOnboardingSettingUploadDepTokenRequestBuilder {
+ bb := &DepOnboardingSettingUploadDepTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/uploadDepToken"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DepOnboardingSettingUploadDepTokenRequest struct{ BaseRequest }
+
+//
+func (b *DepOnboardingSettingUploadDepTokenRequestBuilder) Request() *DepOnboardingSettingUploadDepTokenRequest {
+ return &DepOnboardingSettingUploadDepTokenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DepOnboardingSettingUploadDepTokenRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestBuilder struct{ BaseRequestBuilder }
+
+// SyncWithAppleDeviceEnrollmentProgram action undocumented
+func (b *DepOnboardingSettingRequestBuilder) SyncWithAppleDeviceEnrollmentProgram(reqObj *DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestParameter) *DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestBuilder {
+ bb := &DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/syncWithAppleDeviceEnrollmentProgram"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequest struct{ BaseRequest }
+
+//
+func (b *DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestBuilder) Request() *DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequest {
+ return &DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DepOnboardingSettingShareForSchoolDataSyncServiceRequestBuilder struct{ BaseRequestBuilder }
+
+// ShareForSchoolDataSyncService action undocumented
+func (b *DepOnboardingSettingRequestBuilder) ShareForSchoolDataSyncService(reqObj *DepOnboardingSettingShareForSchoolDataSyncServiceRequestParameter) *DepOnboardingSettingShareForSchoolDataSyncServiceRequestBuilder {
+ bb := &DepOnboardingSettingShareForSchoolDataSyncServiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/shareForSchoolDataSyncService"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DepOnboardingSettingShareForSchoolDataSyncServiceRequest struct{ BaseRequest }
+
+//
+func (b *DepOnboardingSettingShareForSchoolDataSyncServiceRequestBuilder) Request() *DepOnboardingSettingShareForSchoolDataSyncServiceRequest {
+ return &DepOnboardingSettingShareForSchoolDataSyncServiceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DepOnboardingSettingShareForSchoolDataSyncServiceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestBuilder struct{ BaseRequestBuilder }
+
+// UnshareForSchoolDataSyncService action undocumented
+func (b *DepOnboardingSettingRequestBuilder) UnshareForSchoolDataSyncService(reqObj *DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestParameter) *DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestBuilder {
+ bb := &DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unshareForSchoolDataSyncService"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DepOnboardingSettingUnshareForSchoolDataSyncServiceRequest struct{ BaseRequest }
+
+//
+func (b *DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestBuilder) Request() *DepOnboardingSettingUnshareForSchoolDataSyncServiceRequest {
+ return &DepOnboardingSettingUnshareForSchoolDataSyncServiceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DepOnboardingSettingUnshareForSchoolDataSyncServiceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DepOnboardingSettingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DepOnboardingSettingModel.go
new file mode 100644
index 00000000..ea4aabfe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DepOnboardingSettingModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DepOnboardingSetting The depOnboardingSetting represents an instance of the Apple DEP service being onboarded to Intune. The onboarded service instance manages an Apple Token used to synchronize data between Apple and Intune.
+type DepOnboardingSetting struct {
+ // Entity is the base model of DepOnboardingSetting
+ Entity
+ // AppleIdentifier The Apple ID used to obtain the current token.
+ AppleIdentifier *string `json:"appleIdentifier,omitempty"`
+ // TokenExpirationDateTime When the token will expire.
+ TokenExpirationDateTime *time.Time `json:"tokenExpirationDateTime,omitempty"`
+ // LastModifiedDateTime When the service was onboarded.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // LastSuccessfulSyncDateTime When the service last syned with Intune
+ LastSuccessfulSyncDateTime *time.Time `json:"lastSuccessfulSyncDateTime,omitempty"`
+ // LastSyncTriggeredDateTime When Intune last requested a sync.
+ LastSyncTriggeredDateTime *time.Time `json:"lastSyncTriggeredDateTime,omitempty"`
+ // ShareTokenWithSchoolDataSyncService Whether or not the Dep token sharing is enabled with the School Data Sync service.
+ ShareTokenWithSchoolDataSyncService *bool `json:"shareTokenWithSchoolDataSyncService,omitempty"`
+ // LastSyncErrorCode Error code reported by Apple during last dep sync.
+ LastSyncErrorCode *int `json:"lastSyncErrorCode,omitempty"`
+ // TokenType Gets or sets the Dep Token Type.
+ TokenType *DepTokenType `json:"tokenType,omitempty"`
+ // TokenName Friendly Name for Dep Token
+ TokenName *string `json:"tokenName,omitempty"`
+ // SyncedDeviceCount Gets synced device count
+ SyncedDeviceCount *int `json:"syncedDeviceCount,omitempty"`
+ // DataSharingConsentGranted Consent granted for data sharing with Apple Dep Service
+ DataSharingConsentGranted *bool `json:"dataSharingConsentGranted,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // DefaultIOSEnrollmentProfile undocumented
+ DefaultIOSEnrollmentProfile *DepIOSEnrollmentProfile `json:"defaultIosEnrollmentProfile,omitempty"`
+ // DefaultMacOsEnrollmentProfile undocumented
+ DefaultMacOsEnrollmentProfile *DepMacOSEnrollmentProfile `json:"defaultMacOsEnrollmentProfile,omitempty"`
+ // EnrollmentProfiles undocumented
+ EnrollmentProfiles []EnrollmentProfile `json:"enrollmentProfiles,omitempty"`
+ // ImportedAppleDeviceIdentities undocumented
+ ImportedAppleDeviceIdentities []ImportedAppleDeviceIdentity `json:"importedAppleDeviceIdentities,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DepOnboardingSettingRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DepOnboardingSettingRequest.go
new file mode 100644
index 00000000..f7273468
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DepOnboardingSettingRequest.go
@@ -0,0 +1,247 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DepOnboardingSettingRequestBuilder is request builder for DepOnboardingSetting
+type DepOnboardingSettingRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DepOnboardingSettingRequest
+func (b *DepOnboardingSettingRequestBuilder) Request() *DepOnboardingSettingRequest {
+ return &DepOnboardingSettingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DepOnboardingSettingRequest is request for DepOnboardingSetting
+type DepOnboardingSettingRequest struct{ BaseRequest }
+
+// Get performs GET request for DepOnboardingSetting
+func (r *DepOnboardingSettingRequest) Get(ctx context.Context) (resObj *DepOnboardingSetting, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DepOnboardingSetting
+func (r *DepOnboardingSettingRequest) Update(ctx context.Context, reqObj *DepOnboardingSetting) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DepOnboardingSetting
+func (r *DepOnboardingSettingRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DefaultIOSEnrollmentProfile is navigation property
+func (b *DepOnboardingSettingRequestBuilder) DefaultIOSEnrollmentProfile() *DepIOSEnrollmentProfileRequestBuilder {
+ bb := &DepIOSEnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/defaultIosEnrollmentProfile"
+ return bb
+}
+
+// DefaultMacOsEnrollmentProfile is navigation property
+func (b *DepOnboardingSettingRequestBuilder) DefaultMacOsEnrollmentProfile() *DepMacOSEnrollmentProfileRequestBuilder {
+ bb := &DepMacOSEnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/defaultMacOsEnrollmentProfile"
+ return bb
+}
+
+// EnrollmentProfiles returns request builder for EnrollmentProfile collection
+func (b *DepOnboardingSettingRequestBuilder) EnrollmentProfiles() *DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder {
+ bb := &DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/enrollmentProfiles"
+ return bb
+}
+
+// DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder is request builder for EnrollmentProfile collection
+type DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EnrollmentProfile collection
+func (b *DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder) Request() *DepOnboardingSettingEnrollmentProfilesCollectionRequest {
+ return &DepOnboardingSettingEnrollmentProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EnrollmentProfile item
+func (b *DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder) ID(id string) *EnrollmentProfileRequestBuilder {
+ bb := &EnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DepOnboardingSettingEnrollmentProfilesCollectionRequest is request for EnrollmentProfile collection
+type DepOnboardingSettingEnrollmentProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EnrollmentProfile collection
+func (r *DepOnboardingSettingEnrollmentProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EnrollmentProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EnrollmentProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EnrollmentProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EnrollmentProfile collection
+func (r *DepOnboardingSettingEnrollmentProfilesCollectionRequest) Get(ctx context.Context) ([]EnrollmentProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EnrollmentProfile collection
+func (r *DepOnboardingSettingEnrollmentProfilesCollectionRequest) Add(ctx context.Context, reqObj *EnrollmentProfile) (resObj *EnrollmentProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ImportedAppleDeviceIdentities returns request builder for ImportedAppleDeviceIdentity collection
+func (b *DepOnboardingSettingRequestBuilder) ImportedAppleDeviceIdentities() *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder {
+ bb := &DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/importedAppleDeviceIdentities"
+ return bb
+}
+
+// DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder is request builder for ImportedAppleDeviceIdentity collection
+type DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ImportedAppleDeviceIdentity collection
+func (b *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder) Request() *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest {
+ return &DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ImportedAppleDeviceIdentity item
+func (b *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder) ID(id string) *ImportedAppleDeviceIdentityRequestBuilder {
+ bb := &ImportedAppleDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest is request for ImportedAppleDeviceIdentity collection
+type DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ImportedAppleDeviceIdentity collection
+func (r *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ImportedAppleDeviceIdentity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ImportedAppleDeviceIdentity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ImportedAppleDeviceIdentity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ImportedAppleDeviceIdentity collection
+func (r *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]ImportedAppleDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ImportedAppleDeviceIdentity collection
+func (r *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest) Add(ctx context.Context, reqObj *ImportedAppleDeviceIdentity) (resObj *ImportedAppleDeviceIdentity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DepTokenTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DepTokenTypeEnum.go
new file mode 100644
index 00000000..3ad5f559
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DepTokenTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DepTokenType undocumented
+type DepTokenType int
+
+const (
+ // DepTokenTypeVNone undocumented
+ DepTokenTypeVNone DepTokenType = 0
+ // DepTokenTypeVDep undocumented
+ DepTokenTypeVDep DepTokenType = 1
+ // DepTokenTypeVAppleSchoolManager undocumented
+ DepTokenTypeVAppleSchoolManager DepTokenType = 2
+)
+
+// DepTokenTypePNone returns a pointer to DepTokenTypeVNone
+func DepTokenTypePNone() *DepTokenType {
+ v := DepTokenTypeVNone
+ return &v
+}
+
+// DepTokenTypePDep returns a pointer to DepTokenTypeVDep
+func DepTokenTypePDep() *DepTokenType {
+ v := DepTokenTypeVDep
+ return &v
+}
+
+// DepTokenTypePAppleSchoolManager returns a pointer to DepTokenTypeVAppleSchoolManager
+func DepTokenTypePAppleSchoolManager() *DepTokenType {
+ v := DepTokenTypeVAppleSchoolManager
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DerivedCredentialProviderTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DerivedCredentialProviderTypeEnum.go
new file mode 100644
index 00000000..3022db6c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DerivedCredentialProviderTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DerivedCredentialProviderType undocumented
+type DerivedCredentialProviderType int
+
+const (
+ // DerivedCredentialProviderTypeVNotConfigured undocumented
+ DerivedCredentialProviderTypeVNotConfigured DerivedCredentialProviderType = 0
+ // DerivedCredentialProviderTypeVEntrustDataCard undocumented
+ DerivedCredentialProviderTypeVEntrustDataCard DerivedCredentialProviderType = 1
+ // DerivedCredentialProviderTypeVPurebred undocumented
+ DerivedCredentialProviderTypeVPurebred DerivedCredentialProviderType = 2
+ // DerivedCredentialProviderTypeVXTec undocumented
+ DerivedCredentialProviderTypeVXTec DerivedCredentialProviderType = 3
+ // DerivedCredentialProviderTypeVIntercede undocumented
+ DerivedCredentialProviderTypeVIntercede DerivedCredentialProviderType = 4
+)
+
+// DerivedCredentialProviderTypePNotConfigured returns a pointer to DerivedCredentialProviderTypeVNotConfigured
+func DerivedCredentialProviderTypePNotConfigured() *DerivedCredentialProviderType {
+ v := DerivedCredentialProviderTypeVNotConfigured
+ return &v
+}
+
+// DerivedCredentialProviderTypePEntrustDataCard returns a pointer to DerivedCredentialProviderTypeVEntrustDataCard
+func DerivedCredentialProviderTypePEntrustDataCard() *DerivedCredentialProviderType {
+ v := DerivedCredentialProviderTypeVEntrustDataCard
+ return &v
+}
+
+// DerivedCredentialProviderTypePPurebred returns a pointer to DerivedCredentialProviderTypeVPurebred
+func DerivedCredentialProviderTypePPurebred() *DerivedCredentialProviderType {
+ v := DerivedCredentialProviderTypeVPurebred
+ return &v
+}
+
+// DerivedCredentialProviderTypePXTec returns a pointer to DerivedCredentialProviderTypeVXTec
+func DerivedCredentialProviderTypePXTec() *DerivedCredentialProviderType {
+ v := DerivedCredentialProviderTypeVXTec
+ return &v
+}
+
+// DerivedCredentialProviderTypePIntercede returns a pointer to DerivedCredentialProviderTypeVIntercede
+func DerivedCredentialProviderTypePIntercede() *DerivedCredentialProviderType {
+ v := DerivedCredentialProviderTypeVIntercede
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DetailsInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DetailsInfoModel.go
new file mode 100644
index 00000000..b8dea67f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DetailsInfoModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DetailsInfo undocumented
+type DetailsInfo struct {
+ // Object is the base model of DetailsInfo
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DetectedAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DetectedAppModel.go
new file mode 100644
index 00000000..f1593f6c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DetectedAppModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DetectedApp A managed or unmanaged app that is installed on a managed device. Unmanaged apps will only appear for devices marked as corporate owned.
+type DetectedApp struct {
+ // Entity is the base model of DetectedApp
+ Entity
+ // DisplayName Name of the discovered application. Read-only
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version Version of the discovered application. Read-only
+ Version *string `json:"version,omitempty"`
+ // SizeInByte Discovered application size in bytes. Read-only
+ SizeInByte *int `json:"sizeInByte,omitempty"`
+ // DeviceCount The number of devices that have installed this application
+ DeviceCount *int `json:"deviceCount,omitempty"`
+ // ManagedDevices undocumented
+ ManagedDevices []ManagedDevice `json:"managedDevices,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DetectedAppRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DetectedAppRequest.go
new file mode 100644
index 00000000..28200cf0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DetectedAppRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DetectedAppRequestBuilder is request builder for DetectedApp
+type DetectedAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DetectedAppRequest
+func (b *DetectedAppRequestBuilder) Request() *DetectedAppRequest {
+ return &DetectedAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DetectedAppRequest is request for DetectedApp
+type DetectedAppRequest struct{ BaseRequest }
+
+// Get performs GET request for DetectedApp
+func (r *DetectedAppRequest) Get(ctx context.Context) (resObj *DetectedApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DetectedApp
+func (r *DetectedAppRequest) Update(ctx context.Context, reqObj *DetectedApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DetectedApp
+func (r *DetectedAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDevices returns request builder for ManagedDevice collection
+func (b *DetectedAppRequestBuilder) ManagedDevices() *DetectedAppManagedDevicesCollectionRequestBuilder {
+ bb := &DetectedAppManagedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDevices"
+ return bb
+}
+
+// DetectedAppManagedDevicesCollectionRequestBuilder is request builder for ManagedDevice collection
+type DetectedAppManagedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDevice collection
+func (b *DetectedAppManagedDevicesCollectionRequestBuilder) Request() *DetectedAppManagedDevicesCollectionRequest {
+ return &DetectedAppManagedDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDevice item
+func (b *DetectedAppManagedDevicesCollectionRequestBuilder) ID(id string) *ManagedDeviceRequestBuilder {
+ bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DetectedAppManagedDevicesCollectionRequest is request for ManagedDevice collection
+type DetectedAppManagedDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDevice collection
+func (r *DetectedAppManagedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDevice, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDevice
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDevice
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDevice collection
+func (r *DetectedAppManagedDevicesCollectionRequest) Get(ctx context.Context) ([]ManagedDevice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDevice collection
+func (r *DetectedAppManagedDevicesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDevice) (resObj *ManagedDevice, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DetectedSensitiveContentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DetectedSensitiveContentModel.go
new file mode 100644
index 00000000..d6a19c25
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DetectedSensitiveContentModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DetectedSensitiveContent undocumented
+type DetectedSensitiveContent struct {
+ // Object is the base model of DetectedSensitiveContent
+ Object
+ // ID undocumented
+ ID *UUID `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // UniqueCount undocumented
+ UniqueCount *int `json:"uniqueCount,omitempty"`
+ // Confidence undocumented
+ Confidence *int `json:"confidence,omitempty"`
+ // RecommendedConfidence undocumented
+ RecommendedConfidence *int `json:"recommendedConfidence,omitempty"`
+ // Matches undocumented
+ Matches []SensitiveContentLocation `json:"matches,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DetectedSensitiveContentWrapperModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DetectedSensitiveContentWrapperModel.go
new file mode 100644
index 00000000..e2fc47b9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DetectedSensitiveContentWrapperModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DetectedSensitiveContentWrapper undocumented
+type DetectedSensitiveContentWrapper struct {
+ // Object is the base model of DetectedSensitiveContentWrapper
+ Object
+ // Classification undocumented
+ Classification []DetectedSensitiveContent `json:"classification,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceActionResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceActionResultModel.go
new file mode 100644
index 00000000..3e00ab4b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceActionResultModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceActionResult undocumented
+type DeviceActionResult struct {
+ // Object is the base model of DeviceActionResult
+ Object
+ // ActionName Action name
+ ActionName *string `json:"actionName,omitempty"`
+ // ActionState State of the action
+ ActionState *ActionState `json:"actionState,omitempty"`
+ // StartDateTime Time the action was initiated
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // LastUpdatedDateTime Time the action state was last updated
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementAssignedRoleDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementAssignedRoleDetailsModel.go
new file mode 100644
index 00000000..3a1928eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementAssignedRoleDetailsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceAndAppManagementAssignedRoleDetails undocumented
+type DeviceAndAppManagementAssignedRoleDetails struct {
+ // Object is the base model of DeviceAndAppManagementAssignedRoleDetails
+ Object
+ // RoleDefinitionIDs Role Definition IDs for the specifc Role Definitions assigned to a user.
+ RoleDefinitionIDs []string `json:"roleDefinitionIds,omitempty"`
+ // RoleAssignmentIDs Role Assignment IDs for the specifc Role Assignments assigned to a user.
+ RoleAssignmentIDs []string `json:"roleAssignmentIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementAssignmentSourceEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementAssignmentSourceEnum.go
new file mode 100644
index 00000000..2d0a06a9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementAssignmentSourceEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceAndAppManagementAssignmentSource undocumented
+type DeviceAndAppManagementAssignmentSource int
+
+const (
+ // DeviceAndAppManagementAssignmentSourceVDirect undocumented
+ DeviceAndAppManagementAssignmentSourceVDirect DeviceAndAppManagementAssignmentSource = 0
+ // DeviceAndAppManagementAssignmentSourceVPolicySets undocumented
+ DeviceAndAppManagementAssignmentSourceVPolicySets DeviceAndAppManagementAssignmentSource = 1
+)
+
+// DeviceAndAppManagementAssignmentSourcePDirect returns a pointer to DeviceAndAppManagementAssignmentSourceVDirect
+func DeviceAndAppManagementAssignmentSourcePDirect() *DeviceAndAppManagementAssignmentSource {
+ v := DeviceAndAppManagementAssignmentSourceVDirect
+ return &v
+}
+
+// DeviceAndAppManagementAssignmentSourcePPolicySets returns a pointer to DeviceAndAppManagementAssignmentSourceVPolicySets
+func DeviceAndAppManagementAssignmentSourcePPolicySets() *DeviceAndAppManagementAssignmentSource {
+ v := DeviceAndAppManagementAssignmentSourceVPolicySets
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementAssignmentTargetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementAssignmentTargetModel.go
new file mode 100644
index 00000000..2493b8ac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementAssignmentTargetModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceAndAppManagementAssignmentTarget undocumented
+type DeviceAndAppManagementAssignmentTarget struct {
+ // Object is the base model of DeviceAndAppManagementAssignmentTarget
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementDataModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementDataModel.go
new file mode 100644
index 00000000..57131e29
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementDataModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceAndAppManagementData undocumented
+type DeviceAndAppManagementData struct {
+ // Object is the base model of DeviceAndAppManagementData
+ Object
+ // Content undocumented
+ Content *Stream `json:"content,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentModel.go
new file mode 100644
index 00000000..bac66fab
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceAndAppManagementRoleAssignment The Role Assignment resource. Role assignments tie together a role definition with members and scopes. There can be one or more role assignments per role. This applies to custom and built-in roles.
+type DeviceAndAppManagementRoleAssignment struct {
+ // RoleAssignment is the base model of DeviceAndAppManagementRoleAssignment
+ RoleAssignment
+ // Members The list of ids of role member security groups. These are IDs from Azure Active Directory.
+ Members []string `json:"members,omitempty"`
+ // RoleScopeTags undocumented
+ RoleScopeTags []RoleScopeTag `json:"roleScopeTags,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentRequest.go
new file mode 100644
index 00000000..a7c92f7a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementRoleAssignmentRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceAndAppManagementRoleAssignmentRequestBuilder is request builder for DeviceAndAppManagementRoleAssignment
+type DeviceAndAppManagementRoleAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceAndAppManagementRoleAssignmentRequest
+func (b *DeviceAndAppManagementRoleAssignmentRequestBuilder) Request() *DeviceAndAppManagementRoleAssignmentRequest {
+ return &DeviceAndAppManagementRoleAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceAndAppManagementRoleAssignmentRequest is request for DeviceAndAppManagementRoleAssignment
+type DeviceAndAppManagementRoleAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceAndAppManagementRoleAssignment
+func (r *DeviceAndAppManagementRoleAssignmentRequest) Get(ctx context.Context) (resObj *DeviceAndAppManagementRoleAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceAndAppManagementRoleAssignment
+func (r *DeviceAndAppManagementRoleAssignmentRequest) Update(ctx context.Context, reqObj *DeviceAndAppManagementRoleAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceAndAppManagementRoleAssignment
+func (r *DeviceAndAppManagementRoleAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RoleScopeTags returns request builder for RoleScopeTag collection
+func (b *DeviceAndAppManagementRoleAssignmentRequestBuilder) RoleScopeTags() *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder {
+ bb := &DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleScopeTags"
+ return bb
+}
+
+// DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder is request builder for RoleScopeTag collection
+type DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RoleScopeTag collection
+func (b *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder) Request() *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest {
+ return &DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RoleScopeTag item
+func (b *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder) ID(id string) *RoleScopeTagRequestBuilder {
+ bb := &RoleScopeTagRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest is request for RoleScopeTag collection
+type DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RoleScopeTag collection
+func (r *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]RoleScopeTag, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RoleScopeTag
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RoleScopeTag
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RoleScopeTag collection
+func (r *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest) Get(ctx context.Context) ([]RoleScopeTag, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for RoleScopeTag collection
+func (r *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest) Add(ctx context.Context, reqObj *RoleScopeTag) (resObj *RoleScopeTag, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementRoleDefinitionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementRoleDefinitionModel.go
new file mode 100644
index 00000000..6c80fd03
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAndAppManagementRoleDefinitionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceAndAppManagementRoleDefinition The Role Definition resource. The role definition is the foundation of role based access in Intune. The role combines an Intune resource such as a Mobile App and associated role permissions such as Create or Read for the resource. There are two types of roles, built-in and custom. Built-in roles cannot be modified. Both built-in roles and custom roles must have assignments to be enforced. Create custom roles if you want to define a role that allows any of the available resources and role permissions to be combined into a single role.
+type DeviceAndAppManagementRoleDefinition struct {
+ // RoleDefinition is the base model of DeviceAndAppManagementRoleDefinition
+ RoleDefinition
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementAction.go
new file mode 100644
index 00000000..265ff631
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestParameter undocumented
+type DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestParameter struct {
+}
+
+//
+type DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestBuilder struct{ BaseRequestBuilder }
+
+// SyncMicrosoftStoreForBusinessApps action undocumented
+func (b *DeviceAppManagementRequestBuilder) SyncMicrosoftStoreForBusinessApps(reqObj *DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestParameter) *DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestBuilder {
+ bb := &DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/syncMicrosoftStoreForBusinessApps"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequest struct{ BaseRequest }
+
+//
+func (b *DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestBuilder) Request() *DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequest {
+ return &DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementModel.go
new file mode 100644
index 00000000..3b4251eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementModel.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceAppManagement Singleton entity that acts as a container for all device and app management functionality.
+type DeviceAppManagement struct {
+ // Entity is the base model of DeviceAppManagement
+ Entity
+ // MicrosoftStoreForBusinessLastSuccessfulSyncDateTime The last time the apps from the Microsoft Store for Business were synced successfully for the account.
+ MicrosoftStoreForBusinessLastSuccessfulSyncDateTime *time.Time `json:"microsoftStoreForBusinessLastSuccessfulSyncDateTime,omitempty"`
+ // IsEnabledForMicrosoftStoreForBusiness Whether the account is enabled for syncing applications from the Microsoft Store for Business.
+ IsEnabledForMicrosoftStoreForBusiness *bool `json:"isEnabledForMicrosoftStoreForBusiness,omitempty"`
+ // MicrosoftStoreForBusinessLanguage The locale information used to sync applications from the Microsoft Store for Business. Cultures that are specific to a country/region. The names of these cultures follow RFC 4646 (Windows Vista and later). The format is -, where is a lowercase two-letter code derived from ISO 639-1 and is an uppercase two-letter code derived from ISO 3166. For example, en-US for English (United States) is a specific culture.
+ MicrosoftStoreForBusinessLanguage *string `json:"microsoftStoreForBusinessLanguage,omitempty"`
+ // MicrosoftStoreForBusinessLastCompletedApplicationSyncTime The last time an application sync from the Microsoft Store for Business was completed.
+ MicrosoftStoreForBusinessLastCompletedApplicationSyncTime *time.Time `json:"microsoftStoreForBusinessLastCompletedApplicationSyncTime,omitempty"`
+ // MicrosoftStoreForBusinessPortalSelection The end user portal information is used to sync applications from the Microsoft Store for Business to Intune Company Portal. There are three options to pick from ['Company portal only', 'Company portal and private store', 'Private store only']
+ MicrosoftStoreForBusinessPortalSelection *MicrosoftStoreForBusinessPortalSelectionOptions `json:"microsoftStoreForBusinessPortalSelection,omitempty"`
+ // ManagedEBooks undocumented
+ ManagedEBooks []ManagedEBook `json:"managedEBooks,omitempty"`
+ // MobileApps undocumented
+ MobileApps []MobileApp `json:"mobileApps,omitempty"`
+ // MobileAppCategories undocumented
+ MobileAppCategories []MobileAppCategory `json:"mobileAppCategories,omitempty"`
+ // EnterpriseCodeSigningCertificates undocumented
+ EnterpriseCodeSigningCertificates []EnterpriseCodeSigningCertificate `json:"enterpriseCodeSigningCertificates,omitempty"`
+ // IOSLobAppProvisioningConfigurations undocumented
+ IOSLobAppProvisioningConfigurations []IOSLobAppProvisioningConfiguration `json:"iosLobAppProvisioningConfigurations,omitempty"`
+ // SymantecCodeSigningCertificate undocumented
+ SymantecCodeSigningCertificate *SymantecCodeSigningCertificate `json:"symantecCodeSigningCertificate,omitempty"`
+ // MobileAppConfigurations undocumented
+ MobileAppConfigurations []ManagedDeviceMobileAppConfiguration `json:"mobileAppConfigurations,omitempty"`
+ // ManagedEBookCategories undocumented
+ ManagedEBookCategories []ManagedEBookCategory `json:"managedEBookCategories,omitempty"`
+ // PolicySets undocumented
+ PolicySets []PolicySet `json:"policySets,omitempty"`
+ // SideLoadingKeys undocumented
+ SideLoadingKeys []SideLoadingKey `json:"sideLoadingKeys,omitempty"`
+ // VppTokens undocumented
+ VppTokens []VppToken `json:"vppTokens,omitempty"`
+ // WindowsManagementApp undocumented
+ WindowsManagementApp *WindowsManagementApp `json:"windowsManagementApp,omitempty"`
+ // ManagedAppPolicies undocumented
+ ManagedAppPolicies []ManagedAppPolicy `json:"managedAppPolicies,omitempty"`
+ // IOSManagedAppProtections undocumented
+ IOSManagedAppProtections []IOSManagedAppProtection `json:"iosManagedAppProtections,omitempty"`
+ // AndroidManagedAppProtections undocumented
+ AndroidManagedAppProtections []AndroidManagedAppProtection `json:"androidManagedAppProtections,omitempty"`
+ // DefaultManagedAppProtections undocumented
+ DefaultManagedAppProtections []DefaultManagedAppProtection `json:"defaultManagedAppProtections,omitempty"`
+ // TargetedManagedAppConfigurations undocumented
+ TargetedManagedAppConfigurations []TargetedManagedAppConfiguration `json:"targetedManagedAppConfigurations,omitempty"`
+ // MdmWindowsInformationProtectionPolicies undocumented
+ MdmWindowsInformationProtectionPolicies []MdmWindowsInformationProtectionPolicy `json:"mdmWindowsInformationProtectionPolicies,omitempty"`
+ // WindowsInformationProtectionPolicies undocumented
+ WindowsInformationProtectionPolicies []WindowsInformationProtectionPolicy `json:"windowsInformationProtectionPolicies,omitempty"`
+ // ManagedAppRegistrations undocumented
+ ManagedAppRegistrations []ManagedAppRegistration `json:"managedAppRegistrations,omitempty"`
+ // ManagedAppStatuses undocumented
+ ManagedAppStatuses []ManagedAppStatus `json:"managedAppStatuses,omitempty"`
+ // WindowsInformationProtectionDeviceRegistrations undocumented
+ WindowsInformationProtectionDeviceRegistrations []WindowsInformationProtectionDeviceRegistration `json:"windowsInformationProtectionDeviceRegistrations,omitempty"`
+ // WindowsInformationProtectionWipeActions undocumented
+ WindowsInformationProtectionWipeActions []WindowsInformationProtectionWipeAction `json:"windowsInformationProtectionWipeActions,omitempty"`
+ // DeviceAppManagementTasks undocumented
+ DeviceAppManagementTasks []DeviceAppManagementTask `json:"deviceAppManagementTasks,omitempty"`
+ // WdacSupplementalPolicies undocumented
+ WdacSupplementalPolicies []WindowsDefenderApplicationControlSupplementalPolicy `json:"wdacSupplementalPolicies,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementRequest.go
new file mode 100644
index 00000000..38e6e63e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementRequest.go
@@ -0,0 +1,2221 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceAppManagementRequestBuilder is request builder for DeviceAppManagement
+type DeviceAppManagementRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceAppManagementRequest
+func (b *DeviceAppManagementRequestBuilder) Request() *DeviceAppManagementRequest {
+ return &DeviceAppManagementRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceAppManagementRequest is request for DeviceAppManagement
+type DeviceAppManagementRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceAppManagement
+func (r *DeviceAppManagementRequest) Get(ctx context.Context) (resObj *DeviceAppManagement, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceAppManagement
+func (r *DeviceAppManagementRequest) Update(ctx context.Context, reqObj *DeviceAppManagement) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceAppManagement
+func (r *DeviceAppManagementRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidManagedAppProtections returns request builder for AndroidManagedAppProtection collection
+func (b *DeviceAppManagementRequestBuilder) AndroidManagedAppProtections() *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder {
+ bb := &DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/androidManagedAppProtections"
+ return bb
+}
+
+// DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder is request builder for AndroidManagedAppProtection collection
+type DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AndroidManagedAppProtection collection
+func (b *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder) Request() *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest {
+ return &DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AndroidManagedAppProtection item
+func (b *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder) ID(id string) *AndroidManagedAppProtectionRequestBuilder {
+ bb := &AndroidManagedAppProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest is request for AndroidManagedAppProtection collection
+type DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AndroidManagedAppProtection collection
+func (r *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AndroidManagedAppProtection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AndroidManagedAppProtection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AndroidManagedAppProtection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AndroidManagedAppProtection collection
+func (r *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest) Get(ctx context.Context) ([]AndroidManagedAppProtection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AndroidManagedAppProtection collection
+func (r *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest) Add(ctx context.Context, reqObj *AndroidManagedAppProtection) (resObj *AndroidManagedAppProtection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DefaultManagedAppProtections returns request builder for DefaultManagedAppProtection collection
+func (b *DeviceAppManagementRequestBuilder) DefaultManagedAppProtections() *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder {
+ bb := &DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/defaultManagedAppProtections"
+ return bb
+}
+
+// DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder is request builder for DefaultManagedAppProtection collection
+type DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DefaultManagedAppProtection collection
+func (b *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder) Request() *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest {
+ return &DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DefaultManagedAppProtection item
+func (b *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder) ID(id string) *DefaultManagedAppProtectionRequestBuilder {
+ bb := &DefaultManagedAppProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest is request for DefaultManagedAppProtection collection
+type DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DefaultManagedAppProtection collection
+func (r *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DefaultManagedAppProtection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DefaultManagedAppProtection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DefaultManagedAppProtection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DefaultManagedAppProtection collection
+func (r *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest) Get(ctx context.Context) ([]DefaultManagedAppProtection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DefaultManagedAppProtection collection
+func (r *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest) Add(ctx context.Context, reqObj *DefaultManagedAppProtection) (resObj *DefaultManagedAppProtection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceAppManagementTasks returns request builder for DeviceAppManagementTask collection
+func (b *DeviceAppManagementRequestBuilder) DeviceAppManagementTasks() *DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder {
+ bb := &DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceAppManagementTasks"
+ return bb
+}
+
+// DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder is request builder for DeviceAppManagementTask collection
+type DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceAppManagementTask collection
+func (b *DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder) Request() *DeviceAppManagementDeviceAppManagementTasksCollectionRequest {
+ return &DeviceAppManagementDeviceAppManagementTasksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceAppManagementTask item
+func (b *DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder) ID(id string) *DeviceAppManagementTaskRequestBuilder {
+ bb := &DeviceAppManagementTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementDeviceAppManagementTasksCollectionRequest is request for DeviceAppManagementTask collection
+type DeviceAppManagementDeviceAppManagementTasksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceAppManagementTask collection
+func (r *DeviceAppManagementDeviceAppManagementTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceAppManagementTask, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceAppManagementTask
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceAppManagementTask
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceAppManagementTask collection
+func (r *DeviceAppManagementDeviceAppManagementTasksCollectionRequest) Get(ctx context.Context) ([]DeviceAppManagementTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceAppManagementTask collection
+func (r *DeviceAppManagementDeviceAppManagementTasksCollectionRequest) Add(ctx context.Context, reqObj *DeviceAppManagementTask) (resObj *DeviceAppManagementTask, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// EnterpriseCodeSigningCertificates returns request builder for EnterpriseCodeSigningCertificate collection
+func (b *DeviceAppManagementRequestBuilder) EnterpriseCodeSigningCertificates() *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder {
+ bb := &DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/enterpriseCodeSigningCertificates"
+ return bb
+}
+
+// DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder is request builder for EnterpriseCodeSigningCertificate collection
+type DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EnterpriseCodeSigningCertificate collection
+func (b *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder) Request() *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest {
+ return &DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EnterpriseCodeSigningCertificate item
+func (b *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder) ID(id string) *EnterpriseCodeSigningCertificateRequestBuilder {
+ bb := &EnterpriseCodeSigningCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest is request for EnterpriseCodeSigningCertificate collection
+type DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EnterpriseCodeSigningCertificate collection
+func (r *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EnterpriseCodeSigningCertificate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EnterpriseCodeSigningCertificate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EnterpriseCodeSigningCertificate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EnterpriseCodeSigningCertificate collection
+func (r *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest) Get(ctx context.Context) ([]EnterpriseCodeSigningCertificate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EnterpriseCodeSigningCertificate collection
+func (r *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest) Add(ctx context.Context, reqObj *EnterpriseCodeSigningCertificate) (resObj *EnterpriseCodeSigningCertificate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IOSLobAppProvisioningConfigurations returns request builder for IOSLobAppProvisioningConfiguration collection
+func (b *DeviceAppManagementRequestBuilder) IOSLobAppProvisioningConfigurations() *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder {
+ bb := &DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/iosLobAppProvisioningConfigurations"
+ return bb
+}
+
+// DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder is request builder for IOSLobAppProvisioningConfiguration collection
+type DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IOSLobAppProvisioningConfiguration collection
+func (b *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder) Request() *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest {
+ return &DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IOSLobAppProvisioningConfiguration item
+func (b *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder) ID(id string) *IOSLobAppProvisioningConfigurationRequestBuilder {
+ bb := &IOSLobAppProvisioningConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest is request for IOSLobAppProvisioningConfiguration collection
+type DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IOSLobAppProvisioningConfiguration collection
+func (r *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]IOSLobAppProvisioningConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IOSLobAppProvisioningConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IOSLobAppProvisioningConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IOSLobAppProvisioningConfiguration collection
+func (r *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest) Get(ctx context.Context) ([]IOSLobAppProvisioningConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for IOSLobAppProvisioningConfiguration collection
+func (r *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *IOSLobAppProvisioningConfiguration) (resObj *IOSLobAppProvisioningConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IOSManagedAppProtections returns request builder for IOSManagedAppProtection collection
+func (b *DeviceAppManagementRequestBuilder) IOSManagedAppProtections() *DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder {
+ bb := &DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/iosManagedAppProtections"
+ return bb
+}
+
+// DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder is request builder for IOSManagedAppProtection collection
+type DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IOSManagedAppProtection collection
+func (b *DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder) Request() *DeviceAppManagementIOSManagedAppProtectionsCollectionRequest {
+ return &DeviceAppManagementIOSManagedAppProtectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IOSManagedAppProtection item
+func (b *DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder) ID(id string) *IOSManagedAppProtectionRequestBuilder {
+ bb := &IOSManagedAppProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementIOSManagedAppProtectionsCollectionRequest is request for IOSManagedAppProtection collection
+type DeviceAppManagementIOSManagedAppProtectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IOSManagedAppProtection collection
+func (r *DeviceAppManagementIOSManagedAppProtectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]IOSManagedAppProtection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IOSManagedAppProtection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IOSManagedAppProtection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IOSManagedAppProtection collection
+func (r *DeviceAppManagementIOSManagedAppProtectionsCollectionRequest) Get(ctx context.Context) ([]IOSManagedAppProtection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for IOSManagedAppProtection collection
+func (r *DeviceAppManagementIOSManagedAppProtectionsCollectionRequest) Add(ctx context.Context, reqObj *IOSManagedAppProtection) (resObj *IOSManagedAppProtection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedAppPolicies returns request builder for ManagedAppPolicy collection
+func (b *DeviceAppManagementRequestBuilder) ManagedAppPolicies() *DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder {
+ bb := &DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedAppPolicies"
+ return bb
+}
+
+// DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder is request builder for ManagedAppPolicy collection
+type DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedAppPolicy collection
+func (b *DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder) Request() *DeviceAppManagementManagedAppPoliciesCollectionRequest {
+ return &DeviceAppManagementManagedAppPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedAppPolicy item
+func (b *DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder) ID(id string) *ManagedAppPolicyRequestBuilder {
+ bb := &ManagedAppPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementManagedAppPoliciesCollectionRequest is request for ManagedAppPolicy collection
+type DeviceAppManagementManagedAppPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedAppPolicy collection
+func (r *DeviceAppManagementManagedAppPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedAppPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedAppPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedAppPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedAppPolicy collection
+func (r *DeviceAppManagementManagedAppPoliciesCollectionRequest) Get(ctx context.Context) ([]ManagedAppPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedAppPolicy collection
+func (r *DeviceAppManagementManagedAppPoliciesCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppPolicy) (resObj *ManagedAppPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedAppRegistrations returns request builder for ManagedAppRegistration collection
+func (b *DeviceAppManagementRequestBuilder) ManagedAppRegistrations() *DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder {
+ bb := &DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedAppRegistrations"
+ return bb
+}
+
+// DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder is request builder for ManagedAppRegistration collection
+type DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedAppRegistration collection
+func (b *DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder) Request() *DeviceAppManagementManagedAppRegistrationsCollectionRequest {
+ return &DeviceAppManagementManagedAppRegistrationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedAppRegistration item
+func (b *DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder) ID(id string) *ManagedAppRegistrationRequestBuilder {
+ bb := &ManagedAppRegistrationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementManagedAppRegistrationsCollectionRequest is request for ManagedAppRegistration collection
+type DeviceAppManagementManagedAppRegistrationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedAppRegistration collection
+func (r *DeviceAppManagementManagedAppRegistrationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedAppRegistration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedAppRegistration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedAppRegistration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedAppRegistration collection
+func (r *DeviceAppManagementManagedAppRegistrationsCollectionRequest) Get(ctx context.Context) ([]ManagedAppRegistration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedAppRegistration collection
+func (r *DeviceAppManagementManagedAppRegistrationsCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppRegistration) (resObj *ManagedAppRegistration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedAppStatuses returns request builder for ManagedAppStatus collection
+func (b *DeviceAppManagementRequestBuilder) ManagedAppStatuses() *DeviceAppManagementManagedAppStatusesCollectionRequestBuilder {
+ bb := &DeviceAppManagementManagedAppStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedAppStatuses"
+ return bb
+}
+
+// DeviceAppManagementManagedAppStatusesCollectionRequestBuilder is request builder for ManagedAppStatus collection
+type DeviceAppManagementManagedAppStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedAppStatus collection
+func (b *DeviceAppManagementManagedAppStatusesCollectionRequestBuilder) Request() *DeviceAppManagementManagedAppStatusesCollectionRequest {
+ return &DeviceAppManagementManagedAppStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedAppStatus item
+func (b *DeviceAppManagementManagedAppStatusesCollectionRequestBuilder) ID(id string) *ManagedAppStatusRequestBuilder {
+ bb := &ManagedAppStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementManagedAppStatusesCollectionRequest is request for ManagedAppStatus collection
+type DeviceAppManagementManagedAppStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedAppStatus collection
+func (r *DeviceAppManagementManagedAppStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedAppStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedAppStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedAppStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedAppStatus collection
+func (r *DeviceAppManagementManagedAppStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedAppStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedAppStatus collection
+func (r *DeviceAppManagementManagedAppStatusesCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppStatus) (resObj *ManagedAppStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedEBookCategories returns request builder for ManagedEBookCategory collection
+func (b *DeviceAppManagementRequestBuilder) ManagedEBookCategories() *DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder {
+ bb := &DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedEBookCategories"
+ return bb
+}
+
+// DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder is request builder for ManagedEBookCategory collection
+type DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedEBookCategory collection
+func (b *DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder) Request() *DeviceAppManagementManagedEBookCategoriesCollectionRequest {
+ return &DeviceAppManagementManagedEBookCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedEBookCategory item
+func (b *DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder) ID(id string) *ManagedEBookCategoryRequestBuilder {
+ bb := &ManagedEBookCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementManagedEBookCategoriesCollectionRequest is request for ManagedEBookCategory collection
+type DeviceAppManagementManagedEBookCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedEBookCategory collection
+func (r *DeviceAppManagementManagedEBookCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedEBookCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedEBookCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedEBookCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedEBookCategory collection
+func (r *DeviceAppManagementManagedEBookCategoriesCollectionRequest) Get(ctx context.Context) ([]ManagedEBookCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedEBookCategory collection
+func (r *DeviceAppManagementManagedEBookCategoriesCollectionRequest) Add(ctx context.Context, reqObj *ManagedEBookCategory) (resObj *ManagedEBookCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedEBooks returns request builder for ManagedEBook collection
+func (b *DeviceAppManagementRequestBuilder) ManagedEBooks() *DeviceAppManagementManagedEBooksCollectionRequestBuilder {
+ bb := &DeviceAppManagementManagedEBooksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedEBooks"
+ return bb
+}
+
+// DeviceAppManagementManagedEBooksCollectionRequestBuilder is request builder for ManagedEBook collection
+type DeviceAppManagementManagedEBooksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedEBook collection
+func (b *DeviceAppManagementManagedEBooksCollectionRequestBuilder) Request() *DeviceAppManagementManagedEBooksCollectionRequest {
+ return &DeviceAppManagementManagedEBooksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedEBook item
+func (b *DeviceAppManagementManagedEBooksCollectionRequestBuilder) ID(id string) *ManagedEBookRequestBuilder {
+ bb := &ManagedEBookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementManagedEBooksCollectionRequest is request for ManagedEBook collection
+type DeviceAppManagementManagedEBooksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedEBook collection
+func (r *DeviceAppManagementManagedEBooksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedEBook, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedEBook
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedEBook
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedEBook collection
+func (r *DeviceAppManagementManagedEBooksCollectionRequest) Get(ctx context.Context) ([]ManagedEBook, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedEBook collection
+func (r *DeviceAppManagementManagedEBooksCollectionRequest) Add(ctx context.Context, reqObj *ManagedEBook) (resObj *ManagedEBook, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MdmWindowsInformationProtectionPolicies returns request builder for MdmWindowsInformationProtectionPolicy collection
+func (b *DeviceAppManagementRequestBuilder) MdmWindowsInformationProtectionPolicies() *DeviceAppManagementMdmWindowsInformationProtectionPoliciesCollectionRequestBuilder {
+ bb := &DeviceAppManagementMdmWindowsInformationProtectionPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mdmWindowsInformationProtectionPolicies"
+ return bb
+}
+
+// DeviceAppManagementMdmWindowsInformationProtectionPoliciesCollectionRequestBuilder is request builder for MdmWindowsInformationProtectionPolicy collection
+type DeviceAppManagementMdmWindowsInformationProtectionPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MdmWindowsInformationProtectionPolicy collection
+func (b *DeviceAppManagementMdmWindowsInformationProtectionPoliciesCollectionRequestBuilder) Request() *DeviceAppManagementMdmWindowsInformationProtectionPoliciesCollectionRequest {
+ return &DeviceAppManagementMdmWindowsInformationProtectionPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MdmWindowsInformationProtectionPolicy item
+func (b *DeviceAppManagementMdmWindowsInformationProtectionPoliciesCollectionRequestBuilder) ID(id string) *MdmWindowsInformationProtectionPolicyRequestBuilder {
+ bb := &MdmWindowsInformationProtectionPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementMdmWindowsInformationProtectionPoliciesCollectionRequest is request for MdmWindowsInformationProtectionPolicy collection
+type DeviceAppManagementMdmWindowsInformationProtectionPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MdmWindowsInformationProtectionPolicy collection
+func (r *DeviceAppManagementMdmWindowsInformationProtectionPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MdmWindowsInformationProtectionPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MdmWindowsInformationProtectionPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MdmWindowsInformationProtectionPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MdmWindowsInformationProtectionPolicy collection
+func (r *DeviceAppManagementMdmWindowsInformationProtectionPoliciesCollectionRequest) Get(ctx context.Context) ([]MdmWindowsInformationProtectionPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MdmWindowsInformationProtectionPolicy collection
+func (r *DeviceAppManagementMdmWindowsInformationProtectionPoliciesCollectionRequest) Add(ctx context.Context, reqObj *MdmWindowsInformationProtectionPolicy) (resObj *MdmWindowsInformationProtectionPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MobileAppCategories returns request builder for MobileAppCategory collection
+func (b *DeviceAppManagementRequestBuilder) MobileAppCategories() *DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder {
+ bb := &DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mobileAppCategories"
+ return bb
+}
+
+// DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder is request builder for MobileAppCategory collection
+type DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppCategory collection
+func (b *DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder) Request() *DeviceAppManagementMobileAppCategoriesCollectionRequest {
+ return &DeviceAppManagementMobileAppCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppCategory item
+func (b *DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder) ID(id string) *MobileAppCategoryRequestBuilder {
+ bb := &MobileAppCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementMobileAppCategoriesCollectionRequest is request for MobileAppCategory collection
+type DeviceAppManagementMobileAppCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppCategory collection
+func (r *DeviceAppManagementMobileAppCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MobileAppCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppCategory collection
+func (r *DeviceAppManagementMobileAppCategoriesCollectionRequest) Get(ctx context.Context) ([]MobileAppCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MobileAppCategory collection
+func (r *DeviceAppManagementMobileAppCategoriesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppCategory) (resObj *MobileAppCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MobileAppConfigurations returns request builder for ManagedDeviceMobileAppConfiguration collection
+func (b *DeviceAppManagementRequestBuilder) MobileAppConfigurations() *DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder {
+ bb := &DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mobileAppConfigurations"
+ return bb
+}
+
+// DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfiguration collection
+type DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceMobileAppConfiguration collection
+func (b *DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder) Request() *DeviceAppManagementMobileAppConfigurationsCollectionRequest {
+ return &DeviceAppManagementMobileAppConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceMobileAppConfiguration item
+func (b *DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementMobileAppConfigurationsCollectionRequest is request for ManagedDeviceMobileAppConfiguration collection
+type DeviceAppManagementMobileAppConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceMobileAppConfiguration collection
+func (r *DeviceAppManagementMobileAppConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceMobileAppConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceMobileAppConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceMobileAppConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfiguration collection
+func (r *DeviceAppManagementMobileAppConfigurationsCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceMobileAppConfiguration collection
+func (r *DeviceAppManagementMobileAppConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfiguration) (resObj *ManagedDeviceMobileAppConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MobileApps returns request builder for MobileApp collection
+func (b *DeviceAppManagementRequestBuilder) MobileApps() *DeviceAppManagementMobileAppsCollectionRequestBuilder {
+ bb := &DeviceAppManagementMobileAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mobileApps"
+ return bb
+}
+
+// DeviceAppManagementMobileAppsCollectionRequestBuilder is request builder for MobileApp collection
+type DeviceAppManagementMobileAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileApp collection
+func (b *DeviceAppManagementMobileAppsCollectionRequestBuilder) Request() *DeviceAppManagementMobileAppsCollectionRequest {
+ return &DeviceAppManagementMobileAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileApp item
+func (b *DeviceAppManagementMobileAppsCollectionRequestBuilder) ID(id string) *MobileAppRequestBuilder {
+ bb := &MobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementMobileAppsCollectionRequest is request for MobileApp collection
+type DeviceAppManagementMobileAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileApp collection
+func (r *DeviceAppManagementMobileAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MobileApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileApp collection
+func (r *DeviceAppManagementMobileAppsCollectionRequest) Get(ctx context.Context) ([]MobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MobileApp collection
+func (r *DeviceAppManagementMobileAppsCollectionRequest) Add(ctx context.Context, reqObj *MobileApp) (resObj *MobileApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PolicySets returns request builder for PolicySet collection
+func (b *DeviceAppManagementRequestBuilder) PolicySets() *DeviceAppManagementPolicySetsCollectionRequestBuilder {
+ bb := &DeviceAppManagementPolicySetsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policySets"
+ return bb
+}
+
+// DeviceAppManagementPolicySetsCollectionRequestBuilder is request builder for PolicySet collection
+type DeviceAppManagementPolicySetsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PolicySet collection
+func (b *DeviceAppManagementPolicySetsCollectionRequestBuilder) Request() *DeviceAppManagementPolicySetsCollectionRequest {
+ return &DeviceAppManagementPolicySetsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PolicySet item
+func (b *DeviceAppManagementPolicySetsCollectionRequestBuilder) ID(id string) *PolicySetRequestBuilder {
+ bb := &PolicySetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementPolicySetsCollectionRequest is request for PolicySet collection
+type DeviceAppManagementPolicySetsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PolicySet collection
+func (r *DeviceAppManagementPolicySetsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PolicySet, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PolicySet
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PolicySet
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PolicySet collection
+func (r *DeviceAppManagementPolicySetsCollectionRequest) Get(ctx context.Context) ([]PolicySet, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PolicySet collection
+func (r *DeviceAppManagementPolicySetsCollectionRequest) Add(ctx context.Context, reqObj *PolicySet) (resObj *PolicySet, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SideLoadingKeys returns request builder for SideLoadingKey collection
+func (b *DeviceAppManagementRequestBuilder) SideLoadingKeys() *DeviceAppManagementSideLoadingKeysCollectionRequestBuilder {
+ bb := &DeviceAppManagementSideLoadingKeysCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sideLoadingKeys"
+ return bb
+}
+
+// DeviceAppManagementSideLoadingKeysCollectionRequestBuilder is request builder for SideLoadingKey collection
+type DeviceAppManagementSideLoadingKeysCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SideLoadingKey collection
+func (b *DeviceAppManagementSideLoadingKeysCollectionRequestBuilder) Request() *DeviceAppManagementSideLoadingKeysCollectionRequest {
+ return &DeviceAppManagementSideLoadingKeysCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SideLoadingKey item
+func (b *DeviceAppManagementSideLoadingKeysCollectionRequestBuilder) ID(id string) *SideLoadingKeyRequestBuilder {
+ bb := &SideLoadingKeyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementSideLoadingKeysCollectionRequest is request for SideLoadingKey collection
+type DeviceAppManagementSideLoadingKeysCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SideLoadingKey collection
+func (r *DeviceAppManagementSideLoadingKeysCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SideLoadingKey, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SideLoadingKey
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SideLoadingKey
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SideLoadingKey collection
+func (r *DeviceAppManagementSideLoadingKeysCollectionRequest) Get(ctx context.Context) ([]SideLoadingKey, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SideLoadingKey collection
+func (r *DeviceAppManagementSideLoadingKeysCollectionRequest) Add(ctx context.Context, reqObj *SideLoadingKey) (resObj *SideLoadingKey, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SymantecCodeSigningCertificate is navigation property
+func (b *DeviceAppManagementRequestBuilder) SymantecCodeSigningCertificate() *SymantecCodeSigningCertificateRequestBuilder {
+ bb := &SymantecCodeSigningCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/symantecCodeSigningCertificate"
+ return bb
+}
+
+// TargetedManagedAppConfigurations returns request builder for TargetedManagedAppConfiguration collection
+func (b *DeviceAppManagementRequestBuilder) TargetedManagedAppConfigurations() *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder {
+ bb := &DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/targetedManagedAppConfigurations"
+ return bb
+}
+
+// DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder is request builder for TargetedManagedAppConfiguration collection
+type DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TargetedManagedAppConfiguration collection
+func (b *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder) Request() *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest {
+ return &DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TargetedManagedAppConfiguration item
+func (b *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder) ID(id string) *TargetedManagedAppConfigurationRequestBuilder {
+ bb := &TargetedManagedAppConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest is request for TargetedManagedAppConfiguration collection
+type DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TargetedManagedAppConfiguration collection
+func (r *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TargetedManagedAppConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TargetedManagedAppConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TargetedManagedAppConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TargetedManagedAppConfiguration collection
+func (r *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest) Get(ctx context.Context) ([]TargetedManagedAppConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TargetedManagedAppConfiguration collection
+func (r *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *TargetedManagedAppConfiguration) (resObj *TargetedManagedAppConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// VppTokens returns request builder for VppToken collection
+func (b *DeviceAppManagementRequestBuilder) VppTokens() *DeviceAppManagementVppTokensCollectionRequestBuilder {
+ bb := &DeviceAppManagementVppTokensCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/vppTokens"
+ return bb
+}
+
+// DeviceAppManagementVppTokensCollectionRequestBuilder is request builder for VppToken collection
+type DeviceAppManagementVppTokensCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for VppToken collection
+func (b *DeviceAppManagementVppTokensCollectionRequestBuilder) Request() *DeviceAppManagementVppTokensCollectionRequest {
+ return &DeviceAppManagementVppTokensCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for VppToken item
+func (b *DeviceAppManagementVppTokensCollectionRequestBuilder) ID(id string) *VppTokenRequestBuilder {
+ bb := &VppTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementVppTokensCollectionRequest is request for VppToken collection
+type DeviceAppManagementVppTokensCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for VppToken collection
+func (r *DeviceAppManagementVppTokensCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]VppToken, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []VppToken
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []VppToken
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for VppToken collection
+func (r *DeviceAppManagementVppTokensCollectionRequest) Get(ctx context.Context) ([]VppToken, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for VppToken collection
+func (r *DeviceAppManagementVppTokensCollectionRequest) Add(ctx context.Context, reqObj *VppToken) (resObj *VppToken, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WdacSupplementalPolicies returns request builder for WindowsDefenderApplicationControlSupplementalPolicy collection
+func (b *DeviceAppManagementRequestBuilder) WdacSupplementalPolicies() *DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder {
+ bb := &DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/wdacSupplementalPolicies"
+ return bb
+}
+
+// DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicy collection
+type DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsDefenderApplicationControlSupplementalPolicy collection
+func (b *DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder) Request() *DeviceAppManagementWdacSupplementalPoliciesCollectionRequest {
+ return &DeviceAppManagementWdacSupplementalPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsDefenderApplicationControlSupplementalPolicy item
+func (b *DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder) ID(id string) *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder {
+ bb := &WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementWdacSupplementalPoliciesCollectionRequest is request for WindowsDefenderApplicationControlSupplementalPolicy collection
+type DeviceAppManagementWdacSupplementalPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsDefenderApplicationControlSupplementalPolicy collection
+func (r *DeviceAppManagementWdacSupplementalPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsDefenderApplicationControlSupplementalPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsDefenderApplicationControlSupplementalPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsDefenderApplicationControlSupplementalPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicy collection
+func (r *DeviceAppManagementWdacSupplementalPoliciesCollectionRequest) Get(ctx context.Context) ([]WindowsDefenderApplicationControlSupplementalPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsDefenderApplicationControlSupplementalPolicy collection
+func (r *DeviceAppManagementWdacSupplementalPoliciesCollectionRequest) Add(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicy) (resObj *WindowsDefenderApplicationControlSupplementalPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsInformationProtectionDeviceRegistrations returns request builder for WindowsInformationProtectionDeviceRegistration collection
+func (b *DeviceAppManagementRequestBuilder) WindowsInformationProtectionDeviceRegistrations() *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder {
+ bb := &DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsInformationProtectionDeviceRegistrations"
+ return bb
+}
+
+// DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder is request builder for WindowsInformationProtectionDeviceRegistration collection
+type DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsInformationProtectionDeviceRegistration collection
+func (b *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder) Request() *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest {
+ return &DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsInformationProtectionDeviceRegistration item
+func (b *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionDeviceRegistrationRequestBuilder {
+ bb := &WindowsInformationProtectionDeviceRegistrationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest is request for WindowsInformationProtectionDeviceRegistration collection
+type DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsInformationProtectionDeviceRegistration collection
+func (r *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsInformationProtectionDeviceRegistration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsInformationProtectionDeviceRegistration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsInformationProtectionDeviceRegistration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsInformationProtectionDeviceRegistration collection
+func (r *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionDeviceRegistration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsInformationProtectionDeviceRegistration collection
+func (r *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionDeviceRegistration) (resObj *WindowsInformationProtectionDeviceRegistration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsInformationProtectionPolicies returns request builder for WindowsInformationProtectionPolicy collection
+func (b *DeviceAppManagementRequestBuilder) WindowsInformationProtectionPolicies() *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder {
+ bb := &DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsInformationProtectionPolicies"
+ return bb
+}
+
+// DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder is request builder for WindowsInformationProtectionPolicy collection
+type DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsInformationProtectionPolicy collection
+func (b *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder) Request() *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest {
+ return &DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsInformationProtectionPolicy item
+func (b *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionPolicyRequestBuilder {
+ bb := &WindowsInformationProtectionPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest is request for WindowsInformationProtectionPolicy collection
+type DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsInformationProtectionPolicy collection
+func (r *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsInformationProtectionPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsInformationProtectionPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsInformationProtectionPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsInformationProtectionPolicy collection
+func (r *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsInformationProtectionPolicy collection
+func (r *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionPolicy) (resObj *WindowsInformationProtectionPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsInformationProtectionWipeActions returns request builder for WindowsInformationProtectionWipeAction collection
+func (b *DeviceAppManagementRequestBuilder) WindowsInformationProtectionWipeActions() *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder {
+ bb := &DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsInformationProtectionWipeActions"
+ return bb
+}
+
+// DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder is request builder for WindowsInformationProtectionWipeAction collection
+type DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsInformationProtectionWipeAction collection
+func (b *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder) Request() *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest {
+ return &DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsInformationProtectionWipeAction item
+func (b *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionWipeActionRequestBuilder {
+ bb := &WindowsInformationProtectionWipeActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest is request for WindowsInformationProtectionWipeAction collection
+type DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsInformationProtectionWipeAction collection
+func (r *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsInformationProtectionWipeAction, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsInformationProtectionWipeAction
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsInformationProtectionWipeAction
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsInformationProtectionWipeAction collection
+func (r *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionWipeAction, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsInformationProtectionWipeAction collection
+func (r *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionWipeAction) (resObj *WindowsInformationProtectionWipeAction, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsManagementApp is navigation property
+func (b *DeviceAppManagementRequestBuilder) WindowsManagementApp() *WindowsManagementAppRequestBuilder {
+ bb := &WindowsManagementAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsManagementApp"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskAction.go
new file mode 100644
index 00000000..57148226
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskAction.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceAppManagementTaskUpdateStatusRequestParameter undocumented
+type DeviceAppManagementTaskUpdateStatusRequestParameter struct {
+ // Status undocumented
+ Status *DeviceAppManagementTaskStatus `json:"status,omitempty"`
+ // Note undocumented
+ Note *string `json:"note,omitempty"`
+}
+
+//
+type DeviceAppManagementTaskUpdateStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateStatus action undocumented
+func (b *DeviceAppManagementTaskRequestBuilder) UpdateStatus(reqObj *DeviceAppManagementTaskUpdateStatusRequestParameter) *DeviceAppManagementTaskUpdateStatusRequestBuilder {
+ bb := &DeviceAppManagementTaskUpdateStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateStatus"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceAppManagementTaskUpdateStatusRequest struct{ BaseRequest }
+
+//
+func (b *DeviceAppManagementTaskUpdateStatusRequestBuilder) Request() *DeviceAppManagementTaskUpdateStatusRequest {
+ return &DeviceAppManagementTaskUpdateStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceAppManagementTaskUpdateStatusRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskCategoryEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskCategoryEnum.go
new file mode 100644
index 00000000..c6fc64e6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskCategoryEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceAppManagementTaskCategory undocumented
+type DeviceAppManagementTaskCategory int
+
+const (
+ // DeviceAppManagementTaskCategoryVUnknown undocumented
+ DeviceAppManagementTaskCategoryVUnknown DeviceAppManagementTaskCategory = 0
+ // DeviceAppManagementTaskCategoryVAdvancedThreatProtection undocumented
+ DeviceAppManagementTaskCategoryVAdvancedThreatProtection DeviceAppManagementTaskCategory = 1
+)
+
+// DeviceAppManagementTaskCategoryPUnknown returns a pointer to DeviceAppManagementTaskCategoryVUnknown
+func DeviceAppManagementTaskCategoryPUnknown() *DeviceAppManagementTaskCategory {
+ v := DeviceAppManagementTaskCategoryVUnknown
+ return &v
+}
+
+// DeviceAppManagementTaskCategoryPAdvancedThreatProtection returns a pointer to DeviceAppManagementTaskCategoryVAdvancedThreatProtection
+func DeviceAppManagementTaskCategoryPAdvancedThreatProtection() *DeviceAppManagementTaskCategory {
+ v := DeviceAppManagementTaskCategoryVAdvancedThreatProtection
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskModel.go
new file mode 100644
index 00000000..fff86b3e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceAppManagementTask A device app management task.
+type DeviceAppManagementTask struct {
+ // Entity is the base model of DeviceAppManagementTask
+ Entity
+ // DisplayName The name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The description.
+ Description *string `json:"description,omitempty"`
+ // CreatedDateTime The created date.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DueDateTime The due date.
+ DueDateTime *time.Time `json:"dueDateTime,omitempty"`
+ // Category The category.
+ Category *DeviceAppManagementTaskCategory `json:"category,omitempty"`
+ // Priority The priority.
+ Priority *DeviceAppManagementTaskPriority `json:"priority,omitempty"`
+ // Creator The email address of the creator.
+ Creator *string `json:"creator,omitempty"`
+ // CreatorNotes Notes from the creator.
+ CreatorNotes *string `json:"creatorNotes,omitempty"`
+ // AssignedTo The name or email of the admin this task is assigned to.
+ AssignedTo *string `json:"assignedTo,omitempty"`
+ // Status The status.
+ Status *DeviceAppManagementTaskStatus `json:"status,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskPriorityEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskPriorityEnum.go
new file mode 100644
index 00000000..34cf2d60
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskPriorityEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceAppManagementTaskPriority undocumented
+type DeviceAppManagementTaskPriority int
+
+const (
+ // DeviceAppManagementTaskPriorityVNone undocumented
+ DeviceAppManagementTaskPriorityVNone DeviceAppManagementTaskPriority = 0
+ // DeviceAppManagementTaskPriorityVHigh undocumented
+ DeviceAppManagementTaskPriorityVHigh DeviceAppManagementTaskPriority = 1
+ // DeviceAppManagementTaskPriorityVLow undocumented
+ DeviceAppManagementTaskPriorityVLow DeviceAppManagementTaskPriority = 2
+)
+
+// DeviceAppManagementTaskPriorityPNone returns a pointer to DeviceAppManagementTaskPriorityVNone
+func DeviceAppManagementTaskPriorityPNone() *DeviceAppManagementTaskPriority {
+ v := DeviceAppManagementTaskPriorityVNone
+ return &v
+}
+
+// DeviceAppManagementTaskPriorityPHigh returns a pointer to DeviceAppManagementTaskPriorityVHigh
+func DeviceAppManagementTaskPriorityPHigh() *DeviceAppManagementTaskPriority {
+ v := DeviceAppManagementTaskPriorityVHigh
+ return &v
+}
+
+// DeviceAppManagementTaskPriorityPLow returns a pointer to DeviceAppManagementTaskPriorityVLow
+func DeviceAppManagementTaskPriorityPLow() *DeviceAppManagementTaskPriority {
+ v := DeviceAppManagementTaskPriorityVLow
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskRequest.go
new file mode 100644
index 00000000..e190e5d8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceAppManagementTaskRequestBuilder is request builder for DeviceAppManagementTask
+type DeviceAppManagementTaskRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceAppManagementTaskRequest
+func (b *DeviceAppManagementTaskRequestBuilder) Request() *DeviceAppManagementTaskRequest {
+ return &DeviceAppManagementTaskRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceAppManagementTaskRequest is request for DeviceAppManagementTask
+type DeviceAppManagementTaskRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceAppManagementTask
+func (r *DeviceAppManagementTaskRequest) Get(ctx context.Context) (resObj *DeviceAppManagementTask, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceAppManagementTask
+func (r *DeviceAppManagementTaskRequest) Update(ctx context.Context, reqObj *DeviceAppManagementTask) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceAppManagementTask
+func (r *DeviceAppManagementTaskRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskStatusEnum.go
new file mode 100644
index 00000000..7c5ce4c0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceAppManagementTaskStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceAppManagementTaskStatus undocumented
+type DeviceAppManagementTaskStatus int
+
+const (
+ // DeviceAppManagementTaskStatusVUnknown undocumented
+ DeviceAppManagementTaskStatusVUnknown DeviceAppManagementTaskStatus = 0
+ // DeviceAppManagementTaskStatusVPending undocumented
+ DeviceAppManagementTaskStatusVPending DeviceAppManagementTaskStatus = 1
+ // DeviceAppManagementTaskStatusVActive undocumented
+ DeviceAppManagementTaskStatusVActive DeviceAppManagementTaskStatus = 2
+ // DeviceAppManagementTaskStatusVCompleted undocumented
+ DeviceAppManagementTaskStatusVCompleted DeviceAppManagementTaskStatus = 3
+ // DeviceAppManagementTaskStatusVRejected undocumented
+ DeviceAppManagementTaskStatusVRejected DeviceAppManagementTaskStatus = 4
+)
+
+// DeviceAppManagementTaskStatusPUnknown returns a pointer to DeviceAppManagementTaskStatusVUnknown
+func DeviceAppManagementTaskStatusPUnknown() *DeviceAppManagementTaskStatus {
+ v := DeviceAppManagementTaskStatusVUnknown
+ return &v
+}
+
+// DeviceAppManagementTaskStatusPPending returns a pointer to DeviceAppManagementTaskStatusVPending
+func DeviceAppManagementTaskStatusPPending() *DeviceAppManagementTaskStatus {
+ v := DeviceAppManagementTaskStatusVPending
+ return &v
+}
+
+// DeviceAppManagementTaskStatusPActive returns a pointer to DeviceAppManagementTaskStatusVActive
+func DeviceAppManagementTaskStatusPActive() *DeviceAppManagementTaskStatus {
+ v := DeviceAppManagementTaskStatusVActive
+ return &v
+}
+
+// DeviceAppManagementTaskStatusPCompleted returns a pointer to DeviceAppManagementTaskStatusVCompleted
+func DeviceAppManagementTaskStatusPCompleted() *DeviceAppManagementTaskStatus {
+ v := DeviceAppManagementTaskStatusVCompleted
+ return &v
+}
+
+// DeviceAppManagementTaskStatusPRejected returns a pointer to DeviceAppManagementTaskStatusVRejected
+func DeviceAppManagementTaskStatusPRejected() *DeviceAppManagementTaskStatus {
+ v := DeviceAppManagementTaskStatusVRejected
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCategoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCategoryModel.go
new file mode 100644
index 00000000..3aa58b42
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCategoryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceCategory Device categories provides a way to organize your devices. Using device categories, company administrators can define their own categories that make sense to their company. These categories can then be applied to a device in the Intune Azure console or selected by a user during device enrollment. You can filter reports and create dynamic Azure Active Directory device groups based on device categories.
+type DeviceCategory struct {
+ // Entity is the base model of DeviceCategory
+ Entity
+ // DisplayName Display name for the device category.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Optional description for the device category.
+ Description *string `json:"description,omitempty"`
+ // RoleScopeTagIDs Optional role scope tags for the device category.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCategoryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCategoryRequest.go
new file mode 100644
index 00000000..0523ac45
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCategoryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceCategoryRequestBuilder is request builder for DeviceCategory
+type DeviceCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceCategoryRequest
+func (b *DeviceCategoryRequestBuilder) Request() *DeviceCategoryRequest {
+ return &DeviceCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceCategoryRequest is request for DeviceCategory
+type DeviceCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceCategory
+func (r *DeviceCategoryRequest) Get(ctx context.Context) (resObj *DeviceCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceCategory
+func (r *DeviceCategoryRequest) Update(ctx context.Context, reqObj *DeviceCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceCategory
+func (r *DeviceCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceActionItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceActionItemModel.go
new file mode 100644
index 00000000..af4d8a1c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceActionItemModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceComplianceActionItem Scheduled Action Configuration
+type DeviceComplianceActionItem struct {
+ // Entity is the base model of DeviceComplianceActionItem
+ Entity
+ // GracePeriodHours Number of hours to wait till the action will be enforced. Valid values 0 to 8760
+ GracePeriodHours *int `json:"gracePeriodHours,omitempty"`
+ // ActionType What action to take
+ ActionType *DeviceComplianceActionType `json:"actionType,omitempty"`
+ // NotificationTemplateID What notification Message template to use
+ NotificationTemplateID *string `json:"notificationTemplateId,omitempty"`
+ // NotificationMessageCCList A list of group IDs to speicify who to CC this notification message to.
+ NotificationMessageCCList []string `json:"notificationMessageCCList,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceActionItemRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceActionItemRequest.go
new file mode 100644
index 00000000..9133321d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceActionItemRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceComplianceActionItemRequestBuilder is request builder for DeviceComplianceActionItem
+type DeviceComplianceActionItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceComplianceActionItemRequest
+func (b *DeviceComplianceActionItemRequestBuilder) Request() *DeviceComplianceActionItemRequest {
+ return &DeviceComplianceActionItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceComplianceActionItemRequest is request for DeviceComplianceActionItem
+type DeviceComplianceActionItemRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceComplianceActionItem
+func (r *DeviceComplianceActionItemRequest) Get(ctx context.Context) (resObj *DeviceComplianceActionItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceComplianceActionItem
+func (r *DeviceComplianceActionItemRequest) Update(ctx context.Context, reqObj *DeviceComplianceActionItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceComplianceActionItem
+func (r *DeviceComplianceActionItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceActionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceActionTypeEnum.go
new file mode 100644
index 00000000..f8faed51
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceActionTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceComplianceActionType undocumented
+type DeviceComplianceActionType int
+
+const (
+ // DeviceComplianceActionTypeVNoAction undocumented
+ DeviceComplianceActionTypeVNoAction DeviceComplianceActionType = 0
+ // DeviceComplianceActionTypeVNotification undocumented
+ DeviceComplianceActionTypeVNotification DeviceComplianceActionType = 1
+ // DeviceComplianceActionTypeVBlock undocumented
+ DeviceComplianceActionTypeVBlock DeviceComplianceActionType = 2
+ // DeviceComplianceActionTypeVRetire undocumented
+ DeviceComplianceActionTypeVRetire DeviceComplianceActionType = 3
+ // DeviceComplianceActionTypeVWipe undocumented
+ DeviceComplianceActionTypeVWipe DeviceComplianceActionType = 4
+ // DeviceComplianceActionTypeVRemoveResourceAccessProfiles undocumented
+ DeviceComplianceActionTypeVRemoveResourceAccessProfiles DeviceComplianceActionType = 5
+ // DeviceComplianceActionTypeVPushNotification undocumented
+ DeviceComplianceActionTypeVPushNotification DeviceComplianceActionType = 9
+ // DeviceComplianceActionTypeVRemoteLock undocumented
+ DeviceComplianceActionTypeVRemoteLock DeviceComplianceActionType = 10
+)
+
+// DeviceComplianceActionTypePNoAction returns a pointer to DeviceComplianceActionTypeVNoAction
+func DeviceComplianceActionTypePNoAction() *DeviceComplianceActionType {
+ v := DeviceComplianceActionTypeVNoAction
+ return &v
+}
+
+// DeviceComplianceActionTypePNotification returns a pointer to DeviceComplianceActionTypeVNotification
+func DeviceComplianceActionTypePNotification() *DeviceComplianceActionType {
+ v := DeviceComplianceActionTypeVNotification
+ return &v
+}
+
+// DeviceComplianceActionTypePBlock returns a pointer to DeviceComplianceActionTypeVBlock
+func DeviceComplianceActionTypePBlock() *DeviceComplianceActionType {
+ v := DeviceComplianceActionTypeVBlock
+ return &v
+}
+
+// DeviceComplianceActionTypePRetire returns a pointer to DeviceComplianceActionTypeVRetire
+func DeviceComplianceActionTypePRetire() *DeviceComplianceActionType {
+ v := DeviceComplianceActionTypeVRetire
+ return &v
+}
+
+// DeviceComplianceActionTypePWipe returns a pointer to DeviceComplianceActionTypeVWipe
+func DeviceComplianceActionTypePWipe() *DeviceComplianceActionType {
+ v := DeviceComplianceActionTypeVWipe
+ return &v
+}
+
+// DeviceComplianceActionTypePRemoveResourceAccessProfiles returns a pointer to DeviceComplianceActionTypeVRemoveResourceAccessProfiles
+func DeviceComplianceActionTypePRemoveResourceAccessProfiles() *DeviceComplianceActionType {
+ v := DeviceComplianceActionTypeVRemoveResourceAccessProfiles
+ return &v
+}
+
+// DeviceComplianceActionTypePPushNotification returns a pointer to DeviceComplianceActionTypeVPushNotification
+func DeviceComplianceActionTypePPushNotification() *DeviceComplianceActionType {
+ v := DeviceComplianceActionTypeVPushNotification
+ return &v
+}
+
+// DeviceComplianceActionTypePRemoteLock returns a pointer to DeviceComplianceActionTypeVRemoteLock
+func DeviceComplianceActionTypePRemoteLock() *DeviceComplianceActionType {
+ v := DeviceComplianceActionTypeVRemoteLock
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceDeviceOverviewModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceDeviceOverviewModel.go
new file mode 100644
index 00000000..9cd4dfd7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceDeviceOverviewModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceComplianceDeviceOverview undocumented
+type DeviceComplianceDeviceOverview struct {
+ // Entity is the base model of DeviceComplianceDeviceOverview
+ Entity
+ // PendingCount Number of pending devices
+ PendingCount *int `json:"pendingCount,omitempty"`
+ // NotApplicableCount Number of not applicable devices
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // NotApplicablePlatformCount Number of not applicable devices due to mismatch platform and policy
+ NotApplicablePlatformCount *int `json:"notApplicablePlatformCount,omitempty"`
+ // SuccessCount Number of succeeded devices
+ SuccessCount *int `json:"successCount,omitempty"`
+ // ErrorCount Number of error devices
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // FailedCount Number of failed devices
+ FailedCount *int `json:"failedCount,omitempty"`
+ // ConflictCount Number of devices in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // LastUpdateDateTime Last update time
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+ // ConfigurationVersion Version of the policy for that overview
+ ConfigurationVersion *int `json:"configurationVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceDeviceOverviewRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceDeviceOverviewRequest.go
new file mode 100644
index 00000000..12cfb672
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceDeviceOverviewRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceComplianceDeviceOverviewRequestBuilder is request builder for DeviceComplianceDeviceOverview
+type DeviceComplianceDeviceOverviewRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceComplianceDeviceOverviewRequest
+func (b *DeviceComplianceDeviceOverviewRequestBuilder) Request() *DeviceComplianceDeviceOverviewRequest {
+ return &DeviceComplianceDeviceOverviewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceComplianceDeviceOverviewRequest is request for DeviceComplianceDeviceOverview
+type DeviceComplianceDeviceOverviewRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceComplianceDeviceOverview
+func (r *DeviceComplianceDeviceOverviewRequest) Get(ctx context.Context) (resObj *DeviceComplianceDeviceOverview, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceComplianceDeviceOverview
+func (r *DeviceComplianceDeviceOverviewRequest) Update(ctx context.Context, reqObj *DeviceComplianceDeviceOverview) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceComplianceDeviceOverview
+func (r *DeviceComplianceDeviceOverviewRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceDeviceStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceDeviceStatusModel.go
new file mode 100644
index 00000000..f1569335
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceDeviceStatusModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceComplianceDeviceStatus undocumented
+type DeviceComplianceDeviceStatus struct {
+ // Entity is the base model of DeviceComplianceDeviceStatus
+ Entity
+ // DeviceDisplayName Device name of the DevicePolicyStatus.
+ DeviceDisplayName *string `json:"deviceDisplayName,omitempty"`
+ // UserName The User Name that is being reported
+ UserName *string `json:"userName,omitempty"`
+ // DeviceModel The device model that is being reported
+ DeviceModel *string `json:"deviceModel,omitempty"`
+ // Platform Platform of the device that is being reported
+ Platform *int `json:"platform,omitempty"`
+ // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires
+ ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"`
+ // Status Compliance status of the policy report.
+ Status *ComplianceStatus `json:"status,omitempty"`
+ // LastReportedDateTime Last modified date time of the policy report.
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceDeviceStatusRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceDeviceStatusRequest.go
new file mode 100644
index 00000000..d4805d52
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceDeviceStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceComplianceDeviceStatusRequestBuilder is request builder for DeviceComplianceDeviceStatus
+type DeviceComplianceDeviceStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceComplianceDeviceStatusRequest
+func (b *DeviceComplianceDeviceStatusRequestBuilder) Request() *DeviceComplianceDeviceStatusRequest {
+ return &DeviceComplianceDeviceStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceComplianceDeviceStatusRequest is request for DeviceComplianceDeviceStatus
+type DeviceComplianceDeviceStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceComplianceDeviceStatus
+func (r *DeviceComplianceDeviceStatusRequest) Get(ctx context.Context) (resObj *DeviceComplianceDeviceStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceComplianceDeviceStatus
+func (r *DeviceComplianceDeviceStatusRequest) Update(ctx context.Context, reqObj *DeviceComplianceDeviceStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceComplianceDeviceStatus
+func (r *DeviceComplianceDeviceStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyAction.go
new file mode 100644
index 00000000..7ff05670
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyAction.go
@@ -0,0 +1,250 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceCompliancePolicyCollectionHasPayloadLinksRequestParameter undocumented
+type DeviceCompliancePolicyCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestParameter undocumented
+type DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestParameter struct {
+}
+
+// DeviceCompliancePolicyAssignRequestParameter undocumented
+type DeviceCompliancePolicyAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []DeviceCompliancePolicyAssignment `json:"assignments,omitempty"`
+}
+
+// DeviceCompliancePolicyScheduleActionsForRulesRequestParameter undocumented
+type DeviceCompliancePolicyScheduleActionsForRulesRequestParameter struct {
+ // DeviceComplianceScheduledActionForRules undocumented
+ DeviceComplianceScheduledActionForRules []DeviceComplianceScheduledActionForRule `json:"deviceComplianceScheduledActionForRules,omitempty"`
+}
+
+//
+type DeviceCompliancePolicyCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceCompliancePolicyCollectionHasPayloadLinksRequestParameter) *DeviceCompliancePolicyCollectionHasPayloadLinksRequestBuilder {
+ bb := &DeviceCompliancePolicyCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceCompliancePolicyCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *DeviceCompliancePolicyCollectionHasPayloadLinksRequestBuilder) Request() *DeviceCompliancePolicyCollectionHasPayloadLinksRequest {
+ return &DeviceCompliancePolicyCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceCompliancePolicyCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DeviceCompliancePolicyCollectionHasPayloadLinksRequest) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestBuilder struct{ BaseRequestBuilder }
+
+// RefreshDeviceComplianceReportSummarization action undocumented
+func (b *DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder) RefreshDeviceComplianceReportSummarization(reqObj *DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestParameter) *DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestBuilder {
+ bb := &DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/refreshDeviceComplianceReportSummarization"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequest struct{ BaseRequest }
+
+//
+func (b *DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestBuilder) Request() *DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequest {
+ return &DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceCompliancePolicyAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *DeviceCompliancePolicyRequestBuilder) Assign(reqObj *DeviceCompliancePolicyAssignRequestParameter) *DeviceCompliancePolicyAssignRequestBuilder {
+ bb := &DeviceCompliancePolicyAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceCompliancePolicyAssignRequest struct{ BaseRequest }
+
+//
+func (b *DeviceCompliancePolicyAssignRequestBuilder) Request() *DeviceCompliancePolicyAssignRequest {
+ return &DeviceCompliancePolicyAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceCompliancePolicyAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]DeviceCompliancePolicyAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]DeviceCompliancePolicyAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]DeviceCompliancePolicyAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DeviceCompliancePolicyAssignRequest) Get(ctx context.Context) ([][]DeviceCompliancePolicyAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type DeviceCompliancePolicyScheduleActionsForRulesRequestBuilder struct{ BaseRequestBuilder }
+
+// ScheduleActionsForRules action undocumented
+func (b *DeviceCompliancePolicyRequestBuilder) ScheduleActionsForRules(reqObj *DeviceCompliancePolicyScheduleActionsForRulesRequestParameter) *DeviceCompliancePolicyScheduleActionsForRulesRequestBuilder {
+ bb := &DeviceCompliancePolicyScheduleActionsForRulesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/scheduleActionsForRules"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceCompliancePolicyScheduleActionsForRulesRequest struct{ BaseRequest }
+
+//
+func (b *DeviceCompliancePolicyScheduleActionsForRulesRequestBuilder) Request() *DeviceCompliancePolicyScheduleActionsForRulesRequest {
+ return &DeviceCompliancePolicyScheduleActionsForRulesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceCompliancePolicyScheduleActionsForRulesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyAssignmentModel.go
new file mode 100644
index 00000000..26797c62
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceCompliancePolicyAssignment Device compliance policy assignment.
+type DeviceCompliancePolicyAssignment struct {
+ // Entity is the base model of DeviceCompliancePolicyAssignment
+ Entity
+ // Target Target for the compliance policy assignment.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+ // Source The assignment source for the device compliance policy, direct or parcel/policySet.
+ Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"`
+ // SourceID The identifier of the source of the assignment.
+ SourceID *string `json:"sourceId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyAssignmentRequest.go
new file mode 100644
index 00000000..d08178fb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceCompliancePolicyAssignmentRequestBuilder is request builder for DeviceCompliancePolicyAssignment
+type DeviceCompliancePolicyAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceCompliancePolicyAssignmentRequest
+func (b *DeviceCompliancePolicyAssignmentRequestBuilder) Request() *DeviceCompliancePolicyAssignmentRequest {
+ return &DeviceCompliancePolicyAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceCompliancePolicyAssignmentRequest is request for DeviceCompliancePolicyAssignment
+type DeviceCompliancePolicyAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceCompliancePolicyAssignment
+func (r *DeviceCompliancePolicyAssignmentRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicyAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceCompliancePolicyAssignment
+func (r *DeviceCompliancePolicyAssignmentRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicyAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceCompliancePolicyAssignment
+func (r *DeviceCompliancePolicyAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryModel.go
new file mode 100644
index 00000000..41060c50
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceCompliancePolicyDeviceStateSummary undocumented
+type DeviceCompliancePolicyDeviceStateSummary struct {
+ // Entity is the base model of DeviceCompliancePolicyDeviceStateSummary
+ Entity
+ // InGracePeriodCount Number of devices that are in grace period
+ InGracePeriodCount *int `json:"inGracePeriodCount,omitempty"`
+ // ConfigManagerCount Number of devices that have compliance managed by System Center Configuration Manager
+ ConfigManagerCount *int `json:"configManagerCount,omitempty"`
+ // UnknownDeviceCount Number of unknown devices
+ UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"`
+ // NotApplicableDeviceCount Number of not applicable devices
+ NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"`
+ // CompliantDeviceCount Number of compliant devices
+ CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"`
+ // RemediatedDeviceCount Number of remediated devices
+ RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"`
+ // NonCompliantDeviceCount Number of NonCompliant devices
+ NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"`
+ // ErrorDeviceCount Number of error devices
+ ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"`
+ // ConflictDeviceCount Number of conflict devices
+ ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryRequest.go
new file mode 100644
index 00000000..c76b6817
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyDeviceStateSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceCompliancePolicyDeviceStateSummaryRequestBuilder is request builder for DeviceCompliancePolicyDeviceStateSummary
+type DeviceCompliancePolicyDeviceStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceCompliancePolicyDeviceStateSummaryRequest
+func (b *DeviceCompliancePolicyDeviceStateSummaryRequestBuilder) Request() *DeviceCompliancePolicyDeviceStateSummaryRequest {
+ return &DeviceCompliancePolicyDeviceStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceCompliancePolicyDeviceStateSummaryRequest is request for DeviceCompliancePolicyDeviceStateSummary
+type DeviceCompliancePolicyDeviceStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceCompliancePolicyDeviceStateSummary
+func (r *DeviceCompliancePolicyDeviceStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicyDeviceStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceCompliancePolicyDeviceStateSummary
+func (r *DeviceCompliancePolicyDeviceStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicyDeviceStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceCompliancePolicyDeviceStateSummary
+func (r *DeviceCompliancePolicyDeviceStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentModel.go
new file mode 100644
index 00000000..3db43cf0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceCompliancePolicyGroupAssignment Device compliance policy group assignment.
+type DeviceCompliancePolicyGroupAssignment struct {
+ // Entity is the base model of DeviceCompliancePolicyGroupAssignment
+ Entity
+ // TargetGroupID The Id of the AAD group we are targeting the device compliance policy to.
+ TargetGroupID *string `json:"targetGroupId,omitempty"`
+ // ExcludeGroup Indicates if this group is should be excluded. Defaults that the group should be included
+ ExcludeGroup *bool `json:"excludeGroup,omitempty"`
+ // DeviceCompliancePolicy undocumented
+ DeviceCompliancePolicy *DeviceCompliancePolicy `json:"deviceCompliancePolicy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentRequest.go
new file mode 100644
index 00000000..1ecf815c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyGroupAssignmentRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceCompliancePolicyGroupAssignmentRequestBuilder is request builder for DeviceCompliancePolicyGroupAssignment
+type DeviceCompliancePolicyGroupAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceCompliancePolicyGroupAssignmentRequest
+func (b *DeviceCompliancePolicyGroupAssignmentRequestBuilder) Request() *DeviceCompliancePolicyGroupAssignmentRequest {
+ return &DeviceCompliancePolicyGroupAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceCompliancePolicyGroupAssignmentRequest is request for DeviceCompliancePolicyGroupAssignment
+type DeviceCompliancePolicyGroupAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceCompliancePolicyGroupAssignment
+func (r *DeviceCompliancePolicyGroupAssignmentRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicyGroupAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceCompliancePolicyGroupAssignment
+func (r *DeviceCompliancePolicyGroupAssignmentRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicyGroupAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceCompliancePolicyGroupAssignment
+func (r *DeviceCompliancePolicyGroupAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceCompliancePolicy is navigation property
+func (b *DeviceCompliancePolicyGroupAssignmentRequestBuilder) DeviceCompliancePolicy() *DeviceCompliancePolicyRequestBuilder {
+ bb := &DeviceCompliancePolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceCompliancePolicy"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyModel.go
new file mode 100644
index 00000000..e147b185
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceCompliancePolicy This is the base class for Compliance policy. Compliance policies are platform specific and individual per-platform compliance policies inherit from here.
+type DeviceCompliancePolicy struct {
+ // Entity is the base model of DeviceCompliancePolicy
+ Entity
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // CreatedDateTime DateTime the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Description Admin provided description of the Device Configuration.
+ Description *string `json:"description,omitempty"`
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DisplayName Admin provided name of the device configuration.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version Version of the device configuration.
+ Version *int `json:"version,omitempty"`
+ // ScheduledActionsForRule undocumented
+ ScheduledActionsForRule []DeviceComplianceScheduledActionForRule `json:"scheduledActionsForRule,omitempty"`
+ // DeviceStatuses undocumented
+ DeviceStatuses []DeviceComplianceDeviceStatus `json:"deviceStatuses,omitempty"`
+ // UserStatuses undocumented
+ UserStatuses []DeviceComplianceUserStatus `json:"userStatuses,omitempty"`
+ // DeviceStatusOverview undocumented
+ DeviceStatusOverview *DeviceComplianceDeviceOverview `json:"deviceStatusOverview,omitempty"`
+ // UserStatusOverview undocumented
+ UserStatusOverview *DeviceComplianceUserOverview `json:"userStatusOverview,omitempty"`
+ // DeviceSettingStateSummaries undocumented
+ DeviceSettingStateSummaries []SettingStateDeviceSummary `json:"deviceSettingStateSummaries,omitempty"`
+ // Assignments undocumented
+ Assignments []DeviceCompliancePolicyAssignment `json:"assignments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyPolicySetItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyPolicySetItemModel.go
new file mode 100644
index 00000000..c0a77006
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyPolicySetItemModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceCompliancePolicyPolicySetItem A class containing the properties used for device compliance policy PolicySetItem.
+type DeviceCompliancePolicyPolicySetItem struct {
+ // PolicySetItem is the base model of DeviceCompliancePolicyPolicySetItem
+ PolicySetItem
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyRequest.go
new file mode 100644
index 00000000..5e8fa637
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyRequest.go
@@ -0,0 +1,529 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceCompliancePolicyRequestBuilder is request builder for DeviceCompliancePolicy
+type DeviceCompliancePolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceCompliancePolicyRequest
+func (b *DeviceCompliancePolicyRequestBuilder) Request() *DeviceCompliancePolicyRequest {
+ return &DeviceCompliancePolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceCompliancePolicyRequest is request for DeviceCompliancePolicy
+type DeviceCompliancePolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceCompliancePolicy
+func (r *DeviceCompliancePolicyRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceCompliancePolicy
+func (r *DeviceCompliancePolicyRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceCompliancePolicy
+func (r *DeviceCompliancePolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for DeviceCompliancePolicyAssignment collection
+func (b *DeviceCompliancePolicyRequestBuilder) Assignments() *DeviceCompliancePolicyAssignmentsCollectionRequestBuilder {
+ bb := &DeviceCompliancePolicyAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// DeviceCompliancePolicyAssignmentsCollectionRequestBuilder is request builder for DeviceCompliancePolicyAssignment collection
+type DeviceCompliancePolicyAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceCompliancePolicyAssignment collection
+func (b *DeviceCompliancePolicyAssignmentsCollectionRequestBuilder) Request() *DeviceCompliancePolicyAssignmentsCollectionRequest {
+ return &DeviceCompliancePolicyAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceCompliancePolicyAssignment item
+func (b *DeviceCompliancePolicyAssignmentsCollectionRequestBuilder) ID(id string) *DeviceCompliancePolicyAssignmentRequestBuilder {
+ bb := &DeviceCompliancePolicyAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceCompliancePolicyAssignmentsCollectionRequest is request for DeviceCompliancePolicyAssignment collection
+type DeviceCompliancePolicyAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceCompliancePolicyAssignment collection
+func (r *DeviceCompliancePolicyAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceCompliancePolicyAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceCompliancePolicyAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceCompliancePolicyAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceCompliancePolicyAssignment collection
+func (r *DeviceCompliancePolicyAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceCompliancePolicyAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceCompliancePolicyAssignment collection
+func (r *DeviceCompliancePolicyAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceCompliancePolicyAssignment) (resObj *DeviceCompliancePolicyAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceSettingStateSummaries returns request builder for SettingStateDeviceSummary collection
+func (b *DeviceCompliancePolicyRequestBuilder) DeviceSettingStateSummaries() *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder {
+ bb := &DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceSettingStateSummaries"
+ return bb
+}
+
+// DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder is request builder for SettingStateDeviceSummary collection
+type DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SettingStateDeviceSummary collection
+func (b *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder) Request() *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest {
+ return &DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SettingStateDeviceSummary item
+func (b *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder) ID(id string) *SettingStateDeviceSummaryRequestBuilder {
+ bb := &SettingStateDeviceSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest is request for SettingStateDeviceSummary collection
+type DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SettingStateDeviceSummary collection
+func (r *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SettingStateDeviceSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SettingStateDeviceSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SettingStateDeviceSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SettingStateDeviceSummary collection
+func (r *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest) Get(ctx context.Context) ([]SettingStateDeviceSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SettingStateDeviceSummary collection
+func (r *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest) Add(ctx context.Context, reqObj *SettingStateDeviceSummary) (resObj *SettingStateDeviceSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStatusOverview is navigation property
+func (b *DeviceCompliancePolicyRequestBuilder) DeviceStatusOverview() *DeviceComplianceDeviceOverviewRequestBuilder {
+ bb := &DeviceComplianceDeviceOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatusOverview"
+ return bb
+}
+
+// DeviceStatuses returns request builder for DeviceComplianceDeviceStatus collection
+func (b *DeviceCompliancePolicyRequestBuilder) DeviceStatuses() *DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder {
+ bb := &DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatuses"
+ return bb
+}
+
+// DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder is request builder for DeviceComplianceDeviceStatus collection
+type DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceComplianceDeviceStatus collection
+func (b *DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder) Request() *DeviceCompliancePolicyDeviceStatusesCollectionRequest {
+ return &DeviceCompliancePolicyDeviceStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceComplianceDeviceStatus item
+func (b *DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder) ID(id string) *DeviceComplianceDeviceStatusRequestBuilder {
+ bb := &DeviceComplianceDeviceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceCompliancePolicyDeviceStatusesCollectionRequest is request for DeviceComplianceDeviceStatus collection
+type DeviceCompliancePolicyDeviceStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceComplianceDeviceStatus collection
+func (r *DeviceCompliancePolicyDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceComplianceDeviceStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceComplianceDeviceStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceComplianceDeviceStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceComplianceDeviceStatus collection
+func (r *DeviceCompliancePolicyDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceDeviceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceComplianceDeviceStatus collection
+func (r *DeviceCompliancePolicyDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *DeviceComplianceDeviceStatus) (resObj *DeviceComplianceDeviceStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ScheduledActionsForRule returns request builder for DeviceComplianceScheduledActionForRule collection
+func (b *DeviceCompliancePolicyRequestBuilder) ScheduledActionsForRule() *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder {
+ bb := &DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/scheduledActionsForRule"
+ return bb
+}
+
+// DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder is request builder for DeviceComplianceScheduledActionForRule collection
+type DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceComplianceScheduledActionForRule collection
+func (b *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder) Request() *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest {
+ return &DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceComplianceScheduledActionForRule item
+func (b *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder) ID(id string) *DeviceComplianceScheduledActionForRuleRequestBuilder {
+ bb := &DeviceComplianceScheduledActionForRuleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest is request for DeviceComplianceScheduledActionForRule collection
+type DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceComplianceScheduledActionForRule collection
+func (r *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceComplianceScheduledActionForRule, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceComplianceScheduledActionForRule
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceComplianceScheduledActionForRule
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceComplianceScheduledActionForRule collection
+func (r *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceScheduledActionForRule, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceComplianceScheduledActionForRule collection
+func (r *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest) Add(ctx context.Context, reqObj *DeviceComplianceScheduledActionForRule) (resObj *DeviceComplianceScheduledActionForRule, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserStatusOverview is navigation property
+func (b *DeviceCompliancePolicyRequestBuilder) UserStatusOverview() *DeviceComplianceUserOverviewRequestBuilder {
+ bb := &DeviceComplianceUserOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStatusOverview"
+ return bb
+}
+
+// UserStatuses returns request builder for DeviceComplianceUserStatus collection
+func (b *DeviceCompliancePolicyRequestBuilder) UserStatuses() *DeviceCompliancePolicyUserStatusesCollectionRequestBuilder {
+ bb := &DeviceCompliancePolicyUserStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStatuses"
+ return bb
+}
+
+// DeviceCompliancePolicyUserStatusesCollectionRequestBuilder is request builder for DeviceComplianceUserStatus collection
+type DeviceCompliancePolicyUserStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceComplianceUserStatus collection
+func (b *DeviceCompliancePolicyUserStatusesCollectionRequestBuilder) Request() *DeviceCompliancePolicyUserStatusesCollectionRequest {
+ return &DeviceCompliancePolicyUserStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceComplianceUserStatus item
+func (b *DeviceCompliancePolicyUserStatusesCollectionRequestBuilder) ID(id string) *DeviceComplianceUserStatusRequestBuilder {
+ bb := &DeviceComplianceUserStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceCompliancePolicyUserStatusesCollectionRequest is request for DeviceComplianceUserStatus collection
+type DeviceCompliancePolicyUserStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceComplianceUserStatus collection
+func (r *DeviceCompliancePolicyUserStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceComplianceUserStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceComplianceUserStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceComplianceUserStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceComplianceUserStatus collection
+func (r *DeviceCompliancePolicyUserStatusesCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceUserStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceComplianceUserStatus collection
+func (r *DeviceCompliancePolicyUserStatusesCollectionRequest) Add(ctx context.Context, reqObj *DeviceComplianceUserStatus) (resObj *DeviceComplianceUserStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicySettingStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicySettingStateModel.go
new file mode 100644
index 00000000..485c65f7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicySettingStateModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceCompliancePolicySettingState undocumented
+type DeviceCompliancePolicySettingState struct {
+ // Object is the base model of DeviceCompliancePolicySettingState
+ Object
+ // Setting The setting that is being reported
+ Setting *string `json:"setting,omitempty"`
+ // SettingName Localized/user friendly setting name that is being reported
+ SettingName *string `json:"settingName,omitempty"`
+ // InstanceDisplayName Name of setting instance that is being reported.
+ InstanceDisplayName *string `json:"instanceDisplayName,omitempty"`
+ // State The compliance state of the setting
+ State *ComplianceStatus `json:"state,omitempty"`
+ // ErrorCode Error code for the setting
+ ErrorCode *int `json:"errorCode,omitempty"`
+ // ErrorDescription Error description
+ ErrorDescription *string `json:"errorDescription,omitempty"`
+ // UserID UserId
+ UserID *string `json:"userId,omitempty"`
+ // UserName UserName
+ UserName *string `json:"userName,omitempty"`
+ // UserEmail UserEmail
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // Sources Contributing policies
+ Sources []SettingSource `json:"sources,omitempty"`
+ // CurrentValue Current value of setting on device
+ CurrentValue *string `json:"currentValue,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryModel.go
new file mode 100644
index 00000000..7f56178b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceCompliancePolicySettingStateSummary Device Compilance Policy Setting State summary across the account.
+type DeviceCompliancePolicySettingStateSummary struct {
+ // Entity is the base model of DeviceCompliancePolicySettingStateSummary
+ Entity
+ // Setting The setting class name and property name.
+ Setting *string `json:"setting,omitempty"`
+ // SettingName Name of the setting.
+ SettingName *string `json:"settingName,omitempty"`
+ // PlatformType Setting platform
+ PlatformType *PolicyPlatformType `json:"platformType,omitempty"`
+ // UnknownDeviceCount Number of unknown devices
+ UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"`
+ // NotApplicableDeviceCount Number of not applicable devices
+ NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"`
+ // CompliantDeviceCount Number of compliant devices
+ CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"`
+ // RemediatedDeviceCount Number of remediated devices
+ RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"`
+ // NonCompliantDeviceCount Number of NonCompliant devices
+ NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"`
+ // ErrorDeviceCount Number of error devices
+ ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"`
+ // ConflictDeviceCount Number of conflict devices
+ ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"`
+ // DeviceComplianceSettingStates undocumented
+ DeviceComplianceSettingStates []DeviceComplianceSettingState `json:"deviceComplianceSettingStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryRequest.go
new file mode 100644
index 00000000..af5e47c5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicySettingStateSummaryRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceCompliancePolicySettingStateSummaryRequestBuilder is request builder for DeviceCompliancePolicySettingStateSummary
+type DeviceCompliancePolicySettingStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceCompliancePolicySettingStateSummaryRequest
+func (b *DeviceCompliancePolicySettingStateSummaryRequestBuilder) Request() *DeviceCompliancePolicySettingStateSummaryRequest {
+ return &DeviceCompliancePolicySettingStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceCompliancePolicySettingStateSummaryRequest is request for DeviceCompliancePolicySettingStateSummary
+type DeviceCompliancePolicySettingStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceCompliancePolicySettingStateSummary
+func (r *DeviceCompliancePolicySettingStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicySettingStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceCompliancePolicySettingStateSummary
+func (r *DeviceCompliancePolicySettingStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicySettingStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceCompliancePolicySettingStateSummary
+func (r *DeviceCompliancePolicySettingStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceComplianceSettingStates returns request builder for DeviceComplianceSettingState collection
+func (b *DeviceCompliancePolicySettingStateSummaryRequestBuilder) DeviceComplianceSettingStates() *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder {
+ bb := &DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceComplianceSettingStates"
+ return bb
+}
+
+// DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder is request builder for DeviceComplianceSettingState collection
+type DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceComplianceSettingState collection
+func (b *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder) Request() *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest {
+ return &DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceComplianceSettingState item
+func (b *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder) ID(id string) *DeviceComplianceSettingStateRequestBuilder {
+ bb := &DeviceComplianceSettingStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest is request for DeviceComplianceSettingState collection
+type DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceComplianceSettingState collection
+func (r *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceComplianceSettingState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceComplianceSettingState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceComplianceSettingState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceComplianceSettingState collection
+func (r *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceSettingState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceComplianceSettingState collection
+func (r *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceComplianceSettingState) (resObj *DeviceComplianceSettingState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyStateModel.go
new file mode 100644
index 00000000..86d6650c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyStateModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceCompliancePolicyState Device Compliance Policy State for a given device.
+type DeviceCompliancePolicyState struct {
+ // Entity is the base model of DeviceCompliancePolicyState
+ Entity
+ // SettingStates undocumented
+ SettingStates []DeviceCompliancePolicySettingState `json:"settingStates,omitempty"`
+ // DisplayName The name of the policy for this policyBase
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version The version of the policy
+ Version *int `json:"version,omitempty"`
+ // PlatformType Platform type that the policy applies to
+ PlatformType *PolicyPlatformType `json:"platformType,omitempty"`
+ // State The compliance state of the policy
+ State *ComplianceStatus `json:"state,omitempty"`
+ // SettingCount Count of how many setting a policy holds
+ SettingCount *int `json:"settingCount,omitempty"`
+ // UserID User unique identifier, must be Guid
+ UserID *string `json:"userId,omitempty"`
+ // UserPrincipalName User Principal Name
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyStateRequest.go
new file mode 100644
index 00000000..fd324d1c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceCompliancePolicyStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceCompliancePolicyStateRequestBuilder is request builder for DeviceCompliancePolicyState
+type DeviceCompliancePolicyStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceCompliancePolicyStateRequest
+func (b *DeviceCompliancePolicyStateRequestBuilder) Request() *DeviceCompliancePolicyStateRequest {
+ return &DeviceCompliancePolicyStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceCompliancePolicyStateRequest is request for DeviceCompliancePolicyState
+type DeviceCompliancePolicyStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceCompliancePolicyState
+func (r *DeviceCompliancePolicyStateRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicyState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceCompliancePolicyState
+func (r *DeviceCompliancePolicyStateRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicyState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceCompliancePolicyState
+func (r *DeviceCompliancePolicyStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceScheduledActionForRuleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceScheduledActionForRuleModel.go
new file mode 100644
index 00000000..6295c0f0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceScheduledActionForRuleModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceComplianceScheduledActionForRule Scheduled Action for Rule
+type DeviceComplianceScheduledActionForRule struct {
+ // Entity is the base model of DeviceComplianceScheduledActionForRule
+ Entity
+ // RuleName Name of the rule which this scheduled action applies to.
+ RuleName *string `json:"ruleName,omitempty"`
+ // ScheduledActionConfigurations undocumented
+ ScheduledActionConfigurations []DeviceComplianceActionItem `json:"scheduledActionConfigurations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceScheduledActionForRuleRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceScheduledActionForRuleRequest.go
new file mode 100644
index 00000000..53af6456
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceScheduledActionForRuleRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceComplianceScheduledActionForRuleRequestBuilder is request builder for DeviceComplianceScheduledActionForRule
+type DeviceComplianceScheduledActionForRuleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceComplianceScheduledActionForRuleRequest
+func (b *DeviceComplianceScheduledActionForRuleRequestBuilder) Request() *DeviceComplianceScheduledActionForRuleRequest {
+ return &DeviceComplianceScheduledActionForRuleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceComplianceScheduledActionForRuleRequest is request for DeviceComplianceScheduledActionForRule
+type DeviceComplianceScheduledActionForRuleRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceComplianceScheduledActionForRule
+func (r *DeviceComplianceScheduledActionForRuleRequest) Get(ctx context.Context) (resObj *DeviceComplianceScheduledActionForRule, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceComplianceScheduledActionForRule
+func (r *DeviceComplianceScheduledActionForRuleRequest) Update(ctx context.Context, reqObj *DeviceComplianceScheduledActionForRule) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceComplianceScheduledActionForRule
+func (r *DeviceComplianceScheduledActionForRuleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ScheduledActionConfigurations returns request builder for DeviceComplianceActionItem collection
+func (b *DeviceComplianceScheduledActionForRuleRequestBuilder) ScheduledActionConfigurations() *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder {
+ bb := &DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/scheduledActionConfigurations"
+ return bb
+}
+
+// DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder is request builder for DeviceComplianceActionItem collection
+type DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceComplianceActionItem collection
+func (b *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder) Request() *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest {
+ return &DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceComplianceActionItem item
+func (b *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder) ID(id string) *DeviceComplianceActionItemRequestBuilder {
+ bb := &DeviceComplianceActionItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest is request for DeviceComplianceActionItem collection
+type DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceComplianceActionItem collection
+func (r *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceComplianceActionItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceComplianceActionItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceComplianceActionItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceComplianceActionItem collection
+func (r *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceActionItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceComplianceActionItem collection
+func (r *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceComplianceActionItem) (resObj *DeviceComplianceActionItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceSettingStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceSettingStateModel.go
new file mode 100644
index 00000000..09c2ff4f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceSettingStateModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceComplianceSettingState Device compliance setting State for a given device.
+type DeviceComplianceSettingState struct {
+ // Entity is the base model of DeviceComplianceSettingState
+ Entity
+ // PlatformType Device platform type
+ PlatformType *DeviceType `json:"platformType,omitempty"`
+ // Setting The setting class name and property name.
+ Setting *string `json:"setting,omitempty"`
+ // SettingName The Setting Name that is being reported
+ SettingName *string `json:"settingName,omitempty"`
+ // DeviceID The Device Id that is being reported
+ DeviceID *string `json:"deviceId,omitempty"`
+ // DeviceName The Device Name that is being reported
+ DeviceName *string `json:"deviceName,omitempty"`
+ // UserID The user Id that is being reported
+ UserID *string `json:"userId,omitempty"`
+ // UserEmail The User email address that is being reported
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserName The User Name that is being reported
+ UserName *string `json:"userName,omitempty"`
+ // UserPrincipalName The User PrincipalName that is being reported
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DeviceModel The device model that is being reported
+ DeviceModel *string `json:"deviceModel,omitempty"`
+ // State The compliance state of the setting
+ State *ComplianceStatus `json:"state,omitempty"`
+ // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires
+ ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceSettingStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceSettingStateRequest.go
new file mode 100644
index 00000000..07a524af
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceSettingStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceComplianceSettingStateRequestBuilder is request builder for DeviceComplianceSettingState
+type DeviceComplianceSettingStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceComplianceSettingStateRequest
+func (b *DeviceComplianceSettingStateRequestBuilder) Request() *DeviceComplianceSettingStateRequest {
+ return &DeviceComplianceSettingStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceComplianceSettingStateRequest is request for DeviceComplianceSettingState
+type DeviceComplianceSettingStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceComplianceSettingState
+func (r *DeviceComplianceSettingStateRequest) Get(ctx context.Context) (resObj *DeviceComplianceSettingState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceComplianceSettingState
+func (r *DeviceComplianceSettingStateRequest) Update(ctx context.Context, reqObj *DeviceComplianceSettingState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceComplianceSettingState
+func (r *DeviceComplianceSettingStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceUserOverviewModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceUserOverviewModel.go
new file mode 100644
index 00000000..ac030716
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceUserOverviewModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceComplianceUserOverview undocumented
+type DeviceComplianceUserOverview struct {
+ // Entity is the base model of DeviceComplianceUserOverview
+ Entity
+ // PendingCount Number of pending Users
+ PendingCount *int `json:"pendingCount,omitempty"`
+ // NotApplicableCount Number of not applicable users
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // SuccessCount Number of succeeded Users
+ SuccessCount *int `json:"successCount,omitempty"`
+ // ErrorCount Number of error Users
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // FailedCount Number of failed Users
+ FailedCount *int `json:"failedCount,omitempty"`
+ // ConflictCount Number of users in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // LastUpdateDateTime Last update time
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+ // ConfigurationVersion Version of the policy for that overview
+ ConfigurationVersion *int `json:"configurationVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceUserOverviewRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceUserOverviewRequest.go
new file mode 100644
index 00000000..ef459d35
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceUserOverviewRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceComplianceUserOverviewRequestBuilder is request builder for DeviceComplianceUserOverview
+type DeviceComplianceUserOverviewRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceComplianceUserOverviewRequest
+func (b *DeviceComplianceUserOverviewRequestBuilder) Request() *DeviceComplianceUserOverviewRequest {
+ return &DeviceComplianceUserOverviewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceComplianceUserOverviewRequest is request for DeviceComplianceUserOverview
+type DeviceComplianceUserOverviewRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceComplianceUserOverview
+func (r *DeviceComplianceUserOverviewRequest) Get(ctx context.Context) (resObj *DeviceComplianceUserOverview, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceComplianceUserOverview
+func (r *DeviceComplianceUserOverviewRequest) Update(ctx context.Context, reqObj *DeviceComplianceUserOverview) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceComplianceUserOverview
+func (r *DeviceComplianceUserOverviewRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceUserStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceUserStatusModel.go
new file mode 100644
index 00000000..1adbdec0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceUserStatusModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceComplianceUserStatus undocumented
+type DeviceComplianceUserStatus struct {
+ // Entity is the base model of DeviceComplianceUserStatus
+ Entity
+ // UserDisplayName User name of the DevicePolicyStatus.
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // DevicesCount Devices count for that user.
+ DevicesCount *int `json:"devicesCount,omitempty"`
+ // Status Compliance status of the policy report.
+ Status *ComplianceStatus `json:"status,omitempty"`
+ // LastReportedDateTime Last modified date time of the policy report.
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceUserStatusRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceUserStatusRequest.go
new file mode 100644
index 00000000..8c81da8c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceComplianceUserStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceComplianceUserStatusRequestBuilder is request builder for DeviceComplianceUserStatus
+type DeviceComplianceUserStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceComplianceUserStatusRequest
+func (b *DeviceComplianceUserStatusRequestBuilder) Request() *DeviceComplianceUserStatusRequest {
+ return &DeviceComplianceUserStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceComplianceUserStatusRequest is request for DeviceComplianceUserStatus
+type DeviceComplianceUserStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceComplianceUserStatus
+func (r *DeviceComplianceUserStatusRequest) Get(ctx context.Context) (resObj *DeviceComplianceUserStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceComplianceUserStatus
+func (r *DeviceComplianceUserStatusRequest) Update(ctx context.Context, reqObj *DeviceComplianceUserStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceComplianceUserStatus
+func (r *DeviceComplianceUserStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationAction.go
new file mode 100644
index 00000000..95460aa0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationAction.go
@@ -0,0 +1,358 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceConfigurationCollectionHasPayloadLinksRequestParameter undocumented
+type DeviceConfigurationCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestParameter undocumented
+type DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestParameter struct {
+ // DeviceConfigurationIDs undocumented
+ DeviceConfigurationIDs []string `json:"deviceConfigurationIds,omitempty"`
+}
+
+// DeviceConfigurationAssignRequestParameter undocumented
+type DeviceConfigurationAssignRequestParameter struct {
+ // DeviceConfigurationGroupAssignments undocumented
+ DeviceConfigurationGroupAssignments []DeviceConfigurationGroupAssignment `json:"deviceConfigurationGroupAssignments,omitempty"`
+ // Assignments undocumented
+ Assignments []DeviceConfigurationAssignment `json:"assignments,omitempty"`
+}
+
+// DeviceConfigurationWindowsPrivacyAccessControlsRequestParameter undocumented
+type DeviceConfigurationWindowsPrivacyAccessControlsRequestParameter struct {
+ // WindowsPrivacyAccessControls undocumented
+ WindowsPrivacyAccessControls []WindowsPrivacyDataAccessControlItem `json:"windowsPrivacyAccessControls,omitempty"`
+}
+
+// DeviceConfigurationAssignedAccessMultiModeProfilesRequestParameter undocumented
+type DeviceConfigurationAssignedAccessMultiModeProfilesRequestParameter struct {
+ // AssignedAccessMultiModeProfiles undocumented
+ AssignedAccessMultiModeProfiles []WindowsAssignedAccessProfile `json:"assignedAccessMultiModeProfiles,omitempty"`
+}
+
+//
+type DeviceConfigurationCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceManagementDeviceConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceConfigurationCollectionHasPayloadLinksRequestParameter) *DeviceConfigurationCollectionHasPayloadLinksRequestBuilder {
+ bb := &DeviceConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// HasPayloadLinks action undocumented
+func (b *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceConfigurationCollectionHasPayloadLinksRequestParameter) *DeviceConfigurationCollectionHasPayloadLinksRequestBuilder {
+ bb := &DeviceConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceConfigurationCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *DeviceConfigurationCollectionHasPayloadLinksRequestBuilder) Request() *DeviceConfigurationCollectionHasPayloadLinksRequest {
+ return &DeviceConfigurationCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceConfigurationCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DeviceConfigurationCollectionHasPayloadLinksRequest) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder struct{ BaseRequestBuilder }
+
+// GetTargetedUsersAndDevices action undocumented
+func (b *DeviceManagementDeviceConfigurationsCollectionRequestBuilder) GetTargetedUsersAndDevices(reqObj *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestParameter) *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder {
+ bb := &DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getTargetedUsersAndDevices"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetTargetedUsersAndDevices action undocumented
+func (b *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder) GetTargetedUsersAndDevices(reqObj *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestParameter) *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder {
+ bb := &DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getTargetedUsersAndDevices"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest struct{ BaseRequest }
+
+//
+func (b *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder) Request() *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest {
+ return &DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]DeviceConfigurationTargetedUserAndDevice, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]DeviceConfigurationTargetedUserAndDevice
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]DeviceConfigurationTargetedUserAndDevice
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest) Get(ctx context.Context) ([][]DeviceConfigurationTargetedUserAndDevice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type DeviceConfigurationAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *DeviceConfigurationRequestBuilder) Assign(reqObj *DeviceConfigurationAssignRequestParameter) *DeviceConfigurationAssignRequestBuilder {
+ bb := &DeviceConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceConfigurationAssignRequest struct{ BaseRequest }
+
+//
+func (b *DeviceConfigurationAssignRequestBuilder) Request() *DeviceConfigurationAssignRequest {
+ return &DeviceConfigurationAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceConfigurationAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]DeviceConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]DeviceConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]DeviceConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DeviceConfigurationAssignRequest) Get(ctx context.Context) ([][]DeviceConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type DeviceConfigurationWindowsPrivacyAccessControlsRequestBuilder struct{ BaseRequestBuilder }
+
+// WindowsPrivacyAccessControls action undocumented
+func (b *DeviceConfigurationRequestBuilder) WindowsPrivacyAccessControls(reqObj *DeviceConfigurationWindowsPrivacyAccessControlsRequestParameter) *DeviceConfigurationWindowsPrivacyAccessControlsRequestBuilder {
+ bb := &DeviceConfigurationWindowsPrivacyAccessControlsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/windowsPrivacyAccessControls"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceConfigurationWindowsPrivacyAccessControlsRequest struct{ BaseRequest }
+
+//
+func (b *DeviceConfigurationWindowsPrivacyAccessControlsRequestBuilder) Request() *DeviceConfigurationWindowsPrivacyAccessControlsRequest {
+ return &DeviceConfigurationWindowsPrivacyAccessControlsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceConfigurationWindowsPrivacyAccessControlsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceConfigurationAssignedAccessMultiModeProfilesRequestBuilder struct{ BaseRequestBuilder }
+
+// AssignedAccessMultiModeProfiles action undocumented
+func (b *DeviceConfigurationRequestBuilder) AssignedAccessMultiModeProfiles(reqObj *DeviceConfigurationAssignedAccessMultiModeProfilesRequestParameter) *DeviceConfigurationAssignedAccessMultiModeProfilesRequestBuilder {
+ bb := &DeviceConfigurationAssignedAccessMultiModeProfilesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assignedAccessMultiModeProfiles"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceConfigurationAssignedAccessMultiModeProfilesRequest struct{ BaseRequest }
+
+//
+func (b *DeviceConfigurationAssignedAccessMultiModeProfilesRequestBuilder) Request() *DeviceConfigurationAssignedAccessMultiModeProfilesRequest {
+ return &DeviceConfigurationAssignedAccessMultiModeProfilesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceConfigurationAssignedAccessMultiModeProfilesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationAssignmentModel.go
new file mode 100644
index 00000000..a70244e0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceConfigurationAssignment The device configuration assignment entity assigns an AAD group to a specific device configuration.
+type DeviceConfigurationAssignment struct {
+ // Entity is the base model of DeviceConfigurationAssignment
+ Entity
+ // Target The assignment target for the device configuration.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+ // Source The assignment source for the device configuration, direct or parcel/policySet. This property is read-only.
+ Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"`
+ // SourceID The identifier of the source of the assignment. This property is read-only.
+ SourceID *string `json:"sourceId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationAssignmentRequest.go
new file mode 100644
index 00000000..c96cdee5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceConfigurationAssignmentRequestBuilder is request builder for DeviceConfigurationAssignment
+type DeviceConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationAssignmentRequest
+func (b *DeviceConfigurationAssignmentRequestBuilder) Request() *DeviceConfigurationAssignmentRequest {
+ return &DeviceConfigurationAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationAssignmentRequest is request for DeviceConfigurationAssignment
+type DeviceConfigurationAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationAssignment
+func (r *DeviceConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *DeviceConfigurationAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationAssignment
+func (r *DeviceConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *DeviceConfigurationAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationAssignment
+func (r *DeviceConfigurationAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationConflictSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationConflictSummaryModel.go
new file mode 100644
index 00000000..a6e73272
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationConflictSummaryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceConfigurationConflictSummary Conflict summary for a set of device configuration policies.
+type DeviceConfigurationConflictSummary struct {
+ // Entity is the base model of DeviceConfigurationConflictSummary
+ Entity
+ // ConflictingDeviceConfigurations The set of policies in conflict with the given setting
+ ConflictingDeviceConfigurations []SettingSource `json:"conflictingDeviceConfigurations,omitempty"`
+ // ContributingSettings The set of settings in conflict with the given policies
+ ContributingSettings []string `json:"contributingSettings,omitempty"`
+ // DeviceCheckinsImpacted The count of checkins impacted by the conflicting policies and settings
+ DeviceCheckinsImpacted *int `json:"deviceCheckinsImpacted,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationConflictSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationConflictSummaryRequest.go
new file mode 100644
index 00000000..be59d3e7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationConflictSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceConfigurationConflictSummaryRequestBuilder is request builder for DeviceConfigurationConflictSummary
+type DeviceConfigurationConflictSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationConflictSummaryRequest
+func (b *DeviceConfigurationConflictSummaryRequestBuilder) Request() *DeviceConfigurationConflictSummaryRequest {
+ return &DeviceConfigurationConflictSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationConflictSummaryRequest is request for DeviceConfigurationConflictSummary
+type DeviceConfigurationConflictSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationConflictSummary
+func (r *DeviceConfigurationConflictSummaryRequest) Get(ctx context.Context) (resObj *DeviceConfigurationConflictSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationConflictSummary
+func (r *DeviceConfigurationConflictSummaryRequest) Update(ctx context.Context, reqObj *DeviceConfigurationConflictSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationConflictSummary
+func (r *DeviceConfigurationConflictSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceOverviewModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceOverviewModel.go
new file mode 100644
index 00000000..fbbdd193
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceOverviewModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceConfigurationDeviceOverview undocumented
+type DeviceConfigurationDeviceOverview struct {
+ // Entity is the base model of DeviceConfigurationDeviceOverview
+ Entity
+ // PendingCount Number of pending devices
+ PendingCount *int `json:"pendingCount,omitempty"`
+ // NotApplicableCount Number of not applicable devices
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // NotApplicablePlatformCount Number of not applicable devices due to mismatch platform and policy
+ NotApplicablePlatformCount *int `json:"notApplicablePlatformCount,omitempty"`
+ // SuccessCount Number of succeeded devices
+ SuccessCount *int `json:"successCount,omitempty"`
+ // ErrorCount Number of error devices
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // FailedCount Number of failed devices
+ FailedCount *int `json:"failedCount,omitempty"`
+ // ConflictCount Number of devices in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // LastUpdateDateTime Last update time
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+ // ConfigurationVersion Version of the policy for that overview
+ ConfigurationVersion *int `json:"configurationVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceOverviewRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceOverviewRequest.go
new file mode 100644
index 00000000..ccf588b7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceOverviewRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceConfigurationDeviceOverviewRequestBuilder is request builder for DeviceConfigurationDeviceOverview
+type DeviceConfigurationDeviceOverviewRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationDeviceOverviewRequest
+func (b *DeviceConfigurationDeviceOverviewRequestBuilder) Request() *DeviceConfigurationDeviceOverviewRequest {
+ return &DeviceConfigurationDeviceOverviewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationDeviceOverviewRequest is request for DeviceConfigurationDeviceOverview
+type DeviceConfigurationDeviceOverviewRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationDeviceOverview
+func (r *DeviceConfigurationDeviceOverviewRequest) Get(ctx context.Context) (resObj *DeviceConfigurationDeviceOverview, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationDeviceOverview
+func (r *DeviceConfigurationDeviceOverviewRequest) Update(ctx context.Context, reqObj *DeviceConfigurationDeviceOverview) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationDeviceOverview
+func (r *DeviceConfigurationDeviceOverviewRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryModel.go
new file mode 100644
index 00000000..13f92c9c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceConfigurationDeviceStateSummary undocumented
+type DeviceConfigurationDeviceStateSummary struct {
+ // Entity is the base model of DeviceConfigurationDeviceStateSummary
+ Entity
+ // UnknownDeviceCount Number of unknown devices
+ UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"`
+ // NotApplicableDeviceCount Number of not applicable devices
+ NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"`
+ // CompliantDeviceCount Number of compliant devices
+ CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"`
+ // RemediatedDeviceCount Number of remediated devices
+ RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"`
+ // NonCompliantDeviceCount Number of NonCompliant devices
+ NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"`
+ // ErrorDeviceCount Number of error devices
+ ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"`
+ // ConflictDeviceCount Number of conflict devices
+ ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryRequest.go
new file mode 100644
index 00000000..9fc4976e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceStateSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceConfigurationDeviceStateSummaryRequestBuilder is request builder for DeviceConfigurationDeviceStateSummary
+type DeviceConfigurationDeviceStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationDeviceStateSummaryRequest
+func (b *DeviceConfigurationDeviceStateSummaryRequestBuilder) Request() *DeviceConfigurationDeviceStateSummaryRequest {
+ return &DeviceConfigurationDeviceStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationDeviceStateSummaryRequest is request for DeviceConfigurationDeviceStateSummary
+type DeviceConfigurationDeviceStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationDeviceStateSummary
+func (r *DeviceConfigurationDeviceStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceConfigurationDeviceStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationDeviceStateSummary
+func (r *DeviceConfigurationDeviceStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceConfigurationDeviceStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationDeviceStateSummary
+func (r *DeviceConfigurationDeviceStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceStatusModel.go
new file mode 100644
index 00000000..764b75b8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceStatusModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceConfigurationDeviceStatus undocumented
+type DeviceConfigurationDeviceStatus struct {
+ // Entity is the base model of DeviceConfigurationDeviceStatus
+ Entity
+ // DeviceDisplayName Device name of the DevicePolicyStatus.
+ DeviceDisplayName *string `json:"deviceDisplayName,omitempty"`
+ // UserName The User Name that is being reported
+ UserName *string `json:"userName,omitempty"`
+ // DeviceModel The device model that is being reported
+ DeviceModel *string `json:"deviceModel,omitempty"`
+ // Platform Platform of the device that is being reported
+ Platform *int `json:"platform,omitempty"`
+ // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires
+ ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"`
+ // Status Compliance status of the policy report.
+ Status *ComplianceStatus `json:"status,omitempty"`
+ // LastReportedDateTime Last modified date time of the policy report.
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceStatusRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceStatusRequest.go
new file mode 100644
index 00000000..2d831375
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationDeviceStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceConfigurationDeviceStatusRequestBuilder is request builder for DeviceConfigurationDeviceStatus
+type DeviceConfigurationDeviceStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationDeviceStatusRequest
+func (b *DeviceConfigurationDeviceStatusRequestBuilder) Request() *DeviceConfigurationDeviceStatusRequest {
+ return &DeviceConfigurationDeviceStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationDeviceStatusRequest is request for DeviceConfigurationDeviceStatus
+type DeviceConfigurationDeviceStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationDeviceStatus
+func (r *DeviceConfigurationDeviceStatusRequest) Get(ctx context.Context) (resObj *DeviceConfigurationDeviceStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationDeviceStatus
+func (r *DeviceConfigurationDeviceStatusRequest) Update(ctx context.Context, reqObj *DeviceConfigurationDeviceStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationDeviceStatus
+func (r *DeviceConfigurationDeviceStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationGroupAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationGroupAssignmentModel.go
new file mode 100644
index 00000000..64772f6a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationGroupAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceConfigurationGroupAssignment Device configuration group assignment.
+type DeviceConfigurationGroupAssignment struct {
+ // Entity is the base model of DeviceConfigurationGroupAssignment
+ Entity
+ // TargetGroupID The Id of the AAD group we are targeting the device configuration to.
+ TargetGroupID *string `json:"targetGroupId,omitempty"`
+ // ExcludeGroup Indicates if this group is should be excluded. Defaults that the group should be included
+ ExcludeGroup *bool `json:"excludeGroup,omitempty"`
+ // DeviceConfiguration undocumented
+ DeviceConfiguration *DeviceConfiguration `json:"deviceConfiguration,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationGroupAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationGroupAssignmentRequest.go
new file mode 100644
index 00000000..bd20e038
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationGroupAssignmentRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceConfigurationGroupAssignmentRequestBuilder is request builder for DeviceConfigurationGroupAssignment
+type DeviceConfigurationGroupAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationGroupAssignmentRequest
+func (b *DeviceConfigurationGroupAssignmentRequestBuilder) Request() *DeviceConfigurationGroupAssignmentRequest {
+ return &DeviceConfigurationGroupAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationGroupAssignmentRequest is request for DeviceConfigurationGroupAssignment
+type DeviceConfigurationGroupAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationGroupAssignment
+func (r *DeviceConfigurationGroupAssignmentRequest) Get(ctx context.Context) (resObj *DeviceConfigurationGroupAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationGroupAssignment
+func (r *DeviceConfigurationGroupAssignmentRequest) Update(ctx context.Context, reqObj *DeviceConfigurationGroupAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationGroupAssignment
+func (r *DeviceConfigurationGroupAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceConfiguration is navigation property
+func (b *DeviceConfigurationGroupAssignmentRequestBuilder) DeviceConfiguration() *DeviceConfigurationRequestBuilder {
+ bb := &DeviceConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceConfiguration"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationModel.go
new file mode 100644
index 00000000..dc0369e9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationModel.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceConfiguration Device Configuration.
+type DeviceConfiguration struct {
+ // Entity is the base model of DeviceConfiguration
+ Entity
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // SupportsScopeTags Indicates whether or not the underlying Device Configuration supports the assignment of scope tags. Assigning to the ScopeTags property is not allowed when this value is false and entities will not be visible to scoped users. This occurs for Legacy policies created in Silverlight and can be resolved by deleting and recreating the policy in the Azure Portal. This property is read-only.
+ SupportsScopeTags *bool `json:"supportsScopeTags,omitempty"`
+ // DeviceManagementApplicabilityRuleOsEdition The OS edition applicability for this Policy.
+ DeviceManagementApplicabilityRuleOsEdition *DeviceManagementApplicabilityRuleOsEdition `json:"deviceManagementApplicabilityRuleOsEdition,omitempty"`
+ // DeviceManagementApplicabilityRuleOsVersion The OS version applicability rule for this Policy.
+ DeviceManagementApplicabilityRuleOsVersion *DeviceManagementApplicabilityRuleOsVersion `json:"deviceManagementApplicabilityRuleOsVersion,omitempty"`
+ // DeviceManagementApplicabilityRuleDeviceMode The device mode applicability rule for this Policy.
+ DeviceManagementApplicabilityRuleDeviceMode *DeviceManagementApplicabilityRuleDeviceMode `json:"deviceManagementApplicabilityRuleDeviceMode,omitempty"`
+ // CreatedDateTime DateTime the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Description Admin provided description of the Device Configuration.
+ Description *string `json:"description,omitempty"`
+ // DisplayName Admin provided name of the device configuration.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version Version of the device configuration.
+ Version *int `json:"version,omitempty"`
+ // GroupAssignments undocumented
+ GroupAssignments []DeviceConfigurationGroupAssignment `json:"groupAssignments,omitempty"`
+ // Assignments undocumented
+ Assignments []DeviceConfigurationAssignment `json:"assignments,omitempty"`
+ // DeviceStatuses undocumented
+ DeviceStatuses []DeviceConfigurationDeviceStatus `json:"deviceStatuses,omitempty"`
+ // UserStatuses undocumented
+ UserStatuses []DeviceConfigurationUserStatus `json:"userStatuses,omitempty"`
+ // DeviceStatusOverview undocumented
+ DeviceStatusOverview *DeviceConfigurationDeviceOverview `json:"deviceStatusOverview,omitempty"`
+ // UserStatusOverview undocumented
+ UserStatusOverview *DeviceConfigurationUserOverview `json:"userStatusOverview,omitempty"`
+ // DeviceSettingStateSummaries undocumented
+ DeviceSettingStateSummaries []SettingStateDeviceSummary `json:"deviceSettingStateSummaries,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationPolicySetItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationPolicySetItemModel.go
new file mode 100644
index 00000000..8e43c98a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationPolicySetItemModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceConfigurationPolicySetItem A class containing the properties used for device configuration PolicySetItem.
+type DeviceConfigurationPolicySetItem struct {
+ // PolicySetItem is the base model of DeviceConfigurationPolicySetItem
+ PolicySetItem
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationRequest.go
new file mode 100644
index 00000000..495b5d76
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationRequest.go
@@ -0,0 +1,529 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceConfigurationRequestBuilder is request builder for DeviceConfiguration
+type DeviceConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationRequest
+func (b *DeviceConfigurationRequestBuilder) Request() *DeviceConfigurationRequest {
+ return &DeviceConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationRequest is request for DeviceConfiguration
+type DeviceConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfiguration
+func (r *DeviceConfigurationRequest) Get(ctx context.Context) (resObj *DeviceConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfiguration
+func (r *DeviceConfigurationRequest) Update(ctx context.Context, reqObj *DeviceConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfiguration
+func (r *DeviceConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for DeviceConfigurationAssignment collection
+func (b *DeviceConfigurationRequestBuilder) Assignments() *DeviceConfigurationAssignmentsCollectionRequestBuilder {
+ bb := &DeviceConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// DeviceConfigurationAssignmentsCollectionRequestBuilder is request builder for DeviceConfigurationAssignment collection
+type DeviceConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceConfigurationAssignment collection
+func (b *DeviceConfigurationAssignmentsCollectionRequestBuilder) Request() *DeviceConfigurationAssignmentsCollectionRequest {
+ return &DeviceConfigurationAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceConfigurationAssignment item
+func (b *DeviceConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *DeviceConfigurationAssignmentRequestBuilder {
+ bb := &DeviceConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceConfigurationAssignmentsCollectionRequest is request for DeviceConfigurationAssignment collection
+type DeviceConfigurationAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceConfigurationAssignment collection
+func (r *DeviceConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceConfigurationAssignment collection
+func (r *DeviceConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceConfigurationAssignment collection
+func (r *DeviceConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationAssignment) (resObj *DeviceConfigurationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceSettingStateSummaries returns request builder for SettingStateDeviceSummary collection
+func (b *DeviceConfigurationRequestBuilder) DeviceSettingStateSummaries() *DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder {
+ bb := &DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceSettingStateSummaries"
+ return bb
+}
+
+// DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder is request builder for SettingStateDeviceSummary collection
+type DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SettingStateDeviceSummary collection
+func (b *DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder) Request() *DeviceConfigurationDeviceSettingStateSummariesCollectionRequest {
+ return &DeviceConfigurationDeviceSettingStateSummariesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SettingStateDeviceSummary item
+func (b *DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder) ID(id string) *SettingStateDeviceSummaryRequestBuilder {
+ bb := &SettingStateDeviceSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceConfigurationDeviceSettingStateSummariesCollectionRequest is request for SettingStateDeviceSummary collection
+type DeviceConfigurationDeviceSettingStateSummariesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SettingStateDeviceSummary collection
+func (r *DeviceConfigurationDeviceSettingStateSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SettingStateDeviceSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SettingStateDeviceSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SettingStateDeviceSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SettingStateDeviceSummary collection
+func (r *DeviceConfigurationDeviceSettingStateSummariesCollectionRequest) Get(ctx context.Context) ([]SettingStateDeviceSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SettingStateDeviceSummary collection
+func (r *DeviceConfigurationDeviceSettingStateSummariesCollectionRequest) Add(ctx context.Context, reqObj *SettingStateDeviceSummary) (resObj *SettingStateDeviceSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStatusOverview is navigation property
+func (b *DeviceConfigurationRequestBuilder) DeviceStatusOverview() *DeviceConfigurationDeviceOverviewRequestBuilder {
+ bb := &DeviceConfigurationDeviceOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatusOverview"
+ return bb
+}
+
+// DeviceStatuses returns request builder for DeviceConfigurationDeviceStatus collection
+func (b *DeviceConfigurationRequestBuilder) DeviceStatuses() *DeviceConfigurationDeviceStatusesCollectionRequestBuilder {
+ bb := &DeviceConfigurationDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatuses"
+ return bb
+}
+
+// DeviceConfigurationDeviceStatusesCollectionRequestBuilder is request builder for DeviceConfigurationDeviceStatus collection
+type DeviceConfigurationDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceConfigurationDeviceStatus collection
+func (b *DeviceConfigurationDeviceStatusesCollectionRequestBuilder) Request() *DeviceConfigurationDeviceStatusesCollectionRequest {
+ return &DeviceConfigurationDeviceStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceConfigurationDeviceStatus item
+func (b *DeviceConfigurationDeviceStatusesCollectionRequestBuilder) ID(id string) *DeviceConfigurationDeviceStatusRequestBuilder {
+ bb := &DeviceConfigurationDeviceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceConfigurationDeviceStatusesCollectionRequest is request for DeviceConfigurationDeviceStatus collection
+type DeviceConfigurationDeviceStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceConfigurationDeviceStatus collection
+func (r *DeviceConfigurationDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceConfigurationDeviceStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfigurationDeviceStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfigurationDeviceStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceConfigurationDeviceStatus collection
+func (r *DeviceConfigurationDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationDeviceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceConfigurationDeviceStatus collection
+func (r *DeviceConfigurationDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationDeviceStatus) (resObj *DeviceConfigurationDeviceStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupAssignments returns request builder for DeviceConfigurationGroupAssignment collection
+func (b *DeviceConfigurationRequestBuilder) GroupAssignments() *DeviceConfigurationGroupAssignmentsCollectionRequestBuilder {
+ bb := &DeviceConfigurationGroupAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupAssignments"
+ return bb
+}
+
+// DeviceConfigurationGroupAssignmentsCollectionRequestBuilder is request builder for DeviceConfigurationGroupAssignment collection
+type DeviceConfigurationGroupAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceConfigurationGroupAssignment collection
+func (b *DeviceConfigurationGroupAssignmentsCollectionRequestBuilder) Request() *DeviceConfigurationGroupAssignmentsCollectionRequest {
+ return &DeviceConfigurationGroupAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceConfigurationGroupAssignment item
+func (b *DeviceConfigurationGroupAssignmentsCollectionRequestBuilder) ID(id string) *DeviceConfigurationGroupAssignmentRequestBuilder {
+ bb := &DeviceConfigurationGroupAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceConfigurationGroupAssignmentsCollectionRequest is request for DeviceConfigurationGroupAssignment collection
+type DeviceConfigurationGroupAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceConfigurationGroupAssignment collection
+func (r *DeviceConfigurationGroupAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceConfigurationGroupAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfigurationGroupAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfigurationGroupAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceConfigurationGroupAssignment collection
+func (r *DeviceConfigurationGroupAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationGroupAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceConfigurationGroupAssignment collection
+func (r *DeviceConfigurationGroupAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationGroupAssignment) (resObj *DeviceConfigurationGroupAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserStatusOverview is navigation property
+func (b *DeviceConfigurationRequestBuilder) UserStatusOverview() *DeviceConfigurationUserOverviewRequestBuilder {
+ bb := &DeviceConfigurationUserOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStatusOverview"
+ return bb
+}
+
+// UserStatuses returns request builder for DeviceConfigurationUserStatus collection
+func (b *DeviceConfigurationRequestBuilder) UserStatuses() *DeviceConfigurationUserStatusesCollectionRequestBuilder {
+ bb := &DeviceConfigurationUserStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStatuses"
+ return bb
+}
+
+// DeviceConfigurationUserStatusesCollectionRequestBuilder is request builder for DeviceConfigurationUserStatus collection
+type DeviceConfigurationUserStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceConfigurationUserStatus collection
+func (b *DeviceConfigurationUserStatusesCollectionRequestBuilder) Request() *DeviceConfigurationUserStatusesCollectionRequest {
+ return &DeviceConfigurationUserStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceConfigurationUserStatus item
+func (b *DeviceConfigurationUserStatusesCollectionRequestBuilder) ID(id string) *DeviceConfigurationUserStatusRequestBuilder {
+ bb := &DeviceConfigurationUserStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceConfigurationUserStatusesCollectionRequest is request for DeviceConfigurationUserStatus collection
+type DeviceConfigurationUserStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceConfigurationUserStatus collection
+func (r *DeviceConfigurationUserStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceConfigurationUserStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfigurationUserStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfigurationUserStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceConfigurationUserStatus collection
+func (r *DeviceConfigurationUserStatusesCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationUserStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceConfigurationUserStatus collection
+func (r *DeviceConfigurationUserStatusesCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationUserStatus) (resObj *DeviceConfigurationUserStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationSettingStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationSettingStateModel.go
new file mode 100644
index 00000000..32dc620e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationSettingStateModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceConfigurationSettingState undocumented
+type DeviceConfigurationSettingState struct {
+ // Object is the base model of DeviceConfigurationSettingState
+ Object
+ // Setting The setting that is being reported
+ Setting *string `json:"setting,omitempty"`
+ // SettingName Localized/user friendly setting name that is being reported
+ SettingName *string `json:"settingName,omitempty"`
+ // InstanceDisplayName Name of setting instance that is being reported.
+ InstanceDisplayName *string `json:"instanceDisplayName,omitempty"`
+ // State The compliance state of the setting
+ State *ComplianceStatus `json:"state,omitempty"`
+ // ErrorCode Error code for the setting
+ ErrorCode *int `json:"errorCode,omitempty"`
+ // ErrorDescription Error description
+ ErrorDescription *string `json:"errorDescription,omitempty"`
+ // UserID UserId
+ UserID *string `json:"userId,omitempty"`
+ // UserName UserName
+ UserName *string `json:"userName,omitempty"`
+ // UserEmail UserEmail
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // Sources Contributing policies
+ Sources []SettingSource `json:"sources,omitempty"`
+ // CurrentValue Current value of setting on device
+ CurrentValue *string `json:"currentValue,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationStateModel.go
new file mode 100644
index 00000000..e3e4c6f0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationStateModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceConfigurationState Device Configuration State for a given device.
+type DeviceConfigurationState struct {
+ // Entity is the base model of DeviceConfigurationState
+ Entity
+ // SettingStates undocumented
+ SettingStates []DeviceConfigurationSettingState `json:"settingStates,omitempty"`
+ // DisplayName The name of the policy for this policyBase
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version The version of the policy
+ Version *int `json:"version,omitempty"`
+ // PlatformType Platform type that the policy applies to
+ PlatformType *PolicyPlatformType `json:"platformType,omitempty"`
+ // State The compliance state of the policy
+ State *ComplianceStatus `json:"state,omitempty"`
+ // SettingCount Count of how many setting a policy holds
+ SettingCount *int `json:"settingCount,omitempty"`
+ // UserID User unique identifier, must be Guid
+ UserID *string `json:"userId,omitempty"`
+ // UserPrincipalName User Principal Name
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationStateRequest.go
new file mode 100644
index 00000000..72323c3d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceConfigurationStateRequestBuilder is request builder for DeviceConfigurationState
+type DeviceConfigurationStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationStateRequest
+func (b *DeviceConfigurationStateRequestBuilder) Request() *DeviceConfigurationStateRequest {
+ return &DeviceConfigurationStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationStateRequest is request for DeviceConfigurationState
+type DeviceConfigurationStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationState
+func (r *DeviceConfigurationStateRequest) Get(ctx context.Context) (resObj *DeviceConfigurationState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationState
+func (r *DeviceConfigurationStateRequest) Update(ctx context.Context, reqObj *DeviceConfigurationState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationState
+func (r *DeviceConfigurationStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationTargetedUserAndDeviceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationTargetedUserAndDeviceModel.go
new file mode 100644
index 00000000..32b4b408
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationTargetedUserAndDeviceModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceConfigurationTargetedUserAndDevice undocumented
+type DeviceConfigurationTargetedUserAndDevice struct {
+ // Object is the base model of DeviceConfigurationTargetedUserAndDevice
+ Object
+ // DeviceID The id of the device in the checkin.
+ DeviceID *string `json:"deviceId,omitempty"`
+ // DeviceName The name of the device in the checkin.
+ DeviceName *string `json:"deviceName,omitempty"`
+ // UserID The id of the user in the checkin.
+ UserID *string `json:"userId,omitempty"`
+ // UserDisplayName The display name of the user in the checkin
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // UserPrincipalName The UPN of the user in the checkin.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // LastCheckinDateTime Last checkin time for this user/device pair.
+ LastCheckinDateTime *time.Time `json:"lastCheckinDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserOverviewModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserOverviewModel.go
new file mode 100644
index 00000000..8a5a5293
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserOverviewModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceConfigurationUserOverview undocumented
+type DeviceConfigurationUserOverview struct {
+ // Entity is the base model of DeviceConfigurationUserOverview
+ Entity
+ // PendingCount Number of pending Users
+ PendingCount *int `json:"pendingCount,omitempty"`
+ // NotApplicableCount Number of not applicable users
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // SuccessCount Number of succeeded Users
+ SuccessCount *int `json:"successCount,omitempty"`
+ // ErrorCount Number of error Users
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // FailedCount Number of failed Users
+ FailedCount *int `json:"failedCount,omitempty"`
+ // ConflictCount Number of users in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // LastUpdateDateTime Last update time
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+ // ConfigurationVersion Version of the policy for that overview
+ ConfigurationVersion *int `json:"configurationVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserOverviewRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserOverviewRequest.go
new file mode 100644
index 00000000..9d603631
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserOverviewRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceConfigurationUserOverviewRequestBuilder is request builder for DeviceConfigurationUserOverview
+type DeviceConfigurationUserOverviewRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationUserOverviewRequest
+func (b *DeviceConfigurationUserOverviewRequestBuilder) Request() *DeviceConfigurationUserOverviewRequest {
+ return &DeviceConfigurationUserOverviewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationUserOverviewRequest is request for DeviceConfigurationUserOverview
+type DeviceConfigurationUserOverviewRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationUserOverview
+func (r *DeviceConfigurationUserOverviewRequest) Get(ctx context.Context) (resObj *DeviceConfigurationUserOverview, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationUserOverview
+func (r *DeviceConfigurationUserOverviewRequest) Update(ctx context.Context, reqObj *DeviceConfigurationUserOverview) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationUserOverview
+func (r *DeviceConfigurationUserOverviewRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserStateSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserStateSummaryModel.go
new file mode 100644
index 00000000..d60d5bb9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserStateSummaryModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceConfigurationUserStateSummary undocumented
+type DeviceConfigurationUserStateSummary struct {
+ // Entity is the base model of DeviceConfigurationUserStateSummary
+ Entity
+ // UnknownUserCount Number of unknown users
+ UnknownUserCount *int `json:"unknownUserCount,omitempty"`
+ // NotApplicableUserCount Number of not applicable users
+ NotApplicableUserCount *int `json:"notApplicableUserCount,omitempty"`
+ // CompliantUserCount Number of compliant users
+ CompliantUserCount *int `json:"compliantUserCount,omitempty"`
+ // RemediatedUserCount Number of remediated users
+ RemediatedUserCount *int `json:"remediatedUserCount,omitempty"`
+ // NonCompliantUserCount Number of NonCompliant users
+ NonCompliantUserCount *int `json:"nonCompliantUserCount,omitempty"`
+ // ErrorUserCount Number of error users
+ ErrorUserCount *int `json:"errorUserCount,omitempty"`
+ // ConflictUserCount Number of conflict users
+ ConflictUserCount *int `json:"conflictUserCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserStateSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserStateSummaryRequest.go
new file mode 100644
index 00000000..bd315803
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserStateSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceConfigurationUserStateSummaryRequestBuilder is request builder for DeviceConfigurationUserStateSummary
+type DeviceConfigurationUserStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationUserStateSummaryRequest
+func (b *DeviceConfigurationUserStateSummaryRequestBuilder) Request() *DeviceConfigurationUserStateSummaryRequest {
+ return &DeviceConfigurationUserStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationUserStateSummaryRequest is request for DeviceConfigurationUserStateSummary
+type DeviceConfigurationUserStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationUserStateSummary
+func (r *DeviceConfigurationUserStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceConfigurationUserStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationUserStateSummary
+func (r *DeviceConfigurationUserStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceConfigurationUserStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationUserStateSummary
+func (r *DeviceConfigurationUserStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserStatusModel.go
new file mode 100644
index 00000000..2db48021
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserStatusModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceConfigurationUserStatus undocumented
+type DeviceConfigurationUserStatus struct {
+ // Entity is the base model of DeviceConfigurationUserStatus
+ Entity
+ // UserDisplayName User name of the DevicePolicyStatus.
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // DevicesCount Devices count for that user.
+ DevicesCount *int `json:"devicesCount,omitempty"`
+ // Status Compliance status of the policy report.
+ Status *ComplianceStatus `json:"status,omitempty"`
+ // LastReportedDateTime Last modified date time of the policy report.
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserStatusRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserStatusRequest.go
new file mode 100644
index 00000000..4750918d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceConfigurationUserStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceConfigurationUserStatusRequestBuilder is request builder for DeviceConfigurationUserStatus
+type DeviceConfigurationUserStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationUserStatusRequest
+func (b *DeviceConfigurationUserStatusRequestBuilder) Request() *DeviceConfigurationUserStatusRequest {
+ return &DeviceConfigurationUserStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationUserStatusRequest is request for DeviceConfigurationUserStatus
+type DeviceConfigurationUserStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationUserStatus
+func (r *DeviceConfigurationUserStatusRequest) Get(ctx context.Context) (resObj *DeviceConfigurationUserStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationUserStatus
+func (r *DeviceConfigurationUserStatusRequest) Update(ctx context.Context, reqObj *DeviceConfigurationUserStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationUserStatus
+func (r *DeviceConfigurationUserStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceDetailModel.go
new file mode 100644
index 00000000..fd41b219
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceDetailModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceDetail undocumented
+type DeviceDetail struct {
+ // Object is the base model of DeviceDetail
+ Object
+ // DeviceID undocumented
+ DeviceID *string `json:"deviceId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // OperatingSystem undocumented
+ OperatingSystem *string `json:"operatingSystem,omitempty"`
+ // Browser undocumented
+ Browser *string `json:"browser,omitempty"`
+ // BrowserID undocumented
+ BrowserID *string `json:"browserId,omitempty"`
+ // IsCompliant undocumented
+ IsCompliant *bool `json:"isCompliant,omitempty"`
+ // IsManaged undocumented
+ IsManaged *bool `json:"isManaged,omitempty"`
+ // TrustType undocumented
+ TrustType *string `json:"trustType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentConfigurationAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentConfigurationAction.go
new file mode 100644
index 00000000..23914903
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentConfigurationAction.go
@@ -0,0 +1,172 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestParameter undocumented
+type DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// DeviceEnrollmentConfigurationSetPriorityRequestParameter undocumented
+type DeviceEnrollmentConfigurationSetPriorityRequestParameter struct {
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+}
+
+// DeviceEnrollmentConfigurationAssignRequestParameter undocumented
+type DeviceEnrollmentConfigurationAssignRequestParameter struct {
+ // EnrollmentConfigurationAssignments undocumented
+ EnrollmentConfigurationAssignments []EnrollmentConfigurationAssignment `json:"enrollmentConfigurationAssignments,omitempty"`
+}
+
+//
+type DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestParameter) *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder {
+ bb := &DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// HasPayloadLinks action undocumented
+func (b *UserDeviceEnrollmentConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestParameter) *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder {
+ bb := &DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder) Request() *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest {
+ return &DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type DeviceEnrollmentConfigurationSetPriorityRequestBuilder struct{ BaseRequestBuilder }
+
+// SetPriority action undocumented
+func (b *DeviceEnrollmentConfigurationRequestBuilder) SetPriority(reqObj *DeviceEnrollmentConfigurationSetPriorityRequestParameter) *DeviceEnrollmentConfigurationSetPriorityRequestBuilder {
+ bb := &DeviceEnrollmentConfigurationSetPriorityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/setPriority"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceEnrollmentConfigurationSetPriorityRequest struct{ BaseRequest }
+
+//
+func (b *DeviceEnrollmentConfigurationSetPriorityRequestBuilder) Request() *DeviceEnrollmentConfigurationSetPriorityRequest {
+ return &DeviceEnrollmentConfigurationSetPriorityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceEnrollmentConfigurationSetPriorityRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceEnrollmentConfigurationAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *DeviceEnrollmentConfigurationRequestBuilder) Assign(reqObj *DeviceEnrollmentConfigurationAssignRequestParameter) *DeviceEnrollmentConfigurationAssignRequestBuilder {
+ bb := &DeviceEnrollmentConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceEnrollmentConfigurationAssignRequest struct{ BaseRequest }
+
+//
+func (b *DeviceEnrollmentConfigurationAssignRequestBuilder) Request() *DeviceEnrollmentConfigurationAssignRequest {
+ return &DeviceEnrollmentConfigurationAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceEnrollmentConfigurationAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentConfigurationModel.go
new file mode 100644
index 00000000..1f4d2f07
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentConfigurationModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceEnrollmentConfiguration The Base Class of Device Enrollment Configuration
+type DeviceEnrollmentConfiguration struct {
+ // Entity is the base model of DeviceEnrollmentConfiguration
+ Entity
+ // DisplayName The display name of the device enrollment configuration
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The description of the device enrollment configuration
+ Description *string `json:"description,omitempty"`
+ // Priority Priority is used when a user exists in multiple groups that are assigned enrollment configuration. Users are subject only to the configuration with the lowest priority value.
+ Priority *int `json:"priority,omitempty"`
+ // CreatedDateTime Created date time in UTC of the device enrollment configuration
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Last modified date time in UTC of the device enrollment configuration
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Version The version of the device enrollment configuration
+ Version *int `json:"version,omitempty"`
+ // Assignments undocumented
+ Assignments []EnrollmentConfigurationAssignment `json:"assignments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentConfigurationRequest.go
new file mode 100644
index 00000000..f2b5df56
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentConfigurationRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceEnrollmentConfigurationRequestBuilder is request builder for DeviceEnrollmentConfiguration
+type DeviceEnrollmentConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceEnrollmentConfigurationRequest
+func (b *DeviceEnrollmentConfigurationRequestBuilder) Request() *DeviceEnrollmentConfigurationRequest {
+ return &DeviceEnrollmentConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceEnrollmentConfigurationRequest is request for DeviceEnrollmentConfiguration
+type DeviceEnrollmentConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceEnrollmentConfiguration
+func (r *DeviceEnrollmentConfigurationRequest) Get(ctx context.Context) (resObj *DeviceEnrollmentConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceEnrollmentConfiguration
+func (r *DeviceEnrollmentConfigurationRequest) Update(ctx context.Context, reqObj *DeviceEnrollmentConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceEnrollmentConfiguration
+func (r *DeviceEnrollmentConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for EnrollmentConfigurationAssignment collection
+func (b *DeviceEnrollmentConfigurationRequestBuilder) Assignments() *DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder {
+ bb := &DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder is request builder for EnrollmentConfigurationAssignment collection
+type DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EnrollmentConfigurationAssignment collection
+func (b *DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder) Request() *DeviceEnrollmentConfigurationAssignmentsCollectionRequest {
+ return &DeviceEnrollmentConfigurationAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EnrollmentConfigurationAssignment item
+func (b *DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *EnrollmentConfigurationAssignmentRequestBuilder {
+ bb := &EnrollmentConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceEnrollmentConfigurationAssignmentsCollectionRequest is request for EnrollmentConfigurationAssignment collection
+type DeviceEnrollmentConfigurationAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EnrollmentConfigurationAssignment collection
+func (r *DeviceEnrollmentConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EnrollmentConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EnrollmentConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EnrollmentConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EnrollmentConfigurationAssignment collection
+func (r *DeviceEnrollmentConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]EnrollmentConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EnrollmentConfigurationAssignment collection
+func (r *DeviceEnrollmentConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *EnrollmentConfigurationAssignment) (resObj *EnrollmentConfigurationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentFailureReasonEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentFailureReasonEnum.go
new file mode 100644
index 00000000..f807eace
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentFailureReasonEnum.go
@@ -0,0 +1,105 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceEnrollmentFailureReason undocumented
+type DeviceEnrollmentFailureReason int
+
+const (
+ // DeviceEnrollmentFailureReasonVUnknown undocumented
+ DeviceEnrollmentFailureReasonVUnknown DeviceEnrollmentFailureReason = 0
+ // DeviceEnrollmentFailureReasonVAuthentication undocumented
+ DeviceEnrollmentFailureReasonVAuthentication DeviceEnrollmentFailureReason = 1
+ // DeviceEnrollmentFailureReasonVAuthorization undocumented
+ DeviceEnrollmentFailureReasonVAuthorization DeviceEnrollmentFailureReason = 2
+ // DeviceEnrollmentFailureReasonVAccountValidation undocumented
+ DeviceEnrollmentFailureReasonVAccountValidation DeviceEnrollmentFailureReason = 3
+ // DeviceEnrollmentFailureReasonVUserValidation undocumented
+ DeviceEnrollmentFailureReasonVUserValidation DeviceEnrollmentFailureReason = 4
+ // DeviceEnrollmentFailureReasonVDeviceNotSupported undocumented
+ DeviceEnrollmentFailureReasonVDeviceNotSupported DeviceEnrollmentFailureReason = 5
+ // DeviceEnrollmentFailureReasonVInMaintenance undocumented
+ DeviceEnrollmentFailureReasonVInMaintenance DeviceEnrollmentFailureReason = 6
+ // DeviceEnrollmentFailureReasonVBadRequest undocumented
+ DeviceEnrollmentFailureReasonVBadRequest DeviceEnrollmentFailureReason = 7
+ // DeviceEnrollmentFailureReasonVFeatureNotSupported undocumented
+ DeviceEnrollmentFailureReasonVFeatureNotSupported DeviceEnrollmentFailureReason = 8
+ // DeviceEnrollmentFailureReasonVEnrollmentRestrictionsEnforced undocumented
+ DeviceEnrollmentFailureReasonVEnrollmentRestrictionsEnforced DeviceEnrollmentFailureReason = 9
+ // DeviceEnrollmentFailureReasonVClientDisconnected undocumented
+ DeviceEnrollmentFailureReasonVClientDisconnected DeviceEnrollmentFailureReason = 10
+ // DeviceEnrollmentFailureReasonVUserAbandonment undocumented
+ DeviceEnrollmentFailureReasonVUserAbandonment DeviceEnrollmentFailureReason = 11
+)
+
+// DeviceEnrollmentFailureReasonPUnknown returns a pointer to DeviceEnrollmentFailureReasonVUnknown
+func DeviceEnrollmentFailureReasonPUnknown() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVUnknown
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPAuthentication returns a pointer to DeviceEnrollmentFailureReasonVAuthentication
+func DeviceEnrollmentFailureReasonPAuthentication() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVAuthentication
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPAuthorization returns a pointer to DeviceEnrollmentFailureReasonVAuthorization
+func DeviceEnrollmentFailureReasonPAuthorization() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVAuthorization
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPAccountValidation returns a pointer to DeviceEnrollmentFailureReasonVAccountValidation
+func DeviceEnrollmentFailureReasonPAccountValidation() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVAccountValidation
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPUserValidation returns a pointer to DeviceEnrollmentFailureReasonVUserValidation
+func DeviceEnrollmentFailureReasonPUserValidation() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVUserValidation
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPDeviceNotSupported returns a pointer to DeviceEnrollmentFailureReasonVDeviceNotSupported
+func DeviceEnrollmentFailureReasonPDeviceNotSupported() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVDeviceNotSupported
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPInMaintenance returns a pointer to DeviceEnrollmentFailureReasonVInMaintenance
+func DeviceEnrollmentFailureReasonPInMaintenance() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVInMaintenance
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPBadRequest returns a pointer to DeviceEnrollmentFailureReasonVBadRequest
+func DeviceEnrollmentFailureReasonPBadRequest() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVBadRequest
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPFeatureNotSupported returns a pointer to DeviceEnrollmentFailureReasonVFeatureNotSupported
+func DeviceEnrollmentFailureReasonPFeatureNotSupported() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVFeatureNotSupported
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPEnrollmentRestrictionsEnforced returns a pointer to DeviceEnrollmentFailureReasonVEnrollmentRestrictionsEnforced
+func DeviceEnrollmentFailureReasonPEnrollmentRestrictionsEnforced() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVEnrollmentRestrictionsEnforced
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPClientDisconnected returns a pointer to DeviceEnrollmentFailureReasonVClientDisconnected
+func DeviceEnrollmentFailureReasonPClientDisconnected() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVClientDisconnected
+ return &v
+}
+
+// DeviceEnrollmentFailureReasonPUserAbandonment returns a pointer to DeviceEnrollmentFailureReasonVUserAbandonment
+func DeviceEnrollmentFailureReasonPUserAbandonment() *DeviceEnrollmentFailureReason {
+ v := DeviceEnrollmentFailureReasonVUserAbandonment
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentLimitConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentLimitConfigurationModel.go
new file mode 100644
index 00000000..6938d30a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentLimitConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceEnrollmentLimitConfiguration Device Enrollment Configuration that restricts the number of devices a user can enroll
+type DeviceEnrollmentLimitConfiguration struct {
+ // DeviceEnrollmentConfiguration is the base model of DeviceEnrollmentLimitConfiguration
+ DeviceEnrollmentConfiguration
+ // Limit The maximum number of devices that a user can enroll
+ Limit *int `json:"limit,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionModel.go
new file mode 100644
index 00000000..4ab86e86
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceEnrollmentPlatformRestriction undocumented
+type DeviceEnrollmentPlatformRestriction struct {
+ // Object is the base model of DeviceEnrollmentPlatformRestriction
+ Object
+ // PlatformBlocked Block the platform from enrolling
+ PlatformBlocked *bool `json:"platformBlocked,omitempty"`
+ // PersonalDeviceEnrollmentBlocked Block personally owned devices from enrolling
+ PersonalDeviceEnrollmentBlocked *bool `json:"personalDeviceEnrollmentBlocked,omitempty"`
+ // OsMinimumVersion Min OS version supported
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Max OS version supported
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionsConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionsConfigurationModel.go
new file mode 100644
index 00000000..dcb50c7f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentPlatformRestrictionsConfigurationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceEnrollmentPlatformRestrictionsConfiguration Device Enrollment Configuration that restricts the types of devices a user can enroll
+type DeviceEnrollmentPlatformRestrictionsConfiguration struct {
+ // DeviceEnrollmentConfiguration is the base model of DeviceEnrollmentPlatformRestrictionsConfiguration
+ DeviceEnrollmentConfiguration
+ // IOSRestriction Ios restrictions based on platform, platform operating system version, and device ownership
+ IOSRestriction *DeviceEnrollmentPlatformRestriction `json:"iosRestriction,omitempty"`
+ // WindowsRestriction Windows restrictions based on platform, platform operating system version, and device ownership
+ WindowsRestriction *DeviceEnrollmentPlatformRestriction `json:"windowsRestriction,omitempty"`
+ // WindowsMobileRestriction Windows mobile restrictions based on platform, platform operating system version, and device ownership
+ WindowsMobileRestriction *DeviceEnrollmentPlatformRestriction `json:"windowsMobileRestriction,omitempty"`
+ // AndroidRestriction Android restrictions based on platform, platform operating system version, and device ownership
+ AndroidRestriction *DeviceEnrollmentPlatformRestriction `json:"androidRestriction,omitempty"`
+ // AndroidForWorkRestriction Android for work restrictions based on platform, platform operating system version, and device ownership
+ AndroidForWorkRestriction *DeviceEnrollmentPlatformRestriction `json:"androidForWorkRestriction,omitempty"`
+ // MacRestriction Mac restrictions based on platform, platform operating system version, and device ownership
+ MacRestriction *DeviceEnrollmentPlatformRestriction `json:"macRestriction,omitempty"`
+ // MacOSRestriction Mac restrictions based on platform, platform operating system version, and device ownership
+ MacOSRestriction *DeviceEnrollmentPlatformRestriction `json:"macOSRestriction,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentTypeEnum.go
new file mode 100644
index 00000000..b597b9d7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentTypeEnum.go
@@ -0,0 +1,105 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceEnrollmentType undocumented
+type DeviceEnrollmentType int
+
+const (
+ // DeviceEnrollmentTypeVUnknown undocumented
+ DeviceEnrollmentTypeVUnknown DeviceEnrollmentType = 0
+ // DeviceEnrollmentTypeVUserEnrollment undocumented
+ DeviceEnrollmentTypeVUserEnrollment DeviceEnrollmentType = 1
+ // DeviceEnrollmentTypeVDeviceEnrollmentManager undocumented
+ DeviceEnrollmentTypeVDeviceEnrollmentManager DeviceEnrollmentType = 2
+ // DeviceEnrollmentTypeVAppleBulkWithUser undocumented
+ DeviceEnrollmentTypeVAppleBulkWithUser DeviceEnrollmentType = 3
+ // DeviceEnrollmentTypeVAppleBulkWithoutUser undocumented
+ DeviceEnrollmentTypeVAppleBulkWithoutUser DeviceEnrollmentType = 4
+ // DeviceEnrollmentTypeVWindowsAzureADJoin undocumented
+ DeviceEnrollmentTypeVWindowsAzureADJoin DeviceEnrollmentType = 5
+ // DeviceEnrollmentTypeVWindowsBulkUserless undocumented
+ DeviceEnrollmentTypeVWindowsBulkUserless DeviceEnrollmentType = 6
+ // DeviceEnrollmentTypeVWindowsAutoEnrollment undocumented
+ DeviceEnrollmentTypeVWindowsAutoEnrollment DeviceEnrollmentType = 7
+ // DeviceEnrollmentTypeVWindowsBulkAzureDomainJoin undocumented
+ DeviceEnrollmentTypeVWindowsBulkAzureDomainJoin DeviceEnrollmentType = 8
+ // DeviceEnrollmentTypeVWindowsCoManagement undocumented
+ DeviceEnrollmentTypeVWindowsCoManagement DeviceEnrollmentType = 9
+ // DeviceEnrollmentTypeVAppleUserEnrollment undocumented
+ DeviceEnrollmentTypeVAppleUserEnrollment DeviceEnrollmentType = 11
+ // DeviceEnrollmentTypeVAppleUserEnrollmentWithServiceAccount undocumented
+ DeviceEnrollmentTypeVAppleUserEnrollmentWithServiceAccount DeviceEnrollmentType = 12
+)
+
+// DeviceEnrollmentTypePUnknown returns a pointer to DeviceEnrollmentTypeVUnknown
+func DeviceEnrollmentTypePUnknown() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVUnknown
+ return &v
+}
+
+// DeviceEnrollmentTypePUserEnrollment returns a pointer to DeviceEnrollmentTypeVUserEnrollment
+func DeviceEnrollmentTypePUserEnrollment() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVUserEnrollment
+ return &v
+}
+
+// DeviceEnrollmentTypePDeviceEnrollmentManager returns a pointer to DeviceEnrollmentTypeVDeviceEnrollmentManager
+func DeviceEnrollmentTypePDeviceEnrollmentManager() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVDeviceEnrollmentManager
+ return &v
+}
+
+// DeviceEnrollmentTypePAppleBulkWithUser returns a pointer to DeviceEnrollmentTypeVAppleBulkWithUser
+func DeviceEnrollmentTypePAppleBulkWithUser() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVAppleBulkWithUser
+ return &v
+}
+
+// DeviceEnrollmentTypePAppleBulkWithoutUser returns a pointer to DeviceEnrollmentTypeVAppleBulkWithoutUser
+func DeviceEnrollmentTypePAppleBulkWithoutUser() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVAppleBulkWithoutUser
+ return &v
+}
+
+// DeviceEnrollmentTypePWindowsAzureADJoin returns a pointer to DeviceEnrollmentTypeVWindowsAzureADJoin
+func DeviceEnrollmentTypePWindowsAzureADJoin() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVWindowsAzureADJoin
+ return &v
+}
+
+// DeviceEnrollmentTypePWindowsBulkUserless returns a pointer to DeviceEnrollmentTypeVWindowsBulkUserless
+func DeviceEnrollmentTypePWindowsBulkUserless() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVWindowsBulkUserless
+ return &v
+}
+
+// DeviceEnrollmentTypePWindowsAutoEnrollment returns a pointer to DeviceEnrollmentTypeVWindowsAutoEnrollment
+func DeviceEnrollmentTypePWindowsAutoEnrollment() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVWindowsAutoEnrollment
+ return &v
+}
+
+// DeviceEnrollmentTypePWindowsBulkAzureDomainJoin returns a pointer to DeviceEnrollmentTypeVWindowsBulkAzureDomainJoin
+func DeviceEnrollmentTypePWindowsBulkAzureDomainJoin() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVWindowsBulkAzureDomainJoin
+ return &v
+}
+
+// DeviceEnrollmentTypePWindowsCoManagement returns a pointer to DeviceEnrollmentTypeVWindowsCoManagement
+func DeviceEnrollmentTypePWindowsCoManagement() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVWindowsCoManagement
+ return &v
+}
+
+// DeviceEnrollmentTypePAppleUserEnrollment returns a pointer to DeviceEnrollmentTypeVAppleUserEnrollment
+func DeviceEnrollmentTypePAppleUserEnrollment() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVAppleUserEnrollment
+ return &v
+}
+
+// DeviceEnrollmentTypePAppleUserEnrollmentWithServiceAccount returns a pointer to DeviceEnrollmentTypeVAppleUserEnrollmentWithServiceAccount
+func DeviceEnrollmentTypePAppleUserEnrollmentWithServiceAccount() *DeviceEnrollmentType {
+ v := DeviceEnrollmentTypeVAppleUserEnrollmentWithServiceAccount
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentWindowsHelloForBusinessConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentWindowsHelloForBusinessConfigurationModel.go
new file mode 100644
index 00000000..504a2c35
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceEnrollmentWindowsHelloForBusinessConfigurationModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceEnrollmentWindowsHelloForBusinessConfiguration Windows Hello for Business settings lets users access their devices using a gesture, such as biometric authentication, or a PIN. Configure settings for enrolled Windows 10, Windows 10 Mobile and later.
+type DeviceEnrollmentWindowsHelloForBusinessConfiguration struct {
+ // DeviceEnrollmentConfiguration is the base model of DeviceEnrollmentWindowsHelloForBusinessConfiguration
+ DeviceEnrollmentConfiguration
+ // PinMinimumLength Controls the minimum number of characters required for the Windows Hello for Business PIN. This value must be between 4 and 127, inclusive, and less than or equal to the value set for the maximum PIN.
+ PinMinimumLength *int `json:"pinMinimumLength,omitempty"`
+ // PinMaximumLength Controls the maximum number of characters allowed for the Windows Hello for Business PIN. This value must be between 4 and 127, inclusive. This value must be greater than or equal to the value set for the minimum PIN.
+ PinMaximumLength *int `json:"pinMaximumLength,omitempty"`
+ // PinUppercaseCharactersUsage Controls the ability to use uppercase letters in the Windows Hello for Business PIN. Allowed permits the use of uppercase letter(s), whereas Required ensures they are present. If set to Not Allowed, uppercase letters will not be permitted.
+ PinUppercaseCharactersUsage *WindowsHelloForBusinessPinUsage `json:"pinUppercaseCharactersUsage,omitempty"`
+ // PinLowercaseCharactersUsage Controls the ability to use lowercase letters in the Windows Hello for Business PIN. Allowed permits the use of lowercase letter(s), whereas Required ensures they are present. If set to Not Allowed, lowercase letters will not be permitted.
+ PinLowercaseCharactersUsage *WindowsHelloForBusinessPinUsage `json:"pinLowercaseCharactersUsage,omitempty"`
+ // PinSpecialCharactersUsage Controls the ability to use special characters in the Windows Hello for Business PIN. Allowed permits the use of special character(s), whereas Required ensures they are present. If set to Not Allowed, special character(s) will not be permitted.
+ PinSpecialCharactersUsage *WindowsHelloForBusinessPinUsage `json:"pinSpecialCharactersUsage,omitempty"`
+ // State Controls whether to allow the device to be configured for Windows Hello for Business. If set to disabled, the user cannot provision Windows Hello for Business except on Azure Active Directory joined mobile phones if otherwise required. If set to Not Configured, Intune will not override client defaults.
+ State *Enablement `json:"state,omitempty"`
+ // SecurityDeviceRequired Controls whether to require a Trusted Platform Module (TPM) for provisioning Windows Hello for Business. A TPM provides an additional security benefit in that data stored on it cannot be used on other devices. If set to False, all devices can provision Windows Hello for Business even if there is not a usable TPM.
+ SecurityDeviceRequired *bool `json:"securityDeviceRequired,omitempty"`
+ // UnlockWithBiometricsEnabled Controls the use of biometric gestures, such as face and fingerprint, as an alternative to the Windows Hello for Business PIN. If set to False, biometric gestures are not allowed. Users must still configure a PIN as a backup in case of failures.
+ UnlockWithBiometricsEnabled *bool `json:"unlockWithBiometricsEnabled,omitempty"`
+ // RemotePassportEnabled Controls the use of Remote Windows Hello for Business. Remote Windows Hello for Business provides the ability for a portable, registered device to be usable as a companion for desktop authentication. The desktop must be Azure AD joined and the companion device must have a Windows Hello for Business PIN.
+ RemotePassportEnabled *bool `json:"remotePassportEnabled,omitempty"`
+ // PinPreviousBlockCount Controls the ability to prevent users from using past PINs. This must be set between 0 and 50, inclusive, and the current PIN of the user is included in that count. If set to 0, previous PINs are not stored. PIN history is not preserved through a PIN reset.
+ PinPreviousBlockCount *int `json:"pinPreviousBlockCount,omitempty"`
+ // PinExpirationInDays Controls the period of time (in days) that a PIN can be used before the system requires the user to change it. This must be set between 0 and 730, inclusive. If set to 0, the user's PIN will never expire
+ PinExpirationInDays *int `json:"pinExpirationInDays,omitempty"`
+ // EnhancedBiometricsState Controls the ability to use the anti-spoofing features for facial recognition on devices which support it. If set to disabled, anti-spoofing features are not allowed. If set to Not Configured, the user can choose whether they want to use anti-spoofing.
+ EnhancedBiometricsState *Enablement `json:"enhancedBiometricsState,omitempty"`
+ // SecurityKeyForSignIn Security key for Sign In provides the capacity for remotely turning ON/OFF Windows Hello Sercurity Keyl Not configured will honor configurations done on the clinet.
+ SecurityKeyForSignIn *Enablement `json:"securityKeyForSignIn,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceExchangeAccessStateSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceExchangeAccessStateSummaryModel.go
new file mode 100644
index 00000000..e53ba177
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceExchangeAccessStateSummaryModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceExchangeAccessStateSummary undocumented
+type DeviceExchangeAccessStateSummary struct {
+ // Object is the base model of DeviceExchangeAccessStateSummary
+ Object
+ // AllowedDeviceCount Total count of devices with Exchange Access State: Allowed.
+ AllowedDeviceCount *int `json:"allowedDeviceCount,omitempty"`
+ // BlockedDeviceCount Total count of devices with Exchange Access State: Blocked.
+ BlockedDeviceCount *int `json:"blockedDeviceCount,omitempty"`
+ // QuarantinedDeviceCount Total count of devices with Exchange Access State: Quarantined.
+ QuarantinedDeviceCount *int `json:"quarantinedDeviceCount,omitempty"`
+ // UnknownDeviceCount Total count of devices with Exchange Access State: Unknown.
+ UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"`
+ // UnavailableDeviceCount Total count of devices for which no Exchange Access State could be found.
+ UnavailableDeviceCount *int `json:"unavailableDeviceCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceGeoLocationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceGeoLocationModel.go
new file mode 100644
index 00000000..1b7024b0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceGeoLocationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceGeoLocation undocumented
+type DeviceGeoLocation struct {
+ // Object is the base model of DeviceGeoLocation
+ Object
+ // LastCollectedDateTimeUtc Time at which location was recorded, relative to UTC
+ LastCollectedDateTimeUtc *time.Time `json:"lastCollectedDateTimeUtc,omitempty"`
+ // LastCollectedDateTime Time at which location was recorded, relative to UTC
+ LastCollectedDateTime *time.Time `json:"lastCollectedDateTime,omitempty"`
+ // Longitude Longitude coordinate of the device's location
+ Longitude *float64 `json:"longitude,omitempty"`
+ // Latitude Latitude coordinate of the device's location
+ Latitude *float64 `json:"latitude,omitempty"`
+ // Altitude Altitude, given in meters above sea level
+ Altitude *float64 `json:"altitude,omitempty"`
+ // HorizontalAccuracy Accuracy of longitude and latitude in meters
+ HorizontalAccuracy *float64 `json:"horizontalAccuracy,omitempty"`
+ // VerticalAccuracy Accuracy of altitude in meters
+ VerticalAccuracy *float64 `json:"verticalAccuracy,omitempty"`
+ // Heading Heading in degrees from true north
+ Heading *float64 `json:"heading,omitempty"`
+ // Speed Speed the device is traveling in meters per second
+ Speed *float64 `json:"speed,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardStateEnum.go
new file mode 100644
index 00000000..4f044482
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardStateEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardState undocumented
+type DeviceGuardLocalSystemAuthorityCredentialGuardState int
+
+const (
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStateVRunning undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardStateVRunning DeviceGuardLocalSystemAuthorityCredentialGuardState = 0
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStateVRebootRequired undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardStateVRebootRequired DeviceGuardLocalSystemAuthorityCredentialGuardState = 1
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotLicensed undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotLicensed DeviceGuardLocalSystemAuthorityCredentialGuardState = 2
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotConfigured undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotConfigured DeviceGuardLocalSystemAuthorityCredentialGuardState = 3
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStateVVirtualizationBasedSecurityNotRunning undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardStateVVirtualizationBasedSecurityNotRunning DeviceGuardLocalSystemAuthorityCredentialGuardState = 4
+)
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardStatePRunning returns a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVRunning
+func DeviceGuardLocalSystemAuthorityCredentialGuardStatePRunning() *DeviceGuardLocalSystemAuthorityCredentialGuardState {
+ v := DeviceGuardLocalSystemAuthorityCredentialGuardStateVRunning
+ return &v
+}
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardStatePRebootRequired returns a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVRebootRequired
+func DeviceGuardLocalSystemAuthorityCredentialGuardStatePRebootRequired() *DeviceGuardLocalSystemAuthorityCredentialGuardState {
+ v := DeviceGuardLocalSystemAuthorityCredentialGuardStateVRebootRequired
+ return &v
+}
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotLicensed returns a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotLicensed
+func DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotLicensed() *DeviceGuardLocalSystemAuthorityCredentialGuardState {
+ v := DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotLicensed
+ return &v
+}
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotConfigured returns a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotConfigured
+func DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotConfigured() *DeviceGuardLocalSystemAuthorityCredentialGuardState {
+ v := DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotConfigured
+ return &v
+}
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardStatePVirtualizationBasedSecurityNotRunning returns a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVVirtualizationBasedSecurityNotRunning
+func DeviceGuardLocalSystemAuthorityCredentialGuardStatePVirtualizationBasedSecurityNotRunning() *DeviceGuardLocalSystemAuthorityCredentialGuardState {
+ v := DeviceGuardLocalSystemAuthorityCredentialGuardStateVVirtualizationBasedSecurityNotRunning
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardTypeEnum.go
new file mode 100644
index 00000000..16653fa2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceGuardLocalSystemAuthorityCredentialGuardTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardType undocumented
+type DeviceGuardLocalSystemAuthorityCredentialGuardType int
+
+const (
+ // DeviceGuardLocalSystemAuthorityCredentialGuardTypeVNotConfigured undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardTypeVNotConfigured DeviceGuardLocalSystemAuthorityCredentialGuardType = 0
+ // DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithUEFILock undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithUEFILock DeviceGuardLocalSystemAuthorityCredentialGuardType = 1
+ // DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithoutUEFILock undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithoutUEFILock DeviceGuardLocalSystemAuthorityCredentialGuardType = 2
+)
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardTypePNotConfigured returns a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardTypeVNotConfigured
+func DeviceGuardLocalSystemAuthorityCredentialGuardTypePNotConfigured() *DeviceGuardLocalSystemAuthorityCredentialGuardType {
+ v := DeviceGuardLocalSystemAuthorityCredentialGuardTypeVNotConfigured
+ return &v
+}
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithUEFILock returns a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithUEFILock
+func DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithUEFILock() *DeviceGuardLocalSystemAuthorityCredentialGuardType {
+ v := DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithUEFILock
+ return &v
+}
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithoutUEFILock returns a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithoutUEFILock
+func DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithoutUEFILock() *DeviceGuardLocalSystemAuthorityCredentialGuardType {
+ v := DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithoutUEFILock
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateEnum.go
new file mode 100644
index 00000000..ebb19cbc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceGuardVirtualizationBasedSecurityHardwareRequirementState undocumented
+type DeviceGuardVirtualizationBasedSecurityHardwareRequirementState int
+
+const (
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVMeetHardwareRequirements undocumented
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVMeetHardwareRequirements DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = 0
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVSecureBootRequired undocumented
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVSecureBootRequired DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = 1
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVDmaProtectionRequired undocumented
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVDmaProtectionRequired DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = 2
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotSupportedForGuestVM undocumented
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotSupportedForGuestVM DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = 4
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotAvailable undocumented
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotAvailable DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = 8
+)
+
+// DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePMeetHardwareRequirements returns a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVMeetHardwareRequirements
+func DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePMeetHardwareRequirements() *DeviceGuardVirtualizationBasedSecurityHardwareRequirementState {
+ v := DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVMeetHardwareRequirements
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePSecureBootRequired returns a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVSecureBootRequired
+func DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePSecureBootRequired() *DeviceGuardVirtualizationBasedSecurityHardwareRequirementState {
+ v := DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVSecureBootRequired
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePDmaProtectionRequired returns a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVDmaProtectionRequired
+func DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePDmaProtectionRequired() *DeviceGuardVirtualizationBasedSecurityHardwareRequirementState {
+ v := DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVDmaProtectionRequired
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotSupportedForGuestVM returns a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotSupportedForGuestVM
+func DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotSupportedForGuestVM() *DeviceGuardVirtualizationBasedSecurityHardwareRequirementState {
+ v := DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotSupportedForGuestVM
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotAvailable returns a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotAvailable
+func DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotAvailable() *DeviceGuardVirtualizationBasedSecurityHardwareRequirementState {
+ v := DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotAvailable
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityStateEnum.go
new file mode 100644
index 00000000..b52a70cb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceGuardVirtualizationBasedSecurityStateEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceGuardVirtualizationBasedSecurityState undocumented
+type DeviceGuardVirtualizationBasedSecurityState int
+
+const (
+ // DeviceGuardVirtualizationBasedSecurityStateVRunning undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVRunning DeviceGuardVirtualizationBasedSecurityState = 0
+ // DeviceGuardVirtualizationBasedSecurityStateVRebootRequired undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVRebootRequired DeviceGuardVirtualizationBasedSecurityState = 1
+ // DeviceGuardVirtualizationBasedSecurityStateVRequire64BitArchitecture undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVRequire64BitArchitecture DeviceGuardVirtualizationBasedSecurityState = 2
+ // DeviceGuardVirtualizationBasedSecurityStateVNotLicensed undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVNotLicensed DeviceGuardVirtualizationBasedSecurityState = 3
+ // DeviceGuardVirtualizationBasedSecurityStateVNotConfigured undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVNotConfigured DeviceGuardVirtualizationBasedSecurityState = 4
+ // DeviceGuardVirtualizationBasedSecurityStateVDoesNotMeetHardwareRequirements undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVDoesNotMeetHardwareRequirements DeviceGuardVirtualizationBasedSecurityState = 5
+ // DeviceGuardVirtualizationBasedSecurityStateVOther undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVOther DeviceGuardVirtualizationBasedSecurityState = 42
+)
+
+// DeviceGuardVirtualizationBasedSecurityStatePRunning returns a pointer to DeviceGuardVirtualizationBasedSecurityStateVRunning
+func DeviceGuardVirtualizationBasedSecurityStatePRunning() *DeviceGuardVirtualizationBasedSecurityState {
+ v := DeviceGuardVirtualizationBasedSecurityStateVRunning
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityStatePRebootRequired returns a pointer to DeviceGuardVirtualizationBasedSecurityStateVRebootRequired
+func DeviceGuardVirtualizationBasedSecurityStatePRebootRequired() *DeviceGuardVirtualizationBasedSecurityState {
+ v := DeviceGuardVirtualizationBasedSecurityStateVRebootRequired
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityStatePRequire64BitArchitecture returns a pointer to DeviceGuardVirtualizationBasedSecurityStateVRequire64BitArchitecture
+func DeviceGuardVirtualizationBasedSecurityStatePRequire64BitArchitecture() *DeviceGuardVirtualizationBasedSecurityState {
+ v := DeviceGuardVirtualizationBasedSecurityStateVRequire64BitArchitecture
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityStatePNotLicensed returns a pointer to DeviceGuardVirtualizationBasedSecurityStateVNotLicensed
+func DeviceGuardVirtualizationBasedSecurityStatePNotLicensed() *DeviceGuardVirtualizationBasedSecurityState {
+ v := DeviceGuardVirtualizationBasedSecurityStateVNotLicensed
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityStatePNotConfigured returns a pointer to DeviceGuardVirtualizationBasedSecurityStateVNotConfigured
+func DeviceGuardVirtualizationBasedSecurityStatePNotConfigured() *DeviceGuardVirtualizationBasedSecurityState {
+ v := DeviceGuardVirtualizationBasedSecurityStateVNotConfigured
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityStatePDoesNotMeetHardwareRequirements returns a pointer to DeviceGuardVirtualizationBasedSecurityStateVDoesNotMeetHardwareRequirements
+func DeviceGuardVirtualizationBasedSecurityStatePDoesNotMeetHardwareRequirements() *DeviceGuardVirtualizationBasedSecurityState {
+ v := DeviceGuardVirtualizationBasedSecurityStateVDoesNotMeetHardwareRequirements
+ return &v
+}
+
+// DeviceGuardVirtualizationBasedSecurityStatePOther returns a pointer to DeviceGuardVirtualizationBasedSecurityStateVOther
+func DeviceGuardVirtualizationBasedSecurityStatePOther() *DeviceGuardVirtualizationBasedSecurityState {
+ v := DeviceGuardVirtualizationBasedSecurityStateVOther
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthAttestationStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthAttestationStateModel.go
new file mode 100644
index 00000000..9817406e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthAttestationStateModel.go
@@ -0,0 +1,75 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceHealthAttestationState undocumented
+type DeviceHealthAttestationState struct {
+ // Object is the base model of DeviceHealthAttestationState
+ Object
+ // LastUpdateDateTime The Timestamp of the last update.
+ LastUpdateDateTime *string `json:"lastUpdateDateTime,omitempty"`
+ // ContentNamespaceURL The DHA report version. (Namespace version)
+ ContentNamespaceURL *string `json:"contentNamespaceUrl,omitempty"`
+ // DeviceHealthAttestationStatus The DHA report version. (Namespace version)
+ DeviceHealthAttestationStatus *string `json:"deviceHealthAttestationStatus,omitempty"`
+ // ContentVersion The HealthAttestation state schema version
+ ContentVersion *string `json:"contentVersion,omitempty"`
+ // IssuedDateTime The DateTime when device was evaluated or issued to MDM
+ IssuedDateTime *time.Time `json:"issuedDateTime,omitempty"`
+ // AttestationIdentityKey TWhen an Attestation Identity Key (AIK) is present on a device, it indicates that the device has an endorsement key (EK) certificate.
+ AttestationIdentityKey *string `json:"attestationIdentityKey,omitempty"`
+ // ResetCount The number of times a PC device has hibernated or resumed
+ ResetCount *int `json:"resetCount,omitempty"`
+ // RestartCount The number of times a PC device has rebooted
+ RestartCount *int `json:"restartCount,omitempty"`
+ // DataExcutionPolicy DEP Policy defines a set of hardware and software technologies that perform additional checks on memory
+ DataExcutionPolicy *string `json:"dataExcutionPolicy,omitempty"`
+ // BitLockerStatus On or Off of BitLocker Drive Encryption
+ BitLockerStatus *string `json:"bitLockerStatus,omitempty"`
+ // BootManagerVersion The version of the Boot Manager
+ BootManagerVersion *string `json:"bootManagerVersion,omitempty"`
+ // CodeIntegrityCheckVersion The version of the Boot Manager
+ CodeIntegrityCheckVersion *string `json:"codeIntegrityCheckVersion,omitempty"`
+ // SecureBoot When Secure Boot is enabled, the core components must have the correct cryptographic signatures
+ SecureBoot *string `json:"secureBoot,omitempty"`
+ // BootDebugging When bootDebugging is enabled, the device is used in development and testing
+ BootDebugging *string `json:"bootDebugging,omitempty"`
+ // OperatingSystemKernelDebugging When operatingSystemKernelDebugging is enabled, the device is used in development and testing
+ OperatingSystemKernelDebugging *string `json:"operatingSystemKernelDebugging,omitempty"`
+ // CodeIntegrity When code integrity is enabled, code execution is restricted to integrity verified code
+ CodeIntegrity *string `json:"codeIntegrity,omitempty"`
+ // TestSigning When test signing is allowed, the device does not enforce signature validation during boot
+ TestSigning *string `json:"testSigning,omitempty"`
+ // SafeMode Safe mode is a troubleshooting option for Windows that starts your computer in a limited state
+ SafeMode *string `json:"safeMode,omitempty"`
+ // WindowsPE Operating system running with limited services that is used to prepare a computer for Windows
+ WindowsPE *string `json:"windowsPE,omitempty"`
+ // EarlyLaunchAntiMalwareDriverProtection ELAM provides protection for the computers in your network when they start up
+ EarlyLaunchAntiMalwareDriverProtection *string `json:"earlyLaunchAntiMalwareDriverProtection,omitempty"`
+ // VirtualSecureMode VSM is a container that protects high value assets from a compromised kernel
+ VirtualSecureMode *string `json:"virtualSecureMode,omitempty"`
+ // PcrHashAlgorithm Informational attribute that identifies the HASH algorithm that was used by TPM
+ PcrHashAlgorithm *string `json:"pcrHashAlgorithm,omitempty"`
+ // BootAppSecurityVersion The security version number of the Boot Application
+ BootAppSecurityVersion *string `json:"bootAppSecurityVersion,omitempty"`
+ // BootManagerSecurityVersion The security version number of the Boot Application
+ BootManagerSecurityVersion *string `json:"bootManagerSecurityVersion,omitempty"`
+ // TpmVersion The security version number of the Boot Application
+ TpmVersion *string `json:"tpmVersion,omitempty"`
+ // Pcr0 The measurement that is captured in PCR[0]
+ Pcr0 *string `json:"pcr0,omitempty"`
+ // SecureBootConfigurationPolicyFingerPrint Fingerprint of the Custom Secure Boot Configuration Policy
+ SecureBootConfigurationPolicyFingerPrint *string `json:"secureBootConfigurationPolicyFingerPrint,omitempty"`
+ // CodeIntegrityPolicy The Code Integrity policy that is controlling the security of the boot environment
+ CodeIntegrityPolicy *string `json:"codeIntegrityPolicy,omitempty"`
+ // BootRevisionListInfo The Boot Revision List that was loaded during initial boot on the attested device
+ BootRevisionListInfo *string `json:"bootRevisionListInfo,omitempty"`
+ // OperatingSystemRevListInfo The Operating System Revision List that was loaded during initial boot on the attested device
+ OperatingSystemRevListInfo *string `json:"operatingSystemRevListInfo,omitempty"`
+ // HealthStatusMismatchInfo This attribute appears if DHA-Service detects an integrity issue
+ HealthStatusMismatchInfo *string `json:"healthStatusMismatchInfo,omitempty"`
+ // HealthAttestationSupportedStatus This attribute indicates if DHA is supported for the device
+ HealthAttestationSupportedStatus *string `json:"healthAttestationSupportedStatus,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptAction.go
new file mode 100644
index 00000000..7558b383
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceHealthScriptAssignRequestParameter undocumented
+type DeviceHealthScriptAssignRequestParameter struct {
+ // DeviceHealthScriptAssignments undocumented
+ DeviceHealthScriptAssignments []DeviceHealthScriptAssignment `json:"deviceHealthScriptAssignments,omitempty"`
+}
+
+//
+type DeviceHealthScriptAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *DeviceHealthScriptRequestBuilder) Assign(reqObj *DeviceHealthScriptAssignRequestParameter) *DeviceHealthScriptAssignRequestBuilder {
+ bb := &DeviceHealthScriptAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceHealthScriptAssignRequest struct{ BaseRequest }
+
+//
+func (b *DeviceHealthScriptAssignRequestBuilder) Request() *DeviceHealthScriptAssignRequest {
+ return &DeviceHealthScriptAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceHealthScriptAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptAssignmentModel.go
new file mode 100644
index 00000000..9adc1b08
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceHealthScriptAssignment Contains properties used to assign a device management script to a group.
+type DeviceHealthScriptAssignment struct {
+ // Entity is the base model of DeviceHealthScriptAssignment
+ Entity
+ // Target The Azure Active Directory group we are targeting the script to
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+ // RunRemediationScript Determine whether we want to run detection script only or run both detection script and remediation script
+ RunRemediationScript *bool `json:"runRemediationScript,omitempty"`
+ // RunSchedule Script run schedule for the target group
+ RunSchedule *RunSchedule `json:"runSchedule,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptAssignmentRequest.go
new file mode 100644
index 00000000..4462aa51
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceHealthScriptAssignmentRequestBuilder is request builder for DeviceHealthScriptAssignment
+type DeviceHealthScriptAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceHealthScriptAssignmentRequest
+func (b *DeviceHealthScriptAssignmentRequestBuilder) Request() *DeviceHealthScriptAssignmentRequest {
+ return &DeviceHealthScriptAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceHealthScriptAssignmentRequest is request for DeviceHealthScriptAssignment
+type DeviceHealthScriptAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceHealthScriptAssignment
+func (r *DeviceHealthScriptAssignmentRequest) Get(ctx context.Context) (resObj *DeviceHealthScriptAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceHealthScriptAssignment
+func (r *DeviceHealthScriptAssignmentRequest) Update(ctx context.Context, reqObj *DeviceHealthScriptAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceHealthScriptAssignment
+func (r *DeviceHealthScriptAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptDeviceStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptDeviceStateModel.go
new file mode 100644
index 00000000..1d7ee1a6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptDeviceStateModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceHealthScriptDeviceState Contains properties for device run state of the device health script.
+type DeviceHealthScriptDeviceState struct {
+ // Entity is the base model of DeviceHealthScriptDeviceState
+ Entity
+ // DetectionState Detection state from the lastest device health script execution
+ DetectionState *RunState `json:"detectionState,omitempty"`
+ // LastStateUpdateDateTime The last timestamp of when the device health script executed
+ LastStateUpdateDateTime *time.Time `json:"lastStateUpdateDateTime,omitempty"`
+ // ExpectedStateUpdateDateTime The next timestamp of when the device health script is expected to execute
+ ExpectedStateUpdateDateTime *time.Time `json:"expectedStateUpdateDateTime,omitempty"`
+ // LastSyncDateTime The last time that Intune Managment Extension synced with Intune
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // PreRemediationDetectionScriptOutput Output of the detection script before remediation
+ PreRemediationDetectionScriptOutput *string `json:"preRemediationDetectionScriptOutput,omitempty"`
+ // PreRemediationDetectionScriptError Error from the detection script before remediation
+ PreRemediationDetectionScriptError *string `json:"preRemediationDetectionScriptError,omitempty"`
+ // RemediationScriptError Error output of the remediation script
+ RemediationScriptError *string `json:"remediationScriptError,omitempty"`
+ // PostRemediationDetectionScriptOutput Detection script output after remediation
+ PostRemediationDetectionScriptOutput *string `json:"postRemediationDetectionScriptOutput,omitempty"`
+ // PostRemediationDetectionScriptError Error from the detection script after remediation
+ PostRemediationDetectionScriptError *string `json:"postRemediationDetectionScriptError,omitempty"`
+ // RemediationState Remediation state from the lastest device health script execution
+ RemediationState *RemediationState `json:"remediationState,omitempty"`
+ // ManagedDevice undocumented
+ ManagedDevice *ManagedDevice `json:"managedDevice,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptDeviceStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptDeviceStateRequest.go
new file mode 100644
index 00000000..ca40e53d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptDeviceStateRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceHealthScriptDeviceStateRequestBuilder is request builder for DeviceHealthScriptDeviceState
+type DeviceHealthScriptDeviceStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceHealthScriptDeviceStateRequest
+func (b *DeviceHealthScriptDeviceStateRequestBuilder) Request() *DeviceHealthScriptDeviceStateRequest {
+ return &DeviceHealthScriptDeviceStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceHealthScriptDeviceStateRequest is request for DeviceHealthScriptDeviceState
+type DeviceHealthScriptDeviceStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceHealthScriptDeviceState
+func (r *DeviceHealthScriptDeviceStateRequest) Get(ctx context.Context) (resObj *DeviceHealthScriptDeviceState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceHealthScriptDeviceState
+func (r *DeviceHealthScriptDeviceStateRequest) Update(ctx context.Context, reqObj *DeviceHealthScriptDeviceState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceHealthScriptDeviceState
+func (r *DeviceHealthScriptDeviceStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDevice is navigation property
+func (b *DeviceHealthScriptDeviceStateRequestBuilder) ManagedDevice() *ManagedDeviceRequestBuilder {
+ bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDevice"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptModel.go
new file mode 100644
index 00000000..62a00f31
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceHealthScript Intune will provide customer the ability to run their Powershell Health scripts (remediation + detection) on the enrolled windows 10 Azure Active Directory joined devices.
+type DeviceHealthScript struct {
+ // Entity is the base model of DeviceHealthScript
+ Entity
+ // Publisher Name of the device health script publisher
+ Publisher *string `json:"publisher,omitempty"`
+ // Version Version of the device health script
+ Version *string `json:"version,omitempty"`
+ // DisplayName Name of the device health script
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of the device health script
+ Description *string `json:"description,omitempty"`
+ // DetectionScriptContent The entire content of the detection powershell script
+ DetectionScriptContent *Binary `json:"detectionScriptContent,omitempty"`
+ // RemediationScriptContent The entire content of the remediation powershell script
+ RemediationScriptContent *Binary `json:"remediationScriptContent,omitempty"`
+ // CreatedDateTime The timestamp of when the device health script was created. This property is read-only.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime The timestamp of when the device health script was modified. This property is read-only.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // RunAsAccount Indicates the type of execution context
+ RunAsAccount *RunAsAccountType `json:"runAsAccount,omitempty"`
+ // EnforceSignatureCheck Indicate whether the script signature needs be checked
+ EnforceSignatureCheck *bool `json:"enforceSignatureCheck,omitempty"`
+ // RunAs32Bit Indicate whether PowerShell script(s) should run as 32-bit
+ RunAs32Bit *bool `json:"runAs32Bit,omitempty"`
+ // RoleScopeTagIDs List of Scope Tag IDs for the device health script
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // Assignments undocumented
+ Assignments []DeviceHealthScriptAssignment `json:"assignments,omitempty"`
+ // RunSummary undocumented
+ RunSummary *DeviceHealthScriptRunSummary `json:"runSummary,omitempty"`
+ // DeviceRunStates undocumented
+ DeviceRunStates []DeviceHealthScriptDeviceState `json:"deviceRunStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptRequest.go
new file mode 100644
index 00000000..806a3771
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptRequest.go
@@ -0,0 +1,240 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceHealthScriptRequestBuilder is request builder for DeviceHealthScript
+type DeviceHealthScriptRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceHealthScriptRequest
+func (b *DeviceHealthScriptRequestBuilder) Request() *DeviceHealthScriptRequest {
+ return &DeviceHealthScriptRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceHealthScriptRequest is request for DeviceHealthScript
+type DeviceHealthScriptRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceHealthScript
+func (r *DeviceHealthScriptRequest) Get(ctx context.Context) (resObj *DeviceHealthScript, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceHealthScript
+func (r *DeviceHealthScriptRequest) Update(ctx context.Context, reqObj *DeviceHealthScript) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceHealthScript
+func (r *DeviceHealthScriptRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for DeviceHealthScriptAssignment collection
+func (b *DeviceHealthScriptRequestBuilder) Assignments() *DeviceHealthScriptAssignmentsCollectionRequestBuilder {
+ bb := &DeviceHealthScriptAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// DeviceHealthScriptAssignmentsCollectionRequestBuilder is request builder for DeviceHealthScriptAssignment collection
+type DeviceHealthScriptAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceHealthScriptAssignment collection
+func (b *DeviceHealthScriptAssignmentsCollectionRequestBuilder) Request() *DeviceHealthScriptAssignmentsCollectionRequest {
+ return &DeviceHealthScriptAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceHealthScriptAssignment item
+func (b *DeviceHealthScriptAssignmentsCollectionRequestBuilder) ID(id string) *DeviceHealthScriptAssignmentRequestBuilder {
+ bb := &DeviceHealthScriptAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceHealthScriptAssignmentsCollectionRequest is request for DeviceHealthScriptAssignment collection
+type DeviceHealthScriptAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceHealthScriptAssignment collection
+func (r *DeviceHealthScriptAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceHealthScriptAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceHealthScriptAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceHealthScriptAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceHealthScriptAssignment collection
+func (r *DeviceHealthScriptAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceHealthScriptAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceHealthScriptAssignment collection
+func (r *DeviceHealthScriptAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceHealthScriptAssignment) (resObj *DeviceHealthScriptAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceRunStates returns request builder for DeviceHealthScriptDeviceState collection
+func (b *DeviceHealthScriptRequestBuilder) DeviceRunStates() *DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder {
+ bb := &DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceRunStates"
+ return bb
+}
+
+// DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder is request builder for DeviceHealthScriptDeviceState collection
+type DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceHealthScriptDeviceState collection
+func (b *DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder) Request() *DeviceHealthScriptDeviceRunStatesCollectionRequest {
+ return &DeviceHealthScriptDeviceRunStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceHealthScriptDeviceState item
+func (b *DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder) ID(id string) *DeviceHealthScriptDeviceStateRequestBuilder {
+ bb := &DeviceHealthScriptDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceHealthScriptDeviceRunStatesCollectionRequest is request for DeviceHealthScriptDeviceState collection
+type DeviceHealthScriptDeviceRunStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceHealthScriptDeviceState collection
+func (r *DeviceHealthScriptDeviceRunStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceHealthScriptDeviceState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceHealthScriptDeviceState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceHealthScriptDeviceState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceHealthScriptDeviceState collection
+func (r *DeviceHealthScriptDeviceRunStatesCollectionRequest) Get(ctx context.Context) ([]DeviceHealthScriptDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceHealthScriptDeviceState collection
+func (r *DeviceHealthScriptDeviceRunStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceHealthScriptDeviceState) (resObj *DeviceHealthScriptDeviceState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RunSummary is navigation property
+func (b *DeviceHealthScriptRequestBuilder) RunSummary() *DeviceHealthScriptRunSummaryRequestBuilder {
+ bb := &DeviceHealthScriptRunSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/runSummary"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptRunSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptRunSummaryModel.go
new file mode 100644
index 00000000..43819a58
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptRunSummaryModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceHealthScriptRunSummary Contains properties for the run summary of a device management script.
+type DeviceHealthScriptRunSummary struct {
+ // Entity is the base model of DeviceHealthScriptRunSummary
+ Entity
+ // NoIssueDetectedDeviceCount Number of devices for which the detection script did not find an issue and the device is healthy
+ NoIssueDetectedDeviceCount *int `json:"noIssueDetectedDeviceCount,omitempty"`
+ // IssueDetectedDeviceCount Number of devices for which the detection script found an issue
+ IssueDetectedDeviceCount *int `json:"issueDetectedDeviceCount,omitempty"`
+ // DetectionScriptErrorDeviceCount Number of devices on which the detection script execution encountered an error and did not complete
+ DetectionScriptErrorDeviceCount *int `json:"detectionScriptErrorDeviceCount,omitempty"`
+ // DetectionScriptPendingDeviceCount Number of devices which have not yet run the latest version of the device health script
+ DetectionScriptPendingDeviceCount *int `json:"detectionScriptPendingDeviceCount,omitempty"`
+ // IssueRemediatedDeviceCount Number of devices for which the remediation script was able to resolve the detected issue
+ IssueRemediatedDeviceCount *int `json:"issueRemediatedDeviceCount,omitempty"`
+ // RemediationSkippedDeviceCount Number of devices for which remediation was skipped
+ RemediationSkippedDeviceCount *int `json:"remediationSkippedDeviceCount,omitempty"`
+ // IssueReoccurredDeviceCount Number of devices for which the remediation script executed successfully but failed to resolve the detected issue
+ IssueReoccurredDeviceCount *int `json:"issueReoccurredDeviceCount,omitempty"`
+ // RemediationScriptErrorDeviceCount Number of devices for which the remediation script execution encountered an error and did not complete
+ RemediationScriptErrorDeviceCount *int `json:"remediationScriptErrorDeviceCount,omitempty"`
+ // LastScriptRunDateTime Last run time for the script across all devices
+ LastScriptRunDateTime *time.Time `json:"lastScriptRunDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptRunSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptRunSummaryRequest.go
new file mode 100644
index 00000000..3f97bce1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceHealthScriptRunSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceHealthScriptRunSummaryRequestBuilder is request builder for DeviceHealthScriptRunSummary
+type DeviceHealthScriptRunSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceHealthScriptRunSummaryRequest
+func (b *DeviceHealthScriptRunSummaryRequestBuilder) Request() *DeviceHealthScriptRunSummaryRequest {
+ return &DeviceHealthScriptRunSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceHealthScriptRunSummaryRequest is request for DeviceHealthScriptRunSummary
+type DeviceHealthScriptRunSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceHealthScriptRunSummary
+func (r *DeviceHealthScriptRunSummaryRequest) Get(ctx context.Context) (resObj *DeviceHealthScriptRunSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceHealthScriptRunSummary
+func (r *DeviceHealthScriptRunSummaryRequest) Update(ctx context.Context, reqObj *DeviceHealthScriptRunSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceHealthScriptRunSummary
+func (r *DeviceHealthScriptRunSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceInstallStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceInstallStateModel.go
new file mode 100644
index 00000000..d2095b0d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceInstallStateModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceInstallState Contains properties for the installation state for a device.
+type DeviceInstallState struct {
+ // Entity is the base model of DeviceInstallState
+ Entity
+ // DeviceName Device name.
+ DeviceName *string `json:"deviceName,omitempty"`
+ // DeviceID Device Id.
+ DeviceID *string `json:"deviceId,omitempty"`
+ // LastSyncDateTime Last sync date and time.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // InstallState The install state of the eBook.
+ InstallState *InstallState `json:"installState,omitempty"`
+ // ErrorCode The error code for install failures.
+ ErrorCode *string `json:"errorCode,omitempty"`
+ // OsVersion OS Version.
+ OsVersion *string `json:"osVersion,omitempty"`
+ // OsDescription OS Description.
+ OsDescription *string `json:"osDescription,omitempty"`
+ // UserName Device User Name.
+ UserName *string `json:"userName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceInstallStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceInstallStateRequest.go
new file mode 100644
index 00000000..afef33fc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceInstallStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceInstallStateRequestBuilder is request builder for DeviceInstallState
+type DeviceInstallStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceInstallStateRequest
+func (b *DeviceInstallStateRequestBuilder) Request() *DeviceInstallStateRequest {
+ return &DeviceInstallStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceInstallStateRequest is request for DeviceInstallState
+type DeviceInstallStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceInstallState
+func (r *DeviceInstallStateRequest) Get(ctx context.Context) (resObj *DeviceInstallState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceInstallState
+func (r *DeviceInstallStateRequest) Update(ctx context.Context, reqObj *DeviceInstallState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceInstallState
+func (r *DeviceInstallStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceKeyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceKeyModel.go
new file mode 100644
index 00000000..fd0ae467
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceKeyModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceKey undocumented
+type DeviceKey struct {
+ // Object is the base model of DeviceKey
+ Object
+ // KeyType undocumented
+ KeyType *string `json:"keyType,omitempty"`
+ // KeyMaterial undocumented
+ KeyMaterial *Binary `json:"keyMaterial,omitempty"`
+ // DeviceID undocumented
+ DeviceID *UUID `json:"deviceId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAbstractComplexSettingDefinitionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAbstractComplexSettingDefinitionModel.go
new file mode 100644
index 00000000..829342ca
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAbstractComplexSettingDefinitionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementAbstractComplexSettingDefinition Entity representing the defintion for an abstract complex setting
+type DeviceManagementAbstractComplexSettingDefinition struct {
+ // DeviceManagementSettingDefinition is the base model of DeviceManagementAbstractComplexSettingDefinition
+ DeviceManagementSettingDefinition
+ // Implementations List of definition IDs for all possible implementations of this abstract complex setting
+ Implementations []string `json:"implementations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceModel.go
new file mode 100644
index 00000000..a88397e4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementAbstractComplexSettingInstance A setting instance representing a complex value for an abstract setting
+type DeviceManagementAbstractComplexSettingInstance struct {
+ // DeviceManagementSettingInstance is the base model of DeviceManagementAbstractComplexSettingInstance
+ DeviceManagementSettingInstance
+ // ImplementationID The definition ID for the chosen implementation of this complex setting
+ ImplementationID *string `json:"implementationId,omitempty"`
+ // Value undocumented
+ Value []DeviceManagementSettingInstance `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceRequest.go
new file mode 100644
index 00000000..b1205360
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAbstractComplexSettingInstanceRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceManagementAbstractComplexSettingInstanceRequestBuilder is request builder for DeviceManagementAbstractComplexSettingInstance
+type DeviceManagementAbstractComplexSettingInstanceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementAbstractComplexSettingInstanceRequest
+func (b *DeviceManagementAbstractComplexSettingInstanceRequestBuilder) Request() *DeviceManagementAbstractComplexSettingInstanceRequest {
+ return &DeviceManagementAbstractComplexSettingInstanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementAbstractComplexSettingInstanceRequest is request for DeviceManagementAbstractComplexSettingInstance
+type DeviceManagementAbstractComplexSettingInstanceRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementAbstractComplexSettingInstance
+func (r *DeviceManagementAbstractComplexSettingInstanceRequest) Get(ctx context.Context) (resObj *DeviceManagementAbstractComplexSettingInstance, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementAbstractComplexSettingInstance
+func (r *DeviceManagementAbstractComplexSettingInstanceRequest) Update(ctx context.Context, reqObj *DeviceManagementAbstractComplexSettingInstance) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementAbstractComplexSettingInstance
+func (r *DeviceManagementAbstractComplexSettingInstanceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Value returns request builder for DeviceManagementSettingInstance collection
+func (b *DeviceManagementAbstractComplexSettingInstanceRequestBuilder) Value() *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder {
+ bb := &DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/value"
+ return bb
+}
+
+// DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection
+type DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingInstance collection
+func (b *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder) Request() *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest {
+ return &DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingInstance item
+func (b *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder {
+ bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest is request for DeviceManagementSettingInstance collection
+type DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingInstance collection
+func (r *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementSettingInstance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingInstance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingInstance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAction.go
new file mode 100644
index 00000000..98a5e64a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAction.go
@@ -0,0 +1,101 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementEnableLegacyPcManagementRequestParameter undocumented
+type DeviceManagementEnableLegacyPcManagementRequestParameter struct {
+}
+
+// DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestParameter undocumented
+type DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestParameter struct {
+}
+
+// DeviceManagementSendCustomNotificationToCompanyPortalRequestParameter undocumented
+type DeviceManagementSendCustomNotificationToCompanyPortalRequestParameter struct {
+ // NotificationTitle undocumented
+ NotificationTitle *string `json:"notificationTitle,omitempty"`
+ // NotificationBody undocumented
+ NotificationBody *string `json:"notificationBody,omitempty"`
+ // GroupsToNotify undocumented
+ GroupsToNotify []string `json:"groupsToNotify,omitempty"`
+}
+
+//
+type DeviceManagementEnableLegacyPcManagementRequestBuilder struct{ BaseRequestBuilder }
+
+// EnableLegacyPcManagement action undocumented
+func (b *DeviceManagementRequestBuilder) EnableLegacyPcManagement(reqObj *DeviceManagementEnableLegacyPcManagementRequestParameter) *DeviceManagementEnableLegacyPcManagementRequestBuilder {
+ bb := &DeviceManagementEnableLegacyPcManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/enableLegacyPcManagement"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementEnableLegacyPcManagementRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementEnableLegacyPcManagementRequestBuilder) Request() *DeviceManagementEnableLegacyPcManagementRequest {
+ return &DeviceManagementEnableLegacyPcManagementRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementEnableLegacyPcManagementRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestBuilder struct{ BaseRequestBuilder }
+
+// EnableAndroidDeviceAdministratorEnrollment action undocumented
+func (b *DeviceManagementRequestBuilder) EnableAndroidDeviceAdministratorEnrollment(reqObj *DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestParameter) *DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestBuilder {
+ bb := &DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/enableAndroidDeviceAdministratorEnrollment"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestBuilder) Request() *DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequest {
+ return &DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceManagementSendCustomNotificationToCompanyPortalRequestBuilder struct{ BaseRequestBuilder }
+
+// SendCustomNotificationToCompanyPortal action undocumented
+func (b *DeviceManagementRequestBuilder) SendCustomNotificationToCompanyPortal(reqObj *DeviceManagementSendCustomNotificationToCompanyPortalRequestParameter) *DeviceManagementSendCustomNotificationToCompanyPortalRequestBuilder {
+ bb := &DeviceManagementSendCustomNotificationToCompanyPortalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sendCustomNotificationToCompanyPortal"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementSendCustomNotificationToCompanyPortalRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementSendCustomNotificationToCompanyPortalRequestBuilder) Request() *DeviceManagementSendCustomNotificationToCompanyPortalRequest {
+ return &DeviceManagementSendCustomNotificationToCompanyPortalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementSendCustomNotificationToCompanyPortalRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementApplicabilityRuleDeviceModeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementApplicabilityRuleDeviceModeModel.go
new file mode 100644
index 00000000..62ea55a3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementApplicabilityRuleDeviceModeModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementApplicabilityRuleDeviceMode undocumented
+type DeviceManagementApplicabilityRuleDeviceMode struct {
+ // Object is the base model of DeviceManagementApplicabilityRuleDeviceMode
+ Object
+ // DeviceMode Applicability rule for device mode.
+ DeviceMode *Windows10DeviceModeType `json:"deviceMode,omitempty"`
+ // Name Name for object.
+ Name *string `json:"name,omitempty"`
+ // RuleType Applicability Rule type.
+ RuleType *DeviceManagementApplicabilityRuleType `json:"ruleType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementApplicabilityRuleOsEditionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementApplicabilityRuleOsEditionModel.go
new file mode 100644
index 00000000..b2dac2b9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementApplicabilityRuleOsEditionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementApplicabilityRuleOsEdition undocumented
+type DeviceManagementApplicabilityRuleOsEdition struct {
+ // Object is the base model of DeviceManagementApplicabilityRuleOsEdition
+ Object
+ // OsEditionTypes Applicability rule OS edition type.
+ OsEditionTypes []Windows10EditionType `json:"osEditionTypes,omitempty"`
+ // Name Name for object.
+ Name *string `json:"name,omitempty"`
+ // RuleType Applicability Rule type.
+ RuleType *DeviceManagementApplicabilityRuleType `json:"ruleType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementApplicabilityRuleOsVersionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementApplicabilityRuleOsVersionModel.go
new file mode 100644
index 00000000..74c1fc86
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementApplicabilityRuleOsVersionModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementApplicabilityRuleOsVersion undocumented
+type DeviceManagementApplicabilityRuleOsVersion struct {
+ // Object is the base model of DeviceManagementApplicabilityRuleOsVersion
+ Object
+ // MinOSVersion Min OS version for Applicability Rule.
+ MinOSVersion *string `json:"minOSVersion,omitempty"`
+ // MaxOSVersion Max OS version for Applicability Rule.
+ MaxOSVersion *string `json:"maxOSVersion,omitempty"`
+ // Name Name for object.
+ Name *string `json:"name,omitempty"`
+ // RuleType Applicability Rule type.
+ RuleType *DeviceManagementApplicabilityRuleType `json:"ruleType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementApplicabilityRuleTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementApplicabilityRuleTypeEnum.go
new file mode 100644
index 00000000..740364dc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementApplicabilityRuleTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementApplicabilityRuleType undocumented
+type DeviceManagementApplicabilityRuleType int
+
+const (
+ // DeviceManagementApplicabilityRuleTypeVInclude undocumented
+ DeviceManagementApplicabilityRuleTypeVInclude DeviceManagementApplicabilityRuleType = 0
+ // DeviceManagementApplicabilityRuleTypeVExclude undocumented
+ DeviceManagementApplicabilityRuleTypeVExclude DeviceManagementApplicabilityRuleType = 1
+)
+
+// DeviceManagementApplicabilityRuleTypePInclude returns a pointer to DeviceManagementApplicabilityRuleTypeVInclude
+func DeviceManagementApplicabilityRuleTypePInclude() *DeviceManagementApplicabilityRuleType {
+ v := DeviceManagementApplicabilityRuleTypeVInclude
+ return &v
+}
+
+// DeviceManagementApplicabilityRuleTypePExclude returns a pointer to DeviceManagementApplicabilityRuleTypeVExclude
+func DeviceManagementApplicabilityRuleTypePExclude() *DeviceManagementApplicabilityRuleType {
+ v := DeviceManagementApplicabilityRuleTypeVExclude
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAutopilotEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAutopilotEventModel.go
new file mode 100644
index 00000000..fb593c4d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAutopilotEventModel.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceManagementAutopilotEvent Represents an Autopilot flow event.
+type DeviceManagementAutopilotEvent struct {
+ // Entity is the base model of DeviceManagementAutopilotEvent
+ Entity
+ // EventDateTime Time when the event occurred .
+ EventDateTime *time.Time `json:"eventDateTime,omitempty"`
+ // DeviceRegisteredDateTime Device registration date.
+ DeviceRegisteredDateTime *time.Time `json:"deviceRegisteredDateTime,omitempty"`
+ // EnrollmentStartDateTime Device enrollment start date.
+ EnrollmentStartDateTime *time.Time `json:"enrollmentStartDateTime,omitempty"`
+ // EnrollmentType Enrollment type.
+ EnrollmentType *WindowsAutopilotEnrollmentType `json:"enrollmentType,omitempty"`
+ // DeviceSerialNumber Device serial number.
+ DeviceSerialNumber *string `json:"deviceSerialNumber,omitempty"`
+ // ManagedDeviceName Managed device name.
+ ManagedDeviceName *string `json:"managedDeviceName,omitempty"`
+ // UserPrincipalName User principal name used to enroll the device.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // WindowsAutopilotDeploymentProfileDisplayName Autopilot profile name.
+ WindowsAutopilotDeploymentProfileDisplayName *string `json:"windowsAutopilotDeploymentProfileDisplayName,omitempty"`
+ // EnrollmentState Enrollment state like Enrolled, Failed.
+ EnrollmentState *EnrollmentState `json:"enrollmentState,omitempty"`
+ // Windows10EnrollmentCompletionPageConfigurationDisplayName Enrollment Status Page profile name
+ Windows10EnrollmentCompletionPageConfigurationDisplayName *string `json:"windows10EnrollmentCompletionPageConfigurationDisplayName,omitempty"`
+ // DeploymentState Deployment state like Success, Failure, InProgress, SuccessWithTimeout.
+ DeploymentState *WindowsAutopilotDeploymentState `json:"deploymentState,omitempty"`
+ // OsVersion Device operating system version.
+ OsVersion *string `json:"osVersion,omitempty"`
+ // DeploymentDuration Autopilot deployment duration including enrollment.
+ DeploymentDuration *time.Duration `json:"deploymentDuration,omitempty"`
+ // DeploymentTotalDuration Total deployment duration from enrollment to Desktop screen.
+ DeploymentTotalDuration *time.Duration `json:"deploymentTotalDuration,omitempty"`
+ // DevicePreparationDuration Time spent in device enrollment.
+ DevicePreparationDuration *time.Duration `json:"devicePreparationDuration,omitempty"`
+ // DeviceSetupDuration Time spent in device ESP.
+ DeviceSetupDuration *time.Duration `json:"deviceSetupDuration,omitempty"`
+ // AccountSetupDuration Time spent in user ESP.
+ AccountSetupDuration *time.Duration `json:"accountSetupDuration,omitempty"`
+ // DeploymentStartDateTime Deployment start time.
+ DeploymentStartDateTime *time.Time `json:"deploymentStartDateTime,omitempty"`
+ // DeploymentEndDateTime Deployment end time.
+ DeploymentEndDateTime *time.Time `json:"deploymentEndDateTime,omitempty"`
+ // TargetedAppCount Count of applications targeted.
+ TargetedAppCount *int `json:"targetedAppCount,omitempty"`
+ // TargetedPolicyCount Count of policies targeted.
+ TargetedPolicyCount *int `json:"targetedPolicyCount,omitempty"`
+ // EnrollmentFailureDetails Enrollment failure details.
+ EnrollmentFailureDetails *string `json:"enrollmentFailureDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAutopilotEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAutopilotEventRequest.go
new file mode 100644
index 00000000..4b471019
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementAutopilotEventRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementAutopilotEventRequestBuilder is request builder for DeviceManagementAutopilotEvent
+type DeviceManagementAutopilotEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementAutopilotEventRequest
+func (b *DeviceManagementAutopilotEventRequestBuilder) Request() *DeviceManagementAutopilotEventRequest {
+ return &DeviceManagementAutopilotEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementAutopilotEventRequest is request for DeviceManagementAutopilotEvent
+type DeviceManagementAutopilotEventRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementAutopilotEvent
+func (r *DeviceManagementAutopilotEventRequest) Get(ctx context.Context) (resObj *DeviceManagementAutopilotEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementAutopilotEvent
+func (r *DeviceManagementAutopilotEventRequest) Update(ctx context.Context, reqObj *DeviceManagementAutopilotEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementAutopilotEvent
+func (r *DeviceManagementAutopilotEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementBooleanSettingInstanceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementBooleanSettingInstanceModel.go
new file mode 100644
index 00000000..2641fcac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementBooleanSettingInstanceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementBooleanSettingInstance A setting instance representing a boolean value
+type DeviceManagementBooleanSettingInstance struct {
+ // DeviceManagementSettingInstance is the base model of DeviceManagementBooleanSettingInstance
+ DeviceManagementSettingInstance
+ // Value The boolean value
+ Value *bool `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementCachedReportConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementCachedReportConfigurationModel.go
new file mode 100644
index 00000000..bc3480c2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementCachedReportConfigurationModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceManagementCachedReportConfiguration Entity representing the configuration of a cached report
+type DeviceManagementCachedReportConfiguration struct {
+ // Entity is the base model of DeviceManagementCachedReportConfiguration
+ Entity
+ // ReportName Name of the report
+ ReportName *string `json:"reportName,omitempty"`
+ // Filter Filters applied on report creation.
+ Filter *string `json:"filter,omitempty"`
+ // Select Columns selected from the report
+ Select []string `json:"select,omitempty"`
+ // OrderBy Ordering of columns in the report
+ OrderBy []string `json:"orderBy,omitempty"`
+ // Status Status of the cached report
+ Status *DeviceManagementReportStatus `json:"status,omitempty"`
+ // LastRefreshDateTime Time that the cached report was last refreshed
+ LastRefreshDateTime *time.Time `json:"lastRefreshDateTime,omitempty"`
+ // ExpirationDateTime Time that the cached report expires
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementCachedReportConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementCachedReportConfigurationRequest.go
new file mode 100644
index 00000000..f253128b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementCachedReportConfigurationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementCachedReportConfigurationRequestBuilder is request builder for DeviceManagementCachedReportConfiguration
+type DeviceManagementCachedReportConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementCachedReportConfigurationRequest
+func (b *DeviceManagementCachedReportConfigurationRequestBuilder) Request() *DeviceManagementCachedReportConfigurationRequest {
+ return &DeviceManagementCachedReportConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementCachedReportConfigurationRequest is request for DeviceManagementCachedReportConfiguration
+type DeviceManagementCachedReportConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementCachedReportConfiguration
+func (r *DeviceManagementCachedReportConfigurationRequest) Get(ctx context.Context) (resObj *DeviceManagementCachedReportConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementCachedReportConfiguration
+func (r *DeviceManagementCachedReportConfigurationRequest) Update(ctx context.Context, reqObj *DeviceManagementCachedReportConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementCachedReportConfiguration
+func (r *DeviceManagementCachedReportConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementCollectionSettingDefinitionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementCollectionSettingDefinitionModel.go
new file mode 100644
index 00000000..f9f8da13
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementCollectionSettingDefinitionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementCollectionSettingDefinition Entity representing the defintion for a collection setting
+type DeviceManagementCollectionSettingDefinition struct {
+ // DeviceManagementSettingDefinition is the base model of DeviceManagementCollectionSettingDefinition
+ DeviceManagementSettingDefinition
+ // ElementDefinitionID The Setting Definition ID that describes what each element of the collection looks like
+ ElementDefinitionID *string `json:"elementDefinitionId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementCollectionSettingInstanceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementCollectionSettingInstanceModel.go
new file mode 100644
index 00000000..99dee4c1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementCollectionSettingInstanceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementCollectionSettingInstance A setting instance representing a collection of values
+type DeviceManagementCollectionSettingInstance struct {
+ // DeviceManagementSettingInstance is the base model of DeviceManagementCollectionSettingInstance
+ DeviceManagementSettingInstance
+ // Value undocumented
+ Value []DeviceManagementSettingInstance `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementCollectionSettingInstanceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementCollectionSettingInstanceRequest.go
new file mode 100644
index 00000000..5ac2d075
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementCollectionSettingInstanceRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceManagementCollectionSettingInstanceRequestBuilder is request builder for DeviceManagementCollectionSettingInstance
+type DeviceManagementCollectionSettingInstanceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementCollectionSettingInstanceRequest
+func (b *DeviceManagementCollectionSettingInstanceRequestBuilder) Request() *DeviceManagementCollectionSettingInstanceRequest {
+ return &DeviceManagementCollectionSettingInstanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementCollectionSettingInstanceRequest is request for DeviceManagementCollectionSettingInstance
+type DeviceManagementCollectionSettingInstanceRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementCollectionSettingInstance
+func (r *DeviceManagementCollectionSettingInstanceRequest) Get(ctx context.Context) (resObj *DeviceManagementCollectionSettingInstance, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementCollectionSettingInstance
+func (r *DeviceManagementCollectionSettingInstanceRequest) Update(ctx context.Context, reqObj *DeviceManagementCollectionSettingInstance) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementCollectionSettingInstance
+func (r *DeviceManagementCollectionSettingInstanceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Value returns request builder for DeviceManagementSettingInstance collection
+func (b *DeviceManagementCollectionSettingInstanceRequestBuilder) Value() *DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder {
+ bb := &DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/value"
+ return bb
+}
+
+// DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection
+type DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingInstance collection
+func (b *DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder) Request() *DeviceManagementCollectionSettingInstanceValueCollectionRequest {
+ return &DeviceManagementCollectionSettingInstanceValueCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingInstance item
+func (b *DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder {
+ bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementCollectionSettingInstanceValueCollectionRequest is request for DeviceManagementSettingInstance collection
+type DeviceManagementCollectionSettingInstanceValueCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingInstance collection
+func (r *DeviceManagementCollectionSettingInstanceValueCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementSettingInstance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingInstance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingInstance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementCollectionSettingInstanceValueCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementCollectionSettingInstanceValueCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementComparisonResultEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementComparisonResultEnum.go
new file mode 100644
index 00000000..336dafb6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementComparisonResultEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementComparisonResult undocumented
+type DeviceManagementComparisonResult int
+
+const (
+ // DeviceManagementComparisonResultVUnknown undocumented
+ DeviceManagementComparisonResultVUnknown DeviceManagementComparisonResult = 0
+ // DeviceManagementComparisonResultVEqual undocumented
+ DeviceManagementComparisonResultVEqual DeviceManagementComparisonResult = 1
+ // DeviceManagementComparisonResultVNotEqual undocumented
+ DeviceManagementComparisonResultVNotEqual DeviceManagementComparisonResult = 2
+ // DeviceManagementComparisonResultVAdded undocumented
+ DeviceManagementComparisonResultVAdded DeviceManagementComparisonResult = 3
+ // DeviceManagementComparisonResultVRemoved undocumented
+ DeviceManagementComparisonResultVRemoved DeviceManagementComparisonResult = 4
+)
+
+// DeviceManagementComparisonResultPUnknown returns a pointer to DeviceManagementComparisonResultVUnknown
+func DeviceManagementComparisonResultPUnknown() *DeviceManagementComparisonResult {
+ v := DeviceManagementComparisonResultVUnknown
+ return &v
+}
+
+// DeviceManagementComparisonResultPEqual returns a pointer to DeviceManagementComparisonResultVEqual
+func DeviceManagementComparisonResultPEqual() *DeviceManagementComparisonResult {
+ v := DeviceManagementComparisonResultVEqual
+ return &v
+}
+
+// DeviceManagementComparisonResultPNotEqual returns a pointer to DeviceManagementComparisonResultVNotEqual
+func DeviceManagementComparisonResultPNotEqual() *DeviceManagementComparisonResult {
+ v := DeviceManagementComparisonResultVNotEqual
+ return &v
+}
+
+// DeviceManagementComparisonResultPAdded returns a pointer to DeviceManagementComparisonResultVAdded
+func DeviceManagementComparisonResultPAdded() *DeviceManagementComparisonResult {
+ v := DeviceManagementComparisonResultVAdded
+ return &v
+}
+
+// DeviceManagementComparisonResultPRemoved returns a pointer to DeviceManagementComparisonResultVRemoved
+func DeviceManagementComparisonResultPRemoved() *DeviceManagementComparisonResult {
+ v := DeviceManagementComparisonResultVRemoved
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementComplexSettingDefinitionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementComplexSettingDefinitionModel.go
new file mode 100644
index 00000000..bc29d202
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementComplexSettingDefinitionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementComplexSettingDefinition Entity representing the defintion for a complex setting
+type DeviceManagementComplexSettingDefinition struct {
+ // DeviceManagementSettingDefinition is the base model of DeviceManagementComplexSettingDefinition
+ DeviceManagementSettingDefinition
+ // PropertyDefinitionIDs The definitions of each property of the complex setting
+ PropertyDefinitionIDs []string `json:"propertyDefinitionIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementComplexSettingInstanceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementComplexSettingInstanceModel.go
new file mode 100644
index 00000000..9f6e3c10
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementComplexSettingInstanceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementComplexSettingInstance A setting instance representing a complex value
+type DeviceManagementComplexSettingInstance struct {
+ // DeviceManagementSettingInstance is the base model of DeviceManagementComplexSettingInstance
+ DeviceManagementSettingInstance
+ // Value undocumented
+ Value []DeviceManagementSettingInstance `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementComplexSettingInstanceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementComplexSettingInstanceRequest.go
new file mode 100644
index 00000000..760b8127
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementComplexSettingInstanceRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceManagementComplexSettingInstanceRequestBuilder is request builder for DeviceManagementComplexSettingInstance
+type DeviceManagementComplexSettingInstanceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementComplexSettingInstanceRequest
+func (b *DeviceManagementComplexSettingInstanceRequestBuilder) Request() *DeviceManagementComplexSettingInstanceRequest {
+ return &DeviceManagementComplexSettingInstanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementComplexSettingInstanceRequest is request for DeviceManagementComplexSettingInstance
+type DeviceManagementComplexSettingInstanceRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementComplexSettingInstance
+func (r *DeviceManagementComplexSettingInstanceRequest) Get(ctx context.Context) (resObj *DeviceManagementComplexSettingInstance, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementComplexSettingInstance
+func (r *DeviceManagementComplexSettingInstanceRequest) Update(ctx context.Context, reqObj *DeviceManagementComplexSettingInstance) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementComplexSettingInstance
+func (r *DeviceManagementComplexSettingInstanceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Value returns request builder for DeviceManagementSettingInstance collection
+func (b *DeviceManagementComplexSettingInstanceRequestBuilder) Value() *DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder {
+ bb := &DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/value"
+ return bb
+}
+
+// DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection
+type DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingInstance collection
+func (b *DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder) Request() *DeviceManagementComplexSettingInstanceValueCollectionRequest {
+ return &DeviceManagementComplexSettingInstanceValueCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingInstance item
+func (b *DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder {
+ bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementComplexSettingInstanceValueCollectionRequest is request for DeviceManagementSettingInstance collection
+type DeviceManagementComplexSettingInstanceValueCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingInstance collection
+func (r *DeviceManagementComplexSettingInstanceValueCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementSettingInstance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingInstance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingInstance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementComplexSettingInstanceValueCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementComplexSettingInstanceValueCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementConstraintModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementConstraintModel.go
new file mode 100644
index 00000000..487079df
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementConstraintModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementConstraint undocumented
+type DeviceManagementConstraint struct {
+ // Object is the base model of DeviceManagementConstraint
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDerivedCredentialIssuerEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDerivedCredentialIssuerEnum.go
new file mode 100644
index 00000000..02fe0238
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDerivedCredentialIssuerEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementDerivedCredentialIssuer undocumented
+type DeviceManagementDerivedCredentialIssuer int
+
+const (
+ // DeviceManagementDerivedCredentialIssuerVIntercede undocumented
+ DeviceManagementDerivedCredentialIssuerVIntercede DeviceManagementDerivedCredentialIssuer = 0
+ // DeviceManagementDerivedCredentialIssuerVEntrustDatacard undocumented
+ DeviceManagementDerivedCredentialIssuerVEntrustDatacard DeviceManagementDerivedCredentialIssuer = 1
+ // DeviceManagementDerivedCredentialIssuerVPurebred undocumented
+ DeviceManagementDerivedCredentialIssuerVPurebred DeviceManagementDerivedCredentialIssuer = 2
+)
+
+// DeviceManagementDerivedCredentialIssuerPIntercede returns a pointer to DeviceManagementDerivedCredentialIssuerVIntercede
+func DeviceManagementDerivedCredentialIssuerPIntercede() *DeviceManagementDerivedCredentialIssuer {
+ v := DeviceManagementDerivedCredentialIssuerVIntercede
+ return &v
+}
+
+// DeviceManagementDerivedCredentialIssuerPEntrustDatacard returns a pointer to DeviceManagementDerivedCredentialIssuerVEntrustDatacard
+func DeviceManagementDerivedCredentialIssuerPEntrustDatacard() *DeviceManagementDerivedCredentialIssuer {
+ v := DeviceManagementDerivedCredentialIssuerVEntrustDatacard
+ return &v
+}
+
+// DeviceManagementDerivedCredentialIssuerPPurebred returns a pointer to DeviceManagementDerivedCredentialIssuerVPurebred
+func DeviceManagementDerivedCredentialIssuerPPurebred() *DeviceManagementDerivedCredentialIssuer {
+ v := DeviceManagementDerivedCredentialIssuerVPurebred
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDerivedCredentialNotificationTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDerivedCredentialNotificationTypeEnum.go
new file mode 100644
index 00000000..4b00a34a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDerivedCredentialNotificationTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementDerivedCredentialNotificationType undocumented
+type DeviceManagementDerivedCredentialNotificationType int
+
+const (
+ // DeviceManagementDerivedCredentialNotificationTypeVNone undocumented
+ DeviceManagementDerivedCredentialNotificationTypeVNone DeviceManagementDerivedCredentialNotificationType = 0
+ // DeviceManagementDerivedCredentialNotificationTypeVCompanyPortal undocumented
+ DeviceManagementDerivedCredentialNotificationTypeVCompanyPortal DeviceManagementDerivedCredentialNotificationType = 1
+ // DeviceManagementDerivedCredentialNotificationTypeVEmail undocumented
+ DeviceManagementDerivedCredentialNotificationTypeVEmail DeviceManagementDerivedCredentialNotificationType = 2
+)
+
+// DeviceManagementDerivedCredentialNotificationTypePNone returns a pointer to DeviceManagementDerivedCredentialNotificationTypeVNone
+func DeviceManagementDerivedCredentialNotificationTypePNone() *DeviceManagementDerivedCredentialNotificationType {
+ v := DeviceManagementDerivedCredentialNotificationTypeVNone
+ return &v
+}
+
+// DeviceManagementDerivedCredentialNotificationTypePCompanyPortal returns a pointer to DeviceManagementDerivedCredentialNotificationTypeVCompanyPortal
+func DeviceManagementDerivedCredentialNotificationTypePCompanyPortal() *DeviceManagementDerivedCredentialNotificationType {
+ v := DeviceManagementDerivedCredentialNotificationTypeVCompanyPortal
+ return &v
+}
+
+// DeviceManagementDerivedCredentialNotificationTypePEmail returns a pointer to DeviceManagementDerivedCredentialNotificationTypeVEmail
+func DeviceManagementDerivedCredentialNotificationTypePEmail() *DeviceManagementDerivedCredentialNotificationType {
+ v := DeviceManagementDerivedCredentialNotificationTypeVEmail
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsModel.go
new file mode 100644
index 00000000..7aff8ff9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementDerivedCredentialSettings Entity that describes tenant level settings for derived credentials
+type DeviceManagementDerivedCredentialSettings struct {
+ // Entity is the base model of DeviceManagementDerivedCredentialSettings
+ Entity
+ // HelpURL The URL that will be accessible to end users as they retrieve a derived credential using the Company Portal.
+ HelpURL *string `json:"helpUrl,omitempty"`
+ // DisplayName The display name for the profile.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Issuer The derived credential provider to use.
+ Issuer *DeviceManagementDerivedCredentialIssuer `json:"issuer,omitempty"`
+ // NotificationType The methods used to inform the end user to open Company Portal to deliver Wi-Fi, VPN, or email profiles that use certificates to the device.
+ NotificationType *DeviceManagementDerivedCredentialNotificationType `json:"notificationType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsRequest.go
new file mode 100644
index 00000000..c6016e3a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDerivedCredentialSettingsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementDerivedCredentialSettingsRequestBuilder is request builder for DeviceManagementDerivedCredentialSettings
+type DeviceManagementDerivedCredentialSettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementDerivedCredentialSettingsRequest
+func (b *DeviceManagementDerivedCredentialSettingsRequestBuilder) Request() *DeviceManagementDerivedCredentialSettingsRequest {
+ return &DeviceManagementDerivedCredentialSettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementDerivedCredentialSettingsRequest is request for DeviceManagementDerivedCredentialSettings
+type DeviceManagementDerivedCredentialSettingsRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementDerivedCredentialSettings
+func (r *DeviceManagementDerivedCredentialSettingsRequest) Get(ctx context.Context) (resObj *DeviceManagementDerivedCredentialSettings, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementDerivedCredentialSettings
+func (r *DeviceManagementDerivedCredentialSettingsRequest) Update(ctx context.Context, reqObj *DeviceManagementDerivedCredentialSettings) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementDerivedCredentialSettings
+func (r *DeviceManagementDerivedCredentialSettingsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDomainJoinConnectorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDomainJoinConnectorModel.go
new file mode 100644
index 00000000..4ee7d7ed
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDomainJoinConnectorModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceManagementDomainJoinConnector A Domain Join Connector is a connector that is responsible to allocate (and delete) machine account blobs
+type DeviceManagementDomainJoinConnector struct {
+ // Entity is the base model of DeviceManagementDomainJoinConnector
+ Entity
+ // DisplayName The connector display name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastConnectionDateTime Last time connector contacted Intune.
+ LastConnectionDateTime *time.Time `json:"lastConnectionDateTime,omitempty"`
+ // State The connector state.
+ State *DeviceManagementDomainJoinConnectorState `json:"state,omitempty"`
+ // Version The version of the connector.
+ Version *string `json:"version,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDomainJoinConnectorRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDomainJoinConnectorRequest.go
new file mode 100644
index 00000000..908b289b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDomainJoinConnectorRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementDomainJoinConnectorRequestBuilder is request builder for DeviceManagementDomainJoinConnector
+type DeviceManagementDomainJoinConnectorRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementDomainJoinConnectorRequest
+func (b *DeviceManagementDomainJoinConnectorRequestBuilder) Request() *DeviceManagementDomainJoinConnectorRequest {
+ return &DeviceManagementDomainJoinConnectorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementDomainJoinConnectorRequest is request for DeviceManagementDomainJoinConnector
+type DeviceManagementDomainJoinConnectorRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementDomainJoinConnector
+func (r *DeviceManagementDomainJoinConnectorRequest) Get(ctx context.Context) (resObj *DeviceManagementDomainJoinConnector, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementDomainJoinConnector
+func (r *DeviceManagementDomainJoinConnectorRequest) Update(ctx context.Context, reqObj *DeviceManagementDomainJoinConnector) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementDomainJoinConnector
+func (r *DeviceManagementDomainJoinConnectorRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDomainJoinConnectorStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDomainJoinConnectorStateEnum.go
new file mode 100644
index 00000000..23669ae8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementDomainJoinConnectorStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementDomainJoinConnectorState undocumented
+type DeviceManagementDomainJoinConnectorState int
+
+const (
+ // DeviceManagementDomainJoinConnectorStateVActive undocumented
+ DeviceManagementDomainJoinConnectorStateVActive DeviceManagementDomainJoinConnectorState = 0
+ // DeviceManagementDomainJoinConnectorStateVError undocumented
+ DeviceManagementDomainJoinConnectorStateVError DeviceManagementDomainJoinConnectorState = 1
+ // DeviceManagementDomainJoinConnectorStateVInactive undocumented
+ DeviceManagementDomainJoinConnectorStateVInactive DeviceManagementDomainJoinConnectorState = 2
+)
+
+// DeviceManagementDomainJoinConnectorStatePActive returns a pointer to DeviceManagementDomainJoinConnectorStateVActive
+func DeviceManagementDomainJoinConnectorStatePActive() *DeviceManagementDomainJoinConnectorState {
+ v := DeviceManagementDomainJoinConnectorStateVActive
+ return &v
+}
+
+// DeviceManagementDomainJoinConnectorStatePError returns a pointer to DeviceManagementDomainJoinConnectorStateVError
+func DeviceManagementDomainJoinConnectorStatePError() *DeviceManagementDomainJoinConnectorState {
+ v := DeviceManagementDomainJoinConnectorStateVError
+ return &v
+}
+
+// DeviceManagementDomainJoinConnectorStatePInactive returns a pointer to DeviceManagementDomainJoinConnectorStateVInactive
+func DeviceManagementDomainJoinConnectorStatePInactive() *DeviceManagementDomainJoinConnectorState {
+ v := DeviceManagementDomainJoinConnectorStateVInactive
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementEnumConstraintModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementEnumConstraintModel.go
new file mode 100644
index 00000000..d90c73cd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementEnumConstraintModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementEnumConstraint undocumented
+type DeviceManagementEnumConstraint struct {
+ // DeviceManagementConstraint is the base model of DeviceManagementEnumConstraint
+ DeviceManagementConstraint
+ // Values List of valid values for this string
+ Values []DeviceManagementEnumValue `json:"values,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementEnumValueModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementEnumValueModel.go
new file mode 100644
index 00000000..81c6d16b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementEnumValueModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementEnumValue undocumented
+type DeviceManagementEnumValue struct {
+ // Object is the base model of DeviceManagementEnumValue
+ Object
+ // Value The raw enum value text
+ Value *string `json:"value,omitempty"`
+ // DisplayName Display name for this enum value
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeAccessLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeAccessLevelEnum.go
new file mode 100644
index 00000000..98a559e7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeAccessLevelEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementExchangeAccessLevel undocumented
+type DeviceManagementExchangeAccessLevel int
+
+const (
+ // DeviceManagementExchangeAccessLevelVNone undocumented
+ DeviceManagementExchangeAccessLevelVNone DeviceManagementExchangeAccessLevel = 0
+ // DeviceManagementExchangeAccessLevelVAllow undocumented
+ DeviceManagementExchangeAccessLevelVAllow DeviceManagementExchangeAccessLevel = 1
+ // DeviceManagementExchangeAccessLevelVBlock undocumented
+ DeviceManagementExchangeAccessLevelVBlock DeviceManagementExchangeAccessLevel = 2
+ // DeviceManagementExchangeAccessLevelVQuarantine undocumented
+ DeviceManagementExchangeAccessLevelVQuarantine DeviceManagementExchangeAccessLevel = 3
+)
+
+// DeviceManagementExchangeAccessLevelPNone returns a pointer to DeviceManagementExchangeAccessLevelVNone
+func DeviceManagementExchangeAccessLevelPNone() *DeviceManagementExchangeAccessLevel {
+ v := DeviceManagementExchangeAccessLevelVNone
+ return &v
+}
+
+// DeviceManagementExchangeAccessLevelPAllow returns a pointer to DeviceManagementExchangeAccessLevelVAllow
+func DeviceManagementExchangeAccessLevelPAllow() *DeviceManagementExchangeAccessLevel {
+ v := DeviceManagementExchangeAccessLevelVAllow
+ return &v
+}
+
+// DeviceManagementExchangeAccessLevelPBlock returns a pointer to DeviceManagementExchangeAccessLevelVBlock
+func DeviceManagementExchangeAccessLevelPBlock() *DeviceManagementExchangeAccessLevel {
+ v := DeviceManagementExchangeAccessLevelVBlock
+ return &v
+}
+
+// DeviceManagementExchangeAccessLevelPQuarantine returns a pointer to DeviceManagementExchangeAccessLevelVQuarantine
+func DeviceManagementExchangeAccessLevelPQuarantine() *DeviceManagementExchangeAccessLevel {
+ v := DeviceManagementExchangeAccessLevelVQuarantine
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeAccessRuleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeAccessRuleModel.go
new file mode 100644
index 00000000..18f0059c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeAccessRuleModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementExchangeAccessRule undocumented
+type DeviceManagementExchangeAccessRule struct {
+ // Object is the base model of DeviceManagementExchangeAccessRule
+ Object
+ // DeviceClass Device Class which will be impacted by this rule.
+ DeviceClass *DeviceManagementExchangeDeviceClass `json:"deviceClass,omitempty"`
+ // AccessLevel Access Level for Exchange granted by this rule.
+ AccessLevel *DeviceManagementExchangeAccessLevel `json:"accessLevel,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeAccessRuleTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeAccessRuleTypeEnum.go
new file mode 100644
index 00000000..ee7514ad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeAccessRuleTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementExchangeAccessRuleType undocumented
+type DeviceManagementExchangeAccessRuleType int
+
+const (
+ // DeviceManagementExchangeAccessRuleTypeVFamily undocumented
+ DeviceManagementExchangeAccessRuleTypeVFamily DeviceManagementExchangeAccessRuleType = 0
+ // DeviceManagementExchangeAccessRuleTypeVModel undocumented
+ DeviceManagementExchangeAccessRuleTypeVModel DeviceManagementExchangeAccessRuleType = 1
+)
+
+// DeviceManagementExchangeAccessRuleTypePFamily returns a pointer to DeviceManagementExchangeAccessRuleTypeVFamily
+func DeviceManagementExchangeAccessRuleTypePFamily() *DeviceManagementExchangeAccessRuleType {
+ v := DeviceManagementExchangeAccessRuleTypeVFamily
+ return &v
+}
+
+// DeviceManagementExchangeAccessRuleTypePModel returns a pointer to DeviceManagementExchangeAccessRuleTypeVModel
+func DeviceManagementExchangeAccessRuleTypePModel() *DeviceManagementExchangeAccessRuleType {
+ v := DeviceManagementExchangeAccessRuleTypeVModel
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeAccessStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeAccessStateEnum.go
new file mode 100644
index 00000000..19156f8c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeAccessStateEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementExchangeAccessState undocumented
+type DeviceManagementExchangeAccessState int
+
+const (
+ // DeviceManagementExchangeAccessStateVNone undocumented
+ DeviceManagementExchangeAccessStateVNone DeviceManagementExchangeAccessState = 0
+ // DeviceManagementExchangeAccessStateVUnknown undocumented
+ DeviceManagementExchangeAccessStateVUnknown DeviceManagementExchangeAccessState = 1
+ // DeviceManagementExchangeAccessStateVAllowed undocumented
+ DeviceManagementExchangeAccessStateVAllowed DeviceManagementExchangeAccessState = 2
+ // DeviceManagementExchangeAccessStateVBlocked undocumented
+ DeviceManagementExchangeAccessStateVBlocked DeviceManagementExchangeAccessState = 3
+ // DeviceManagementExchangeAccessStateVQuarantined undocumented
+ DeviceManagementExchangeAccessStateVQuarantined DeviceManagementExchangeAccessState = 4
+)
+
+// DeviceManagementExchangeAccessStatePNone returns a pointer to DeviceManagementExchangeAccessStateVNone
+func DeviceManagementExchangeAccessStatePNone() *DeviceManagementExchangeAccessState {
+ v := DeviceManagementExchangeAccessStateVNone
+ return &v
+}
+
+// DeviceManagementExchangeAccessStatePUnknown returns a pointer to DeviceManagementExchangeAccessStateVUnknown
+func DeviceManagementExchangeAccessStatePUnknown() *DeviceManagementExchangeAccessState {
+ v := DeviceManagementExchangeAccessStateVUnknown
+ return &v
+}
+
+// DeviceManagementExchangeAccessStatePAllowed returns a pointer to DeviceManagementExchangeAccessStateVAllowed
+func DeviceManagementExchangeAccessStatePAllowed() *DeviceManagementExchangeAccessState {
+ v := DeviceManagementExchangeAccessStateVAllowed
+ return &v
+}
+
+// DeviceManagementExchangeAccessStatePBlocked returns a pointer to DeviceManagementExchangeAccessStateVBlocked
+func DeviceManagementExchangeAccessStatePBlocked() *DeviceManagementExchangeAccessState {
+ v := DeviceManagementExchangeAccessStateVBlocked
+ return &v
+}
+
+// DeviceManagementExchangeAccessStatePQuarantined returns a pointer to DeviceManagementExchangeAccessStateVQuarantined
+func DeviceManagementExchangeAccessStatePQuarantined() *DeviceManagementExchangeAccessState {
+ v := DeviceManagementExchangeAccessStateVQuarantined
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeAccessStateReasonEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeAccessStateReasonEnum.go
new file mode 100644
index 00000000..05e6d673
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeAccessStateReasonEnum.go
@@ -0,0 +1,137 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementExchangeAccessStateReason undocumented
+type DeviceManagementExchangeAccessStateReason int
+
+const (
+ // DeviceManagementExchangeAccessStateReasonVNone undocumented
+ DeviceManagementExchangeAccessStateReasonVNone DeviceManagementExchangeAccessStateReason = 0
+ // DeviceManagementExchangeAccessStateReasonVUnknown undocumented
+ DeviceManagementExchangeAccessStateReasonVUnknown DeviceManagementExchangeAccessStateReason = 1
+ // DeviceManagementExchangeAccessStateReasonVExchangeGlobalRule undocumented
+ DeviceManagementExchangeAccessStateReasonVExchangeGlobalRule DeviceManagementExchangeAccessStateReason = 2
+ // DeviceManagementExchangeAccessStateReasonVExchangeIndividualRule undocumented
+ DeviceManagementExchangeAccessStateReasonVExchangeIndividualRule DeviceManagementExchangeAccessStateReason = 3
+ // DeviceManagementExchangeAccessStateReasonVExchangeDeviceRule undocumented
+ DeviceManagementExchangeAccessStateReasonVExchangeDeviceRule DeviceManagementExchangeAccessStateReason = 4
+ // DeviceManagementExchangeAccessStateReasonVExchangeUpgrade undocumented
+ DeviceManagementExchangeAccessStateReasonVExchangeUpgrade DeviceManagementExchangeAccessStateReason = 5
+ // DeviceManagementExchangeAccessStateReasonVExchangeMailboxPolicy undocumented
+ DeviceManagementExchangeAccessStateReasonVExchangeMailboxPolicy DeviceManagementExchangeAccessStateReason = 6
+ // DeviceManagementExchangeAccessStateReasonVOther undocumented
+ DeviceManagementExchangeAccessStateReasonVOther DeviceManagementExchangeAccessStateReason = 7
+ // DeviceManagementExchangeAccessStateReasonVCompliant undocumented
+ DeviceManagementExchangeAccessStateReasonVCompliant DeviceManagementExchangeAccessStateReason = 8
+ // DeviceManagementExchangeAccessStateReasonVNotCompliant undocumented
+ DeviceManagementExchangeAccessStateReasonVNotCompliant DeviceManagementExchangeAccessStateReason = 9
+ // DeviceManagementExchangeAccessStateReasonVNotEnrolled undocumented
+ DeviceManagementExchangeAccessStateReasonVNotEnrolled DeviceManagementExchangeAccessStateReason = 10
+ // DeviceManagementExchangeAccessStateReasonVUnknownLocation undocumented
+ DeviceManagementExchangeAccessStateReasonVUnknownLocation DeviceManagementExchangeAccessStateReason = 12
+ // DeviceManagementExchangeAccessStateReasonVMFARequired undocumented
+ DeviceManagementExchangeAccessStateReasonVMFARequired DeviceManagementExchangeAccessStateReason = 13
+ // DeviceManagementExchangeAccessStateReasonVAzureADBlockDueToAccessPolicy undocumented
+ DeviceManagementExchangeAccessStateReasonVAzureADBlockDueToAccessPolicy DeviceManagementExchangeAccessStateReason = 14
+ // DeviceManagementExchangeAccessStateReasonVCompromisedPassword undocumented
+ DeviceManagementExchangeAccessStateReasonVCompromisedPassword DeviceManagementExchangeAccessStateReason = 15
+ // DeviceManagementExchangeAccessStateReasonVDeviceNotKnownWithManagedApp undocumented
+ DeviceManagementExchangeAccessStateReasonVDeviceNotKnownWithManagedApp DeviceManagementExchangeAccessStateReason = 16
+)
+
+// DeviceManagementExchangeAccessStateReasonPNone returns a pointer to DeviceManagementExchangeAccessStateReasonVNone
+func DeviceManagementExchangeAccessStateReasonPNone() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVNone
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPUnknown returns a pointer to DeviceManagementExchangeAccessStateReasonVUnknown
+func DeviceManagementExchangeAccessStateReasonPUnknown() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVUnknown
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPExchangeGlobalRule returns a pointer to DeviceManagementExchangeAccessStateReasonVExchangeGlobalRule
+func DeviceManagementExchangeAccessStateReasonPExchangeGlobalRule() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVExchangeGlobalRule
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPExchangeIndividualRule returns a pointer to DeviceManagementExchangeAccessStateReasonVExchangeIndividualRule
+func DeviceManagementExchangeAccessStateReasonPExchangeIndividualRule() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVExchangeIndividualRule
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPExchangeDeviceRule returns a pointer to DeviceManagementExchangeAccessStateReasonVExchangeDeviceRule
+func DeviceManagementExchangeAccessStateReasonPExchangeDeviceRule() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVExchangeDeviceRule
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPExchangeUpgrade returns a pointer to DeviceManagementExchangeAccessStateReasonVExchangeUpgrade
+func DeviceManagementExchangeAccessStateReasonPExchangeUpgrade() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVExchangeUpgrade
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPExchangeMailboxPolicy returns a pointer to DeviceManagementExchangeAccessStateReasonVExchangeMailboxPolicy
+func DeviceManagementExchangeAccessStateReasonPExchangeMailboxPolicy() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVExchangeMailboxPolicy
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPOther returns a pointer to DeviceManagementExchangeAccessStateReasonVOther
+func DeviceManagementExchangeAccessStateReasonPOther() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVOther
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPCompliant returns a pointer to DeviceManagementExchangeAccessStateReasonVCompliant
+func DeviceManagementExchangeAccessStateReasonPCompliant() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVCompliant
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPNotCompliant returns a pointer to DeviceManagementExchangeAccessStateReasonVNotCompliant
+func DeviceManagementExchangeAccessStateReasonPNotCompliant() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVNotCompliant
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPNotEnrolled returns a pointer to DeviceManagementExchangeAccessStateReasonVNotEnrolled
+func DeviceManagementExchangeAccessStateReasonPNotEnrolled() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVNotEnrolled
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPUnknownLocation returns a pointer to DeviceManagementExchangeAccessStateReasonVUnknownLocation
+func DeviceManagementExchangeAccessStateReasonPUnknownLocation() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVUnknownLocation
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPMFARequired returns a pointer to DeviceManagementExchangeAccessStateReasonVMFARequired
+func DeviceManagementExchangeAccessStateReasonPMFARequired() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVMFARequired
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPAzureADBlockDueToAccessPolicy returns a pointer to DeviceManagementExchangeAccessStateReasonVAzureADBlockDueToAccessPolicy
+func DeviceManagementExchangeAccessStateReasonPAzureADBlockDueToAccessPolicy() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVAzureADBlockDueToAccessPolicy
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPCompromisedPassword returns a pointer to DeviceManagementExchangeAccessStateReasonVCompromisedPassword
+func DeviceManagementExchangeAccessStateReasonPCompromisedPassword() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVCompromisedPassword
+ return &v
+}
+
+// DeviceManagementExchangeAccessStateReasonPDeviceNotKnownWithManagedApp returns a pointer to DeviceManagementExchangeAccessStateReasonVDeviceNotKnownWithManagedApp
+func DeviceManagementExchangeAccessStateReasonPDeviceNotKnownWithManagedApp() *DeviceManagementExchangeAccessStateReason {
+ v := DeviceManagementExchangeAccessStateReasonVDeviceNotKnownWithManagedApp
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorAction.go
new file mode 100644
index 00000000..7883b0ce
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementExchangeConnectorSyncRequestParameter undocumented
+type DeviceManagementExchangeConnectorSyncRequestParameter struct {
+ // SyncType undocumented
+ SyncType *DeviceManagementExchangeConnectorSyncType `json:"syncType,omitempty"`
+}
+
+//
+type DeviceManagementExchangeConnectorSyncRequestBuilder struct{ BaseRequestBuilder }
+
+// Sync action undocumented
+func (b *DeviceManagementExchangeConnectorRequestBuilder) Sync(reqObj *DeviceManagementExchangeConnectorSyncRequestParameter) *DeviceManagementExchangeConnectorSyncRequestBuilder {
+ bb := &DeviceManagementExchangeConnectorSyncRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sync"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementExchangeConnectorSyncRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementExchangeConnectorSyncRequestBuilder) Request() *DeviceManagementExchangeConnectorSyncRequest {
+ return &DeviceManagementExchangeConnectorSyncRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementExchangeConnectorSyncRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorModel.go
new file mode 100644
index 00000000..c0857f8e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceManagementExchangeConnector Entity which represents a connection to an Exchange environment.
+type DeviceManagementExchangeConnector struct {
+ // Entity is the base model of DeviceManagementExchangeConnector
+ Entity
+ // LastSyncDateTime Last sync time for the Exchange Connector
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // Status Exchange Connector Status
+ Status *DeviceManagementExchangeConnectorStatus `json:"status,omitempty"`
+ // PrimarySMTPAddress Email address used to configure the Service To Service Exchange Connector.
+ PrimarySMTPAddress *string `json:"primarySmtpAddress,omitempty"`
+ // ServerName The name of the Exchange server.
+ ServerName *string `json:"serverName,omitempty"`
+ // ConnectorServerName The name of the server hosting the Exchange Connector.
+ ConnectorServerName *string `json:"connectorServerName,omitempty"`
+ // ExchangeConnectorType The type of Exchange Connector Configured.
+ ExchangeConnectorType *DeviceManagementExchangeConnectorType `json:"exchangeConnectorType,omitempty"`
+ // Version The version of the ExchangeConnectorAgent
+ Version *string `json:"version,omitempty"`
+ // ExchangeAlias An alias assigned to the Exchange server
+ ExchangeAlias *string `json:"exchangeAlias,omitempty"`
+ // ExchangeOrganization Exchange Organization to the Exchange server
+ ExchangeOrganization *string `json:"exchangeOrganization,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorRequest.go
new file mode 100644
index 00000000..aee34980
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementExchangeConnectorRequestBuilder is request builder for DeviceManagementExchangeConnector
+type DeviceManagementExchangeConnectorRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementExchangeConnectorRequest
+func (b *DeviceManagementExchangeConnectorRequestBuilder) Request() *DeviceManagementExchangeConnectorRequest {
+ return &DeviceManagementExchangeConnectorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementExchangeConnectorRequest is request for DeviceManagementExchangeConnector
+type DeviceManagementExchangeConnectorRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementExchangeConnector
+func (r *DeviceManagementExchangeConnectorRequest) Get(ctx context.Context) (resObj *DeviceManagementExchangeConnector, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementExchangeConnector
+func (r *DeviceManagementExchangeConnectorRequest) Update(ctx context.Context, reqObj *DeviceManagementExchangeConnector) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementExchangeConnector
+func (r *DeviceManagementExchangeConnectorRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorStatusEnum.go
new file mode 100644
index 00000000..93b1913b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementExchangeConnectorStatus undocumented
+type DeviceManagementExchangeConnectorStatus int
+
+const (
+ // DeviceManagementExchangeConnectorStatusVNone undocumented
+ DeviceManagementExchangeConnectorStatusVNone DeviceManagementExchangeConnectorStatus = 0
+ // DeviceManagementExchangeConnectorStatusVConnectionPending undocumented
+ DeviceManagementExchangeConnectorStatusVConnectionPending DeviceManagementExchangeConnectorStatus = 1
+ // DeviceManagementExchangeConnectorStatusVConnected undocumented
+ DeviceManagementExchangeConnectorStatusVConnected DeviceManagementExchangeConnectorStatus = 2
+ // DeviceManagementExchangeConnectorStatusVDisconnected undocumented
+ DeviceManagementExchangeConnectorStatusVDisconnected DeviceManagementExchangeConnectorStatus = 3
+)
+
+// DeviceManagementExchangeConnectorStatusPNone returns a pointer to DeviceManagementExchangeConnectorStatusVNone
+func DeviceManagementExchangeConnectorStatusPNone() *DeviceManagementExchangeConnectorStatus {
+ v := DeviceManagementExchangeConnectorStatusVNone
+ return &v
+}
+
+// DeviceManagementExchangeConnectorStatusPConnectionPending returns a pointer to DeviceManagementExchangeConnectorStatusVConnectionPending
+func DeviceManagementExchangeConnectorStatusPConnectionPending() *DeviceManagementExchangeConnectorStatus {
+ v := DeviceManagementExchangeConnectorStatusVConnectionPending
+ return &v
+}
+
+// DeviceManagementExchangeConnectorStatusPConnected returns a pointer to DeviceManagementExchangeConnectorStatusVConnected
+func DeviceManagementExchangeConnectorStatusPConnected() *DeviceManagementExchangeConnectorStatus {
+ v := DeviceManagementExchangeConnectorStatusVConnected
+ return &v
+}
+
+// DeviceManagementExchangeConnectorStatusPDisconnected returns a pointer to DeviceManagementExchangeConnectorStatusVDisconnected
+func DeviceManagementExchangeConnectorStatusPDisconnected() *DeviceManagementExchangeConnectorStatus {
+ v := DeviceManagementExchangeConnectorStatusVDisconnected
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorSyncTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorSyncTypeEnum.go
new file mode 100644
index 00000000..358efc6c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorSyncTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementExchangeConnectorSyncType undocumented
+type DeviceManagementExchangeConnectorSyncType int
+
+const (
+ // DeviceManagementExchangeConnectorSyncTypeVFullSync undocumented
+ DeviceManagementExchangeConnectorSyncTypeVFullSync DeviceManagementExchangeConnectorSyncType = 0
+ // DeviceManagementExchangeConnectorSyncTypeVDeltaSync undocumented
+ DeviceManagementExchangeConnectorSyncTypeVDeltaSync DeviceManagementExchangeConnectorSyncType = 1
+)
+
+// DeviceManagementExchangeConnectorSyncTypePFullSync returns a pointer to DeviceManagementExchangeConnectorSyncTypeVFullSync
+func DeviceManagementExchangeConnectorSyncTypePFullSync() *DeviceManagementExchangeConnectorSyncType {
+ v := DeviceManagementExchangeConnectorSyncTypeVFullSync
+ return &v
+}
+
+// DeviceManagementExchangeConnectorSyncTypePDeltaSync returns a pointer to DeviceManagementExchangeConnectorSyncTypeVDeltaSync
+func DeviceManagementExchangeConnectorSyncTypePDeltaSync() *DeviceManagementExchangeConnectorSyncType {
+ v := DeviceManagementExchangeConnectorSyncTypeVDeltaSync
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorTypeEnum.go
new file mode 100644
index 00000000..cac15843
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeConnectorTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementExchangeConnectorType undocumented
+type DeviceManagementExchangeConnectorType int
+
+const (
+ // DeviceManagementExchangeConnectorTypeVOnPremises undocumented
+ DeviceManagementExchangeConnectorTypeVOnPremises DeviceManagementExchangeConnectorType = 0
+ // DeviceManagementExchangeConnectorTypeVHosted undocumented
+ DeviceManagementExchangeConnectorTypeVHosted DeviceManagementExchangeConnectorType = 1
+ // DeviceManagementExchangeConnectorTypeVServiceToService undocumented
+ DeviceManagementExchangeConnectorTypeVServiceToService DeviceManagementExchangeConnectorType = 2
+ // DeviceManagementExchangeConnectorTypeVDedicated undocumented
+ DeviceManagementExchangeConnectorTypeVDedicated DeviceManagementExchangeConnectorType = 3
+)
+
+// DeviceManagementExchangeConnectorTypePOnPremises returns a pointer to DeviceManagementExchangeConnectorTypeVOnPremises
+func DeviceManagementExchangeConnectorTypePOnPremises() *DeviceManagementExchangeConnectorType {
+ v := DeviceManagementExchangeConnectorTypeVOnPremises
+ return &v
+}
+
+// DeviceManagementExchangeConnectorTypePHosted returns a pointer to DeviceManagementExchangeConnectorTypeVHosted
+func DeviceManagementExchangeConnectorTypePHosted() *DeviceManagementExchangeConnectorType {
+ v := DeviceManagementExchangeConnectorTypeVHosted
+ return &v
+}
+
+// DeviceManagementExchangeConnectorTypePServiceToService returns a pointer to DeviceManagementExchangeConnectorTypeVServiceToService
+func DeviceManagementExchangeConnectorTypePServiceToService() *DeviceManagementExchangeConnectorType {
+ v := DeviceManagementExchangeConnectorTypeVServiceToService
+ return &v
+}
+
+// DeviceManagementExchangeConnectorTypePDedicated returns a pointer to DeviceManagementExchangeConnectorTypeVDedicated
+func DeviceManagementExchangeConnectorTypePDedicated() *DeviceManagementExchangeConnectorType {
+ v := DeviceManagementExchangeConnectorTypeVDedicated
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeDeviceClassModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeDeviceClassModel.go
new file mode 100644
index 00000000..9a8f232b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeDeviceClassModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementExchangeDeviceClass undocumented
+type DeviceManagementExchangeDeviceClass struct {
+ // Object is the base model of DeviceManagementExchangeDeviceClass
+ Object
+ // Name Name of the device class which will be impacted by this rule.
+ Name *string `json:"name,omitempty"`
+ // Type Type of device which is impacted by this rule e.g. Model, Family
+ Type *DeviceManagementExchangeAccessRuleType `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyModel.go
new file mode 100644
index 00000000..b6e26ae4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementExchangeOnPremisesPolicy Singleton entity which represents the Exchange OnPremises policy configured for a tenant.
+type DeviceManagementExchangeOnPremisesPolicy struct {
+ // Entity is the base model of DeviceManagementExchangeOnPremisesPolicy
+ Entity
+ // NotificationContent Notification text that will be sent to users quarantined by this policy. This is UTF8 encoded byte array HTML.
+ NotificationContent *Binary `json:"notificationContent,omitempty"`
+ // DefaultAccessLevel Default access state in Exchange. This rule applies globally to the entire Exchange organization
+ DefaultAccessLevel *DeviceManagementExchangeAccessLevel `json:"defaultAccessLevel,omitempty"`
+ // AccessRules The list of device access rules in Exchange. The access rules apply globally to the entire Exchange organization
+ AccessRules []DeviceManagementExchangeAccessRule `json:"accessRules,omitempty"`
+ // KnownDeviceClasses The list of device classes known to Exchange
+ KnownDeviceClasses []DeviceManagementExchangeDeviceClass `json:"knownDeviceClasses,omitempty"`
+ // ConditionalAccessSettings undocumented
+ ConditionalAccessSettings *OnPremisesConditionalAccessSettings `json:"conditionalAccessSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyRequest.go
new file mode 100644
index 00000000..2251e7aa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExchangeOnPremisesPolicyRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementExchangeOnPremisesPolicyRequestBuilder is request builder for DeviceManagementExchangeOnPremisesPolicy
+type DeviceManagementExchangeOnPremisesPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementExchangeOnPremisesPolicyRequest
+func (b *DeviceManagementExchangeOnPremisesPolicyRequestBuilder) Request() *DeviceManagementExchangeOnPremisesPolicyRequest {
+ return &DeviceManagementExchangeOnPremisesPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementExchangeOnPremisesPolicyRequest is request for DeviceManagementExchangeOnPremisesPolicy
+type DeviceManagementExchangeOnPremisesPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementExchangeOnPremisesPolicy
+func (r *DeviceManagementExchangeOnPremisesPolicyRequest) Get(ctx context.Context) (resObj *DeviceManagementExchangeOnPremisesPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementExchangeOnPremisesPolicy
+func (r *DeviceManagementExchangeOnPremisesPolicyRequest) Update(ctx context.Context, reqObj *DeviceManagementExchangeOnPremisesPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementExchangeOnPremisesPolicy
+func (r *DeviceManagementExchangeOnPremisesPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ConditionalAccessSettings is navigation property
+func (b *DeviceManagementExchangeOnPremisesPolicyRequestBuilder) ConditionalAccessSettings() *OnPremisesConditionalAccessSettingsRequestBuilder {
+ bb := &OnPremisesConditionalAccessSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/conditionalAccessSettings"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExportJobModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExportJobModel.go
new file mode 100644
index 00000000..55d86c67
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExportJobModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceManagementExportJob Entity representing a job to export a report
+type DeviceManagementExportJob struct {
+ // Entity is the base model of DeviceManagementExportJob
+ Entity
+ // ReportName Name of the report
+ ReportName *string `json:"reportName,omitempty"`
+ // Filter Filters applied on the report
+ Filter *string `json:"filter,omitempty"`
+ // Select Columns selected from the report
+ Select []string `json:"select,omitempty"`
+ // Format Format of the exported report
+ Format *DeviceManagementReportFileFormat `json:"format,omitempty"`
+ // SnapshotID A snapshot is an identifiable subset of the dataset represented by the ReportName. A sessionId or CachedReportConfiguration id can be used here. If a sessionId is specified, Filter, Select, and OrderBy are applied to the data represented by the sessionId. Filter, Select, and OrderBy cannot be specified together with a CachedReportConfiguration id.
+ SnapshotID *string `json:"snapshotId,omitempty"`
+ // Status Status of the export job
+ Status *DeviceManagementReportStatus `json:"status,omitempty"`
+ // URL Temporary location of the exported report
+ URL *string `json:"url,omitempty"`
+ // RequestDateTime Time that the exported report was requested
+ RequestDateTime *time.Time `json:"requestDateTime,omitempty"`
+ // ExpirationDateTime Time that the exported report expires
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExportJobRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExportJobRequest.go
new file mode 100644
index 00000000..a3703a99
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementExportJobRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementExportJobRequestBuilder is request builder for DeviceManagementExportJob
+type DeviceManagementExportJobRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementExportJobRequest
+func (b *DeviceManagementExportJobRequestBuilder) Request() *DeviceManagementExportJobRequest {
+ return &DeviceManagementExportJobRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementExportJobRequest is request for DeviceManagementExportJob
+type DeviceManagementExportJobRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementExportJob
+func (r *DeviceManagementExportJobRequest) Get(ctx context.Context) (resObj *DeviceManagementExportJob, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementExportJob
+func (r *DeviceManagementExportJobRequest) Update(ctx context.Context, reqObj *DeviceManagementExportJob) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementExportJob
+func (r *DeviceManagementExportJobRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntegerSettingInstanceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntegerSettingInstanceModel.go
new file mode 100644
index 00000000..b24e21f2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntegerSettingInstanceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementIntegerSettingInstance A setting instance representing an integer value
+type DeviceManagementIntegerSettingInstance struct {
+ // DeviceManagementSettingInstance is the base model of DeviceManagementIntegerSettingInstance
+ DeviceManagementSettingInstance
+ // Value The integer value
+ Value *int `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentAction.go
new file mode 100644
index 00000000..c66ef2df
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentAction.go
@@ -0,0 +1,103 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementIntentUpdateSettingsRequestParameter undocumented
+type DeviceManagementIntentUpdateSettingsRequestParameter struct {
+ // Settings undocumented
+ Settings []DeviceManagementSettingInstance `json:"settings,omitempty"`
+}
+
+// DeviceManagementIntentMigrateToTemplateRequestParameter undocumented
+type DeviceManagementIntentMigrateToTemplateRequestParameter struct {
+ // NewTemplateID undocumented
+ NewTemplateID *string `json:"newTemplateId,omitempty"`
+ // PreserveCustomValues undocumented
+ PreserveCustomValues *bool `json:"preserveCustomValues,omitempty"`
+}
+
+// DeviceManagementIntentAssignRequestParameter undocumented
+type DeviceManagementIntentAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []DeviceManagementIntentAssignment `json:"assignments,omitempty"`
+}
+
+//
+type DeviceManagementIntentUpdateSettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateSettings action undocumented
+func (b *DeviceManagementIntentRequestBuilder) UpdateSettings(reqObj *DeviceManagementIntentUpdateSettingsRequestParameter) *DeviceManagementIntentUpdateSettingsRequestBuilder {
+ bb := &DeviceManagementIntentUpdateSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateSettings"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementIntentUpdateSettingsRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementIntentUpdateSettingsRequestBuilder) Request() *DeviceManagementIntentUpdateSettingsRequest {
+ return &DeviceManagementIntentUpdateSettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementIntentUpdateSettingsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceManagementIntentMigrateToTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// MigrateToTemplate action undocumented
+func (b *DeviceManagementIntentRequestBuilder) MigrateToTemplate(reqObj *DeviceManagementIntentMigrateToTemplateRequestParameter) *DeviceManagementIntentMigrateToTemplateRequestBuilder {
+ bb := &DeviceManagementIntentMigrateToTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/migrateToTemplate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementIntentMigrateToTemplateRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementIntentMigrateToTemplateRequestBuilder) Request() *DeviceManagementIntentMigrateToTemplateRequest {
+ return &DeviceManagementIntentMigrateToTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementIntentMigrateToTemplateRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceManagementIntentAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *DeviceManagementIntentRequestBuilder) Assign(reqObj *DeviceManagementIntentAssignRequestParameter) *DeviceManagementIntentAssignRequestBuilder {
+ bb := &DeviceManagementIntentAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementIntentAssignRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementIntentAssignRequestBuilder) Request() *DeviceManagementIntentAssignRequest {
+ return &DeviceManagementIntentAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementIntentAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentAssignmentModel.go
new file mode 100644
index 00000000..64dc96da
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementIntentAssignment Intent assignment entity
+type DeviceManagementIntentAssignment struct {
+ // Entity is the base model of DeviceManagementIntentAssignment
+ Entity
+ // Target The assignment target
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentAssignmentRequest.go
new file mode 100644
index 00000000..4d323ea3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementIntentAssignmentRequestBuilder is request builder for DeviceManagementIntentAssignment
+type DeviceManagementIntentAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementIntentAssignmentRequest
+func (b *DeviceManagementIntentAssignmentRequestBuilder) Request() *DeviceManagementIntentAssignmentRequest {
+ return &DeviceManagementIntentAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementIntentAssignmentRequest is request for DeviceManagementIntentAssignment
+type DeviceManagementIntentAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementIntentAssignment
+func (r *DeviceManagementIntentAssignmentRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementIntentAssignment
+func (r *DeviceManagementIntentAssignmentRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementIntentAssignment
+func (r *DeviceManagementIntentAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryModel.go
new file mode 100644
index 00000000..b598e24b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementIntentDeviceSettingStateSummary Entity that represents device setting state summary for an intent
+type DeviceManagementIntentDeviceSettingStateSummary struct {
+ // Entity is the base model of DeviceManagementIntentDeviceSettingStateSummary
+ Entity
+ // SettingName Name of a setting
+ SettingName *string `json:"settingName,omitempty"`
+ // CompliantCount Number of compliant devices
+ CompliantCount *int `json:"compliantCount,omitempty"`
+ // ConflictCount Number of devices in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // ErrorCount Number of error devices
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // NonCompliantCount Number of non compliant devices
+ NonCompliantCount *int `json:"nonCompliantCount,omitempty"`
+ // NotApplicableCount Number of not applicable devices
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // RemediatedCount Number of remediated devices
+ RemediatedCount *int `json:"remediatedCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryRequest.go
new file mode 100644
index 00000000..7564570a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceSettingStateSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementIntentDeviceSettingStateSummaryRequestBuilder is request builder for DeviceManagementIntentDeviceSettingStateSummary
+type DeviceManagementIntentDeviceSettingStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementIntentDeviceSettingStateSummaryRequest
+func (b *DeviceManagementIntentDeviceSettingStateSummaryRequestBuilder) Request() *DeviceManagementIntentDeviceSettingStateSummaryRequest {
+ return &DeviceManagementIntentDeviceSettingStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementIntentDeviceSettingStateSummaryRequest is request for DeviceManagementIntentDeviceSettingStateSummary
+type DeviceManagementIntentDeviceSettingStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementIntentDeviceSettingStateSummary
+func (r *DeviceManagementIntentDeviceSettingStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentDeviceSettingStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementIntentDeviceSettingStateSummary
+func (r *DeviceManagementIntentDeviceSettingStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentDeviceSettingStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementIntentDeviceSettingStateSummary
+func (r *DeviceManagementIntentDeviceSettingStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceStateModel.go
new file mode 100644
index 00000000..ce60722f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceStateModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceManagementIntentDeviceState Entity that represents device state for an intent
+type DeviceManagementIntentDeviceState struct {
+ // Entity is the base model of DeviceManagementIntentDeviceState
+ Entity
+ // UserPrincipalName The user principal name that is being reported on a device
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // UserName The user name that is being reported on a device
+ UserName *string `json:"userName,omitempty"`
+ // DeviceDisplayName Device name that is being reported
+ DeviceDisplayName *string `json:"deviceDisplayName,omitempty"`
+ // LastReportedDateTime Last modified date time of an intent report
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // State Device state for an intent
+ State *ComplianceStatus `json:"state,omitempty"`
+ // DeviceID Device id that is being reported
+ DeviceID *string `json:"deviceId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceStateRequest.go
new file mode 100644
index 00000000..3a4897d4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementIntentDeviceStateRequestBuilder is request builder for DeviceManagementIntentDeviceState
+type DeviceManagementIntentDeviceStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementIntentDeviceStateRequest
+func (b *DeviceManagementIntentDeviceStateRequestBuilder) Request() *DeviceManagementIntentDeviceStateRequest {
+ return &DeviceManagementIntentDeviceStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementIntentDeviceStateRequest is request for DeviceManagementIntentDeviceState
+type DeviceManagementIntentDeviceStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementIntentDeviceState
+func (r *DeviceManagementIntentDeviceStateRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentDeviceState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementIntentDeviceState
+func (r *DeviceManagementIntentDeviceStateRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentDeviceState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementIntentDeviceState
+func (r *DeviceManagementIntentDeviceStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryModel.go
new file mode 100644
index 00000000..c504f93f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementIntentDeviceStateSummary Entity that represents device state summary for an intent
+type DeviceManagementIntentDeviceStateSummary struct {
+ // Entity is the base model of DeviceManagementIntentDeviceStateSummary
+ Entity
+ // ConflictCount Number of devices in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // ErrorCount Number of error devices
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // FailedCount Number of failed devices
+ FailedCount *int `json:"failedCount,omitempty"`
+ // NotApplicableCount Number of not applicable devices
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // NotApplicablePlatformCount Number of not applicable devices due to mismatch platform and policy
+ NotApplicablePlatformCount *int `json:"notApplicablePlatformCount,omitempty"`
+ // SuccessCount Number of succeeded devices
+ SuccessCount *int `json:"successCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryRequest.go
new file mode 100644
index 00000000..ce75ca99
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentDeviceStateSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementIntentDeviceStateSummaryRequestBuilder is request builder for DeviceManagementIntentDeviceStateSummary
+type DeviceManagementIntentDeviceStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementIntentDeviceStateSummaryRequest
+func (b *DeviceManagementIntentDeviceStateSummaryRequestBuilder) Request() *DeviceManagementIntentDeviceStateSummaryRequest {
+ return &DeviceManagementIntentDeviceStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementIntentDeviceStateSummaryRequest is request for DeviceManagementIntentDeviceStateSummary
+type DeviceManagementIntentDeviceStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementIntentDeviceStateSummary
+func (r *DeviceManagementIntentDeviceStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentDeviceStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementIntentDeviceStateSummary
+func (r *DeviceManagementIntentDeviceStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentDeviceStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementIntentDeviceStateSummary
+func (r *DeviceManagementIntentDeviceStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentModel.go
new file mode 100644
index 00000000..93361b5f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceManagementIntent Entity that represents an intent to apply settings to a device
+type DeviceManagementIntent struct {
+ // Entity is the base model of DeviceManagementIntent
+ Entity
+ // DisplayName The user given display name
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The user given description
+ Description *string `json:"description,omitempty"`
+ // IsAssigned Signifies whether or not the intent is assigned to users
+ IsAssigned *bool `json:"isAssigned,omitempty"`
+ // LastModifiedDateTime When the intent was last modified
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // TemplateID The ID of the template this intent was created from (if any)
+ TemplateID *string `json:"templateId,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // Settings undocumented
+ Settings []DeviceManagementSettingInstance `json:"settings,omitempty"`
+ // Categories undocumented
+ Categories []DeviceManagementIntentSettingCategory `json:"categories,omitempty"`
+ // Assignments undocumented
+ Assignments []DeviceManagementIntentAssignment `json:"assignments,omitempty"`
+ // DeviceSettingStateSummaries undocumented
+ DeviceSettingStateSummaries []DeviceManagementIntentDeviceSettingStateSummary `json:"deviceSettingStateSummaries,omitempty"`
+ // DeviceStates undocumented
+ DeviceStates []DeviceManagementIntentDeviceState `json:"deviceStates,omitempty"`
+ // UserStates undocumented
+ UserStates []DeviceManagementIntentUserState `json:"userStates,omitempty"`
+ // DeviceStateSummary undocumented
+ DeviceStateSummary *DeviceManagementIntentDeviceStateSummary `json:"deviceStateSummary,omitempty"`
+ // UserStateSummary undocumented
+ UserStateSummary *DeviceManagementIntentUserStateSummary `json:"userStateSummary,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentRequest.go
new file mode 100644
index 00000000..42ef1a58
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentRequest.go
@@ -0,0 +1,623 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceManagementIntentRequestBuilder is request builder for DeviceManagementIntent
+type DeviceManagementIntentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementIntentRequest
+func (b *DeviceManagementIntentRequestBuilder) Request() *DeviceManagementIntentRequest {
+ return &DeviceManagementIntentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementIntentRequest is request for DeviceManagementIntent
+type DeviceManagementIntentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementIntent
+func (r *DeviceManagementIntentRequest) Get(ctx context.Context) (resObj *DeviceManagementIntent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementIntent
+func (r *DeviceManagementIntentRequest) Update(ctx context.Context, reqObj *DeviceManagementIntent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementIntent
+func (r *DeviceManagementIntentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for DeviceManagementIntentAssignment collection
+func (b *DeviceManagementIntentRequestBuilder) Assignments() *DeviceManagementIntentAssignmentsCollectionRequestBuilder {
+ bb := &DeviceManagementIntentAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// DeviceManagementIntentAssignmentsCollectionRequestBuilder is request builder for DeviceManagementIntentAssignment collection
+type DeviceManagementIntentAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementIntentAssignment collection
+func (b *DeviceManagementIntentAssignmentsCollectionRequestBuilder) Request() *DeviceManagementIntentAssignmentsCollectionRequest {
+ return &DeviceManagementIntentAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementIntentAssignment item
+func (b *DeviceManagementIntentAssignmentsCollectionRequestBuilder) ID(id string) *DeviceManagementIntentAssignmentRequestBuilder {
+ bb := &DeviceManagementIntentAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntentAssignmentsCollectionRequest is request for DeviceManagementIntentAssignment collection
+type DeviceManagementIntentAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementIntentAssignment collection
+func (r *DeviceManagementIntentAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementIntentAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementIntentAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementIntentAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementIntentAssignment collection
+func (r *DeviceManagementIntentAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementIntentAssignment collection
+func (r *DeviceManagementIntentAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntentAssignment) (resObj *DeviceManagementIntentAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Categories returns request builder for DeviceManagementIntentSettingCategory collection
+func (b *DeviceManagementIntentRequestBuilder) Categories() *DeviceManagementIntentCategoriesCollectionRequestBuilder {
+ bb := &DeviceManagementIntentCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/categories"
+ return bb
+}
+
+// DeviceManagementIntentCategoriesCollectionRequestBuilder is request builder for DeviceManagementIntentSettingCategory collection
+type DeviceManagementIntentCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementIntentSettingCategory collection
+func (b *DeviceManagementIntentCategoriesCollectionRequestBuilder) Request() *DeviceManagementIntentCategoriesCollectionRequest {
+ return &DeviceManagementIntentCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementIntentSettingCategory item
+func (b *DeviceManagementIntentCategoriesCollectionRequestBuilder) ID(id string) *DeviceManagementIntentSettingCategoryRequestBuilder {
+ bb := &DeviceManagementIntentSettingCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntentCategoriesCollectionRequest is request for DeviceManagementIntentSettingCategory collection
+type DeviceManagementIntentCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementIntentSettingCategory collection
+func (r *DeviceManagementIntentCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementIntentSettingCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementIntentSettingCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementIntentSettingCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementIntentSettingCategory collection
+func (r *DeviceManagementIntentCategoriesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentSettingCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementIntentSettingCategory collection
+func (r *DeviceManagementIntentCategoriesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntentSettingCategory) (resObj *DeviceManagementIntentSettingCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceSettingStateSummaries returns request builder for DeviceManagementIntentDeviceSettingStateSummary collection
+func (b *DeviceManagementIntentRequestBuilder) DeviceSettingStateSummaries() *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder {
+ bb := &DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceSettingStateSummaries"
+ return bb
+}
+
+// DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder is request builder for DeviceManagementIntentDeviceSettingStateSummary collection
+type DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementIntentDeviceSettingStateSummary collection
+func (b *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder) Request() *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest {
+ return &DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementIntentDeviceSettingStateSummary item
+func (b *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder) ID(id string) *DeviceManagementIntentDeviceSettingStateSummaryRequestBuilder {
+ bb := &DeviceManagementIntentDeviceSettingStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest is request for DeviceManagementIntentDeviceSettingStateSummary collection
+type DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementIntentDeviceSettingStateSummary collection
+func (r *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementIntentDeviceSettingStateSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementIntentDeviceSettingStateSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementIntentDeviceSettingStateSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementIntentDeviceSettingStateSummary collection
+func (r *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentDeviceSettingStateSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementIntentDeviceSettingStateSummary collection
+func (r *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntentDeviceSettingStateSummary) (resObj *DeviceManagementIntentDeviceSettingStateSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStateSummary is navigation property
+func (b *DeviceManagementIntentRequestBuilder) DeviceStateSummary() *DeviceManagementIntentDeviceStateSummaryRequestBuilder {
+ bb := &DeviceManagementIntentDeviceStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStateSummary"
+ return bb
+}
+
+// DeviceStates returns request builder for DeviceManagementIntentDeviceState collection
+func (b *DeviceManagementIntentRequestBuilder) DeviceStates() *DeviceManagementIntentDeviceStatesCollectionRequestBuilder {
+ bb := &DeviceManagementIntentDeviceStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStates"
+ return bb
+}
+
+// DeviceManagementIntentDeviceStatesCollectionRequestBuilder is request builder for DeviceManagementIntentDeviceState collection
+type DeviceManagementIntentDeviceStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementIntentDeviceState collection
+func (b *DeviceManagementIntentDeviceStatesCollectionRequestBuilder) Request() *DeviceManagementIntentDeviceStatesCollectionRequest {
+ return &DeviceManagementIntentDeviceStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementIntentDeviceState item
+func (b *DeviceManagementIntentDeviceStatesCollectionRequestBuilder) ID(id string) *DeviceManagementIntentDeviceStateRequestBuilder {
+ bb := &DeviceManagementIntentDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntentDeviceStatesCollectionRequest is request for DeviceManagementIntentDeviceState collection
+type DeviceManagementIntentDeviceStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementIntentDeviceState collection
+func (r *DeviceManagementIntentDeviceStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementIntentDeviceState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementIntentDeviceState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementIntentDeviceState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementIntentDeviceState collection
+func (r *DeviceManagementIntentDeviceStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementIntentDeviceState collection
+func (r *DeviceManagementIntentDeviceStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntentDeviceState) (resObj *DeviceManagementIntentDeviceState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Settings returns request builder for DeviceManagementSettingInstance collection
+func (b *DeviceManagementIntentRequestBuilder) Settings() *DeviceManagementIntentSettingsCollectionRequestBuilder {
+ bb := &DeviceManagementIntentSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settings"
+ return bb
+}
+
+// DeviceManagementIntentSettingsCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection
+type DeviceManagementIntentSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingInstance collection
+func (b *DeviceManagementIntentSettingsCollectionRequestBuilder) Request() *DeviceManagementIntentSettingsCollectionRequest {
+ return &DeviceManagementIntentSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingInstance item
+func (b *DeviceManagementIntentSettingsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder {
+ bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntentSettingsCollectionRequest is request for DeviceManagementSettingInstance collection
+type DeviceManagementIntentSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingInstance collection
+func (r *DeviceManagementIntentSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementSettingInstance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingInstance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingInstance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementIntentSettingsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementIntentSettingsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserStateSummary is navigation property
+func (b *DeviceManagementIntentRequestBuilder) UserStateSummary() *DeviceManagementIntentUserStateSummaryRequestBuilder {
+ bb := &DeviceManagementIntentUserStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStateSummary"
+ return bb
+}
+
+// UserStates returns request builder for DeviceManagementIntentUserState collection
+func (b *DeviceManagementIntentRequestBuilder) UserStates() *DeviceManagementIntentUserStatesCollectionRequestBuilder {
+ bb := &DeviceManagementIntentUserStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStates"
+ return bb
+}
+
+// DeviceManagementIntentUserStatesCollectionRequestBuilder is request builder for DeviceManagementIntentUserState collection
+type DeviceManagementIntentUserStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementIntentUserState collection
+func (b *DeviceManagementIntentUserStatesCollectionRequestBuilder) Request() *DeviceManagementIntentUserStatesCollectionRequest {
+ return &DeviceManagementIntentUserStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementIntentUserState item
+func (b *DeviceManagementIntentUserStatesCollectionRequestBuilder) ID(id string) *DeviceManagementIntentUserStateRequestBuilder {
+ bb := &DeviceManagementIntentUserStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntentUserStatesCollectionRequest is request for DeviceManagementIntentUserState collection
+type DeviceManagementIntentUserStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementIntentUserState collection
+func (r *DeviceManagementIntentUserStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementIntentUserState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementIntentUserState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementIntentUserState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementIntentUserState collection
+func (r *DeviceManagementIntentUserStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentUserState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementIntentUserState collection
+func (r *DeviceManagementIntentUserStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntentUserState) (resObj *DeviceManagementIntentUserState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentSettingCategoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentSettingCategoryModel.go
new file mode 100644
index 00000000..acbc4a5a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentSettingCategoryModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementIntentSettingCategory Entity representing an intent setting category
+type DeviceManagementIntentSettingCategory struct {
+ // DeviceManagementSettingCategory is the base model of DeviceManagementIntentSettingCategory
+ DeviceManagementSettingCategory
+ // Settings undocumented
+ Settings []DeviceManagementSettingInstance `json:"settings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentSettingCategoryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentSettingCategoryRequest.go
new file mode 100644
index 00000000..b26cad1a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentSettingCategoryRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceManagementIntentSettingCategoryRequestBuilder is request builder for DeviceManagementIntentSettingCategory
+type DeviceManagementIntentSettingCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementIntentSettingCategoryRequest
+func (b *DeviceManagementIntentSettingCategoryRequestBuilder) Request() *DeviceManagementIntentSettingCategoryRequest {
+ return &DeviceManagementIntentSettingCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementIntentSettingCategoryRequest is request for DeviceManagementIntentSettingCategory
+type DeviceManagementIntentSettingCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementIntentSettingCategory
+func (r *DeviceManagementIntentSettingCategoryRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentSettingCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementIntentSettingCategory
+func (r *DeviceManagementIntentSettingCategoryRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentSettingCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementIntentSettingCategory
+func (r *DeviceManagementIntentSettingCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Settings returns request builder for DeviceManagementSettingInstance collection
+func (b *DeviceManagementIntentSettingCategoryRequestBuilder) Settings() *DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder {
+ bb := &DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settings"
+ return bb
+}
+
+// DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection
+type DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingInstance collection
+func (b *DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder) Request() *DeviceManagementIntentSettingCategorySettingsCollectionRequest {
+ return &DeviceManagementIntentSettingCategorySettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingInstance item
+func (b *DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder {
+ bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntentSettingCategorySettingsCollectionRequest is request for DeviceManagementSettingInstance collection
+type DeviceManagementIntentSettingCategorySettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingInstance collection
+func (r *DeviceManagementIntentSettingCategorySettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementSettingInstance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingInstance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingInstance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementIntentSettingCategorySettingsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementIntentSettingCategorySettingsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentUserStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentUserStateModel.go
new file mode 100644
index 00000000..6aa7b773
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentUserStateModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceManagementIntentUserState Entity that represents user state for an intent
+type DeviceManagementIntentUserState struct {
+ // Entity is the base model of DeviceManagementIntentUserState
+ Entity
+ // UserPrincipalName The user principal name that is being reported on a device
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // UserName The user name that is being reported on a device
+ UserName *string `json:"userName,omitempty"`
+ // DeviceCount Count of Devices that belongs to a user for an intent
+ DeviceCount *int `json:"deviceCount,omitempty"`
+ // LastReportedDateTime Last modified date time of an intent report
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // State User state for an intent
+ State *ComplianceStatus `json:"state,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentUserStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentUserStateRequest.go
new file mode 100644
index 00000000..8897c7c6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentUserStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementIntentUserStateRequestBuilder is request builder for DeviceManagementIntentUserState
+type DeviceManagementIntentUserStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementIntentUserStateRequest
+func (b *DeviceManagementIntentUserStateRequestBuilder) Request() *DeviceManagementIntentUserStateRequest {
+ return &DeviceManagementIntentUserStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementIntentUserStateRequest is request for DeviceManagementIntentUserState
+type DeviceManagementIntentUserStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementIntentUserState
+func (r *DeviceManagementIntentUserStateRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentUserState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementIntentUserState
+func (r *DeviceManagementIntentUserStateRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentUserState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementIntentUserState
+func (r *DeviceManagementIntentUserStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentUserStateSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentUserStateSummaryModel.go
new file mode 100644
index 00000000..c0197aca
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentUserStateSummaryModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementIntentUserStateSummary Entity that represents user state summary for an intent
+type DeviceManagementIntentUserStateSummary struct {
+ // Entity is the base model of DeviceManagementIntentUserStateSummary
+ Entity
+ // ConflictCount Number of users in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // ErrorCount Number of error users
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // FailedCount Number of failed users
+ FailedCount *int `json:"failedCount,omitempty"`
+ // NotApplicableCount Number of not applicable users
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // SuccessCount Number of succeeded users
+ SuccessCount *int `json:"successCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentUserStateSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentUserStateSummaryRequest.go
new file mode 100644
index 00000000..bfaa90b8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementIntentUserStateSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementIntentUserStateSummaryRequestBuilder is request builder for DeviceManagementIntentUserStateSummary
+type DeviceManagementIntentUserStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementIntentUserStateSummaryRequest
+func (b *DeviceManagementIntentUserStateSummaryRequestBuilder) Request() *DeviceManagementIntentUserStateSummaryRequest {
+ return &DeviceManagementIntentUserStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementIntentUserStateSummaryRequest is request for DeviceManagementIntentUserStateSummary
+type DeviceManagementIntentUserStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementIntentUserStateSummary
+func (r *DeviceManagementIntentUserStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentUserStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementIntentUserStateSummary
+func (r *DeviceManagementIntentUserStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentUserStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementIntentUserStateSummary
+func (r *DeviceManagementIntentUserStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementModel.go
new file mode 100644
index 00000000..0d303c16
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementModel.go
@@ -0,0 +1,207 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceManagement Singleton that acts as container for a collection of UserPFXCertificate entities.
+type DeviceManagement struct {
+ // Entity is the base model of DeviceManagement
+ Entity
+ // Settings Account level settings.
+ Settings *DeviceManagementSettings `json:"settings,omitempty"`
+ // MaximumDepTokens Maximum number of dep tokens allowed per-tenant.
+ MaximumDepTokens *int `json:"maximumDepTokens,omitempty"`
+ // IntuneAccountID Intune Account Id for given tenant
+ IntuneAccountID *UUID `json:"intuneAccountId,omitempty"`
+ // LastReportAggregationDateTime The last modified time of reporting for this account. This property is read-only.
+ LastReportAggregationDateTime *time.Time `json:"lastReportAggregationDateTime,omitempty"`
+ // DeviceComplianceReportSummarizationDateTime The last requested time of device compliance reporting for this account. This property is read-only.
+ DeviceComplianceReportSummarizationDateTime *time.Time `json:"deviceComplianceReportSummarizationDateTime,omitempty"`
+ // LegacyPcManangementEnabled The property to enable Non-MDM managed legacy PC management for this account. This property is read-only.
+ LegacyPcManangementEnabled *bool `json:"legacyPcManangementEnabled,omitempty"`
+ // IntuneBrand intuneBrand contains data which is used in customizing the appearance of the Company Portal applications as well as the end user web portal.
+ IntuneBrand *IntuneBrand `json:"intuneBrand,omitempty"`
+ // SubscriptionState Tenant mobile device management subscription state.
+ SubscriptionState *DeviceManagementSubscriptionState `json:"subscriptionState,omitempty"`
+ // Subscriptions Tenant's Subscription.
+ Subscriptions *DeviceManagementSubscriptions `json:"subscriptions,omitempty"`
+ // ManagedDeviceCleanupSettings Device cleanup rule
+ ManagedDeviceCleanupSettings *ManagedDeviceCleanupSettings `json:"managedDeviceCleanupSettings,omitempty"`
+ // AdminConsent Admin consent information.
+ AdminConsent *AdminConsent `json:"adminConsent,omitempty"`
+ // DeviceProtectionOverview Device protection overview.
+ DeviceProtectionOverview *DeviceProtectionOverview `json:"deviceProtectionOverview,omitempty"`
+ // WindowsMalwareOverview Malware overview for windows devices.
+ WindowsMalwareOverview *WindowsMalwareOverview `json:"windowsMalwareOverview,omitempty"`
+ // AccountMoveCompletionDateTime The date & time when tenant data moved between scaleunits.
+ AccountMoveCompletionDateTime *time.Time `json:"accountMoveCompletionDateTime,omitempty"`
+ // GroupPolicyObjectFiles A list of Group Policy Object files uploaded.
+ GroupPolicyObjectFiles []GroupPolicyObjectFile `json:"groupPolicyObjectFiles,omitempty"`
+ // AuditEvents undocumented
+ AuditEvents []AuditEvent `json:"auditEvents,omitempty"`
+ // AndroidForWorkSettings undocumented
+ AndroidForWorkSettings *AndroidForWorkSettings `json:"androidForWorkSettings,omitempty"`
+ // AndroidForWorkAppConfigurationSchemas undocumented
+ AndroidForWorkAppConfigurationSchemas []AndroidForWorkAppConfigurationSchema `json:"androidForWorkAppConfigurationSchemas,omitempty"`
+ // AndroidForWorkEnrollmentProfiles undocumented
+ AndroidForWorkEnrollmentProfiles []AndroidForWorkEnrollmentProfile `json:"androidForWorkEnrollmentProfiles,omitempty"`
+ // AndroidManagedStoreAccountEnterpriseSettings undocumented
+ AndroidManagedStoreAccountEnterpriseSettings *AndroidManagedStoreAccountEnterpriseSettings `json:"androidManagedStoreAccountEnterpriseSettings,omitempty"`
+ // AndroidManagedStoreAppConfigurationSchemas undocumented
+ AndroidManagedStoreAppConfigurationSchemas []AndroidManagedStoreAppConfigurationSchema `json:"androidManagedStoreAppConfigurationSchemas,omitempty"`
+ // AndroidDeviceOwnerEnrollmentProfiles undocumented
+ AndroidDeviceOwnerEnrollmentProfiles []AndroidDeviceOwnerEnrollmentProfile `json:"androidDeviceOwnerEnrollmentProfiles,omitempty"`
+ // TermsAndConditions undocumented
+ TermsAndConditions []TermsAndConditions `json:"termsAndConditions,omitempty"`
+ // DeviceConfigurations undocumented
+ DeviceConfigurations []DeviceConfiguration `json:"deviceConfigurations,omitempty"`
+ // DeviceCompliancePolicies undocumented
+ DeviceCompliancePolicies []DeviceCompliancePolicy `json:"deviceCompliancePolicies,omitempty"`
+ // SoftwareUpdateStatusSummary undocumented
+ SoftwareUpdateStatusSummary *SoftwareUpdateStatusSummary `json:"softwareUpdateStatusSummary,omitempty"`
+ // DeviceCompliancePolicyDeviceStateSummary undocumented
+ DeviceCompliancePolicyDeviceStateSummary *DeviceCompliancePolicyDeviceStateSummary `json:"deviceCompliancePolicyDeviceStateSummary,omitempty"`
+ // DeviceCompliancePolicySettingStateSummaries undocumented
+ DeviceCompliancePolicySettingStateSummaries []DeviceCompliancePolicySettingStateSummary `json:"deviceCompliancePolicySettingStateSummaries,omitempty"`
+ // AdvancedThreatProtectionOnboardingStateSummary undocumented
+ AdvancedThreatProtectionOnboardingStateSummary *AdvancedThreatProtectionOnboardingStateSummary `json:"advancedThreatProtectionOnboardingStateSummary,omitempty"`
+ // DeviceConfigurationDeviceStateSummaries undocumented
+ DeviceConfigurationDeviceStateSummaries *DeviceConfigurationDeviceStateSummary `json:"deviceConfigurationDeviceStateSummaries,omitempty"`
+ // DeviceConfigurationUserStateSummaries undocumented
+ DeviceConfigurationUserStateSummaries *DeviceConfigurationUserStateSummary `json:"deviceConfigurationUserStateSummaries,omitempty"`
+ // CartToClassAssociations undocumented
+ CartToClassAssociations []CartToClassAssociation `json:"cartToClassAssociations,omitempty"`
+ // IOSUpdateStatuses undocumented
+ IOSUpdateStatuses []IOSUpdateDeviceStatus `json:"iosUpdateStatuses,omitempty"`
+ // NdesConnectors undocumented
+ NdesConnectors []NdesConnector `json:"ndesConnectors,omitempty"`
+ // DeviceConfigurationRestrictedAppsViolations undocumented
+ DeviceConfigurationRestrictedAppsViolations []RestrictedAppsViolation `json:"deviceConfigurationRestrictedAppsViolations,omitempty"`
+ // ManagedDeviceEncryptionStates undocumented
+ ManagedDeviceEncryptionStates []ManagedDeviceEncryptionState `json:"managedDeviceEncryptionStates,omitempty"`
+ // DeviceConfigurationConflictSummary undocumented
+ DeviceConfigurationConflictSummary []DeviceConfigurationConflictSummary `json:"deviceConfigurationConflictSummary,omitempty"`
+ // DeviceConfigurationsAllManagedDeviceCertificateStates undocumented
+ DeviceConfigurationsAllManagedDeviceCertificateStates []ManagedAllDeviceCertificateState `json:"deviceConfigurationsAllManagedDeviceCertificateStates,omitempty"`
+ // DeviceCategories undocumented
+ DeviceCategories []DeviceCategory `json:"deviceCategories,omitempty"`
+ // ExchangeConnectors undocumented
+ ExchangeConnectors []DeviceManagementExchangeConnector `json:"exchangeConnectors,omitempty"`
+ // DeviceEnrollmentConfigurations undocumented
+ DeviceEnrollmentConfigurations []DeviceEnrollmentConfiguration `json:"deviceEnrollmentConfigurations,omitempty"`
+ // ExchangeOnPremisesPolicy undocumented
+ ExchangeOnPremisesPolicy *DeviceManagementExchangeOnPremisesPolicy `json:"exchangeOnPremisesPolicy,omitempty"`
+ // ExchangeOnPremisesPolicies undocumented
+ ExchangeOnPremisesPolicies []DeviceManagementExchangeOnPremisesPolicy `json:"exchangeOnPremisesPolicies,omitempty"`
+ // ConditionalAccessSettings undocumented
+ ConditionalAccessSettings *OnPremisesConditionalAccessSettings `json:"conditionalAccessSettings,omitempty"`
+ // MobileThreatDefenseConnectors undocumented
+ MobileThreatDefenseConnectors []MobileThreatDefenseConnector `json:"mobileThreatDefenseConnectors,omitempty"`
+ // DeviceManagementPartners undocumented
+ DeviceManagementPartners []DeviceManagementPartner `json:"deviceManagementPartners,omitempty"`
+ // ComplianceManagementPartners undocumented
+ ComplianceManagementPartners []ComplianceManagementPartner `json:"complianceManagementPartners,omitempty"`
+ // Intents undocumented
+ Intents []DeviceManagementIntent `json:"intents,omitempty"`
+ // SettingDefinitions undocumented
+ SettingDefinitions []DeviceManagementSettingDefinition `json:"settingDefinitions,omitempty"`
+ // Templates undocumented
+ Templates []DeviceManagementTemplate `json:"templates,omitempty"`
+ // Categories undocumented
+ Categories []DeviceManagementSettingCategory `json:"categories,omitempty"`
+ // RemoteActionAudits undocumented
+ RemoteActionAudits []RemoteActionAudit `json:"remoteActionAudits,omitempty"`
+ // ApplePushNotificationCertificate undocumented
+ ApplePushNotificationCertificate *ApplePushNotificationCertificate `json:"applePushNotificationCertificate,omitempty"`
+ // DeviceManagementScripts undocumented
+ DeviceManagementScripts []DeviceManagementScript `json:"deviceManagementScripts,omitempty"`
+ // DeviceHealthScripts undocumented
+ DeviceHealthScripts []DeviceHealthScript `json:"deviceHealthScripts,omitempty"`
+ // ManagedDeviceOverview undocumented
+ ManagedDeviceOverview *ManagedDeviceOverview `json:"managedDeviceOverview,omitempty"`
+ // DetectedApps undocumented
+ DetectedApps []DetectedApp `json:"detectedApps,omitempty"`
+ // ManagedDevices undocumented
+ ManagedDevices []ManagedDevice `json:"managedDevices,omitempty"`
+ // WindowsMalwareInformation undocumented
+ WindowsMalwareInformation []WindowsMalwareInformation `json:"windowsMalwareInformation,omitempty"`
+ // DataSharingConsents undocumented
+ DataSharingConsents []DataSharingConsent `json:"dataSharingConsents,omitempty"`
+ // MobileAppTroubleshootingEvents undocumented
+ MobileAppTroubleshootingEvents []MobileAppTroubleshootingEvent `json:"mobileAppTroubleshootingEvents,omitempty"`
+ // UserExperienceAnalyticsOverview undocumented
+ UserExperienceAnalyticsOverview *UserExperienceAnalyticsOverview `json:"userExperienceAnalyticsOverview,omitempty"`
+ // UserExperienceAnalyticsBaselines undocumented
+ UserExperienceAnalyticsBaselines []UserExperienceAnalyticsBaseline `json:"userExperienceAnalyticsBaselines,omitempty"`
+ // UserExperienceAnalyticsCategories undocumented
+ UserExperienceAnalyticsCategories []UserExperienceAnalyticsCategory `json:"userExperienceAnalyticsCategories,omitempty"`
+ // UserExperienceAnalyticsDevicePerformance undocumented
+ UserExperienceAnalyticsDevicePerformance []UserExperienceAnalyticsDevicePerformance `json:"userExperienceAnalyticsDevicePerformance,omitempty"`
+ // UserExperienceAnalyticsRegressionSummary undocumented
+ UserExperienceAnalyticsRegressionSummary *UserExperienceAnalyticsRegressionSummary `json:"userExperienceAnalyticsRegressionSummary,omitempty"`
+ // UserExperienceAnalyticsDeviceStartupHistory undocumented
+ UserExperienceAnalyticsDeviceStartupHistory []UserExperienceAnalyticsDeviceStartupHistory `json:"userExperienceAnalyticsDeviceStartupHistory,omitempty"`
+ // DerivedCredentials undocumented
+ DerivedCredentials []DeviceManagementDerivedCredentialSettings `json:"derivedCredentials,omitempty"`
+ // WindowsAutopilotSettings undocumented
+ WindowsAutopilotSettings *WindowsAutopilotSettings `json:"windowsAutopilotSettings,omitempty"`
+ // WindowsAutopilotDeviceIdentities undocumented
+ WindowsAutopilotDeviceIdentities []WindowsAutopilotDeviceIdentity `json:"windowsAutopilotDeviceIdentities,omitempty"`
+ // WindowsAutopilotDeploymentProfiles undocumented
+ WindowsAutopilotDeploymentProfiles []WindowsAutopilotDeploymentProfile `json:"windowsAutopilotDeploymentProfiles,omitempty"`
+ // ImportedDeviceIdentities undocumented
+ ImportedDeviceIdentities []ImportedDeviceIdentity `json:"importedDeviceIdentities,omitempty"`
+ // DepOnboardingSettings undocumented
+ DepOnboardingSettings []DepOnboardingSetting `json:"depOnboardingSettings,omitempty"`
+ // ImportedWindowsAutopilotDeviceIdentities undocumented
+ ImportedWindowsAutopilotDeviceIdentities []ImportedWindowsAutopilotDeviceIdentity `json:"importedWindowsAutopilotDeviceIdentities,omitempty"`
+ // AppleUserInitiatedEnrollmentProfiles undocumented
+ AppleUserInitiatedEnrollmentProfiles []AppleUserInitiatedEnrollmentProfile `json:"appleUserInitiatedEnrollmentProfiles,omitempty"`
+ // ManagementConditions undocumented
+ ManagementConditions []ManagementCondition `json:"managementConditions,omitempty"`
+ // ManagementConditionStatements undocumented
+ ManagementConditionStatements []ManagementConditionStatement `json:"managementConditionStatements,omitempty"`
+ // GroupPolicyMigrationReports undocumented
+ GroupPolicyMigrationReports []GroupPolicyMigrationReport `json:"groupPolicyMigrationReports,omitempty"`
+ // GroupPolicyConfigurations undocumented
+ GroupPolicyConfigurations []GroupPolicyConfiguration `json:"groupPolicyConfigurations,omitempty"`
+ // GroupPolicyDefinitions undocumented
+ GroupPolicyDefinitions []GroupPolicyDefinition `json:"groupPolicyDefinitions,omitempty"`
+ // GroupPolicyDefinitionFiles undocumented
+ GroupPolicyDefinitionFiles []GroupPolicyDefinitionFile `json:"groupPolicyDefinitionFiles,omitempty"`
+ // NotificationMessageTemplates undocumented
+ NotificationMessageTemplates []NotificationMessageTemplate `json:"notificationMessageTemplates,omitempty"`
+ // DomainJoinConnectors undocumented
+ DomainJoinConnectors []DeviceManagementDomainJoinConnector `json:"domainJoinConnectors,omitempty"`
+ // RoleDefinitions undocumented
+ RoleDefinitions []RoleDefinition `json:"roleDefinitions,omitempty"`
+ // RoleAssignments undocumented
+ RoleAssignments []DeviceAndAppManagementRoleAssignment `json:"roleAssignments,omitempty"`
+ // RoleScopeTags undocumented
+ RoleScopeTags []RoleScopeTag `json:"roleScopeTags,omitempty"`
+ // ResourceOperations undocumented
+ ResourceOperations []ResourceOperation `json:"resourceOperations,omitempty"`
+ // RemoteAssistancePartners undocumented
+ RemoteAssistancePartners []RemoteAssistancePartner `json:"remoteAssistancePartners,omitempty"`
+ // Reports undocumented
+ Reports *DeviceManagementReports `json:"reports,omitempty"`
+ // TelecomExpenseManagementPartners undocumented
+ TelecomExpenseManagementPartners []TelecomExpenseManagementPartner `json:"telecomExpenseManagementPartners,omitempty"`
+ // EmbeddedSIMActivationCodePools undocumented
+ EmbeddedSIMActivationCodePools []EmbeddedSIMActivationCodePool `json:"embeddedSIMActivationCodePools,omitempty"`
+ // TroubleshootingEvents undocumented
+ TroubleshootingEvents []DeviceManagementTroubleshootingEvent `json:"troubleshootingEvents,omitempty"`
+ // AutopilotEvents undocumented
+ AutopilotEvents []DeviceManagementAutopilotEvent `json:"autopilotEvents,omitempty"`
+ // WindowsFeatureUpdateProfiles undocumented
+ WindowsFeatureUpdateProfiles []WindowsFeatureUpdateProfile `json:"windowsFeatureUpdateProfiles,omitempty"`
+ // WindowsInformationProtectionAppLearningSummaries undocumented
+ WindowsInformationProtectionAppLearningSummaries []WindowsInformationProtectionAppLearningSummary `json:"windowsInformationProtectionAppLearningSummaries,omitempty"`
+ // WindowsInformationProtectionNetworkLearningSummaries undocumented
+ WindowsInformationProtectionNetworkLearningSummaries []WindowsInformationProtectionNetworkLearningSummary `json:"windowsInformationProtectionNetworkLearningSummaries,omitempty"`
+ // IntuneBrandingProfiles undocumented
+ IntuneBrandingProfiles []IntuneBrandingProfile `json:"intuneBrandingProfiles,omitempty"`
+ // UserPfxCertificates undocumented
+ UserPfxCertificates []UserPFXCertificate `json:"userPfxCertificates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementPartnerAppTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementPartnerAppTypeEnum.go
new file mode 100644
index 00000000..5dfbca1e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementPartnerAppTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementPartnerAppType undocumented
+type DeviceManagementPartnerAppType int
+
+const (
+ // DeviceManagementPartnerAppTypeVUnknown undocumented
+ DeviceManagementPartnerAppTypeVUnknown DeviceManagementPartnerAppType = 0
+ // DeviceManagementPartnerAppTypeVSingleTenantApp undocumented
+ DeviceManagementPartnerAppTypeVSingleTenantApp DeviceManagementPartnerAppType = 1
+ // DeviceManagementPartnerAppTypeVMultiTenantApp undocumented
+ DeviceManagementPartnerAppTypeVMultiTenantApp DeviceManagementPartnerAppType = 2
+)
+
+// DeviceManagementPartnerAppTypePUnknown returns a pointer to DeviceManagementPartnerAppTypeVUnknown
+func DeviceManagementPartnerAppTypePUnknown() *DeviceManagementPartnerAppType {
+ v := DeviceManagementPartnerAppTypeVUnknown
+ return &v
+}
+
+// DeviceManagementPartnerAppTypePSingleTenantApp returns a pointer to DeviceManagementPartnerAppTypeVSingleTenantApp
+func DeviceManagementPartnerAppTypePSingleTenantApp() *DeviceManagementPartnerAppType {
+ v := DeviceManagementPartnerAppTypeVSingleTenantApp
+ return &v
+}
+
+// DeviceManagementPartnerAppTypePMultiTenantApp returns a pointer to DeviceManagementPartnerAppTypeVMultiTenantApp
+func DeviceManagementPartnerAppTypePMultiTenantApp() *DeviceManagementPartnerAppType {
+ v := DeviceManagementPartnerAppTypeVMultiTenantApp
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementPartnerAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementPartnerAssignmentModel.go
new file mode 100644
index 00000000..073fe3e3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementPartnerAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementPartnerAssignment undocumented
+type DeviceManagementPartnerAssignment struct {
+ // Object is the base model of DeviceManagementPartnerAssignment
+ Object
+ // Target User groups targeting for devices to be enrolled through partner.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementPartnerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementPartnerModel.go
new file mode 100644
index 00000000..aebca190
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementPartnerModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceManagementPartner Entity which represents a connection to device management partner.
+type DeviceManagementPartner struct {
+ // Entity is the base model of DeviceManagementPartner
+ Entity
+ // LastHeartbeatDateTime Timestamp of last heartbeat after admin enabled option Connect to Device management Partner
+ LastHeartbeatDateTime *time.Time `json:"lastHeartbeatDateTime,omitempty"`
+ // PartnerState Partner state of this tenant
+ PartnerState *DeviceManagementPartnerTenantState `json:"partnerState,omitempty"`
+ // PartnerAppType Partner App type
+ PartnerAppType *DeviceManagementPartnerAppType `json:"partnerAppType,omitempty"`
+ // SingleTenantAppID Partner Single tenant App id
+ SingleTenantAppID *string `json:"singleTenantAppId,omitempty"`
+ // DisplayName Partner display name
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsConfigured Whether device management partner is configured or not
+ IsConfigured *bool `json:"isConfigured,omitempty"`
+ // WhenPartnerDevicesWillBeRemoved DateTime in UTC when PartnerDevices will be removed. This will become obselete soon.
+ WhenPartnerDevicesWillBeRemoved *time.Time `json:"whenPartnerDevicesWillBeRemoved,omitempty"`
+ // WhenPartnerDevicesWillBeMarkedAsNonCompliant DateTime in UTC when PartnerDevices will be marked as NonCompliant. This will become obselete soon.
+ WhenPartnerDevicesWillBeMarkedAsNonCompliant *time.Time `json:"whenPartnerDevicesWillBeMarkedAsNonCompliant,omitempty"`
+ // WhenPartnerDevicesWillBeRemovedDateTime DateTime in UTC when PartnerDevices will be removed
+ WhenPartnerDevicesWillBeRemovedDateTime *time.Time `json:"whenPartnerDevicesWillBeRemovedDateTime,omitempty"`
+ // WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime DateTime in UTC when PartnerDevices will be marked as NonCompliant
+ WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime *time.Time `json:"whenPartnerDevicesWillBeMarkedAsNonCompliantDateTime,omitempty"`
+ // GroupsRequiringPartnerEnrollment User groups that specifies whether enrollment is through partner.
+ GroupsRequiringPartnerEnrollment []DeviceManagementPartnerAssignment `json:"groupsRequiringPartnerEnrollment,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementPartnerRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementPartnerRequest.go
new file mode 100644
index 00000000..250a0a4d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementPartnerRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementPartnerRequestBuilder is request builder for DeviceManagementPartner
+type DeviceManagementPartnerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementPartnerRequest
+func (b *DeviceManagementPartnerRequestBuilder) Request() *DeviceManagementPartnerRequest {
+ return &DeviceManagementPartnerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementPartnerRequest is request for DeviceManagementPartner
+type DeviceManagementPartnerRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementPartner
+func (r *DeviceManagementPartnerRequest) Get(ctx context.Context) (resObj *DeviceManagementPartner, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementPartner
+func (r *DeviceManagementPartnerRequest) Update(ctx context.Context, reqObj *DeviceManagementPartner) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementPartner
+func (r *DeviceManagementPartnerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementPartnerTenantStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementPartnerTenantStateEnum.go
new file mode 100644
index 00000000..7cb98786
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementPartnerTenantStateEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementPartnerTenantState undocumented
+type DeviceManagementPartnerTenantState int
+
+const (
+ // DeviceManagementPartnerTenantStateVUnknown undocumented
+ DeviceManagementPartnerTenantStateVUnknown DeviceManagementPartnerTenantState = 0
+ // DeviceManagementPartnerTenantStateVUnavailable undocumented
+ DeviceManagementPartnerTenantStateVUnavailable DeviceManagementPartnerTenantState = 1
+ // DeviceManagementPartnerTenantStateVEnabled undocumented
+ DeviceManagementPartnerTenantStateVEnabled DeviceManagementPartnerTenantState = 2
+ // DeviceManagementPartnerTenantStateVTerminated undocumented
+ DeviceManagementPartnerTenantStateVTerminated DeviceManagementPartnerTenantState = 3
+ // DeviceManagementPartnerTenantStateVRejected undocumented
+ DeviceManagementPartnerTenantStateVRejected DeviceManagementPartnerTenantState = 4
+ // DeviceManagementPartnerTenantStateVUnresponsive undocumented
+ DeviceManagementPartnerTenantStateVUnresponsive DeviceManagementPartnerTenantState = 5
+)
+
+// DeviceManagementPartnerTenantStatePUnknown returns a pointer to DeviceManagementPartnerTenantStateVUnknown
+func DeviceManagementPartnerTenantStatePUnknown() *DeviceManagementPartnerTenantState {
+ v := DeviceManagementPartnerTenantStateVUnknown
+ return &v
+}
+
+// DeviceManagementPartnerTenantStatePUnavailable returns a pointer to DeviceManagementPartnerTenantStateVUnavailable
+func DeviceManagementPartnerTenantStatePUnavailable() *DeviceManagementPartnerTenantState {
+ v := DeviceManagementPartnerTenantStateVUnavailable
+ return &v
+}
+
+// DeviceManagementPartnerTenantStatePEnabled returns a pointer to DeviceManagementPartnerTenantStateVEnabled
+func DeviceManagementPartnerTenantStatePEnabled() *DeviceManagementPartnerTenantState {
+ v := DeviceManagementPartnerTenantStateVEnabled
+ return &v
+}
+
+// DeviceManagementPartnerTenantStatePTerminated returns a pointer to DeviceManagementPartnerTenantStateVTerminated
+func DeviceManagementPartnerTenantStatePTerminated() *DeviceManagementPartnerTenantState {
+ v := DeviceManagementPartnerTenantStateVTerminated
+ return &v
+}
+
+// DeviceManagementPartnerTenantStatePRejected returns a pointer to DeviceManagementPartnerTenantStateVRejected
+func DeviceManagementPartnerTenantStatePRejected() *DeviceManagementPartnerTenantState {
+ v := DeviceManagementPartnerTenantStateVRejected
+ return &v
+}
+
+// DeviceManagementPartnerTenantStatePUnresponsive returns a pointer to DeviceManagementPartnerTenantStateVUnresponsive
+func DeviceManagementPartnerTenantStatePUnresponsive() *DeviceManagementPartnerTenantState {
+ v := DeviceManagementPartnerTenantStateVUnresponsive
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportFileFormatEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportFileFormatEnum.go
new file mode 100644
index 00000000..03e51714
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportFileFormatEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementReportFileFormat undocumented
+type DeviceManagementReportFileFormat int
+
+const (
+ // DeviceManagementReportFileFormatVCsv undocumented
+ DeviceManagementReportFileFormatVCsv DeviceManagementReportFileFormat = 0
+ // DeviceManagementReportFileFormatVPdf undocumented
+ DeviceManagementReportFileFormatVPdf DeviceManagementReportFileFormat = 1
+)
+
+// DeviceManagementReportFileFormatPCsv returns a pointer to DeviceManagementReportFileFormatVCsv
+func DeviceManagementReportFileFormatPCsv() *DeviceManagementReportFileFormat {
+ v := DeviceManagementReportFileFormatVCsv
+ return &v
+}
+
+// DeviceManagementReportFileFormatPPdf returns a pointer to DeviceManagementReportFileFormatVPdf
+func DeviceManagementReportFileFormatPPdf() *DeviceManagementReportFileFormat {
+ v := DeviceManagementReportFileFormatVPdf
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportScheduleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportScheduleModel.go
new file mode 100644
index 00000000..fcd329f6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportScheduleModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceManagementReportSchedule Entity representing a schedule for which reports are delivered
+type DeviceManagementReportSchedule struct {
+ // Entity is the base model of DeviceManagementReportSchedule
+ Entity
+ // ReportScheduleName Name of the schedule
+ ReportScheduleName *string `json:"reportScheduleName,omitempty"`
+ // Subject Subject of the scheduled reports that are delivered
+ Subject *string `json:"subject,omitempty"`
+ // Emails Emails to which the scheduled reports are delivered
+ Emails []string `json:"emails,omitempty"`
+ // Recurrence Frequency of scheduled report delivery
+ Recurrence *DeviceManagementScheduledReportRecurrence `json:"recurrence,omitempty"`
+ // StartDateTime Time that the delivery of the scheduled reports starts
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime Time that the delivery of the scheduled reports ends
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // UserID The Id of the User who created the report
+ UserID *string `json:"userId,omitempty"`
+ // ReportName Name of the report
+ ReportName *string `json:"reportName,omitempty"`
+ // Filter Filters applied on the report
+ Filter *string `json:"filter,omitempty"`
+ // Select Columns selected from the report
+ Select []string `json:"select,omitempty"`
+ // OrderBy Ordering of columns in the report
+ OrderBy []string `json:"orderBy,omitempty"`
+ // Format Format of the scheduled report
+ Format *DeviceManagementReportFileFormat `json:"format,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportScheduleRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportScheduleRequest.go
new file mode 100644
index 00000000..5fe6e130
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportScheduleRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementReportScheduleRequestBuilder is request builder for DeviceManagementReportSchedule
+type DeviceManagementReportScheduleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementReportScheduleRequest
+func (b *DeviceManagementReportScheduleRequestBuilder) Request() *DeviceManagementReportScheduleRequest {
+ return &DeviceManagementReportScheduleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementReportScheduleRequest is request for DeviceManagementReportSchedule
+type DeviceManagementReportScheduleRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementReportSchedule
+func (r *DeviceManagementReportScheduleRequest) Get(ctx context.Context) (resObj *DeviceManagementReportSchedule, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementReportSchedule
+func (r *DeviceManagementReportScheduleRequest) Update(ctx context.Context, reqObj *DeviceManagementReportSchedule) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementReportSchedule
+func (r *DeviceManagementReportScheduleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportStatusEnum.go
new file mode 100644
index 00000000..6591f4e7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementReportStatus undocumented
+type DeviceManagementReportStatus int
+
+const (
+ // DeviceManagementReportStatusVUnknown undocumented
+ DeviceManagementReportStatusVUnknown DeviceManagementReportStatus = 0
+ // DeviceManagementReportStatusVNotStarted undocumented
+ DeviceManagementReportStatusVNotStarted DeviceManagementReportStatus = 1
+ // DeviceManagementReportStatusVInProgress undocumented
+ DeviceManagementReportStatusVInProgress DeviceManagementReportStatus = 2
+ // DeviceManagementReportStatusVCompleted undocumented
+ DeviceManagementReportStatusVCompleted DeviceManagementReportStatus = 3
+ // DeviceManagementReportStatusVFailed undocumented
+ DeviceManagementReportStatusVFailed DeviceManagementReportStatus = 4
+)
+
+// DeviceManagementReportStatusPUnknown returns a pointer to DeviceManagementReportStatusVUnknown
+func DeviceManagementReportStatusPUnknown() *DeviceManagementReportStatus {
+ v := DeviceManagementReportStatusVUnknown
+ return &v
+}
+
+// DeviceManagementReportStatusPNotStarted returns a pointer to DeviceManagementReportStatusVNotStarted
+func DeviceManagementReportStatusPNotStarted() *DeviceManagementReportStatus {
+ v := DeviceManagementReportStatusVNotStarted
+ return &v
+}
+
+// DeviceManagementReportStatusPInProgress returns a pointer to DeviceManagementReportStatusVInProgress
+func DeviceManagementReportStatusPInProgress() *DeviceManagementReportStatus {
+ v := DeviceManagementReportStatusVInProgress
+ return &v
+}
+
+// DeviceManagementReportStatusPCompleted returns a pointer to DeviceManagementReportStatusVCompleted
+func DeviceManagementReportStatusPCompleted() *DeviceManagementReportStatus {
+ v := DeviceManagementReportStatusVCompleted
+ return &v
+}
+
+// DeviceManagementReportStatusPFailed returns a pointer to DeviceManagementReportStatusVFailed
+func DeviceManagementReportStatusPFailed() *DeviceManagementReportStatus {
+ v := DeviceManagementReportStatusVFailed
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportsAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportsAction.go
new file mode 100644
index 00000000..e91994a5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportsAction.go
@@ -0,0 +1,244 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementReportsGetDeviceNonComplianceReportRequestParameter undocumented
+type DeviceManagementReportsGetDeviceNonComplianceReportRequestParameter struct {
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Select undocumented
+ Select []string `json:"select,omitempty"`
+ // Search undocumented
+ Search *string `json:"search,omitempty"`
+ // GroupBy undocumented
+ GroupBy []string `json:"groupBy,omitempty"`
+ // OrderBy undocumented
+ OrderBy []string `json:"orderBy,omitempty"`
+ // Skip undocumented
+ Skip *int `json:"skip,omitempty"`
+ // Top undocumented
+ Top *int `json:"top,omitempty"`
+ // SessionID undocumented
+ SessionID *string `json:"sessionId,omitempty"`
+ // Filter undocumented
+ Filter *string `json:"filter,omitempty"`
+}
+
+// DeviceManagementReportsGetPolicyNonComplianceReportRequestParameter undocumented
+type DeviceManagementReportsGetPolicyNonComplianceReportRequestParameter struct {
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Select undocumented
+ Select []string `json:"select,omitempty"`
+ // Search undocumented
+ Search *string `json:"search,omitempty"`
+ // GroupBy undocumented
+ GroupBy []string `json:"groupBy,omitempty"`
+ // OrderBy undocumented
+ OrderBy []string `json:"orderBy,omitempty"`
+ // Skip undocumented
+ Skip *int `json:"skip,omitempty"`
+ // Top undocumented
+ Top *int `json:"top,omitempty"`
+ // SessionID undocumented
+ SessionID *string `json:"sessionId,omitempty"`
+ // Filter undocumented
+ Filter *string `json:"filter,omitempty"`
+}
+
+// DeviceManagementReportsGetPolicyNonComplianceMetadataRequestParameter undocumented
+type DeviceManagementReportsGetPolicyNonComplianceMetadataRequestParameter struct {
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Select undocumented
+ Select []string `json:"select,omitempty"`
+ // Search undocumented
+ Search *string `json:"search,omitempty"`
+ // GroupBy undocumented
+ GroupBy []string `json:"groupBy,omitempty"`
+ // OrderBy undocumented
+ OrderBy []string `json:"orderBy,omitempty"`
+ // Skip undocumented
+ Skip *int `json:"skip,omitempty"`
+ // Top undocumented
+ Top *int `json:"top,omitempty"`
+ // SessionID undocumented
+ SessionID *string `json:"sessionId,omitempty"`
+ // Filter undocumented
+ Filter *string `json:"filter,omitempty"`
+}
+
+// DeviceManagementReportsGetHistoricalReportRequestParameter undocumented
+type DeviceManagementReportsGetHistoricalReportRequestParameter struct {
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Select undocumented
+ Select []string `json:"select,omitempty"`
+ // Search undocumented
+ Search *string `json:"search,omitempty"`
+ // GroupBy undocumented
+ GroupBy []string `json:"groupBy,omitempty"`
+ // OrderBy undocumented
+ OrderBy []string `json:"orderBy,omitempty"`
+ // Skip undocumented
+ Skip *int `json:"skip,omitempty"`
+ // Top undocumented
+ Top *int `json:"top,omitempty"`
+ // Filter undocumented
+ Filter *string `json:"filter,omitempty"`
+}
+
+// DeviceManagementReportsGetCachedReportRequestParameter undocumented
+type DeviceManagementReportsGetCachedReportRequestParameter struct {
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Select undocumented
+ Select []string `json:"select,omitempty"`
+ // Search undocumented
+ Search *string `json:"search,omitempty"`
+ // GroupBy undocumented
+ GroupBy []string `json:"groupBy,omitempty"`
+ // OrderBy undocumented
+ OrderBy []string `json:"orderBy,omitempty"`
+ // Skip undocumented
+ Skip *int `json:"skip,omitempty"`
+ // Top undocumented
+ Top *int `json:"top,omitempty"`
+}
+
+//
+type DeviceManagementReportsGetDeviceNonComplianceReportRequestBuilder struct{ BaseRequestBuilder }
+
+// GetDeviceNonComplianceReport action undocumented
+func (b *DeviceManagementReportsRequestBuilder) GetDeviceNonComplianceReport(reqObj *DeviceManagementReportsGetDeviceNonComplianceReportRequestParameter) *DeviceManagementReportsGetDeviceNonComplianceReportRequestBuilder {
+ bb := &DeviceManagementReportsGetDeviceNonComplianceReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getDeviceNonComplianceReport"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementReportsGetDeviceNonComplianceReportRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementReportsGetDeviceNonComplianceReportRequestBuilder) Request() *DeviceManagementReportsGetDeviceNonComplianceReportRequest {
+ return &DeviceManagementReportsGetDeviceNonComplianceReportRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementReportsGetDeviceNonComplianceReportRequest) Post(ctx context.Context) (resObj *Stream, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DeviceManagementReportsGetPolicyNonComplianceReportRequestBuilder struct{ BaseRequestBuilder }
+
+// GetPolicyNonComplianceReport action undocumented
+func (b *DeviceManagementReportsRequestBuilder) GetPolicyNonComplianceReport(reqObj *DeviceManagementReportsGetPolicyNonComplianceReportRequestParameter) *DeviceManagementReportsGetPolicyNonComplianceReportRequestBuilder {
+ bb := &DeviceManagementReportsGetPolicyNonComplianceReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getPolicyNonComplianceReport"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementReportsGetPolicyNonComplianceReportRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementReportsGetPolicyNonComplianceReportRequestBuilder) Request() *DeviceManagementReportsGetPolicyNonComplianceReportRequest {
+ return &DeviceManagementReportsGetPolicyNonComplianceReportRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementReportsGetPolicyNonComplianceReportRequest) Post(ctx context.Context) (resObj *Stream, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DeviceManagementReportsGetPolicyNonComplianceMetadataRequestBuilder struct{ BaseRequestBuilder }
+
+// GetPolicyNonComplianceMetadata action undocumented
+func (b *DeviceManagementReportsRequestBuilder) GetPolicyNonComplianceMetadata(reqObj *DeviceManagementReportsGetPolicyNonComplianceMetadataRequestParameter) *DeviceManagementReportsGetPolicyNonComplianceMetadataRequestBuilder {
+ bb := &DeviceManagementReportsGetPolicyNonComplianceMetadataRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getPolicyNonComplianceMetadata"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementReportsGetPolicyNonComplianceMetadataRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementReportsGetPolicyNonComplianceMetadataRequestBuilder) Request() *DeviceManagementReportsGetPolicyNonComplianceMetadataRequest {
+ return &DeviceManagementReportsGetPolicyNonComplianceMetadataRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementReportsGetPolicyNonComplianceMetadataRequest) Post(ctx context.Context) (resObj *Stream, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DeviceManagementReportsGetHistoricalReportRequestBuilder struct{ BaseRequestBuilder }
+
+// GetHistoricalReport action undocumented
+func (b *DeviceManagementReportsRequestBuilder) GetHistoricalReport(reqObj *DeviceManagementReportsGetHistoricalReportRequestParameter) *DeviceManagementReportsGetHistoricalReportRequestBuilder {
+ bb := &DeviceManagementReportsGetHistoricalReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getHistoricalReport"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementReportsGetHistoricalReportRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementReportsGetHistoricalReportRequestBuilder) Request() *DeviceManagementReportsGetHistoricalReportRequest {
+ return &DeviceManagementReportsGetHistoricalReportRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementReportsGetHistoricalReportRequest) Post(ctx context.Context) (resObj *Stream, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DeviceManagementReportsGetCachedReportRequestBuilder struct{ BaseRequestBuilder }
+
+// GetCachedReport action undocumented
+func (b *DeviceManagementReportsRequestBuilder) GetCachedReport(reqObj *DeviceManagementReportsGetCachedReportRequestParameter) *DeviceManagementReportsGetCachedReportRequestBuilder {
+ bb := &DeviceManagementReportsGetCachedReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getCachedReport"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementReportsGetCachedReportRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementReportsGetCachedReportRequestBuilder) Request() *DeviceManagementReportsGetCachedReportRequest {
+ return &DeviceManagementReportsGetCachedReportRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementReportsGetCachedReportRequest) Post(ctx context.Context) (resObj *Stream, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportsModel.go
new file mode 100644
index 00000000..adf624b1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementReports Singleton entity that acts as a container for all reports functionality.
+type DeviceManagementReports struct {
+ // Entity is the base model of DeviceManagementReports
+ Entity
+ // CachedReportConfigurations undocumented
+ CachedReportConfigurations []DeviceManagementCachedReportConfiguration `json:"cachedReportConfigurations,omitempty"`
+ // ExportJobs undocumented
+ ExportJobs []DeviceManagementExportJob `json:"exportJobs,omitempty"`
+ // ReportSchedules undocumented
+ ReportSchedules []DeviceManagementReportSchedule `json:"reportSchedules,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportsRequest.go
new file mode 100644
index 00000000..14ab4c49
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementReportsRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceManagementReportsRequestBuilder is request builder for DeviceManagementReports
+type DeviceManagementReportsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementReportsRequest
+func (b *DeviceManagementReportsRequestBuilder) Request() *DeviceManagementReportsRequest {
+ return &DeviceManagementReportsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementReportsRequest is request for DeviceManagementReports
+type DeviceManagementReportsRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementReports
+func (r *DeviceManagementReportsRequest) Get(ctx context.Context) (resObj *DeviceManagementReports, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementReports
+func (r *DeviceManagementReportsRequest) Update(ctx context.Context, reqObj *DeviceManagementReports) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementReports
+func (r *DeviceManagementReportsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// CachedReportConfigurations returns request builder for DeviceManagementCachedReportConfiguration collection
+func (b *DeviceManagementReportsRequestBuilder) CachedReportConfigurations() *DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder {
+ bb := &DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/cachedReportConfigurations"
+ return bb
+}
+
+// DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder is request builder for DeviceManagementCachedReportConfiguration collection
+type DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementCachedReportConfiguration collection
+func (b *DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder) Request() *DeviceManagementReportsCachedReportConfigurationsCollectionRequest {
+ return &DeviceManagementReportsCachedReportConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementCachedReportConfiguration item
+func (b *DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder) ID(id string) *DeviceManagementCachedReportConfigurationRequestBuilder {
+ bb := &DeviceManagementCachedReportConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementReportsCachedReportConfigurationsCollectionRequest is request for DeviceManagementCachedReportConfiguration collection
+type DeviceManagementReportsCachedReportConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementCachedReportConfiguration collection
+func (r *DeviceManagementReportsCachedReportConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementCachedReportConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementCachedReportConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementCachedReportConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementCachedReportConfiguration collection
+func (r *DeviceManagementReportsCachedReportConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementCachedReportConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementCachedReportConfiguration collection
+func (r *DeviceManagementReportsCachedReportConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementCachedReportConfiguration) (resObj *DeviceManagementCachedReportConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ExportJobs returns request builder for DeviceManagementExportJob collection
+func (b *DeviceManagementReportsRequestBuilder) ExportJobs() *DeviceManagementReportsExportJobsCollectionRequestBuilder {
+ bb := &DeviceManagementReportsExportJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/exportJobs"
+ return bb
+}
+
+// DeviceManagementReportsExportJobsCollectionRequestBuilder is request builder for DeviceManagementExportJob collection
+type DeviceManagementReportsExportJobsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementExportJob collection
+func (b *DeviceManagementReportsExportJobsCollectionRequestBuilder) Request() *DeviceManagementReportsExportJobsCollectionRequest {
+ return &DeviceManagementReportsExportJobsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementExportJob item
+func (b *DeviceManagementReportsExportJobsCollectionRequestBuilder) ID(id string) *DeviceManagementExportJobRequestBuilder {
+ bb := &DeviceManagementExportJobRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementReportsExportJobsCollectionRequest is request for DeviceManagementExportJob collection
+type DeviceManagementReportsExportJobsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementExportJob collection
+func (r *DeviceManagementReportsExportJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementExportJob, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementExportJob
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementExportJob
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementExportJob collection
+func (r *DeviceManagementReportsExportJobsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementExportJob, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementExportJob collection
+func (r *DeviceManagementReportsExportJobsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementExportJob) (resObj *DeviceManagementExportJob, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ReportSchedules returns request builder for DeviceManagementReportSchedule collection
+func (b *DeviceManagementReportsRequestBuilder) ReportSchedules() *DeviceManagementReportsReportSchedulesCollectionRequestBuilder {
+ bb := &DeviceManagementReportsReportSchedulesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/reportSchedules"
+ return bb
+}
+
+// DeviceManagementReportsReportSchedulesCollectionRequestBuilder is request builder for DeviceManagementReportSchedule collection
+type DeviceManagementReportsReportSchedulesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementReportSchedule collection
+func (b *DeviceManagementReportsReportSchedulesCollectionRequestBuilder) Request() *DeviceManagementReportsReportSchedulesCollectionRequest {
+ return &DeviceManagementReportsReportSchedulesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementReportSchedule item
+func (b *DeviceManagementReportsReportSchedulesCollectionRequestBuilder) ID(id string) *DeviceManagementReportScheduleRequestBuilder {
+ bb := &DeviceManagementReportScheduleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementReportsReportSchedulesCollectionRequest is request for DeviceManagementReportSchedule collection
+type DeviceManagementReportsReportSchedulesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementReportSchedule collection
+func (r *DeviceManagementReportsReportSchedulesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementReportSchedule, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementReportSchedule
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementReportSchedule
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementReportSchedule collection
+func (r *DeviceManagementReportsReportSchedulesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementReportSchedule, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementReportSchedule collection
+func (r *DeviceManagementReportsReportSchedulesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementReportSchedule) (resObj *DeviceManagementReportSchedule, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementRequest.go
new file mode 100644
index 00000000..9dcce84e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementRequest.go
@@ -0,0 +1,6542 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceManagementRequestBuilder is request builder for DeviceManagement
+type DeviceManagementRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementRequest
+func (b *DeviceManagementRequestBuilder) Request() *DeviceManagementRequest {
+ return &DeviceManagementRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementRequest is request for DeviceManagement
+type DeviceManagementRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagement
+func (r *DeviceManagementRequest) Get(ctx context.Context) (resObj *DeviceManagement, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagement
+func (r *DeviceManagementRequest) Update(ctx context.Context, reqObj *DeviceManagement) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagement
+func (r *DeviceManagementRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AdvancedThreatProtectionOnboardingStateSummary is navigation property
+func (b *DeviceManagementRequestBuilder) AdvancedThreatProtectionOnboardingStateSummary() *AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder {
+ bb := &AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/advancedThreatProtectionOnboardingStateSummary"
+ return bb
+}
+
+// AndroidDeviceOwnerEnrollmentProfiles returns request builder for AndroidDeviceOwnerEnrollmentProfile collection
+func (b *DeviceManagementRequestBuilder) AndroidDeviceOwnerEnrollmentProfiles() *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder {
+ bb := &DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/androidDeviceOwnerEnrollmentProfiles"
+ return bb
+}
+
+// DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder is request builder for AndroidDeviceOwnerEnrollmentProfile collection
+type DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AndroidDeviceOwnerEnrollmentProfile collection
+func (b *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder) Request() *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest {
+ return &DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AndroidDeviceOwnerEnrollmentProfile item
+func (b *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder) ID(id string) *AndroidDeviceOwnerEnrollmentProfileRequestBuilder {
+ bb := &AndroidDeviceOwnerEnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest is request for AndroidDeviceOwnerEnrollmentProfile collection
+type DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AndroidDeviceOwnerEnrollmentProfile collection
+func (r *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AndroidDeviceOwnerEnrollmentProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AndroidDeviceOwnerEnrollmentProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AndroidDeviceOwnerEnrollmentProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AndroidDeviceOwnerEnrollmentProfile collection
+func (r *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest) Get(ctx context.Context) ([]AndroidDeviceOwnerEnrollmentProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AndroidDeviceOwnerEnrollmentProfile collection
+func (r *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest) Add(ctx context.Context, reqObj *AndroidDeviceOwnerEnrollmentProfile) (resObj *AndroidDeviceOwnerEnrollmentProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AndroidForWorkAppConfigurationSchemas returns request builder for AndroidForWorkAppConfigurationSchema collection
+func (b *DeviceManagementRequestBuilder) AndroidForWorkAppConfigurationSchemas() *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder {
+ bb := &DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/androidForWorkAppConfigurationSchemas"
+ return bb
+}
+
+// DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder is request builder for AndroidForWorkAppConfigurationSchema collection
+type DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AndroidForWorkAppConfigurationSchema collection
+func (b *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder) Request() *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest {
+ return &DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AndroidForWorkAppConfigurationSchema item
+func (b *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder) ID(id string) *AndroidForWorkAppConfigurationSchemaRequestBuilder {
+ bb := &AndroidForWorkAppConfigurationSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest is request for AndroidForWorkAppConfigurationSchema collection
+type DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AndroidForWorkAppConfigurationSchema collection
+func (r *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AndroidForWorkAppConfigurationSchema, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AndroidForWorkAppConfigurationSchema
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AndroidForWorkAppConfigurationSchema
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AndroidForWorkAppConfigurationSchema collection
+func (r *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest) Get(ctx context.Context) ([]AndroidForWorkAppConfigurationSchema, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AndroidForWorkAppConfigurationSchema collection
+func (r *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest) Add(ctx context.Context, reqObj *AndroidForWorkAppConfigurationSchema) (resObj *AndroidForWorkAppConfigurationSchema, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AndroidForWorkEnrollmentProfiles returns request builder for AndroidForWorkEnrollmentProfile collection
+func (b *DeviceManagementRequestBuilder) AndroidForWorkEnrollmentProfiles() *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder {
+ bb := &DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/androidForWorkEnrollmentProfiles"
+ return bb
+}
+
+// DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder is request builder for AndroidForWorkEnrollmentProfile collection
+type DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AndroidForWorkEnrollmentProfile collection
+func (b *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder) Request() *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest {
+ return &DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AndroidForWorkEnrollmentProfile item
+func (b *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder) ID(id string) *AndroidForWorkEnrollmentProfileRequestBuilder {
+ bb := &AndroidForWorkEnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest is request for AndroidForWorkEnrollmentProfile collection
+type DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AndroidForWorkEnrollmentProfile collection
+func (r *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AndroidForWorkEnrollmentProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AndroidForWorkEnrollmentProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AndroidForWorkEnrollmentProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AndroidForWorkEnrollmentProfile collection
+func (r *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest) Get(ctx context.Context) ([]AndroidForWorkEnrollmentProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AndroidForWorkEnrollmentProfile collection
+func (r *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest) Add(ctx context.Context, reqObj *AndroidForWorkEnrollmentProfile) (resObj *AndroidForWorkEnrollmentProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AndroidForWorkSettings is navigation property
+func (b *DeviceManagementRequestBuilder) AndroidForWorkSettings() *AndroidForWorkSettingsRequestBuilder {
+ bb := &AndroidForWorkSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/androidForWorkSettings"
+ return bb
+}
+
+// AndroidManagedStoreAccountEnterpriseSettings is navigation property
+func (b *DeviceManagementRequestBuilder) AndroidManagedStoreAccountEnterpriseSettings() *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder {
+ bb := &AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/androidManagedStoreAccountEnterpriseSettings"
+ return bb
+}
+
+// AndroidManagedStoreAppConfigurationSchemas returns request builder for AndroidManagedStoreAppConfigurationSchema collection
+func (b *DeviceManagementRequestBuilder) AndroidManagedStoreAppConfigurationSchemas() *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder {
+ bb := &DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/androidManagedStoreAppConfigurationSchemas"
+ return bb
+}
+
+// DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder is request builder for AndroidManagedStoreAppConfigurationSchema collection
+type DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AndroidManagedStoreAppConfigurationSchema collection
+func (b *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder) Request() *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest {
+ return &DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AndroidManagedStoreAppConfigurationSchema item
+func (b *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder) ID(id string) *AndroidManagedStoreAppConfigurationSchemaRequestBuilder {
+ bb := &AndroidManagedStoreAppConfigurationSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest is request for AndroidManagedStoreAppConfigurationSchema collection
+type DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AndroidManagedStoreAppConfigurationSchema collection
+func (r *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AndroidManagedStoreAppConfigurationSchema, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AndroidManagedStoreAppConfigurationSchema
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AndroidManagedStoreAppConfigurationSchema
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AndroidManagedStoreAppConfigurationSchema collection
+func (r *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest) Get(ctx context.Context) ([]AndroidManagedStoreAppConfigurationSchema, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AndroidManagedStoreAppConfigurationSchema collection
+func (r *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest) Add(ctx context.Context, reqObj *AndroidManagedStoreAppConfigurationSchema) (resObj *AndroidManagedStoreAppConfigurationSchema, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ApplePushNotificationCertificate is navigation property
+func (b *DeviceManagementRequestBuilder) ApplePushNotificationCertificate() *ApplePushNotificationCertificateRequestBuilder {
+ bb := &ApplePushNotificationCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/applePushNotificationCertificate"
+ return bb
+}
+
+// AppleUserInitiatedEnrollmentProfiles returns request builder for AppleUserInitiatedEnrollmentProfile collection
+func (b *DeviceManagementRequestBuilder) AppleUserInitiatedEnrollmentProfiles() *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder {
+ bb := &DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appleUserInitiatedEnrollmentProfiles"
+ return bb
+}
+
+// DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder is request builder for AppleUserInitiatedEnrollmentProfile collection
+type DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppleUserInitiatedEnrollmentProfile collection
+func (b *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder) Request() *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest {
+ return &DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppleUserInitiatedEnrollmentProfile item
+func (b *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder) ID(id string) *AppleUserInitiatedEnrollmentProfileRequestBuilder {
+ bb := &AppleUserInitiatedEnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest is request for AppleUserInitiatedEnrollmentProfile collection
+type DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppleUserInitiatedEnrollmentProfile collection
+func (r *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AppleUserInitiatedEnrollmentProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppleUserInitiatedEnrollmentProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppleUserInitiatedEnrollmentProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppleUserInitiatedEnrollmentProfile collection
+func (r *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest) Get(ctx context.Context) ([]AppleUserInitiatedEnrollmentProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AppleUserInitiatedEnrollmentProfile collection
+func (r *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest) Add(ctx context.Context, reqObj *AppleUserInitiatedEnrollmentProfile) (resObj *AppleUserInitiatedEnrollmentProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AuditEvents returns request builder for AuditEvent collection
+func (b *DeviceManagementRequestBuilder) AuditEvents() *DeviceManagementAuditEventsCollectionRequestBuilder {
+ bb := &DeviceManagementAuditEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/auditEvents"
+ return bb
+}
+
+// DeviceManagementAuditEventsCollectionRequestBuilder is request builder for AuditEvent collection
+type DeviceManagementAuditEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AuditEvent collection
+func (b *DeviceManagementAuditEventsCollectionRequestBuilder) Request() *DeviceManagementAuditEventsCollectionRequest {
+ return &DeviceManagementAuditEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AuditEvent item
+func (b *DeviceManagementAuditEventsCollectionRequestBuilder) ID(id string) *AuditEventRequestBuilder {
+ bb := &AuditEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementAuditEventsCollectionRequest is request for AuditEvent collection
+type DeviceManagementAuditEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AuditEvent collection
+func (r *DeviceManagementAuditEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AuditEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AuditEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AuditEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AuditEvent collection
+func (r *DeviceManagementAuditEventsCollectionRequest) Get(ctx context.Context) ([]AuditEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AuditEvent collection
+func (r *DeviceManagementAuditEventsCollectionRequest) Add(ctx context.Context, reqObj *AuditEvent) (resObj *AuditEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AutopilotEvents returns request builder for DeviceManagementAutopilotEvent collection
+func (b *DeviceManagementRequestBuilder) AutopilotEvents() *DeviceManagementAutopilotEventsCollectionRequestBuilder {
+ bb := &DeviceManagementAutopilotEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/autopilotEvents"
+ return bb
+}
+
+// DeviceManagementAutopilotEventsCollectionRequestBuilder is request builder for DeviceManagementAutopilotEvent collection
+type DeviceManagementAutopilotEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementAutopilotEvent collection
+func (b *DeviceManagementAutopilotEventsCollectionRequestBuilder) Request() *DeviceManagementAutopilotEventsCollectionRequest {
+ return &DeviceManagementAutopilotEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementAutopilotEvent item
+func (b *DeviceManagementAutopilotEventsCollectionRequestBuilder) ID(id string) *DeviceManagementAutopilotEventRequestBuilder {
+ bb := &DeviceManagementAutopilotEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementAutopilotEventsCollectionRequest is request for DeviceManagementAutopilotEvent collection
+type DeviceManagementAutopilotEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementAutopilotEvent collection
+func (r *DeviceManagementAutopilotEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementAutopilotEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementAutopilotEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementAutopilotEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementAutopilotEvent collection
+func (r *DeviceManagementAutopilotEventsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementAutopilotEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementAutopilotEvent collection
+func (r *DeviceManagementAutopilotEventsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementAutopilotEvent) (resObj *DeviceManagementAutopilotEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CartToClassAssociations returns request builder for CartToClassAssociation collection
+func (b *DeviceManagementRequestBuilder) CartToClassAssociations() *DeviceManagementCartToClassAssociationsCollectionRequestBuilder {
+ bb := &DeviceManagementCartToClassAssociationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/cartToClassAssociations"
+ return bb
+}
+
+// DeviceManagementCartToClassAssociationsCollectionRequestBuilder is request builder for CartToClassAssociation collection
+type DeviceManagementCartToClassAssociationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CartToClassAssociation collection
+func (b *DeviceManagementCartToClassAssociationsCollectionRequestBuilder) Request() *DeviceManagementCartToClassAssociationsCollectionRequest {
+ return &DeviceManagementCartToClassAssociationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CartToClassAssociation item
+func (b *DeviceManagementCartToClassAssociationsCollectionRequestBuilder) ID(id string) *CartToClassAssociationRequestBuilder {
+ bb := &CartToClassAssociationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementCartToClassAssociationsCollectionRequest is request for CartToClassAssociation collection
+type DeviceManagementCartToClassAssociationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CartToClassAssociation collection
+func (r *DeviceManagementCartToClassAssociationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]CartToClassAssociation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CartToClassAssociation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CartToClassAssociation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CartToClassAssociation collection
+func (r *DeviceManagementCartToClassAssociationsCollectionRequest) Get(ctx context.Context) ([]CartToClassAssociation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for CartToClassAssociation collection
+func (r *DeviceManagementCartToClassAssociationsCollectionRequest) Add(ctx context.Context, reqObj *CartToClassAssociation) (resObj *CartToClassAssociation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Categories returns request builder for DeviceManagementSettingCategory collection
+func (b *DeviceManagementRequestBuilder) Categories() *DeviceManagementCategoriesCollectionRequestBuilder {
+ bb := &DeviceManagementCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/categories"
+ return bb
+}
+
+// DeviceManagementCategoriesCollectionRequestBuilder is request builder for DeviceManagementSettingCategory collection
+type DeviceManagementCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingCategory collection
+func (b *DeviceManagementCategoriesCollectionRequestBuilder) Request() *DeviceManagementCategoriesCollectionRequest {
+ return &DeviceManagementCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingCategory item
+func (b *DeviceManagementCategoriesCollectionRequestBuilder) ID(id string) *DeviceManagementSettingCategoryRequestBuilder {
+ bb := &DeviceManagementSettingCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementCategoriesCollectionRequest is request for DeviceManagementSettingCategory collection
+type DeviceManagementCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingCategory collection
+func (r *DeviceManagementCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementSettingCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingCategory collection
+func (r *DeviceManagementCategoriesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementSettingCategory collection
+func (r *DeviceManagementCategoriesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingCategory) (resObj *DeviceManagementSettingCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ComplianceManagementPartners returns request builder for ComplianceManagementPartner collection
+func (b *DeviceManagementRequestBuilder) ComplianceManagementPartners() *DeviceManagementComplianceManagementPartnersCollectionRequestBuilder {
+ bb := &DeviceManagementComplianceManagementPartnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/complianceManagementPartners"
+ return bb
+}
+
+// DeviceManagementComplianceManagementPartnersCollectionRequestBuilder is request builder for ComplianceManagementPartner collection
+type DeviceManagementComplianceManagementPartnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ComplianceManagementPartner collection
+func (b *DeviceManagementComplianceManagementPartnersCollectionRequestBuilder) Request() *DeviceManagementComplianceManagementPartnersCollectionRequest {
+ return &DeviceManagementComplianceManagementPartnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ComplianceManagementPartner item
+func (b *DeviceManagementComplianceManagementPartnersCollectionRequestBuilder) ID(id string) *ComplianceManagementPartnerRequestBuilder {
+ bb := &ComplianceManagementPartnerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementComplianceManagementPartnersCollectionRequest is request for ComplianceManagementPartner collection
+type DeviceManagementComplianceManagementPartnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ComplianceManagementPartner collection
+func (r *DeviceManagementComplianceManagementPartnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ComplianceManagementPartner, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ComplianceManagementPartner
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ComplianceManagementPartner
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ComplianceManagementPartner collection
+func (r *DeviceManagementComplianceManagementPartnersCollectionRequest) Get(ctx context.Context) ([]ComplianceManagementPartner, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ComplianceManagementPartner collection
+func (r *DeviceManagementComplianceManagementPartnersCollectionRequest) Add(ctx context.Context, reqObj *ComplianceManagementPartner) (resObj *ComplianceManagementPartner, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ConditionalAccessSettings is navigation property
+func (b *DeviceManagementRequestBuilder) ConditionalAccessSettings() *OnPremisesConditionalAccessSettingsRequestBuilder {
+ bb := &OnPremisesConditionalAccessSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/conditionalAccessSettings"
+ return bb
+}
+
+// DataSharingConsents returns request builder for DataSharingConsent collection
+func (b *DeviceManagementRequestBuilder) DataSharingConsents() *DeviceManagementDataSharingConsentsCollectionRequestBuilder {
+ bb := &DeviceManagementDataSharingConsentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/dataSharingConsents"
+ return bb
+}
+
+// DeviceManagementDataSharingConsentsCollectionRequestBuilder is request builder for DataSharingConsent collection
+type DeviceManagementDataSharingConsentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DataSharingConsent collection
+func (b *DeviceManagementDataSharingConsentsCollectionRequestBuilder) Request() *DeviceManagementDataSharingConsentsCollectionRequest {
+ return &DeviceManagementDataSharingConsentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DataSharingConsent item
+func (b *DeviceManagementDataSharingConsentsCollectionRequestBuilder) ID(id string) *DataSharingConsentRequestBuilder {
+ bb := &DataSharingConsentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDataSharingConsentsCollectionRequest is request for DataSharingConsent collection
+type DeviceManagementDataSharingConsentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DataSharingConsent collection
+func (r *DeviceManagementDataSharingConsentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DataSharingConsent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DataSharingConsent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DataSharingConsent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DataSharingConsent collection
+func (r *DeviceManagementDataSharingConsentsCollectionRequest) Get(ctx context.Context) ([]DataSharingConsent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DataSharingConsent collection
+func (r *DeviceManagementDataSharingConsentsCollectionRequest) Add(ctx context.Context, reqObj *DataSharingConsent) (resObj *DataSharingConsent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DepOnboardingSettings returns request builder for DepOnboardingSetting collection
+func (b *DeviceManagementRequestBuilder) DepOnboardingSettings() *DeviceManagementDepOnboardingSettingsCollectionRequestBuilder {
+ bb := &DeviceManagementDepOnboardingSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/depOnboardingSettings"
+ return bb
+}
+
+// DeviceManagementDepOnboardingSettingsCollectionRequestBuilder is request builder for DepOnboardingSetting collection
+type DeviceManagementDepOnboardingSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DepOnboardingSetting collection
+func (b *DeviceManagementDepOnboardingSettingsCollectionRequestBuilder) Request() *DeviceManagementDepOnboardingSettingsCollectionRequest {
+ return &DeviceManagementDepOnboardingSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DepOnboardingSetting item
+func (b *DeviceManagementDepOnboardingSettingsCollectionRequestBuilder) ID(id string) *DepOnboardingSettingRequestBuilder {
+ bb := &DepOnboardingSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDepOnboardingSettingsCollectionRequest is request for DepOnboardingSetting collection
+type DeviceManagementDepOnboardingSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DepOnboardingSetting collection
+func (r *DeviceManagementDepOnboardingSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DepOnboardingSetting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DepOnboardingSetting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DepOnboardingSetting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DepOnboardingSetting collection
+func (r *DeviceManagementDepOnboardingSettingsCollectionRequest) Get(ctx context.Context) ([]DepOnboardingSetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DepOnboardingSetting collection
+func (r *DeviceManagementDepOnboardingSettingsCollectionRequest) Add(ctx context.Context, reqObj *DepOnboardingSetting) (resObj *DepOnboardingSetting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DerivedCredentials returns request builder for DeviceManagementDerivedCredentialSettings collection
+func (b *DeviceManagementRequestBuilder) DerivedCredentials() *DeviceManagementDerivedCredentialsCollectionRequestBuilder {
+ bb := &DeviceManagementDerivedCredentialsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/derivedCredentials"
+ return bb
+}
+
+// DeviceManagementDerivedCredentialsCollectionRequestBuilder is request builder for DeviceManagementDerivedCredentialSettings collection
+type DeviceManagementDerivedCredentialsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementDerivedCredentialSettings collection
+func (b *DeviceManagementDerivedCredentialsCollectionRequestBuilder) Request() *DeviceManagementDerivedCredentialsCollectionRequest {
+ return &DeviceManagementDerivedCredentialsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementDerivedCredentialSettings item
+func (b *DeviceManagementDerivedCredentialsCollectionRequestBuilder) ID(id string) *DeviceManagementDerivedCredentialSettingsRequestBuilder {
+ bb := &DeviceManagementDerivedCredentialSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDerivedCredentialsCollectionRequest is request for DeviceManagementDerivedCredentialSettings collection
+type DeviceManagementDerivedCredentialsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementDerivedCredentialSettings collection
+func (r *DeviceManagementDerivedCredentialsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementDerivedCredentialSettings, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementDerivedCredentialSettings
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementDerivedCredentialSettings
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementDerivedCredentialSettings collection
+func (r *DeviceManagementDerivedCredentialsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementDerivedCredentialSettings, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementDerivedCredentialSettings collection
+func (r *DeviceManagementDerivedCredentialsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementDerivedCredentialSettings) (resObj *DeviceManagementDerivedCredentialSettings, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DetectedApps returns request builder for DetectedApp collection
+func (b *DeviceManagementRequestBuilder) DetectedApps() *DeviceManagementDetectedAppsCollectionRequestBuilder {
+ bb := &DeviceManagementDetectedAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/detectedApps"
+ return bb
+}
+
+// DeviceManagementDetectedAppsCollectionRequestBuilder is request builder for DetectedApp collection
+type DeviceManagementDetectedAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DetectedApp collection
+func (b *DeviceManagementDetectedAppsCollectionRequestBuilder) Request() *DeviceManagementDetectedAppsCollectionRequest {
+ return &DeviceManagementDetectedAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DetectedApp item
+func (b *DeviceManagementDetectedAppsCollectionRequestBuilder) ID(id string) *DetectedAppRequestBuilder {
+ bb := &DetectedAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDetectedAppsCollectionRequest is request for DetectedApp collection
+type DeviceManagementDetectedAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DetectedApp collection
+func (r *DeviceManagementDetectedAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DetectedApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DetectedApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DetectedApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DetectedApp collection
+func (r *DeviceManagementDetectedAppsCollectionRequest) Get(ctx context.Context) ([]DetectedApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DetectedApp collection
+func (r *DeviceManagementDetectedAppsCollectionRequest) Add(ctx context.Context, reqObj *DetectedApp) (resObj *DetectedApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceCategories returns request builder for DeviceCategory collection
+func (b *DeviceManagementRequestBuilder) DeviceCategories() *DeviceManagementDeviceCategoriesCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceCategories"
+ return bb
+}
+
+// DeviceManagementDeviceCategoriesCollectionRequestBuilder is request builder for DeviceCategory collection
+type DeviceManagementDeviceCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceCategory collection
+func (b *DeviceManagementDeviceCategoriesCollectionRequestBuilder) Request() *DeviceManagementDeviceCategoriesCollectionRequest {
+ return &DeviceManagementDeviceCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceCategory item
+func (b *DeviceManagementDeviceCategoriesCollectionRequestBuilder) ID(id string) *DeviceCategoryRequestBuilder {
+ bb := &DeviceCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceCategoriesCollectionRequest is request for DeviceCategory collection
+type DeviceManagementDeviceCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceCategory collection
+func (r *DeviceManagementDeviceCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceCategory collection
+func (r *DeviceManagementDeviceCategoriesCollectionRequest) Get(ctx context.Context) ([]DeviceCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceCategory collection
+func (r *DeviceManagementDeviceCategoriesCollectionRequest) Add(ctx context.Context, reqObj *DeviceCategory) (resObj *DeviceCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceCompliancePolicies returns request builder for DeviceCompliancePolicy collection
+func (b *DeviceManagementRequestBuilder) DeviceCompliancePolicies() *DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceCompliancePolicies"
+ return bb
+}
+
+// DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder is request builder for DeviceCompliancePolicy collection
+type DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceCompliancePolicy collection
+func (b *DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder) Request() *DeviceManagementDeviceCompliancePoliciesCollectionRequest {
+ return &DeviceManagementDeviceCompliancePoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceCompliancePolicy item
+func (b *DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder) ID(id string) *DeviceCompliancePolicyRequestBuilder {
+ bb := &DeviceCompliancePolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceCompliancePoliciesCollectionRequest is request for DeviceCompliancePolicy collection
+type DeviceManagementDeviceCompliancePoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceCompliancePolicy collection
+func (r *DeviceManagementDeviceCompliancePoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceCompliancePolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceCompliancePolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceCompliancePolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceCompliancePolicy collection
+func (r *DeviceManagementDeviceCompliancePoliciesCollectionRequest) Get(ctx context.Context) ([]DeviceCompliancePolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceCompliancePolicy collection
+func (r *DeviceManagementDeviceCompliancePoliciesCollectionRequest) Add(ctx context.Context, reqObj *DeviceCompliancePolicy) (resObj *DeviceCompliancePolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceCompliancePolicyDeviceStateSummary is navigation property
+func (b *DeviceManagementRequestBuilder) DeviceCompliancePolicyDeviceStateSummary() *DeviceCompliancePolicyDeviceStateSummaryRequestBuilder {
+ bb := &DeviceCompliancePolicyDeviceStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceCompliancePolicyDeviceStateSummary"
+ return bb
+}
+
+// DeviceCompliancePolicySettingStateSummaries returns request builder for DeviceCompliancePolicySettingStateSummary collection
+func (b *DeviceManagementRequestBuilder) DeviceCompliancePolicySettingStateSummaries() *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceCompliancePolicySettingStateSummaries"
+ return bb
+}
+
+// DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder is request builder for DeviceCompliancePolicySettingStateSummary collection
+type DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceCompliancePolicySettingStateSummary collection
+func (b *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder) Request() *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest {
+ return &DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceCompliancePolicySettingStateSummary item
+func (b *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder) ID(id string) *DeviceCompliancePolicySettingStateSummaryRequestBuilder {
+ bb := &DeviceCompliancePolicySettingStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest is request for DeviceCompliancePolicySettingStateSummary collection
+type DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceCompliancePolicySettingStateSummary collection
+func (r *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceCompliancePolicySettingStateSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceCompliancePolicySettingStateSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceCompliancePolicySettingStateSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceCompliancePolicySettingStateSummary collection
+func (r *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest) Get(ctx context.Context) ([]DeviceCompliancePolicySettingStateSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceCompliancePolicySettingStateSummary collection
+func (r *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest) Add(ctx context.Context, reqObj *DeviceCompliancePolicySettingStateSummary) (resObj *DeviceCompliancePolicySettingStateSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceConfigurationConflictSummary returns request builder for DeviceConfigurationConflictSummary collection
+func (b *DeviceManagementRequestBuilder) DeviceConfigurationConflictSummary() *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceConfigurationConflictSummary"
+ return bb
+}
+
+// DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder is request builder for DeviceConfigurationConflictSummary collection
+type DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceConfigurationConflictSummary collection
+func (b *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder) Request() *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest {
+ return &DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceConfigurationConflictSummary item
+func (b *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder) ID(id string) *DeviceConfigurationConflictSummaryRequestBuilder {
+ bb := &DeviceConfigurationConflictSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest is request for DeviceConfigurationConflictSummary collection
+type DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceConfigurationConflictSummary collection
+func (r *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceConfigurationConflictSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfigurationConflictSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfigurationConflictSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceConfigurationConflictSummary collection
+func (r *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationConflictSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceConfigurationConflictSummary collection
+func (r *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationConflictSummary) (resObj *DeviceConfigurationConflictSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceConfigurationDeviceStateSummaries is navigation property
+func (b *DeviceManagementRequestBuilder) DeviceConfigurationDeviceStateSummaries() *DeviceConfigurationDeviceStateSummaryRequestBuilder {
+ bb := &DeviceConfigurationDeviceStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceConfigurationDeviceStateSummaries"
+ return bb
+}
+
+// DeviceConfigurationRestrictedAppsViolations returns request builder for RestrictedAppsViolation collection
+func (b *DeviceManagementRequestBuilder) DeviceConfigurationRestrictedAppsViolations() *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceConfigurationRestrictedAppsViolations"
+ return bb
+}
+
+// DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder is request builder for RestrictedAppsViolation collection
+type DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RestrictedAppsViolation collection
+func (b *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder) Request() *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest {
+ return &DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RestrictedAppsViolation item
+func (b *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder) ID(id string) *RestrictedAppsViolationRequestBuilder {
+ bb := &RestrictedAppsViolationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest is request for RestrictedAppsViolation collection
+type DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RestrictedAppsViolation collection
+func (r *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]RestrictedAppsViolation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RestrictedAppsViolation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RestrictedAppsViolation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RestrictedAppsViolation collection
+func (r *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest) Get(ctx context.Context) ([]RestrictedAppsViolation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for RestrictedAppsViolation collection
+func (r *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest) Add(ctx context.Context, reqObj *RestrictedAppsViolation) (resObj *RestrictedAppsViolation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceConfigurationUserStateSummaries is navigation property
+func (b *DeviceManagementRequestBuilder) DeviceConfigurationUserStateSummaries() *DeviceConfigurationUserStateSummaryRequestBuilder {
+ bb := &DeviceConfigurationUserStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceConfigurationUserStateSummaries"
+ return bb
+}
+
+// DeviceConfigurations returns request builder for DeviceConfiguration collection
+func (b *DeviceManagementRequestBuilder) DeviceConfigurations() *DeviceManagementDeviceConfigurationsCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceConfigurations"
+ return bb
+}
+
+// DeviceManagementDeviceConfigurationsCollectionRequestBuilder is request builder for DeviceConfiguration collection
+type DeviceManagementDeviceConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceConfiguration collection
+func (b *DeviceManagementDeviceConfigurationsCollectionRequestBuilder) Request() *DeviceManagementDeviceConfigurationsCollectionRequest {
+ return &DeviceManagementDeviceConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceConfiguration item
+func (b *DeviceManagementDeviceConfigurationsCollectionRequestBuilder) ID(id string) *DeviceConfigurationRequestBuilder {
+ bb := &DeviceConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceConfigurationsCollectionRequest is request for DeviceConfiguration collection
+type DeviceManagementDeviceConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceConfiguration collection
+func (r *DeviceManagementDeviceConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceConfiguration collection
+func (r *DeviceManagementDeviceConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceConfiguration collection
+func (r *DeviceManagementDeviceConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfiguration) (resObj *DeviceConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceConfigurationsAllManagedDeviceCertificateStates returns request builder for ManagedAllDeviceCertificateState collection
+func (b *DeviceManagementRequestBuilder) DeviceConfigurationsAllManagedDeviceCertificateStates() *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceConfigurationsAllManagedDeviceCertificateStates"
+ return bb
+}
+
+// DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedAllDeviceCertificateState collection
+type DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedAllDeviceCertificateState collection
+func (b *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest {
+ return &DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedAllDeviceCertificateState item
+func (b *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedAllDeviceCertificateStateRequestBuilder {
+ bb := &ManagedAllDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest is request for ManagedAllDeviceCertificateState collection
+type DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedAllDeviceCertificateState collection
+func (r *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedAllDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedAllDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedAllDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedAllDeviceCertificateState collection
+func (r *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedAllDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedAllDeviceCertificateState collection
+func (r *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedAllDeviceCertificateState) (resObj *ManagedAllDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceEnrollmentConfigurations returns request builder for DeviceEnrollmentConfiguration collection
+func (b *DeviceManagementRequestBuilder) DeviceEnrollmentConfigurations() *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceEnrollmentConfigurations"
+ return bb
+}
+
+// DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder is request builder for DeviceEnrollmentConfiguration collection
+type DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceEnrollmentConfiguration collection
+func (b *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder) Request() *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest {
+ return &DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceEnrollmentConfiguration item
+func (b *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder) ID(id string) *DeviceEnrollmentConfigurationRequestBuilder {
+ bb := &DeviceEnrollmentConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest is request for DeviceEnrollmentConfiguration collection
+type DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceEnrollmentConfiguration collection
+func (r *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceEnrollmentConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceEnrollmentConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceEnrollmentConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceEnrollmentConfiguration collection
+func (r *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceEnrollmentConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceEnrollmentConfiguration collection
+func (r *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceEnrollmentConfiguration) (resObj *DeviceEnrollmentConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceHealthScripts returns request builder for DeviceHealthScript collection
+func (b *DeviceManagementRequestBuilder) DeviceHealthScripts() *DeviceManagementDeviceHealthScriptsCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceHealthScriptsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceHealthScripts"
+ return bb
+}
+
+// DeviceManagementDeviceHealthScriptsCollectionRequestBuilder is request builder for DeviceHealthScript collection
+type DeviceManagementDeviceHealthScriptsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceHealthScript collection
+func (b *DeviceManagementDeviceHealthScriptsCollectionRequestBuilder) Request() *DeviceManagementDeviceHealthScriptsCollectionRequest {
+ return &DeviceManagementDeviceHealthScriptsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceHealthScript item
+func (b *DeviceManagementDeviceHealthScriptsCollectionRequestBuilder) ID(id string) *DeviceHealthScriptRequestBuilder {
+ bb := &DeviceHealthScriptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceHealthScriptsCollectionRequest is request for DeviceHealthScript collection
+type DeviceManagementDeviceHealthScriptsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceHealthScript collection
+func (r *DeviceManagementDeviceHealthScriptsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceHealthScript, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceHealthScript
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceHealthScript
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceHealthScript collection
+func (r *DeviceManagementDeviceHealthScriptsCollectionRequest) Get(ctx context.Context) ([]DeviceHealthScript, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceHealthScript collection
+func (r *DeviceManagementDeviceHealthScriptsCollectionRequest) Add(ctx context.Context, reqObj *DeviceHealthScript) (resObj *DeviceHealthScript, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceManagementPartners returns request builder for DeviceManagementPartner collection
+func (b *DeviceManagementRequestBuilder) DeviceManagementPartners() *DeviceManagementDeviceManagementPartnersCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceManagementPartnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceManagementPartners"
+ return bb
+}
+
+// DeviceManagementDeviceManagementPartnersCollectionRequestBuilder is request builder for DeviceManagementPartner collection
+type DeviceManagementDeviceManagementPartnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementPartner collection
+func (b *DeviceManagementDeviceManagementPartnersCollectionRequestBuilder) Request() *DeviceManagementDeviceManagementPartnersCollectionRequest {
+ return &DeviceManagementDeviceManagementPartnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementPartner item
+func (b *DeviceManagementDeviceManagementPartnersCollectionRequestBuilder) ID(id string) *DeviceManagementPartnerRequestBuilder {
+ bb := &DeviceManagementPartnerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceManagementPartnersCollectionRequest is request for DeviceManagementPartner collection
+type DeviceManagementDeviceManagementPartnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementPartner collection
+func (r *DeviceManagementDeviceManagementPartnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementPartner, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementPartner
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementPartner
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementPartner collection
+func (r *DeviceManagementDeviceManagementPartnersCollectionRequest) Get(ctx context.Context) ([]DeviceManagementPartner, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementPartner collection
+func (r *DeviceManagementDeviceManagementPartnersCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementPartner) (resObj *DeviceManagementPartner, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceManagementScripts returns request builder for DeviceManagementScript collection
+func (b *DeviceManagementRequestBuilder) DeviceManagementScripts() *DeviceManagementDeviceManagementScriptsCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceManagementScriptsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceManagementScripts"
+ return bb
+}
+
+// DeviceManagementDeviceManagementScriptsCollectionRequestBuilder is request builder for DeviceManagementScript collection
+type DeviceManagementDeviceManagementScriptsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementScript collection
+func (b *DeviceManagementDeviceManagementScriptsCollectionRequestBuilder) Request() *DeviceManagementDeviceManagementScriptsCollectionRequest {
+ return &DeviceManagementDeviceManagementScriptsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementScript item
+func (b *DeviceManagementDeviceManagementScriptsCollectionRequestBuilder) ID(id string) *DeviceManagementScriptRequestBuilder {
+ bb := &DeviceManagementScriptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceManagementScriptsCollectionRequest is request for DeviceManagementScript collection
+type DeviceManagementDeviceManagementScriptsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementScript collection
+func (r *DeviceManagementDeviceManagementScriptsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementScript, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementScript
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementScript
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementScript collection
+func (r *DeviceManagementDeviceManagementScriptsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScript, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementScript collection
+func (r *DeviceManagementDeviceManagementScriptsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScript) (resObj *DeviceManagementScript, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DomainJoinConnectors returns request builder for DeviceManagementDomainJoinConnector collection
+func (b *DeviceManagementRequestBuilder) DomainJoinConnectors() *DeviceManagementDomainJoinConnectorsCollectionRequestBuilder {
+ bb := &DeviceManagementDomainJoinConnectorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/domainJoinConnectors"
+ return bb
+}
+
+// DeviceManagementDomainJoinConnectorsCollectionRequestBuilder is request builder for DeviceManagementDomainJoinConnector collection
+type DeviceManagementDomainJoinConnectorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementDomainJoinConnector collection
+func (b *DeviceManagementDomainJoinConnectorsCollectionRequestBuilder) Request() *DeviceManagementDomainJoinConnectorsCollectionRequest {
+ return &DeviceManagementDomainJoinConnectorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementDomainJoinConnector item
+func (b *DeviceManagementDomainJoinConnectorsCollectionRequestBuilder) ID(id string) *DeviceManagementDomainJoinConnectorRequestBuilder {
+ bb := &DeviceManagementDomainJoinConnectorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDomainJoinConnectorsCollectionRequest is request for DeviceManagementDomainJoinConnector collection
+type DeviceManagementDomainJoinConnectorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementDomainJoinConnector collection
+func (r *DeviceManagementDomainJoinConnectorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementDomainJoinConnector, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementDomainJoinConnector
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementDomainJoinConnector
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementDomainJoinConnector collection
+func (r *DeviceManagementDomainJoinConnectorsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementDomainJoinConnector, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementDomainJoinConnector collection
+func (r *DeviceManagementDomainJoinConnectorsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementDomainJoinConnector) (resObj *DeviceManagementDomainJoinConnector, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// EmbeddedSIMActivationCodePools returns request builder for EmbeddedSIMActivationCodePool collection
+func (b *DeviceManagementRequestBuilder) EmbeddedSIMActivationCodePools() *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder {
+ bb := &DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/embeddedSIMActivationCodePools"
+ return bb
+}
+
+// DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder is request builder for EmbeddedSIMActivationCodePool collection
+type DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EmbeddedSIMActivationCodePool collection
+func (b *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder) Request() *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest {
+ return &DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EmbeddedSIMActivationCodePool item
+func (b *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder) ID(id string) *EmbeddedSIMActivationCodePoolRequestBuilder {
+ bb := &EmbeddedSIMActivationCodePoolRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest is request for EmbeddedSIMActivationCodePool collection
+type DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EmbeddedSIMActivationCodePool collection
+func (r *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EmbeddedSIMActivationCodePool, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EmbeddedSIMActivationCodePool
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EmbeddedSIMActivationCodePool
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EmbeddedSIMActivationCodePool collection
+func (r *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest) Get(ctx context.Context) ([]EmbeddedSIMActivationCodePool, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EmbeddedSIMActivationCodePool collection
+func (r *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest) Add(ctx context.Context, reqObj *EmbeddedSIMActivationCodePool) (resObj *EmbeddedSIMActivationCodePool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ExchangeConnectors returns request builder for DeviceManagementExchangeConnector collection
+func (b *DeviceManagementRequestBuilder) ExchangeConnectors() *DeviceManagementExchangeConnectorsCollectionRequestBuilder {
+ bb := &DeviceManagementExchangeConnectorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/exchangeConnectors"
+ return bb
+}
+
+// DeviceManagementExchangeConnectorsCollectionRequestBuilder is request builder for DeviceManagementExchangeConnector collection
+type DeviceManagementExchangeConnectorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementExchangeConnector collection
+func (b *DeviceManagementExchangeConnectorsCollectionRequestBuilder) Request() *DeviceManagementExchangeConnectorsCollectionRequest {
+ return &DeviceManagementExchangeConnectorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementExchangeConnector item
+func (b *DeviceManagementExchangeConnectorsCollectionRequestBuilder) ID(id string) *DeviceManagementExchangeConnectorRequestBuilder {
+ bb := &DeviceManagementExchangeConnectorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementExchangeConnectorsCollectionRequest is request for DeviceManagementExchangeConnector collection
+type DeviceManagementExchangeConnectorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementExchangeConnector collection
+func (r *DeviceManagementExchangeConnectorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementExchangeConnector, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementExchangeConnector
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementExchangeConnector
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementExchangeConnector collection
+func (r *DeviceManagementExchangeConnectorsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementExchangeConnector, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementExchangeConnector collection
+func (r *DeviceManagementExchangeConnectorsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementExchangeConnector) (resObj *DeviceManagementExchangeConnector, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ExchangeOnPremisesPolicies returns request builder for DeviceManagementExchangeOnPremisesPolicy collection
+func (b *DeviceManagementRequestBuilder) ExchangeOnPremisesPolicies() *DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder {
+ bb := &DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/exchangeOnPremisesPolicies"
+ return bb
+}
+
+// DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder is request builder for DeviceManagementExchangeOnPremisesPolicy collection
+type DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementExchangeOnPremisesPolicy collection
+func (b *DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder) Request() *DeviceManagementExchangeOnPremisesPoliciesCollectionRequest {
+ return &DeviceManagementExchangeOnPremisesPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementExchangeOnPremisesPolicy item
+func (b *DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder) ID(id string) *DeviceManagementExchangeOnPremisesPolicyRequestBuilder {
+ bb := &DeviceManagementExchangeOnPremisesPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementExchangeOnPremisesPoliciesCollectionRequest is request for DeviceManagementExchangeOnPremisesPolicy collection
+type DeviceManagementExchangeOnPremisesPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementExchangeOnPremisesPolicy collection
+func (r *DeviceManagementExchangeOnPremisesPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementExchangeOnPremisesPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementExchangeOnPremisesPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementExchangeOnPremisesPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementExchangeOnPremisesPolicy collection
+func (r *DeviceManagementExchangeOnPremisesPoliciesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementExchangeOnPremisesPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementExchangeOnPremisesPolicy collection
+func (r *DeviceManagementExchangeOnPremisesPoliciesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementExchangeOnPremisesPolicy) (resObj *DeviceManagementExchangeOnPremisesPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ExchangeOnPremisesPolicy is navigation property
+func (b *DeviceManagementRequestBuilder) ExchangeOnPremisesPolicy() *DeviceManagementExchangeOnPremisesPolicyRequestBuilder {
+ bb := &DeviceManagementExchangeOnPremisesPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/exchangeOnPremisesPolicy"
+ return bb
+}
+
+// GroupPolicyConfigurations returns request builder for GroupPolicyConfiguration collection
+func (b *DeviceManagementRequestBuilder) GroupPolicyConfigurations() *DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder {
+ bb := &DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupPolicyConfigurations"
+ return bb
+}
+
+// DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder is request builder for GroupPolicyConfiguration collection
+type DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyConfiguration collection
+func (b *DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder) Request() *DeviceManagementGroupPolicyConfigurationsCollectionRequest {
+ return &DeviceManagementGroupPolicyConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyConfiguration item
+func (b *DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder) ID(id string) *GroupPolicyConfigurationRequestBuilder {
+ bb := &GroupPolicyConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementGroupPolicyConfigurationsCollectionRequest is request for GroupPolicyConfiguration collection
+type DeviceManagementGroupPolicyConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyConfiguration collection
+func (r *DeviceManagementGroupPolicyConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GroupPolicyConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyConfiguration collection
+func (r *DeviceManagementGroupPolicyConfigurationsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GroupPolicyConfiguration collection
+func (r *DeviceManagementGroupPolicyConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyConfiguration) (resObj *GroupPolicyConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupPolicyDefinitionFiles returns request builder for GroupPolicyDefinitionFile collection
+func (b *DeviceManagementRequestBuilder) GroupPolicyDefinitionFiles() *DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder {
+ bb := &DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupPolicyDefinitionFiles"
+ return bb
+}
+
+// DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder is request builder for GroupPolicyDefinitionFile collection
+type DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyDefinitionFile collection
+func (b *DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder) Request() *DeviceManagementGroupPolicyDefinitionFilesCollectionRequest {
+ return &DeviceManagementGroupPolicyDefinitionFilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyDefinitionFile item
+func (b *DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder) ID(id string) *GroupPolicyDefinitionFileRequestBuilder {
+ bb := &GroupPolicyDefinitionFileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementGroupPolicyDefinitionFilesCollectionRequest is request for GroupPolicyDefinitionFile collection
+type DeviceManagementGroupPolicyDefinitionFilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyDefinitionFile collection
+func (r *DeviceManagementGroupPolicyDefinitionFilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GroupPolicyDefinitionFile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyDefinitionFile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyDefinitionFile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyDefinitionFile collection
+func (r *DeviceManagementGroupPolicyDefinitionFilesCollectionRequest) Get(ctx context.Context) ([]GroupPolicyDefinitionFile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GroupPolicyDefinitionFile collection
+func (r *DeviceManagementGroupPolicyDefinitionFilesCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyDefinitionFile) (resObj *GroupPolicyDefinitionFile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupPolicyDefinitions returns request builder for GroupPolicyDefinition collection
+func (b *DeviceManagementRequestBuilder) GroupPolicyDefinitions() *DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder {
+ bb := &DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupPolicyDefinitions"
+ return bb
+}
+
+// DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder is request builder for GroupPolicyDefinition collection
+type DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyDefinition collection
+func (b *DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder) Request() *DeviceManagementGroupPolicyDefinitionsCollectionRequest {
+ return &DeviceManagementGroupPolicyDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyDefinition item
+func (b *DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder) ID(id string) *GroupPolicyDefinitionRequestBuilder {
+ bb := &GroupPolicyDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementGroupPolicyDefinitionsCollectionRequest is request for GroupPolicyDefinition collection
+type DeviceManagementGroupPolicyDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyDefinition collection
+func (r *DeviceManagementGroupPolicyDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GroupPolicyDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyDefinition collection
+func (r *DeviceManagementGroupPolicyDefinitionsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GroupPolicyDefinition collection
+func (r *DeviceManagementGroupPolicyDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyDefinition) (resObj *GroupPolicyDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupPolicyMigrationReports returns request builder for GroupPolicyMigrationReport collection
+func (b *DeviceManagementRequestBuilder) GroupPolicyMigrationReports() *DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder {
+ bb := &DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupPolicyMigrationReports"
+ return bb
+}
+
+// DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder is request builder for GroupPolicyMigrationReport collection
+type DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyMigrationReport collection
+func (b *DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder) Request() *DeviceManagementGroupPolicyMigrationReportsCollectionRequest {
+ return &DeviceManagementGroupPolicyMigrationReportsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyMigrationReport item
+func (b *DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder) ID(id string) *GroupPolicyMigrationReportRequestBuilder {
+ bb := &GroupPolicyMigrationReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementGroupPolicyMigrationReportsCollectionRequest is request for GroupPolicyMigrationReport collection
+type DeviceManagementGroupPolicyMigrationReportsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyMigrationReport collection
+func (r *DeviceManagementGroupPolicyMigrationReportsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GroupPolicyMigrationReport, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyMigrationReport
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyMigrationReport
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyMigrationReport collection
+func (r *DeviceManagementGroupPolicyMigrationReportsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyMigrationReport, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GroupPolicyMigrationReport collection
+func (r *DeviceManagementGroupPolicyMigrationReportsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyMigrationReport) (resObj *GroupPolicyMigrationReport, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ImportedDeviceIdentities returns request builder for ImportedDeviceIdentity collection
+func (b *DeviceManagementRequestBuilder) ImportedDeviceIdentities() *DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder {
+ bb := &DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/importedDeviceIdentities"
+ return bb
+}
+
+// DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder is request builder for ImportedDeviceIdentity collection
+type DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ImportedDeviceIdentity collection
+func (b *DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder) Request() *DeviceManagementImportedDeviceIdentitiesCollectionRequest {
+ return &DeviceManagementImportedDeviceIdentitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ImportedDeviceIdentity item
+func (b *DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder) ID(id string) *ImportedDeviceIdentityRequestBuilder {
+ bb := &ImportedDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementImportedDeviceIdentitiesCollectionRequest is request for ImportedDeviceIdentity collection
+type DeviceManagementImportedDeviceIdentitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ImportedDeviceIdentity collection
+func (r *DeviceManagementImportedDeviceIdentitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ImportedDeviceIdentity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ImportedDeviceIdentity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ImportedDeviceIdentity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ImportedDeviceIdentity collection
+func (r *DeviceManagementImportedDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]ImportedDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ImportedDeviceIdentity collection
+func (r *DeviceManagementImportedDeviceIdentitiesCollectionRequest) Add(ctx context.Context, reqObj *ImportedDeviceIdentity) (resObj *ImportedDeviceIdentity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ImportedWindowsAutopilotDeviceIdentities returns request builder for ImportedWindowsAutopilotDeviceIdentity collection
+func (b *DeviceManagementRequestBuilder) ImportedWindowsAutopilotDeviceIdentities() *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder {
+ bb := &DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/importedWindowsAutopilotDeviceIdentities"
+ return bb
+}
+
+// DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder is request builder for ImportedWindowsAutopilotDeviceIdentity collection
+type DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ImportedWindowsAutopilotDeviceIdentity collection
+func (b *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder) Request() *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest {
+ return &DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ImportedWindowsAutopilotDeviceIdentity item
+func (b *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder) ID(id string) *ImportedWindowsAutopilotDeviceIdentityRequestBuilder {
+ bb := &ImportedWindowsAutopilotDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest is request for ImportedWindowsAutopilotDeviceIdentity collection
+type DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ImportedWindowsAutopilotDeviceIdentity collection
+func (r *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ImportedWindowsAutopilotDeviceIdentity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ImportedWindowsAutopilotDeviceIdentity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ImportedWindowsAutopilotDeviceIdentity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ImportedWindowsAutopilotDeviceIdentity collection
+func (r *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]ImportedWindowsAutopilotDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ImportedWindowsAutopilotDeviceIdentity collection
+func (r *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest) Add(ctx context.Context, reqObj *ImportedWindowsAutopilotDeviceIdentity) (resObj *ImportedWindowsAutopilotDeviceIdentity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Intents returns request builder for DeviceManagementIntent collection
+func (b *DeviceManagementRequestBuilder) Intents() *DeviceManagementIntentsCollectionRequestBuilder {
+ bb := &DeviceManagementIntentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/intents"
+ return bb
+}
+
+// DeviceManagementIntentsCollectionRequestBuilder is request builder for DeviceManagementIntent collection
+type DeviceManagementIntentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementIntent collection
+func (b *DeviceManagementIntentsCollectionRequestBuilder) Request() *DeviceManagementIntentsCollectionRequest {
+ return &DeviceManagementIntentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementIntent item
+func (b *DeviceManagementIntentsCollectionRequestBuilder) ID(id string) *DeviceManagementIntentRequestBuilder {
+ bb := &DeviceManagementIntentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntentsCollectionRequest is request for DeviceManagementIntent collection
+type DeviceManagementIntentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementIntent collection
+func (r *DeviceManagementIntentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementIntent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementIntent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementIntent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementIntent collection
+func (r *DeviceManagementIntentsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementIntent collection
+func (r *DeviceManagementIntentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntent) (resObj *DeviceManagementIntent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IntuneBrandingProfiles returns request builder for IntuneBrandingProfile collection
+func (b *DeviceManagementRequestBuilder) IntuneBrandingProfiles() *DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder {
+ bb := &DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/intuneBrandingProfiles"
+ return bb
+}
+
+// DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder is request builder for IntuneBrandingProfile collection
+type DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IntuneBrandingProfile collection
+func (b *DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder) Request() *DeviceManagementIntuneBrandingProfilesCollectionRequest {
+ return &DeviceManagementIntuneBrandingProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IntuneBrandingProfile item
+func (b *DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder) ID(id string) *IntuneBrandingProfileRequestBuilder {
+ bb := &IntuneBrandingProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntuneBrandingProfilesCollectionRequest is request for IntuneBrandingProfile collection
+type DeviceManagementIntuneBrandingProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IntuneBrandingProfile collection
+func (r *DeviceManagementIntuneBrandingProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]IntuneBrandingProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IntuneBrandingProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IntuneBrandingProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IntuneBrandingProfile collection
+func (r *DeviceManagementIntuneBrandingProfilesCollectionRequest) Get(ctx context.Context) ([]IntuneBrandingProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for IntuneBrandingProfile collection
+func (r *DeviceManagementIntuneBrandingProfilesCollectionRequest) Add(ctx context.Context, reqObj *IntuneBrandingProfile) (resObj *IntuneBrandingProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IOSUpdateStatuses returns request builder for IOSUpdateDeviceStatus collection
+func (b *DeviceManagementRequestBuilder) IOSUpdateStatuses() *DeviceManagementIOSUpdateStatusesCollectionRequestBuilder {
+ bb := &DeviceManagementIOSUpdateStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/iosUpdateStatuses"
+ return bb
+}
+
+// DeviceManagementIOSUpdateStatusesCollectionRequestBuilder is request builder for IOSUpdateDeviceStatus collection
+type DeviceManagementIOSUpdateStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IOSUpdateDeviceStatus collection
+func (b *DeviceManagementIOSUpdateStatusesCollectionRequestBuilder) Request() *DeviceManagementIOSUpdateStatusesCollectionRequest {
+ return &DeviceManagementIOSUpdateStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IOSUpdateDeviceStatus item
+func (b *DeviceManagementIOSUpdateStatusesCollectionRequestBuilder) ID(id string) *IOSUpdateDeviceStatusRequestBuilder {
+ bb := &IOSUpdateDeviceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIOSUpdateStatusesCollectionRequest is request for IOSUpdateDeviceStatus collection
+type DeviceManagementIOSUpdateStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IOSUpdateDeviceStatus collection
+func (r *DeviceManagementIOSUpdateStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]IOSUpdateDeviceStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IOSUpdateDeviceStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IOSUpdateDeviceStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IOSUpdateDeviceStatus collection
+func (r *DeviceManagementIOSUpdateStatusesCollectionRequest) Get(ctx context.Context) ([]IOSUpdateDeviceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for IOSUpdateDeviceStatus collection
+func (r *DeviceManagementIOSUpdateStatusesCollectionRequest) Add(ctx context.Context, reqObj *IOSUpdateDeviceStatus) (resObj *IOSUpdateDeviceStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceEncryptionStates returns request builder for ManagedDeviceEncryptionState collection
+func (b *DeviceManagementRequestBuilder) ManagedDeviceEncryptionStates() *DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder {
+ bb := &DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceEncryptionStates"
+ return bb
+}
+
+// DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder is request builder for ManagedDeviceEncryptionState collection
+type DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceEncryptionState collection
+func (b *DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder) Request() *DeviceManagementManagedDeviceEncryptionStatesCollectionRequest {
+ return &DeviceManagementManagedDeviceEncryptionStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceEncryptionState item
+func (b *DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceEncryptionStateRequestBuilder {
+ bb := &ManagedDeviceEncryptionStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementManagedDeviceEncryptionStatesCollectionRequest is request for ManagedDeviceEncryptionState collection
+type DeviceManagementManagedDeviceEncryptionStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceEncryptionState collection
+func (r *DeviceManagementManagedDeviceEncryptionStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceEncryptionState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceEncryptionState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceEncryptionState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceEncryptionState collection
+func (r *DeviceManagementManagedDeviceEncryptionStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceEncryptionState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceEncryptionState collection
+func (r *DeviceManagementManagedDeviceEncryptionStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceEncryptionState) (resObj *ManagedDeviceEncryptionState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceOverview is navigation property
+func (b *DeviceManagementRequestBuilder) ManagedDeviceOverview() *ManagedDeviceOverviewRequestBuilder {
+ bb := &ManagedDeviceOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceOverview"
+ return bb
+}
+
+// ManagedDevices returns request builder for ManagedDevice collection
+func (b *DeviceManagementRequestBuilder) ManagedDevices() *DeviceManagementManagedDevicesCollectionRequestBuilder {
+ bb := &DeviceManagementManagedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDevices"
+ return bb
+}
+
+// DeviceManagementManagedDevicesCollectionRequestBuilder is request builder for ManagedDevice collection
+type DeviceManagementManagedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDevice collection
+func (b *DeviceManagementManagedDevicesCollectionRequestBuilder) Request() *DeviceManagementManagedDevicesCollectionRequest {
+ return &DeviceManagementManagedDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDevice item
+func (b *DeviceManagementManagedDevicesCollectionRequestBuilder) ID(id string) *ManagedDeviceRequestBuilder {
+ bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementManagedDevicesCollectionRequest is request for ManagedDevice collection
+type DeviceManagementManagedDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDevice collection
+func (r *DeviceManagementManagedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDevice, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDevice
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDevice
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDevice collection
+func (r *DeviceManagementManagedDevicesCollectionRequest) Get(ctx context.Context) ([]ManagedDevice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDevice collection
+func (r *DeviceManagementManagedDevicesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDevice) (resObj *ManagedDevice, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagementConditionStatements returns request builder for ManagementConditionStatement collection
+func (b *DeviceManagementRequestBuilder) ManagementConditionStatements() *DeviceManagementManagementConditionStatementsCollectionRequestBuilder {
+ bb := &DeviceManagementManagementConditionStatementsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managementConditionStatements"
+ return bb
+}
+
+// DeviceManagementManagementConditionStatementsCollectionRequestBuilder is request builder for ManagementConditionStatement collection
+type DeviceManagementManagementConditionStatementsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagementConditionStatement collection
+func (b *DeviceManagementManagementConditionStatementsCollectionRequestBuilder) Request() *DeviceManagementManagementConditionStatementsCollectionRequest {
+ return &DeviceManagementManagementConditionStatementsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagementConditionStatement item
+func (b *DeviceManagementManagementConditionStatementsCollectionRequestBuilder) ID(id string) *ManagementConditionStatementRequestBuilder {
+ bb := &ManagementConditionStatementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementManagementConditionStatementsCollectionRequest is request for ManagementConditionStatement collection
+type DeviceManagementManagementConditionStatementsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagementConditionStatement collection
+func (r *DeviceManagementManagementConditionStatementsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagementConditionStatement, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagementConditionStatement
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagementConditionStatement
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagementConditionStatement collection
+func (r *DeviceManagementManagementConditionStatementsCollectionRequest) Get(ctx context.Context) ([]ManagementConditionStatement, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagementConditionStatement collection
+func (r *DeviceManagementManagementConditionStatementsCollectionRequest) Add(ctx context.Context, reqObj *ManagementConditionStatement) (resObj *ManagementConditionStatement, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagementConditions returns request builder for ManagementCondition collection
+func (b *DeviceManagementRequestBuilder) ManagementConditions() *DeviceManagementManagementConditionsCollectionRequestBuilder {
+ bb := &DeviceManagementManagementConditionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managementConditions"
+ return bb
+}
+
+// DeviceManagementManagementConditionsCollectionRequestBuilder is request builder for ManagementCondition collection
+type DeviceManagementManagementConditionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagementCondition collection
+func (b *DeviceManagementManagementConditionsCollectionRequestBuilder) Request() *DeviceManagementManagementConditionsCollectionRequest {
+ return &DeviceManagementManagementConditionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagementCondition item
+func (b *DeviceManagementManagementConditionsCollectionRequestBuilder) ID(id string) *ManagementConditionRequestBuilder {
+ bb := &ManagementConditionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementManagementConditionsCollectionRequest is request for ManagementCondition collection
+type DeviceManagementManagementConditionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagementCondition collection
+func (r *DeviceManagementManagementConditionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagementCondition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagementCondition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagementCondition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagementCondition collection
+func (r *DeviceManagementManagementConditionsCollectionRequest) Get(ctx context.Context) ([]ManagementCondition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagementCondition collection
+func (r *DeviceManagementManagementConditionsCollectionRequest) Add(ctx context.Context, reqObj *ManagementCondition) (resObj *ManagementCondition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MobileAppTroubleshootingEvents returns request builder for MobileAppTroubleshootingEvent collection
+func (b *DeviceManagementRequestBuilder) MobileAppTroubleshootingEvents() *DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder {
+ bb := &DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mobileAppTroubleshootingEvents"
+ return bb
+}
+
+// DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder is request builder for MobileAppTroubleshootingEvent collection
+type DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppTroubleshootingEvent collection
+func (b *DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder) Request() *DeviceManagementMobileAppTroubleshootingEventsCollectionRequest {
+ return &DeviceManagementMobileAppTroubleshootingEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppTroubleshootingEvent item
+func (b *DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder) ID(id string) *MobileAppTroubleshootingEventRequestBuilder {
+ bb := &MobileAppTroubleshootingEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementMobileAppTroubleshootingEventsCollectionRequest is request for MobileAppTroubleshootingEvent collection
+type DeviceManagementMobileAppTroubleshootingEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppTroubleshootingEvent collection
+func (r *DeviceManagementMobileAppTroubleshootingEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MobileAppTroubleshootingEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppTroubleshootingEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppTroubleshootingEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppTroubleshootingEvent collection
+func (r *DeviceManagementMobileAppTroubleshootingEventsCollectionRequest) Get(ctx context.Context) ([]MobileAppTroubleshootingEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MobileAppTroubleshootingEvent collection
+func (r *DeviceManagementMobileAppTroubleshootingEventsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppTroubleshootingEvent) (resObj *MobileAppTroubleshootingEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MobileThreatDefenseConnectors returns request builder for MobileThreatDefenseConnector collection
+func (b *DeviceManagementRequestBuilder) MobileThreatDefenseConnectors() *DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder {
+ bb := &DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mobileThreatDefenseConnectors"
+ return bb
+}
+
+// DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder is request builder for MobileThreatDefenseConnector collection
+type DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileThreatDefenseConnector collection
+func (b *DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder) Request() *DeviceManagementMobileThreatDefenseConnectorsCollectionRequest {
+ return &DeviceManagementMobileThreatDefenseConnectorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileThreatDefenseConnector item
+func (b *DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder) ID(id string) *MobileThreatDefenseConnectorRequestBuilder {
+ bb := &MobileThreatDefenseConnectorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementMobileThreatDefenseConnectorsCollectionRequest is request for MobileThreatDefenseConnector collection
+type DeviceManagementMobileThreatDefenseConnectorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileThreatDefenseConnector collection
+func (r *DeviceManagementMobileThreatDefenseConnectorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MobileThreatDefenseConnector, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileThreatDefenseConnector
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileThreatDefenseConnector
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileThreatDefenseConnector collection
+func (r *DeviceManagementMobileThreatDefenseConnectorsCollectionRequest) Get(ctx context.Context) ([]MobileThreatDefenseConnector, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MobileThreatDefenseConnector collection
+func (r *DeviceManagementMobileThreatDefenseConnectorsCollectionRequest) Add(ctx context.Context, reqObj *MobileThreatDefenseConnector) (resObj *MobileThreatDefenseConnector, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// NdesConnectors returns request builder for NdesConnector collection
+func (b *DeviceManagementRequestBuilder) NdesConnectors() *DeviceManagementNdesConnectorsCollectionRequestBuilder {
+ bb := &DeviceManagementNdesConnectorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/ndesConnectors"
+ return bb
+}
+
+// DeviceManagementNdesConnectorsCollectionRequestBuilder is request builder for NdesConnector collection
+type DeviceManagementNdesConnectorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for NdesConnector collection
+func (b *DeviceManagementNdesConnectorsCollectionRequestBuilder) Request() *DeviceManagementNdesConnectorsCollectionRequest {
+ return &DeviceManagementNdesConnectorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for NdesConnector item
+func (b *DeviceManagementNdesConnectorsCollectionRequestBuilder) ID(id string) *NdesConnectorRequestBuilder {
+ bb := &NdesConnectorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementNdesConnectorsCollectionRequest is request for NdesConnector collection
+type DeviceManagementNdesConnectorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for NdesConnector collection
+func (r *DeviceManagementNdesConnectorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]NdesConnector, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []NdesConnector
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []NdesConnector
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for NdesConnector collection
+func (r *DeviceManagementNdesConnectorsCollectionRequest) Get(ctx context.Context) ([]NdesConnector, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for NdesConnector collection
+func (r *DeviceManagementNdesConnectorsCollectionRequest) Add(ctx context.Context, reqObj *NdesConnector) (resObj *NdesConnector, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// NotificationMessageTemplates returns request builder for NotificationMessageTemplate collection
+func (b *DeviceManagementRequestBuilder) NotificationMessageTemplates() *DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder {
+ bb := &DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/notificationMessageTemplates"
+ return bb
+}
+
+// DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder is request builder for NotificationMessageTemplate collection
+type DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for NotificationMessageTemplate collection
+func (b *DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder) Request() *DeviceManagementNotificationMessageTemplatesCollectionRequest {
+ return &DeviceManagementNotificationMessageTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for NotificationMessageTemplate item
+func (b *DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder) ID(id string) *NotificationMessageTemplateRequestBuilder {
+ bb := &NotificationMessageTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementNotificationMessageTemplatesCollectionRequest is request for NotificationMessageTemplate collection
+type DeviceManagementNotificationMessageTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for NotificationMessageTemplate collection
+func (r *DeviceManagementNotificationMessageTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]NotificationMessageTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []NotificationMessageTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []NotificationMessageTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for NotificationMessageTemplate collection
+func (r *DeviceManagementNotificationMessageTemplatesCollectionRequest) Get(ctx context.Context) ([]NotificationMessageTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for NotificationMessageTemplate collection
+func (r *DeviceManagementNotificationMessageTemplatesCollectionRequest) Add(ctx context.Context, reqObj *NotificationMessageTemplate) (resObj *NotificationMessageTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RemoteActionAudits returns request builder for RemoteActionAudit collection
+func (b *DeviceManagementRequestBuilder) RemoteActionAudits() *DeviceManagementRemoteActionAuditsCollectionRequestBuilder {
+ bb := &DeviceManagementRemoteActionAuditsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/remoteActionAudits"
+ return bb
+}
+
+// DeviceManagementRemoteActionAuditsCollectionRequestBuilder is request builder for RemoteActionAudit collection
+type DeviceManagementRemoteActionAuditsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RemoteActionAudit collection
+func (b *DeviceManagementRemoteActionAuditsCollectionRequestBuilder) Request() *DeviceManagementRemoteActionAuditsCollectionRequest {
+ return &DeviceManagementRemoteActionAuditsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RemoteActionAudit item
+func (b *DeviceManagementRemoteActionAuditsCollectionRequestBuilder) ID(id string) *RemoteActionAuditRequestBuilder {
+ bb := &RemoteActionAuditRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementRemoteActionAuditsCollectionRequest is request for RemoteActionAudit collection
+type DeviceManagementRemoteActionAuditsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RemoteActionAudit collection
+func (r *DeviceManagementRemoteActionAuditsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]RemoteActionAudit, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RemoteActionAudit
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RemoteActionAudit
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RemoteActionAudit collection
+func (r *DeviceManagementRemoteActionAuditsCollectionRequest) Get(ctx context.Context) ([]RemoteActionAudit, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for RemoteActionAudit collection
+func (r *DeviceManagementRemoteActionAuditsCollectionRequest) Add(ctx context.Context, reqObj *RemoteActionAudit) (resObj *RemoteActionAudit, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RemoteAssistancePartners returns request builder for RemoteAssistancePartner collection
+func (b *DeviceManagementRequestBuilder) RemoteAssistancePartners() *DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder {
+ bb := &DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/remoteAssistancePartners"
+ return bb
+}
+
+// DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder is request builder for RemoteAssistancePartner collection
+type DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RemoteAssistancePartner collection
+func (b *DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder) Request() *DeviceManagementRemoteAssistancePartnersCollectionRequest {
+ return &DeviceManagementRemoteAssistancePartnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RemoteAssistancePartner item
+func (b *DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder) ID(id string) *RemoteAssistancePartnerRequestBuilder {
+ bb := &RemoteAssistancePartnerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementRemoteAssistancePartnersCollectionRequest is request for RemoteAssistancePartner collection
+type DeviceManagementRemoteAssistancePartnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RemoteAssistancePartner collection
+func (r *DeviceManagementRemoteAssistancePartnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]RemoteAssistancePartner, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RemoteAssistancePartner
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RemoteAssistancePartner
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RemoteAssistancePartner collection
+func (r *DeviceManagementRemoteAssistancePartnersCollectionRequest) Get(ctx context.Context) ([]RemoteAssistancePartner, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for RemoteAssistancePartner collection
+func (r *DeviceManagementRemoteAssistancePartnersCollectionRequest) Add(ctx context.Context, reqObj *RemoteAssistancePartner) (resObj *RemoteAssistancePartner, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Reports is navigation property
+func (b *DeviceManagementRequestBuilder) Reports() *DeviceManagementReportsRequestBuilder {
+ bb := &DeviceManagementReportsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/reports"
+ return bb
+}
+
+// ResourceOperations returns request builder for ResourceOperation collection
+func (b *DeviceManagementRequestBuilder) ResourceOperations() *DeviceManagementResourceOperationsCollectionRequestBuilder {
+ bb := &DeviceManagementResourceOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resourceOperations"
+ return bb
+}
+
+// DeviceManagementResourceOperationsCollectionRequestBuilder is request builder for ResourceOperation collection
+type DeviceManagementResourceOperationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ResourceOperation collection
+func (b *DeviceManagementResourceOperationsCollectionRequestBuilder) Request() *DeviceManagementResourceOperationsCollectionRequest {
+ return &DeviceManagementResourceOperationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ResourceOperation item
+func (b *DeviceManagementResourceOperationsCollectionRequestBuilder) ID(id string) *ResourceOperationRequestBuilder {
+ bb := &ResourceOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementResourceOperationsCollectionRequest is request for ResourceOperation collection
+type DeviceManagementResourceOperationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ResourceOperation collection
+func (r *DeviceManagementResourceOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ResourceOperation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ResourceOperation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ResourceOperation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ResourceOperation collection
+func (r *DeviceManagementResourceOperationsCollectionRequest) Get(ctx context.Context) ([]ResourceOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ResourceOperation collection
+func (r *DeviceManagementResourceOperationsCollectionRequest) Add(ctx context.Context, reqObj *ResourceOperation) (resObj *ResourceOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleAssignments returns request builder for DeviceAndAppManagementRoleAssignment collection
+func (b *DeviceManagementRequestBuilder) RoleAssignments() *DeviceManagementRoleAssignmentsCollectionRequestBuilder {
+ bb := &DeviceManagementRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleAssignments"
+ return bb
+}
+
+// DeviceManagementRoleAssignmentsCollectionRequestBuilder is request builder for DeviceAndAppManagementRoleAssignment collection
+type DeviceManagementRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceAndAppManagementRoleAssignment collection
+func (b *DeviceManagementRoleAssignmentsCollectionRequestBuilder) Request() *DeviceManagementRoleAssignmentsCollectionRequest {
+ return &DeviceManagementRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceAndAppManagementRoleAssignment item
+func (b *DeviceManagementRoleAssignmentsCollectionRequestBuilder) ID(id string) *DeviceAndAppManagementRoleAssignmentRequestBuilder {
+ bb := &DeviceAndAppManagementRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementRoleAssignmentsCollectionRequest is request for DeviceAndAppManagementRoleAssignment collection
+type DeviceManagementRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceAndAppManagementRoleAssignment collection
+func (r *DeviceManagementRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceAndAppManagementRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceAndAppManagementRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceAndAppManagementRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceAndAppManagementRoleAssignment collection
+func (r *DeviceManagementRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceAndAppManagementRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceAndAppManagementRoleAssignment collection
+func (r *DeviceManagementRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceAndAppManagementRoleAssignment) (resObj *DeviceAndAppManagementRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleDefinitions returns request builder for RoleDefinition collection
+func (b *DeviceManagementRequestBuilder) RoleDefinitions() *DeviceManagementRoleDefinitionsCollectionRequestBuilder {
+ bb := &DeviceManagementRoleDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinitions"
+ return bb
+}
+
+// DeviceManagementRoleDefinitionsCollectionRequestBuilder is request builder for RoleDefinition collection
+type DeviceManagementRoleDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RoleDefinition collection
+func (b *DeviceManagementRoleDefinitionsCollectionRequestBuilder) Request() *DeviceManagementRoleDefinitionsCollectionRequest {
+ return &DeviceManagementRoleDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RoleDefinition item
+func (b *DeviceManagementRoleDefinitionsCollectionRequestBuilder) ID(id string) *RoleDefinitionRequestBuilder {
+ bb := &RoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementRoleDefinitionsCollectionRequest is request for RoleDefinition collection
+type DeviceManagementRoleDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RoleDefinition collection
+func (r *DeviceManagementRoleDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]RoleDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RoleDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RoleDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RoleDefinition collection
+func (r *DeviceManagementRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]RoleDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for RoleDefinition collection
+func (r *DeviceManagementRoleDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *RoleDefinition) (resObj *RoleDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleScopeTags returns request builder for RoleScopeTag collection
+func (b *DeviceManagementRequestBuilder) RoleScopeTags() *DeviceManagementRoleScopeTagsCollectionRequestBuilder {
+ bb := &DeviceManagementRoleScopeTagsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleScopeTags"
+ return bb
+}
+
+// DeviceManagementRoleScopeTagsCollectionRequestBuilder is request builder for RoleScopeTag collection
+type DeviceManagementRoleScopeTagsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RoleScopeTag collection
+func (b *DeviceManagementRoleScopeTagsCollectionRequestBuilder) Request() *DeviceManagementRoleScopeTagsCollectionRequest {
+ return &DeviceManagementRoleScopeTagsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RoleScopeTag item
+func (b *DeviceManagementRoleScopeTagsCollectionRequestBuilder) ID(id string) *RoleScopeTagRequestBuilder {
+ bb := &RoleScopeTagRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementRoleScopeTagsCollectionRequest is request for RoleScopeTag collection
+type DeviceManagementRoleScopeTagsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RoleScopeTag collection
+func (r *DeviceManagementRoleScopeTagsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]RoleScopeTag, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RoleScopeTag
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RoleScopeTag
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RoleScopeTag collection
+func (r *DeviceManagementRoleScopeTagsCollectionRequest) Get(ctx context.Context) ([]RoleScopeTag, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for RoleScopeTag collection
+func (r *DeviceManagementRoleScopeTagsCollectionRequest) Add(ctx context.Context, reqObj *RoleScopeTag) (resObj *RoleScopeTag, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SettingDefinitions returns request builder for DeviceManagementSettingDefinition collection
+func (b *DeviceManagementRequestBuilder) SettingDefinitions() *DeviceManagementSettingDefinitionsCollectionRequestBuilder {
+ bb := &DeviceManagementSettingDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settingDefinitions"
+ return bb
+}
+
+// DeviceManagementSettingDefinitionsCollectionRequestBuilder is request builder for DeviceManagementSettingDefinition collection
+type DeviceManagementSettingDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingDefinition collection
+func (b *DeviceManagementSettingDefinitionsCollectionRequestBuilder) Request() *DeviceManagementSettingDefinitionsCollectionRequest {
+ return &DeviceManagementSettingDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingDefinition item
+func (b *DeviceManagementSettingDefinitionsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingDefinitionRequestBuilder {
+ bb := &DeviceManagementSettingDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementSettingDefinitionsCollectionRequest is request for DeviceManagementSettingDefinition collection
+type DeviceManagementSettingDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingDefinition collection
+func (r *DeviceManagementSettingDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementSettingDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingDefinition collection
+func (r *DeviceManagementSettingDefinitionsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementSettingDefinition collection
+func (r *DeviceManagementSettingDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingDefinition) (resObj *DeviceManagementSettingDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SoftwareUpdateStatusSummary is navigation property
+func (b *DeviceManagementRequestBuilder) SoftwareUpdateStatusSummary() *SoftwareUpdateStatusSummaryRequestBuilder {
+ bb := &SoftwareUpdateStatusSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/softwareUpdateStatusSummary"
+ return bb
+}
+
+// TelecomExpenseManagementPartners returns request builder for TelecomExpenseManagementPartner collection
+func (b *DeviceManagementRequestBuilder) TelecomExpenseManagementPartners() *DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder {
+ bb := &DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/telecomExpenseManagementPartners"
+ return bb
+}
+
+// DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder is request builder for TelecomExpenseManagementPartner collection
+type DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TelecomExpenseManagementPartner collection
+func (b *DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder) Request() *DeviceManagementTelecomExpenseManagementPartnersCollectionRequest {
+ return &DeviceManagementTelecomExpenseManagementPartnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TelecomExpenseManagementPartner item
+func (b *DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder) ID(id string) *TelecomExpenseManagementPartnerRequestBuilder {
+ bb := &TelecomExpenseManagementPartnerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementTelecomExpenseManagementPartnersCollectionRequest is request for TelecomExpenseManagementPartner collection
+type DeviceManagementTelecomExpenseManagementPartnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TelecomExpenseManagementPartner collection
+func (r *DeviceManagementTelecomExpenseManagementPartnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TelecomExpenseManagementPartner, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TelecomExpenseManagementPartner
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TelecomExpenseManagementPartner
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TelecomExpenseManagementPartner collection
+func (r *DeviceManagementTelecomExpenseManagementPartnersCollectionRequest) Get(ctx context.Context) ([]TelecomExpenseManagementPartner, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TelecomExpenseManagementPartner collection
+func (r *DeviceManagementTelecomExpenseManagementPartnersCollectionRequest) Add(ctx context.Context, reqObj *TelecomExpenseManagementPartner) (resObj *TelecomExpenseManagementPartner, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Templates returns request builder for DeviceManagementTemplate collection
+func (b *DeviceManagementRequestBuilder) Templates() *DeviceManagementTemplatesCollectionRequestBuilder {
+ bb := &DeviceManagementTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/templates"
+ return bb
+}
+
+// DeviceManagementTemplatesCollectionRequestBuilder is request builder for DeviceManagementTemplate collection
+type DeviceManagementTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementTemplate collection
+func (b *DeviceManagementTemplatesCollectionRequestBuilder) Request() *DeviceManagementTemplatesCollectionRequest {
+ return &DeviceManagementTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementTemplate item
+func (b *DeviceManagementTemplatesCollectionRequestBuilder) ID(id string) *DeviceManagementTemplateRequestBuilder {
+ bb := &DeviceManagementTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementTemplatesCollectionRequest is request for DeviceManagementTemplate collection
+type DeviceManagementTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementTemplate collection
+func (r *DeviceManagementTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementTemplate collection
+func (r *DeviceManagementTemplatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementTemplate collection
+func (r *DeviceManagementTemplatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementTemplate) (resObj *DeviceManagementTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TermsAndConditions returns request builder for TermsAndConditions collection
+func (b *DeviceManagementRequestBuilder) TermsAndConditions() *DeviceManagementTermsAndConditionsCollectionRequestBuilder {
+ bb := &DeviceManagementTermsAndConditionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/termsAndConditions"
+ return bb
+}
+
+// DeviceManagementTermsAndConditionsCollectionRequestBuilder is request builder for TermsAndConditions collection
+type DeviceManagementTermsAndConditionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TermsAndConditions collection
+func (b *DeviceManagementTermsAndConditionsCollectionRequestBuilder) Request() *DeviceManagementTermsAndConditionsCollectionRequest {
+ return &DeviceManagementTermsAndConditionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TermsAndConditions item
+func (b *DeviceManagementTermsAndConditionsCollectionRequestBuilder) ID(id string) *TermsAndConditionsRequestBuilder {
+ bb := &TermsAndConditionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementTermsAndConditionsCollectionRequest is request for TermsAndConditions collection
+type DeviceManagementTermsAndConditionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TermsAndConditions collection
+func (r *DeviceManagementTermsAndConditionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TermsAndConditions, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TermsAndConditions
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TermsAndConditions
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TermsAndConditions collection
+func (r *DeviceManagementTermsAndConditionsCollectionRequest) Get(ctx context.Context) ([]TermsAndConditions, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TermsAndConditions collection
+func (r *DeviceManagementTermsAndConditionsCollectionRequest) Add(ctx context.Context, reqObj *TermsAndConditions) (resObj *TermsAndConditions, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TroubleshootingEvents returns request builder for DeviceManagementTroubleshootingEvent collection
+func (b *DeviceManagementRequestBuilder) TroubleshootingEvents() *DeviceManagementTroubleshootingEventsCollectionRequestBuilder {
+ bb := &DeviceManagementTroubleshootingEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/troubleshootingEvents"
+ return bb
+}
+
+// DeviceManagementTroubleshootingEventsCollectionRequestBuilder is request builder for DeviceManagementTroubleshootingEvent collection
+type DeviceManagementTroubleshootingEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementTroubleshootingEvent collection
+func (b *DeviceManagementTroubleshootingEventsCollectionRequestBuilder) Request() *DeviceManagementTroubleshootingEventsCollectionRequest {
+ return &DeviceManagementTroubleshootingEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementTroubleshootingEvent item
+func (b *DeviceManagementTroubleshootingEventsCollectionRequestBuilder) ID(id string) *DeviceManagementTroubleshootingEventRequestBuilder {
+ bb := &DeviceManagementTroubleshootingEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementTroubleshootingEventsCollectionRequest is request for DeviceManagementTroubleshootingEvent collection
+type DeviceManagementTroubleshootingEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementTroubleshootingEvent collection
+func (r *DeviceManagementTroubleshootingEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementTroubleshootingEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementTroubleshootingEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementTroubleshootingEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementTroubleshootingEvent collection
+func (r *DeviceManagementTroubleshootingEventsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTroubleshootingEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementTroubleshootingEvent collection
+func (r *DeviceManagementTroubleshootingEventsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementTroubleshootingEvent) (resObj *DeviceManagementTroubleshootingEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserExperienceAnalyticsBaselines returns request builder for UserExperienceAnalyticsBaseline collection
+func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsBaselines() *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder {
+ bb := &DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userExperienceAnalyticsBaselines"
+ return bb
+}
+
+// DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder is request builder for UserExperienceAnalyticsBaseline collection
+type DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserExperienceAnalyticsBaseline collection
+func (b *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder) Request() *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest {
+ return &DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserExperienceAnalyticsBaseline item
+func (b *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsBaselineRequestBuilder {
+ bb := &UserExperienceAnalyticsBaselineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest is request for UserExperienceAnalyticsBaseline collection
+type DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserExperienceAnalyticsBaseline collection
+func (r *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UserExperienceAnalyticsBaseline, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserExperienceAnalyticsBaseline
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserExperienceAnalyticsBaseline
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserExperienceAnalyticsBaseline collection
+func (r *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsBaseline, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UserExperienceAnalyticsBaseline collection
+func (r *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsBaseline) (resObj *UserExperienceAnalyticsBaseline, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserExperienceAnalyticsCategories returns request builder for UserExperienceAnalyticsCategory collection
+func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsCategories() *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder {
+ bb := &DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userExperienceAnalyticsCategories"
+ return bb
+}
+
+// DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder is request builder for UserExperienceAnalyticsCategory collection
+type DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserExperienceAnalyticsCategory collection
+func (b *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder) Request() *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest {
+ return &DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserExperienceAnalyticsCategory item
+func (b *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsCategoryRequestBuilder {
+ bb := &UserExperienceAnalyticsCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest is request for UserExperienceAnalyticsCategory collection
+type DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserExperienceAnalyticsCategory collection
+func (r *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UserExperienceAnalyticsCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserExperienceAnalyticsCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserExperienceAnalyticsCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserExperienceAnalyticsCategory collection
+func (r *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UserExperienceAnalyticsCategory collection
+func (r *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsCategory) (resObj *UserExperienceAnalyticsCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserExperienceAnalyticsDevicePerformance returns request builder for UserExperienceAnalyticsDevicePerformance collection
+func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsDevicePerformance() *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder {
+ bb := &DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userExperienceAnalyticsDevicePerformance"
+ return bb
+}
+
+// DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder is request builder for UserExperienceAnalyticsDevicePerformance collection
+type DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserExperienceAnalyticsDevicePerformance collection
+func (b *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder) Request() *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest {
+ return &DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserExperienceAnalyticsDevicePerformance item
+func (b *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsDevicePerformanceRequestBuilder {
+ bb := &UserExperienceAnalyticsDevicePerformanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest is request for UserExperienceAnalyticsDevicePerformance collection
+type DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserExperienceAnalyticsDevicePerformance collection
+func (r *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UserExperienceAnalyticsDevicePerformance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserExperienceAnalyticsDevicePerformance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserExperienceAnalyticsDevicePerformance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserExperienceAnalyticsDevicePerformance collection
+func (r *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsDevicePerformance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UserExperienceAnalyticsDevicePerformance collection
+func (r *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsDevicePerformance) (resObj *UserExperienceAnalyticsDevicePerformance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserExperienceAnalyticsDeviceStartupHistory returns request builder for UserExperienceAnalyticsDeviceStartupHistory collection
+func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsDeviceStartupHistory() *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder {
+ bb := &DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userExperienceAnalyticsDeviceStartupHistory"
+ return bb
+}
+
+// DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder is request builder for UserExperienceAnalyticsDeviceStartupHistory collection
+type DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserExperienceAnalyticsDeviceStartupHistory collection
+func (b *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder) Request() *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest {
+ return &DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserExperienceAnalyticsDeviceStartupHistory item
+func (b *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder {
+ bb := &UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest is request for UserExperienceAnalyticsDeviceStartupHistory collection
+type DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserExperienceAnalyticsDeviceStartupHistory collection
+func (r *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UserExperienceAnalyticsDeviceStartupHistory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserExperienceAnalyticsDeviceStartupHistory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserExperienceAnalyticsDeviceStartupHistory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserExperienceAnalyticsDeviceStartupHistory collection
+func (r *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsDeviceStartupHistory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UserExperienceAnalyticsDeviceStartupHistory collection
+func (r *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsDeviceStartupHistory) (resObj *UserExperienceAnalyticsDeviceStartupHistory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserExperienceAnalyticsOverview is navigation property
+func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsOverview() *UserExperienceAnalyticsOverviewRequestBuilder {
+ bb := &UserExperienceAnalyticsOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userExperienceAnalyticsOverview"
+ return bb
+}
+
+// UserExperienceAnalyticsRegressionSummary is navigation property
+func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsRegressionSummary() *UserExperienceAnalyticsRegressionSummaryRequestBuilder {
+ bb := &UserExperienceAnalyticsRegressionSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userExperienceAnalyticsRegressionSummary"
+ return bb
+}
+
+// UserPfxCertificates returns request builder for UserPFXCertificate collection
+func (b *DeviceManagementRequestBuilder) UserPfxCertificates() *DeviceManagementUserPfxCertificatesCollectionRequestBuilder {
+ bb := &DeviceManagementUserPfxCertificatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userPfxCertificates"
+ return bb
+}
+
+// DeviceManagementUserPfxCertificatesCollectionRequestBuilder is request builder for UserPFXCertificate collection
+type DeviceManagementUserPfxCertificatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserPFXCertificate collection
+func (b *DeviceManagementUserPfxCertificatesCollectionRequestBuilder) Request() *DeviceManagementUserPfxCertificatesCollectionRequest {
+ return &DeviceManagementUserPfxCertificatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserPFXCertificate item
+func (b *DeviceManagementUserPfxCertificatesCollectionRequestBuilder) ID(id string) *UserPFXCertificateRequestBuilder {
+ bb := &UserPFXCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementUserPfxCertificatesCollectionRequest is request for UserPFXCertificate collection
+type DeviceManagementUserPfxCertificatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserPFXCertificate collection
+func (r *DeviceManagementUserPfxCertificatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UserPFXCertificate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserPFXCertificate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserPFXCertificate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserPFXCertificate collection
+func (r *DeviceManagementUserPfxCertificatesCollectionRequest) Get(ctx context.Context) ([]UserPFXCertificate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UserPFXCertificate collection
+func (r *DeviceManagementUserPfxCertificatesCollectionRequest) Add(ctx context.Context, reqObj *UserPFXCertificate) (resObj *UserPFXCertificate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsAutopilotDeploymentProfiles returns request builder for WindowsAutopilotDeploymentProfile collection
+func (b *DeviceManagementRequestBuilder) WindowsAutopilotDeploymentProfiles() *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder {
+ bb := &DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsAutopilotDeploymentProfiles"
+ return bb
+}
+
+// DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder is request builder for WindowsAutopilotDeploymentProfile collection
+type DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsAutopilotDeploymentProfile collection
+func (b *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder) Request() *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest {
+ return &DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsAutopilotDeploymentProfile item
+func (b *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder) ID(id string) *WindowsAutopilotDeploymentProfileRequestBuilder {
+ bb := &WindowsAutopilotDeploymentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest is request for WindowsAutopilotDeploymentProfile collection
+type DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsAutopilotDeploymentProfile collection
+func (r *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsAutopilotDeploymentProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsAutopilotDeploymentProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsAutopilotDeploymentProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsAutopilotDeploymentProfile collection
+func (r *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest) Get(ctx context.Context) ([]WindowsAutopilotDeploymentProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsAutopilotDeploymentProfile collection
+func (r *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest) Add(ctx context.Context, reqObj *WindowsAutopilotDeploymentProfile) (resObj *WindowsAutopilotDeploymentProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsAutopilotDeviceIdentities returns request builder for WindowsAutopilotDeviceIdentity collection
+func (b *DeviceManagementRequestBuilder) WindowsAutopilotDeviceIdentities() *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder {
+ bb := &DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsAutopilotDeviceIdentities"
+ return bb
+}
+
+// DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder is request builder for WindowsAutopilotDeviceIdentity collection
+type DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsAutopilotDeviceIdentity collection
+func (b *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder) Request() *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest {
+ return &DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsAutopilotDeviceIdentity item
+func (b *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder) ID(id string) *WindowsAutopilotDeviceIdentityRequestBuilder {
+ bb := &WindowsAutopilotDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest is request for WindowsAutopilotDeviceIdentity collection
+type DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsAutopilotDeviceIdentity collection
+func (r *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsAutopilotDeviceIdentity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsAutopilotDeviceIdentity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsAutopilotDeviceIdentity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsAutopilotDeviceIdentity collection
+func (r *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]WindowsAutopilotDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsAutopilotDeviceIdentity collection
+func (r *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest) Add(ctx context.Context, reqObj *WindowsAutopilotDeviceIdentity) (resObj *WindowsAutopilotDeviceIdentity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsAutopilotSettings is navigation property
+func (b *DeviceManagementRequestBuilder) WindowsAutopilotSettings() *WindowsAutopilotSettingsRequestBuilder {
+ bb := &WindowsAutopilotSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsAutopilotSettings"
+ return bb
+}
+
+// WindowsFeatureUpdateProfiles returns request builder for WindowsFeatureUpdateProfile collection
+func (b *DeviceManagementRequestBuilder) WindowsFeatureUpdateProfiles() *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder {
+ bb := &DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsFeatureUpdateProfiles"
+ return bb
+}
+
+// DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder is request builder for WindowsFeatureUpdateProfile collection
+type DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsFeatureUpdateProfile collection
+func (b *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder) Request() *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest {
+ return &DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsFeatureUpdateProfile item
+func (b *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder) ID(id string) *WindowsFeatureUpdateProfileRequestBuilder {
+ bb := &WindowsFeatureUpdateProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest is request for WindowsFeatureUpdateProfile collection
+type DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsFeatureUpdateProfile collection
+func (r *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsFeatureUpdateProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsFeatureUpdateProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsFeatureUpdateProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsFeatureUpdateProfile collection
+func (r *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest) Get(ctx context.Context) ([]WindowsFeatureUpdateProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsFeatureUpdateProfile collection
+func (r *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest) Add(ctx context.Context, reqObj *WindowsFeatureUpdateProfile) (resObj *WindowsFeatureUpdateProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsInformationProtectionAppLearningSummaries returns request builder for WindowsInformationProtectionAppLearningSummary collection
+func (b *DeviceManagementRequestBuilder) WindowsInformationProtectionAppLearningSummaries() *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder {
+ bb := &DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsInformationProtectionAppLearningSummaries"
+ return bb
+}
+
+// DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder is request builder for WindowsInformationProtectionAppLearningSummary collection
+type DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsInformationProtectionAppLearningSummary collection
+func (b *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder) Request() *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest {
+ return &DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsInformationProtectionAppLearningSummary item
+func (b *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionAppLearningSummaryRequestBuilder {
+ bb := &WindowsInformationProtectionAppLearningSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest is request for WindowsInformationProtectionAppLearningSummary collection
+type DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsInformationProtectionAppLearningSummary collection
+func (r *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsInformationProtectionAppLearningSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsInformationProtectionAppLearningSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsInformationProtectionAppLearningSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsInformationProtectionAppLearningSummary collection
+func (r *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionAppLearningSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsInformationProtectionAppLearningSummary collection
+func (r *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionAppLearningSummary) (resObj *WindowsInformationProtectionAppLearningSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsInformationProtectionNetworkLearningSummaries returns request builder for WindowsInformationProtectionNetworkLearningSummary collection
+func (b *DeviceManagementRequestBuilder) WindowsInformationProtectionNetworkLearningSummaries() *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder {
+ bb := &DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsInformationProtectionNetworkLearningSummaries"
+ return bb
+}
+
+// DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder is request builder for WindowsInformationProtectionNetworkLearningSummary collection
+type DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsInformationProtectionNetworkLearningSummary collection
+func (b *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder) Request() *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest {
+ return &DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsInformationProtectionNetworkLearningSummary item
+func (b *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionNetworkLearningSummaryRequestBuilder {
+ bb := &WindowsInformationProtectionNetworkLearningSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest is request for WindowsInformationProtectionNetworkLearningSummary collection
+type DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsInformationProtectionNetworkLearningSummary collection
+func (r *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsInformationProtectionNetworkLearningSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsInformationProtectionNetworkLearningSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsInformationProtectionNetworkLearningSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsInformationProtectionNetworkLearningSummary collection
+func (r *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionNetworkLearningSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsInformationProtectionNetworkLearningSummary collection
+func (r *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionNetworkLearningSummary) (resObj *WindowsInformationProtectionNetworkLearningSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsMalwareInformation returns request builder for WindowsMalwareInformation collection
+func (b *DeviceManagementRequestBuilder) WindowsMalwareInformation() *DeviceManagementWindowsMalwareInformationCollectionRequestBuilder {
+ bb := &DeviceManagementWindowsMalwareInformationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsMalwareInformation"
+ return bb
+}
+
+// DeviceManagementWindowsMalwareInformationCollectionRequestBuilder is request builder for WindowsMalwareInformation collection
+type DeviceManagementWindowsMalwareInformationCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsMalwareInformation collection
+func (b *DeviceManagementWindowsMalwareInformationCollectionRequestBuilder) Request() *DeviceManagementWindowsMalwareInformationCollectionRequest {
+ return &DeviceManagementWindowsMalwareInformationCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsMalwareInformation item
+func (b *DeviceManagementWindowsMalwareInformationCollectionRequestBuilder) ID(id string) *WindowsMalwareInformationRequestBuilder {
+ bb := &WindowsMalwareInformationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementWindowsMalwareInformationCollectionRequest is request for WindowsMalwareInformation collection
+type DeviceManagementWindowsMalwareInformationCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsMalwareInformation collection
+func (r *DeviceManagementWindowsMalwareInformationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsMalwareInformation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsMalwareInformation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsMalwareInformation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsMalwareInformation collection
+func (r *DeviceManagementWindowsMalwareInformationCollectionRequest) Get(ctx context.Context) ([]WindowsMalwareInformation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsMalwareInformation collection
+func (r *DeviceManagementWindowsMalwareInformationCollectionRequest) Add(ctx context.Context, reqObj *WindowsMalwareInformation) (resObj *WindowsMalwareInformation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScheduledReportRecurrenceEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScheduledReportRecurrenceEnum.go
new file mode 100644
index 00000000..3ad12449
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScheduledReportRecurrenceEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementScheduledReportRecurrence undocumented
+type DeviceManagementScheduledReportRecurrence int
+
+const (
+ // DeviceManagementScheduledReportRecurrenceVNone undocumented
+ DeviceManagementScheduledReportRecurrenceVNone DeviceManagementScheduledReportRecurrence = 0
+ // DeviceManagementScheduledReportRecurrenceVDaily undocumented
+ DeviceManagementScheduledReportRecurrenceVDaily DeviceManagementScheduledReportRecurrence = 1
+ // DeviceManagementScheduledReportRecurrenceVWeekly undocumented
+ DeviceManagementScheduledReportRecurrenceVWeekly DeviceManagementScheduledReportRecurrence = 2
+ // DeviceManagementScheduledReportRecurrenceVMonthly undocumented
+ DeviceManagementScheduledReportRecurrenceVMonthly DeviceManagementScheduledReportRecurrence = 3
+)
+
+// DeviceManagementScheduledReportRecurrencePNone returns a pointer to DeviceManagementScheduledReportRecurrenceVNone
+func DeviceManagementScheduledReportRecurrencePNone() *DeviceManagementScheduledReportRecurrence {
+ v := DeviceManagementScheduledReportRecurrenceVNone
+ return &v
+}
+
+// DeviceManagementScheduledReportRecurrencePDaily returns a pointer to DeviceManagementScheduledReportRecurrenceVDaily
+func DeviceManagementScheduledReportRecurrencePDaily() *DeviceManagementScheduledReportRecurrence {
+ v := DeviceManagementScheduledReportRecurrenceVDaily
+ return &v
+}
+
+// DeviceManagementScheduledReportRecurrencePWeekly returns a pointer to DeviceManagementScheduledReportRecurrenceVWeekly
+func DeviceManagementScheduledReportRecurrencePWeekly() *DeviceManagementScheduledReportRecurrence {
+ v := DeviceManagementScheduledReportRecurrenceVWeekly
+ return &v
+}
+
+// DeviceManagementScheduledReportRecurrencePMonthly returns a pointer to DeviceManagementScheduledReportRecurrenceVMonthly
+func DeviceManagementScheduledReportRecurrencePMonthly() *DeviceManagementScheduledReportRecurrence {
+ v := DeviceManagementScheduledReportRecurrenceVMonthly
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptAction.go
new file mode 100644
index 00000000..2fc9a304
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptAction.go
@@ -0,0 +1,134 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceManagementScriptCollectionHasPayloadLinksRequestParameter undocumented
+type DeviceManagementScriptCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// DeviceManagementScriptAssignRequestParameter undocumented
+type DeviceManagementScriptAssignRequestParameter struct {
+ // DeviceManagementScriptGroupAssignments undocumented
+ DeviceManagementScriptGroupAssignments []DeviceManagementScriptGroupAssignment `json:"deviceManagementScriptGroupAssignments,omitempty"`
+ // DeviceManagementScriptAssignments undocumented
+ DeviceManagementScriptAssignments []DeviceManagementScriptAssignment `json:"deviceManagementScriptAssignments,omitempty"`
+}
+
+//
+type DeviceManagementScriptCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceManagementDeviceManagementScriptsCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceManagementScriptCollectionHasPayloadLinksRequestParameter) *DeviceManagementScriptCollectionHasPayloadLinksRequestBuilder {
+ bb := &DeviceManagementScriptCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementScriptCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementScriptCollectionHasPayloadLinksRequestBuilder) Request() *DeviceManagementScriptCollectionHasPayloadLinksRequest {
+ return &DeviceManagementScriptCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementScriptCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DeviceManagementScriptCollectionHasPayloadLinksRequest) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type DeviceManagementScriptAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *DeviceManagementScriptRequestBuilder) Assign(reqObj *DeviceManagementScriptAssignRequestParameter) *DeviceManagementScriptAssignRequestBuilder {
+ bb := &DeviceManagementScriptAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementScriptAssignRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementScriptAssignRequestBuilder) Request() *DeviceManagementScriptAssignRequest {
+ return &DeviceManagementScriptAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementScriptAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptAssignmentModel.go
new file mode 100644
index 00000000..7bff9864
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementScriptAssignment Contains properties used to assign a device management script to a group.
+type DeviceManagementScriptAssignment struct {
+ // Entity is the base model of DeviceManagementScriptAssignment
+ Entity
+ // Target The Id of the Azure Active Directory group we are targeting the script to.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptAssignmentRequest.go
new file mode 100644
index 00000000..25bd6a67
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementScriptAssignmentRequestBuilder is request builder for DeviceManagementScriptAssignment
+type DeviceManagementScriptAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementScriptAssignmentRequest
+func (b *DeviceManagementScriptAssignmentRequestBuilder) Request() *DeviceManagementScriptAssignmentRequest {
+ return &DeviceManagementScriptAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementScriptAssignmentRequest is request for DeviceManagementScriptAssignment
+type DeviceManagementScriptAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementScriptAssignment
+func (r *DeviceManagementScriptAssignmentRequest) Get(ctx context.Context) (resObj *DeviceManagementScriptAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementScriptAssignment
+func (r *DeviceManagementScriptAssignmentRequest) Update(ctx context.Context, reqObj *DeviceManagementScriptAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementScriptAssignment
+func (r *DeviceManagementScriptAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptDeviceStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptDeviceStateModel.go
new file mode 100644
index 00000000..9ebf4325
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptDeviceStateModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceManagementScriptDeviceState Contains properties for device run state of the device management script.
+type DeviceManagementScriptDeviceState struct {
+ // Entity is the base model of DeviceManagementScriptDeviceState
+ Entity
+ // RunState State of latest run of the device management script.
+ RunState *RunState `json:"runState,omitempty"`
+ // ResultMessage Details of execution output.
+ ResultMessage *string `json:"resultMessage,omitempty"`
+ // LastStateUpdateDateTime Latest time the device management script executes.
+ LastStateUpdateDateTime *time.Time `json:"lastStateUpdateDateTime,omitempty"`
+ // ErrorCode Error code corresponding to erroneous execution of the device management script.
+ ErrorCode *int `json:"errorCode,omitempty"`
+ // ErrorDescription Error description corresponding to erroneous execution of the device management script.
+ ErrorDescription *string `json:"errorDescription,omitempty"`
+ // ManagedDevice undocumented
+ ManagedDevice *ManagedDevice `json:"managedDevice,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptDeviceStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptDeviceStateRequest.go
new file mode 100644
index 00000000..839154f4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptDeviceStateRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementScriptDeviceStateRequestBuilder is request builder for DeviceManagementScriptDeviceState
+type DeviceManagementScriptDeviceStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementScriptDeviceStateRequest
+func (b *DeviceManagementScriptDeviceStateRequestBuilder) Request() *DeviceManagementScriptDeviceStateRequest {
+ return &DeviceManagementScriptDeviceStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementScriptDeviceStateRequest is request for DeviceManagementScriptDeviceState
+type DeviceManagementScriptDeviceStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementScriptDeviceState
+func (r *DeviceManagementScriptDeviceStateRequest) Get(ctx context.Context) (resObj *DeviceManagementScriptDeviceState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementScriptDeviceState
+func (r *DeviceManagementScriptDeviceStateRequest) Update(ctx context.Context, reqObj *DeviceManagementScriptDeviceState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementScriptDeviceState
+func (r *DeviceManagementScriptDeviceStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDevice is navigation property
+func (b *DeviceManagementScriptDeviceStateRequestBuilder) ManagedDevice() *ManagedDeviceRequestBuilder {
+ bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDevice"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptGroupAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptGroupAssignmentModel.go
new file mode 100644
index 00000000..dd547ced
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptGroupAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementScriptGroupAssignment Contains properties used to assign a device management script to a group.
+type DeviceManagementScriptGroupAssignment struct {
+ // Entity is the base model of DeviceManagementScriptGroupAssignment
+ Entity
+ // TargetGroupID The Id of the Azure Active Directory group we are targeting the script to.
+ TargetGroupID *string `json:"targetGroupId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptGroupAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptGroupAssignmentRequest.go
new file mode 100644
index 00000000..ad1fb68c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptGroupAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementScriptGroupAssignmentRequestBuilder is request builder for DeviceManagementScriptGroupAssignment
+type DeviceManagementScriptGroupAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementScriptGroupAssignmentRequest
+func (b *DeviceManagementScriptGroupAssignmentRequestBuilder) Request() *DeviceManagementScriptGroupAssignmentRequest {
+ return &DeviceManagementScriptGroupAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementScriptGroupAssignmentRequest is request for DeviceManagementScriptGroupAssignment
+type DeviceManagementScriptGroupAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementScriptGroupAssignment
+func (r *DeviceManagementScriptGroupAssignmentRequest) Get(ctx context.Context) (resObj *DeviceManagementScriptGroupAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementScriptGroupAssignment
+func (r *DeviceManagementScriptGroupAssignmentRequest) Update(ctx context.Context, reqObj *DeviceManagementScriptGroupAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementScriptGroupAssignment
+func (r *DeviceManagementScriptGroupAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptModel.go
new file mode 100644
index 00000000..53e1cf7d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceManagementScript Intune will provide customer the ability to run their Powershell scripts on the enrolled windows 10 Azure Active Directory joined devices. The script can be run once or periodically.
+type DeviceManagementScript struct {
+ // Entity is the base model of DeviceManagementScript
+ Entity
+ // DisplayName Name of the device management script.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Optional description for the device management script.
+ Description *string `json:"description,omitempty"`
+ // ScriptContent The script content.
+ ScriptContent *Binary `json:"scriptContent,omitempty"`
+ // CreatedDateTime The date and time the device management script was created. This property is read-only.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime The date and time the device management script was last modified. This property is read-only.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // RunAsAccount Indicates the type of execution context.
+ RunAsAccount *RunAsAccountType `json:"runAsAccount,omitempty"`
+ // EnforceSignatureCheck Indicate whether the script signature needs be checked.
+ EnforceSignatureCheck *bool `json:"enforceSignatureCheck,omitempty"`
+ // FileName Script file name.
+ FileName *string `json:"fileName,omitempty"`
+ // RoleScopeTagIDs List of Scope Tag IDs for this PowerShellScript instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // RunAs32Bit A value indicating whether the PowerShell script should run as 32-bit
+ RunAs32Bit *bool `json:"runAs32Bit,omitempty"`
+ // GroupAssignments undocumented
+ GroupAssignments []DeviceManagementScriptGroupAssignment `json:"groupAssignments,omitempty"`
+ // Assignments undocumented
+ Assignments []DeviceManagementScriptAssignment `json:"assignments,omitempty"`
+ // RunSummary undocumented
+ RunSummary *DeviceManagementScriptRunSummary `json:"runSummary,omitempty"`
+ // DeviceRunStates undocumented
+ DeviceRunStates []DeviceManagementScriptDeviceState `json:"deviceRunStates,omitempty"`
+ // UserRunStates undocumented
+ UserRunStates []DeviceManagementScriptUserState `json:"userRunStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptPolicySetItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptPolicySetItemModel.go
new file mode 100644
index 00000000..3eb7454b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptPolicySetItemModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementScriptPolicySetItem A class containing the properties used for device management script PolicySetItem.
+type DeviceManagementScriptPolicySetItem struct {
+ // PolicySetItem is the base model of DeviceManagementScriptPolicySetItem
+ PolicySetItem
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptRequest.go
new file mode 100644
index 00000000..a946a3e2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptRequest.go
@@ -0,0 +1,428 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceManagementScriptRequestBuilder is request builder for DeviceManagementScript
+type DeviceManagementScriptRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementScriptRequest
+func (b *DeviceManagementScriptRequestBuilder) Request() *DeviceManagementScriptRequest {
+ return &DeviceManagementScriptRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementScriptRequest is request for DeviceManagementScript
+type DeviceManagementScriptRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementScript
+func (r *DeviceManagementScriptRequest) Get(ctx context.Context) (resObj *DeviceManagementScript, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementScript
+func (r *DeviceManagementScriptRequest) Update(ctx context.Context, reqObj *DeviceManagementScript) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementScript
+func (r *DeviceManagementScriptRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for DeviceManagementScriptAssignment collection
+func (b *DeviceManagementScriptRequestBuilder) Assignments() *DeviceManagementScriptAssignmentsCollectionRequestBuilder {
+ bb := &DeviceManagementScriptAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// DeviceManagementScriptAssignmentsCollectionRequestBuilder is request builder for DeviceManagementScriptAssignment collection
+type DeviceManagementScriptAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementScriptAssignment collection
+func (b *DeviceManagementScriptAssignmentsCollectionRequestBuilder) Request() *DeviceManagementScriptAssignmentsCollectionRequest {
+ return &DeviceManagementScriptAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementScriptAssignment item
+func (b *DeviceManagementScriptAssignmentsCollectionRequestBuilder) ID(id string) *DeviceManagementScriptAssignmentRequestBuilder {
+ bb := &DeviceManagementScriptAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementScriptAssignmentsCollectionRequest is request for DeviceManagementScriptAssignment collection
+type DeviceManagementScriptAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementScriptAssignment collection
+func (r *DeviceManagementScriptAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementScriptAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementScriptAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementScriptAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementScriptAssignment collection
+func (r *DeviceManagementScriptAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementScriptAssignment collection
+func (r *DeviceManagementScriptAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScriptAssignment) (resObj *DeviceManagementScriptAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceRunStates returns request builder for DeviceManagementScriptDeviceState collection
+func (b *DeviceManagementScriptRequestBuilder) DeviceRunStates() *DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder {
+ bb := &DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceRunStates"
+ return bb
+}
+
+// DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder is request builder for DeviceManagementScriptDeviceState collection
+type DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementScriptDeviceState collection
+func (b *DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder) Request() *DeviceManagementScriptDeviceRunStatesCollectionRequest {
+ return &DeviceManagementScriptDeviceRunStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementScriptDeviceState item
+func (b *DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder) ID(id string) *DeviceManagementScriptDeviceStateRequestBuilder {
+ bb := &DeviceManagementScriptDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementScriptDeviceRunStatesCollectionRequest is request for DeviceManagementScriptDeviceState collection
+type DeviceManagementScriptDeviceRunStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementScriptDeviceState collection
+func (r *DeviceManagementScriptDeviceRunStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementScriptDeviceState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementScriptDeviceState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementScriptDeviceState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementScriptDeviceState collection
+func (r *DeviceManagementScriptDeviceRunStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementScriptDeviceState collection
+func (r *DeviceManagementScriptDeviceRunStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScriptDeviceState) (resObj *DeviceManagementScriptDeviceState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupAssignments returns request builder for DeviceManagementScriptGroupAssignment collection
+func (b *DeviceManagementScriptRequestBuilder) GroupAssignments() *DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder {
+ bb := &DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupAssignments"
+ return bb
+}
+
+// DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder is request builder for DeviceManagementScriptGroupAssignment collection
+type DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementScriptGroupAssignment collection
+func (b *DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder) Request() *DeviceManagementScriptGroupAssignmentsCollectionRequest {
+ return &DeviceManagementScriptGroupAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementScriptGroupAssignment item
+func (b *DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder) ID(id string) *DeviceManagementScriptGroupAssignmentRequestBuilder {
+ bb := &DeviceManagementScriptGroupAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementScriptGroupAssignmentsCollectionRequest is request for DeviceManagementScriptGroupAssignment collection
+type DeviceManagementScriptGroupAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementScriptGroupAssignment collection
+func (r *DeviceManagementScriptGroupAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementScriptGroupAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementScriptGroupAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementScriptGroupAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementScriptGroupAssignment collection
+func (r *DeviceManagementScriptGroupAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptGroupAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementScriptGroupAssignment collection
+func (r *DeviceManagementScriptGroupAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScriptGroupAssignment) (resObj *DeviceManagementScriptGroupAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RunSummary is navigation property
+func (b *DeviceManagementScriptRequestBuilder) RunSummary() *DeviceManagementScriptRunSummaryRequestBuilder {
+ bb := &DeviceManagementScriptRunSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/runSummary"
+ return bb
+}
+
+// UserRunStates returns request builder for DeviceManagementScriptUserState collection
+func (b *DeviceManagementScriptRequestBuilder) UserRunStates() *DeviceManagementScriptUserRunStatesCollectionRequestBuilder {
+ bb := &DeviceManagementScriptUserRunStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userRunStates"
+ return bb
+}
+
+// DeviceManagementScriptUserRunStatesCollectionRequestBuilder is request builder for DeviceManagementScriptUserState collection
+type DeviceManagementScriptUserRunStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementScriptUserState collection
+func (b *DeviceManagementScriptUserRunStatesCollectionRequestBuilder) Request() *DeviceManagementScriptUserRunStatesCollectionRequest {
+ return &DeviceManagementScriptUserRunStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementScriptUserState item
+func (b *DeviceManagementScriptUserRunStatesCollectionRequestBuilder) ID(id string) *DeviceManagementScriptUserStateRequestBuilder {
+ bb := &DeviceManagementScriptUserStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementScriptUserRunStatesCollectionRequest is request for DeviceManagementScriptUserState collection
+type DeviceManagementScriptUserRunStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementScriptUserState collection
+func (r *DeviceManagementScriptUserRunStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementScriptUserState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementScriptUserState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementScriptUserState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementScriptUserState collection
+func (r *DeviceManagementScriptUserRunStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptUserState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementScriptUserState collection
+func (r *DeviceManagementScriptUserRunStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScriptUserState) (resObj *DeviceManagementScriptUserState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptRunSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptRunSummaryModel.go
new file mode 100644
index 00000000..686c9574
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptRunSummaryModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementScriptRunSummary Contains properties for the run summary of a device management script.
+type DeviceManagementScriptRunSummary struct {
+ // Entity is the base model of DeviceManagementScriptRunSummary
+ Entity
+ // SuccessDeviceCount Success device count.
+ SuccessDeviceCount *int `json:"successDeviceCount,omitempty"`
+ // ErrorDeviceCount Error device count.
+ ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"`
+ // SuccessUserCount Success user count.
+ SuccessUserCount *int `json:"successUserCount,omitempty"`
+ // ErrorUserCount Error user count.
+ ErrorUserCount *int `json:"errorUserCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptRunSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptRunSummaryRequest.go
new file mode 100644
index 00000000..49a1718f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptRunSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementScriptRunSummaryRequestBuilder is request builder for DeviceManagementScriptRunSummary
+type DeviceManagementScriptRunSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementScriptRunSummaryRequest
+func (b *DeviceManagementScriptRunSummaryRequestBuilder) Request() *DeviceManagementScriptRunSummaryRequest {
+ return &DeviceManagementScriptRunSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementScriptRunSummaryRequest is request for DeviceManagementScriptRunSummary
+type DeviceManagementScriptRunSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementScriptRunSummary
+func (r *DeviceManagementScriptRunSummaryRequest) Get(ctx context.Context) (resObj *DeviceManagementScriptRunSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementScriptRunSummary
+func (r *DeviceManagementScriptRunSummaryRequest) Update(ctx context.Context, reqObj *DeviceManagementScriptRunSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementScriptRunSummary
+func (r *DeviceManagementScriptRunSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptUserStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptUserStateModel.go
new file mode 100644
index 00000000..9b18ad5e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptUserStateModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementScriptUserState Contains properties for user run state of the device management script.
+type DeviceManagementScriptUserState struct {
+ // Entity is the base model of DeviceManagementScriptUserState
+ Entity
+ // SuccessDeviceCount Success device count for specific user.
+ SuccessDeviceCount *int `json:"successDeviceCount,omitempty"`
+ // ErrorDeviceCount Error device count for specific user.
+ ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"`
+ // UserPrincipalName User principle name of specific user.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DeviceRunStates undocumented
+ DeviceRunStates []DeviceManagementScriptDeviceState `json:"deviceRunStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptUserStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptUserStateRequest.go
new file mode 100644
index 00000000..7ce10d80
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementScriptUserStateRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceManagementScriptUserStateRequestBuilder is request builder for DeviceManagementScriptUserState
+type DeviceManagementScriptUserStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementScriptUserStateRequest
+func (b *DeviceManagementScriptUserStateRequestBuilder) Request() *DeviceManagementScriptUserStateRequest {
+ return &DeviceManagementScriptUserStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementScriptUserStateRequest is request for DeviceManagementScriptUserState
+type DeviceManagementScriptUserStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementScriptUserState
+func (r *DeviceManagementScriptUserStateRequest) Get(ctx context.Context) (resObj *DeviceManagementScriptUserState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementScriptUserState
+func (r *DeviceManagementScriptUserStateRequest) Update(ctx context.Context, reqObj *DeviceManagementScriptUserState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementScriptUserState
+func (r *DeviceManagementScriptUserStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceRunStates returns request builder for DeviceManagementScriptDeviceState collection
+func (b *DeviceManagementScriptUserStateRequestBuilder) DeviceRunStates() *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder {
+ bb := &DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceRunStates"
+ return bb
+}
+
+// DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder is request builder for DeviceManagementScriptDeviceState collection
+type DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementScriptDeviceState collection
+func (b *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder) Request() *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest {
+ return &DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementScriptDeviceState item
+func (b *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder) ID(id string) *DeviceManagementScriptDeviceStateRequestBuilder {
+ bb := &DeviceManagementScriptDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest is request for DeviceManagementScriptDeviceState collection
+type DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementScriptDeviceState collection
+func (r *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementScriptDeviceState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementScriptDeviceState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementScriptDeviceState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementScriptDeviceState collection
+func (r *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementScriptDeviceState collection
+func (r *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScriptDeviceState) (resObj *DeviceManagementScriptDeviceState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingBooleanConstraintModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingBooleanConstraintModel.go
new file mode 100644
index 00000000..aaa2c61c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingBooleanConstraintModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementSettingBooleanConstraint undocumented
+type DeviceManagementSettingBooleanConstraint struct {
+ // DeviceManagementConstraint is the base model of DeviceManagementSettingBooleanConstraint
+ DeviceManagementConstraint
+ // Value The boolean value to compare against
+ Value *bool `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingCategoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingCategoryModel.go
new file mode 100644
index 00000000..a638dfae
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingCategoryModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementSettingCategory Entity representing a setting category
+type DeviceManagementSettingCategory struct {
+ // Entity is the base model of DeviceManagementSettingCategory
+ Entity
+ // DisplayName The category name
+ DisplayName *string `json:"displayName,omitempty"`
+ // SettingDefinitions undocumented
+ SettingDefinitions []DeviceManagementSettingDefinition `json:"settingDefinitions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingCategoryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingCategoryRequest.go
new file mode 100644
index 00000000..1af33b86
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingCategoryRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceManagementSettingCategoryRequestBuilder is request builder for DeviceManagementSettingCategory
+type DeviceManagementSettingCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementSettingCategoryRequest
+func (b *DeviceManagementSettingCategoryRequestBuilder) Request() *DeviceManagementSettingCategoryRequest {
+ return &DeviceManagementSettingCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementSettingCategoryRequest is request for DeviceManagementSettingCategory
+type DeviceManagementSettingCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementSettingCategory
+func (r *DeviceManagementSettingCategoryRequest) Get(ctx context.Context) (resObj *DeviceManagementSettingCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementSettingCategory
+func (r *DeviceManagementSettingCategoryRequest) Update(ctx context.Context, reqObj *DeviceManagementSettingCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementSettingCategory
+func (r *DeviceManagementSettingCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SettingDefinitions returns request builder for DeviceManagementSettingDefinition collection
+func (b *DeviceManagementSettingCategoryRequestBuilder) SettingDefinitions() *DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder {
+ bb := &DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settingDefinitions"
+ return bb
+}
+
+// DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder is request builder for DeviceManagementSettingDefinition collection
+type DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingDefinition collection
+func (b *DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder) Request() *DeviceManagementSettingCategorySettingDefinitionsCollectionRequest {
+ return &DeviceManagementSettingCategorySettingDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingDefinition item
+func (b *DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingDefinitionRequestBuilder {
+ bb := &DeviceManagementSettingDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementSettingCategorySettingDefinitionsCollectionRequest is request for DeviceManagementSettingDefinition collection
+type DeviceManagementSettingCategorySettingDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingDefinition collection
+func (r *DeviceManagementSettingCategorySettingDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementSettingDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingDefinition collection
+func (r *DeviceManagementSettingCategorySettingDefinitionsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementSettingDefinition collection
+func (r *DeviceManagementSettingCategorySettingDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingDefinition) (resObj *DeviceManagementSettingDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingComparisonModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingComparisonModel.go
new file mode 100644
index 00000000..4c90f779
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingComparisonModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementSettingComparison undocumented
+type DeviceManagementSettingComparison struct {
+ // Object is the base model of DeviceManagementSettingComparison
+ Object
+ // ID The setting ID
+ ID *string `json:"id,omitempty"`
+ // DisplayName The setting's display name
+ DisplayName *string `json:"displayName,omitempty"`
+ // DefinitionID The ID of the setting definition for this instance
+ DefinitionID *string `json:"definitionId,omitempty"`
+ // CurrentValueJSON JSON representation of current intent (or) template setting's value
+ CurrentValueJSON *string `json:"currentValueJson,omitempty"`
+ // NewValueJSON JSON representation of new template setting's value
+ NewValueJSON *string `json:"newValueJson,omitempty"`
+ // ComparisonResult Setting comparison result
+ ComparisonResult *DeviceManagementComparisonResult `json:"comparisonResult,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingDefinitionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingDefinitionModel.go
new file mode 100644
index 00000000..c506bb70
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingDefinitionModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementSettingDefinition Entity representing the defintion for a given setting
+type DeviceManagementSettingDefinition struct {
+ // Entity is the base model of DeviceManagementSettingDefinition
+ Entity
+ // ValueType The data type of the value
+ ValueType *DeviceManangementIntentValueType `json:"valueType,omitempty"`
+ // DisplayName The setting's display name
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsTopLevel If the setting is top level, it can be configured without the need to be wrapped in a collection or complex setting
+ IsTopLevel *bool `json:"isTopLevel,omitempty"`
+ // Description The setting's description
+ Description *string `json:"description,omitempty"`
+ // DocumentationURL Url to setting documentation
+ DocumentationURL *string `json:"documentationUrl,omitempty"`
+ // Keywords Keywords associated with the setting
+ Keywords []string `json:"keywords,omitempty"`
+ // Constraints Collection of constraints for the setting value
+ Constraints []DeviceManagementConstraint `json:"constraints,omitempty"`
+ // Dependencies Collection of dependencies on other settings
+ Dependencies []DeviceManagementSettingDependency `json:"dependencies,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingDefinitionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingDefinitionRequest.go
new file mode 100644
index 00000000..8ef072f2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingDefinitionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementSettingDefinitionRequestBuilder is request builder for DeviceManagementSettingDefinition
+type DeviceManagementSettingDefinitionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementSettingDefinitionRequest
+func (b *DeviceManagementSettingDefinitionRequestBuilder) Request() *DeviceManagementSettingDefinitionRequest {
+ return &DeviceManagementSettingDefinitionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementSettingDefinitionRequest is request for DeviceManagementSettingDefinition
+type DeviceManagementSettingDefinitionRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementSettingDefinition
+func (r *DeviceManagementSettingDefinitionRequest) Get(ctx context.Context) (resObj *DeviceManagementSettingDefinition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementSettingDefinition
+func (r *DeviceManagementSettingDefinitionRequest) Update(ctx context.Context, reqObj *DeviceManagementSettingDefinition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementSettingDefinition
+func (r *DeviceManagementSettingDefinitionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingDependencyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingDependencyModel.go
new file mode 100644
index 00000000..99f79db8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingDependencyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementSettingDependency undocumented
+type DeviceManagementSettingDependency struct {
+ // Object is the base model of DeviceManagementSettingDependency
+ Object
+ // DefinitionID The setting definition ID of the setting depended on
+ DefinitionID *string `json:"definitionId,omitempty"`
+ // Constraints Collection of constraints for the dependency setting value
+ Constraints []DeviceManagementConstraint `json:"constraints,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingInstanceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingInstanceModel.go
new file mode 100644
index 00000000..ddfc6f5c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingInstanceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementSettingInstance Base type for a setting instance
+type DeviceManagementSettingInstance struct {
+ // Entity is the base model of DeviceManagementSettingInstance
+ Entity
+ // DefinitionID The ID of the setting definition for this instance
+ DefinitionID *string `json:"definitionId,omitempty"`
+ // ValueJSON JSON representation of the value
+ ValueJSON *string `json:"valueJson,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingInstanceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingInstanceRequest.go
new file mode 100644
index 00000000..9658cdc9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingInstanceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementSettingInstanceRequestBuilder is request builder for DeviceManagementSettingInstance
+type DeviceManagementSettingInstanceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementSettingInstanceRequest
+func (b *DeviceManagementSettingInstanceRequestBuilder) Request() *DeviceManagementSettingInstanceRequest {
+ return &DeviceManagementSettingInstanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementSettingInstanceRequest is request for DeviceManagementSettingInstance
+type DeviceManagementSettingInstanceRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementSettingInstance
+func (r *DeviceManagementSettingInstanceRequest) Get(ctx context.Context) (resObj *DeviceManagementSettingInstance, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementSettingInstance
+func (r *DeviceManagementSettingInstanceRequest) Update(ctx context.Context, reqObj *DeviceManagementSettingInstance) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementSettingInstance
+func (r *DeviceManagementSettingInstanceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingIntegerConstraintModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingIntegerConstraintModel.go
new file mode 100644
index 00000000..91092cd8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingIntegerConstraintModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementSettingIntegerConstraint undocumented
+type DeviceManagementSettingIntegerConstraint struct {
+ // DeviceManagementConstraint is the base model of DeviceManagementSettingIntegerConstraint
+ DeviceManagementConstraint
+ // MinimumValue The minimum permitted value
+ MinimumValue *int `json:"minimumValue,omitempty"`
+ // MaximumValue The maximum permitted value
+ MaximumValue *int `json:"maximumValue,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingRegexConstraintModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingRegexConstraintModel.go
new file mode 100644
index 00000000..6e946846
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingRegexConstraintModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementSettingRegexConstraint undocumented
+type DeviceManagementSettingRegexConstraint struct {
+ // DeviceManagementConstraint is the base model of DeviceManagementSettingRegexConstraint
+ DeviceManagementConstraint
+ // Regex The RegEx pattern to match against
+ Regex *string `json:"regex,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingStringLengthConstraintModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingStringLengthConstraintModel.go
new file mode 100644
index 00000000..b1c134e6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingStringLengthConstraintModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementSettingStringLengthConstraint undocumented
+type DeviceManagementSettingStringLengthConstraint struct {
+ // DeviceManagementConstraint is the base model of DeviceManagementSettingStringLengthConstraint
+ DeviceManagementConstraint
+ // MinimumLength The minimum permitted string length
+ MinimumLength *int `json:"minimumLength,omitempty"`
+ // MaximumLength The maximum permitted string length
+ MaximumLength *int `json:"maximumLength,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingXMLConstraintModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingXMLConstraintModel.go
new file mode 100644
index 00000000..e548f871
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingXMLConstraintModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementSettingXMLConstraint undocumented
+type DeviceManagementSettingXMLConstraint struct {
+ // DeviceManagementConstraint is the base model of DeviceManagementSettingXMLConstraint
+ DeviceManagementConstraint
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingsModel.go
new file mode 100644
index 00000000..ab44bda1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSettingsModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementSettings undocumented
+type DeviceManagementSettings struct {
+ // Object is the base model of DeviceManagementSettings
+ Object
+ // DeviceComplianceCheckinThresholdDays The number of days a device is allowed to go without checking in to remain compliant.
+ DeviceComplianceCheckinThresholdDays *int `json:"deviceComplianceCheckinThresholdDays,omitempty"`
+ // IsScheduledActionEnabled Is feature enabled or not for scheduled action for rule.
+ IsScheduledActionEnabled *bool `json:"isScheduledActionEnabled,omitempty"`
+ // SecureByDefault Device should be noncompliant when there is no compliance policy targeted when this is true
+ SecureByDefault *bool `json:"secureByDefault,omitempty"`
+ // EnhancedJailBreak Is feature enabled or not for enhanced jailbreak detection.
+ EnhancedJailBreak *bool `json:"enhancedJailBreak,omitempty"`
+ // DeviceInactivityBeforeRetirementInDay When the device does not check in for specified number of days, the company data might be removed and the device will not be under management. Valid values 30 to 270
+ DeviceInactivityBeforeRetirementInDay *int `json:"deviceInactivityBeforeRetirementInDay,omitempty"`
+ // DerivedCredentialProvider The Derived Credential Provider to use for this account.
+ DerivedCredentialProvider *DerivedCredentialProviderType `json:"derivedCredentialProvider,omitempty"`
+ // DerivedCredentialURL The Derived Credential Provider self-service URI.
+ DerivedCredentialURL *string `json:"derivedCredentialUrl,omitempty"`
+ // AndroidDeviceAdministratorEnrollmentEnabled The property to determine if Android device administrator enrollment is enabled for this account.
+ AndroidDeviceAdministratorEnrollmentEnabled *bool `json:"androidDeviceAdministratorEnrollmentEnabled,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementStringSettingInstanceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementStringSettingInstanceModel.go
new file mode 100644
index 00000000..15bcaa52
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementStringSettingInstanceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementStringSettingInstance A setting instance representing a string value
+type DeviceManagementStringSettingInstance struct {
+ // DeviceManagementSettingInstance is the base model of DeviceManagementStringSettingInstance
+ DeviceManagementSettingInstance
+ // Value The string value
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSubscriptionStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSubscriptionStateEnum.go
new file mode 100644
index 00000000..74a56199
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSubscriptionStateEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementSubscriptionState undocumented
+type DeviceManagementSubscriptionState int
+
+const (
+ // DeviceManagementSubscriptionStateVPending undocumented
+ DeviceManagementSubscriptionStateVPending DeviceManagementSubscriptionState = 0
+ // DeviceManagementSubscriptionStateVActive undocumented
+ DeviceManagementSubscriptionStateVActive DeviceManagementSubscriptionState = 1
+ // DeviceManagementSubscriptionStateVWarning undocumented
+ DeviceManagementSubscriptionStateVWarning DeviceManagementSubscriptionState = 2
+ // DeviceManagementSubscriptionStateVDisabled undocumented
+ DeviceManagementSubscriptionStateVDisabled DeviceManagementSubscriptionState = 3
+ // DeviceManagementSubscriptionStateVDeleted undocumented
+ DeviceManagementSubscriptionStateVDeleted DeviceManagementSubscriptionState = 4
+ // DeviceManagementSubscriptionStateVBlocked undocumented
+ DeviceManagementSubscriptionStateVBlocked DeviceManagementSubscriptionState = 5
+ // DeviceManagementSubscriptionStateVLockedOut undocumented
+ DeviceManagementSubscriptionStateVLockedOut DeviceManagementSubscriptionState = 8
+)
+
+// DeviceManagementSubscriptionStatePPending returns a pointer to DeviceManagementSubscriptionStateVPending
+func DeviceManagementSubscriptionStatePPending() *DeviceManagementSubscriptionState {
+ v := DeviceManagementSubscriptionStateVPending
+ return &v
+}
+
+// DeviceManagementSubscriptionStatePActive returns a pointer to DeviceManagementSubscriptionStateVActive
+func DeviceManagementSubscriptionStatePActive() *DeviceManagementSubscriptionState {
+ v := DeviceManagementSubscriptionStateVActive
+ return &v
+}
+
+// DeviceManagementSubscriptionStatePWarning returns a pointer to DeviceManagementSubscriptionStateVWarning
+func DeviceManagementSubscriptionStatePWarning() *DeviceManagementSubscriptionState {
+ v := DeviceManagementSubscriptionStateVWarning
+ return &v
+}
+
+// DeviceManagementSubscriptionStatePDisabled returns a pointer to DeviceManagementSubscriptionStateVDisabled
+func DeviceManagementSubscriptionStatePDisabled() *DeviceManagementSubscriptionState {
+ v := DeviceManagementSubscriptionStateVDisabled
+ return &v
+}
+
+// DeviceManagementSubscriptionStatePDeleted returns a pointer to DeviceManagementSubscriptionStateVDeleted
+func DeviceManagementSubscriptionStatePDeleted() *DeviceManagementSubscriptionState {
+ v := DeviceManagementSubscriptionStateVDeleted
+ return &v
+}
+
+// DeviceManagementSubscriptionStatePBlocked returns a pointer to DeviceManagementSubscriptionStateVBlocked
+func DeviceManagementSubscriptionStatePBlocked() *DeviceManagementSubscriptionState {
+ v := DeviceManagementSubscriptionStateVBlocked
+ return &v
+}
+
+// DeviceManagementSubscriptionStatePLockedOut returns a pointer to DeviceManagementSubscriptionStateVLockedOut
+func DeviceManagementSubscriptionStatePLockedOut() *DeviceManagementSubscriptionState {
+ v := DeviceManagementSubscriptionStateVLockedOut
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSubscriptionsEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSubscriptionsEnum.go
new file mode 100644
index 00000000..292c5b0c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementSubscriptionsEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementSubscriptions undocumented
+type DeviceManagementSubscriptions int
+
+const (
+ // DeviceManagementSubscriptionsVNone undocumented
+ DeviceManagementSubscriptionsVNone DeviceManagementSubscriptions = 0
+ // DeviceManagementSubscriptionsVIntune undocumented
+ DeviceManagementSubscriptionsVIntune DeviceManagementSubscriptions = 1
+ // DeviceManagementSubscriptionsVOffice365 undocumented
+ DeviceManagementSubscriptionsVOffice365 DeviceManagementSubscriptions = 2
+ // DeviceManagementSubscriptionsVIntunePremium undocumented
+ DeviceManagementSubscriptionsVIntunePremium DeviceManagementSubscriptions = 4
+ // DeviceManagementSubscriptionsVIntune_EDU undocumented
+ DeviceManagementSubscriptionsVIntune_EDU DeviceManagementSubscriptions = 8
+ // DeviceManagementSubscriptionsVIntune_SMB undocumented
+ DeviceManagementSubscriptionsVIntune_SMB DeviceManagementSubscriptions = 16
+)
+
+// DeviceManagementSubscriptionsPNone returns a pointer to DeviceManagementSubscriptionsVNone
+func DeviceManagementSubscriptionsPNone() *DeviceManagementSubscriptions {
+ v := DeviceManagementSubscriptionsVNone
+ return &v
+}
+
+// DeviceManagementSubscriptionsPIntune returns a pointer to DeviceManagementSubscriptionsVIntune
+func DeviceManagementSubscriptionsPIntune() *DeviceManagementSubscriptions {
+ v := DeviceManagementSubscriptionsVIntune
+ return &v
+}
+
+// DeviceManagementSubscriptionsPOffice365 returns a pointer to DeviceManagementSubscriptionsVOffice365
+func DeviceManagementSubscriptionsPOffice365() *DeviceManagementSubscriptions {
+ v := DeviceManagementSubscriptionsVOffice365
+ return &v
+}
+
+// DeviceManagementSubscriptionsPIntunePremium returns a pointer to DeviceManagementSubscriptionsVIntunePremium
+func DeviceManagementSubscriptionsPIntunePremium() *DeviceManagementSubscriptions {
+ v := DeviceManagementSubscriptionsVIntunePremium
+ return &v
+}
+
+// DeviceManagementSubscriptionsPIntune_EDU returns a pointer to DeviceManagementSubscriptionsVIntune_EDU
+func DeviceManagementSubscriptionsPIntune_EDU() *DeviceManagementSubscriptions {
+ v := DeviceManagementSubscriptionsVIntune_EDU
+ return &v
+}
+
+// DeviceManagementSubscriptionsPIntune_SMB returns a pointer to DeviceManagementSubscriptionsVIntune_SMB
+func DeviceManagementSubscriptionsPIntune_SMB() *DeviceManagementSubscriptions {
+ v := DeviceManagementSubscriptionsVIntune_SMB
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateAction.go
new file mode 100644
index 00000000..1064e5d7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateAction.go
@@ -0,0 +1,44 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementTemplateCreateInstanceRequestParameter undocumented
+type DeviceManagementTemplateCreateInstanceRequestParameter struct {
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // SettingsDelta undocumented
+ SettingsDelta []DeviceManagementSettingInstance `json:"settingsDelta,omitempty"`
+ // RoleScopeTagIDs undocumented
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+}
+
+//
+type DeviceManagementTemplateCreateInstanceRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateInstance action undocumented
+func (b *DeviceManagementTemplateRequestBuilder) CreateInstance(reqObj *DeviceManagementTemplateCreateInstanceRequestParameter) *DeviceManagementTemplateCreateInstanceRequestBuilder {
+ bb := &DeviceManagementTemplateCreateInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createInstance"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementTemplateCreateInstanceRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementTemplateCreateInstanceRequestBuilder) Request() *DeviceManagementTemplateCreateInstanceRequest {
+ return &DeviceManagementTemplateCreateInstanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementTemplateCreateInstanceRequest) Post(ctx context.Context) (resObj *DeviceManagementIntent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateModel.go
new file mode 100644
index 00000000..0cc7ec1b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceManagementTemplate Entity that represents a defined collection of device settings
+type DeviceManagementTemplate struct {
+ // Entity is the base model of DeviceManagementTemplate
+ Entity
+ // DisplayName The template's display name
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The template's description
+ Description *string `json:"description,omitempty"`
+ // VersionInfo The template's version information
+ VersionInfo *string `json:"versionInfo,omitempty"`
+ // IsDeprecated The template is deprecated or not. Intents cannot be created from a deprecated template.
+ IsDeprecated *bool `json:"isDeprecated,omitempty"`
+ // IntentCount Number of Intents created from this template.
+ IntentCount *int `json:"intentCount,omitempty"`
+ // TemplateType The template's type.
+ TemplateType *DeviceManagementTemplateType `json:"templateType,omitempty"`
+ // PlatformType The template's platform.
+ PlatformType *PolicyPlatformType `json:"platformType,omitempty"`
+ // PublishedDateTime When the template was published
+ PublishedDateTime *time.Time `json:"publishedDateTime,omitempty"`
+ // Settings undocumented
+ Settings []DeviceManagementSettingInstance `json:"settings,omitempty"`
+ // Categories undocumented
+ Categories []DeviceManagementTemplateSettingCategory `json:"categories,omitempty"`
+ // MigratableTo undocumented
+ MigratableTo []DeviceManagementTemplate `json:"migratableTo,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateRequest.go
new file mode 100644
index 00000000..c07398c4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceManagementTemplateRequestBuilder is request builder for DeviceManagementTemplate
+type DeviceManagementTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementTemplateRequest
+func (b *DeviceManagementTemplateRequestBuilder) Request() *DeviceManagementTemplateRequest {
+ return &DeviceManagementTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementTemplateRequest is request for DeviceManagementTemplate
+type DeviceManagementTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementTemplate
+func (r *DeviceManagementTemplateRequest) Get(ctx context.Context) (resObj *DeviceManagementTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementTemplate
+func (r *DeviceManagementTemplateRequest) Update(ctx context.Context, reqObj *DeviceManagementTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementTemplate
+func (r *DeviceManagementTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Categories returns request builder for DeviceManagementTemplateSettingCategory collection
+func (b *DeviceManagementTemplateRequestBuilder) Categories() *DeviceManagementTemplateCategoriesCollectionRequestBuilder {
+ bb := &DeviceManagementTemplateCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/categories"
+ return bb
+}
+
+// DeviceManagementTemplateCategoriesCollectionRequestBuilder is request builder for DeviceManagementTemplateSettingCategory collection
+type DeviceManagementTemplateCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementTemplateSettingCategory collection
+func (b *DeviceManagementTemplateCategoriesCollectionRequestBuilder) Request() *DeviceManagementTemplateCategoriesCollectionRequest {
+ return &DeviceManagementTemplateCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementTemplateSettingCategory item
+func (b *DeviceManagementTemplateCategoriesCollectionRequestBuilder) ID(id string) *DeviceManagementTemplateSettingCategoryRequestBuilder {
+ bb := &DeviceManagementTemplateSettingCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementTemplateCategoriesCollectionRequest is request for DeviceManagementTemplateSettingCategory collection
+type DeviceManagementTemplateCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementTemplateSettingCategory collection
+func (r *DeviceManagementTemplateCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementTemplateSettingCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementTemplateSettingCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementTemplateSettingCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementTemplateSettingCategory collection
+func (r *DeviceManagementTemplateCategoriesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTemplateSettingCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementTemplateSettingCategory collection
+func (r *DeviceManagementTemplateCategoriesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementTemplateSettingCategory) (resObj *DeviceManagementTemplateSettingCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MigratableTo returns request builder for DeviceManagementTemplate collection
+func (b *DeviceManagementTemplateRequestBuilder) MigratableTo() *DeviceManagementTemplateMigratableToCollectionRequestBuilder {
+ bb := &DeviceManagementTemplateMigratableToCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/migratableTo"
+ return bb
+}
+
+// DeviceManagementTemplateMigratableToCollectionRequestBuilder is request builder for DeviceManagementTemplate collection
+type DeviceManagementTemplateMigratableToCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementTemplate collection
+func (b *DeviceManagementTemplateMigratableToCollectionRequestBuilder) Request() *DeviceManagementTemplateMigratableToCollectionRequest {
+ return &DeviceManagementTemplateMigratableToCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementTemplate item
+func (b *DeviceManagementTemplateMigratableToCollectionRequestBuilder) ID(id string) *DeviceManagementTemplateRequestBuilder {
+ bb := &DeviceManagementTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementTemplateMigratableToCollectionRequest is request for DeviceManagementTemplate collection
+type DeviceManagementTemplateMigratableToCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementTemplate collection
+func (r *DeviceManagementTemplateMigratableToCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementTemplate collection
+func (r *DeviceManagementTemplateMigratableToCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementTemplate collection
+func (r *DeviceManagementTemplateMigratableToCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementTemplate) (resObj *DeviceManagementTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Settings returns request builder for DeviceManagementSettingInstance collection
+func (b *DeviceManagementTemplateRequestBuilder) Settings() *DeviceManagementTemplateSettingsCollectionRequestBuilder {
+ bb := &DeviceManagementTemplateSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settings"
+ return bb
+}
+
+// DeviceManagementTemplateSettingsCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection
+type DeviceManagementTemplateSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingInstance collection
+func (b *DeviceManagementTemplateSettingsCollectionRequestBuilder) Request() *DeviceManagementTemplateSettingsCollectionRequest {
+ return &DeviceManagementTemplateSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingInstance item
+func (b *DeviceManagementTemplateSettingsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder {
+ bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementTemplateSettingsCollectionRequest is request for DeviceManagementSettingInstance collection
+type DeviceManagementTemplateSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingInstance collection
+func (r *DeviceManagementTemplateSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementSettingInstance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingInstance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingInstance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementTemplateSettingsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementTemplateSettingsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateSettingCategoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateSettingCategoryModel.go
new file mode 100644
index 00000000..1b55cdbd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateSettingCategoryModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementTemplateSettingCategory Entity representing a template setting category
+type DeviceManagementTemplateSettingCategory struct {
+ // DeviceManagementSettingCategory is the base model of DeviceManagementTemplateSettingCategory
+ DeviceManagementSettingCategory
+ // RecommendedSettings undocumented
+ RecommendedSettings []DeviceManagementSettingInstance `json:"recommendedSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateSettingCategoryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateSettingCategoryRequest.go
new file mode 100644
index 00000000..69cd11c5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateSettingCategoryRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceManagementTemplateSettingCategoryRequestBuilder is request builder for DeviceManagementTemplateSettingCategory
+type DeviceManagementTemplateSettingCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementTemplateSettingCategoryRequest
+func (b *DeviceManagementTemplateSettingCategoryRequestBuilder) Request() *DeviceManagementTemplateSettingCategoryRequest {
+ return &DeviceManagementTemplateSettingCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementTemplateSettingCategoryRequest is request for DeviceManagementTemplateSettingCategory
+type DeviceManagementTemplateSettingCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementTemplateSettingCategory
+func (r *DeviceManagementTemplateSettingCategoryRequest) Get(ctx context.Context) (resObj *DeviceManagementTemplateSettingCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementTemplateSettingCategory
+func (r *DeviceManagementTemplateSettingCategoryRequest) Update(ctx context.Context, reqObj *DeviceManagementTemplateSettingCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementTemplateSettingCategory
+func (r *DeviceManagementTemplateSettingCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RecommendedSettings returns request builder for DeviceManagementSettingInstance collection
+func (b *DeviceManagementTemplateSettingCategoryRequestBuilder) RecommendedSettings() *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder {
+ bb := &DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/recommendedSettings"
+ return bb
+}
+
+// DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection
+type DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingInstance collection
+func (b *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder) Request() *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest {
+ return &DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingInstance item
+func (b *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder {
+ bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest is request for DeviceManagementSettingInstance collection
+type DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingInstance collection
+func (r *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementSettingInstance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingInstance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingInstance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateTypeEnum.go
new file mode 100644
index 00000000..95e0d602
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTemplateTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementTemplateType undocumented
+type DeviceManagementTemplateType int
+
+const (
+ // DeviceManagementTemplateTypeVSecurityBaseline undocumented
+ DeviceManagementTemplateTypeVSecurityBaseline DeviceManagementTemplateType = 0
+ // DeviceManagementTemplateTypeVSpecializedDevices undocumented
+ DeviceManagementTemplateTypeVSpecializedDevices DeviceManagementTemplateType = 1
+ // DeviceManagementTemplateTypeVAdvancedThreatProtectionSecurityBaseline undocumented
+ DeviceManagementTemplateTypeVAdvancedThreatProtectionSecurityBaseline DeviceManagementTemplateType = 2
+ // DeviceManagementTemplateTypeVDeviceConfiguration undocumented
+ DeviceManagementTemplateTypeVDeviceConfiguration DeviceManagementTemplateType = 3
+ // DeviceManagementTemplateTypeVCustom undocumented
+ DeviceManagementTemplateTypeVCustom DeviceManagementTemplateType = 4
+ // DeviceManagementTemplateTypeVSecurityTemplate undocumented
+ DeviceManagementTemplateTypeVSecurityTemplate DeviceManagementTemplateType = 5
+ // DeviceManagementTemplateTypeVMicrosoftEdgeSecurityBaseline undocumented
+ DeviceManagementTemplateTypeVMicrosoftEdgeSecurityBaseline DeviceManagementTemplateType = 6
+ // DeviceManagementTemplateTypeVMicrosoftOffice365ProPlusSecurityBaseline undocumented
+ DeviceManagementTemplateTypeVMicrosoftOffice365ProPlusSecurityBaseline DeviceManagementTemplateType = 7
+)
+
+// DeviceManagementTemplateTypePSecurityBaseline returns a pointer to DeviceManagementTemplateTypeVSecurityBaseline
+func DeviceManagementTemplateTypePSecurityBaseline() *DeviceManagementTemplateType {
+ v := DeviceManagementTemplateTypeVSecurityBaseline
+ return &v
+}
+
+// DeviceManagementTemplateTypePSpecializedDevices returns a pointer to DeviceManagementTemplateTypeVSpecializedDevices
+func DeviceManagementTemplateTypePSpecializedDevices() *DeviceManagementTemplateType {
+ v := DeviceManagementTemplateTypeVSpecializedDevices
+ return &v
+}
+
+// DeviceManagementTemplateTypePAdvancedThreatProtectionSecurityBaseline returns a pointer to DeviceManagementTemplateTypeVAdvancedThreatProtectionSecurityBaseline
+func DeviceManagementTemplateTypePAdvancedThreatProtectionSecurityBaseline() *DeviceManagementTemplateType {
+ v := DeviceManagementTemplateTypeVAdvancedThreatProtectionSecurityBaseline
+ return &v
+}
+
+// DeviceManagementTemplateTypePDeviceConfiguration returns a pointer to DeviceManagementTemplateTypeVDeviceConfiguration
+func DeviceManagementTemplateTypePDeviceConfiguration() *DeviceManagementTemplateType {
+ v := DeviceManagementTemplateTypeVDeviceConfiguration
+ return &v
+}
+
+// DeviceManagementTemplateTypePCustom returns a pointer to DeviceManagementTemplateTypeVCustom
+func DeviceManagementTemplateTypePCustom() *DeviceManagementTemplateType {
+ v := DeviceManagementTemplateTypeVCustom
+ return &v
+}
+
+// DeviceManagementTemplateTypePSecurityTemplate returns a pointer to DeviceManagementTemplateTypeVSecurityTemplate
+func DeviceManagementTemplateTypePSecurityTemplate() *DeviceManagementTemplateType {
+ v := DeviceManagementTemplateTypeVSecurityTemplate
+ return &v
+}
+
+// DeviceManagementTemplateTypePMicrosoftEdgeSecurityBaseline returns a pointer to DeviceManagementTemplateTypeVMicrosoftEdgeSecurityBaseline
+func DeviceManagementTemplateTypePMicrosoftEdgeSecurityBaseline() *DeviceManagementTemplateType {
+ v := DeviceManagementTemplateTypeVMicrosoftEdgeSecurityBaseline
+ return &v
+}
+
+// DeviceManagementTemplateTypePMicrosoftOffice365ProPlusSecurityBaseline returns a pointer to DeviceManagementTemplateTypeVMicrosoftOffice365ProPlusSecurityBaseline
+func DeviceManagementTemplateTypePMicrosoftOffice365ProPlusSecurityBaseline() *DeviceManagementTemplateType {
+ v := DeviceManagementTemplateTypeVMicrosoftOffice365ProPlusSecurityBaseline
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTroubleshootingErrorDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTroubleshootingErrorDetailsModel.go
new file mode 100644
index 00000000..df0ac4b2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTroubleshootingErrorDetailsModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementTroubleshootingErrorDetails undocumented
+type DeviceManagementTroubleshootingErrorDetails struct {
+ // Object is the base model of DeviceManagementTroubleshootingErrorDetails
+ Object
+ // Context undocumented
+ Context *string `json:"context,omitempty"`
+ // Failure undocumented
+ Failure *string `json:"failure,omitempty"`
+ // FailureDetails The detailed description of what went wrong.
+ FailureDetails *string `json:"failureDetails,omitempty"`
+ // Remediation The detailed description of how to remediate this issue.
+ Remediation *string `json:"remediation,omitempty"`
+ // Resources Links to helpful documentation about this failure.
+ Resources []DeviceManagementTroubleshootingErrorResource `json:"resources,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTroubleshootingErrorResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTroubleshootingErrorResourceModel.go
new file mode 100644
index 00000000..880b0e67
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTroubleshootingErrorResourceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementTroubleshootingErrorResource undocumented
+type DeviceManagementTroubleshootingErrorResource struct {
+ // Object is the base model of DeviceManagementTroubleshootingErrorResource
+ Object
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+ // Link The link to the web resource. Can contain any of the following formatters: {{UPN}}, {{DeviceGUID}}, {{UserGUID}}
+ Link *string `json:"link,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTroubleshootingEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTroubleshootingEventModel.go
new file mode 100644
index 00000000..7922b6a8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTroubleshootingEventModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceManagementTroubleshootingEvent Event representing an general failure.
+type DeviceManagementTroubleshootingEvent struct {
+ // Entity is the base model of DeviceManagementTroubleshootingEvent
+ Entity
+ // EventDateTime Time when the event occurred .
+ EventDateTime *time.Time `json:"eventDateTime,omitempty"`
+ // CorrelationID Id used for tracing the failure in the service.
+ CorrelationID *string `json:"correlationId,omitempty"`
+ // TroubleshootingErrorDetails Object containing detailed information about the error and its remediation.
+ TroubleshootingErrorDetails *DeviceManagementTroubleshootingErrorDetails `json:"troubleshootingErrorDetails,omitempty"`
+ // EventName Event Name corresponding to the Troubleshooting Event. It is an Optional field
+ EventName *string `json:"eventName,omitempty"`
+ // AdditionalInformation A set of string key and string value pairs which provides additional information on the Troubleshooting event
+ AdditionalInformation []KeyValuePair `json:"additionalInformation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTroubleshootingEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTroubleshootingEventRequest.go
new file mode 100644
index 00000000..a294f0db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementTroubleshootingEventRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DeviceManagementTroubleshootingEventRequestBuilder is request builder for DeviceManagementTroubleshootingEvent
+type DeviceManagementTroubleshootingEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementTroubleshootingEventRequest
+func (b *DeviceManagementTroubleshootingEventRequestBuilder) Request() *DeviceManagementTroubleshootingEventRequest {
+ return &DeviceManagementTroubleshootingEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementTroubleshootingEventRequest is request for DeviceManagementTroubleshootingEvent
+type DeviceManagementTroubleshootingEventRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementTroubleshootingEvent
+func (r *DeviceManagementTroubleshootingEventRequest) Get(ctx context.Context) (resObj *DeviceManagementTroubleshootingEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementTroubleshootingEvent
+func (r *DeviceManagementTroubleshootingEventRequest) Update(ctx context.Context, reqObj *DeviceManagementTroubleshootingEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementTroubleshootingEvent
+func (r *DeviceManagementTroubleshootingEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementUserRightsLocalUserOrGroupModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementUserRightsLocalUserOrGroupModel.go
new file mode 100644
index 00000000..b9266960
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementUserRightsLocalUserOrGroupModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementUserRightsLocalUserOrGroup undocumented
+type DeviceManagementUserRightsLocalUserOrGroup struct {
+ // Object is the base model of DeviceManagementUserRightsLocalUserOrGroup
+ Object
+ // Name The name of this local user or group.
+ Name *string `json:"name,omitempty"`
+ // Description Admin’s description of this local user or group.
+ Description *string `json:"description,omitempty"`
+ // SecurityIdentifier The security identifier of this local user or group (e.g. *S-1-5-32-544).
+ SecurityIdentifier *string `json:"securityIdentifier,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementUserRightsSettingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementUserRightsSettingModel.go
new file mode 100644
index 00000000..823e5dd0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManagementUserRightsSettingModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManagementUserRightsSetting undocumented
+type DeviceManagementUserRightsSetting struct {
+ // Object is the base model of DeviceManagementUserRightsSetting
+ Object
+ // State Representing the current state of this user rights setting
+ State *StateManagementSetting `json:"state,omitempty"`
+ // LocalUsersOrGroups Representing a collection of local users or groups which will be set on device if the state of this setting is Allowed. This collection can contain a maximum of 500 elements.
+ LocalUsersOrGroups []DeviceManagementUserRightsLocalUserOrGroup `json:"localUsersOrGroups,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManangementIntentValueTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManangementIntentValueTypeEnum.go
new file mode 100644
index 00000000..cba87a8a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceManangementIntentValueTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceManangementIntentValueType undocumented
+type DeviceManangementIntentValueType int
+
+const (
+ // DeviceManangementIntentValueTypeVInteger undocumented
+ DeviceManangementIntentValueTypeVInteger DeviceManangementIntentValueType = 0
+ // DeviceManangementIntentValueTypeVBoolean undocumented
+ DeviceManangementIntentValueTypeVBoolean DeviceManangementIntentValueType = 1
+ // DeviceManangementIntentValueTypeVString undocumented
+ DeviceManangementIntentValueTypeVString DeviceManangementIntentValueType = 2
+ // DeviceManangementIntentValueTypeVComplex undocumented
+ DeviceManangementIntentValueTypeVComplex DeviceManangementIntentValueType = 3
+ // DeviceManangementIntentValueTypeVCollection undocumented
+ DeviceManangementIntentValueTypeVCollection DeviceManangementIntentValueType = 4
+ // DeviceManangementIntentValueTypeVAbstractComplex undocumented
+ DeviceManangementIntentValueTypeVAbstractComplex DeviceManangementIntentValueType = 5
+)
+
+// DeviceManangementIntentValueTypePInteger returns a pointer to DeviceManangementIntentValueTypeVInteger
+func DeviceManangementIntentValueTypePInteger() *DeviceManangementIntentValueType {
+ v := DeviceManangementIntentValueTypeVInteger
+ return &v
+}
+
+// DeviceManangementIntentValueTypePBoolean returns a pointer to DeviceManangementIntentValueTypeVBoolean
+func DeviceManangementIntentValueTypePBoolean() *DeviceManangementIntentValueType {
+ v := DeviceManangementIntentValueTypeVBoolean
+ return &v
+}
+
+// DeviceManangementIntentValueTypePString returns a pointer to DeviceManangementIntentValueTypeVString
+func DeviceManangementIntentValueTypePString() *DeviceManangementIntentValueType {
+ v := DeviceManangementIntentValueTypeVString
+ return &v
+}
+
+// DeviceManangementIntentValueTypePComplex returns a pointer to DeviceManangementIntentValueTypeVComplex
+func DeviceManangementIntentValueTypePComplex() *DeviceManangementIntentValueType {
+ v := DeviceManangementIntentValueTypeVComplex
+ return &v
+}
+
+// DeviceManangementIntentValueTypePCollection returns a pointer to DeviceManangementIntentValueTypeVCollection
+func DeviceManangementIntentValueTypePCollection() *DeviceManangementIntentValueType {
+ v := DeviceManangementIntentValueTypeVCollection
+ return &v
+}
+
+// DeviceManangementIntentValueTypePAbstractComplex returns a pointer to DeviceManangementIntentValueTypeVAbstractComplex
+func DeviceManangementIntentValueTypePAbstractComplex() *DeviceManangementIntentValueType {
+ v := DeviceManangementIntentValueTypeVAbstractComplex
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceModel.go
new file mode 100644
index 00000000..42de87ba
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceModel.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Device undocumented
+type Device struct {
+ // DirectoryObject is the base model of Device
+ DirectoryObject
+ // AccountEnabled undocumented
+ AccountEnabled *bool `json:"accountEnabled,omitempty"`
+ // AlternativeSecurityIDs undocumented
+ AlternativeSecurityIDs []AlternativeSecurityID `json:"alternativeSecurityIds,omitempty"`
+ // ApproximateLastSignInDateTime undocumented
+ ApproximateLastSignInDateTime *time.Time `json:"approximateLastSignInDateTime,omitempty"`
+ // ComplianceExpirationDateTime undocumented
+ ComplianceExpirationDateTime *time.Time `json:"complianceExpirationDateTime,omitempty"`
+ // DeviceID undocumented
+ DeviceID *string `json:"deviceId,omitempty"`
+ // DeviceMetadata undocumented
+ DeviceMetadata *string `json:"deviceMetadata,omitempty"`
+ // DeviceVersion undocumented
+ DeviceVersion *int `json:"deviceVersion,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsCompliant undocumented
+ IsCompliant *bool `json:"isCompliant,omitempty"`
+ // IsManaged undocumented
+ IsManaged *bool `json:"isManaged,omitempty"`
+ // OnPremisesLastSyncDateTime undocumented
+ OnPremisesLastSyncDateTime *time.Time `json:"onPremisesLastSyncDateTime,omitempty"`
+ // OnPremisesSyncEnabled undocumented
+ OnPremisesSyncEnabled *bool `json:"onPremisesSyncEnabled,omitempty"`
+ // OperatingSystem undocumented
+ OperatingSystem *string `json:"operatingSystem,omitempty"`
+ // OperatingSystemVersion undocumented
+ OperatingSystemVersion *string `json:"operatingSystemVersion,omitempty"`
+ // PhysicalIDs undocumented
+ PhysicalIDs []string `json:"physicalIds,omitempty"`
+ // ProfileType undocumented
+ ProfileType *string `json:"profileType,omitempty"`
+ // SystemLabels undocumented
+ SystemLabels []string `json:"systemLabels,omitempty"`
+ // TrustType undocumented
+ TrustType *string `json:"trustType,omitempty"`
+ // Name undocumented
+ Name *string `json:"Name,omitempty"`
+ // Manufacturer undocumented
+ Manufacturer *string `json:"Manufacturer,omitempty"`
+ // Model undocumented
+ Model *string `json:"Model,omitempty"`
+ // Kind undocumented
+ Kind *string `json:"Kind,omitempty"`
+ // Status undocumented
+ Status *string `json:"Status,omitempty"`
+ // Platform undocumented
+ Platform *string `json:"Platform,omitempty"`
+ // MemberOf undocumented
+ MemberOf []DirectoryObject `json:"memberOf,omitempty"`
+ // RegisteredOwners undocumented
+ RegisteredOwners []DirectoryObject `json:"registeredOwners,omitempty"`
+ // RegisteredUsers undocumented
+ RegisteredUsers []DirectoryObject `json:"registeredUsers,omitempty"`
+ // TransitiveMemberOf undocumented
+ TransitiveMemberOf []DirectoryObject `json:"transitiveMemberOf,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+ // Commands undocumented
+ Commands []Command `json:"commands,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceOperatingSystemSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceOperatingSystemSummaryModel.go
new file mode 100644
index 00000000..59f81e8e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceOperatingSystemSummaryModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceOperatingSystemSummary undocumented
+type DeviceOperatingSystemSummary struct {
+ // Object is the base model of DeviceOperatingSystemSummary
+ Object
+ // AndroidCount Number of android device count.
+ AndroidCount *int `json:"androidCount,omitempty"`
+ // IOSCount Number of iOS device count.
+ IOSCount *int `json:"iosCount,omitempty"`
+ // MacOSCount Number of Mac OS X device count.
+ MacOSCount *int `json:"macOSCount,omitempty"`
+ // WindowsMobileCount Number of Windows mobile device count.
+ WindowsMobileCount *int `json:"windowsMobileCount,omitempty"`
+ // WindowsCount Number of Windows device count.
+ WindowsCount *int `json:"windowsCount,omitempty"`
+ // UnknownCount Number of unknown device count.
+ UnknownCount *int `json:"unknownCount,omitempty"`
+ // AndroidDedicatedCount Number of dedicated Android devices.
+ AndroidDedicatedCount *int `json:"androidDedicatedCount,omitempty"`
+ // AndroidDeviceAdminCount Number of device admin Android devices.
+ AndroidDeviceAdminCount *int `json:"androidDeviceAdminCount,omitempty"`
+ // AndroidFullyManagedCount Number of fully managed Android devices.
+ AndroidFullyManagedCount *int `json:"androidFullyManagedCount,omitempty"`
+ // AndroidWorkProfileCount Number of work profile Android devices.
+ AndroidWorkProfileCount *int `json:"androidWorkProfileCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DevicePlatformTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DevicePlatformTypeEnum.go
new file mode 100644
index 00000000..44d1bc22
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DevicePlatformTypeEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DevicePlatformType undocumented
+type DevicePlatformType int
+
+const (
+ // DevicePlatformTypeVAndroid undocumented
+ DevicePlatformTypeVAndroid DevicePlatformType = 0
+ // DevicePlatformTypeVAndroidForWork undocumented
+ DevicePlatformTypeVAndroidForWork DevicePlatformType = 1
+ // DevicePlatformTypeVIOS undocumented
+ DevicePlatformTypeVIOS DevicePlatformType = 2
+ // DevicePlatformTypeVMacOS undocumented
+ DevicePlatformTypeVMacOS DevicePlatformType = 3
+ // DevicePlatformTypeVWindowsPhone81 undocumented
+ DevicePlatformTypeVWindowsPhone81 DevicePlatformType = 4
+ // DevicePlatformTypeVWindows81AndLater undocumented
+ DevicePlatformTypeVWindows81AndLater DevicePlatformType = 5
+ // DevicePlatformTypeVWindows10AndLater undocumented
+ DevicePlatformTypeVWindows10AndLater DevicePlatformType = 6
+ // DevicePlatformTypeVAndroidWorkProfile undocumented
+ DevicePlatformTypeVAndroidWorkProfile DevicePlatformType = 7
+ // DevicePlatformTypeVUnknown undocumented
+ DevicePlatformTypeVUnknown DevicePlatformType = 8
+)
+
+// DevicePlatformTypePAndroid returns a pointer to DevicePlatformTypeVAndroid
+func DevicePlatformTypePAndroid() *DevicePlatformType {
+ v := DevicePlatformTypeVAndroid
+ return &v
+}
+
+// DevicePlatformTypePAndroidForWork returns a pointer to DevicePlatformTypeVAndroidForWork
+func DevicePlatformTypePAndroidForWork() *DevicePlatformType {
+ v := DevicePlatformTypeVAndroidForWork
+ return &v
+}
+
+// DevicePlatformTypePIOS returns a pointer to DevicePlatformTypeVIOS
+func DevicePlatformTypePIOS() *DevicePlatformType {
+ v := DevicePlatformTypeVIOS
+ return &v
+}
+
+// DevicePlatformTypePMacOS returns a pointer to DevicePlatformTypeVMacOS
+func DevicePlatformTypePMacOS() *DevicePlatformType {
+ v := DevicePlatformTypeVMacOS
+ return &v
+}
+
+// DevicePlatformTypePWindowsPhone81 returns a pointer to DevicePlatformTypeVWindowsPhone81
+func DevicePlatformTypePWindowsPhone81() *DevicePlatformType {
+ v := DevicePlatformTypeVWindowsPhone81
+ return &v
+}
+
+// DevicePlatformTypePWindows81AndLater returns a pointer to DevicePlatformTypeVWindows81AndLater
+func DevicePlatformTypePWindows81AndLater() *DevicePlatformType {
+ v := DevicePlatformTypeVWindows81AndLater
+ return &v
+}
+
+// DevicePlatformTypePWindows10AndLater returns a pointer to DevicePlatformTypeVWindows10AndLater
+func DevicePlatformTypePWindows10AndLater() *DevicePlatformType {
+ v := DevicePlatformTypeVWindows10AndLater
+ return &v
+}
+
+// DevicePlatformTypePAndroidWorkProfile returns a pointer to DevicePlatformTypeVAndroidWorkProfile
+func DevicePlatformTypePAndroidWorkProfile() *DevicePlatformType {
+ v := DevicePlatformTypeVAndroidWorkProfile
+ return &v
+}
+
+// DevicePlatformTypePUnknown returns a pointer to DevicePlatformTypeVUnknown
+func DevicePlatformTypePUnknown() *DevicePlatformType {
+ v := DevicePlatformTypeVUnknown
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceProtectionOverviewModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceProtectionOverviewModel.go
new file mode 100644
index 00000000..efe93189
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceProtectionOverviewModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceProtectionOverview undocumented
+type DeviceProtectionOverview struct {
+ // Object is the base model of DeviceProtectionOverview
+ Object
+ // TotalReportedDeviceCount Total device count.
+ TotalReportedDeviceCount *int `json:"totalReportedDeviceCount,omitempty"`
+ // InactiveThreatAgentDeviceCount Device with inactive threat agent count
+ InactiveThreatAgentDeviceCount *int `json:"inactiveThreatAgentDeviceCount,omitempty"`
+ // UnknownStateThreatAgentDeviceCount Device with threat agent state as unknown count.
+ UnknownStateThreatAgentDeviceCount *int `json:"unknownStateThreatAgentDeviceCount,omitempty"`
+ // PendingSignatureUpdateDeviceCount Device with old signature count.
+ PendingSignatureUpdateDeviceCount *int `json:"pendingSignatureUpdateDeviceCount,omitempty"`
+ // CleanDeviceCount Clean device count.
+ CleanDeviceCount *int `json:"cleanDeviceCount,omitempty"`
+ // PendingFullScanDeviceCount Pending full scan device count.
+ PendingFullScanDeviceCount *int `json:"pendingFullScanDeviceCount,omitempty"`
+ // PendingRestartDeviceCount Pending restart device count.
+ PendingRestartDeviceCount *int `json:"pendingRestartDeviceCount,omitempty"`
+ // PendingManualStepsDeviceCount Pending manual steps device count.
+ PendingManualStepsDeviceCount *int `json:"pendingManualStepsDeviceCount,omitempty"`
+ // PendingOfflineScanDeviceCount Pending offline scan device count.
+ PendingOfflineScanDeviceCount *int `json:"pendingOfflineScanDeviceCount,omitempty"`
+ // CriticalFailuresDeviceCount Critical failures device count.
+ CriticalFailuresDeviceCount *int `json:"criticalFailuresDeviceCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceRegistrationStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceRegistrationStateEnum.go
new file mode 100644
index 00000000..6a7c0b28
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceRegistrationStateEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceRegistrationState undocumented
+type DeviceRegistrationState int
+
+const (
+ // DeviceRegistrationStateVNotRegistered undocumented
+ DeviceRegistrationStateVNotRegistered DeviceRegistrationState = 0
+ // DeviceRegistrationStateVRegistered undocumented
+ DeviceRegistrationStateVRegistered DeviceRegistrationState = 2
+ // DeviceRegistrationStateVRevoked undocumented
+ DeviceRegistrationStateVRevoked DeviceRegistrationState = 3
+ // DeviceRegistrationStateVKeyConflict undocumented
+ DeviceRegistrationStateVKeyConflict DeviceRegistrationState = 4
+ // DeviceRegistrationStateVApprovalPending undocumented
+ DeviceRegistrationStateVApprovalPending DeviceRegistrationState = 5
+ // DeviceRegistrationStateVCertificateReset undocumented
+ DeviceRegistrationStateVCertificateReset DeviceRegistrationState = 6
+ // DeviceRegistrationStateVNotRegisteredPendingEnrollment undocumented
+ DeviceRegistrationStateVNotRegisteredPendingEnrollment DeviceRegistrationState = 7
+ // DeviceRegistrationStateVUnknown undocumented
+ DeviceRegistrationStateVUnknown DeviceRegistrationState = 8
+)
+
+// DeviceRegistrationStatePNotRegistered returns a pointer to DeviceRegistrationStateVNotRegistered
+func DeviceRegistrationStatePNotRegistered() *DeviceRegistrationState {
+ v := DeviceRegistrationStateVNotRegistered
+ return &v
+}
+
+// DeviceRegistrationStatePRegistered returns a pointer to DeviceRegistrationStateVRegistered
+func DeviceRegistrationStatePRegistered() *DeviceRegistrationState {
+ v := DeviceRegistrationStateVRegistered
+ return &v
+}
+
+// DeviceRegistrationStatePRevoked returns a pointer to DeviceRegistrationStateVRevoked
+func DeviceRegistrationStatePRevoked() *DeviceRegistrationState {
+ v := DeviceRegistrationStateVRevoked
+ return &v
+}
+
+// DeviceRegistrationStatePKeyConflict returns a pointer to DeviceRegistrationStateVKeyConflict
+func DeviceRegistrationStatePKeyConflict() *DeviceRegistrationState {
+ v := DeviceRegistrationStateVKeyConflict
+ return &v
+}
+
+// DeviceRegistrationStatePApprovalPending returns a pointer to DeviceRegistrationStateVApprovalPending
+func DeviceRegistrationStatePApprovalPending() *DeviceRegistrationState {
+ v := DeviceRegistrationStateVApprovalPending
+ return &v
+}
+
+// DeviceRegistrationStatePCertificateReset returns a pointer to DeviceRegistrationStateVCertificateReset
+func DeviceRegistrationStatePCertificateReset() *DeviceRegistrationState {
+ v := DeviceRegistrationStateVCertificateReset
+ return &v
+}
+
+// DeviceRegistrationStatePNotRegisteredPendingEnrollment returns a pointer to DeviceRegistrationStateVNotRegisteredPendingEnrollment
+func DeviceRegistrationStatePNotRegisteredPendingEnrollment() *DeviceRegistrationState {
+ v := DeviceRegistrationStateVNotRegisteredPendingEnrollment
+ return &v
+}
+
+// DeviceRegistrationStatePUnknown returns a pointer to DeviceRegistrationStateVUnknown
+func DeviceRegistrationStatePUnknown() *DeviceRegistrationState {
+ v := DeviceRegistrationStateVUnknown
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceRequest.go
new file mode 100644
index 00000000..7ca6e3c0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceRequest.go
@@ -0,0 +1,609 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceRequestBuilder is request builder for Device
+type DeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceRequest
+func (b *DeviceRequestBuilder) Request() *DeviceRequest {
+ return &DeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceRequest is request for Device
+type DeviceRequest struct{ BaseRequest }
+
+// Get performs GET request for Device
+func (r *DeviceRequest) Get(ctx context.Context) (resObj *Device, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Device
+func (r *DeviceRequest) Update(ctx context.Context, reqObj *Device) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Device
+func (r *DeviceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Commands returns request builder for Command collection
+func (b *DeviceRequestBuilder) Commands() *DeviceCommandsCollectionRequestBuilder {
+ bb := &DeviceCommandsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/commands"
+ return bb
+}
+
+// DeviceCommandsCollectionRequestBuilder is request builder for Command collection
+type DeviceCommandsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Command collection
+func (b *DeviceCommandsCollectionRequestBuilder) Request() *DeviceCommandsCollectionRequest {
+ return &DeviceCommandsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Command item
+func (b *DeviceCommandsCollectionRequestBuilder) ID(id string) *CommandRequestBuilder {
+ bb := &CommandRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceCommandsCollectionRequest is request for Command collection
+type DeviceCommandsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Command collection
+func (r *DeviceCommandsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Command, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Command
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Command
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Command collection
+func (r *DeviceCommandsCollectionRequest) Get(ctx context.Context) ([]Command, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Command collection
+func (r *DeviceCommandsCollectionRequest) Add(ctx context.Context, reqObj *Command) (resObj *Command, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Extensions returns request builder for Extension collection
+func (b *DeviceRequestBuilder) Extensions() *DeviceExtensionsCollectionRequestBuilder {
+ bb := &DeviceExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// DeviceExtensionsCollectionRequestBuilder is request builder for Extension collection
+type DeviceExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *DeviceExtensionsCollectionRequestBuilder) Request() *DeviceExtensionsCollectionRequest {
+ return &DeviceExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *DeviceExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceExtensionsCollectionRequest is request for Extension collection
+type DeviceExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *DeviceExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *DeviceExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Extension collection
+func (r *DeviceExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MemberOf returns request builder for DirectoryObject collection
+func (b *DeviceRequestBuilder) MemberOf() *DeviceMemberOfCollectionRequestBuilder {
+ bb := &DeviceMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/memberOf"
+ return bb
+}
+
+// DeviceMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type DeviceMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *DeviceMemberOfCollectionRequestBuilder) Request() *DeviceMemberOfCollectionRequest {
+ return &DeviceMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *DeviceMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceMemberOfCollectionRequest is request for DirectoryObject collection
+type DeviceMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *DeviceMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DeviceMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *DeviceMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RegisteredOwners returns request builder for DirectoryObject collection
+func (b *DeviceRequestBuilder) RegisteredOwners() *DeviceRegisteredOwnersCollectionRequestBuilder {
+ bb := &DeviceRegisteredOwnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/registeredOwners"
+ return bb
+}
+
+// DeviceRegisteredOwnersCollectionRequestBuilder is request builder for DirectoryObject collection
+type DeviceRegisteredOwnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *DeviceRegisteredOwnersCollectionRequestBuilder) Request() *DeviceRegisteredOwnersCollectionRequest {
+ return &DeviceRegisteredOwnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *DeviceRegisteredOwnersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceRegisteredOwnersCollectionRequest is request for DirectoryObject collection
+type DeviceRegisteredOwnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *DeviceRegisteredOwnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DeviceRegisteredOwnersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *DeviceRegisteredOwnersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RegisteredUsers returns request builder for DirectoryObject collection
+func (b *DeviceRequestBuilder) RegisteredUsers() *DeviceRegisteredUsersCollectionRequestBuilder {
+ bb := &DeviceRegisteredUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/registeredUsers"
+ return bb
+}
+
+// DeviceRegisteredUsersCollectionRequestBuilder is request builder for DirectoryObject collection
+type DeviceRegisteredUsersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *DeviceRegisteredUsersCollectionRequestBuilder) Request() *DeviceRegisteredUsersCollectionRequest {
+ return &DeviceRegisteredUsersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *DeviceRegisteredUsersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceRegisteredUsersCollectionRequest is request for DirectoryObject collection
+type DeviceRegisteredUsersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *DeviceRegisteredUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DeviceRegisteredUsersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *DeviceRegisteredUsersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TransitiveMemberOf returns request builder for DirectoryObject collection
+func (b *DeviceRequestBuilder) TransitiveMemberOf() *DeviceTransitiveMemberOfCollectionRequestBuilder {
+ bb := &DeviceTransitiveMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/transitiveMemberOf"
+ return bb
+}
+
+// DeviceTransitiveMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type DeviceTransitiveMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *DeviceTransitiveMemberOfCollectionRequestBuilder) Request() *DeviceTransitiveMemberOfCollectionRequest {
+ return &DeviceTransitiveMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *DeviceTransitiveMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceTransitiveMemberOfCollectionRequest is request for DirectoryObject collection
+type DeviceTransitiveMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *DeviceTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DeviceTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *DeviceTransitiveMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceRestrictionActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceRestrictionActionModel.go
new file mode 100644
index 00000000..a5af4498
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceRestrictionActionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceRestrictionAction undocumented
+type DeviceRestrictionAction struct {
+ // DlpActionInfo is the base model of DeviceRestrictionAction
+ DlpActionInfo
+ // RestrictionAction undocumented
+ RestrictionAction *RestrictionAction `json:"restrictionAction,omitempty"`
+ // Triggers undocumented
+ Triggers []RestrictionTrigger `json:"triggers,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceSetupConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceSetupConfigurationModel.go
new file mode 100644
index 00000000..9f514fff
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceSetupConfigurationModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DeviceSetupConfiguration This is the base class for Setup Configuration. Setup configurations are platform specific and individual per-platform setup configurations inherit from here.
+type DeviceSetupConfiguration struct {
+ // Entity is the base model of DeviceSetupConfiguration
+ Entity
+ // CreatedDateTime DateTime the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Description Admin provided description of the Device Configuration.
+ Description *string `json:"description,omitempty"`
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DisplayName Admin provided name of the device configuration.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version Version of the device configuration.
+ Version *int `json:"version,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceThreatProtectionLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceThreatProtectionLevelEnum.go
new file mode 100644
index 00000000..db5b610e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceThreatProtectionLevelEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceThreatProtectionLevel undocumented
+type DeviceThreatProtectionLevel int
+
+const (
+ // DeviceThreatProtectionLevelVUnavailable undocumented
+ DeviceThreatProtectionLevelVUnavailable DeviceThreatProtectionLevel = 0
+ // DeviceThreatProtectionLevelVSecured undocumented
+ DeviceThreatProtectionLevelVSecured DeviceThreatProtectionLevel = 1
+ // DeviceThreatProtectionLevelVLow undocumented
+ DeviceThreatProtectionLevelVLow DeviceThreatProtectionLevel = 2
+ // DeviceThreatProtectionLevelVMedium undocumented
+ DeviceThreatProtectionLevelVMedium DeviceThreatProtectionLevel = 3
+ // DeviceThreatProtectionLevelVHigh undocumented
+ DeviceThreatProtectionLevelVHigh DeviceThreatProtectionLevel = 4
+ // DeviceThreatProtectionLevelVNotSet undocumented
+ DeviceThreatProtectionLevelVNotSet DeviceThreatProtectionLevel = 10
+)
+
+// DeviceThreatProtectionLevelPUnavailable returns a pointer to DeviceThreatProtectionLevelVUnavailable
+func DeviceThreatProtectionLevelPUnavailable() *DeviceThreatProtectionLevel {
+ v := DeviceThreatProtectionLevelVUnavailable
+ return &v
+}
+
+// DeviceThreatProtectionLevelPSecured returns a pointer to DeviceThreatProtectionLevelVSecured
+func DeviceThreatProtectionLevelPSecured() *DeviceThreatProtectionLevel {
+ v := DeviceThreatProtectionLevelVSecured
+ return &v
+}
+
+// DeviceThreatProtectionLevelPLow returns a pointer to DeviceThreatProtectionLevelVLow
+func DeviceThreatProtectionLevelPLow() *DeviceThreatProtectionLevel {
+ v := DeviceThreatProtectionLevelVLow
+ return &v
+}
+
+// DeviceThreatProtectionLevelPMedium returns a pointer to DeviceThreatProtectionLevelVMedium
+func DeviceThreatProtectionLevelPMedium() *DeviceThreatProtectionLevel {
+ v := DeviceThreatProtectionLevelVMedium
+ return &v
+}
+
+// DeviceThreatProtectionLevelPHigh returns a pointer to DeviceThreatProtectionLevelVHigh
+func DeviceThreatProtectionLevelPHigh() *DeviceThreatProtectionLevel {
+ v := DeviceThreatProtectionLevelVHigh
+ return &v
+}
+
+// DeviceThreatProtectionLevelPNotSet returns a pointer to DeviceThreatProtectionLevelVNotSet
+func DeviceThreatProtectionLevelPNotSet() *DeviceThreatProtectionLevel {
+ v := DeviceThreatProtectionLevelVNotSet
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceTypeEnum.go
new file mode 100644
index 00000000..fb910dbb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceTypeEnum.go
@@ -0,0 +1,185 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceType undocumented
+type DeviceType int
+
+const (
+ // DeviceTypeVDesktop undocumented
+ DeviceTypeVDesktop DeviceType = 0
+ // DeviceTypeVWindowsRT undocumented
+ DeviceTypeVWindowsRT DeviceType = 1
+ // DeviceTypeVWinMO6 undocumented
+ DeviceTypeVWinMO6 DeviceType = 2
+ // DeviceTypeVNokia undocumented
+ DeviceTypeVNokia DeviceType = 3
+ // DeviceTypeVWindowsPhone undocumented
+ DeviceTypeVWindowsPhone DeviceType = 4
+ // DeviceTypeVMac undocumented
+ DeviceTypeVMac DeviceType = 5
+ // DeviceTypeVWinCE undocumented
+ DeviceTypeVWinCE DeviceType = 6
+ // DeviceTypeVWinEmbedded undocumented
+ DeviceTypeVWinEmbedded DeviceType = 7
+ // DeviceTypeVIPhone undocumented
+ DeviceTypeVIPhone DeviceType = 8
+ // DeviceTypeVIPad undocumented
+ DeviceTypeVIPad DeviceType = 9
+ // DeviceTypeVIPod undocumented
+ DeviceTypeVIPod DeviceType = 10
+ // DeviceTypeVAndroid undocumented
+ DeviceTypeVAndroid DeviceType = 11
+ // DeviceTypeVISocConsumer undocumented
+ DeviceTypeVISocConsumer DeviceType = 12
+ // DeviceTypeVUnix undocumented
+ DeviceTypeVUnix DeviceType = 13
+ // DeviceTypeVMacMDM undocumented
+ DeviceTypeVMacMDM DeviceType = 14
+ // DeviceTypeVHoloLens undocumented
+ DeviceTypeVHoloLens DeviceType = 15
+ // DeviceTypeVSurfaceHub undocumented
+ DeviceTypeVSurfaceHub DeviceType = 16
+ // DeviceTypeVAndroidForWork undocumented
+ DeviceTypeVAndroidForWork DeviceType = 17
+ // DeviceTypeVAndroidEnterprise undocumented
+ DeviceTypeVAndroidEnterprise DeviceType = 18
+ // DeviceTypeVBlackberry undocumented
+ DeviceTypeVBlackberry DeviceType = 100
+ // DeviceTypeVPalm undocumented
+ DeviceTypeVPalm DeviceType = 101
+ // DeviceTypeVUnknown undocumented
+ DeviceTypeVUnknown DeviceType = 255
+)
+
+// DeviceTypePDesktop returns a pointer to DeviceTypeVDesktop
+func DeviceTypePDesktop() *DeviceType {
+ v := DeviceTypeVDesktop
+ return &v
+}
+
+// DeviceTypePWindowsRT returns a pointer to DeviceTypeVWindowsRT
+func DeviceTypePWindowsRT() *DeviceType {
+ v := DeviceTypeVWindowsRT
+ return &v
+}
+
+// DeviceTypePWinMO6 returns a pointer to DeviceTypeVWinMO6
+func DeviceTypePWinMO6() *DeviceType {
+ v := DeviceTypeVWinMO6
+ return &v
+}
+
+// DeviceTypePNokia returns a pointer to DeviceTypeVNokia
+func DeviceTypePNokia() *DeviceType {
+ v := DeviceTypeVNokia
+ return &v
+}
+
+// DeviceTypePWindowsPhone returns a pointer to DeviceTypeVWindowsPhone
+func DeviceTypePWindowsPhone() *DeviceType {
+ v := DeviceTypeVWindowsPhone
+ return &v
+}
+
+// DeviceTypePMac returns a pointer to DeviceTypeVMac
+func DeviceTypePMac() *DeviceType {
+ v := DeviceTypeVMac
+ return &v
+}
+
+// DeviceTypePWinCE returns a pointer to DeviceTypeVWinCE
+func DeviceTypePWinCE() *DeviceType {
+ v := DeviceTypeVWinCE
+ return &v
+}
+
+// DeviceTypePWinEmbedded returns a pointer to DeviceTypeVWinEmbedded
+func DeviceTypePWinEmbedded() *DeviceType {
+ v := DeviceTypeVWinEmbedded
+ return &v
+}
+
+// DeviceTypePIPhone returns a pointer to DeviceTypeVIPhone
+func DeviceTypePIPhone() *DeviceType {
+ v := DeviceTypeVIPhone
+ return &v
+}
+
+// DeviceTypePIPad returns a pointer to DeviceTypeVIPad
+func DeviceTypePIPad() *DeviceType {
+ v := DeviceTypeVIPad
+ return &v
+}
+
+// DeviceTypePIPod returns a pointer to DeviceTypeVIPod
+func DeviceTypePIPod() *DeviceType {
+ v := DeviceTypeVIPod
+ return &v
+}
+
+// DeviceTypePAndroid returns a pointer to DeviceTypeVAndroid
+func DeviceTypePAndroid() *DeviceType {
+ v := DeviceTypeVAndroid
+ return &v
+}
+
+// DeviceTypePISocConsumer returns a pointer to DeviceTypeVISocConsumer
+func DeviceTypePISocConsumer() *DeviceType {
+ v := DeviceTypeVISocConsumer
+ return &v
+}
+
+// DeviceTypePUnix returns a pointer to DeviceTypeVUnix
+func DeviceTypePUnix() *DeviceType {
+ v := DeviceTypeVUnix
+ return &v
+}
+
+// DeviceTypePMacMDM returns a pointer to DeviceTypeVMacMDM
+func DeviceTypePMacMDM() *DeviceType {
+ v := DeviceTypeVMacMDM
+ return &v
+}
+
+// DeviceTypePHoloLens returns a pointer to DeviceTypeVHoloLens
+func DeviceTypePHoloLens() *DeviceType {
+ v := DeviceTypeVHoloLens
+ return &v
+}
+
+// DeviceTypePSurfaceHub returns a pointer to DeviceTypeVSurfaceHub
+func DeviceTypePSurfaceHub() *DeviceType {
+ v := DeviceTypeVSurfaceHub
+ return &v
+}
+
+// DeviceTypePAndroidForWork returns a pointer to DeviceTypeVAndroidForWork
+func DeviceTypePAndroidForWork() *DeviceType {
+ v := DeviceTypeVAndroidForWork
+ return &v
+}
+
+// DeviceTypePAndroidEnterprise returns a pointer to DeviceTypeVAndroidEnterprise
+func DeviceTypePAndroidEnterprise() *DeviceType {
+ v := DeviceTypeVAndroidEnterprise
+ return &v
+}
+
+// DeviceTypePBlackberry returns a pointer to DeviceTypeVBlackberry
+func DeviceTypePBlackberry() *DeviceType {
+ v := DeviceTypeVBlackberry
+ return &v
+}
+
+// DeviceTypePPalm returns a pointer to DeviceTypeVPalm
+func DeviceTypePPalm() *DeviceType {
+ v := DeviceTypeVPalm
+ return &v
+}
+
+// DeviceTypePUnknown returns a pointer to DeviceTypeVUnknown
+func DeviceTypePUnknown() *DeviceType {
+ v := DeviceTypeVUnknown
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DeviceTypesEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceTypesEnum.go
new file mode 100644
index 00000000..4a40c409
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DeviceTypesEnum.go
@@ -0,0 +1,185 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceTypes undocumented
+type DeviceTypes int
+
+const (
+ // DeviceTypesVDesktop undocumented
+ DeviceTypesVDesktop DeviceTypes = 0
+ // DeviceTypesVWindowsRT undocumented
+ DeviceTypesVWindowsRT DeviceTypes = 1
+ // DeviceTypesVWinMO6 undocumented
+ DeviceTypesVWinMO6 DeviceTypes = 2
+ // DeviceTypesVNokia undocumented
+ DeviceTypesVNokia DeviceTypes = 3
+ // DeviceTypesVWindowsPhone undocumented
+ DeviceTypesVWindowsPhone DeviceTypes = 4
+ // DeviceTypesVMac undocumented
+ DeviceTypesVMac DeviceTypes = 5
+ // DeviceTypesVWinCE undocumented
+ DeviceTypesVWinCE DeviceTypes = 6
+ // DeviceTypesVWinEmbedded undocumented
+ DeviceTypesVWinEmbedded DeviceTypes = 7
+ // DeviceTypesVIPhone undocumented
+ DeviceTypesVIPhone DeviceTypes = 8
+ // DeviceTypesVIPad undocumented
+ DeviceTypesVIPad DeviceTypes = 9
+ // DeviceTypesVIPod undocumented
+ DeviceTypesVIPod DeviceTypes = 10
+ // DeviceTypesVAndroid undocumented
+ DeviceTypesVAndroid DeviceTypes = 11
+ // DeviceTypesVISocConsumer undocumented
+ DeviceTypesVISocConsumer DeviceTypes = 12
+ // DeviceTypesVUnix undocumented
+ DeviceTypesVUnix DeviceTypes = 13
+ // DeviceTypesVMacMDM undocumented
+ DeviceTypesVMacMDM DeviceTypes = 14
+ // DeviceTypesVHoloLens undocumented
+ DeviceTypesVHoloLens DeviceTypes = 15
+ // DeviceTypesVSurfaceHub undocumented
+ DeviceTypesVSurfaceHub DeviceTypes = 16
+ // DeviceTypesVAndroidForWork undocumented
+ DeviceTypesVAndroidForWork DeviceTypes = 17
+ // DeviceTypesVAndroidEnterprise undocumented
+ DeviceTypesVAndroidEnterprise DeviceTypes = 18
+ // DeviceTypesVBlackberry undocumented
+ DeviceTypesVBlackberry DeviceTypes = 100
+ // DeviceTypesVPalm undocumented
+ DeviceTypesVPalm DeviceTypes = 101
+ // DeviceTypesVUnknown undocumented
+ DeviceTypesVUnknown DeviceTypes = 255
+)
+
+// DeviceTypesPDesktop returns a pointer to DeviceTypesVDesktop
+func DeviceTypesPDesktop() *DeviceTypes {
+ v := DeviceTypesVDesktop
+ return &v
+}
+
+// DeviceTypesPWindowsRT returns a pointer to DeviceTypesVWindowsRT
+func DeviceTypesPWindowsRT() *DeviceTypes {
+ v := DeviceTypesVWindowsRT
+ return &v
+}
+
+// DeviceTypesPWinMO6 returns a pointer to DeviceTypesVWinMO6
+func DeviceTypesPWinMO6() *DeviceTypes {
+ v := DeviceTypesVWinMO6
+ return &v
+}
+
+// DeviceTypesPNokia returns a pointer to DeviceTypesVNokia
+func DeviceTypesPNokia() *DeviceTypes {
+ v := DeviceTypesVNokia
+ return &v
+}
+
+// DeviceTypesPWindowsPhone returns a pointer to DeviceTypesVWindowsPhone
+func DeviceTypesPWindowsPhone() *DeviceTypes {
+ v := DeviceTypesVWindowsPhone
+ return &v
+}
+
+// DeviceTypesPMac returns a pointer to DeviceTypesVMac
+func DeviceTypesPMac() *DeviceTypes {
+ v := DeviceTypesVMac
+ return &v
+}
+
+// DeviceTypesPWinCE returns a pointer to DeviceTypesVWinCE
+func DeviceTypesPWinCE() *DeviceTypes {
+ v := DeviceTypesVWinCE
+ return &v
+}
+
+// DeviceTypesPWinEmbedded returns a pointer to DeviceTypesVWinEmbedded
+func DeviceTypesPWinEmbedded() *DeviceTypes {
+ v := DeviceTypesVWinEmbedded
+ return &v
+}
+
+// DeviceTypesPIPhone returns a pointer to DeviceTypesVIPhone
+func DeviceTypesPIPhone() *DeviceTypes {
+ v := DeviceTypesVIPhone
+ return &v
+}
+
+// DeviceTypesPIPad returns a pointer to DeviceTypesVIPad
+func DeviceTypesPIPad() *DeviceTypes {
+ v := DeviceTypesVIPad
+ return &v
+}
+
+// DeviceTypesPIPod returns a pointer to DeviceTypesVIPod
+func DeviceTypesPIPod() *DeviceTypes {
+ v := DeviceTypesVIPod
+ return &v
+}
+
+// DeviceTypesPAndroid returns a pointer to DeviceTypesVAndroid
+func DeviceTypesPAndroid() *DeviceTypes {
+ v := DeviceTypesVAndroid
+ return &v
+}
+
+// DeviceTypesPISocConsumer returns a pointer to DeviceTypesVISocConsumer
+func DeviceTypesPISocConsumer() *DeviceTypes {
+ v := DeviceTypesVISocConsumer
+ return &v
+}
+
+// DeviceTypesPUnix returns a pointer to DeviceTypesVUnix
+func DeviceTypesPUnix() *DeviceTypes {
+ v := DeviceTypesVUnix
+ return &v
+}
+
+// DeviceTypesPMacMDM returns a pointer to DeviceTypesVMacMDM
+func DeviceTypesPMacMDM() *DeviceTypes {
+ v := DeviceTypesVMacMDM
+ return &v
+}
+
+// DeviceTypesPHoloLens returns a pointer to DeviceTypesVHoloLens
+func DeviceTypesPHoloLens() *DeviceTypes {
+ v := DeviceTypesVHoloLens
+ return &v
+}
+
+// DeviceTypesPSurfaceHub returns a pointer to DeviceTypesVSurfaceHub
+func DeviceTypesPSurfaceHub() *DeviceTypes {
+ v := DeviceTypesVSurfaceHub
+ return &v
+}
+
+// DeviceTypesPAndroidForWork returns a pointer to DeviceTypesVAndroidForWork
+func DeviceTypesPAndroidForWork() *DeviceTypes {
+ v := DeviceTypesVAndroidForWork
+ return &v
+}
+
+// DeviceTypesPAndroidEnterprise returns a pointer to DeviceTypesVAndroidEnterprise
+func DeviceTypesPAndroidEnterprise() *DeviceTypes {
+ v := DeviceTypesVAndroidEnterprise
+ return &v
+}
+
+// DeviceTypesPBlackberry returns a pointer to DeviceTypesVBlackberry
+func DeviceTypesPBlackberry() *DeviceTypes {
+ v := DeviceTypesVBlackberry
+ return &v
+}
+
+// DeviceTypesPPalm returns a pointer to DeviceTypesVPalm
+func DeviceTypesPPalm() *DeviceTypes {
+ v := DeviceTypesVPalm
+ return &v
+}
+
+// DeviceTypesPUnknown returns a pointer to DeviceTypesVUnknown
+func DeviceTypesPUnknown() *DeviceTypes {
+ v := DeviceTypesVUnknown
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DiagnosticDataSubmissionModeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DiagnosticDataSubmissionModeEnum.go
new file mode 100644
index 00000000..fc608934
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DiagnosticDataSubmissionModeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DiagnosticDataSubmissionMode undocumented
+type DiagnosticDataSubmissionMode int
+
+const (
+ // DiagnosticDataSubmissionModeVUserDefined undocumented
+ DiagnosticDataSubmissionModeVUserDefined DiagnosticDataSubmissionMode = 0
+ // DiagnosticDataSubmissionModeVNone undocumented
+ DiagnosticDataSubmissionModeVNone DiagnosticDataSubmissionMode = 1
+ // DiagnosticDataSubmissionModeVBasic undocumented
+ DiagnosticDataSubmissionModeVBasic DiagnosticDataSubmissionMode = 2
+ // DiagnosticDataSubmissionModeVEnhanced undocumented
+ DiagnosticDataSubmissionModeVEnhanced DiagnosticDataSubmissionMode = 3
+ // DiagnosticDataSubmissionModeVFull undocumented
+ DiagnosticDataSubmissionModeVFull DiagnosticDataSubmissionMode = 4
+)
+
+// DiagnosticDataSubmissionModePUserDefined returns a pointer to DiagnosticDataSubmissionModeVUserDefined
+func DiagnosticDataSubmissionModePUserDefined() *DiagnosticDataSubmissionMode {
+ v := DiagnosticDataSubmissionModeVUserDefined
+ return &v
+}
+
+// DiagnosticDataSubmissionModePNone returns a pointer to DiagnosticDataSubmissionModeVNone
+func DiagnosticDataSubmissionModePNone() *DiagnosticDataSubmissionMode {
+ v := DiagnosticDataSubmissionModeVNone
+ return &v
+}
+
+// DiagnosticDataSubmissionModePBasic returns a pointer to DiagnosticDataSubmissionModeVBasic
+func DiagnosticDataSubmissionModePBasic() *DiagnosticDataSubmissionMode {
+ v := DiagnosticDataSubmissionModeVBasic
+ return &v
+}
+
+// DiagnosticDataSubmissionModePEnhanced returns a pointer to DiagnosticDataSubmissionModeVEnhanced
+func DiagnosticDataSubmissionModePEnhanced() *DiagnosticDataSubmissionMode {
+ v := DiagnosticDataSubmissionModeVEnhanced
+ return &v
+}
+
+// DiagnosticDataSubmissionModePFull returns a pointer to DiagnosticDataSubmissionModeVFull
+func DiagnosticDataSubmissionModePFull() *DiagnosticDataSubmissionMode {
+ v := DiagnosticDataSubmissionModeVFull
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DiagnosticModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DiagnosticModel.go
new file mode 100644
index 00000000..a557c396
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DiagnosticModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Diagnostic undocumented
+type Diagnostic struct {
+ // Object is the base model of Diagnostic
+ Object
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DiamondModelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DiamondModelEnum.go
new file mode 100644
index 00000000..5a5f420b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DiamondModelEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DiamondModel undocumented
+type DiamondModel int
+
+const (
+ // DiamondModelVUnknown undocumented
+ DiamondModelVUnknown DiamondModel = 0
+ // DiamondModelVAdversary undocumented
+ DiamondModelVAdversary DiamondModel = 1
+ // DiamondModelVCapability undocumented
+ DiamondModelVCapability DiamondModel = 2
+ // DiamondModelVInfrastructure undocumented
+ DiamondModelVInfrastructure DiamondModel = 3
+ // DiamondModelVVictim undocumented
+ DiamondModelVVictim DiamondModel = 4
+ // DiamondModelVUnknownFutureValue undocumented
+ DiamondModelVUnknownFutureValue DiamondModel = 127
+)
+
+// DiamondModelPUnknown returns a pointer to DiamondModelVUnknown
+func DiamondModelPUnknown() *DiamondModel {
+ v := DiamondModelVUnknown
+ return &v
+}
+
+// DiamondModelPAdversary returns a pointer to DiamondModelVAdversary
+func DiamondModelPAdversary() *DiamondModel {
+ v := DiamondModelVAdversary
+ return &v
+}
+
+// DiamondModelPCapability returns a pointer to DiamondModelVCapability
+func DiamondModelPCapability() *DiamondModel {
+ v := DiamondModelVCapability
+ return &v
+}
+
+// DiamondModelPInfrastructure returns a pointer to DiamondModelVInfrastructure
+func DiamondModelPInfrastructure() *DiamondModel {
+ v := DiamondModelVInfrastructure
+ return &v
+}
+
+// DiamondModelPVictim returns a pointer to DiamondModelVVictim
+func DiamondModelPVictim() *DiamondModel {
+ v := DiamondModelVVictim
+ return &v
+}
+
+// DiamondModelPUnknownFutureValue returns a pointer to DiamondModelVUnknownFutureValue
+func DiamondModelPUnknownFutureValue() *DiamondModel {
+ v := DiamondModelVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DimensionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DimensionModel.go
new file mode 100644
index 00000000..51718cd8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DimensionModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Dimension undocumented
+type Dimension struct {
+ // Entity is the base model of Dimension
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DimensionValues undocumented
+ DimensionValues []DimensionValue `json:"dimensionValues,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DimensionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DimensionRequest.go
new file mode 100644
index 00000000..1f0529ad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DimensionRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DimensionRequestBuilder is request builder for Dimension
+type DimensionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DimensionRequest
+func (b *DimensionRequestBuilder) Request() *DimensionRequest {
+ return &DimensionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DimensionRequest is request for Dimension
+type DimensionRequest struct{ BaseRequest }
+
+// Get performs GET request for Dimension
+func (r *DimensionRequest) Get(ctx context.Context) (resObj *Dimension, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Dimension
+func (r *DimensionRequest) Update(ctx context.Context, reqObj *Dimension) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Dimension
+func (r *DimensionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DimensionValues returns request builder for DimensionValue collection
+func (b *DimensionRequestBuilder) DimensionValues() *DimensionDimensionValuesCollectionRequestBuilder {
+ bb := &DimensionDimensionValuesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/dimensionValues"
+ return bb
+}
+
+// DimensionDimensionValuesCollectionRequestBuilder is request builder for DimensionValue collection
+type DimensionDimensionValuesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DimensionValue collection
+func (b *DimensionDimensionValuesCollectionRequestBuilder) Request() *DimensionDimensionValuesCollectionRequest {
+ return &DimensionDimensionValuesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DimensionValue item
+func (b *DimensionDimensionValuesCollectionRequestBuilder) ID(id string) *DimensionValueRequestBuilder {
+ bb := &DimensionValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DimensionDimensionValuesCollectionRequest is request for DimensionValue collection
+type DimensionDimensionValuesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DimensionValue collection
+func (r *DimensionDimensionValuesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DimensionValue, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DimensionValue
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DimensionValue
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DimensionValue collection
+func (r *DimensionDimensionValuesCollectionRequest) Get(ctx context.Context) ([]DimensionValue, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DimensionValue collection
+func (r *DimensionDimensionValuesCollectionRequest) Add(ctx context.Context, reqObj *DimensionValue) (resObj *DimensionValue, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DimensionValueModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DimensionValueModel.go
new file mode 100644
index 00000000..c06bf42c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DimensionValueModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DimensionValue undocumented
+type DimensionValue struct {
+ // Entity is the base model of DimensionValue
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DimensionValueRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DimensionValueRequest.go
new file mode 100644
index 00000000..580d2bbb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DimensionValueRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DimensionValueRequestBuilder is request builder for DimensionValue
+type DimensionValueRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DimensionValueRequest
+func (b *DimensionValueRequestBuilder) Request() *DimensionValueRequest {
+ return &DimensionValueRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DimensionValueRequest is request for DimensionValue
+type DimensionValueRequest struct{ BaseRequest }
+
+// Get performs GET request for DimensionValue
+func (r *DimensionValueRequest) Get(ctx context.Context) (resObj *DimensionValue, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DimensionValue
+func (r *DimensionValueRequest) Update(ctx context.Context, reqObj *DimensionValue) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DimensionValue
+func (r *DimensionValueRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryAuditModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryAuditModel.go
new file mode 100644
index 00000000..abe9525e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryAuditModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DirectoryAudit undocumented
+type DirectoryAudit struct {
+ // Entity is the base model of DirectoryAudit
+ Entity
+ // Category undocumented
+ Category *string `json:"category,omitempty"`
+ // CorrelationID undocumented
+ CorrelationID *string `json:"correlationId,omitempty"`
+ // Result undocumented
+ Result *OperationResult `json:"result,omitempty"`
+ // ResultReason undocumented
+ ResultReason *string `json:"resultReason,omitempty"`
+ // ActivityDisplayName undocumented
+ ActivityDisplayName *string `json:"activityDisplayName,omitempty"`
+ // ActivityDateTime undocumented
+ ActivityDateTime *time.Time `json:"activityDateTime,omitempty"`
+ // LoggedByService undocumented
+ LoggedByService *string `json:"loggedByService,omitempty"`
+ // OperationType undocumented
+ OperationType *string `json:"operationType,omitempty"`
+ // InitiatedBy undocumented
+ InitiatedBy *AuditActivityInitiator `json:"initiatedBy,omitempty"`
+ // TargetResources undocumented
+ TargetResources []TargetResource `json:"targetResources,omitempty"`
+ // AdditionalDetails undocumented
+ AdditionalDetails []KeyValue `json:"additionalDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryAuditRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryAuditRequest.go
new file mode 100644
index 00000000..c12debcc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryAuditRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DirectoryAuditRequestBuilder is request builder for DirectoryAudit
+type DirectoryAuditRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DirectoryAuditRequest
+func (b *DirectoryAuditRequestBuilder) Request() *DirectoryAuditRequest {
+ return &DirectoryAuditRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DirectoryAuditRequest is request for DirectoryAudit
+type DirectoryAuditRequest struct{ BaseRequest }
+
+// Get performs GET request for DirectoryAudit
+func (r *DirectoryAuditRequest) Get(ctx context.Context) (resObj *DirectoryAudit, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DirectoryAudit
+func (r *DirectoryAuditRequest) Update(ctx context.Context, reqObj *DirectoryAudit) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DirectoryAudit
+func (r *DirectoryAuditRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryDefinitionAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryDefinitionAction.go
new file mode 100644
index 00000000..11368988
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryDefinitionAction.go
@@ -0,0 +1,36 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DirectoryDefinitionDiscoverRequestParameter undocumented
+type DirectoryDefinitionDiscoverRequestParameter struct {
+}
+
+//
+type DirectoryDefinitionDiscoverRequestBuilder struct{ BaseRequestBuilder }
+
+// Discover action undocumented
+func (b *DirectoryDefinitionRequestBuilder) Discover(reqObj *DirectoryDefinitionDiscoverRequestParameter) *DirectoryDefinitionDiscoverRequestBuilder {
+ bb := &DirectoryDefinitionDiscoverRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/discover"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryDefinitionDiscoverRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryDefinitionDiscoverRequestBuilder) Request() *DirectoryDefinitionDiscoverRequest {
+ return &DirectoryDefinitionDiscoverRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryDefinitionDiscoverRequest) Post(ctx context.Context) (resObj *DirectoryDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryDefinitionDiscoverabilitiesEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryDefinitionDiscoverabilitiesEnum.go
new file mode 100644
index 00000000..71925e51
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryDefinitionDiscoverabilitiesEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DirectoryDefinitionDiscoverabilities undocumented
+type DirectoryDefinitionDiscoverabilities int
+
+const (
+ // DirectoryDefinitionDiscoverabilitiesVNone undocumented
+ DirectoryDefinitionDiscoverabilitiesVNone DirectoryDefinitionDiscoverabilities = 0
+ // DirectoryDefinitionDiscoverabilitiesVAttributeNames undocumented
+ DirectoryDefinitionDiscoverabilitiesVAttributeNames DirectoryDefinitionDiscoverabilities = 1
+ // DirectoryDefinitionDiscoverabilitiesVAttributeDataTypes undocumented
+ DirectoryDefinitionDiscoverabilitiesVAttributeDataTypes DirectoryDefinitionDiscoverabilities = 2
+ // DirectoryDefinitionDiscoverabilitiesVAttributeReadOnly undocumented
+ DirectoryDefinitionDiscoverabilitiesVAttributeReadOnly DirectoryDefinitionDiscoverabilities = 4
+ // DirectoryDefinitionDiscoverabilitiesVReferenceAttributes undocumented
+ DirectoryDefinitionDiscoverabilitiesVReferenceAttributes DirectoryDefinitionDiscoverabilities = 8
+ // DirectoryDefinitionDiscoverabilitiesVUnknownFutureValue undocumented
+ DirectoryDefinitionDiscoverabilitiesVUnknownFutureValue DirectoryDefinitionDiscoverabilities = 16
+)
+
+// DirectoryDefinitionDiscoverabilitiesPNone returns a pointer to DirectoryDefinitionDiscoverabilitiesVNone
+func DirectoryDefinitionDiscoverabilitiesPNone() *DirectoryDefinitionDiscoverabilities {
+ v := DirectoryDefinitionDiscoverabilitiesVNone
+ return &v
+}
+
+// DirectoryDefinitionDiscoverabilitiesPAttributeNames returns a pointer to DirectoryDefinitionDiscoverabilitiesVAttributeNames
+func DirectoryDefinitionDiscoverabilitiesPAttributeNames() *DirectoryDefinitionDiscoverabilities {
+ v := DirectoryDefinitionDiscoverabilitiesVAttributeNames
+ return &v
+}
+
+// DirectoryDefinitionDiscoverabilitiesPAttributeDataTypes returns a pointer to DirectoryDefinitionDiscoverabilitiesVAttributeDataTypes
+func DirectoryDefinitionDiscoverabilitiesPAttributeDataTypes() *DirectoryDefinitionDiscoverabilities {
+ v := DirectoryDefinitionDiscoverabilitiesVAttributeDataTypes
+ return &v
+}
+
+// DirectoryDefinitionDiscoverabilitiesPAttributeReadOnly returns a pointer to DirectoryDefinitionDiscoverabilitiesVAttributeReadOnly
+func DirectoryDefinitionDiscoverabilitiesPAttributeReadOnly() *DirectoryDefinitionDiscoverabilities {
+ v := DirectoryDefinitionDiscoverabilitiesVAttributeReadOnly
+ return &v
+}
+
+// DirectoryDefinitionDiscoverabilitiesPReferenceAttributes returns a pointer to DirectoryDefinitionDiscoverabilitiesVReferenceAttributes
+func DirectoryDefinitionDiscoverabilitiesPReferenceAttributes() *DirectoryDefinitionDiscoverabilities {
+ v := DirectoryDefinitionDiscoverabilitiesVReferenceAttributes
+ return &v
+}
+
+// DirectoryDefinitionDiscoverabilitiesPUnknownFutureValue returns a pointer to DirectoryDefinitionDiscoverabilitiesVUnknownFutureValue
+func DirectoryDefinitionDiscoverabilitiesPUnknownFutureValue() *DirectoryDefinitionDiscoverabilities {
+ v := DirectoryDefinitionDiscoverabilitiesVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryDefinitionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryDefinitionModel.go
new file mode 100644
index 00000000..bd6de9f6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryDefinitionModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DirectoryDefinition undocumented
+type DirectoryDefinition struct {
+ // Entity is the base model of DirectoryDefinition
+ Entity
+ // DiscoveryDateTime undocumented
+ DiscoveryDateTime *time.Time `json:"discoveryDateTime,omitempty"`
+ // Discoverabilities undocumented
+ Discoverabilities *DirectoryDefinitionDiscoverabilities `json:"discoverabilities,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Objects undocumented
+ Objects []ObjectDefinition `json:"objects,omitempty"`
+ // ReadOnly undocumented
+ ReadOnly *bool `json:"readOnly,omitempty"`
+ // Version undocumented
+ Version *string `json:"version,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryDefinitionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryDefinitionRequest.go
new file mode 100644
index 00000000..244154ee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryDefinitionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DirectoryDefinitionRequestBuilder is request builder for DirectoryDefinition
+type DirectoryDefinitionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DirectoryDefinitionRequest
+func (b *DirectoryDefinitionRequestBuilder) Request() *DirectoryDefinitionRequest {
+ return &DirectoryDefinitionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DirectoryDefinitionRequest is request for DirectoryDefinition
+type DirectoryDefinitionRequest struct{ BaseRequest }
+
+// Get performs GET request for DirectoryDefinition
+func (r *DirectoryDefinitionRequest) Get(ctx context.Context) (resObj *DirectoryDefinition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DirectoryDefinition
+func (r *DirectoryDefinitionRequest) Update(ctx context.Context, reqObj *DirectoryDefinition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DirectoryDefinition
+func (r *DirectoryDefinitionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryModel.go
new file mode 100644
index 00000000..a12eeed2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Directory undocumented
+type Directory struct {
+ // Entity is the base model of Directory
+ Entity
+ // DeletedItems undocumented
+ DeletedItems []DirectoryObject `json:"deletedItems,omitempty"`
+ // FeatureRolloutPolicies undocumented
+ FeatureRolloutPolicies []FeatureRolloutPolicy `json:"featureRolloutPolicies,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryObjectAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryObjectAction.go
new file mode 100644
index 00000000..d2b32a95
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryObjectAction.go
@@ -0,0 +1,1398 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DirectoryObjectCollectionGetByIDsRequestParameter undocumented
+type DirectoryObjectCollectionGetByIDsRequestParameter struct {
+ // IDs undocumented
+ IDs []string `json:"ids,omitempty"`
+ // Types undocumented
+ Types []string `json:"types,omitempty"`
+}
+
+// DirectoryObjectCollectionValidatePropertiesRequestParameter undocumented
+type DirectoryObjectCollectionValidatePropertiesRequestParameter struct {
+ // EntityType undocumented
+ EntityType *string `json:"entityType,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // MailNickname undocumented
+ MailNickname *string `json:"mailNickname,omitempty"`
+ // OnBehalfOfUserID undocumented
+ OnBehalfOfUserID *UUID `json:"onBehalfOfUserId,omitempty"`
+}
+
+// DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter undocumented
+type DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter struct {
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
+
+// DirectoryObjectCheckMemberGroupsRequestParameter undocumented
+type DirectoryObjectCheckMemberGroupsRequestParameter struct {
+ // GroupIDs undocumented
+ GroupIDs []string `json:"groupIds,omitempty"`
+}
+
+// DirectoryObjectCheckMemberObjectsRequestParameter undocumented
+type DirectoryObjectCheckMemberObjectsRequestParameter struct {
+ // IDs undocumented
+ IDs []string `json:"ids,omitempty"`
+}
+
+// DirectoryObjectGetMemberGroupsRequestParameter undocumented
+type DirectoryObjectGetMemberGroupsRequestParameter struct {
+ // SecurityEnabledOnly undocumented
+ SecurityEnabledOnly *bool `json:"securityEnabledOnly,omitempty"`
+}
+
+// DirectoryObjectGetMemberObjectsRequestParameter undocumented
+type DirectoryObjectGetMemberObjectsRequestParameter struct {
+ // SecurityEnabledOnly undocumented
+ SecurityEnabledOnly *bool `json:"securityEnabledOnly,omitempty"`
+}
+
+// DirectoryObjectRestoreRequestParameter undocumented
+type DirectoryObjectRestoreRequestParameter struct {
+}
+
+//
+type DirectoryObjectCollectionGetByIDsRequestBuilder struct{ BaseRequestBuilder }
+
+// GetByIDs action undocumented
+func (b *AdministrativeUnitMembersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *ApplicationOwnersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *ApplicationPoliciesCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *DeviceMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *DeviceRegisteredOwnersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *DeviceRegisteredUsersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *DeviceTransitiveMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *DirectoryDeletedItemsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *DirectoryRoleMembersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *DomainDomainNameReferencesCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *FeatureRolloutPolicyAppliesToCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *GroupAcceptedSendersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *GroupMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *GroupMembersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *GroupMembersWithLicenseErrorsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *GroupOwnersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *GroupRejectedSendersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *GroupTransitiveMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *GroupTransitiveMembersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *OrgContactDirectReportsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *OrgContactMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *OrgContactTransitiveMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *PolicyAppliesToCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *ServicePrincipalCreatedObjectsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *ServicePrincipalMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *ServicePrincipalOwnedObjectsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *ServicePrincipalOwnersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *ServicePrincipalPoliciesCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *UserCreatedObjectsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *UserDirectReportsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *UserMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *UserOwnedDevicesCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *UserOwnedObjectsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *UserRegisteredDevicesCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *UserTransitiveMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryObjectCollectionGetByIDsRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryObjectCollectionGetByIDsRequestBuilder) Request() *DirectoryObjectCollectionGetByIDsRequest {
+ return &DirectoryObjectCollectionGetByIDsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryObjectCollectionGetByIDsRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DirectoryObjectCollectionGetByIDsRequest) Get(ctx context.Context) ([][]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type DirectoryObjectCollectionValidatePropertiesRequestBuilder struct{ BaseRequestBuilder }
+
+// ValidateProperties action undocumented
+func (b *AdministrativeUnitMembersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *ApplicationOwnersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *ApplicationPoliciesCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *DeviceMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *DeviceRegisteredOwnersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *DeviceRegisteredUsersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *DeviceTransitiveMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *DirectoryDeletedItemsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *DirectoryRoleMembersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *DomainDomainNameReferencesCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *FeatureRolloutPolicyAppliesToCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *GroupAcceptedSendersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *GroupMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *GroupMembersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *GroupMembersWithLicenseErrorsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *GroupOwnersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *GroupRejectedSendersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *GroupTransitiveMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *GroupTransitiveMembersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *OrgContactDirectReportsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *OrgContactMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *OrgContactTransitiveMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *PolicyAppliesToCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *ServicePrincipalCreatedObjectsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *ServicePrincipalMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *ServicePrincipalOwnedObjectsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *ServicePrincipalOwnersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *ServicePrincipalPoliciesCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *UserCreatedObjectsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *UserDirectReportsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *UserMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *UserOwnedDevicesCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *UserOwnedObjectsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *UserRegisteredDevicesCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *UserTransitiveMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryObjectCollectionValidatePropertiesRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryObjectCollectionValidatePropertiesRequestBuilder) Request() *DirectoryObjectCollectionValidatePropertiesRequest {
+ return &DirectoryObjectCollectionValidatePropertiesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryObjectCollectionValidatePropertiesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder struct{ BaseRequestBuilder }
+
+// GetUserOwnedObjects action undocumented
+func (b *AdministrativeUnitMembersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *ApplicationOwnersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *ApplicationPoliciesCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *DeviceMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *DeviceRegisteredOwnersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *DeviceRegisteredUsersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *DeviceTransitiveMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *DirectoryDeletedItemsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *DirectoryRoleMembersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *DomainDomainNameReferencesCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *FeatureRolloutPolicyAppliesToCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *GroupAcceptedSendersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *GroupMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *GroupMembersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *GroupMembersWithLicenseErrorsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *GroupOwnersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *GroupRejectedSendersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *GroupTransitiveMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *GroupTransitiveMembersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *OrgContactDirectReportsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *OrgContactMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *OrgContactTransitiveMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *PolicyAppliesToCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *ServicePrincipalCreatedObjectsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *ServicePrincipalMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *ServicePrincipalOwnedObjectsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *ServicePrincipalOwnersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *ServicePrincipalPoliciesCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *UserCreatedObjectsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *UserDirectReportsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *UserMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *UserOwnedDevicesCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *UserOwnedObjectsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *UserRegisteredDevicesCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *UserTransitiveMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryObjectCollectionGetUserOwnedObjectsRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder) Request() *DirectoryObjectCollectionGetUserOwnedObjectsRequest {
+ return &DirectoryObjectCollectionGetUserOwnedObjectsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryObjectCollectionGetUserOwnedObjectsRequest) Post(ctx context.Context) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DirectoryObjectCheckMemberGroupsRequestBuilder struct{ BaseRequestBuilder }
+
+// CheckMemberGroups action undocumented
+func (b *DirectoryObjectRequestBuilder) CheckMemberGroups(reqObj *DirectoryObjectCheckMemberGroupsRequestParameter) *DirectoryObjectCheckMemberGroupsRequestBuilder {
+ bb := &DirectoryObjectCheckMemberGroupsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/checkMemberGroups"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryObjectCheckMemberGroupsRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryObjectCheckMemberGroupsRequestBuilder) Request() *DirectoryObjectCheckMemberGroupsRequest {
+ return &DirectoryObjectCheckMemberGroupsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryObjectCheckMemberGroupsRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]string, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]string
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]string
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DirectoryObjectCheckMemberGroupsRequest) Get(ctx context.Context) ([][]string, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type DirectoryObjectCheckMemberObjectsRequestBuilder struct{ BaseRequestBuilder }
+
+// CheckMemberObjects action undocumented
+func (b *DirectoryObjectRequestBuilder) CheckMemberObjects(reqObj *DirectoryObjectCheckMemberObjectsRequestParameter) *DirectoryObjectCheckMemberObjectsRequestBuilder {
+ bb := &DirectoryObjectCheckMemberObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/checkMemberObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryObjectCheckMemberObjectsRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryObjectCheckMemberObjectsRequestBuilder) Request() *DirectoryObjectCheckMemberObjectsRequest {
+ return &DirectoryObjectCheckMemberObjectsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryObjectCheckMemberObjectsRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]string, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]string
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]string
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DirectoryObjectCheckMemberObjectsRequest) Get(ctx context.Context) ([][]string, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type DirectoryObjectGetMemberGroupsRequestBuilder struct{ BaseRequestBuilder }
+
+// GetMemberGroups action undocumented
+func (b *DirectoryObjectRequestBuilder) GetMemberGroups(reqObj *DirectoryObjectGetMemberGroupsRequestParameter) *DirectoryObjectGetMemberGroupsRequestBuilder {
+ bb := &DirectoryObjectGetMemberGroupsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getMemberGroups"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryObjectGetMemberGroupsRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryObjectGetMemberGroupsRequestBuilder) Request() *DirectoryObjectGetMemberGroupsRequest {
+ return &DirectoryObjectGetMemberGroupsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryObjectGetMemberGroupsRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]string, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]string
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]string
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DirectoryObjectGetMemberGroupsRequest) Get(ctx context.Context) ([][]string, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type DirectoryObjectGetMemberObjectsRequestBuilder struct{ BaseRequestBuilder }
+
+// GetMemberObjects action undocumented
+func (b *DirectoryObjectRequestBuilder) GetMemberObjects(reqObj *DirectoryObjectGetMemberObjectsRequestParameter) *DirectoryObjectGetMemberObjectsRequestBuilder {
+ bb := &DirectoryObjectGetMemberObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getMemberObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryObjectGetMemberObjectsRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryObjectGetMemberObjectsRequestBuilder) Request() *DirectoryObjectGetMemberObjectsRequest {
+ return &DirectoryObjectGetMemberObjectsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryObjectGetMemberObjectsRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]string, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]string
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]string
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DirectoryObjectGetMemberObjectsRequest) Get(ctx context.Context) ([][]string, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type DirectoryObjectRestoreRequestBuilder struct{ BaseRequestBuilder }
+
+// Restore action undocumented
+func (b *DirectoryObjectRequestBuilder) Restore(reqObj *DirectoryObjectRestoreRequestParameter) *DirectoryObjectRestoreRequestBuilder {
+ bb := &DirectoryObjectRestoreRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/restore"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryObjectRestoreRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryObjectRestoreRequestBuilder) Request() *DirectoryObjectRestoreRequest {
+ return &DirectoryObjectRestoreRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryObjectRestoreRequest) Post(ctx context.Context) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryObjectModel.go
new file mode 100644
index 00000000..024ca6a4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryObjectModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DirectoryObject Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
+type DirectoryObject struct {
+ // Entity is the base model of DirectoryObject
+ Entity
+ // DeletedDateTime undocumented
+ DeletedDateTime *time.Time `json:"deletedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryObjectPartnerReferenceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryObjectPartnerReferenceModel.go
new file mode 100644
index 00000000..536b5032
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryObjectPartnerReferenceModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DirectoryObjectPartnerReference undocumented
+type DirectoryObjectPartnerReference struct {
+ // DirectoryObject is the base model of DirectoryObjectPartnerReference
+ DirectoryObject
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ExternalPartnerTenantID undocumented
+ ExternalPartnerTenantID *UUID `json:"externalPartnerTenantId,omitempty"`
+ // ObjectType undocumented
+ ObjectType *string `json:"objectType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryObjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryObjectRequest.go
new file mode 100644
index 00000000..db3c9a28
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryObjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DirectoryObjectRequestBuilder is request builder for DirectoryObject
+type DirectoryObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DirectoryObjectRequest
+func (b *DirectoryObjectRequestBuilder) Request() *DirectoryObjectRequest {
+ return &DirectoryObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DirectoryObjectRequest is request for DirectoryObject
+type DirectoryObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for DirectoryObject
+func (r *DirectoryObjectRequest) Get(ctx context.Context) (resObj *DirectoryObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DirectoryObject
+func (r *DirectoryObjectRequest) Update(ctx context.Context, reqObj *DirectoryObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DirectoryObject
+func (r *DirectoryObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryRequest.go
new file mode 100644
index 00000000..997288a8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DirectoryRequestBuilder is request builder for Directory
+type DirectoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DirectoryRequest
+func (b *DirectoryRequestBuilder) Request() *DirectoryRequest {
+ return &DirectoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DirectoryRequest is request for Directory
+type DirectoryRequest struct{ BaseRequest }
+
+// Get performs GET request for Directory
+func (r *DirectoryRequest) Get(ctx context.Context) (resObj *Directory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Directory
+func (r *DirectoryRequest) Update(ctx context.Context, reqObj *Directory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Directory
+func (r *DirectoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeletedItems returns request builder for DirectoryObject collection
+func (b *DirectoryRequestBuilder) DeletedItems() *DirectoryDeletedItemsCollectionRequestBuilder {
+ bb := &DirectoryDeletedItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deletedItems"
+ return bb
+}
+
+// DirectoryDeletedItemsCollectionRequestBuilder is request builder for DirectoryObject collection
+type DirectoryDeletedItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *DirectoryDeletedItemsCollectionRequestBuilder) Request() *DirectoryDeletedItemsCollectionRequest {
+ return &DirectoryDeletedItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *DirectoryDeletedItemsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DirectoryDeletedItemsCollectionRequest is request for DirectoryObject collection
+type DirectoryDeletedItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *DirectoryDeletedItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DirectoryDeletedItemsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *DirectoryDeletedItemsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// FeatureRolloutPolicies returns request builder for FeatureRolloutPolicy collection
+func (b *DirectoryRequestBuilder) FeatureRolloutPolicies() *DirectoryFeatureRolloutPoliciesCollectionRequestBuilder {
+ bb := &DirectoryFeatureRolloutPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/featureRolloutPolicies"
+ return bb
+}
+
+// DirectoryFeatureRolloutPoliciesCollectionRequestBuilder is request builder for FeatureRolloutPolicy collection
+type DirectoryFeatureRolloutPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for FeatureRolloutPolicy collection
+func (b *DirectoryFeatureRolloutPoliciesCollectionRequestBuilder) Request() *DirectoryFeatureRolloutPoliciesCollectionRequest {
+ return &DirectoryFeatureRolloutPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for FeatureRolloutPolicy item
+func (b *DirectoryFeatureRolloutPoliciesCollectionRequestBuilder) ID(id string) *FeatureRolloutPolicyRequestBuilder {
+ bb := &FeatureRolloutPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DirectoryFeatureRolloutPoliciesCollectionRequest is request for FeatureRolloutPolicy collection
+type DirectoryFeatureRolloutPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for FeatureRolloutPolicy collection
+func (r *DirectoryFeatureRolloutPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]FeatureRolloutPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []FeatureRolloutPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []FeatureRolloutPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for FeatureRolloutPolicy collection
+func (r *DirectoryFeatureRolloutPoliciesCollectionRequest) Get(ctx context.Context) ([]FeatureRolloutPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for FeatureRolloutPolicy collection
+func (r *DirectoryFeatureRolloutPoliciesCollectionRequest) Add(ctx context.Context, reqObj *FeatureRolloutPolicy) (resObj *FeatureRolloutPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryRoleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryRoleModel.go
new file mode 100644
index 00000000..152237cb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryRoleModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DirectoryRole undocumented
+type DirectoryRole struct {
+ // DirectoryObject is the base model of DirectoryRole
+ DirectoryObject
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // RoleTemplateID undocumented
+ RoleTemplateID *string `json:"roleTemplateId,omitempty"`
+ // Members undocumented
+ Members []DirectoryObject `json:"members,omitempty"`
+ // ScopedMembers undocumented
+ ScopedMembers []ScopedRoleMembership `json:"scopedMembers,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryRoleRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryRoleRequest.go
new file mode 100644
index 00000000..a479ed33
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryRoleRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DirectoryRoleRequestBuilder is request builder for DirectoryRole
+type DirectoryRoleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DirectoryRoleRequest
+func (b *DirectoryRoleRequestBuilder) Request() *DirectoryRoleRequest {
+ return &DirectoryRoleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DirectoryRoleRequest is request for DirectoryRole
+type DirectoryRoleRequest struct{ BaseRequest }
+
+// Get performs GET request for DirectoryRole
+func (r *DirectoryRoleRequest) Get(ctx context.Context) (resObj *DirectoryRole, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DirectoryRole
+func (r *DirectoryRoleRequest) Update(ctx context.Context, reqObj *DirectoryRole) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DirectoryRole
+func (r *DirectoryRoleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Members returns request builder for DirectoryObject collection
+func (b *DirectoryRoleRequestBuilder) Members() *DirectoryRoleMembersCollectionRequestBuilder {
+ bb := &DirectoryRoleMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/members"
+ return bb
+}
+
+// DirectoryRoleMembersCollectionRequestBuilder is request builder for DirectoryObject collection
+type DirectoryRoleMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *DirectoryRoleMembersCollectionRequestBuilder) Request() *DirectoryRoleMembersCollectionRequest {
+ return &DirectoryRoleMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *DirectoryRoleMembersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DirectoryRoleMembersCollectionRequest is request for DirectoryObject collection
+type DirectoryRoleMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *DirectoryRoleMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DirectoryRoleMembersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *DirectoryRoleMembersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ScopedMembers returns request builder for ScopedRoleMembership collection
+func (b *DirectoryRoleRequestBuilder) ScopedMembers() *DirectoryRoleScopedMembersCollectionRequestBuilder {
+ bb := &DirectoryRoleScopedMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/scopedMembers"
+ return bb
+}
+
+// DirectoryRoleScopedMembersCollectionRequestBuilder is request builder for ScopedRoleMembership collection
+type DirectoryRoleScopedMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ScopedRoleMembership collection
+func (b *DirectoryRoleScopedMembersCollectionRequestBuilder) Request() *DirectoryRoleScopedMembersCollectionRequest {
+ return &DirectoryRoleScopedMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ScopedRoleMembership item
+func (b *DirectoryRoleScopedMembersCollectionRequestBuilder) ID(id string) *ScopedRoleMembershipRequestBuilder {
+ bb := &ScopedRoleMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DirectoryRoleScopedMembersCollectionRequest is request for ScopedRoleMembership collection
+type DirectoryRoleScopedMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ScopedRoleMembership collection
+func (r *DirectoryRoleScopedMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ScopedRoleMembership, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ScopedRoleMembership
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ScopedRoleMembership
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ScopedRoleMembership collection
+func (r *DirectoryRoleScopedMembersCollectionRequest) Get(ctx context.Context) ([]ScopedRoleMembership, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ScopedRoleMembership collection
+func (r *DirectoryRoleScopedMembersCollectionRequest) Add(ctx context.Context, reqObj *ScopedRoleMembership) (resObj *ScopedRoleMembership, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryRoleTemplateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryRoleTemplateModel.go
new file mode 100644
index 00000000..80e22f5e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryRoleTemplateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DirectoryRoleTemplate undocumented
+type DirectoryRoleTemplate struct {
+ // DirectoryObject is the base model of DirectoryRoleTemplate
+ DirectoryObject
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryRoleTemplateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryRoleTemplateRequest.go
new file mode 100644
index 00000000..5746f208
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectoryRoleTemplateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DirectoryRoleTemplateRequestBuilder is request builder for DirectoryRoleTemplate
+type DirectoryRoleTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DirectoryRoleTemplateRequest
+func (b *DirectoryRoleTemplateRequestBuilder) Request() *DirectoryRoleTemplateRequest {
+ return &DirectoryRoleTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DirectoryRoleTemplateRequest is request for DirectoryRoleTemplate
+type DirectoryRoleTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for DirectoryRoleTemplate
+func (r *DirectoryRoleTemplateRequest) Get(ctx context.Context) (resObj *DirectoryRoleTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DirectoryRoleTemplate
+func (r *DirectoryRoleTemplateRequest) Update(ctx context.Context, reqObj *DirectoryRoleTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DirectoryRoleTemplate
+func (r *DirectoryRoleTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectorySettingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectorySettingModel.go
new file mode 100644
index 00000000..e98c4d19
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectorySettingModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DirectorySetting undocumented
+type DirectorySetting struct {
+ // Entity is the base model of DirectorySetting
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // TemplateID undocumented
+ TemplateID *string `json:"templateId,omitempty"`
+ // Values undocumented
+ Values []SettingValue `json:"values,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectorySettingRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectorySettingRequest.go
new file mode 100644
index 00000000..c63996e1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectorySettingRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DirectorySettingRequestBuilder is request builder for DirectorySetting
+type DirectorySettingRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DirectorySettingRequest
+func (b *DirectorySettingRequestBuilder) Request() *DirectorySettingRequest {
+ return &DirectorySettingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DirectorySettingRequest is request for DirectorySetting
+type DirectorySettingRequest struct{ BaseRequest }
+
+// Get performs GET request for DirectorySetting
+func (r *DirectorySettingRequest) Get(ctx context.Context) (resObj *DirectorySetting, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DirectorySetting
+func (r *DirectorySettingRequest) Update(ctx context.Context, reqObj *DirectorySetting) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DirectorySetting
+func (r *DirectorySettingRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectorySettingTemplateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectorySettingTemplateModel.go
new file mode 100644
index 00000000..8f07bea0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectorySettingTemplateModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DirectorySettingTemplate undocumented
+type DirectorySettingTemplate struct {
+ // DirectoryObject is the base model of DirectorySettingTemplate
+ DirectoryObject
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Values undocumented
+ Values []SettingTemplateValue `json:"values,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DirectorySettingTemplateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DirectorySettingTemplateRequest.go
new file mode 100644
index 00000000..2b2d6cad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DirectorySettingTemplateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DirectorySettingTemplateRequestBuilder is request builder for DirectorySettingTemplate
+type DirectorySettingTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DirectorySettingTemplateRequest
+func (b *DirectorySettingTemplateRequestBuilder) Request() *DirectorySettingTemplateRequest {
+ return &DirectorySettingTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DirectorySettingTemplateRequest is request for DirectorySettingTemplate
+type DirectorySettingTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for DirectorySettingTemplate
+func (r *DirectorySettingTemplateRequest) Get(ctx context.Context) (resObj *DirectorySettingTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DirectorySettingTemplate
+func (r *DirectorySettingTemplateRequest) Update(ctx context.Context, reqObj *DirectorySettingTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DirectorySettingTemplate
+func (r *DirectorySettingTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DiscoveredSensitiveTypeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DiscoveredSensitiveTypeModel.go
new file mode 100644
index 00000000..04068845
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DiscoveredSensitiveTypeModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DiscoveredSensitiveType undocumented
+type DiscoveredSensitiveType struct {
+ // Object is the base model of DiscoveredSensitiveType
+ Object
+ // ID undocumented
+ ID *UUID `json:"id,omitempty"`
+ // Count undocumented
+ Count *int `json:"count,omitempty"`
+ // Confidence undocumented
+ Confidence *int `json:"confidence,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DiscoverySourceEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DiscoverySourceEnum.go
new file mode 100644
index 00000000..0e035005
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DiscoverySourceEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DiscoverySource undocumented
+type DiscoverySource int
+
+const (
+ // DiscoverySourceVUnknown undocumented
+ DiscoverySourceVUnknown DiscoverySource = 0
+ // DiscoverySourceVAdminImport undocumented
+ DiscoverySourceVAdminImport DiscoverySource = 2
+ // DiscoverySourceVDeviceEnrollmentProgram undocumented
+ DiscoverySourceVDeviceEnrollmentProgram DiscoverySource = 4
+)
+
+// DiscoverySourcePUnknown returns a pointer to DiscoverySourceVUnknown
+func DiscoverySourcePUnknown() *DiscoverySource {
+ v := DiscoverySourceVUnknown
+ return &v
+}
+
+// DiscoverySourcePAdminImport returns a pointer to DiscoverySourceVAdminImport
+func DiscoverySourcePAdminImport() *DiscoverySource {
+ v := DiscoverySourceVAdminImport
+ return &v
+}
+
+// DiscoverySourcePDeviceEnrollmentProgram returns a pointer to DiscoverySourceVDeviceEnrollmentProgram
+func DiscoverySourcePDeviceEnrollmentProgram() *DiscoverySource {
+ v := DiscoverySourceVDeviceEnrollmentProgram
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DiskTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DiskTypeEnum.go
new file mode 100644
index 00000000..60e17594
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DiskTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DiskType undocumented
+type DiskType int
+
+const (
+ // DiskTypeVUnkown undocumented
+ DiskTypeVUnkown DiskType = 0
+ // DiskTypeVHdd undocumented
+ DiskTypeVHdd DiskType = 1
+ // DiskTypeVSsd undocumented
+ DiskTypeVSsd DiskType = 2
+)
+
+// DiskTypePUnkown returns a pointer to DiskTypeVUnkown
+func DiskTypePUnkown() *DiskType {
+ v := DiskTypeVUnkown
+ return &v
+}
+
+// DiskTypePHdd returns a pointer to DiskTypeVHdd
+func DiskTypePHdd() *DiskType {
+ v := DiskTypeVHdd
+ return &v
+}
+
+// DiskTypePSsd returns a pointer to DiskTypeVSsd
+func DiskTypePSsd() *DiskType {
+ v := DiskTypeVSsd
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DlpActionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DlpActionEnum.go
new file mode 100644
index 00000000..4726c7f1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DlpActionEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DlpAction undocumented
+type DlpAction int
+
+const (
+ // DlpActionVNotifyUser undocumented
+ DlpActionVNotifyUser DlpAction = 0
+ // DlpActionVBlockAccess undocumented
+ DlpActionVBlockAccess DlpAction = 1
+ // DlpActionVDeviceRestriction undocumented
+ DlpActionVDeviceRestriction DlpAction = 2
+)
+
+// DlpActionPNotifyUser returns a pointer to DlpActionVNotifyUser
+func DlpActionPNotifyUser() *DlpAction {
+ v := DlpActionVNotifyUser
+ return &v
+}
+
+// DlpActionPBlockAccess returns a pointer to DlpActionVBlockAccess
+func DlpActionPBlockAccess() *DlpAction {
+ v := DlpActionVBlockAccess
+ return &v
+}
+
+// DlpActionPDeviceRestriction returns a pointer to DlpActionVDeviceRestriction
+func DlpActionPDeviceRestriction() *DlpAction {
+ v := DlpActionVDeviceRestriction
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DlpActionInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DlpActionInfoModel.go
new file mode 100644
index 00000000..939255ce
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DlpActionInfoModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DlpActionInfo undocumented
+type DlpActionInfo struct {
+ // Object is the base model of DlpActionInfo
+ Object
+ // Action undocumented
+ Action *DlpAction `json:"action,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DlpEvaluatePoliciesJobResponseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DlpEvaluatePoliciesJobResponseModel.go
new file mode 100644
index 00000000..780ef0a1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DlpEvaluatePoliciesJobResponseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DlpEvaluatePoliciesJobResponse undocumented
+type DlpEvaluatePoliciesJobResponse struct {
+ // JobResponseBase is the base model of DlpEvaluatePoliciesJobResponse
+ JobResponseBase
+ // Result undocumented
+ Result *DlpPoliciesJobResult `json:"result,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DlpEvaluatePoliciesRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DlpEvaluatePoliciesRequestObjectModel.go
new file mode 100644
index 00000000..e47f7e51
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DlpEvaluatePoliciesRequestObjectModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DlpEvaluatePoliciesRequestObject undocumented
+type DlpEvaluatePoliciesRequestObject struct {
+ // Object is the base model of DlpEvaluatePoliciesRequestObject
+ Object
+ // Target undocumented
+ Target *string `json:"target,omitempty"`
+ // EvaluationInput undocumented
+ EvaluationInput *DlpEvaluationInput `json:"evaluationInput,omitempty"`
+ // NotificationInfo undocumented
+ NotificationInfo *DlpNotification `json:"notificationInfo,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DlpEvaluationInputModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DlpEvaluationInputModel.go
new file mode 100644
index 00000000..9bbce623
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DlpEvaluationInputModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DlpEvaluationInput undocumented
+type DlpEvaluationInput struct {
+ // Object is the base model of DlpEvaluationInput
+ Object
+ // DiscoveredSensitiveTypes undocumented
+ DiscoveredSensitiveTypes []DiscoveredSensitiveType `json:"discoveredSensitiveTypes,omitempty"`
+ // CurrentLabel undocumented
+ CurrentLabel *CurrentLabel `json:"currentLabel,omitempty"`
+ // AccessScope undocumented
+ AccessScope *AccessScope `json:"accessScope,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DlpEvaluationWindowsDevicesInputModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DlpEvaluationWindowsDevicesInputModel.go
new file mode 100644
index 00000000..f4b94962
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DlpEvaluationWindowsDevicesInputModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DlpEvaluationWindowsDevicesInput undocumented
+type DlpEvaluationWindowsDevicesInput struct {
+ // DlpEvaluationInput is the base model of DlpEvaluationWindowsDevicesInput
+ DlpEvaluationInput
+ // ContentProperties undocumented
+ ContentProperties *ContentProperties `json:"contentProperties,omitempty"`
+ // SharedBy undocumented
+ SharedBy *string `json:"sharedBy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DlpNotificationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DlpNotificationModel.go
new file mode 100644
index 00000000..9d0f31f9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DlpNotificationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DlpNotification undocumented
+type DlpNotification struct {
+ // Object is the base model of DlpNotification
+ Object
+ // Author undocumented
+ Author *string `json:"author,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DlpPoliciesJobResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DlpPoliciesJobResultModel.go
new file mode 100644
index 00000000..9bfe5717
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DlpPoliciesJobResultModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DlpPoliciesJobResult undocumented
+type DlpPoliciesJobResult struct {
+ // Object is the base model of DlpPoliciesJobResult
+ Object
+ // MatchingRules undocumented
+ MatchingRules []MatchingDlpRule `json:"matchingRules,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DlpWindowsDevicesNotificationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DlpWindowsDevicesNotificationModel.go
new file mode 100644
index 00000000..a3b3b741
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DlpWindowsDevicesNotificationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DlpWindowsDevicesNotification undocumented
+type DlpWindowsDevicesNotification struct {
+ // DlpNotification is the base model of DlpWindowsDevicesNotification
+ DlpNotification
+ // LastModfiedBy undocumented
+ LastModfiedBy *string `json:"lastModfiedBy,omitempty"`
+ // ContentName undocumented
+ ContentName *string `json:"contentName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DmaGuardDeviceEnumerationPolicyTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DmaGuardDeviceEnumerationPolicyTypeEnum.go
new file mode 100644
index 00000000..aa27ce09
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DmaGuardDeviceEnumerationPolicyTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DmaGuardDeviceEnumerationPolicyType undocumented
+type DmaGuardDeviceEnumerationPolicyType int
+
+const (
+ // DmaGuardDeviceEnumerationPolicyTypeVDeviceDefault undocumented
+ DmaGuardDeviceEnumerationPolicyTypeVDeviceDefault DmaGuardDeviceEnumerationPolicyType = 0
+ // DmaGuardDeviceEnumerationPolicyTypeVBlockAll undocumented
+ DmaGuardDeviceEnumerationPolicyTypeVBlockAll DmaGuardDeviceEnumerationPolicyType = 1
+ // DmaGuardDeviceEnumerationPolicyTypeVAllowAll undocumented
+ DmaGuardDeviceEnumerationPolicyTypeVAllowAll DmaGuardDeviceEnumerationPolicyType = 2
+)
+
+// DmaGuardDeviceEnumerationPolicyTypePDeviceDefault returns a pointer to DmaGuardDeviceEnumerationPolicyTypeVDeviceDefault
+func DmaGuardDeviceEnumerationPolicyTypePDeviceDefault() *DmaGuardDeviceEnumerationPolicyType {
+ v := DmaGuardDeviceEnumerationPolicyTypeVDeviceDefault
+ return &v
+}
+
+// DmaGuardDeviceEnumerationPolicyTypePBlockAll returns a pointer to DmaGuardDeviceEnumerationPolicyTypeVBlockAll
+func DmaGuardDeviceEnumerationPolicyTypePBlockAll() *DmaGuardDeviceEnumerationPolicyType {
+ v := DmaGuardDeviceEnumerationPolicyTypeVBlockAll
+ return &v
+}
+
+// DmaGuardDeviceEnumerationPolicyTypePAllowAll returns a pointer to DmaGuardDeviceEnumerationPolicyTypeVAllowAll
+func DmaGuardDeviceEnumerationPolicyTypePAllowAll() *DmaGuardDeviceEnumerationPolicyType {
+ v := DmaGuardDeviceEnumerationPolicyTypeVAllowAll
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DocumentCommentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DocumentCommentModel.go
new file mode 100644
index 00000000..6f641315
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DocumentCommentModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DocumentComment undocumented
+type DocumentComment struct {
+ // Entity is the base model of DocumentComment
+ Entity
+ // Content undocumented
+ Content *string `json:"content,omitempty"`
+ // Replies undocumented
+ Replies []DocumentCommentReply `json:"replies,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DocumentCommentReplyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DocumentCommentReplyModel.go
new file mode 100644
index 00000000..928e169e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DocumentCommentReplyModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DocumentCommentReply undocumented
+type DocumentCommentReply struct {
+ // Entity is the base model of DocumentCommentReply
+ Entity
+ // Content undocumented
+ Content *string `json:"content,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DocumentCommentReplyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DocumentCommentReplyRequest.go
new file mode 100644
index 00000000..442dfb4b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DocumentCommentReplyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DocumentCommentReplyRequestBuilder is request builder for DocumentCommentReply
+type DocumentCommentReplyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DocumentCommentReplyRequest
+func (b *DocumentCommentReplyRequestBuilder) Request() *DocumentCommentReplyRequest {
+ return &DocumentCommentReplyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DocumentCommentReplyRequest is request for DocumentCommentReply
+type DocumentCommentReplyRequest struct{ BaseRequest }
+
+// Get performs GET request for DocumentCommentReply
+func (r *DocumentCommentReplyRequest) Get(ctx context.Context) (resObj *DocumentCommentReply, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DocumentCommentReply
+func (r *DocumentCommentReplyRequest) Update(ctx context.Context, reqObj *DocumentCommentReply) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DocumentCommentReply
+func (r *DocumentCommentReplyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DocumentCommentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DocumentCommentRequest.go
new file mode 100644
index 00000000..91ee45c3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DocumentCommentRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DocumentCommentRequestBuilder is request builder for DocumentComment
+type DocumentCommentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DocumentCommentRequest
+func (b *DocumentCommentRequestBuilder) Request() *DocumentCommentRequest {
+ return &DocumentCommentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DocumentCommentRequest is request for DocumentComment
+type DocumentCommentRequest struct{ BaseRequest }
+
+// Get performs GET request for DocumentComment
+func (r *DocumentCommentRequest) Get(ctx context.Context) (resObj *DocumentComment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DocumentComment
+func (r *DocumentCommentRequest) Update(ctx context.Context, reqObj *DocumentComment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DocumentComment
+func (r *DocumentCommentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Replies returns request builder for DocumentCommentReply collection
+func (b *DocumentCommentRequestBuilder) Replies() *DocumentCommentRepliesCollectionRequestBuilder {
+ bb := &DocumentCommentRepliesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/replies"
+ return bb
+}
+
+// DocumentCommentRepliesCollectionRequestBuilder is request builder for DocumentCommentReply collection
+type DocumentCommentRepliesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DocumentCommentReply collection
+func (b *DocumentCommentRepliesCollectionRequestBuilder) Request() *DocumentCommentRepliesCollectionRequest {
+ return &DocumentCommentRepliesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DocumentCommentReply item
+func (b *DocumentCommentRepliesCollectionRequestBuilder) ID(id string) *DocumentCommentReplyRequestBuilder {
+ bb := &DocumentCommentReplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DocumentCommentRepliesCollectionRequest is request for DocumentCommentReply collection
+type DocumentCommentRepliesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DocumentCommentReply collection
+func (r *DocumentCommentRepliesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DocumentCommentReply, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DocumentCommentReply
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DocumentCommentReply
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DocumentCommentReply collection
+func (r *DocumentCommentRepliesCollectionRequest) Get(ctx context.Context) ([]DocumentCommentReply, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DocumentCommentReply collection
+func (r *DocumentCommentRepliesCollectionRequest) Add(ctx context.Context, reqObj *DocumentCommentReply) (resObj *DocumentCommentReply, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DocumentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DocumentModel.go
new file mode 100644
index 00000000..2417f665
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DocumentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Document undocumented
+type Document struct {
+ // Entity is the base model of Document
+ Entity
+ // Comments undocumented
+ Comments []DocumentComment `json:"comments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DocumentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DocumentRequest.go
new file mode 100644
index 00000000..9ea84b46
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DocumentRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DocumentRequestBuilder is request builder for Document
+type DocumentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DocumentRequest
+func (b *DocumentRequestBuilder) Request() *DocumentRequest {
+ return &DocumentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DocumentRequest is request for Document
+type DocumentRequest struct{ BaseRequest }
+
+// Get performs GET request for Document
+func (r *DocumentRequest) Get(ctx context.Context) (resObj *Document, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Document
+func (r *DocumentRequest) Update(ctx context.Context, reqObj *Document) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Document
+func (r *DocumentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Comments returns request builder for DocumentComment collection
+func (b *DocumentRequestBuilder) Comments() *DocumentCommentsCollectionRequestBuilder {
+ bb := &DocumentCommentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/comments"
+ return bb
+}
+
+// DocumentCommentsCollectionRequestBuilder is request builder for DocumentComment collection
+type DocumentCommentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DocumentComment collection
+func (b *DocumentCommentsCollectionRequestBuilder) Request() *DocumentCommentsCollectionRequest {
+ return &DocumentCommentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DocumentComment item
+func (b *DocumentCommentsCollectionRequestBuilder) ID(id string) *DocumentCommentRequestBuilder {
+ bb := &DocumentCommentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DocumentCommentsCollectionRequest is request for DocumentComment collection
+type DocumentCommentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DocumentComment collection
+func (r *DocumentCommentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DocumentComment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DocumentComment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DocumentComment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DocumentComment collection
+func (r *DocumentCommentsCollectionRequest) Get(ctx context.Context) ([]DocumentComment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DocumentComment collection
+func (r *DocumentCommentsCollectionRequest) Add(ctx context.Context, reqObj *DocumentComment) (resObj *DocumentComment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DomainAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DomainAction.go
new file mode 100644
index 00000000..d51198d0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DomainAction.go
@@ -0,0 +1,68 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DomainForceDeleteRequestParameter undocumented
+type DomainForceDeleteRequestParameter struct {
+ // DisableUserAccounts undocumented
+ DisableUserAccounts *bool `json:"disableUserAccounts,omitempty"`
+}
+
+// DomainVerifyRequestParameter undocumented
+type DomainVerifyRequestParameter struct {
+}
+
+//
+type DomainForceDeleteRequestBuilder struct{ BaseRequestBuilder }
+
+// ForceDelete action undocumented
+func (b *DomainRequestBuilder) ForceDelete(reqObj *DomainForceDeleteRequestParameter) *DomainForceDeleteRequestBuilder {
+ bb := &DomainForceDeleteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/forceDelete"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DomainForceDeleteRequest struct{ BaseRequest }
+
+//
+func (b *DomainForceDeleteRequestBuilder) Request() *DomainForceDeleteRequest {
+ return &DomainForceDeleteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DomainForceDeleteRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DomainVerifyRequestBuilder struct{ BaseRequestBuilder }
+
+// Verify action undocumented
+func (b *DomainRequestBuilder) Verify(reqObj *DomainVerifyRequestParameter) *DomainVerifyRequestBuilder {
+ bb := &DomainVerifyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/verify"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DomainVerifyRequest struct{ BaseRequest }
+
+//
+func (b *DomainVerifyRequestBuilder) Request() *DomainVerifyRequest {
+ return &DomainVerifyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DomainVerifyRequest) Post(ctx context.Context) (resObj *Domain, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSCnameRecordModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSCnameRecordModel.go
new file mode 100644
index 00000000..ad096d95
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSCnameRecordModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DomainDNSCnameRecord undocumented
+type DomainDNSCnameRecord struct {
+ // DomainDNSRecord is the base model of DomainDNSCnameRecord
+ DomainDNSRecord
+ // CanonicalName undocumented
+ CanonicalName *string `json:"canonicalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSMxRecordModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSMxRecordModel.go
new file mode 100644
index 00000000..7f4a0f00
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSMxRecordModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DomainDNSMxRecord undocumented
+type DomainDNSMxRecord struct {
+ // DomainDNSRecord is the base model of DomainDNSMxRecord
+ DomainDNSRecord
+ // MailExchange undocumented
+ MailExchange *string `json:"mailExchange,omitempty"`
+ // Preference undocumented
+ Preference *int `json:"preference,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSRecordModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSRecordModel.go
new file mode 100644
index 00000000..4f616d8c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSRecordModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DomainDNSRecord undocumented
+type DomainDNSRecord struct {
+ // Entity is the base model of DomainDNSRecord
+ Entity
+ // IsOptional undocumented
+ IsOptional *bool `json:"isOptional,omitempty"`
+ // Label undocumented
+ Label *string `json:"label,omitempty"`
+ // RecordType undocumented
+ RecordType *string `json:"recordType,omitempty"`
+ // SupportedService undocumented
+ SupportedService *string `json:"supportedService,omitempty"`
+ // TTL undocumented
+ TTL *int `json:"ttl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSRecordRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSRecordRequest.go
new file mode 100644
index 00000000..d4d05a77
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSRecordRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DomainDNSRecordRequestBuilder is request builder for DomainDNSRecord
+type DomainDNSRecordRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DomainDNSRecordRequest
+func (b *DomainDNSRecordRequestBuilder) Request() *DomainDNSRecordRequest {
+ return &DomainDNSRecordRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DomainDNSRecordRequest is request for DomainDNSRecord
+type DomainDNSRecordRequest struct{ BaseRequest }
+
+// Get performs GET request for DomainDNSRecord
+func (r *DomainDNSRecordRequest) Get(ctx context.Context) (resObj *DomainDNSRecord, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DomainDNSRecord
+func (r *DomainDNSRecordRequest) Update(ctx context.Context, reqObj *DomainDNSRecord) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DomainDNSRecord
+func (r *DomainDNSRecordRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSSrvRecordModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSSrvRecordModel.go
new file mode 100644
index 00000000..8ebde677
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSSrvRecordModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DomainDNSSrvRecord undocumented
+type DomainDNSSrvRecord struct {
+ // DomainDNSRecord is the base model of DomainDNSSrvRecord
+ DomainDNSRecord
+ // NameTarget undocumented
+ NameTarget *string `json:"nameTarget,omitempty"`
+ // Port undocumented
+ Port *int `json:"port,omitempty"`
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+ // Protocol undocumented
+ Protocol *string `json:"protocol,omitempty"`
+ // Service undocumented
+ Service *string `json:"service,omitempty"`
+ // Weight undocumented
+ Weight *int `json:"weight,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSTxtRecordModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSTxtRecordModel.go
new file mode 100644
index 00000000..4c8a6940
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSTxtRecordModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DomainDNSTxtRecord undocumented
+type DomainDNSTxtRecord struct {
+ // DomainDNSRecord is the base model of DomainDNSTxtRecord
+ DomainDNSRecord
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSUnavailableRecordModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSUnavailableRecordModel.go
new file mode 100644
index 00000000..3a4fe1a1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DomainDNSUnavailableRecordModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DomainDNSUnavailableRecord undocumented
+type DomainDNSUnavailableRecord struct {
+ // DomainDNSRecord is the base model of DomainDNSUnavailableRecord
+ DomainDNSRecord
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DomainModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DomainModel.go
new file mode 100644
index 00000000..19583701
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DomainModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Domain undocumented
+type Domain struct {
+ // Entity is the base model of Domain
+ Entity
+ // AuthenticationType undocumented
+ AuthenticationType *string `json:"authenticationType,omitempty"`
+ // AvailabilityStatus undocumented
+ AvailabilityStatus *string `json:"availabilityStatus,omitempty"`
+ // IsAdminManaged undocumented
+ IsAdminManaged *bool `json:"isAdminManaged,omitempty"`
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // IsInitial undocumented
+ IsInitial *bool `json:"isInitial,omitempty"`
+ // IsRoot undocumented
+ IsRoot *bool `json:"isRoot,omitempty"`
+ // IsVerified undocumented
+ IsVerified *bool `json:"isVerified,omitempty"`
+ // PasswordNotificationWindowInDays undocumented
+ PasswordNotificationWindowInDays *int `json:"passwordNotificationWindowInDays,omitempty"`
+ // PasswordValidityPeriodInDays undocumented
+ PasswordValidityPeriodInDays *int `json:"passwordValidityPeriodInDays,omitempty"`
+ // SupportedServices undocumented
+ SupportedServices []string `json:"supportedServices,omitempty"`
+ // State undocumented
+ State *DomainState `json:"state,omitempty"`
+ // ServiceConfigurationRecords undocumented
+ ServiceConfigurationRecords []DomainDNSRecord `json:"serviceConfigurationRecords,omitempty"`
+ // VerificationDNSRecords undocumented
+ VerificationDNSRecords []DomainDNSRecord `json:"verificationDnsRecords,omitempty"`
+ // DomainNameReferences undocumented
+ DomainNameReferences []DirectoryObject `json:"domainNameReferences,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DomainNameSourceEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/DomainNameSourceEnum.go
new file mode 100644
index 00000000..3c1ce2a4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DomainNameSourceEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DomainNameSource undocumented
+type DomainNameSource int
+
+const (
+ // DomainNameSourceVFullDomainName undocumented
+ DomainNameSourceVFullDomainName DomainNameSource = 0
+ // DomainNameSourceVNetBiosDomainName undocumented
+ DomainNameSourceVNetBiosDomainName DomainNameSource = 1
+)
+
+// DomainNameSourcePFullDomainName returns a pointer to DomainNameSourceVFullDomainName
+func DomainNameSourcePFullDomainName() *DomainNameSource {
+ v := DomainNameSourceVFullDomainName
+ return &v
+}
+
+// DomainNameSourcePNetBiosDomainName returns a pointer to DomainNameSourceVNetBiosDomainName
+func DomainNameSourcePNetBiosDomainName() *DomainNameSource {
+ v := DomainNameSourceVNetBiosDomainName
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DomainRegistrantModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DomainRegistrantModel.go
new file mode 100644
index 00000000..75b30d62
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DomainRegistrantModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DomainRegistrant undocumented
+type DomainRegistrant struct {
+ // Object is the base model of DomainRegistrant
+ Object
+ // CountryOrRegionCode undocumented
+ CountryOrRegionCode *string `json:"countryOrRegionCode,omitempty"`
+ // Organization undocumented
+ Organization *string `json:"organization,omitempty"`
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+ // Vendor undocumented
+ Vendor *string `json:"vendor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DomainRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DomainRequest.go
new file mode 100644
index 00000000..f743b168
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DomainRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DomainRequestBuilder is request builder for Domain
+type DomainRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DomainRequest
+func (b *DomainRequestBuilder) Request() *DomainRequest {
+ return &DomainRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DomainRequest is request for Domain
+type DomainRequest struct{ BaseRequest }
+
+// Get performs GET request for Domain
+func (r *DomainRequest) Get(ctx context.Context) (resObj *Domain, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Domain
+func (r *DomainRequest) Update(ctx context.Context, reqObj *Domain) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Domain
+func (r *DomainRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DomainNameReferences returns request builder for DirectoryObject collection
+func (b *DomainRequestBuilder) DomainNameReferences() *DomainDomainNameReferencesCollectionRequestBuilder {
+ bb := &DomainDomainNameReferencesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/domainNameReferences"
+ return bb
+}
+
+// DomainDomainNameReferencesCollectionRequestBuilder is request builder for DirectoryObject collection
+type DomainDomainNameReferencesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *DomainDomainNameReferencesCollectionRequestBuilder) Request() *DomainDomainNameReferencesCollectionRequest {
+ return &DomainDomainNameReferencesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *DomainDomainNameReferencesCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DomainDomainNameReferencesCollectionRequest is request for DirectoryObject collection
+type DomainDomainNameReferencesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *DomainDomainNameReferencesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DomainDomainNameReferencesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *DomainDomainNameReferencesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ServiceConfigurationRecords returns request builder for DomainDNSRecord collection
+func (b *DomainRequestBuilder) ServiceConfigurationRecords() *DomainServiceConfigurationRecordsCollectionRequestBuilder {
+ bb := &DomainServiceConfigurationRecordsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/serviceConfigurationRecords"
+ return bb
+}
+
+// DomainServiceConfigurationRecordsCollectionRequestBuilder is request builder for DomainDNSRecord collection
+type DomainServiceConfigurationRecordsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DomainDNSRecord collection
+func (b *DomainServiceConfigurationRecordsCollectionRequestBuilder) Request() *DomainServiceConfigurationRecordsCollectionRequest {
+ return &DomainServiceConfigurationRecordsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DomainDNSRecord item
+func (b *DomainServiceConfigurationRecordsCollectionRequestBuilder) ID(id string) *DomainDNSRecordRequestBuilder {
+ bb := &DomainDNSRecordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DomainServiceConfigurationRecordsCollectionRequest is request for DomainDNSRecord collection
+type DomainServiceConfigurationRecordsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DomainDNSRecord collection
+func (r *DomainServiceConfigurationRecordsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DomainDNSRecord, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DomainDNSRecord
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DomainDNSRecord
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DomainDNSRecord collection
+func (r *DomainServiceConfigurationRecordsCollectionRequest) Get(ctx context.Context) ([]DomainDNSRecord, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DomainDNSRecord collection
+func (r *DomainServiceConfigurationRecordsCollectionRequest) Add(ctx context.Context, reqObj *DomainDNSRecord) (resObj *DomainDNSRecord, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// VerificationDNSRecords returns request builder for DomainDNSRecord collection
+func (b *DomainRequestBuilder) VerificationDNSRecords() *DomainVerificationDNSRecordsCollectionRequestBuilder {
+ bb := &DomainVerificationDNSRecordsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/verificationDnsRecords"
+ return bb
+}
+
+// DomainVerificationDNSRecordsCollectionRequestBuilder is request builder for DomainDNSRecord collection
+type DomainVerificationDNSRecordsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DomainDNSRecord collection
+func (b *DomainVerificationDNSRecordsCollectionRequestBuilder) Request() *DomainVerificationDNSRecordsCollectionRequest {
+ return &DomainVerificationDNSRecordsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DomainDNSRecord item
+func (b *DomainVerificationDNSRecordsCollectionRequestBuilder) ID(id string) *DomainDNSRecordRequestBuilder {
+ bb := &DomainDNSRecordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DomainVerificationDNSRecordsCollectionRequest is request for DomainDNSRecord collection
+type DomainVerificationDNSRecordsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DomainDNSRecord collection
+func (r *DomainVerificationDNSRecordsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DomainDNSRecord, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DomainDNSRecord
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DomainDNSRecord
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DomainDNSRecord collection
+func (r *DomainVerificationDNSRecordsCollectionRequest) Get(ctx context.Context) ([]DomainDNSRecord, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DomainDNSRecord collection
+func (r *DomainVerificationDNSRecordsCollectionRequest) Add(ctx context.Context, reqObj *DomainDNSRecord) (resObj *DomainDNSRecord, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DomainSecurityProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DomainSecurityProfileModel.go
new file mode 100644
index 00000000..c99d9ffd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DomainSecurityProfileModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DomainSecurityProfile undocumented
+type DomainSecurityProfile struct {
+ // Entity is the base model of DomainSecurityProfile
+ Entity
+ // ActivityGroupNames undocumented
+ ActivityGroupNames []string `json:"activityGroupNames,omitempty"`
+ // AzureSubscriptionID undocumented
+ AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // CountHits undocumented
+ CountHits *int `json:"countHits,omitempty"`
+ // CountInOrg undocumented
+ CountInOrg *int `json:"countInOrg,omitempty"`
+ // DomainCategories undocumented
+ DomainCategories []ReputationCategory `json:"domainCategories,omitempty"`
+ // DomainRegisteredDateTime undocumented
+ DomainRegisteredDateTime *time.Time `json:"domainRegisteredDateTime,omitempty"`
+ // FirstSeenDateTime undocumented
+ FirstSeenDateTime *time.Time `json:"firstSeenDateTime,omitempty"`
+ // LastSeenDateTime undocumented
+ LastSeenDateTime *time.Time `json:"lastSeenDateTime,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Registrant undocumented
+ Registrant *DomainRegistrant `json:"registrant,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DomainSecurityProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DomainSecurityProfileRequest.go
new file mode 100644
index 00000000..d338a4fa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DomainSecurityProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DomainSecurityProfileRequestBuilder is request builder for DomainSecurityProfile
+type DomainSecurityProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DomainSecurityProfileRequest
+func (b *DomainSecurityProfileRequestBuilder) Request() *DomainSecurityProfileRequest {
+ return &DomainSecurityProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DomainSecurityProfileRequest is request for DomainSecurityProfile
+type DomainSecurityProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for DomainSecurityProfile
+func (r *DomainSecurityProfileRequest) Get(ctx context.Context) (resObj *DomainSecurityProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DomainSecurityProfile
+func (r *DomainSecurityProfileRequest) Update(ctx context.Context, reqObj *DomainSecurityProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DomainSecurityProfile
+func (r *DomainSecurityProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DomainStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DomainStateModel.go
new file mode 100644
index 00000000..deeb8309
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DomainStateModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DomainState undocumented
+type DomainState struct {
+ // Object is the base model of DomainState
+ Object
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // Operation undocumented
+ Operation *string `json:"operation,omitempty"`
+ // LastActionDateTime undocumented
+ LastActionDateTime *time.Time `json:"lastActionDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DowngradeJustificationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DowngradeJustificationModel.go
new file mode 100644
index 00000000..a93ff832
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DowngradeJustificationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DowngradeJustification undocumented
+type DowngradeJustification struct {
+ // Object is the base model of DowngradeJustification
+ Object
+ // JustificationMessage undocumented
+ JustificationMessage *string `json:"justificationMessage,omitempty"`
+ // IsDowngradeJustified undocumented
+ IsDowngradeJustified *bool `json:"isDowngradeJustified,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemAction.go
new file mode 100644
index 00000000..952130a3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemAction.go
@@ -0,0 +1,461 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+ "time"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DriveItemCheckinRequestParameter undocumented
+type DriveItemCheckinRequestParameter struct {
+ // CheckInAs undocumented
+ CheckInAs *string `json:"checkInAs,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"comment,omitempty"`
+}
+
+// DriveItemCheckoutRequestParameter undocumented
+type DriveItemCheckoutRequestParameter struct {
+}
+
+// DriveItemCopyRequestParameter undocumented
+type DriveItemCopyRequestParameter struct {
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ParentReference undocumented
+ ParentReference *ItemReference `json:"parentReference,omitempty"`
+}
+
+// DriveItemCreateLinkRequestParameter undocumented
+type DriveItemCreateLinkRequestParameter struct {
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Scope undocumented
+ Scope *string `json:"scope,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // Password undocumented
+ Password *string `json:"password,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Recipients undocumented
+ Recipients []DriveRecipient `json:"recipients,omitempty"`
+}
+
+// DriveItemCreateUploadSessionRequestParameter undocumented
+type DriveItemCreateUploadSessionRequestParameter struct {
+ // Item undocumented
+ Item *DriveItemUploadableProperties `json:"item,omitempty"`
+ // DeferCommit undocumented
+ DeferCommit *bool `json:"deferCommit,omitempty"`
+}
+
+// DriveItemFollowRequestParameter undocumented
+type DriveItemFollowRequestParameter struct {
+}
+
+// DriveItemUnfollowRequestParameter undocumented
+type DriveItemUnfollowRequestParameter struct {
+}
+
+// DriveItemInviteRequestParameter undocumented
+type DriveItemInviteRequestParameter struct {
+ // RequireSignIn undocumented
+ RequireSignIn *bool `json:"requireSignIn,omitempty"`
+ // Roles undocumented
+ Roles []string `json:"roles,omitempty"`
+ // SendInvitation undocumented
+ SendInvitation *bool `json:"sendInvitation,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Recipients undocumented
+ Recipients []DriveRecipient `json:"recipients,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *string `json:"expirationDateTime,omitempty"`
+ // Password undocumented
+ Password *string `json:"password,omitempty"`
+}
+
+// DriveItemPreviewRequestParameter undocumented
+type DriveItemPreviewRequestParameter struct {
+ // Viewer undocumented
+ Viewer *string `json:"viewer,omitempty"`
+ // Chromeless undocumented
+ Chromeless *bool `json:"chromeless,omitempty"`
+ // AllowEdit undocumented
+ AllowEdit *bool `json:"allowEdit,omitempty"`
+ // Page undocumented
+ Page *string `json:"page,omitempty"`
+ // Zoom undocumented
+ Zoom *float64 `json:"zoom,omitempty"`
+}
+
+// DriveItemRestoreRequestParameter undocumented
+type DriveItemRestoreRequestParameter struct {
+ // ParentReference undocumented
+ ParentReference *ItemReference `json:"parentReference,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
+
+// DriveItemValidatePermissionRequestParameter undocumented
+type DriveItemValidatePermissionRequestParameter struct {
+ // ChallengeToken undocumented
+ ChallengeToken *string `json:"challengeToken,omitempty"`
+ // Password undocumented
+ Password *string `json:"password,omitempty"`
+}
+
+//
+type DriveItemCheckinRequestBuilder struct{ BaseRequestBuilder }
+
+// Checkin action undocumented
+func (b *DriveItemRequestBuilder) Checkin(reqObj *DriveItemCheckinRequestParameter) *DriveItemCheckinRequestBuilder {
+ bb := &DriveItemCheckinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/checkin"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemCheckinRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemCheckinRequestBuilder) Request() *DriveItemCheckinRequest {
+ return &DriveItemCheckinRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemCheckinRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DriveItemCheckoutRequestBuilder struct{ BaseRequestBuilder }
+
+// Checkout action undocumented
+func (b *DriveItemRequestBuilder) Checkout(reqObj *DriveItemCheckoutRequestParameter) *DriveItemCheckoutRequestBuilder {
+ bb := &DriveItemCheckoutRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/checkout"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemCheckoutRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemCheckoutRequestBuilder) Request() *DriveItemCheckoutRequest {
+ return &DriveItemCheckoutRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemCheckoutRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DriveItemCopyRequestBuilder struct{ BaseRequestBuilder }
+
+// Copy action undocumented
+func (b *DriveItemRequestBuilder) Copy(reqObj *DriveItemCopyRequestParameter) *DriveItemCopyRequestBuilder {
+ bb := &DriveItemCopyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/copy"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemCopyRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemCopyRequestBuilder) Request() *DriveItemCopyRequest {
+ return &DriveItemCopyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemCopyRequest) Post(ctx context.Context) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DriveItemCreateLinkRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateLink action undocumented
+func (b *DriveItemRequestBuilder) CreateLink(reqObj *DriveItemCreateLinkRequestParameter) *DriveItemCreateLinkRequestBuilder {
+ bb := &DriveItemCreateLinkRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createLink"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemCreateLinkRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemCreateLinkRequestBuilder) Request() *DriveItemCreateLinkRequest {
+ return &DriveItemCreateLinkRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemCreateLinkRequest) Post(ctx context.Context) (resObj *Permission, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DriveItemCreateUploadSessionRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateUploadSession action undocumented
+func (b *DriveItemRequestBuilder) CreateUploadSession(reqObj *DriveItemCreateUploadSessionRequestParameter) *DriveItemCreateUploadSessionRequestBuilder {
+ bb := &DriveItemCreateUploadSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createUploadSession"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemCreateUploadSessionRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemCreateUploadSessionRequestBuilder) Request() *DriveItemCreateUploadSessionRequest {
+ return &DriveItemCreateUploadSessionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemCreateUploadSessionRequest) Post(ctx context.Context) (resObj *UploadSession, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DriveItemFollowRequestBuilder struct{ BaseRequestBuilder }
+
+// Follow action undocumented
+func (b *DriveItemRequestBuilder) Follow(reqObj *DriveItemFollowRequestParameter) *DriveItemFollowRequestBuilder {
+ bb := &DriveItemFollowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/follow"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemFollowRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemFollowRequestBuilder) Request() *DriveItemFollowRequest {
+ return &DriveItemFollowRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemFollowRequest) Post(ctx context.Context) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DriveItemUnfollowRequestBuilder struct{ BaseRequestBuilder }
+
+// Unfollow action undocumented
+func (b *DriveItemRequestBuilder) Unfollow(reqObj *DriveItemUnfollowRequestParameter) *DriveItemUnfollowRequestBuilder {
+ bb := &DriveItemUnfollowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unfollow"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemUnfollowRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemUnfollowRequestBuilder) Request() *DriveItemUnfollowRequest {
+ return &DriveItemUnfollowRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemUnfollowRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DriveItemInviteRequestBuilder struct{ BaseRequestBuilder }
+
+// Invite action undocumented
+func (b *DriveItemRequestBuilder) Invite(reqObj *DriveItemInviteRequestParameter) *DriveItemInviteRequestBuilder {
+ bb := &DriveItemInviteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/invite"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemInviteRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemInviteRequestBuilder) Request() *DriveItemInviteRequest {
+ return &DriveItemInviteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemInviteRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]Permission, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]Permission
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]Permission
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DriveItemInviteRequest) Get(ctx context.Context) ([][]Permission, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type DriveItemPreviewRequestBuilder struct{ BaseRequestBuilder }
+
+// Preview action undocumented
+func (b *DriveItemRequestBuilder) Preview(reqObj *DriveItemPreviewRequestParameter) *DriveItemPreviewRequestBuilder {
+ bb := &DriveItemPreviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/preview"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemPreviewRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemPreviewRequestBuilder) Request() *DriveItemPreviewRequest {
+ return &DriveItemPreviewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemPreviewRequest) Post(ctx context.Context) (resObj *ItemPreviewInfo, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DriveItemRestoreRequestBuilder struct{ BaseRequestBuilder }
+
+// Restore action undocumented
+func (b *DriveItemRequestBuilder) Restore(reqObj *DriveItemRestoreRequestParameter) *DriveItemRestoreRequestBuilder {
+ bb := &DriveItemRestoreRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/restore"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemRestoreRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemRestoreRequestBuilder) Request() *DriveItemRestoreRequest {
+ return &DriveItemRestoreRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemRestoreRequest) Post(ctx context.Context) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DriveItemValidatePermissionRequestBuilder struct{ BaseRequestBuilder }
+
+// ValidatePermission action undocumented
+func (b *DriveItemRequestBuilder) ValidatePermission(reqObj *DriveItemValidatePermissionRequestParameter) *DriveItemValidatePermissionRequestBuilder {
+ bb := &DriveItemValidatePermissionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validatePermission"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemValidatePermissionRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemValidatePermissionRequestBuilder) Request() *DriveItemValidatePermissionRequest {
+ return &DriveItemValidatePermissionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemValidatePermissionRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemModel.go
new file mode 100644
index 00000000..ffb553c1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemModel.go
@@ -0,0 +1,75 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DriveItem undocumented
+type DriveItem struct {
+ // BaseItem is the base model of DriveItem
+ BaseItem
+ // Audio undocumented
+ Audio *Audio `json:"audio,omitempty"`
+ // Bundle undocumented
+ Bundle *Bundle `json:"bundle,omitempty"`
+ // Content undocumented
+ Content *Stream `json:"content,omitempty"`
+ // CTag undocumented
+ CTag *string `json:"cTag,omitempty"`
+ // Deleted undocumented
+ Deleted *Deleted `json:"deleted,omitempty"`
+ // File undocumented
+ File *File `json:"file,omitempty"`
+ // FileSystemInfo undocumented
+ FileSystemInfo *FileSystemInfo `json:"fileSystemInfo,omitempty"`
+ // Folder undocumented
+ Folder *Folder `json:"folder,omitempty"`
+ // Image undocumented
+ Image *Image `json:"image,omitempty"`
+ // Location undocumented
+ Location *GeoCoordinates `json:"location,omitempty"`
+ // Package undocumented
+ Package *Package `json:"package,omitempty"`
+ // PendingOperations undocumented
+ PendingOperations *PendingOperations `json:"pendingOperations,omitempty"`
+ // Photo undocumented
+ Photo *Photo `json:"photo,omitempty"`
+ // Publication undocumented
+ Publication *PublicationFacet `json:"publication,omitempty"`
+ // RemoteItem undocumented
+ RemoteItem *RemoteItem `json:"remoteItem,omitempty"`
+ // Root undocumented
+ Root *Root `json:"root,omitempty"`
+ // SearchResult undocumented
+ SearchResult *SearchResult `json:"searchResult,omitempty"`
+ // Shared undocumented
+ Shared *Shared `json:"shared,omitempty"`
+ // SharepointIDs undocumented
+ SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"`
+ // Size undocumented
+ Size *int `json:"size,omitempty"`
+ // SpecialFolder undocumented
+ SpecialFolder *SpecialFolder `json:"specialFolder,omitempty"`
+ // Video undocumented
+ Video *Video `json:"video,omitempty"`
+ // WebDavURL undocumented
+ WebDavURL *string `json:"webDavUrl,omitempty"`
+ // Workbook undocumented
+ Workbook *Workbook `json:"workbook,omitempty"`
+ // Activities undocumented
+ Activities []ItemActivityOLD `json:"activities,omitempty"`
+ // Analytics undocumented
+ Analytics *ItemAnalytics `json:"analytics,omitempty"`
+ // Children undocumented
+ Children []DriveItem `json:"children,omitempty"`
+ // ListItem undocumented
+ ListItem *ListItem `json:"listItem,omitempty"`
+ // Permissions undocumented
+ Permissions []Permission `json:"permissions,omitempty"`
+ // Subscriptions undocumented
+ Subscriptions []Subscription `json:"subscriptions,omitempty"`
+ // Thumbnails undocumented
+ Thumbnails []ThumbnailSet `json:"thumbnails,omitempty"`
+ // Versions undocumented
+ Versions []DriveItemVersion `json:"versions,omitempty"`
+ // Document undocumented
+ Document *Document `json:"document,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemRequest.go
new file mode 100644
index 00000000..fd61044e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemRequest.go
@@ -0,0 +1,637 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DriveItemRequestBuilder is request builder for DriveItem
+type DriveItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DriveItemRequest
+func (b *DriveItemRequestBuilder) Request() *DriveItemRequest {
+ return &DriveItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DriveItemRequest is request for DriveItem
+type DriveItemRequest struct{ BaseRequest }
+
+// Get performs GET request for DriveItem
+func (r *DriveItemRequest) Get(ctx context.Context) (resObj *DriveItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DriveItem
+func (r *DriveItemRequest) Update(ctx context.Context, reqObj *DriveItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DriveItem
+func (r *DriveItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Activities returns request builder for ItemActivityOLD collection
+func (b *DriveItemRequestBuilder) Activities() *DriveItemActivitiesCollectionRequestBuilder {
+ bb := &DriveItemActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activities"
+ return bb
+}
+
+// DriveItemActivitiesCollectionRequestBuilder is request builder for ItemActivityOLD collection
+type DriveItemActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemActivityOLD collection
+func (b *DriveItemActivitiesCollectionRequestBuilder) Request() *DriveItemActivitiesCollectionRequest {
+ return &DriveItemActivitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemActivityOLD item
+func (b *DriveItemActivitiesCollectionRequestBuilder) ID(id string) *ItemActivityOLDRequestBuilder {
+ bb := &ItemActivityOLDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveItemActivitiesCollectionRequest is request for ItemActivityOLD collection
+type DriveItemActivitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemActivityOLD collection
+func (r *DriveItemActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ItemActivityOLD, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemActivityOLD
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemActivityOLD
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemActivityOLD collection
+func (r *DriveItemActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivityOLD, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ItemActivityOLD collection
+func (r *DriveItemActivitiesCollectionRequest) Add(ctx context.Context, reqObj *ItemActivityOLD) (resObj *ItemActivityOLD, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Analytics is navigation property
+func (b *DriveItemRequestBuilder) Analytics() *ItemAnalyticsRequestBuilder {
+ bb := &ItemAnalyticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/analytics"
+ return bb
+}
+
+// Children returns request builder for DriveItem collection
+func (b *DriveItemRequestBuilder) Children() *DriveItemChildrenCollectionRequestBuilder {
+ bb := &DriveItemChildrenCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/children"
+ return bb
+}
+
+// DriveItemChildrenCollectionRequestBuilder is request builder for DriveItem collection
+type DriveItemChildrenCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DriveItem collection
+func (b *DriveItemChildrenCollectionRequestBuilder) Request() *DriveItemChildrenCollectionRequest {
+ return &DriveItemChildrenCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DriveItem item
+func (b *DriveItemChildrenCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveItemChildrenCollectionRequest is request for DriveItem collection
+type DriveItemChildrenCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DriveItem collection
+func (r *DriveItemChildrenCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DriveItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DriveItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DriveItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DriveItem collection
+func (r *DriveItemChildrenCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DriveItem collection
+func (r *DriveItemChildrenCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Document is navigation property
+func (b *DriveItemRequestBuilder) Document() *DocumentRequestBuilder {
+ bb := &DocumentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/document"
+ return bb
+}
+
+// ListItem is navigation property
+func (b *DriveItemRequestBuilder) ListItem() *ListItemRequestBuilder {
+ bb := &ListItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/listItem"
+ return bb
+}
+
+// Permissions returns request builder for Permission collection
+func (b *DriveItemRequestBuilder) Permissions() *DriveItemPermissionsCollectionRequestBuilder {
+ bb := &DriveItemPermissionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/permissions"
+ return bb
+}
+
+// DriveItemPermissionsCollectionRequestBuilder is request builder for Permission collection
+type DriveItemPermissionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Permission collection
+func (b *DriveItemPermissionsCollectionRequestBuilder) Request() *DriveItemPermissionsCollectionRequest {
+ return &DriveItemPermissionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Permission item
+func (b *DriveItemPermissionsCollectionRequestBuilder) ID(id string) *PermissionRequestBuilder {
+ bb := &PermissionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveItemPermissionsCollectionRequest is request for Permission collection
+type DriveItemPermissionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Permission collection
+func (r *DriveItemPermissionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Permission, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Permission
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Permission
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Permission collection
+func (r *DriveItemPermissionsCollectionRequest) Get(ctx context.Context) ([]Permission, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Permission collection
+func (r *DriveItemPermissionsCollectionRequest) Add(ctx context.Context, reqObj *Permission) (resObj *Permission, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Subscriptions returns request builder for Subscription collection
+func (b *DriveItemRequestBuilder) Subscriptions() *DriveItemSubscriptionsCollectionRequestBuilder {
+ bb := &DriveItemSubscriptionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/subscriptions"
+ return bb
+}
+
+// DriveItemSubscriptionsCollectionRequestBuilder is request builder for Subscription collection
+type DriveItemSubscriptionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Subscription collection
+func (b *DriveItemSubscriptionsCollectionRequestBuilder) Request() *DriveItemSubscriptionsCollectionRequest {
+ return &DriveItemSubscriptionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Subscription item
+func (b *DriveItemSubscriptionsCollectionRequestBuilder) ID(id string) *SubscriptionRequestBuilder {
+ bb := &SubscriptionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveItemSubscriptionsCollectionRequest is request for Subscription collection
+type DriveItemSubscriptionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Subscription collection
+func (r *DriveItemSubscriptionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Subscription, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Subscription
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Subscription
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Subscription collection
+func (r *DriveItemSubscriptionsCollectionRequest) Get(ctx context.Context) ([]Subscription, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Subscription collection
+func (r *DriveItemSubscriptionsCollectionRequest) Add(ctx context.Context, reqObj *Subscription) (resObj *Subscription, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Thumbnails returns request builder for ThumbnailSet collection
+func (b *DriveItemRequestBuilder) Thumbnails() *DriveItemThumbnailsCollectionRequestBuilder {
+ bb := &DriveItemThumbnailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/thumbnails"
+ return bb
+}
+
+// DriveItemThumbnailsCollectionRequestBuilder is request builder for ThumbnailSet collection
+type DriveItemThumbnailsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ThumbnailSet collection
+func (b *DriveItemThumbnailsCollectionRequestBuilder) Request() *DriveItemThumbnailsCollectionRequest {
+ return &DriveItemThumbnailsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ThumbnailSet item
+func (b *DriveItemThumbnailsCollectionRequestBuilder) ID(id string) *ThumbnailSetRequestBuilder {
+ bb := &ThumbnailSetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveItemThumbnailsCollectionRequest is request for ThumbnailSet collection
+type DriveItemThumbnailsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ThumbnailSet collection
+func (r *DriveItemThumbnailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ThumbnailSet, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ThumbnailSet
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ThumbnailSet
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ThumbnailSet collection
+func (r *DriveItemThumbnailsCollectionRequest) Get(ctx context.Context) ([]ThumbnailSet, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ThumbnailSet collection
+func (r *DriveItemThumbnailsCollectionRequest) Add(ctx context.Context, reqObj *ThumbnailSet) (resObj *ThumbnailSet, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Versions returns request builder for DriveItemVersion collection
+func (b *DriveItemRequestBuilder) Versions() *DriveItemVersionsCollectionRequestBuilder {
+ bb := &DriveItemVersionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/versions"
+ return bb
+}
+
+// DriveItemVersionsCollectionRequestBuilder is request builder for DriveItemVersion collection
+type DriveItemVersionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DriveItemVersion collection
+func (b *DriveItemVersionsCollectionRequestBuilder) Request() *DriveItemVersionsCollectionRequest {
+ return &DriveItemVersionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DriveItemVersion item
+func (b *DriveItemVersionsCollectionRequestBuilder) ID(id string) *DriveItemVersionRequestBuilder {
+ bb := &DriveItemVersionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveItemVersionsCollectionRequest is request for DriveItemVersion collection
+type DriveItemVersionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DriveItemVersion collection
+func (r *DriveItemVersionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DriveItemVersion, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DriveItemVersion
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DriveItemVersion
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DriveItemVersion collection
+func (r *DriveItemVersionsCollectionRequest) Get(ctx context.Context) ([]DriveItemVersion, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DriveItemVersion collection
+func (r *DriveItemVersionsCollectionRequest) Add(ctx context.Context, reqObj *DriveItemVersion) (resObj *DriveItemVersion, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Workbook is navigation property
+func (b *DriveItemRequestBuilder) Workbook() *WorkbookRequestBuilder {
+ bb := &WorkbookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/workbook"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemUploadablePropertiesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemUploadablePropertiesModel.go
new file mode 100644
index 00000000..248a0828
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemUploadablePropertiesModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DriveItemUploadableProperties undocumented
+type DriveItemUploadableProperties struct {
+ // Object is the base model of DriveItemUploadableProperties
+ Object
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // FileSystemInfo undocumented
+ FileSystemInfo *FileSystemInfo `json:"fileSystemInfo,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // FileSize undocumented
+ FileSize *int `json:"fileSize,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemVersionAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemVersionAction.go
new file mode 100644
index 00000000..95778edd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemVersionAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DriveItemVersionRestoreVersionRequestParameter undocumented
+type DriveItemVersionRestoreVersionRequestParameter struct {
+}
+
+//
+type DriveItemVersionRestoreVersionRequestBuilder struct{ BaseRequestBuilder }
+
+// RestoreVersion action undocumented
+func (b *DriveItemVersionRequestBuilder) RestoreVersion(reqObj *DriveItemVersionRestoreVersionRequestParameter) *DriveItemVersionRestoreVersionRequestBuilder {
+ bb := &DriveItemVersionRestoreVersionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/restoreVersion"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemVersionRestoreVersionRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemVersionRestoreVersionRequestBuilder) Request() *DriveItemVersionRestoreVersionRequest {
+ return &DriveItemVersionRestoreVersionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemVersionRestoreVersionRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemVersionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemVersionModel.go
new file mode 100644
index 00000000..f66da37a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemVersionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DriveItemVersion undocumented
+type DriveItemVersion struct {
+ // BaseItemVersion is the base model of DriveItemVersion
+ BaseItemVersion
+ // Content undocumented
+ Content *Stream `json:"content,omitempty"`
+ // Size undocumented
+ Size *int `json:"size,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemVersionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemVersionRequest.go
new file mode 100644
index 00000000..c2ec7c03
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DriveItemVersionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DriveItemVersionRequestBuilder is request builder for DriveItemVersion
+type DriveItemVersionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DriveItemVersionRequest
+func (b *DriveItemVersionRequestBuilder) Request() *DriveItemVersionRequest {
+ return &DriveItemVersionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DriveItemVersionRequest is request for DriveItemVersion
+type DriveItemVersionRequest struct{ BaseRequest }
+
+// Get performs GET request for DriveItemVersion
+func (r *DriveItemVersionRequest) Get(ctx context.Context) (resObj *DriveItemVersion, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DriveItemVersion
+func (r *DriveItemVersionRequest) Update(ctx context.Context, reqObj *DriveItemVersion) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DriveItemVersion
+func (r *DriveItemVersionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DriveModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DriveModel.go
new file mode 100644
index 00000000..a1e49d63
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DriveModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Drive undocumented
+type Drive struct {
+ // BaseItem is the base model of Drive
+ BaseItem
+ // DriveType undocumented
+ DriveType *string `json:"driveType,omitempty"`
+ // Owner undocumented
+ Owner *IdentitySet `json:"owner,omitempty"`
+ // Quota undocumented
+ Quota *Quota `json:"quota,omitempty"`
+ // SharePointIDs undocumented
+ SharePointIDs *SharepointIDs `json:"sharePointIds,omitempty"`
+ // System undocumented
+ System *SystemFacet `json:"system,omitempty"`
+ // Activities undocumented
+ Activities []ItemActivityOLD `json:"activities,omitempty"`
+ // Bundles undocumented
+ Bundles []DriveItem `json:"bundles,omitempty"`
+ // Following undocumented
+ Following []DriveItem `json:"following,omitempty"`
+ // Items undocumented
+ Items []DriveItem `json:"items,omitempty"`
+ // List undocumented
+ List *List `json:"list,omitempty"`
+ // Root undocumented
+ Root *DriveItem `json:"root,omitempty"`
+ // Special undocumented
+ Special []DriveItem `json:"special,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DriveRecipientModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/DriveRecipientModel.go
new file mode 100644
index 00000000..3c1ca6b9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DriveRecipientModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DriveRecipient undocumented
+type DriveRecipient struct {
+ // Object is the base model of DriveRecipient
+ Object
+ // Alias undocumented
+ Alias *string `json:"alias,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // ObjectID undocumented
+ ObjectID *string `json:"objectId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/DriveRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/DriveRequest.go
new file mode 100644
index 00000000..a9371c7f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/DriveRequest.go
@@ -0,0 +1,529 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DriveRequestBuilder is request builder for Drive
+type DriveRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DriveRequest
+func (b *DriveRequestBuilder) Request() *DriveRequest {
+ return &DriveRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DriveRequest is request for Drive
+type DriveRequest struct{ BaseRequest }
+
+// Get performs GET request for Drive
+func (r *DriveRequest) Get(ctx context.Context) (resObj *Drive, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Drive
+func (r *DriveRequest) Update(ctx context.Context, reqObj *Drive) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Drive
+func (r *DriveRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Activities returns request builder for ItemActivityOLD collection
+func (b *DriveRequestBuilder) Activities() *DriveActivitiesCollectionRequestBuilder {
+ bb := &DriveActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activities"
+ return bb
+}
+
+// DriveActivitiesCollectionRequestBuilder is request builder for ItemActivityOLD collection
+type DriveActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemActivityOLD collection
+func (b *DriveActivitiesCollectionRequestBuilder) Request() *DriveActivitiesCollectionRequest {
+ return &DriveActivitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemActivityOLD item
+func (b *DriveActivitiesCollectionRequestBuilder) ID(id string) *ItemActivityOLDRequestBuilder {
+ bb := &ItemActivityOLDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveActivitiesCollectionRequest is request for ItemActivityOLD collection
+type DriveActivitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemActivityOLD collection
+func (r *DriveActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ItemActivityOLD, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemActivityOLD
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemActivityOLD
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemActivityOLD collection
+func (r *DriveActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivityOLD, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ItemActivityOLD collection
+func (r *DriveActivitiesCollectionRequest) Add(ctx context.Context, reqObj *ItemActivityOLD) (resObj *ItemActivityOLD, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Bundles returns request builder for DriveItem collection
+func (b *DriveRequestBuilder) Bundles() *DriveBundlesCollectionRequestBuilder {
+ bb := &DriveBundlesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/bundles"
+ return bb
+}
+
+// DriveBundlesCollectionRequestBuilder is request builder for DriveItem collection
+type DriveBundlesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DriveItem collection
+func (b *DriveBundlesCollectionRequestBuilder) Request() *DriveBundlesCollectionRequest {
+ return &DriveBundlesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DriveItem item
+func (b *DriveBundlesCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveBundlesCollectionRequest is request for DriveItem collection
+type DriveBundlesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DriveItem collection
+func (r *DriveBundlesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DriveItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DriveItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DriveItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DriveItem collection
+func (r *DriveBundlesCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DriveItem collection
+func (r *DriveBundlesCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Following returns request builder for DriveItem collection
+func (b *DriveRequestBuilder) Following() *DriveFollowingCollectionRequestBuilder {
+ bb := &DriveFollowingCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/following"
+ return bb
+}
+
+// DriveFollowingCollectionRequestBuilder is request builder for DriveItem collection
+type DriveFollowingCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DriveItem collection
+func (b *DriveFollowingCollectionRequestBuilder) Request() *DriveFollowingCollectionRequest {
+ return &DriveFollowingCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DriveItem item
+func (b *DriveFollowingCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveFollowingCollectionRequest is request for DriveItem collection
+type DriveFollowingCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DriveItem collection
+func (r *DriveFollowingCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DriveItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DriveItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DriveItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DriveItem collection
+func (r *DriveFollowingCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DriveItem collection
+func (r *DriveFollowingCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Items returns request builder for DriveItem collection
+func (b *DriveRequestBuilder) Items() *DriveItemsCollectionRequestBuilder {
+ bb := &DriveItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/items"
+ return bb
+}
+
+// DriveItemsCollectionRequestBuilder is request builder for DriveItem collection
+type DriveItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DriveItem collection
+func (b *DriveItemsCollectionRequestBuilder) Request() *DriveItemsCollectionRequest {
+ return &DriveItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DriveItem item
+func (b *DriveItemsCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveItemsCollectionRequest is request for DriveItem collection
+type DriveItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DriveItem collection
+func (r *DriveItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DriveItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DriveItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DriveItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DriveItem collection
+func (r *DriveItemsCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DriveItem collection
+func (r *DriveItemsCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// List is navigation property
+func (b *DriveRequestBuilder) List() *ListRequestBuilder {
+ bb := &ListRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/list"
+ return bb
+}
+
+// Root is navigation property
+func (b *DriveRequestBuilder) Root() *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/root"
+ return bb
+}
+
+// Special returns request builder for DriveItem collection
+func (b *DriveRequestBuilder) Special() *DriveSpecialCollectionRequestBuilder {
+ bb := &DriveSpecialCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/special"
+ return bb
+}
+
+// DriveSpecialCollectionRequestBuilder is request builder for DriveItem collection
+type DriveSpecialCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DriveItem collection
+func (b *DriveSpecialCollectionRequestBuilder) Request() *DriveSpecialCollectionRequest {
+ return &DriveSpecialCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DriveItem item
+func (b *DriveSpecialCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveSpecialCollectionRequest is request for DriveItem collection
+type DriveSpecialCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DriveItem collection
+func (r *DriveSpecialCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DriveItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DriveItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DriveItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DriveItem collection
+func (r *DriveSpecialCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DriveItem collection
+func (r *DriveSpecialCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EBookInstallSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EBookInstallSummaryModel.go
new file mode 100644
index 00000000..b3f66595
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EBookInstallSummaryModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EBookInstallSummary Contains properties for the installation summary of a book for a device.
+type EBookInstallSummary struct {
+ // Entity is the base model of EBookInstallSummary
+ Entity
+ // InstalledDeviceCount Number of Devices that have successfully installed this book.
+ InstalledDeviceCount *int `json:"installedDeviceCount,omitempty"`
+ // FailedDeviceCount Number of Devices that have failed to install this book.
+ FailedDeviceCount *int `json:"failedDeviceCount,omitempty"`
+ // NotInstalledDeviceCount Number of Devices that does not have this book installed.
+ NotInstalledDeviceCount *int `json:"notInstalledDeviceCount,omitempty"`
+ // InstalledUserCount Number of Users whose devices have all succeeded to install this book.
+ InstalledUserCount *int `json:"installedUserCount,omitempty"`
+ // FailedUserCount Number of Users that have 1 or more device that failed to install this book.
+ FailedUserCount *int `json:"failedUserCount,omitempty"`
+ // NotInstalledUserCount Number of Users that did not install this book.
+ NotInstalledUserCount *int `json:"notInstalledUserCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EBookInstallSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EBookInstallSummaryRequest.go
new file mode 100644
index 00000000..a656df11
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EBookInstallSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EBookInstallSummaryRequestBuilder is request builder for EBookInstallSummary
+type EBookInstallSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EBookInstallSummaryRequest
+func (b *EBookInstallSummaryRequestBuilder) Request() *EBookInstallSummaryRequest {
+ return &EBookInstallSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EBookInstallSummaryRequest is request for EBookInstallSummary
+type EBookInstallSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for EBookInstallSummary
+func (r *EBookInstallSummaryRequest) Get(ctx context.Context) (resObj *EBookInstallSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EBookInstallSummary
+func (r *EBookInstallSummaryRequest) Update(ctx context.Context, reqObj *EBookInstallSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EBookInstallSummary
+func (r *EBookInstallSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EapFastConfigurationEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EapFastConfigurationEnum.go
new file mode 100644
index 00000000..a43dffc3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EapFastConfigurationEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EapFastConfiguration undocumented
+type EapFastConfiguration int
+
+const (
+ // EapFastConfigurationVNoProtectedAccessCredential undocumented
+ EapFastConfigurationVNoProtectedAccessCredential EapFastConfiguration = 0
+ // EapFastConfigurationVUseProtectedAccessCredential undocumented
+ EapFastConfigurationVUseProtectedAccessCredential EapFastConfiguration = 1
+ // EapFastConfigurationVUseProtectedAccessCredentialAndProvision undocumented
+ EapFastConfigurationVUseProtectedAccessCredentialAndProvision EapFastConfiguration = 2
+ // EapFastConfigurationVUseProtectedAccessCredentialAndProvisionAnonymously undocumented
+ EapFastConfigurationVUseProtectedAccessCredentialAndProvisionAnonymously EapFastConfiguration = 3
+)
+
+// EapFastConfigurationPNoProtectedAccessCredential returns a pointer to EapFastConfigurationVNoProtectedAccessCredential
+func EapFastConfigurationPNoProtectedAccessCredential() *EapFastConfiguration {
+ v := EapFastConfigurationVNoProtectedAccessCredential
+ return &v
+}
+
+// EapFastConfigurationPUseProtectedAccessCredential returns a pointer to EapFastConfigurationVUseProtectedAccessCredential
+func EapFastConfigurationPUseProtectedAccessCredential() *EapFastConfiguration {
+ v := EapFastConfigurationVUseProtectedAccessCredential
+ return &v
+}
+
+// EapFastConfigurationPUseProtectedAccessCredentialAndProvision returns a pointer to EapFastConfigurationVUseProtectedAccessCredentialAndProvision
+func EapFastConfigurationPUseProtectedAccessCredentialAndProvision() *EapFastConfiguration {
+ v := EapFastConfigurationVUseProtectedAccessCredentialAndProvision
+ return &v
+}
+
+// EapFastConfigurationPUseProtectedAccessCredentialAndProvisionAnonymously returns a pointer to EapFastConfigurationVUseProtectedAccessCredentialAndProvisionAnonymously
+func EapFastConfigurationPUseProtectedAccessCredentialAndProvisionAnonymously() *EapFastConfiguration {
+ v := EapFastConfigurationVUseProtectedAccessCredentialAndProvisionAnonymously
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EapTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EapTypeEnum.go
new file mode 100644
index 00000000..8af9ed28
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EapTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EapType undocumented
+type EapType int
+
+const (
+ // EapTypeVEapTLS undocumented
+ EapTypeVEapTLS EapType = 13
+ // EapTypeVLeap undocumented
+ EapTypeVLeap EapType = 17
+ // EapTypeVEapSim undocumented
+ EapTypeVEapSim EapType = 18
+ // EapTypeVEapTtls undocumented
+ EapTypeVEapTtls EapType = 21
+ // EapTypeVPeap undocumented
+ EapTypeVPeap EapType = 25
+ // EapTypeVEapFast undocumented
+ EapTypeVEapFast EapType = 43
+)
+
+// EapTypePEapTLS returns a pointer to EapTypeVEapTLS
+func EapTypePEapTLS() *EapType {
+ v := EapTypeVEapTLS
+ return &v
+}
+
+// EapTypePLeap returns a pointer to EapTypeVLeap
+func EapTypePLeap() *EapType {
+ v := EapTypeVLeap
+ return &v
+}
+
+// EapTypePEapSim returns a pointer to EapTypeVEapSim
+func EapTypePEapSim() *EapType {
+ v := EapTypeVEapSim
+ return &v
+}
+
+// EapTypePEapTtls returns a pointer to EapTypeVEapTtls
+func EapTypePEapTtls() *EapType {
+ v := EapTypeVEapTtls
+ return &v
+}
+
+// EapTypePPeap returns a pointer to EapTypeVPeap
+func EapTypePPeap() *EapType {
+ v := EapTypeVPeap
+ return &v
+}
+
+// EapTypePEapFast returns a pointer to EapTypeVEapFast
+func EapTypePEapFast() *EapType {
+ v := EapTypeVEapFast
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EasAuthenticationMethodEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EasAuthenticationMethodEnum.go
new file mode 100644
index 00000000..23c081bb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EasAuthenticationMethodEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EasAuthenticationMethod undocumented
+type EasAuthenticationMethod int
+
+const (
+ // EasAuthenticationMethodVUsernameAndPassword undocumented
+ EasAuthenticationMethodVUsernameAndPassword EasAuthenticationMethod = 0
+ // EasAuthenticationMethodVCertificate undocumented
+ EasAuthenticationMethodVCertificate EasAuthenticationMethod = 1
+ // EasAuthenticationMethodVDerivedCredential undocumented
+ EasAuthenticationMethodVDerivedCredential EasAuthenticationMethod = 2
+)
+
+// EasAuthenticationMethodPUsernameAndPassword returns a pointer to EasAuthenticationMethodVUsernameAndPassword
+func EasAuthenticationMethodPUsernameAndPassword() *EasAuthenticationMethod {
+ v := EasAuthenticationMethodVUsernameAndPassword
+ return &v
+}
+
+// EasAuthenticationMethodPCertificate returns a pointer to EasAuthenticationMethodVCertificate
+func EasAuthenticationMethodPCertificate() *EasAuthenticationMethod {
+ v := EasAuthenticationMethodVCertificate
+ return &v
+}
+
+// EasAuthenticationMethodPDerivedCredential returns a pointer to EasAuthenticationMethodVDerivedCredential
+func EasAuthenticationMethodPDerivedCredential() *EasAuthenticationMethod {
+ v := EasAuthenticationMethodVDerivedCredential
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EasEmailProfileConfigurationBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EasEmailProfileConfigurationBaseModel.go
new file mode 100644
index 00000000..5631823f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EasEmailProfileConfigurationBaseModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EasEmailProfileConfigurationBase Apple device features configuration profile.
+type EasEmailProfileConfigurationBase struct {
+ // DeviceConfiguration is the base model of EasEmailProfileConfigurationBase
+ DeviceConfiguration
+ // UsernameSource Username attribute that is picked from AAD and injected into this profile before installing on the device.
+ UsernameSource *UserEmailSource `json:"usernameSource,omitempty"`
+ // UsernameAADSource Name of the AAD field, that will be used to retrieve UserName for email profile.
+ UsernameAADSource *UsernameSource `json:"usernameAADSource,omitempty"`
+ // UserDomainNameSource UserDomainname attribute that is picked from AAD and injected into this profile before installing on the device.
+ UserDomainNameSource *DomainNameSource `json:"userDomainNameSource,omitempty"`
+ // CustomDomainName Custom domain name value used while generating an email profile before installing on the device.
+ CustomDomainName *string `json:"customDomainName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EasServicesEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EasServicesEnum.go
new file mode 100644
index 00000000..adb5b31f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EasServicesEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EasServices undocumented
+type EasServices int
+
+const (
+ // EasServicesVNone undocumented
+ EasServicesVNone EasServices = 0
+ // EasServicesVCalendars undocumented
+ EasServicesVCalendars EasServices = 1
+ // EasServicesVContacts undocumented
+ EasServicesVContacts EasServices = 2
+ // EasServicesVEmail undocumented
+ EasServicesVEmail EasServices = 4
+ // EasServicesVNotes undocumented
+ EasServicesVNotes EasServices = 8
+ // EasServicesVReminders undocumented
+ EasServicesVReminders EasServices = 16
+)
+
+// EasServicesPNone returns a pointer to EasServicesVNone
+func EasServicesPNone() *EasServices {
+ v := EasServicesVNone
+ return &v
+}
+
+// EasServicesPCalendars returns a pointer to EasServicesVCalendars
+func EasServicesPCalendars() *EasServices {
+ v := EasServicesVCalendars
+ return &v
+}
+
+// EasServicesPContacts returns a pointer to EasServicesVContacts
+func EasServicesPContacts() *EasServices {
+ v := EasServicesVContacts
+ return &v
+}
+
+// EasServicesPEmail returns a pointer to EasServicesVEmail
+func EasServicesPEmail() *EasServices {
+ v := EasServicesVEmail
+ return &v
+}
+
+// EasServicesPNotes returns a pointer to EasServicesVNotes
+func EasServicesPNotes() *EasServices {
+ v := EasServicesVNotes
+ return &v
+}
+
+// EasServicesPReminders returns a pointer to EasServicesVReminders
+func EasServicesPReminders() *EasServices {
+ v := EasServicesVReminders
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EdgeCookiePolicyEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeCookiePolicyEnum.go
new file mode 100644
index 00000000..77007297
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeCookiePolicyEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeCookiePolicy undocumented
+type EdgeCookiePolicy int
+
+const (
+ // EdgeCookiePolicyVUserDefined undocumented
+ EdgeCookiePolicyVUserDefined EdgeCookiePolicy = 0
+ // EdgeCookiePolicyVAllow undocumented
+ EdgeCookiePolicyVAllow EdgeCookiePolicy = 1
+ // EdgeCookiePolicyVBlockThirdParty undocumented
+ EdgeCookiePolicyVBlockThirdParty EdgeCookiePolicy = 2
+ // EdgeCookiePolicyVBlockAll undocumented
+ EdgeCookiePolicyVBlockAll EdgeCookiePolicy = 3
+)
+
+// EdgeCookiePolicyPUserDefined returns a pointer to EdgeCookiePolicyVUserDefined
+func EdgeCookiePolicyPUserDefined() *EdgeCookiePolicy {
+ v := EdgeCookiePolicyVUserDefined
+ return &v
+}
+
+// EdgeCookiePolicyPAllow returns a pointer to EdgeCookiePolicyVAllow
+func EdgeCookiePolicyPAllow() *EdgeCookiePolicy {
+ v := EdgeCookiePolicyVAllow
+ return &v
+}
+
+// EdgeCookiePolicyPBlockThirdParty returns a pointer to EdgeCookiePolicyVBlockThirdParty
+func EdgeCookiePolicyPBlockThirdParty() *EdgeCookiePolicy {
+ v := EdgeCookiePolicyVBlockThirdParty
+ return &v
+}
+
+// EdgeCookiePolicyPBlockAll returns a pointer to EdgeCookiePolicyVBlockAll
+func EdgeCookiePolicyPBlockAll() *EdgeCookiePolicy {
+ v := EdgeCookiePolicyVBlockAll
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EdgeHomeButtonConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeHomeButtonConfigurationModel.go
new file mode 100644
index 00000000..c99f8021
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeHomeButtonConfigurationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeHomeButtonConfiguration undocumented
+type EdgeHomeButtonConfiguration struct {
+ // Object is the base model of EdgeHomeButtonConfiguration
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EdgeHomeButtonHiddenModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeHomeButtonHiddenModel.go
new file mode 100644
index 00000000..ca21318b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeHomeButtonHiddenModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeHomeButtonHidden undocumented
+type EdgeHomeButtonHidden struct {
+ // EdgeHomeButtonConfiguration is the base model of EdgeHomeButtonHidden
+ EdgeHomeButtonConfiguration
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EdgeHomeButtonLoadsStartPageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeHomeButtonLoadsStartPageModel.go
new file mode 100644
index 00000000..5514642a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeHomeButtonLoadsStartPageModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeHomeButtonLoadsStartPage undocumented
+type EdgeHomeButtonLoadsStartPage struct {
+ // EdgeHomeButtonConfiguration is the base model of EdgeHomeButtonLoadsStartPage
+ EdgeHomeButtonConfiguration
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EdgeHomeButtonOpensCustomURLModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeHomeButtonOpensCustomURLModel.go
new file mode 100644
index 00000000..3640a15a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeHomeButtonOpensCustomURLModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeHomeButtonOpensCustomURL undocumented
+type EdgeHomeButtonOpensCustomURL struct {
+ // EdgeHomeButtonConfiguration is the base model of EdgeHomeButtonOpensCustomURL
+ EdgeHomeButtonConfiguration
+ // HomeButtonCustomURL The specific URL to load.
+ HomeButtonCustomURL *string `json:"homeButtonCustomURL,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EdgeHomeButtonOpensNewTabModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeHomeButtonOpensNewTabModel.go
new file mode 100644
index 00000000..e07e53b0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeHomeButtonOpensNewTabModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeHomeButtonOpensNewTab undocumented
+type EdgeHomeButtonOpensNewTab struct {
+ // EdgeHomeButtonConfiguration is the base model of EdgeHomeButtonOpensNewTab
+ EdgeHomeButtonConfiguration
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EdgeKioskModeRestrictionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeKioskModeRestrictionTypeEnum.go
new file mode 100644
index 00000000..6344223e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeKioskModeRestrictionTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeKioskModeRestrictionType undocumented
+type EdgeKioskModeRestrictionType int
+
+const (
+ // EdgeKioskModeRestrictionTypeVNotConfigured undocumented
+ EdgeKioskModeRestrictionTypeVNotConfigured EdgeKioskModeRestrictionType = 0
+ // EdgeKioskModeRestrictionTypeVDigitalSignage undocumented
+ EdgeKioskModeRestrictionTypeVDigitalSignage EdgeKioskModeRestrictionType = 1
+ // EdgeKioskModeRestrictionTypeVNormalMode undocumented
+ EdgeKioskModeRestrictionTypeVNormalMode EdgeKioskModeRestrictionType = 2
+ // EdgeKioskModeRestrictionTypeVPublicBrowsingSingleApp undocumented
+ EdgeKioskModeRestrictionTypeVPublicBrowsingSingleApp EdgeKioskModeRestrictionType = 3
+ // EdgeKioskModeRestrictionTypeVPublicBrowsingMultiApp undocumented
+ EdgeKioskModeRestrictionTypeVPublicBrowsingMultiApp EdgeKioskModeRestrictionType = 4
+)
+
+// EdgeKioskModeRestrictionTypePNotConfigured returns a pointer to EdgeKioskModeRestrictionTypeVNotConfigured
+func EdgeKioskModeRestrictionTypePNotConfigured() *EdgeKioskModeRestrictionType {
+ v := EdgeKioskModeRestrictionTypeVNotConfigured
+ return &v
+}
+
+// EdgeKioskModeRestrictionTypePDigitalSignage returns a pointer to EdgeKioskModeRestrictionTypeVDigitalSignage
+func EdgeKioskModeRestrictionTypePDigitalSignage() *EdgeKioskModeRestrictionType {
+ v := EdgeKioskModeRestrictionTypeVDigitalSignage
+ return &v
+}
+
+// EdgeKioskModeRestrictionTypePNormalMode returns a pointer to EdgeKioskModeRestrictionTypeVNormalMode
+func EdgeKioskModeRestrictionTypePNormalMode() *EdgeKioskModeRestrictionType {
+ v := EdgeKioskModeRestrictionTypeVNormalMode
+ return &v
+}
+
+// EdgeKioskModeRestrictionTypePPublicBrowsingSingleApp returns a pointer to EdgeKioskModeRestrictionTypeVPublicBrowsingSingleApp
+func EdgeKioskModeRestrictionTypePPublicBrowsingSingleApp() *EdgeKioskModeRestrictionType {
+ v := EdgeKioskModeRestrictionTypeVPublicBrowsingSingleApp
+ return &v
+}
+
+// EdgeKioskModeRestrictionTypePPublicBrowsingMultiApp returns a pointer to EdgeKioskModeRestrictionTypeVPublicBrowsingMultiApp
+func EdgeKioskModeRestrictionTypePPublicBrowsingMultiApp() *EdgeKioskModeRestrictionType {
+ v := EdgeKioskModeRestrictionTypeVPublicBrowsingMultiApp
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EdgeOpenOptionsEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeOpenOptionsEnum.go
new file mode 100644
index 00000000..a918dcce
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeOpenOptionsEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeOpenOptions undocumented
+type EdgeOpenOptions int
+
+const (
+ // EdgeOpenOptionsVNotConfigured undocumented
+ EdgeOpenOptionsVNotConfigured EdgeOpenOptions = 0
+ // EdgeOpenOptionsVStartPage undocumented
+ EdgeOpenOptionsVStartPage EdgeOpenOptions = 1
+ // EdgeOpenOptionsVNewTabPage undocumented
+ EdgeOpenOptionsVNewTabPage EdgeOpenOptions = 2
+ // EdgeOpenOptionsVPreviousPages undocumented
+ EdgeOpenOptionsVPreviousPages EdgeOpenOptions = 3
+ // EdgeOpenOptionsVSpecificPages undocumented
+ EdgeOpenOptionsVSpecificPages EdgeOpenOptions = 4
+)
+
+// EdgeOpenOptionsPNotConfigured returns a pointer to EdgeOpenOptionsVNotConfigured
+func EdgeOpenOptionsPNotConfigured() *EdgeOpenOptions {
+ v := EdgeOpenOptionsVNotConfigured
+ return &v
+}
+
+// EdgeOpenOptionsPStartPage returns a pointer to EdgeOpenOptionsVStartPage
+func EdgeOpenOptionsPStartPage() *EdgeOpenOptions {
+ v := EdgeOpenOptionsVStartPage
+ return &v
+}
+
+// EdgeOpenOptionsPNewTabPage returns a pointer to EdgeOpenOptionsVNewTabPage
+func EdgeOpenOptionsPNewTabPage() *EdgeOpenOptions {
+ v := EdgeOpenOptionsVNewTabPage
+ return &v
+}
+
+// EdgeOpenOptionsPPreviousPages returns a pointer to EdgeOpenOptionsVPreviousPages
+func EdgeOpenOptionsPPreviousPages() *EdgeOpenOptions {
+ v := EdgeOpenOptionsVPreviousPages
+ return &v
+}
+
+// EdgeOpenOptionsPSpecificPages returns a pointer to EdgeOpenOptionsVSpecificPages
+func EdgeOpenOptionsPSpecificPages() *EdgeOpenOptions {
+ v := EdgeOpenOptionsVSpecificPages
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EdgeSearchEngineBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeSearchEngineBaseModel.go
new file mode 100644
index 00000000..d33862b1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeSearchEngineBaseModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeSearchEngineBase undocumented
+type EdgeSearchEngineBase struct {
+ // Object is the base model of EdgeSearchEngineBase
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EdgeSearchEngineCustomModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeSearchEngineCustomModel.go
new file mode 100644
index 00000000..abed14a9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeSearchEngineCustomModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeSearchEngineCustom undocumented
+type EdgeSearchEngineCustom struct {
+ // EdgeSearchEngineBase is the base model of EdgeSearchEngineCustom
+ EdgeSearchEngineBase
+ // EdgeSearchEngineOpenSearchXMLURL Points to a https link containing the OpenSearch xml file that contains, at minimum, the short name and the URL to the search Engine.
+ EdgeSearchEngineOpenSearchXMLURL *string `json:"edgeSearchEngineOpenSearchXmlUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EdgeSearchEngineModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeSearchEngineModel.go
new file mode 100644
index 00000000..a7dfdd8d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeSearchEngineModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeSearchEngine undocumented
+type EdgeSearchEngine struct {
+ // EdgeSearchEngineBase is the base model of EdgeSearchEngine
+ EdgeSearchEngineBase
+ // EdgeSearchEngineType Allows IT admins to set a predefined default search engine for MDM-Controlled devices.
+ EdgeSearchEngineType *EdgeSearchEngineType `json:"edgeSearchEngineType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EdgeSearchEngineTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeSearchEngineTypeEnum.go
new file mode 100644
index 00000000..005b55ea
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeSearchEngineTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeSearchEngineType undocumented
+type EdgeSearchEngineType int
+
+const (
+ // EdgeSearchEngineTypeVDefault undocumented
+ EdgeSearchEngineTypeVDefault EdgeSearchEngineType = 0
+ // EdgeSearchEngineTypeVBing undocumented
+ EdgeSearchEngineTypeVBing EdgeSearchEngineType = 1
+)
+
+// EdgeSearchEngineTypePDefault returns a pointer to EdgeSearchEngineTypeVDefault
+func EdgeSearchEngineTypePDefault() *EdgeSearchEngineType {
+ v := EdgeSearchEngineTypeVDefault
+ return &v
+}
+
+// EdgeSearchEngineTypePBing returns a pointer to EdgeSearchEngineTypeVBing
+func EdgeSearchEngineTypePBing() *EdgeSearchEngineType {
+ v := EdgeSearchEngineTypeVBing
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EdgeTelemetryModeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeTelemetryModeEnum.go
new file mode 100644
index 00000000..cb830645
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EdgeTelemetryModeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeTelemetryMode undocumented
+type EdgeTelemetryMode int
+
+const (
+ // EdgeTelemetryModeVNotConfigured undocumented
+ EdgeTelemetryModeVNotConfigured EdgeTelemetryMode = 0
+ // EdgeTelemetryModeVIntranet undocumented
+ EdgeTelemetryModeVIntranet EdgeTelemetryMode = 1
+ // EdgeTelemetryModeVInternet undocumented
+ EdgeTelemetryModeVInternet EdgeTelemetryMode = 2
+ // EdgeTelemetryModeVIntranetAndInternet undocumented
+ EdgeTelemetryModeVIntranetAndInternet EdgeTelemetryMode = 3
+)
+
+// EdgeTelemetryModePNotConfigured returns a pointer to EdgeTelemetryModeVNotConfigured
+func EdgeTelemetryModePNotConfigured() *EdgeTelemetryMode {
+ v := EdgeTelemetryModeVNotConfigured
+ return &v
+}
+
+// EdgeTelemetryModePIntranet returns a pointer to EdgeTelemetryModeVIntranet
+func EdgeTelemetryModePIntranet() *EdgeTelemetryMode {
+ v := EdgeTelemetryModeVIntranet
+ return &v
+}
+
+// EdgeTelemetryModePInternet returns a pointer to EdgeTelemetryModeVInternet
+func EdgeTelemetryModePInternet() *EdgeTelemetryMode {
+ v := EdgeTelemetryModeVInternet
+ return &v
+}
+
+// EdgeTelemetryModePIntranetAndInternet returns a pointer to EdgeTelemetryModeVIntranetAndInternet
+func EdgeTelemetryModePIntranetAndInternet() *EdgeTelemetryMode {
+ v := EdgeTelemetryModeVIntranetAndInternet
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EditActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EditActionModel.go
new file mode 100644
index 00000000..e9a7203e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EditActionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EditAction undocumented
+type EditAction struct {
+ // Object is the base model of EditAction
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EditionUpgradeConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EditionUpgradeConfigurationModel.go
new file mode 100644
index 00000000..11c89adb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EditionUpgradeConfigurationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EditionUpgradeConfiguration Windows 10 Edition Upgrade configuration.
+type EditionUpgradeConfiguration struct {
+ // DeviceConfiguration is the base model of EditionUpgradeConfiguration
+ DeviceConfiguration
+ // LicenseType Edition Upgrade License Type.
+ LicenseType *EditionUpgradeLicenseType `json:"licenseType,omitempty"`
+ // TargetEdition Edition Upgrade Target Edition.
+ TargetEdition *Windows10EditionType `json:"targetEdition,omitempty"`
+ // License Edition Upgrade License File Content.
+ License *string `json:"license,omitempty"`
+ // ProductKey Edition Upgrade Product Key.
+ ProductKey *string `json:"productKey,omitempty"`
+ // WindowsSMode S mode configuration.
+ WindowsSMode *WindowsSModeConfiguration `json:"windowsSMode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EditionUpgradeLicenseTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EditionUpgradeLicenseTypeEnum.go
new file mode 100644
index 00000000..cc615fd5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EditionUpgradeLicenseTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EditionUpgradeLicenseType undocumented
+type EditionUpgradeLicenseType int
+
+const (
+ // EditionUpgradeLicenseTypeVProductKey undocumented
+ EditionUpgradeLicenseTypeVProductKey EditionUpgradeLicenseType = 0
+ // EditionUpgradeLicenseTypeVLicenseFile undocumented
+ EditionUpgradeLicenseTypeVLicenseFile EditionUpgradeLicenseType = 1
+ // EditionUpgradeLicenseTypeVNotConfigured undocumented
+ EditionUpgradeLicenseTypeVNotConfigured EditionUpgradeLicenseType = 2
+)
+
+// EditionUpgradeLicenseTypePProductKey returns a pointer to EditionUpgradeLicenseTypeVProductKey
+func EditionUpgradeLicenseTypePProductKey() *EditionUpgradeLicenseType {
+ v := EditionUpgradeLicenseTypeVProductKey
+ return &v
+}
+
+// EditionUpgradeLicenseTypePLicenseFile returns a pointer to EditionUpgradeLicenseTypeVLicenseFile
+func EditionUpgradeLicenseTypePLicenseFile() *EditionUpgradeLicenseType {
+ v := EditionUpgradeLicenseTypeVLicenseFile
+ return &v
+}
+
+// EditionUpgradeLicenseTypePNotConfigured returns a pointer to EditionUpgradeLicenseTypeVNotConfigured
+func EditionUpgradeLicenseTypePNotConfigured() *EditionUpgradeLicenseType {
+ v := EditionUpgradeLicenseTypeVNotConfigured
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentAction.go
new file mode 100644
index 00000000..e5ce1dd5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentAction.go
@@ -0,0 +1,36 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EducationAssignmentPublishRequestParameter undocumented
+type EducationAssignmentPublishRequestParameter struct {
+}
+
+//
+type EducationAssignmentPublishRequestBuilder struct{ BaseRequestBuilder }
+
+// Publish action undocumented
+func (b *EducationAssignmentRequestBuilder) Publish(reqObj *EducationAssignmentPublishRequestParameter) *EducationAssignmentPublishRequestBuilder {
+ bb := &EducationAssignmentPublishRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/publish"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EducationAssignmentPublishRequest struct{ BaseRequest }
+
+//
+func (b *EducationAssignmentPublishRequestBuilder) Request() *EducationAssignmentPublishRequest {
+ return &EducationAssignmentPublishRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EducationAssignmentPublishRequest) Post(ctx context.Context) (resObj *EducationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentClassRecipientModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentClassRecipientModel.go
new file mode 100644
index 00000000..85fe62cb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentClassRecipientModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentClassRecipient undocumented
+type EducationAssignmentClassRecipient struct {
+ // EducationAssignmentRecipient is the base model of EducationAssignmentClassRecipient
+ EducationAssignmentRecipient
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentGradeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentGradeModel.go
new file mode 100644
index 00000000..a4661d21
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentGradeModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EducationAssignmentGrade undocumented
+type EducationAssignmentGrade struct {
+ // Object is the base model of EducationAssignmentGrade
+ Object
+ // GradedBy undocumented
+ GradedBy *IdentitySet `json:"gradedBy,omitempty"`
+ // GradedDateTime undocumented
+ GradedDateTime *time.Time `json:"gradedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentGradeTypeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentGradeTypeModel.go
new file mode 100644
index 00000000..004b41d4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentGradeTypeModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentGradeType undocumented
+type EducationAssignmentGradeType struct {
+ // Object is the base model of EducationAssignmentGradeType
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentGroupRecipientModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentGroupRecipientModel.go
new file mode 100644
index 00000000..38f6511d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentGroupRecipientModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentGroupRecipient undocumented
+type EducationAssignmentGroupRecipient struct {
+ // EducationAssignmentRecipient is the base model of EducationAssignmentGroupRecipient
+ EducationAssignmentRecipient
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentIndividualRecipientModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentIndividualRecipientModel.go
new file mode 100644
index 00000000..562319dc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentIndividualRecipientModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentIndividualRecipient undocumented
+type EducationAssignmentIndividualRecipient struct {
+ // EducationAssignmentRecipient is the base model of EducationAssignmentIndividualRecipient
+ EducationAssignmentRecipient
+ // Recipients undocumented
+ Recipients []string `json:"recipients,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentModel.go
new file mode 100644
index 00000000..08ae5d18
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentModel.go
@@ -0,0 +1,51 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EducationAssignment undocumented
+type EducationAssignment struct {
+ // Entity is the base model of EducationAssignment
+ Entity
+ // ClassID undocumented
+ ClassID *string `json:"classId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Instructions undocumented
+ Instructions *EducationItemBody `json:"instructions,omitempty"`
+ // CloseDateTime undocumented
+ CloseDateTime *time.Time `json:"closeDateTime,omitempty"`
+ // DueDateTime undocumented
+ DueDateTime *time.Time `json:"dueDateTime,omitempty"`
+ // AssignDateTime undocumented
+ AssignDateTime *time.Time `json:"assignDateTime,omitempty"`
+ // AssignedDateTime undocumented
+ AssignedDateTime *time.Time `json:"assignedDateTime,omitempty"`
+ // Grading undocumented
+ Grading *EducationAssignmentGradeType `json:"grading,omitempty"`
+ // AssignTo undocumented
+ AssignTo *EducationAssignmentRecipient `json:"assignTo,omitempty"`
+ // AllowLateSubmissions undocumented
+ AllowLateSubmissions *bool `json:"allowLateSubmissions,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+ // AllowStudentsToAddResourcesToSubmission undocumented
+ AllowStudentsToAddResourcesToSubmission *bool `json:"allowStudentsToAddResourcesToSubmission,omitempty"`
+ // Status undocumented
+ Status *EducationAssignmentStatus `json:"status,omitempty"`
+ // Resources undocumented
+ Resources []EducationAssignmentResource `json:"resources,omitempty"`
+ // Submissions undocumented
+ Submissions []EducationSubmission `json:"submissions,omitempty"`
+ // Categories undocumented
+ Categories []EducationCategory `json:"categories,omitempty"`
+ // Rubric undocumented
+ Rubric *EducationRubric `json:"rubric,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentPointsGradeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentPointsGradeModel.go
new file mode 100644
index 00000000..ca093263
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentPointsGradeModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentPointsGrade undocumented
+type EducationAssignmentPointsGrade struct {
+ // EducationAssignmentGrade is the base model of EducationAssignmentPointsGrade
+ EducationAssignmentGrade
+ // Points undocumented
+ Points *float64 `json:"points,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentPointsGradeTypeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentPointsGradeTypeModel.go
new file mode 100644
index 00000000..4ed76b5e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentPointsGradeTypeModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentPointsGradeType undocumented
+type EducationAssignmentPointsGradeType struct {
+ // EducationAssignmentGradeType is the base model of EducationAssignmentPointsGradeType
+ EducationAssignmentGradeType
+ // MaxPoints undocumented
+ MaxPoints *float64 `json:"maxPoints,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentRecipientModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentRecipientModel.go
new file mode 100644
index 00000000..8a587f75
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentRecipientModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentRecipient undocumented
+type EducationAssignmentRecipient struct {
+ // Object is the base model of EducationAssignmentRecipient
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentRequest.go
new file mode 100644
index 00000000..a7fcb8d6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentRequest.go
@@ -0,0 +1,334 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EducationAssignmentRequestBuilder is request builder for EducationAssignment
+type EducationAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationAssignmentRequest
+func (b *EducationAssignmentRequestBuilder) Request() *EducationAssignmentRequest {
+ return &EducationAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationAssignmentRequest is request for EducationAssignment
+type EducationAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationAssignment
+func (r *EducationAssignmentRequest) Get(ctx context.Context) (resObj *EducationAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationAssignment
+func (r *EducationAssignmentRequest) Update(ctx context.Context, reqObj *EducationAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationAssignment
+func (r *EducationAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Categories returns request builder for EducationCategory collection
+func (b *EducationAssignmentRequestBuilder) Categories() *EducationAssignmentCategoriesCollectionRequestBuilder {
+ bb := &EducationAssignmentCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/categories"
+ return bb
+}
+
+// EducationAssignmentCategoriesCollectionRequestBuilder is request builder for EducationCategory collection
+type EducationAssignmentCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationCategory collection
+func (b *EducationAssignmentCategoriesCollectionRequestBuilder) Request() *EducationAssignmentCategoriesCollectionRequest {
+ return &EducationAssignmentCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationCategory item
+func (b *EducationAssignmentCategoriesCollectionRequestBuilder) ID(id string) *EducationCategoryRequestBuilder {
+ bb := &EducationCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationAssignmentCategoriesCollectionRequest is request for EducationCategory collection
+type EducationAssignmentCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationCategory collection
+func (r *EducationAssignmentCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationCategory collection
+func (r *EducationAssignmentCategoriesCollectionRequest) Get(ctx context.Context) ([]EducationCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationCategory collection
+func (r *EducationAssignmentCategoriesCollectionRequest) Add(ctx context.Context, reqObj *EducationCategory) (resObj *EducationCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Resources returns request builder for EducationAssignmentResource collection
+func (b *EducationAssignmentRequestBuilder) Resources() *EducationAssignmentResourcesCollectionRequestBuilder {
+ bb := &EducationAssignmentResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resources"
+ return bb
+}
+
+// EducationAssignmentResourcesCollectionRequestBuilder is request builder for EducationAssignmentResource collection
+type EducationAssignmentResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationAssignmentResource collection
+func (b *EducationAssignmentResourcesCollectionRequestBuilder) Request() *EducationAssignmentResourcesCollectionRequest {
+ return &EducationAssignmentResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationAssignmentResource item
+func (b *EducationAssignmentResourcesCollectionRequestBuilder) ID(id string) *EducationAssignmentResourceRequestBuilder {
+ bb := &EducationAssignmentResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationAssignmentResourcesCollectionRequest is request for EducationAssignmentResource collection
+type EducationAssignmentResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationAssignmentResource collection
+func (r *EducationAssignmentResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationAssignmentResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationAssignmentResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationAssignmentResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationAssignmentResource collection
+func (r *EducationAssignmentResourcesCollectionRequest) Get(ctx context.Context) ([]EducationAssignmentResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationAssignmentResource collection
+func (r *EducationAssignmentResourcesCollectionRequest) Add(ctx context.Context, reqObj *EducationAssignmentResource) (resObj *EducationAssignmentResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Rubric is navigation property
+func (b *EducationAssignmentRequestBuilder) Rubric() *EducationRubricRequestBuilder {
+ bb := &EducationRubricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rubric"
+ return bb
+}
+
+// Submissions returns request builder for EducationSubmission collection
+func (b *EducationAssignmentRequestBuilder) Submissions() *EducationAssignmentSubmissionsCollectionRequestBuilder {
+ bb := &EducationAssignmentSubmissionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/submissions"
+ return bb
+}
+
+// EducationAssignmentSubmissionsCollectionRequestBuilder is request builder for EducationSubmission collection
+type EducationAssignmentSubmissionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationSubmission collection
+func (b *EducationAssignmentSubmissionsCollectionRequestBuilder) Request() *EducationAssignmentSubmissionsCollectionRequest {
+ return &EducationAssignmentSubmissionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationSubmission item
+func (b *EducationAssignmentSubmissionsCollectionRequestBuilder) ID(id string) *EducationSubmissionRequestBuilder {
+ bb := &EducationSubmissionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationAssignmentSubmissionsCollectionRequest is request for EducationSubmission collection
+type EducationAssignmentSubmissionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationSubmission collection
+func (r *EducationAssignmentSubmissionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationSubmission, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationSubmission
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationSubmission
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationSubmission collection
+func (r *EducationAssignmentSubmissionsCollectionRequest) Get(ctx context.Context) ([]EducationSubmission, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationSubmission collection
+func (r *EducationAssignmentSubmissionsCollectionRequest) Add(ctx context.Context, reqObj *EducationSubmission) (resObj *EducationSubmission, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentResourceModel.go
new file mode 100644
index 00000000..e44d99f3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentResourceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentResource undocumented
+type EducationAssignmentResource struct {
+ // Entity is the base model of EducationAssignmentResource
+ Entity
+ // DistributeForStudentWork undocumented
+ DistributeForStudentWork *bool `json:"distributeForStudentWork,omitempty"`
+ // Resource undocumented
+ Resource *EducationResource `json:"resource,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentResourceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentResourceRequest.go
new file mode 100644
index 00000000..d455e5db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentResourceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EducationAssignmentResourceRequestBuilder is request builder for EducationAssignmentResource
+type EducationAssignmentResourceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationAssignmentResourceRequest
+func (b *EducationAssignmentResourceRequestBuilder) Request() *EducationAssignmentResourceRequest {
+ return &EducationAssignmentResourceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationAssignmentResourceRequest is request for EducationAssignmentResource
+type EducationAssignmentResourceRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationAssignmentResource
+func (r *EducationAssignmentResourceRequest) Get(ctx context.Context) (resObj *EducationAssignmentResource, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationAssignmentResource
+func (r *EducationAssignmentResourceRequest) Update(ctx context.Context, reqObj *EducationAssignmentResource) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationAssignmentResource
+func (r *EducationAssignmentResourceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentStatusEnum.go
new file mode 100644
index 00000000..ba8e21bc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationAssignmentStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentStatus undocumented
+type EducationAssignmentStatus int
+
+const (
+ // EducationAssignmentStatusVDraft undocumented
+ EducationAssignmentStatusVDraft EducationAssignmentStatus = 0
+ // EducationAssignmentStatusVPublished undocumented
+ EducationAssignmentStatusVPublished EducationAssignmentStatus = 1
+ // EducationAssignmentStatusVAssigned undocumented
+ EducationAssignmentStatusVAssigned EducationAssignmentStatus = 2
+ // EducationAssignmentStatusVUnknownFutureValue undocumented
+ EducationAssignmentStatusVUnknownFutureValue EducationAssignmentStatus = 3
+)
+
+// EducationAssignmentStatusPDraft returns a pointer to EducationAssignmentStatusVDraft
+func EducationAssignmentStatusPDraft() *EducationAssignmentStatus {
+ v := EducationAssignmentStatusVDraft
+ return &v
+}
+
+// EducationAssignmentStatusPPublished returns a pointer to EducationAssignmentStatusVPublished
+func EducationAssignmentStatusPPublished() *EducationAssignmentStatus {
+ v := EducationAssignmentStatusVPublished
+ return &v
+}
+
+// EducationAssignmentStatusPAssigned returns a pointer to EducationAssignmentStatusVAssigned
+func EducationAssignmentStatusPAssigned() *EducationAssignmentStatus {
+ v := EducationAssignmentStatusVAssigned
+ return &v
+}
+
+// EducationAssignmentStatusPUnknownFutureValue returns a pointer to EducationAssignmentStatusVUnknownFutureValue
+func EducationAssignmentStatusPUnknownFutureValue() *EducationAssignmentStatus {
+ v := EducationAssignmentStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationCategoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationCategoryModel.go
new file mode 100644
index 00000000..29ed16b4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationCategoryModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationCategory undocumented
+type EducationCategory struct {
+ // Entity is the base model of EducationCategory
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationCategoryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationCategoryRequest.go
new file mode 100644
index 00000000..a6fc0e5a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationCategoryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EducationCategoryRequestBuilder is request builder for EducationCategory
+type EducationCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationCategoryRequest
+func (b *EducationCategoryRequestBuilder) Request() *EducationCategoryRequest {
+ return &EducationCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationCategoryRequest is request for EducationCategory
+type EducationCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationCategory
+func (r *EducationCategoryRequest) Get(ctx context.Context) (resObj *EducationCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationCategory
+func (r *EducationCategoryRequest) Update(ctx context.Context, reqObj *EducationCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationCategory
+func (r *EducationCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationClassModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationClassModel.go
new file mode 100644
index 00000000..a00367f9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationClassModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationClass undocumented
+type EducationClass struct {
+ // Entity is the base model of EducationClass
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // MailNickname undocumented
+ MailNickname *string `json:"mailNickname,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // ClassCode undocumented
+ ClassCode *string `json:"classCode,omitempty"`
+ // ExternalName undocumented
+ ExternalName *string `json:"externalName,omitempty"`
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // ExternalSource undocumented
+ ExternalSource *EducationExternalSource `json:"externalSource,omitempty"`
+ // Grade undocumented
+ Grade *string `json:"grade,omitempty"`
+ // Term undocumented
+ Term *EducationTerm `json:"term,omitempty"`
+ // Course undocumented
+ Course *EducationCourse `json:"course,omitempty"`
+ // Assignments undocumented
+ Assignments []EducationAssignment `json:"assignments,omitempty"`
+ // AssignmentCategories undocumented
+ AssignmentCategories []EducationCategory `json:"assignmentCategories,omitempty"`
+ // Members undocumented
+ Members []EducationUser `json:"members,omitempty"`
+ // Teachers undocumented
+ Teachers []EducationUser `json:"teachers,omitempty"`
+ // Schools undocumented
+ Schools []EducationSchool `json:"schools,omitempty"`
+ // Group undocumented
+ Group *Group `json:"group,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationClassRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationClassRequest.go
new file mode 100644
index 00000000..219ff4fb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationClassRequest.go
@@ -0,0 +1,522 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EducationClassRequestBuilder is request builder for EducationClass
+type EducationClassRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationClassRequest
+func (b *EducationClassRequestBuilder) Request() *EducationClassRequest {
+ return &EducationClassRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationClassRequest is request for EducationClass
+type EducationClassRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationClass
+func (r *EducationClassRequest) Get(ctx context.Context) (resObj *EducationClass, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationClass
+func (r *EducationClassRequest) Update(ctx context.Context, reqObj *EducationClass) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationClass
+func (r *EducationClassRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AssignmentCategories returns request builder for EducationCategory collection
+func (b *EducationClassRequestBuilder) AssignmentCategories() *EducationClassAssignmentCategoriesCollectionRequestBuilder {
+ bb := &EducationClassAssignmentCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignmentCategories"
+ return bb
+}
+
+// EducationClassAssignmentCategoriesCollectionRequestBuilder is request builder for EducationCategory collection
+type EducationClassAssignmentCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationCategory collection
+func (b *EducationClassAssignmentCategoriesCollectionRequestBuilder) Request() *EducationClassAssignmentCategoriesCollectionRequest {
+ return &EducationClassAssignmentCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationCategory item
+func (b *EducationClassAssignmentCategoriesCollectionRequestBuilder) ID(id string) *EducationCategoryRequestBuilder {
+ bb := &EducationCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationClassAssignmentCategoriesCollectionRequest is request for EducationCategory collection
+type EducationClassAssignmentCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationCategory collection
+func (r *EducationClassAssignmentCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationCategory collection
+func (r *EducationClassAssignmentCategoriesCollectionRequest) Get(ctx context.Context) ([]EducationCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationCategory collection
+func (r *EducationClassAssignmentCategoriesCollectionRequest) Add(ctx context.Context, reqObj *EducationCategory) (resObj *EducationCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Assignments returns request builder for EducationAssignment collection
+func (b *EducationClassRequestBuilder) Assignments() *EducationClassAssignmentsCollectionRequestBuilder {
+ bb := &EducationClassAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// EducationClassAssignmentsCollectionRequestBuilder is request builder for EducationAssignment collection
+type EducationClassAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationAssignment collection
+func (b *EducationClassAssignmentsCollectionRequestBuilder) Request() *EducationClassAssignmentsCollectionRequest {
+ return &EducationClassAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationAssignment item
+func (b *EducationClassAssignmentsCollectionRequestBuilder) ID(id string) *EducationAssignmentRequestBuilder {
+ bb := &EducationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationClassAssignmentsCollectionRequest is request for EducationAssignment collection
+type EducationClassAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationAssignment collection
+func (r *EducationClassAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationAssignment collection
+func (r *EducationClassAssignmentsCollectionRequest) Get(ctx context.Context) ([]EducationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationAssignment collection
+func (r *EducationClassAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *EducationAssignment) (resObj *EducationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Group is navigation property
+func (b *EducationClassRequestBuilder) Group() *GroupRequestBuilder {
+ bb := &GroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/group"
+ return bb
+}
+
+// Members returns request builder for EducationUser collection
+func (b *EducationClassRequestBuilder) Members() *EducationClassMembersCollectionRequestBuilder {
+ bb := &EducationClassMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/members"
+ return bb
+}
+
+// EducationClassMembersCollectionRequestBuilder is request builder for EducationUser collection
+type EducationClassMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationUser collection
+func (b *EducationClassMembersCollectionRequestBuilder) Request() *EducationClassMembersCollectionRequest {
+ return &EducationClassMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationUser item
+func (b *EducationClassMembersCollectionRequestBuilder) ID(id string) *EducationUserRequestBuilder {
+ bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationClassMembersCollectionRequest is request for EducationUser collection
+type EducationClassMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationUser collection
+func (r *EducationClassMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationUser, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationUser
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationUser
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationUser collection
+func (r *EducationClassMembersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationUser collection
+func (r *EducationClassMembersCollectionRequest) Add(ctx context.Context, reqObj *EducationUser) (resObj *EducationUser, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Schools returns request builder for EducationSchool collection
+func (b *EducationClassRequestBuilder) Schools() *EducationClassSchoolsCollectionRequestBuilder {
+ bb := &EducationClassSchoolsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schools"
+ return bb
+}
+
+// EducationClassSchoolsCollectionRequestBuilder is request builder for EducationSchool collection
+type EducationClassSchoolsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationSchool collection
+func (b *EducationClassSchoolsCollectionRequestBuilder) Request() *EducationClassSchoolsCollectionRequest {
+ return &EducationClassSchoolsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationSchool item
+func (b *EducationClassSchoolsCollectionRequestBuilder) ID(id string) *EducationSchoolRequestBuilder {
+ bb := &EducationSchoolRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationClassSchoolsCollectionRequest is request for EducationSchool collection
+type EducationClassSchoolsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationSchool collection
+func (r *EducationClassSchoolsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationSchool, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationSchool
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationSchool
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationSchool collection
+func (r *EducationClassSchoolsCollectionRequest) Get(ctx context.Context) ([]EducationSchool, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationSchool collection
+func (r *EducationClassSchoolsCollectionRequest) Add(ctx context.Context, reqObj *EducationSchool) (resObj *EducationSchool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Teachers returns request builder for EducationUser collection
+func (b *EducationClassRequestBuilder) Teachers() *EducationClassTeachersCollectionRequestBuilder {
+ bb := &EducationClassTeachersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teachers"
+ return bb
+}
+
+// EducationClassTeachersCollectionRequestBuilder is request builder for EducationUser collection
+type EducationClassTeachersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationUser collection
+func (b *EducationClassTeachersCollectionRequestBuilder) Request() *EducationClassTeachersCollectionRequest {
+ return &EducationClassTeachersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationUser item
+func (b *EducationClassTeachersCollectionRequestBuilder) ID(id string) *EducationUserRequestBuilder {
+ bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationClassTeachersCollectionRequest is request for EducationUser collection
+type EducationClassTeachersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationUser collection
+func (r *EducationClassTeachersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationUser, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationUser
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationUser
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationUser collection
+func (r *EducationClassTeachersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationUser collection
+func (r *EducationClassTeachersCollectionRequest) Add(ctx context.Context, reqObj *EducationUser) (resObj *EducationUser, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationCourseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationCourseModel.go
new file mode 100644
index 00000000..9e919e48
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationCourseModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationCourse undocumented
+type EducationCourse struct {
+ // Object is the base model of EducationCourse
+ Object
+ // Subject undocumented
+ Subject *string `json:"subject,omitempty"`
+ // CourseNumber undocumented
+ CourseNumber *string `json:"courseNumber,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationCsvDataProviderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationCsvDataProviderModel.go
new file mode 100644
index 00000000..fca7fc7a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationCsvDataProviderModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationCsvDataProvider undocumented
+type EducationCsvDataProvider struct {
+ // EducationSynchronizationDataProvider is the base model of EducationCsvDataProvider
+ EducationSynchronizationDataProvider
+ // Customizations undocumented
+ Customizations *EducationSynchronizationCustomizations `json:"customizations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationExcelResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationExcelResourceModel.go
new file mode 100644
index 00000000..07c65bb5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationExcelResourceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationExcelResource undocumented
+type EducationExcelResource struct {
+ // EducationResource is the base model of EducationExcelResource
+ EducationResource
+ // FileURL undocumented
+ FileURL *string `json:"fileUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationExternalSourceEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationExternalSourceEnum.go
new file mode 100644
index 00000000..0a1567c1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationExternalSourceEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationExternalSource undocumented
+type EducationExternalSource int
+
+const (
+ // EducationExternalSourceVSis undocumented
+ EducationExternalSourceVSis EducationExternalSource = 0
+ // EducationExternalSourceVManual undocumented
+ EducationExternalSourceVManual EducationExternalSource = 1
+ // EducationExternalSourceVUnknownFutureValue undocumented
+ EducationExternalSourceVUnknownFutureValue EducationExternalSource = 2
+)
+
+// EducationExternalSourcePSis returns a pointer to EducationExternalSourceVSis
+func EducationExternalSourcePSis() *EducationExternalSource {
+ v := EducationExternalSourceVSis
+ return &v
+}
+
+// EducationExternalSourcePManual returns a pointer to EducationExternalSourceVManual
+func EducationExternalSourcePManual() *EducationExternalSource {
+ v := EducationExternalSourceVManual
+ return &v
+}
+
+// EducationExternalSourcePUnknownFutureValue returns a pointer to EducationExternalSourceVUnknownFutureValue
+func EducationExternalSourcePUnknownFutureValue() *EducationExternalSource {
+ v := EducationExternalSourceVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationFeedbackModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationFeedbackModel.go
new file mode 100644
index 00000000..215a8d39
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationFeedbackModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EducationFeedback undocumented
+type EducationFeedback struct {
+ // Object is the base model of EducationFeedback
+ Object
+ // Text undocumented
+ Text *EducationItemBody `json:"text,omitempty"`
+ // FeedbackDateTime undocumented
+ FeedbackDateTime *time.Time `json:"feedbackDateTime,omitempty"`
+ // FeedbackBy undocumented
+ FeedbackBy *IdentitySet `json:"feedbackBy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationFeedbackOutcomeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationFeedbackOutcomeModel.go
new file mode 100644
index 00000000..acc27d68
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationFeedbackOutcomeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationFeedbackOutcome undocumented
+type EducationFeedbackOutcome struct {
+ // EducationOutcome is the base model of EducationFeedbackOutcome
+ EducationOutcome
+ // Feedback undocumented
+ Feedback *EducationFeedback `json:"feedback,omitempty"`
+ // PublishedFeedback undocumented
+ PublishedFeedback *EducationFeedback `json:"publishedFeedback,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationFileResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationFileResourceModel.go
new file mode 100644
index 00000000..bb69611d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationFileResourceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationFileResource undocumented
+type EducationFileResource struct {
+ // EducationResource is the base model of EducationFileResource
+ EducationResource
+ // FileURL undocumented
+ FileURL *string `json:"fileUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationFileSynchronizationVerificationMessageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationFileSynchronizationVerificationMessageModel.go
new file mode 100644
index 00000000..5c56b6c7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationFileSynchronizationVerificationMessageModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationFileSynchronizationVerificationMessage undocumented
+type EducationFileSynchronizationVerificationMessage struct {
+ // Object is the base model of EducationFileSynchronizationVerificationMessage
+ Object
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // FileName undocumented
+ FileName *string `json:"fileName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationFormResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationFormResourceModel.go
new file mode 100644
index 00000000..b5778640
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationFormResourceModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationFormResource undocumented
+type EducationFormResource struct {
+ // EducationResource is the base model of EducationFormResource
+ EducationResource
+ // OriginalFormID undocumented
+ OriginalFormID *string `json:"originalFormId,omitempty"`
+ // FormID undocumented
+ FormID *string `json:"formId,omitempty"`
+ // IsGroupForm undocumented
+ IsGroupForm *bool `json:"isGroupForm,omitempty"`
+ // ViewURL undocumented
+ ViewURL *string `json:"viewUrl,omitempty"`
+ // EditURL undocumented
+ EditURL *string `json:"editUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationGenderEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationGenderEnum.go
new file mode 100644
index 00000000..130ae11d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationGenderEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationGender undocumented
+type EducationGender int
+
+const (
+ // EducationGenderVFemale undocumented
+ EducationGenderVFemale EducationGender = 0
+ // EducationGenderVMale undocumented
+ EducationGenderVMale EducationGender = 1
+ // EducationGenderVOther undocumented
+ EducationGenderVOther EducationGender = 2
+ // EducationGenderVUnknownFutureValue undocumented
+ EducationGenderVUnknownFutureValue EducationGender = 3
+)
+
+// EducationGenderPFemale returns a pointer to EducationGenderVFemale
+func EducationGenderPFemale() *EducationGender {
+ v := EducationGenderVFemale
+ return &v
+}
+
+// EducationGenderPMale returns a pointer to EducationGenderVMale
+func EducationGenderPMale() *EducationGender {
+ v := EducationGenderVMale
+ return &v
+}
+
+// EducationGenderPOther returns a pointer to EducationGenderVOther
+func EducationGenderPOther() *EducationGender {
+ v := EducationGenderVOther
+ return &v
+}
+
+// EducationGenderPUnknownFutureValue returns a pointer to EducationGenderVUnknownFutureValue
+func EducationGenderPUnknownFutureValue() *EducationGender {
+ v := EducationGenderVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationIdentityCreationConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationIdentityCreationConfigurationModel.go
new file mode 100644
index 00000000..da9d4815
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationIdentityCreationConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationIdentityCreationConfiguration undocumented
+type EducationIdentityCreationConfiguration struct {
+ // EducationIdentitySynchronizationConfiguration is the base model of EducationIdentityCreationConfiguration
+ EducationIdentitySynchronizationConfiguration
+ // UserDomains undocumented
+ UserDomains []EducationIdentityDomain `json:"userDomains,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationIdentityDomainModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationIdentityDomainModel.go
new file mode 100644
index 00000000..fc5dbc86
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationIdentityDomainModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationIdentityDomain undocumented
+type EducationIdentityDomain struct {
+ // Object is the base model of EducationIdentityDomain
+ Object
+ // AppliesTo undocumented
+ AppliesTo *EducationUserRole `json:"appliesTo,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationIdentityMatchingConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationIdentityMatchingConfigurationModel.go
new file mode 100644
index 00000000..c6eb6385
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationIdentityMatchingConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationIdentityMatchingConfiguration undocumented
+type EducationIdentityMatchingConfiguration struct {
+ // EducationIdentitySynchronizationConfiguration is the base model of EducationIdentityMatchingConfiguration
+ EducationIdentitySynchronizationConfiguration
+ // MatchingOptions undocumented
+ MatchingOptions []EducationIdentityMatchingOptions `json:"matchingOptions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationIdentityMatchingOptionsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationIdentityMatchingOptionsModel.go
new file mode 100644
index 00000000..e6565783
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationIdentityMatchingOptionsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationIdentityMatchingOptions undocumented
+type EducationIdentityMatchingOptions struct {
+ // Object is the base model of EducationIdentityMatchingOptions
+ Object
+ // AppliesTo undocumented
+ AppliesTo *EducationUserRole `json:"appliesTo,omitempty"`
+ // SourcePropertyName undocumented
+ SourcePropertyName *string `json:"sourcePropertyName,omitempty"`
+ // TargetPropertyName undocumented
+ TargetPropertyName *string `json:"targetPropertyName,omitempty"`
+ // TargetDomain undocumented
+ TargetDomain *string `json:"targetDomain,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationIdentitySynchronizationConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationIdentitySynchronizationConfigurationModel.go
new file mode 100644
index 00000000..c2eaa593
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationIdentitySynchronizationConfigurationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationIdentitySynchronizationConfiguration undocumented
+type EducationIdentitySynchronizationConfiguration struct {
+ // Object is the base model of EducationIdentitySynchronizationConfiguration
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationItemBodyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationItemBodyModel.go
new file mode 100644
index 00000000..c43d46c2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationItemBodyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationItemBody undocumented
+type EducationItemBody struct {
+ // Object is the base model of EducationItemBody
+ Object
+ // ContentType undocumented
+ ContentType *BodyType `json:"contentType,omitempty"`
+ // Content undocumented
+ Content *string `json:"content,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationLinkResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationLinkResourceModel.go
new file mode 100644
index 00000000..6058bf94
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationLinkResourceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationLinkResource undocumented
+type EducationLinkResource struct {
+ // EducationResource is the base model of EducationLinkResource
+ EducationResource
+ // Link undocumented
+ Link *string `json:"link,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationMakeCodeResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationMakeCodeResourceModel.go
new file mode 100644
index 00000000..78653869
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationMakeCodeResourceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationMakeCodeResource undocumented
+type EducationMakeCodeResource struct {
+ // EducationResource is the base model of EducationMakeCodeResource
+ EducationResource
+ // HostWebURL undocumented
+ HostWebURL *string `json:"hostWebUrl,omitempty"`
+ // ProjectID undocumented
+ ProjectID *string `json:"projectId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationOnPremisesInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationOnPremisesInfoModel.go
new file mode 100644
index 00000000..d0507396
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationOnPremisesInfoModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationOnPremisesInfo undocumented
+type EducationOnPremisesInfo struct {
+ // Object is the base model of EducationOnPremisesInfo
+ Object
+ // ImmutableID undocumented
+ ImmutableID *string `json:"immutableId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationOneNoteResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationOneNoteResourceModel.go
new file mode 100644
index 00000000..f1790b93
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationOneNoteResourceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationOneNoteResource undocumented
+type EducationOneNoteResource struct {
+ // EducationResource is the base model of EducationOneNoteResource
+ EducationResource
+ // SectionName undocumented
+ SectionName *string `json:"sectionName,omitempty"`
+ // PageURL undocumented
+ PageURL *string `json:"pageUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationOneRosterAPIDataProviderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationOneRosterAPIDataProviderModel.go
new file mode 100644
index 00000000..394dc5f5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationOneRosterAPIDataProviderModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationOneRosterAPIDataProvider undocumented
+type EducationOneRosterAPIDataProvider struct {
+ // EducationSynchronizationDataProvider is the base model of EducationOneRosterAPIDataProvider
+ EducationSynchronizationDataProvider
+ // ConnectionURL undocumented
+ ConnectionURL *string `json:"connectionUrl,omitempty"`
+ // ConnectionSettings undocumented
+ ConnectionSettings *EducationSynchronizationConnectionSettings `json:"connectionSettings,omitempty"`
+ // SchoolsIDs undocumented
+ SchoolsIDs []string `json:"schoolsIds,omitempty"`
+ // TermIDs undocumented
+ TermIDs []string `json:"termIds,omitempty"`
+ // ProviderName undocumented
+ ProviderName *string `json:"providerName,omitempty"`
+ // Customizations undocumented
+ Customizations *EducationSynchronizationCustomizations `json:"customizations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationOrganizationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationOrganizationModel.go
new file mode 100644
index 00000000..e4b8fd5f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationOrganizationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationOrganization undocumented
+type EducationOrganization struct {
+ // Entity is the base model of EducationOrganization
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // ExternalSource undocumented
+ ExternalSource *EducationExternalSource `json:"externalSource,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationOutcomeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationOutcomeModel.go
new file mode 100644
index 00000000..52040f35
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationOutcomeModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EducationOutcome undocumented
+type EducationOutcome struct {
+ // Entity is the base model of EducationOutcome
+ Entity
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationOutcomeRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationOutcomeRequest.go
new file mode 100644
index 00000000..94c9de4a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationOutcomeRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EducationOutcomeRequestBuilder is request builder for EducationOutcome
+type EducationOutcomeRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationOutcomeRequest
+func (b *EducationOutcomeRequestBuilder) Request() *EducationOutcomeRequest {
+ return &EducationOutcomeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationOutcomeRequest is request for EducationOutcome
+type EducationOutcomeRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationOutcome
+func (r *EducationOutcomeRequest) Get(ctx context.Context) (resObj *EducationOutcome, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationOutcome
+func (r *EducationOutcomeRequest) Update(ctx context.Context, reqObj *EducationOutcome) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationOutcome
+func (r *EducationOutcomeRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationPointsOutcomeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationPointsOutcomeModel.go
new file mode 100644
index 00000000..0dc18a93
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationPointsOutcomeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationPointsOutcome undocumented
+type EducationPointsOutcome struct {
+ // EducationOutcome is the base model of EducationPointsOutcome
+ EducationOutcome
+ // Points undocumented
+ Points *EducationAssignmentPointsGrade `json:"points,omitempty"`
+ // PublishedPoints undocumented
+ PublishedPoints *EducationAssignmentPointsGrade `json:"publishedPoints,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationPowerPointResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationPowerPointResourceModel.go
new file mode 100644
index 00000000..2eda79b1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationPowerPointResourceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationPowerPointResource undocumented
+type EducationPowerPointResource struct {
+ // EducationResource is the base model of EducationPowerPointResource
+ EducationResource
+ // FileURL undocumented
+ FileURL *string `json:"fileUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationPowerSchoolDataProviderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationPowerSchoolDataProviderModel.go
new file mode 100644
index 00000000..9936f216
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationPowerSchoolDataProviderModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationPowerSchoolDataProvider undocumented
+type EducationPowerSchoolDataProvider struct {
+ // EducationSynchronizationDataProvider is the base model of EducationPowerSchoolDataProvider
+ EducationSynchronizationDataProvider
+ // ConnectionURL undocumented
+ ConnectionURL *string `json:"connectionUrl,omitempty"`
+ // ClientID undocumented
+ ClientID *string `json:"clientId,omitempty"`
+ // ClientSecret undocumented
+ ClientSecret *string `json:"clientSecret,omitempty"`
+ // SchoolsIDs undocumented
+ SchoolsIDs []string `json:"schoolsIds,omitempty"`
+ // SchoolYear undocumented
+ SchoolYear *string `json:"schoolYear,omitempty"`
+ // AllowTeachersInMultipleSchools undocumented
+ AllowTeachersInMultipleSchools *bool `json:"allowTeachersInMultipleSchools,omitempty"`
+ // Customizations undocumented
+ Customizations *EducationSynchronizationCustomizations `json:"customizations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationResourceModel.go
new file mode 100644
index 00000000..de3688bb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationResourceModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EducationResource undocumented
+type EducationResource struct {
+ // Object is the base model of EducationResource
+ Object
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationRootModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationRootModel.go
new file mode 100644
index 00000000..d26d1d5f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationRootModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationRoot undocumented
+type EducationRoot struct {
+ // Entity is the base model of EducationRoot
+ Entity
+ // SynchronizationProfiles undocumented
+ SynchronizationProfiles []EducationSynchronizationProfile `json:"synchronizationProfiles,omitempty"`
+ // Classes undocumented
+ Classes []EducationClass `json:"classes,omitempty"`
+ // Schools undocumented
+ Schools []EducationSchool `json:"schools,omitempty"`
+ // Users undocumented
+ Users []EducationUser `json:"users,omitempty"`
+ // Me undocumented
+ Me *EducationUser `json:"me,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationRootRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationRootRequest.go
new file mode 100644
index 00000000..60f61d21
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationRootRequest.go
@@ -0,0 +1,428 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EducationRootRequestBuilder is request builder for EducationRoot
+type EducationRootRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationRootRequest
+func (b *EducationRootRequestBuilder) Request() *EducationRootRequest {
+ return &EducationRootRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationRootRequest is request for EducationRoot
+type EducationRootRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationRoot
+func (r *EducationRootRequest) Get(ctx context.Context) (resObj *EducationRoot, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationRoot
+func (r *EducationRootRequest) Update(ctx context.Context, reqObj *EducationRoot) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationRoot
+func (r *EducationRootRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Classes returns request builder for EducationClass collection
+func (b *EducationRootRequestBuilder) Classes() *EducationRootClassesCollectionRequestBuilder {
+ bb := &EducationRootClassesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/classes"
+ return bb
+}
+
+// EducationRootClassesCollectionRequestBuilder is request builder for EducationClass collection
+type EducationRootClassesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationClass collection
+func (b *EducationRootClassesCollectionRequestBuilder) Request() *EducationRootClassesCollectionRequest {
+ return &EducationRootClassesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationClass item
+func (b *EducationRootClassesCollectionRequestBuilder) ID(id string) *EducationClassRequestBuilder {
+ bb := &EducationClassRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationRootClassesCollectionRequest is request for EducationClass collection
+type EducationRootClassesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationClass collection
+func (r *EducationRootClassesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationClass, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationClass
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationClass
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationClass collection
+func (r *EducationRootClassesCollectionRequest) Get(ctx context.Context) ([]EducationClass, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationClass collection
+func (r *EducationRootClassesCollectionRequest) Add(ctx context.Context, reqObj *EducationClass) (resObj *EducationClass, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Me is navigation property
+func (b *EducationRootRequestBuilder) Me() *EducationUserRequestBuilder {
+ bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/me"
+ return bb
+}
+
+// Schools returns request builder for EducationSchool collection
+func (b *EducationRootRequestBuilder) Schools() *EducationRootSchoolsCollectionRequestBuilder {
+ bb := &EducationRootSchoolsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schools"
+ return bb
+}
+
+// EducationRootSchoolsCollectionRequestBuilder is request builder for EducationSchool collection
+type EducationRootSchoolsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationSchool collection
+func (b *EducationRootSchoolsCollectionRequestBuilder) Request() *EducationRootSchoolsCollectionRequest {
+ return &EducationRootSchoolsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationSchool item
+func (b *EducationRootSchoolsCollectionRequestBuilder) ID(id string) *EducationSchoolRequestBuilder {
+ bb := &EducationSchoolRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationRootSchoolsCollectionRequest is request for EducationSchool collection
+type EducationRootSchoolsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationSchool collection
+func (r *EducationRootSchoolsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationSchool, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationSchool
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationSchool
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationSchool collection
+func (r *EducationRootSchoolsCollectionRequest) Get(ctx context.Context) ([]EducationSchool, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationSchool collection
+func (r *EducationRootSchoolsCollectionRequest) Add(ctx context.Context, reqObj *EducationSchool) (resObj *EducationSchool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SynchronizationProfiles returns request builder for EducationSynchronizationProfile collection
+func (b *EducationRootRequestBuilder) SynchronizationProfiles() *EducationRootSynchronizationProfilesCollectionRequestBuilder {
+ bb := &EducationRootSynchronizationProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/synchronizationProfiles"
+ return bb
+}
+
+// EducationRootSynchronizationProfilesCollectionRequestBuilder is request builder for EducationSynchronizationProfile collection
+type EducationRootSynchronizationProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationSynchronizationProfile collection
+func (b *EducationRootSynchronizationProfilesCollectionRequestBuilder) Request() *EducationRootSynchronizationProfilesCollectionRequest {
+ return &EducationRootSynchronizationProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationSynchronizationProfile item
+func (b *EducationRootSynchronizationProfilesCollectionRequestBuilder) ID(id string) *EducationSynchronizationProfileRequestBuilder {
+ bb := &EducationSynchronizationProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationRootSynchronizationProfilesCollectionRequest is request for EducationSynchronizationProfile collection
+type EducationRootSynchronizationProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationSynchronizationProfile collection
+func (r *EducationRootSynchronizationProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationSynchronizationProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationSynchronizationProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationSynchronizationProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationSynchronizationProfile collection
+func (r *EducationRootSynchronizationProfilesCollectionRequest) Get(ctx context.Context) ([]EducationSynchronizationProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationSynchronizationProfile collection
+func (r *EducationRootSynchronizationProfilesCollectionRequest) Add(ctx context.Context, reqObj *EducationSynchronizationProfile) (resObj *EducationSynchronizationProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Users returns request builder for EducationUser collection
+func (b *EducationRootRequestBuilder) Users() *EducationRootUsersCollectionRequestBuilder {
+ bb := &EducationRootUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/users"
+ return bb
+}
+
+// EducationRootUsersCollectionRequestBuilder is request builder for EducationUser collection
+type EducationRootUsersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationUser collection
+func (b *EducationRootUsersCollectionRequestBuilder) Request() *EducationRootUsersCollectionRequest {
+ return &EducationRootUsersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationUser item
+func (b *EducationRootUsersCollectionRequestBuilder) ID(id string) *EducationUserRequestBuilder {
+ bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationRootUsersCollectionRequest is request for EducationUser collection
+type EducationRootUsersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationUser collection
+func (r *EducationRootUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationUser, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationUser
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationUser
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationUser collection
+func (r *EducationRootUsersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationUser collection
+func (r *EducationRootUsersCollectionRequest) Add(ctx context.Context, reqObj *EducationUser) (resObj *EducationUser, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationRubricModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationRubricModel.go
new file mode 100644
index 00000000..babf4c4b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationRubricModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EducationRubric undocumented
+type EducationRubric struct {
+ // Entity is the base model of EducationRubric
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *EducationItemBody `json:"description,omitempty"`
+ // Qualities undocumented
+ Qualities []RubricQuality `json:"qualities,omitempty"`
+ // Levels undocumented
+ Levels []RubricLevel `json:"levels,omitempty"`
+ // Grading undocumented
+ Grading *EducationAssignmentGradeType `json:"grading,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationRubricOutcomeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationRubricOutcomeModel.go
new file mode 100644
index 00000000..d7c55bdc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationRubricOutcomeModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationRubricOutcome undocumented
+type EducationRubricOutcome struct {
+ // EducationOutcome is the base model of EducationRubricOutcome
+ EducationOutcome
+ // RubricQualityFeedback undocumented
+ RubricQualityFeedback []RubricQualityFeedbackModel `json:"rubricQualityFeedback,omitempty"`
+ // RubricQualitySelectedLevels undocumented
+ RubricQualitySelectedLevels []RubricQualitySelectedColumnModel `json:"rubricQualitySelectedLevels,omitempty"`
+ // PublishedRubricQualityFeedback undocumented
+ PublishedRubricQualityFeedback []RubricQualityFeedbackModel `json:"publishedRubricQualityFeedback,omitempty"`
+ // PublishedRubricQualitySelectedLevels undocumented
+ PublishedRubricQualitySelectedLevels []RubricQualitySelectedColumnModel `json:"publishedRubricQualitySelectedLevels,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationRubricRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationRubricRequest.go
new file mode 100644
index 00000000..9ad4028f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationRubricRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EducationRubricRequestBuilder is request builder for EducationRubric
+type EducationRubricRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationRubricRequest
+func (b *EducationRubricRequestBuilder) Request() *EducationRubricRequest {
+ return &EducationRubricRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationRubricRequest is request for EducationRubric
+type EducationRubricRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationRubric
+func (r *EducationRubricRequest) Get(ctx context.Context) (resObj *EducationRubric, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationRubric
+func (r *EducationRubricRequest) Update(ctx context.Context, reqObj *EducationRubric) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationRubric
+func (r *EducationRubricRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSchoolModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSchoolModel.go
new file mode 100644
index 00000000..3659b707
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSchoolModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSchool undocumented
+type EducationSchool struct {
+ // EducationOrganization is the base model of EducationSchool
+ EducationOrganization
+ // PrincipalEmail undocumented
+ PrincipalEmail *string `json:"principalEmail,omitempty"`
+ // PrincipalName undocumented
+ PrincipalName *string `json:"principalName,omitempty"`
+ // ExternalPrincipalID undocumented
+ ExternalPrincipalID *string `json:"externalPrincipalId,omitempty"`
+ // LowestGrade undocumented
+ LowestGrade *string `json:"lowestGrade,omitempty"`
+ // HighestGrade undocumented
+ HighestGrade *string `json:"highestGrade,omitempty"`
+ // SchoolNumber undocumented
+ SchoolNumber *string `json:"schoolNumber,omitempty"`
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // Phone undocumented
+ Phone *string `json:"phone,omitempty"`
+ // Fax undocumented
+ Fax *string `json:"fax,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // Address undocumented
+ Address *PhysicalAddress `json:"address,omitempty"`
+ // Classes undocumented
+ Classes []EducationClass `json:"classes,omitempty"`
+ // Users undocumented
+ Users []EducationUser `json:"users,omitempty"`
+ // AdministrativeUnit undocumented
+ AdministrativeUnit *AdministrativeUnit `json:"administrativeUnit,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSchoolRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSchoolRequest.go
new file mode 100644
index 00000000..8798b52d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSchoolRequest.go
@@ -0,0 +1,240 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EducationSchoolRequestBuilder is request builder for EducationSchool
+type EducationSchoolRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationSchoolRequest
+func (b *EducationSchoolRequestBuilder) Request() *EducationSchoolRequest {
+ return &EducationSchoolRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationSchoolRequest is request for EducationSchool
+type EducationSchoolRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationSchool
+func (r *EducationSchoolRequest) Get(ctx context.Context) (resObj *EducationSchool, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationSchool
+func (r *EducationSchoolRequest) Update(ctx context.Context, reqObj *EducationSchool) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationSchool
+func (r *EducationSchoolRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AdministrativeUnit is navigation property
+func (b *EducationSchoolRequestBuilder) AdministrativeUnit() *AdministrativeUnitRequestBuilder {
+ bb := &AdministrativeUnitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/administrativeUnit"
+ return bb
+}
+
+// Classes returns request builder for EducationClass collection
+func (b *EducationSchoolRequestBuilder) Classes() *EducationSchoolClassesCollectionRequestBuilder {
+ bb := &EducationSchoolClassesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/classes"
+ return bb
+}
+
+// EducationSchoolClassesCollectionRequestBuilder is request builder for EducationClass collection
+type EducationSchoolClassesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationClass collection
+func (b *EducationSchoolClassesCollectionRequestBuilder) Request() *EducationSchoolClassesCollectionRequest {
+ return &EducationSchoolClassesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationClass item
+func (b *EducationSchoolClassesCollectionRequestBuilder) ID(id string) *EducationClassRequestBuilder {
+ bb := &EducationClassRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationSchoolClassesCollectionRequest is request for EducationClass collection
+type EducationSchoolClassesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationClass collection
+func (r *EducationSchoolClassesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationClass, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationClass
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationClass
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationClass collection
+func (r *EducationSchoolClassesCollectionRequest) Get(ctx context.Context) ([]EducationClass, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationClass collection
+func (r *EducationSchoolClassesCollectionRequest) Add(ctx context.Context, reqObj *EducationClass) (resObj *EducationClass, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Users returns request builder for EducationUser collection
+func (b *EducationSchoolRequestBuilder) Users() *EducationSchoolUsersCollectionRequestBuilder {
+ bb := &EducationSchoolUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/users"
+ return bb
+}
+
+// EducationSchoolUsersCollectionRequestBuilder is request builder for EducationUser collection
+type EducationSchoolUsersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationUser collection
+func (b *EducationSchoolUsersCollectionRequestBuilder) Request() *EducationSchoolUsersCollectionRequest {
+ return &EducationSchoolUsersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationUser item
+func (b *EducationSchoolUsersCollectionRequestBuilder) ID(id string) *EducationUserRequestBuilder {
+ bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationSchoolUsersCollectionRequest is request for EducationUser collection
+type EducationSchoolUsersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationUser collection
+func (r *EducationSchoolUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationUser, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationUser
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationUser
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationUser collection
+func (r *EducationSchoolUsersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationUser collection
+func (r *EducationSchoolUsersCollectionRequest) Add(ctx context.Context, reqObj *EducationUser) (resObj *EducationUser, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationStudentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationStudentModel.go
new file mode 100644
index 00000000..948e048f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationStudentModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EducationStudent undocumented
+type EducationStudent struct {
+ // Object is the base model of EducationStudent
+ Object
+ // GraduationYear undocumented
+ GraduationYear *string `json:"graduationYear,omitempty"`
+ // Grade undocumented
+ Grade *string `json:"grade,omitempty"`
+ // BirthDate undocumented
+ BirthDate *time.Time `json:"birthDate,omitempty"`
+ // Gender undocumented
+ Gender *EducationGender `json:"gender,omitempty"`
+ // StudentNumber undocumented
+ StudentNumber *string `json:"studentNumber,omitempty"`
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionAction.go
new file mode 100644
index 00000000..5ddb69d1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionAction.go
@@ -0,0 +1,98 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EducationSubmissionReturnRequestParameter undocumented
+type EducationSubmissionReturnRequestParameter struct {
+}
+
+// EducationSubmissionSubmitRequestParameter undocumented
+type EducationSubmissionSubmitRequestParameter struct {
+}
+
+// EducationSubmissionUnsubmitRequestParameter undocumented
+type EducationSubmissionUnsubmitRequestParameter struct {
+}
+
+//
+type EducationSubmissionReturnRequestBuilder struct{ BaseRequestBuilder }
+
+// Return action undocumented
+func (b *EducationSubmissionRequestBuilder) Return(reqObj *EducationSubmissionReturnRequestParameter) *EducationSubmissionReturnRequestBuilder {
+ bb := &EducationSubmissionReturnRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/return"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EducationSubmissionReturnRequest struct{ BaseRequest }
+
+//
+func (b *EducationSubmissionReturnRequestBuilder) Request() *EducationSubmissionReturnRequest {
+ return &EducationSubmissionReturnRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EducationSubmissionReturnRequest) Post(ctx context.Context) (resObj *EducationSubmission, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type EducationSubmissionSubmitRequestBuilder struct{ BaseRequestBuilder }
+
+// Submit action undocumented
+func (b *EducationSubmissionRequestBuilder) Submit(reqObj *EducationSubmissionSubmitRequestParameter) *EducationSubmissionSubmitRequestBuilder {
+ bb := &EducationSubmissionSubmitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/submit"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EducationSubmissionSubmitRequest struct{ BaseRequest }
+
+//
+func (b *EducationSubmissionSubmitRequestBuilder) Request() *EducationSubmissionSubmitRequest {
+ return &EducationSubmissionSubmitRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EducationSubmissionSubmitRequest) Post(ctx context.Context) (resObj *EducationSubmission, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type EducationSubmissionUnsubmitRequestBuilder struct{ BaseRequestBuilder }
+
+// Unsubmit action undocumented
+func (b *EducationSubmissionRequestBuilder) Unsubmit(reqObj *EducationSubmissionUnsubmitRequestParameter) *EducationSubmissionUnsubmitRequestBuilder {
+ bb := &EducationSubmissionUnsubmitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unsubmit"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EducationSubmissionUnsubmitRequest struct{ BaseRequest }
+
+//
+func (b *EducationSubmissionUnsubmitRequestBuilder) Request() *EducationSubmissionUnsubmitRequest {
+ return &EducationSubmissionUnsubmitRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EducationSubmissionUnsubmitRequest) Post(ctx context.Context) (resObj *EducationSubmission, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionIndividualRecipientModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionIndividualRecipientModel.go
new file mode 100644
index 00000000..a8b9a8f9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionIndividualRecipientModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSubmissionIndividualRecipient undocumented
+type EducationSubmissionIndividualRecipient struct {
+ // EducationSubmissionRecipient is the base model of EducationSubmissionIndividualRecipient
+ EducationSubmissionRecipient
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionModel.go
new file mode 100644
index 00000000..f02c8e24
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EducationSubmission undocumented
+type EducationSubmission struct {
+ // Entity is the base model of EducationSubmission
+ Entity
+ // Recipient undocumented
+ Recipient *EducationSubmissionRecipient `json:"recipient,omitempty"`
+ // Status undocumented
+ Status *EducationSubmissionStatus `json:"status,omitempty"`
+ // SubmittedBy undocumented
+ SubmittedBy *IdentitySet `json:"submittedBy,omitempty"`
+ // SubmittedDateTime undocumented
+ SubmittedDateTime *time.Time `json:"submittedDateTime,omitempty"`
+ // UnsubmittedBy undocumented
+ UnsubmittedBy *IdentitySet `json:"unsubmittedBy,omitempty"`
+ // UnsubmittedDateTime undocumented
+ UnsubmittedDateTime *time.Time `json:"unsubmittedDateTime,omitempty"`
+ // ReleasedBy undocumented
+ ReleasedBy *IdentitySet `json:"releasedBy,omitempty"`
+ // ReleasedDateTime undocumented
+ ReleasedDateTime *time.Time `json:"releasedDateTime,omitempty"`
+ // ReturnedBy undocumented
+ ReturnedBy *IdentitySet `json:"returnedBy,omitempty"`
+ // ReturnedDateTime undocumented
+ ReturnedDateTime *time.Time `json:"returnedDateTime,omitempty"`
+ // ResourcesFolderURL undocumented
+ ResourcesFolderURL *string `json:"resourcesFolderUrl,omitempty"`
+ // Resources undocumented
+ Resources []EducationSubmissionResource `json:"resources,omitempty"`
+ // SubmittedResources undocumented
+ SubmittedResources []EducationSubmissionResource `json:"submittedResources,omitempty"`
+ // Outcomes undocumented
+ Outcomes []EducationOutcome `json:"outcomes,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionRecipientModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionRecipientModel.go
new file mode 100644
index 00000000..2fb17f27
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionRecipientModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSubmissionRecipient undocumented
+type EducationSubmissionRecipient struct {
+ // Object is the base model of EducationSubmissionRecipient
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionRequest.go
new file mode 100644
index 00000000..fd45aef8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EducationSubmissionRequestBuilder is request builder for EducationSubmission
+type EducationSubmissionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationSubmissionRequest
+func (b *EducationSubmissionRequestBuilder) Request() *EducationSubmissionRequest {
+ return &EducationSubmissionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationSubmissionRequest is request for EducationSubmission
+type EducationSubmissionRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationSubmission
+func (r *EducationSubmissionRequest) Get(ctx context.Context) (resObj *EducationSubmission, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationSubmission
+func (r *EducationSubmissionRequest) Update(ctx context.Context, reqObj *EducationSubmission) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationSubmission
+func (r *EducationSubmissionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Outcomes returns request builder for EducationOutcome collection
+func (b *EducationSubmissionRequestBuilder) Outcomes() *EducationSubmissionOutcomesCollectionRequestBuilder {
+ bb := &EducationSubmissionOutcomesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/outcomes"
+ return bb
+}
+
+// EducationSubmissionOutcomesCollectionRequestBuilder is request builder for EducationOutcome collection
+type EducationSubmissionOutcomesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationOutcome collection
+func (b *EducationSubmissionOutcomesCollectionRequestBuilder) Request() *EducationSubmissionOutcomesCollectionRequest {
+ return &EducationSubmissionOutcomesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationOutcome item
+func (b *EducationSubmissionOutcomesCollectionRequestBuilder) ID(id string) *EducationOutcomeRequestBuilder {
+ bb := &EducationOutcomeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationSubmissionOutcomesCollectionRequest is request for EducationOutcome collection
+type EducationSubmissionOutcomesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationOutcome collection
+func (r *EducationSubmissionOutcomesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationOutcome, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationOutcome
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationOutcome
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationOutcome collection
+func (r *EducationSubmissionOutcomesCollectionRequest) Get(ctx context.Context) ([]EducationOutcome, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationOutcome collection
+func (r *EducationSubmissionOutcomesCollectionRequest) Add(ctx context.Context, reqObj *EducationOutcome) (resObj *EducationOutcome, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Resources returns request builder for EducationSubmissionResource collection
+func (b *EducationSubmissionRequestBuilder) Resources() *EducationSubmissionResourcesCollectionRequestBuilder {
+ bb := &EducationSubmissionResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resources"
+ return bb
+}
+
+// EducationSubmissionResourcesCollectionRequestBuilder is request builder for EducationSubmissionResource collection
+type EducationSubmissionResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationSubmissionResource collection
+func (b *EducationSubmissionResourcesCollectionRequestBuilder) Request() *EducationSubmissionResourcesCollectionRequest {
+ return &EducationSubmissionResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationSubmissionResource item
+func (b *EducationSubmissionResourcesCollectionRequestBuilder) ID(id string) *EducationSubmissionResourceRequestBuilder {
+ bb := &EducationSubmissionResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationSubmissionResourcesCollectionRequest is request for EducationSubmissionResource collection
+type EducationSubmissionResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationSubmissionResource collection
+func (r *EducationSubmissionResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationSubmissionResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationSubmissionResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationSubmissionResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationSubmissionResource collection
+func (r *EducationSubmissionResourcesCollectionRequest) Get(ctx context.Context) ([]EducationSubmissionResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationSubmissionResource collection
+func (r *EducationSubmissionResourcesCollectionRequest) Add(ctx context.Context, reqObj *EducationSubmissionResource) (resObj *EducationSubmissionResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SubmittedResources returns request builder for EducationSubmissionResource collection
+func (b *EducationSubmissionRequestBuilder) SubmittedResources() *EducationSubmissionSubmittedResourcesCollectionRequestBuilder {
+ bb := &EducationSubmissionSubmittedResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/submittedResources"
+ return bb
+}
+
+// EducationSubmissionSubmittedResourcesCollectionRequestBuilder is request builder for EducationSubmissionResource collection
+type EducationSubmissionSubmittedResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationSubmissionResource collection
+func (b *EducationSubmissionSubmittedResourcesCollectionRequestBuilder) Request() *EducationSubmissionSubmittedResourcesCollectionRequest {
+ return &EducationSubmissionSubmittedResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationSubmissionResource item
+func (b *EducationSubmissionSubmittedResourcesCollectionRequestBuilder) ID(id string) *EducationSubmissionResourceRequestBuilder {
+ bb := &EducationSubmissionResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationSubmissionSubmittedResourcesCollectionRequest is request for EducationSubmissionResource collection
+type EducationSubmissionSubmittedResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationSubmissionResource collection
+func (r *EducationSubmissionSubmittedResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationSubmissionResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationSubmissionResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationSubmissionResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationSubmissionResource collection
+func (r *EducationSubmissionSubmittedResourcesCollectionRequest) Get(ctx context.Context) ([]EducationSubmissionResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationSubmissionResource collection
+func (r *EducationSubmissionSubmittedResourcesCollectionRequest) Add(ctx context.Context, reqObj *EducationSubmissionResource) (resObj *EducationSubmissionResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionResourceModel.go
new file mode 100644
index 00000000..6f8abc54
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionResourceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSubmissionResource undocumented
+type EducationSubmissionResource struct {
+ // Entity is the base model of EducationSubmissionResource
+ Entity
+ // Resource undocumented
+ Resource *EducationResource `json:"resource,omitempty"`
+ // AssignmentResourceURL undocumented
+ AssignmentResourceURL *string `json:"assignmentResourceUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionResourceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionResourceRequest.go
new file mode 100644
index 00000000..679f4a53
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionResourceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EducationSubmissionResourceRequestBuilder is request builder for EducationSubmissionResource
+type EducationSubmissionResourceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationSubmissionResourceRequest
+func (b *EducationSubmissionResourceRequestBuilder) Request() *EducationSubmissionResourceRequest {
+ return &EducationSubmissionResourceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationSubmissionResourceRequest is request for EducationSubmissionResource
+type EducationSubmissionResourceRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationSubmissionResource
+func (r *EducationSubmissionResourceRequest) Get(ctx context.Context) (resObj *EducationSubmissionResource, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationSubmissionResource
+func (r *EducationSubmissionResourceRequest) Update(ctx context.Context, reqObj *EducationSubmissionResource) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationSubmissionResource
+func (r *EducationSubmissionResourceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionStatusEnum.go
new file mode 100644
index 00000000..69dc68b5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSubmissionStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSubmissionStatus undocumented
+type EducationSubmissionStatus int
+
+const (
+ // EducationSubmissionStatusVWorking undocumented
+ EducationSubmissionStatusVWorking EducationSubmissionStatus = 0
+ // EducationSubmissionStatusVSubmitted undocumented
+ EducationSubmissionStatusVSubmitted EducationSubmissionStatus = 1
+ // EducationSubmissionStatusVReleased undocumented
+ EducationSubmissionStatusVReleased EducationSubmissionStatus = 2
+ // EducationSubmissionStatusVReturned undocumented
+ EducationSubmissionStatusVReturned EducationSubmissionStatus = 3
+ // EducationSubmissionStatusVUnknownFutureValue undocumented
+ EducationSubmissionStatusVUnknownFutureValue EducationSubmissionStatus = 4
+)
+
+// EducationSubmissionStatusPWorking returns a pointer to EducationSubmissionStatusVWorking
+func EducationSubmissionStatusPWorking() *EducationSubmissionStatus {
+ v := EducationSubmissionStatusVWorking
+ return &v
+}
+
+// EducationSubmissionStatusPSubmitted returns a pointer to EducationSubmissionStatusVSubmitted
+func EducationSubmissionStatusPSubmitted() *EducationSubmissionStatus {
+ v := EducationSubmissionStatusVSubmitted
+ return &v
+}
+
+// EducationSubmissionStatusPReleased returns a pointer to EducationSubmissionStatusVReleased
+func EducationSubmissionStatusPReleased() *EducationSubmissionStatus {
+ v := EducationSubmissionStatusVReleased
+ return &v
+}
+
+// EducationSubmissionStatusPReturned returns a pointer to EducationSubmissionStatusVReturned
+func EducationSubmissionStatusPReturned() *EducationSubmissionStatus {
+ v := EducationSubmissionStatusVReturned
+ return &v
+}
+
+// EducationSubmissionStatusPUnknownFutureValue returns a pointer to EducationSubmissionStatusVUnknownFutureValue
+func EducationSubmissionStatusPUnknownFutureValue() *EducationSubmissionStatus {
+ v := EducationSubmissionStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationConnectionSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationConnectionSettingsModel.go
new file mode 100644
index 00000000..780b3991
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationConnectionSettingsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSynchronizationConnectionSettings undocumented
+type EducationSynchronizationConnectionSettings struct {
+ // Object is the base model of EducationSynchronizationConnectionSettings
+ Object
+ // ClientID undocumented
+ ClientID *string `json:"clientId,omitempty"`
+ // ClientSecret undocumented
+ ClientSecret *string `json:"clientSecret,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationCustomizationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationCustomizationModel.go
new file mode 100644
index 00000000..4c61415c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationCustomizationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EducationSynchronizationCustomization undocumented
+type EducationSynchronizationCustomization struct {
+ // Object is the base model of EducationSynchronizationCustomization
+ Object
+ // OptionalPropertiesToSync undocumented
+ OptionalPropertiesToSync []string `json:"optionalPropertiesToSync,omitempty"`
+ // SynchronizationStartDate undocumented
+ SynchronizationStartDate *time.Time `json:"synchronizationStartDate,omitempty"`
+ // IsSyncDeferred undocumented
+ IsSyncDeferred *bool `json:"isSyncDeferred,omitempty"`
+ // AllowDisplayNameUpdate undocumented
+ AllowDisplayNameUpdate *bool `json:"allowDisplayNameUpdate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationCustomizationsBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationCustomizationsBaseModel.go
new file mode 100644
index 00000000..058e832f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationCustomizationsBaseModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSynchronizationCustomizationsBase undocumented
+type EducationSynchronizationCustomizationsBase struct {
+ // Object is the base model of EducationSynchronizationCustomizationsBase
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationCustomizationsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationCustomizationsModel.go
new file mode 100644
index 00000000..36e6dc13
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationCustomizationsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSynchronizationCustomizations undocumented
+type EducationSynchronizationCustomizations struct {
+ // EducationSynchronizationCustomizationsBase is the base model of EducationSynchronizationCustomizations
+ EducationSynchronizationCustomizationsBase
+ // School undocumented
+ School *EducationSynchronizationCustomization `json:"school,omitempty"`
+ // Section undocumented
+ Section *EducationSynchronizationCustomization `json:"section,omitempty"`
+ // Student undocumented
+ Student *EducationSynchronizationCustomization `json:"student,omitempty"`
+ // Teacher undocumented
+ Teacher *EducationSynchronizationCustomization `json:"teacher,omitempty"`
+ // StudentEnrollment undocumented
+ StudentEnrollment *EducationSynchronizationCustomization `json:"studentEnrollment,omitempty"`
+ // TeacherRoster undocumented
+ TeacherRoster *EducationSynchronizationCustomization `json:"teacherRoster,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationDataProviderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationDataProviderModel.go
new file mode 100644
index 00000000..e3fc548f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationDataProviderModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSynchronizationDataProvider undocumented
+type EducationSynchronizationDataProvider struct {
+ // Object is the base model of EducationSynchronizationDataProvider
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationErrorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationErrorModel.go
new file mode 100644
index 00000000..c9e40e6f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationErrorModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EducationSynchronizationError undocumented
+type EducationSynchronizationError struct {
+ // Entity is the base model of EducationSynchronizationError
+ Entity
+ // EntryType undocumented
+ EntryType *string `json:"entryType,omitempty"`
+ // ErrorCode undocumented
+ ErrorCode *string `json:"errorCode,omitempty"`
+ // ErrorMessage undocumented
+ ErrorMessage *string `json:"errorMessage,omitempty"`
+ // JoiningValue undocumented
+ JoiningValue *string `json:"joiningValue,omitempty"`
+ // RecordedDateTime undocumented
+ RecordedDateTime *time.Time `json:"recordedDateTime,omitempty"`
+ // ReportableIdentifier undocumented
+ ReportableIdentifier *string `json:"reportableIdentifier,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationErrorRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationErrorRequest.go
new file mode 100644
index 00000000..6590bd8d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationErrorRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EducationSynchronizationErrorRequestBuilder is request builder for EducationSynchronizationError
+type EducationSynchronizationErrorRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationSynchronizationErrorRequest
+func (b *EducationSynchronizationErrorRequestBuilder) Request() *EducationSynchronizationErrorRequest {
+ return &EducationSynchronizationErrorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationSynchronizationErrorRequest is request for EducationSynchronizationError
+type EducationSynchronizationErrorRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationSynchronizationError
+func (r *EducationSynchronizationErrorRequest) Get(ctx context.Context) (resObj *EducationSynchronizationError, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationSynchronizationError
+func (r *EducationSynchronizationErrorRequest) Update(ctx context.Context, reqObj *EducationSynchronizationError) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationSynchronizationError
+func (r *EducationSynchronizationErrorRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationLicenseAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationLicenseAssignmentModel.go
new file mode 100644
index 00000000..a1659c6f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationLicenseAssignmentModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSynchronizationLicenseAssignment undocumented
+type EducationSynchronizationLicenseAssignment struct {
+ // Object is the base model of EducationSynchronizationLicenseAssignment
+ Object
+ // AppliesTo undocumented
+ AppliesTo *EducationUserRole `json:"appliesTo,omitempty"`
+ // SKUIDs undocumented
+ SKUIDs []string `json:"skuIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationOAuth1ConnectionSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationOAuth1ConnectionSettingsModel.go
new file mode 100644
index 00000000..a092bbc7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationOAuth1ConnectionSettingsModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSynchronizationOAuth1ConnectionSettings undocumented
+type EducationSynchronizationOAuth1ConnectionSettings struct {
+ // EducationSynchronizationConnectionSettings is the base model of EducationSynchronizationOAuth1ConnectionSettings
+ EducationSynchronizationConnectionSettings
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationOAuth2ClientCredentialsConnectionSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationOAuth2ClientCredentialsConnectionSettingsModel.go
new file mode 100644
index 00000000..c438bc58
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationOAuth2ClientCredentialsConnectionSettingsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSynchronizationOAuth2ClientCredentialsConnectionSettings undocumented
+type EducationSynchronizationOAuth2ClientCredentialsConnectionSettings struct {
+ // EducationSynchronizationConnectionSettings is the base model of EducationSynchronizationOAuth2ClientCredentialsConnectionSettings
+ EducationSynchronizationConnectionSettings
+ // TokenURL undocumented
+ TokenURL *string `json:"tokenUrl,omitempty"`
+ // Scope undocumented
+ Scope *string `json:"scope,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileAction.go
new file mode 100644
index 00000000..728d73db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileAction.go
@@ -0,0 +1,188 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EducationSynchronizationProfileResumeRequestParameter undocumented
+type EducationSynchronizationProfileResumeRequestParameter struct {
+}
+
+// EducationSynchronizationProfilePauseRequestParameter undocumented
+type EducationSynchronizationProfilePauseRequestParameter struct {
+}
+
+// EducationSynchronizationProfileResetRequestParameter undocumented
+type EducationSynchronizationProfileResetRequestParameter struct {
+}
+
+// EducationSynchronizationProfileStartRequestParameter undocumented
+type EducationSynchronizationProfileStartRequestParameter struct {
+}
+
+//
+type EducationSynchronizationProfileResumeRequestBuilder struct{ BaseRequestBuilder }
+
+// Resume action undocumented
+func (b *EducationSynchronizationProfileRequestBuilder) Resume(reqObj *EducationSynchronizationProfileResumeRequestParameter) *EducationSynchronizationProfileResumeRequestBuilder {
+ bb := &EducationSynchronizationProfileResumeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/resume"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EducationSynchronizationProfileResumeRequest struct{ BaseRequest }
+
+//
+func (b *EducationSynchronizationProfileResumeRequestBuilder) Request() *EducationSynchronizationProfileResumeRequest {
+ return &EducationSynchronizationProfileResumeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EducationSynchronizationProfileResumeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EducationSynchronizationProfilePauseRequestBuilder struct{ BaseRequestBuilder }
+
+// Pause action undocumented
+func (b *EducationSynchronizationProfileRequestBuilder) Pause(reqObj *EducationSynchronizationProfilePauseRequestParameter) *EducationSynchronizationProfilePauseRequestBuilder {
+ bb := &EducationSynchronizationProfilePauseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/pause"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EducationSynchronizationProfilePauseRequest struct{ BaseRequest }
+
+//
+func (b *EducationSynchronizationProfilePauseRequestBuilder) Request() *EducationSynchronizationProfilePauseRequest {
+ return &EducationSynchronizationProfilePauseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EducationSynchronizationProfilePauseRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EducationSynchronizationProfileResetRequestBuilder struct{ BaseRequestBuilder }
+
+// Reset action undocumented
+func (b *EducationSynchronizationProfileRequestBuilder) Reset(reqObj *EducationSynchronizationProfileResetRequestParameter) *EducationSynchronizationProfileResetRequestBuilder {
+ bb := &EducationSynchronizationProfileResetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/reset"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EducationSynchronizationProfileResetRequest struct{ BaseRequest }
+
+//
+func (b *EducationSynchronizationProfileResetRequestBuilder) Request() *EducationSynchronizationProfileResetRequest {
+ return &EducationSynchronizationProfileResetRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EducationSynchronizationProfileResetRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EducationSynchronizationProfileStartRequestBuilder struct{ BaseRequestBuilder }
+
+// Start action undocumented
+func (b *EducationSynchronizationProfileRequestBuilder) Start(reqObj *EducationSynchronizationProfileStartRequestParameter) *EducationSynchronizationProfileStartRequestBuilder {
+ bb := &EducationSynchronizationProfileStartRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/start"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EducationSynchronizationProfileStartRequest struct{ BaseRequest }
+
+//
+func (b *EducationSynchronizationProfileStartRequestBuilder) Request() *EducationSynchronizationProfileStartRequest {
+ return &EducationSynchronizationProfileStartRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EducationSynchronizationProfileStartRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]EducationFileSynchronizationVerificationMessage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]EducationFileSynchronizationVerificationMessage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]EducationFileSynchronizationVerificationMessage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *EducationSynchronizationProfileStartRequest) Get(ctx context.Context) ([][]EducationFileSynchronizationVerificationMessage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileModel.go
new file mode 100644
index 00000000..7a0b9d79
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSynchronizationProfile undocumented
+type EducationSynchronizationProfile struct {
+ // Entity is the base model of EducationSynchronizationProfile
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // DataProvider undocumented
+ DataProvider *EducationSynchronizationDataProvider `json:"dataProvider,omitempty"`
+ // IdentitySynchronizationConfiguration undocumented
+ IdentitySynchronizationConfiguration *EducationIdentitySynchronizationConfiguration `json:"identitySynchronizationConfiguration,omitempty"`
+ // LicensesToAssign undocumented
+ LicensesToAssign []EducationSynchronizationLicenseAssignment `json:"licensesToAssign,omitempty"`
+ // State undocumented
+ State *EducationSynchronizationProfileState `json:"state,omitempty"`
+ // HandleSpecialCharacterConstraint undocumented
+ HandleSpecialCharacterConstraint *bool `json:"handleSpecialCharacterConstraint,omitempty"`
+ // Errors undocumented
+ Errors []EducationSynchronizationError `json:"errors,omitempty"`
+ // ProfileStatus undocumented
+ ProfileStatus *EducationSynchronizationProfileStatus `json:"profileStatus,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileRequest.go
new file mode 100644
index 00000000..5e7d47a4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileRequest.go
@@ -0,0 +1,146 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EducationSynchronizationProfileRequestBuilder is request builder for EducationSynchronizationProfile
+type EducationSynchronizationProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationSynchronizationProfileRequest
+func (b *EducationSynchronizationProfileRequestBuilder) Request() *EducationSynchronizationProfileRequest {
+ return &EducationSynchronizationProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationSynchronizationProfileRequest is request for EducationSynchronizationProfile
+type EducationSynchronizationProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationSynchronizationProfile
+func (r *EducationSynchronizationProfileRequest) Get(ctx context.Context) (resObj *EducationSynchronizationProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationSynchronizationProfile
+func (r *EducationSynchronizationProfileRequest) Update(ctx context.Context, reqObj *EducationSynchronizationProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationSynchronizationProfile
+func (r *EducationSynchronizationProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Errors returns request builder for EducationSynchronizationError collection
+func (b *EducationSynchronizationProfileRequestBuilder) Errors() *EducationSynchronizationProfileErrorsCollectionRequestBuilder {
+ bb := &EducationSynchronizationProfileErrorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/errors"
+ return bb
+}
+
+// EducationSynchronizationProfileErrorsCollectionRequestBuilder is request builder for EducationSynchronizationError collection
+type EducationSynchronizationProfileErrorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationSynchronizationError collection
+func (b *EducationSynchronizationProfileErrorsCollectionRequestBuilder) Request() *EducationSynchronizationProfileErrorsCollectionRequest {
+ return &EducationSynchronizationProfileErrorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationSynchronizationError item
+func (b *EducationSynchronizationProfileErrorsCollectionRequestBuilder) ID(id string) *EducationSynchronizationErrorRequestBuilder {
+ bb := &EducationSynchronizationErrorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationSynchronizationProfileErrorsCollectionRequest is request for EducationSynchronizationError collection
+type EducationSynchronizationProfileErrorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationSynchronizationError collection
+func (r *EducationSynchronizationProfileErrorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationSynchronizationError, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationSynchronizationError
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationSynchronizationError
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationSynchronizationError collection
+func (r *EducationSynchronizationProfileErrorsCollectionRequest) Get(ctx context.Context) ([]EducationSynchronizationError, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationSynchronizationError collection
+func (r *EducationSynchronizationProfileErrorsCollectionRequest) Add(ctx context.Context, reqObj *EducationSynchronizationError) (resObj *EducationSynchronizationError, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ProfileStatus is navigation property
+func (b *EducationSynchronizationProfileRequestBuilder) ProfileStatus() *EducationSynchronizationProfileStatusRequestBuilder {
+ bb := &EducationSynchronizationProfileStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/profileStatus"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileStateEnum.go
new file mode 100644
index 00000000..d0d934f1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileStateEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSynchronizationProfileState undocumented
+type EducationSynchronizationProfileState int
+
+const (
+ // EducationSynchronizationProfileStateVDeleting undocumented
+ EducationSynchronizationProfileStateVDeleting EducationSynchronizationProfileState = 2
+ // EducationSynchronizationProfileStateVDeletionFailed undocumented
+ EducationSynchronizationProfileStateVDeletionFailed EducationSynchronizationProfileState = 3
+ // EducationSynchronizationProfileStateVProvisioningFailed undocumented
+ EducationSynchronizationProfileStateVProvisioningFailed EducationSynchronizationProfileState = 5
+ // EducationSynchronizationProfileStateVProvisioned undocumented
+ EducationSynchronizationProfileStateVProvisioned EducationSynchronizationProfileState = 6
+ // EducationSynchronizationProfileStateVProvisioning undocumented
+ EducationSynchronizationProfileStateVProvisioning EducationSynchronizationProfileState = 7
+ // EducationSynchronizationProfileStateVUnknownFutureValue undocumented
+ EducationSynchronizationProfileStateVUnknownFutureValue EducationSynchronizationProfileState = 8
+)
+
+// EducationSynchronizationProfileStatePDeleting returns a pointer to EducationSynchronizationProfileStateVDeleting
+func EducationSynchronizationProfileStatePDeleting() *EducationSynchronizationProfileState {
+ v := EducationSynchronizationProfileStateVDeleting
+ return &v
+}
+
+// EducationSynchronizationProfileStatePDeletionFailed returns a pointer to EducationSynchronizationProfileStateVDeletionFailed
+func EducationSynchronizationProfileStatePDeletionFailed() *EducationSynchronizationProfileState {
+ v := EducationSynchronizationProfileStateVDeletionFailed
+ return &v
+}
+
+// EducationSynchronizationProfileStatePProvisioningFailed returns a pointer to EducationSynchronizationProfileStateVProvisioningFailed
+func EducationSynchronizationProfileStatePProvisioningFailed() *EducationSynchronizationProfileState {
+ v := EducationSynchronizationProfileStateVProvisioningFailed
+ return &v
+}
+
+// EducationSynchronizationProfileStatePProvisioned returns a pointer to EducationSynchronizationProfileStateVProvisioned
+func EducationSynchronizationProfileStatePProvisioned() *EducationSynchronizationProfileState {
+ v := EducationSynchronizationProfileStateVProvisioned
+ return &v
+}
+
+// EducationSynchronizationProfileStatePProvisioning returns a pointer to EducationSynchronizationProfileStateVProvisioning
+func EducationSynchronizationProfileStatePProvisioning() *EducationSynchronizationProfileState {
+ v := EducationSynchronizationProfileStateVProvisioning
+ return &v
+}
+
+// EducationSynchronizationProfileStatePUnknownFutureValue returns a pointer to EducationSynchronizationProfileStateVUnknownFutureValue
+func EducationSynchronizationProfileStatePUnknownFutureValue() *EducationSynchronizationProfileState {
+ v := EducationSynchronizationProfileStateVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileStatusModel.go
new file mode 100644
index 00000000..3b94b97b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileStatusModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EducationSynchronizationProfileStatus undocumented
+type EducationSynchronizationProfileStatus struct {
+ // Entity is the base model of EducationSynchronizationProfileStatus
+ Entity
+ // Status undocumented
+ Status *EducationSynchronizationStatus `json:"status,omitempty"`
+ // LastSynchronizationDateTime undocumented
+ LastSynchronizationDateTime *time.Time `json:"lastSynchronizationDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileStatusRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileStatusRequest.go
new file mode 100644
index 00000000..f2334409
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationProfileStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EducationSynchronizationProfileStatusRequestBuilder is request builder for EducationSynchronizationProfileStatus
+type EducationSynchronizationProfileStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationSynchronizationProfileStatusRequest
+func (b *EducationSynchronizationProfileStatusRequestBuilder) Request() *EducationSynchronizationProfileStatusRequest {
+ return &EducationSynchronizationProfileStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationSynchronizationProfileStatusRequest is request for EducationSynchronizationProfileStatus
+type EducationSynchronizationProfileStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationSynchronizationProfileStatus
+func (r *EducationSynchronizationProfileStatusRequest) Get(ctx context.Context) (resObj *EducationSynchronizationProfileStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationSynchronizationProfileStatus
+func (r *EducationSynchronizationProfileStatusRequest) Update(ctx context.Context, reqObj *EducationSynchronizationProfileStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationSynchronizationProfileStatus
+func (r *EducationSynchronizationProfileStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationStatusEnum.go
new file mode 100644
index 00000000..48b3f884
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationSynchronizationStatusEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationSynchronizationStatus undocumented
+type EducationSynchronizationStatus int
+
+const (
+ // EducationSynchronizationStatusVPaused undocumented
+ EducationSynchronizationStatusVPaused EducationSynchronizationStatus = 0
+ // EducationSynchronizationStatusVInProgress undocumented
+ EducationSynchronizationStatusVInProgress EducationSynchronizationStatus = 1
+ // EducationSynchronizationStatusVSuccess undocumented
+ EducationSynchronizationStatusVSuccess EducationSynchronizationStatus = 2
+ // EducationSynchronizationStatusVError undocumented
+ EducationSynchronizationStatusVError EducationSynchronizationStatus = 3
+ // EducationSynchronizationStatusVValidationError undocumented
+ EducationSynchronizationStatusVValidationError EducationSynchronizationStatus = 4
+ // EducationSynchronizationStatusVQuarantined undocumented
+ EducationSynchronizationStatusVQuarantined EducationSynchronizationStatus = 5
+ // EducationSynchronizationStatusVUnknownFutureValue undocumented
+ EducationSynchronizationStatusVUnknownFutureValue EducationSynchronizationStatus = 6
+)
+
+// EducationSynchronizationStatusPPaused returns a pointer to EducationSynchronizationStatusVPaused
+func EducationSynchronizationStatusPPaused() *EducationSynchronizationStatus {
+ v := EducationSynchronizationStatusVPaused
+ return &v
+}
+
+// EducationSynchronizationStatusPInProgress returns a pointer to EducationSynchronizationStatusVInProgress
+func EducationSynchronizationStatusPInProgress() *EducationSynchronizationStatus {
+ v := EducationSynchronizationStatusVInProgress
+ return &v
+}
+
+// EducationSynchronizationStatusPSuccess returns a pointer to EducationSynchronizationStatusVSuccess
+func EducationSynchronizationStatusPSuccess() *EducationSynchronizationStatus {
+ v := EducationSynchronizationStatusVSuccess
+ return &v
+}
+
+// EducationSynchronizationStatusPError returns a pointer to EducationSynchronizationStatusVError
+func EducationSynchronizationStatusPError() *EducationSynchronizationStatus {
+ v := EducationSynchronizationStatusVError
+ return &v
+}
+
+// EducationSynchronizationStatusPValidationError returns a pointer to EducationSynchronizationStatusVValidationError
+func EducationSynchronizationStatusPValidationError() *EducationSynchronizationStatus {
+ v := EducationSynchronizationStatusVValidationError
+ return &v
+}
+
+// EducationSynchronizationStatusPQuarantined returns a pointer to EducationSynchronizationStatusVQuarantined
+func EducationSynchronizationStatusPQuarantined() *EducationSynchronizationStatus {
+ v := EducationSynchronizationStatusVQuarantined
+ return &v
+}
+
+// EducationSynchronizationStatusPUnknownFutureValue returns a pointer to EducationSynchronizationStatusVUnknownFutureValue
+func EducationSynchronizationStatusPUnknownFutureValue() *EducationSynchronizationStatus {
+ v := EducationSynchronizationStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationTeacherModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationTeacherModel.go
new file mode 100644
index 00000000..6550174e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationTeacherModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationTeacher undocumented
+type EducationTeacher struct {
+ // Object is the base model of EducationTeacher
+ Object
+ // TeacherNumber undocumented
+ TeacherNumber *string `json:"teacherNumber,omitempty"`
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationTermModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationTermModel.go
new file mode 100644
index 00000000..f20cc8f3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationTermModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EducationTerm undocumented
+type EducationTerm struct {
+ // Object is the base model of EducationTerm
+ Object
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // StartDate undocumented
+ StartDate *time.Time `json:"startDate,omitempty"`
+ // EndDate undocumented
+ EndDate *time.Time `json:"endDate,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationUserModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationUserModel.go
new file mode 100644
index 00000000..3861876e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationUserModel.go
@@ -0,0 +1,85 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EducationUser undocumented
+type EducationUser struct {
+ // Entity is the base model of EducationUser
+ Entity
+ // RelatedContacts undocumented
+ RelatedContacts []RelatedContact `json:"relatedContacts,omitempty"`
+ // PrimaryRole undocumented
+ PrimaryRole *EducationUserRole `json:"primaryRole,omitempty"`
+ // MiddleName undocumented
+ MiddleName *string `json:"middleName,omitempty"`
+ // ExternalSource undocumented
+ ExternalSource *EducationExternalSource `json:"externalSource,omitempty"`
+ // ResidenceAddress undocumented
+ ResidenceAddress *PhysicalAddress `json:"residenceAddress,omitempty"`
+ // MailingAddress undocumented
+ MailingAddress *PhysicalAddress `json:"mailingAddress,omitempty"`
+ // Student undocumented
+ Student *EducationStudent `json:"student,omitempty"`
+ // Teacher undocumented
+ Teacher *EducationTeacher `json:"teacher,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // AccountEnabled undocumented
+ AccountEnabled *bool `json:"accountEnabled,omitempty"`
+ // AssignedLicenses undocumented
+ AssignedLicenses []AssignedLicense `json:"assignedLicenses,omitempty"`
+ // AssignedPlans undocumented
+ AssignedPlans []AssignedPlan `json:"assignedPlans,omitempty"`
+ // BusinessPhones undocumented
+ BusinessPhones []string `json:"businessPhones,omitempty"`
+ // Department undocumented
+ Department *string `json:"department,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // GivenName undocumented
+ GivenName *string `json:"givenName,omitempty"`
+ // Mail undocumented
+ Mail *string `json:"mail,omitempty"`
+ // MailNickname undocumented
+ MailNickname *string `json:"mailNickname,omitempty"`
+ // MobilePhone undocumented
+ MobilePhone *string `json:"mobilePhone,omitempty"`
+ // PasswordPolicies undocumented
+ PasswordPolicies *string `json:"passwordPolicies,omitempty"`
+ // PasswordProfile undocumented
+ PasswordProfile *PasswordProfile `json:"passwordProfile,omitempty"`
+ // OfficeLocation undocumented
+ OfficeLocation *string `json:"officeLocation,omitempty"`
+ // PreferredLanguage undocumented
+ PreferredLanguage *string `json:"preferredLanguage,omitempty"`
+ // ProvisionedPlans undocumented
+ ProvisionedPlans []ProvisionedPlan `json:"provisionedPlans,omitempty"`
+ // RefreshTokensValidFromDateTime undocumented
+ RefreshTokensValidFromDateTime *time.Time `json:"refreshTokensValidFromDateTime,omitempty"`
+ // ShowInAddressList undocumented
+ ShowInAddressList *bool `json:"showInAddressList,omitempty"`
+ // Surname undocumented
+ Surname *string `json:"surname,omitempty"`
+ // UsageLocation undocumented
+ UsageLocation *string `json:"usageLocation,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // UserType undocumented
+ UserType *string `json:"userType,omitempty"`
+ // OnPremisesInfo undocumented
+ OnPremisesInfo *EducationOnPremisesInfo `json:"onPremisesInfo,omitempty"`
+ // Assignments undocumented
+ Assignments []EducationAssignment `json:"assignments,omitempty"`
+ // Rubrics undocumented
+ Rubrics []EducationRubric `json:"rubrics,omitempty"`
+ // Classes undocumented
+ Classes []EducationClass `json:"classes,omitempty"`
+ // TaughtClasses undocumented
+ TaughtClasses []EducationClass `json:"taughtClasses,omitempty"`
+ // Schools undocumented
+ Schools []EducationSchool `json:"schools,omitempty"`
+ // User undocumented
+ User *User `json:"user,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationUserRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationUserRequest.go
new file mode 100644
index 00000000..5ca48d2e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationUserRequest.go
@@ -0,0 +1,522 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EducationUserRequestBuilder is request builder for EducationUser
+type EducationUserRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationUserRequest
+func (b *EducationUserRequestBuilder) Request() *EducationUserRequest {
+ return &EducationUserRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationUserRequest is request for EducationUser
+type EducationUserRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationUser
+func (r *EducationUserRequest) Get(ctx context.Context) (resObj *EducationUser, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationUser
+func (r *EducationUserRequest) Update(ctx context.Context, reqObj *EducationUser) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationUser
+func (r *EducationUserRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for EducationAssignment collection
+func (b *EducationUserRequestBuilder) Assignments() *EducationUserAssignmentsCollectionRequestBuilder {
+ bb := &EducationUserAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// EducationUserAssignmentsCollectionRequestBuilder is request builder for EducationAssignment collection
+type EducationUserAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationAssignment collection
+func (b *EducationUserAssignmentsCollectionRequestBuilder) Request() *EducationUserAssignmentsCollectionRequest {
+ return &EducationUserAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationAssignment item
+func (b *EducationUserAssignmentsCollectionRequestBuilder) ID(id string) *EducationAssignmentRequestBuilder {
+ bb := &EducationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationUserAssignmentsCollectionRequest is request for EducationAssignment collection
+type EducationUserAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationAssignment collection
+func (r *EducationUserAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationAssignment collection
+func (r *EducationUserAssignmentsCollectionRequest) Get(ctx context.Context) ([]EducationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationAssignment collection
+func (r *EducationUserAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *EducationAssignment) (resObj *EducationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Classes returns request builder for EducationClass collection
+func (b *EducationUserRequestBuilder) Classes() *EducationUserClassesCollectionRequestBuilder {
+ bb := &EducationUserClassesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/classes"
+ return bb
+}
+
+// EducationUserClassesCollectionRequestBuilder is request builder for EducationClass collection
+type EducationUserClassesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationClass collection
+func (b *EducationUserClassesCollectionRequestBuilder) Request() *EducationUserClassesCollectionRequest {
+ return &EducationUserClassesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationClass item
+func (b *EducationUserClassesCollectionRequestBuilder) ID(id string) *EducationClassRequestBuilder {
+ bb := &EducationClassRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationUserClassesCollectionRequest is request for EducationClass collection
+type EducationUserClassesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationClass collection
+func (r *EducationUserClassesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationClass, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationClass
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationClass
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationClass collection
+func (r *EducationUserClassesCollectionRequest) Get(ctx context.Context) ([]EducationClass, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationClass collection
+func (r *EducationUserClassesCollectionRequest) Add(ctx context.Context, reqObj *EducationClass) (resObj *EducationClass, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Rubrics returns request builder for EducationRubric collection
+func (b *EducationUserRequestBuilder) Rubrics() *EducationUserRubricsCollectionRequestBuilder {
+ bb := &EducationUserRubricsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rubrics"
+ return bb
+}
+
+// EducationUserRubricsCollectionRequestBuilder is request builder for EducationRubric collection
+type EducationUserRubricsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationRubric collection
+func (b *EducationUserRubricsCollectionRequestBuilder) Request() *EducationUserRubricsCollectionRequest {
+ return &EducationUserRubricsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationRubric item
+func (b *EducationUserRubricsCollectionRequestBuilder) ID(id string) *EducationRubricRequestBuilder {
+ bb := &EducationRubricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationUserRubricsCollectionRequest is request for EducationRubric collection
+type EducationUserRubricsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationRubric collection
+func (r *EducationUserRubricsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationRubric, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationRubric
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationRubric
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationRubric collection
+func (r *EducationUserRubricsCollectionRequest) Get(ctx context.Context) ([]EducationRubric, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationRubric collection
+func (r *EducationUserRubricsCollectionRequest) Add(ctx context.Context, reqObj *EducationRubric) (resObj *EducationRubric, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Schools returns request builder for EducationSchool collection
+func (b *EducationUserRequestBuilder) Schools() *EducationUserSchoolsCollectionRequestBuilder {
+ bb := &EducationUserSchoolsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schools"
+ return bb
+}
+
+// EducationUserSchoolsCollectionRequestBuilder is request builder for EducationSchool collection
+type EducationUserSchoolsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationSchool collection
+func (b *EducationUserSchoolsCollectionRequestBuilder) Request() *EducationUserSchoolsCollectionRequest {
+ return &EducationUserSchoolsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationSchool item
+func (b *EducationUserSchoolsCollectionRequestBuilder) ID(id string) *EducationSchoolRequestBuilder {
+ bb := &EducationSchoolRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationUserSchoolsCollectionRequest is request for EducationSchool collection
+type EducationUserSchoolsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationSchool collection
+func (r *EducationUserSchoolsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationSchool, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationSchool
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationSchool
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationSchool collection
+func (r *EducationUserSchoolsCollectionRequest) Get(ctx context.Context) ([]EducationSchool, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationSchool collection
+func (r *EducationUserSchoolsCollectionRequest) Add(ctx context.Context, reqObj *EducationSchool) (resObj *EducationSchool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TaughtClasses returns request builder for EducationClass collection
+func (b *EducationUserRequestBuilder) TaughtClasses() *EducationUserTaughtClassesCollectionRequestBuilder {
+ bb := &EducationUserTaughtClassesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/taughtClasses"
+ return bb
+}
+
+// EducationUserTaughtClassesCollectionRequestBuilder is request builder for EducationClass collection
+type EducationUserTaughtClassesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationClass collection
+func (b *EducationUserTaughtClassesCollectionRequestBuilder) Request() *EducationUserTaughtClassesCollectionRequest {
+ return &EducationUserTaughtClassesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationClass item
+func (b *EducationUserTaughtClassesCollectionRequestBuilder) ID(id string) *EducationClassRequestBuilder {
+ bb := &EducationClassRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationUserTaughtClassesCollectionRequest is request for EducationClass collection
+type EducationUserTaughtClassesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationClass collection
+func (r *EducationUserTaughtClassesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationClass, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationClass
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationClass
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationClass collection
+func (r *EducationUserTaughtClassesCollectionRequest) Get(ctx context.Context) ([]EducationClass, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationClass collection
+func (r *EducationUserTaughtClassesCollectionRequest) Add(ctx context.Context, reqObj *EducationClass) (resObj *EducationClass, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// User is navigation property
+func (b *EducationUserRequestBuilder) User() *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/user"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationUserRoleEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationUserRoleEnum.go
new file mode 100644
index 00000000..e4577d22
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationUserRoleEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationUserRole undocumented
+type EducationUserRole int
+
+const (
+ // EducationUserRoleVStudent undocumented
+ EducationUserRoleVStudent EducationUserRole = 0
+ // EducationUserRoleVTeacher undocumented
+ EducationUserRoleVTeacher EducationUserRole = 1
+ // EducationUserRoleVNone undocumented
+ EducationUserRoleVNone EducationUserRole = 2
+ // EducationUserRoleVUnknownFutureValue undocumented
+ EducationUserRoleVUnknownFutureValue EducationUserRole = 3
+ // EducationUserRoleVFaculty undocumented
+ EducationUserRoleVFaculty EducationUserRole = 4
+)
+
+// EducationUserRolePStudent returns a pointer to EducationUserRoleVStudent
+func EducationUserRolePStudent() *EducationUserRole {
+ v := EducationUserRoleVStudent
+ return &v
+}
+
+// EducationUserRolePTeacher returns a pointer to EducationUserRoleVTeacher
+func EducationUserRolePTeacher() *EducationUserRole {
+ v := EducationUserRoleVTeacher
+ return &v
+}
+
+// EducationUserRolePNone returns a pointer to EducationUserRoleVNone
+func EducationUserRolePNone() *EducationUserRole {
+ v := EducationUserRoleVNone
+ return &v
+}
+
+// EducationUserRolePUnknownFutureValue returns a pointer to EducationUserRoleVUnknownFutureValue
+func EducationUserRolePUnknownFutureValue() *EducationUserRole {
+ v := EducationUserRoleVUnknownFutureValue
+ return &v
+}
+
+// EducationUserRolePFaculty returns a pointer to EducationUserRoleVFaculty
+func EducationUserRolePFaculty() *EducationUserRole {
+ v := EducationUserRoleVFaculty
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationWordResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationWordResourceModel.go
new file mode 100644
index 00000000..c1649254
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationWordResourceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationWordResource undocumented
+type EducationWordResource struct {
+ // EducationResource is the base model of EducationWordResource
+ EducationResource
+ // FileURL undocumented
+ FileURL *string `json:"fileUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationalActivityDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationalActivityDetailModel.go
new file mode 100644
index 00000000..3c5cda2b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationalActivityDetailModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationalActivityDetail undocumented
+type EducationalActivityDetail struct {
+ // Object is the base model of EducationalActivityDetail
+ Object
+ // Abbreviation undocumented
+ Abbreviation *string `json:"abbreviation,omitempty"`
+ // Activities undocumented
+ Activities *string `json:"activities,omitempty"`
+ // Awards undocumented
+ Awards *string `json:"awards,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // FieldsOfStudy undocumented
+ FieldsOfStudy *string `json:"fieldsOfStudy,omitempty"`
+ // Grade undocumented
+ Grade *string `json:"grade,omitempty"`
+ // Notes undocumented
+ Notes *string `json:"notes,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationalActivityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationalActivityModel.go
new file mode 100644
index 00000000..b3e3a7bf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationalActivityModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EducationalActivity undocumented
+type EducationalActivity struct {
+ // ItemFacet is the base model of EducationalActivity
+ ItemFacet
+ // CompletionMonthYear undocumented
+ CompletionMonthYear *time.Time `json:"completionMonthYear,omitempty"`
+ // EndMonthYear undocumented
+ EndMonthYear *time.Time `json:"endMonthYear,omitempty"`
+ // Institution undocumented
+ Institution *InstitutionData `json:"institution,omitempty"`
+ // Program undocumented
+ Program *EducationalActivityDetail `json:"program,omitempty"`
+ // StartMonthYear undocumented
+ StartMonthYear *time.Time `json:"startMonthYear,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EducationalActivityRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EducationalActivityRequest.go
new file mode 100644
index 00000000..d378bfed
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EducationalActivityRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EducationalActivityRequestBuilder is request builder for EducationalActivity
+type EducationalActivityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationalActivityRequest
+func (b *EducationalActivityRequestBuilder) Request() *EducationalActivityRequest {
+ return &EducationalActivityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationalActivityRequest is request for EducationalActivity
+type EducationalActivityRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationalActivity
+func (r *EducationalActivityRequest) Get(ctx context.Context) (resObj *EducationalActivity, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationalActivity
+func (r *EducationalActivityRequest) Update(ctx context.Context, reqObj *EducationalActivity) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationalActivity
+func (r *EducationalActivityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmailActivityStatisticsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmailActivityStatisticsModel.go
new file mode 100644
index 00000000..45ac2345
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmailActivityStatisticsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EmailActivityStatistics undocumented
+type EmailActivityStatistics struct {
+ // ActivityStatistics is the base model of EmailActivityStatistics
+ ActivityStatistics
+ // AfterHours undocumented
+ AfterHours *time.Duration `json:"afterHours,omitempty"`
+ // ReadEmail undocumented
+ ReadEmail *time.Duration `json:"readEmail,omitempty"`
+ // SentEmail undocumented
+ SentEmail *time.Duration `json:"sentEmail,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmailActivitySummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmailActivitySummaryModel.go
new file mode 100644
index 00000000..0b493a26
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmailActivitySummaryModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EmailActivitySummary undocumented
+type EmailActivitySummary struct {
+ // Entity is the base model of EmailActivitySummary
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // Send undocumented
+ Send *int `json:"send,omitempty"`
+ // Receive undocumented
+ Receive *int `json:"receive,omitempty"`
+ // Read undocumented
+ Read *int `json:"read,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmailActivityUserDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmailActivityUserDetailModel.go
new file mode 100644
index 00000000..be31280f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmailActivityUserDetailModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EmailActivityUserDetail undocumented
+type EmailActivityUserDetail struct {
+ // Entity is the base model of EmailActivityUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *time.Time `json:"deletedDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `json:"lastActivityDate,omitempty"`
+ // SendCount undocumented
+ SendCount *int `json:"sendCount,omitempty"`
+ // ReceiveCount undocumented
+ ReceiveCount *int `json:"receiveCount,omitempty"`
+ // ReadCount undocumented
+ ReadCount *int `json:"readCount,omitempty"`
+ // AssignedProducts undocumented
+ AssignedProducts []string `json:"assignedProducts,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmailAddressModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmailAddressModel.go
new file mode 100644
index 00000000..02b2216e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmailAddressModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmailAddress undocumented
+type EmailAddress struct {
+ // Object is the base model of EmailAddress
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Address undocumented
+ Address *string `json:"address,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmailAppUsageAppsUserCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmailAppUsageAppsUserCountsModel.go
new file mode 100644
index 00000000..32e50815
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmailAppUsageAppsUserCountsModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EmailAppUsageAppsUserCounts undocumented
+type EmailAppUsageAppsUserCounts struct {
+ // Entity is the base model of EmailAppUsageAppsUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // MailForMac undocumented
+ MailForMac *int `json:"mailForMac,omitempty"`
+ // OutlookForMac undocumented
+ OutlookForMac *int `json:"outlookForMac,omitempty"`
+ // OutlookForWindows undocumented
+ OutlookForWindows *int `json:"outlookForWindows,omitempty"`
+ // OutlookForMobile undocumented
+ OutlookForMobile *int `json:"outlookForMobile,omitempty"`
+ // OtherForMobile undocumented
+ OtherForMobile *int `json:"otherForMobile,omitempty"`
+ // OutlookForWeb undocumented
+ OutlookForWeb *int `json:"outlookForWeb,omitempty"`
+ // Pop3App undocumented
+ Pop3App *int `json:"pop3App,omitempty"`
+ // Imap4App undocumented
+ Imap4App *int `json:"imap4App,omitempty"`
+ // SMTPApp undocumented
+ SMTPApp *int `json:"smtpApp,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmailAppUsageUserCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmailAppUsageUserCountsModel.go
new file mode 100644
index 00000000..47b550e1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmailAppUsageUserCountsModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EmailAppUsageUserCounts undocumented
+type EmailAppUsageUserCounts struct {
+ // Entity is the base model of EmailAppUsageUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // MailForMac undocumented
+ MailForMac *int `json:"mailForMac,omitempty"`
+ // OutlookForMac undocumented
+ OutlookForMac *int `json:"outlookForMac,omitempty"`
+ // OutlookForWindows undocumented
+ OutlookForWindows *int `json:"outlookForWindows,omitempty"`
+ // OutlookForMobile undocumented
+ OutlookForMobile *int `json:"outlookForMobile,omitempty"`
+ // OtherForMobile undocumented
+ OtherForMobile *int `json:"otherForMobile,omitempty"`
+ // OutlookForWeb undocumented
+ OutlookForWeb *int `json:"outlookForWeb,omitempty"`
+ // Pop3App undocumented
+ Pop3App *int `json:"pop3App,omitempty"`
+ // Imap4App undocumented
+ Imap4App *int `json:"imap4App,omitempty"`
+ // SMTPApp undocumented
+ SMTPApp *int `json:"smtpApp,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmailAppUsageUserDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmailAppUsageUserDetailModel.go
new file mode 100644
index 00000000..5bd36e7b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmailAppUsageUserDetailModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EmailAppUsageUserDetail undocumented
+type EmailAppUsageUserDetail struct {
+ // Entity is the base model of EmailAppUsageUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *time.Time `json:"deletedDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `json:"lastActivityDate,omitempty"`
+ // MailForMac undocumented
+ MailForMac []string `json:"mailForMac,omitempty"`
+ // OutlookForMac undocumented
+ OutlookForMac []string `json:"outlookForMac,omitempty"`
+ // OutlookForWindows undocumented
+ OutlookForWindows []string `json:"outlookForWindows,omitempty"`
+ // OutlookForMobile undocumented
+ OutlookForMobile []string `json:"outlookForMobile,omitempty"`
+ // OtherForMobile undocumented
+ OtherForMobile []string `json:"otherForMobile,omitempty"`
+ // OutlookForWeb undocumented
+ OutlookForWeb []string `json:"outlookForWeb,omitempty"`
+ // Pop3App undocumented
+ Pop3App []string `json:"pop3App,omitempty"`
+ // Imap4App undocumented
+ Imap4App []string `json:"imap4App,omitempty"`
+ // SMTPApp undocumented
+ SMTPApp []string `json:"smtpApp,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmailAppUsageVersionsUserCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmailAppUsageVersionsUserCountsModel.go
new file mode 100644
index 00000000..67e0f4ae
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmailAppUsageVersionsUserCountsModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EmailAppUsageVersionsUserCounts undocumented
+type EmailAppUsageVersionsUserCounts struct {
+ // Entity is the base model of EmailAppUsageVersionsUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // Outlook2016 undocumented
+ Outlook2016 *int `json:"outlook2016,omitempty"`
+ // Outlook2013 undocumented
+ Outlook2013 *int `json:"outlook2013,omitempty"`
+ // Outlook2010 undocumented
+ Outlook2010 *int `json:"outlook2010,omitempty"`
+ // Outlook2007 undocumented
+ Outlook2007 *int `json:"outlook2007,omitempty"`
+ // Undetermined undocumented
+ Undetermined *int `json:"undetermined,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmailCertificateTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmailCertificateTypeEnum.go
new file mode 100644
index 00000000..45d4cdef
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmailCertificateTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmailCertificateType undocumented
+type EmailCertificateType int
+
+const (
+ // EmailCertificateTypeVNone undocumented
+ EmailCertificateTypeVNone EmailCertificateType = 0
+ // EmailCertificateTypeVCertificate undocumented
+ EmailCertificateTypeVCertificate EmailCertificateType = 1
+ // EmailCertificateTypeVDerivedCredential undocumented
+ EmailCertificateTypeVDerivedCredential EmailCertificateType = 2
+)
+
+// EmailCertificateTypePNone returns a pointer to EmailCertificateTypeVNone
+func EmailCertificateTypePNone() *EmailCertificateType {
+ v := EmailCertificateTypeVNone
+ return &v
+}
+
+// EmailCertificateTypePCertificate returns a pointer to EmailCertificateTypeVCertificate
+func EmailCertificateTypePCertificate() *EmailCertificateType {
+ v := EmailCertificateTypeVCertificate
+ return &v
+}
+
+// EmailCertificateTypePDerivedCredential returns a pointer to EmailCertificateTypeVDerivedCredential
+func EmailCertificateTypePDerivedCredential() *EmailCertificateType {
+ v := EmailCertificateTypeVDerivedCredential
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmailFileAssessmentRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmailFileAssessmentRequestObjectModel.go
new file mode 100644
index 00000000..d541c639
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmailFileAssessmentRequestObjectModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmailFileAssessmentRequestObject undocumented
+type EmailFileAssessmentRequestObject struct {
+ // ThreatAssessmentRequestObject is the base model of EmailFileAssessmentRequestObject
+ ThreatAssessmentRequestObject
+ // RecipientEmail undocumented
+ RecipientEmail *string `json:"recipientEmail,omitempty"`
+ // DestinationRoutingReason undocumented
+ DestinationRoutingReason *MailDestinationRoutingReason `json:"destinationRoutingReason,omitempty"`
+ // ContentData undocumented
+ ContentData *string `json:"contentData,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmailRoleEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmailRoleEnum.go
new file mode 100644
index 00000000..47ea57ea
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmailRoleEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmailRole undocumented
+type EmailRole int
+
+const (
+ // EmailRoleVUnknown undocumented
+ EmailRoleVUnknown EmailRole = 0
+ // EmailRoleVSender undocumented
+ EmailRoleVSender EmailRole = 1
+ // EmailRoleVRecipient undocumented
+ EmailRoleVRecipient EmailRole = 2
+ // EmailRoleVUnknownFutureValue undocumented
+ EmailRoleVUnknownFutureValue EmailRole = 127
+)
+
+// EmailRolePUnknown returns a pointer to EmailRoleVUnknown
+func EmailRolePUnknown() *EmailRole {
+ v := EmailRoleVUnknown
+ return &v
+}
+
+// EmailRolePSender returns a pointer to EmailRoleVSender
+func EmailRolePSender() *EmailRole {
+ v := EmailRoleVSender
+ return &v
+}
+
+// EmailRolePRecipient returns a pointer to EmailRoleVRecipient
+func EmailRolePRecipient() *EmailRole {
+ v := EmailRoleVRecipient
+ return &v
+}
+
+// EmailRolePUnknownFutureValue returns a pointer to EmailRoleVUnknownFutureValue
+func EmailRolePUnknownFutureValue() *EmailRole {
+ v := EmailRoleVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmailSyncDurationEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmailSyncDurationEnum.go
new file mode 100644
index 00000000..895d72ba
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmailSyncDurationEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmailSyncDuration undocumented
+type EmailSyncDuration int
+
+const (
+ // EmailSyncDurationVUserDefined undocumented
+ EmailSyncDurationVUserDefined EmailSyncDuration = 0
+ // EmailSyncDurationVOneDay undocumented
+ EmailSyncDurationVOneDay EmailSyncDuration = 1
+ // EmailSyncDurationVThreeDays undocumented
+ EmailSyncDurationVThreeDays EmailSyncDuration = 2
+ // EmailSyncDurationVOneWeek undocumented
+ EmailSyncDurationVOneWeek EmailSyncDuration = 3
+ // EmailSyncDurationVTwoWeeks undocumented
+ EmailSyncDurationVTwoWeeks EmailSyncDuration = 4
+ // EmailSyncDurationVOneMonth undocumented
+ EmailSyncDurationVOneMonth EmailSyncDuration = 5
+ // EmailSyncDurationVUnlimited undocumented
+ EmailSyncDurationVUnlimited EmailSyncDuration = 6
+)
+
+// EmailSyncDurationPUserDefined returns a pointer to EmailSyncDurationVUserDefined
+func EmailSyncDurationPUserDefined() *EmailSyncDuration {
+ v := EmailSyncDurationVUserDefined
+ return &v
+}
+
+// EmailSyncDurationPOneDay returns a pointer to EmailSyncDurationVOneDay
+func EmailSyncDurationPOneDay() *EmailSyncDuration {
+ v := EmailSyncDurationVOneDay
+ return &v
+}
+
+// EmailSyncDurationPThreeDays returns a pointer to EmailSyncDurationVThreeDays
+func EmailSyncDurationPThreeDays() *EmailSyncDuration {
+ v := EmailSyncDurationVThreeDays
+ return &v
+}
+
+// EmailSyncDurationPOneWeek returns a pointer to EmailSyncDurationVOneWeek
+func EmailSyncDurationPOneWeek() *EmailSyncDuration {
+ v := EmailSyncDurationVOneWeek
+ return &v
+}
+
+// EmailSyncDurationPTwoWeeks returns a pointer to EmailSyncDurationVTwoWeeks
+func EmailSyncDurationPTwoWeeks() *EmailSyncDuration {
+ v := EmailSyncDurationVTwoWeeks
+ return &v
+}
+
+// EmailSyncDurationPOneMonth returns a pointer to EmailSyncDurationVOneMonth
+func EmailSyncDurationPOneMonth() *EmailSyncDuration {
+ v := EmailSyncDurationVOneMonth
+ return &v
+}
+
+// EmailSyncDurationPUnlimited returns a pointer to EmailSyncDurationVUnlimited
+func EmailSyncDurationPUnlimited() *EmailSyncDuration {
+ v := EmailSyncDurationVUnlimited
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmailSyncScheduleEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmailSyncScheduleEnum.go
new file mode 100644
index 00000000..22ee3f27
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmailSyncScheduleEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmailSyncSchedule undocumented
+type EmailSyncSchedule int
+
+const (
+ // EmailSyncScheduleVUserDefined undocumented
+ EmailSyncScheduleVUserDefined EmailSyncSchedule = 0
+ // EmailSyncScheduleVAsMessagesArrive undocumented
+ EmailSyncScheduleVAsMessagesArrive EmailSyncSchedule = 1
+ // EmailSyncScheduleVManual undocumented
+ EmailSyncScheduleVManual EmailSyncSchedule = 2
+ // EmailSyncScheduleVFifteenMinutes undocumented
+ EmailSyncScheduleVFifteenMinutes EmailSyncSchedule = 3
+ // EmailSyncScheduleVThirtyMinutes undocumented
+ EmailSyncScheduleVThirtyMinutes EmailSyncSchedule = 4
+ // EmailSyncScheduleVSixtyMinutes undocumented
+ EmailSyncScheduleVSixtyMinutes EmailSyncSchedule = 5
+ // EmailSyncScheduleVBasedOnMyUsage undocumented
+ EmailSyncScheduleVBasedOnMyUsage EmailSyncSchedule = 6
+)
+
+// EmailSyncSchedulePUserDefined returns a pointer to EmailSyncScheduleVUserDefined
+func EmailSyncSchedulePUserDefined() *EmailSyncSchedule {
+ v := EmailSyncScheduleVUserDefined
+ return &v
+}
+
+// EmailSyncSchedulePAsMessagesArrive returns a pointer to EmailSyncScheduleVAsMessagesArrive
+func EmailSyncSchedulePAsMessagesArrive() *EmailSyncSchedule {
+ v := EmailSyncScheduleVAsMessagesArrive
+ return &v
+}
+
+// EmailSyncSchedulePManual returns a pointer to EmailSyncScheduleVManual
+func EmailSyncSchedulePManual() *EmailSyncSchedule {
+ v := EmailSyncScheduleVManual
+ return &v
+}
+
+// EmailSyncSchedulePFifteenMinutes returns a pointer to EmailSyncScheduleVFifteenMinutes
+func EmailSyncSchedulePFifteenMinutes() *EmailSyncSchedule {
+ v := EmailSyncScheduleVFifteenMinutes
+ return &v
+}
+
+// EmailSyncSchedulePThirtyMinutes returns a pointer to EmailSyncScheduleVThirtyMinutes
+func EmailSyncSchedulePThirtyMinutes() *EmailSyncSchedule {
+ v := EmailSyncScheduleVThirtyMinutes
+ return &v
+}
+
+// EmailSyncSchedulePSixtyMinutes returns a pointer to EmailSyncScheduleVSixtyMinutes
+func EmailSyncSchedulePSixtyMinutes() *EmailSyncSchedule {
+ v := EmailSyncScheduleVSixtyMinutes
+ return &v
+}
+
+// EmailSyncSchedulePBasedOnMyUsage returns a pointer to EmailSyncScheduleVBasedOnMyUsage
+func EmailSyncSchedulePBasedOnMyUsage() *EmailSyncSchedule {
+ v := EmailSyncScheduleVBasedOnMyUsage
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmailTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmailTypeEnum.go
new file mode 100644
index 00000000..6788e39b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmailTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmailType undocumented
+type EmailType int
+
+const (
+ // EmailTypeVUnknown undocumented
+ EmailTypeVUnknown EmailType = 0
+ // EmailTypeVWork undocumented
+ EmailTypeVWork EmailType = 1
+ // EmailTypeVPersonal undocumented
+ EmailTypeVPersonal EmailType = 2
+ // EmailTypeVMain undocumented
+ EmailTypeVMain EmailType = 3
+ // EmailTypeVOther undocumented
+ EmailTypeVOther EmailType = 4
+)
+
+// EmailTypePUnknown returns a pointer to EmailTypeVUnknown
+func EmailTypePUnknown() *EmailType {
+ v := EmailTypeVUnknown
+ return &v
+}
+
+// EmailTypePWork returns a pointer to EmailTypeVWork
+func EmailTypePWork() *EmailType {
+ v := EmailTypeVWork
+ return &v
+}
+
+// EmailTypePPersonal returns a pointer to EmailTypeVPersonal
+func EmailTypePPersonal() *EmailType {
+ v := EmailTypeVPersonal
+ return &v
+}
+
+// EmailTypePMain returns a pointer to EmailTypeVMain
+func EmailTypePMain() *EmailType {
+ v := EmailTypeVMain
+ return &v
+}
+
+// EmailTypePOther returns a pointer to EmailTypeVOther
+func EmailTypePOther() *EmailType {
+ v := EmailTypeVOther
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodeModel.go
new file mode 100644
index 00000000..c7b484be
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodeModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmbeddedSIMActivationCode undocumented
+type EmbeddedSIMActivationCode struct {
+ // Object is the base model of EmbeddedSIMActivationCode
+ Object
+ // IntegratedCircuitCardIdentifier The Integrated Circuit Card Identifier (ICCID) for this embedded SIM activation code as provided by the mobile operator.
+ IntegratedCircuitCardIdentifier *string `json:"integratedCircuitCardIdentifier,omitempty"`
+ // MatchingIdentifier The MatchingIdentifier (MatchingID) as specified in the GSMA Association SGP.22 RSP Technical Specification section 4.1.
+ MatchingIdentifier *string `json:"matchingIdentifier,omitempty"`
+ // SmdpPlusServerAddress The fully qualified domain name of the SM-DP+ server as specified in the GSM Association SPG .22 RSP Technical Specification.
+ SmdpPlusServerAddress *string `json:"smdpPlusServerAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodePoolAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodePoolAction.go
new file mode 100644
index 00000000..e28c0d3a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodePoolAction.go
@@ -0,0 +1,100 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EmbeddedSIMActivationCodePoolAssignRequestParameter undocumented
+type EmbeddedSIMActivationCodePoolAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []EmbeddedSIMActivationCodePoolAssignment `json:"assignments,omitempty"`
+}
+
+//
+type EmbeddedSIMActivationCodePoolAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *EmbeddedSIMActivationCodePoolRequestBuilder) Assign(reqObj *EmbeddedSIMActivationCodePoolAssignRequestParameter) *EmbeddedSIMActivationCodePoolAssignRequestBuilder {
+ bb := &EmbeddedSIMActivationCodePoolAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EmbeddedSIMActivationCodePoolAssignRequest struct{ BaseRequest }
+
+//
+func (b *EmbeddedSIMActivationCodePoolAssignRequestBuilder) Request() *EmbeddedSIMActivationCodePoolAssignRequest {
+ return &EmbeddedSIMActivationCodePoolAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EmbeddedSIMActivationCodePoolAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]EmbeddedSIMActivationCodePoolAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]EmbeddedSIMActivationCodePoolAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]EmbeddedSIMActivationCodePoolAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *EmbeddedSIMActivationCodePoolAssignRequest) Get(ctx context.Context) ([][]EmbeddedSIMActivationCodePoolAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentModel.go
new file mode 100644
index 00000000..5b6934c8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmbeddedSIMActivationCodePoolAssignment The embedded SIM activation code pool assignment entity assigns a specific embeddedSIMActivationCodePool to an AAD device group.
+type EmbeddedSIMActivationCodePoolAssignment struct {
+ // Entity is the base model of EmbeddedSIMActivationCodePoolAssignment
+ Entity
+ // Target The type of groups targeted by the embedded SIM activation code pool.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentRequest.go
new file mode 100644
index 00000000..e898780f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodePoolAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EmbeddedSIMActivationCodePoolAssignmentRequestBuilder is request builder for EmbeddedSIMActivationCodePoolAssignment
+type EmbeddedSIMActivationCodePoolAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EmbeddedSIMActivationCodePoolAssignmentRequest
+func (b *EmbeddedSIMActivationCodePoolAssignmentRequestBuilder) Request() *EmbeddedSIMActivationCodePoolAssignmentRequest {
+ return &EmbeddedSIMActivationCodePoolAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EmbeddedSIMActivationCodePoolAssignmentRequest is request for EmbeddedSIMActivationCodePoolAssignment
+type EmbeddedSIMActivationCodePoolAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for EmbeddedSIMActivationCodePoolAssignment
+func (r *EmbeddedSIMActivationCodePoolAssignmentRequest) Get(ctx context.Context) (resObj *EmbeddedSIMActivationCodePoolAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EmbeddedSIMActivationCodePoolAssignment
+func (r *EmbeddedSIMActivationCodePoolAssignmentRequest) Update(ctx context.Context, reqObj *EmbeddedSIMActivationCodePoolAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EmbeddedSIMActivationCodePoolAssignment
+func (r *EmbeddedSIMActivationCodePoolAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodePoolModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodePoolModel.go
new file mode 100644
index 00000000..18af5e00
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodePoolModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EmbeddedSIMActivationCodePool A pool represents a group of embedded SIM activation codes.
+type EmbeddedSIMActivationCodePool struct {
+ // Entity is the base model of EmbeddedSIMActivationCodePool
+ Entity
+ // DisplayName The admin defined name of the embedded SIM activation code pool.
+ DisplayName *string `json:"displayName,omitempty"`
+ // CreatedDateTime The time the embedded SIM activation code pool was created. Generated service side.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedDateTime The time the embedded SIM activation code pool was last modified. Updated service side.
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // ActivationCodes The activation codes which belong to this pool. This navigation property is used to post activation codes to Intune but cannot be used to read activation codes from Intune.
+ ActivationCodes []EmbeddedSIMActivationCode `json:"activationCodes,omitempty"`
+ // ActivationCodeCount The total count of activation codes which belong to this pool.
+ ActivationCodeCount *int `json:"activationCodeCount,omitempty"`
+ // Assignments undocumented
+ Assignments []EmbeddedSIMActivationCodePoolAssignment `json:"assignments,omitempty"`
+ // DeviceStates undocumented
+ DeviceStates []EmbeddedSIMDeviceState `json:"deviceStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodePoolRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodePoolRequest.go
new file mode 100644
index 00000000..808dff7d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMActivationCodePoolRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EmbeddedSIMActivationCodePoolRequestBuilder is request builder for EmbeddedSIMActivationCodePool
+type EmbeddedSIMActivationCodePoolRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EmbeddedSIMActivationCodePoolRequest
+func (b *EmbeddedSIMActivationCodePoolRequestBuilder) Request() *EmbeddedSIMActivationCodePoolRequest {
+ return &EmbeddedSIMActivationCodePoolRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EmbeddedSIMActivationCodePoolRequest is request for EmbeddedSIMActivationCodePool
+type EmbeddedSIMActivationCodePoolRequest struct{ BaseRequest }
+
+// Get performs GET request for EmbeddedSIMActivationCodePool
+func (r *EmbeddedSIMActivationCodePoolRequest) Get(ctx context.Context) (resObj *EmbeddedSIMActivationCodePool, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EmbeddedSIMActivationCodePool
+func (r *EmbeddedSIMActivationCodePoolRequest) Update(ctx context.Context, reqObj *EmbeddedSIMActivationCodePool) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EmbeddedSIMActivationCodePool
+func (r *EmbeddedSIMActivationCodePoolRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for EmbeddedSIMActivationCodePoolAssignment collection
+func (b *EmbeddedSIMActivationCodePoolRequestBuilder) Assignments() *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder {
+ bb := &EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder is request builder for EmbeddedSIMActivationCodePoolAssignment collection
+type EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EmbeddedSIMActivationCodePoolAssignment collection
+func (b *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder) Request() *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest {
+ return &EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EmbeddedSIMActivationCodePoolAssignment item
+func (b *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder) ID(id string) *EmbeddedSIMActivationCodePoolAssignmentRequestBuilder {
+ bb := &EmbeddedSIMActivationCodePoolAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest is request for EmbeddedSIMActivationCodePoolAssignment collection
+type EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EmbeddedSIMActivationCodePoolAssignment collection
+func (r *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EmbeddedSIMActivationCodePoolAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EmbeddedSIMActivationCodePoolAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EmbeddedSIMActivationCodePoolAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EmbeddedSIMActivationCodePoolAssignment collection
+func (r *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest) Get(ctx context.Context) ([]EmbeddedSIMActivationCodePoolAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EmbeddedSIMActivationCodePoolAssignment collection
+func (r *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *EmbeddedSIMActivationCodePoolAssignment) (resObj *EmbeddedSIMActivationCodePoolAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStates returns request builder for EmbeddedSIMDeviceState collection
+func (b *EmbeddedSIMActivationCodePoolRequestBuilder) DeviceStates() *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder {
+ bb := &EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStates"
+ return bb
+}
+
+// EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder is request builder for EmbeddedSIMDeviceState collection
+type EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EmbeddedSIMDeviceState collection
+func (b *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder) Request() *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest {
+ return &EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EmbeddedSIMDeviceState item
+func (b *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder) ID(id string) *EmbeddedSIMDeviceStateRequestBuilder {
+ bb := &EmbeddedSIMDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest is request for EmbeddedSIMDeviceState collection
+type EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EmbeddedSIMDeviceState collection
+func (r *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EmbeddedSIMDeviceState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EmbeddedSIMDeviceState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EmbeddedSIMDeviceState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EmbeddedSIMDeviceState collection
+func (r *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest) Get(ctx context.Context) ([]EmbeddedSIMDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EmbeddedSIMDeviceState collection
+func (r *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest) Add(ctx context.Context, reqObj *EmbeddedSIMDeviceState) (resObj *EmbeddedSIMDeviceState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMDeviceStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMDeviceStateModel.go
new file mode 100644
index 00000000..8e8d0d06
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMDeviceStateModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EmbeddedSIMDeviceState Describes the embedded SIM activation code deployment state in relation to a device.
+type EmbeddedSIMDeviceState struct {
+ // Entity is the base model of EmbeddedSIMDeviceState
+ Entity
+ // CreatedDateTime The time the embedded SIM device status was created. Generated service side.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedDateTime The time the embedded SIM device status was last modified. Updated service side.
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // LastSyncDateTime The time the embedded SIM device last checked in. Updated service side.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // UniversalIntegratedCircuitCardIdentifier The Universal Integrated Circuit Card Identifier (UICCID) identifying the hardware onto which a profile is to be deployed.
+ UniversalIntegratedCircuitCardIdentifier *string `json:"universalIntegratedCircuitCardIdentifier,omitempty"`
+ // DeviceName Device name to which the subscription was provisioned e.g. DESKTOP-JOE
+ DeviceName *string `json:"deviceName,omitempty"`
+ // UserName Username which the subscription was provisioned to e.g. joe@contoso.com
+ UserName *string `json:"userName,omitempty"`
+ // State The state of the profile operation applied to the device.
+ State *EmbeddedSIMDeviceStateValue `json:"state,omitempty"`
+ // StateDetails String description of the provisioning state.
+ StateDetails *string `json:"stateDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMDeviceStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMDeviceStateRequest.go
new file mode 100644
index 00000000..9dac62fc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMDeviceStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EmbeddedSIMDeviceStateRequestBuilder is request builder for EmbeddedSIMDeviceState
+type EmbeddedSIMDeviceStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EmbeddedSIMDeviceStateRequest
+func (b *EmbeddedSIMDeviceStateRequestBuilder) Request() *EmbeddedSIMDeviceStateRequest {
+ return &EmbeddedSIMDeviceStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EmbeddedSIMDeviceStateRequest is request for EmbeddedSIMDeviceState
+type EmbeddedSIMDeviceStateRequest struct{ BaseRequest }
+
+// Get performs GET request for EmbeddedSIMDeviceState
+func (r *EmbeddedSIMDeviceStateRequest) Get(ctx context.Context) (resObj *EmbeddedSIMDeviceState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EmbeddedSIMDeviceState
+func (r *EmbeddedSIMDeviceStateRequest) Update(ctx context.Context, reqObj *EmbeddedSIMDeviceState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EmbeddedSIMDeviceState
+func (r *EmbeddedSIMDeviceStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMDeviceStateValueEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMDeviceStateValueEnum.go
new file mode 100644
index 00000000..5f61f42e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmbeddedSIMDeviceStateValueEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmbeddedSIMDeviceStateValue undocumented
+type EmbeddedSIMDeviceStateValue int
+
+const (
+ // EmbeddedSIMDeviceStateValueVNotEvaluated undocumented
+ EmbeddedSIMDeviceStateValueVNotEvaluated EmbeddedSIMDeviceStateValue = 0
+ // EmbeddedSIMDeviceStateValueVFailed undocumented
+ EmbeddedSIMDeviceStateValueVFailed EmbeddedSIMDeviceStateValue = 1
+ // EmbeddedSIMDeviceStateValueVInstalling undocumented
+ EmbeddedSIMDeviceStateValueVInstalling EmbeddedSIMDeviceStateValue = 2
+ // EmbeddedSIMDeviceStateValueVInstalled undocumented
+ EmbeddedSIMDeviceStateValueVInstalled EmbeddedSIMDeviceStateValue = 3
+ // EmbeddedSIMDeviceStateValueVDeleting undocumented
+ EmbeddedSIMDeviceStateValueVDeleting EmbeddedSIMDeviceStateValue = 4
+ // EmbeddedSIMDeviceStateValueVError undocumented
+ EmbeddedSIMDeviceStateValueVError EmbeddedSIMDeviceStateValue = 5
+ // EmbeddedSIMDeviceStateValueVDeleted undocumented
+ EmbeddedSIMDeviceStateValueVDeleted EmbeddedSIMDeviceStateValue = 6
+ // EmbeddedSIMDeviceStateValueVRemovedByUser undocumented
+ EmbeddedSIMDeviceStateValueVRemovedByUser EmbeddedSIMDeviceStateValue = 7
+)
+
+// EmbeddedSIMDeviceStateValuePNotEvaluated returns a pointer to EmbeddedSIMDeviceStateValueVNotEvaluated
+func EmbeddedSIMDeviceStateValuePNotEvaluated() *EmbeddedSIMDeviceStateValue {
+ v := EmbeddedSIMDeviceStateValueVNotEvaluated
+ return &v
+}
+
+// EmbeddedSIMDeviceStateValuePFailed returns a pointer to EmbeddedSIMDeviceStateValueVFailed
+func EmbeddedSIMDeviceStateValuePFailed() *EmbeddedSIMDeviceStateValue {
+ v := EmbeddedSIMDeviceStateValueVFailed
+ return &v
+}
+
+// EmbeddedSIMDeviceStateValuePInstalling returns a pointer to EmbeddedSIMDeviceStateValueVInstalling
+func EmbeddedSIMDeviceStateValuePInstalling() *EmbeddedSIMDeviceStateValue {
+ v := EmbeddedSIMDeviceStateValueVInstalling
+ return &v
+}
+
+// EmbeddedSIMDeviceStateValuePInstalled returns a pointer to EmbeddedSIMDeviceStateValueVInstalled
+func EmbeddedSIMDeviceStateValuePInstalled() *EmbeddedSIMDeviceStateValue {
+ v := EmbeddedSIMDeviceStateValueVInstalled
+ return &v
+}
+
+// EmbeddedSIMDeviceStateValuePDeleting returns a pointer to EmbeddedSIMDeviceStateValueVDeleting
+func EmbeddedSIMDeviceStateValuePDeleting() *EmbeddedSIMDeviceStateValue {
+ v := EmbeddedSIMDeviceStateValueVDeleting
+ return &v
+}
+
+// EmbeddedSIMDeviceStateValuePError returns a pointer to EmbeddedSIMDeviceStateValueVError
+func EmbeddedSIMDeviceStateValuePError() *EmbeddedSIMDeviceStateValue {
+ v := EmbeddedSIMDeviceStateValueVError
+ return &v
+}
+
+// EmbeddedSIMDeviceStateValuePDeleted returns a pointer to EmbeddedSIMDeviceStateValueVDeleted
+func EmbeddedSIMDeviceStateValuePDeleted() *EmbeddedSIMDeviceStateValue {
+ v := EmbeddedSIMDeviceStateValueVDeleted
+ return &v
+}
+
+// EmbeddedSIMDeviceStateValuePRemovedByUser returns a pointer to EmbeddedSIMDeviceStateValueVRemovedByUser
+func EmbeddedSIMDeviceStateValuePRemovedByUser() *EmbeddedSIMDeviceStateValue {
+ v := EmbeddedSIMDeviceStateValueVRemovedByUser
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmployeeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmployeeModel.go
new file mode 100644
index 00000000..bd44c6fb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmployeeModel.go
@@ -0,0 +1,47 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Employee undocumented
+type Employee struct {
+ // Entity is the base model of Employee
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // GivenName undocumented
+ GivenName *string `json:"givenName,omitempty"`
+ // MiddleName undocumented
+ MiddleName *string `json:"middleName,omitempty"`
+ // Surname undocumented
+ Surname *string `json:"surname,omitempty"`
+ // JobTitle undocumented
+ JobTitle *string `json:"jobTitle,omitempty"`
+ // Address undocumented
+ Address *PostalAddressType `json:"address,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // MobilePhone undocumented
+ MobilePhone *string `json:"mobilePhone,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // PersonalEmail undocumented
+ PersonalEmail *string `json:"personalEmail,omitempty"`
+ // EmploymentDate undocumented
+ EmploymentDate *time.Time `json:"employmentDate,omitempty"`
+ // TerminationDate undocumented
+ TerminationDate *time.Time `json:"terminationDate,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // BirthDate undocumented
+ BirthDate *time.Time `json:"birthDate,omitempty"`
+ // StatisticsGroupCode undocumented
+ StatisticsGroupCode *string `json:"statisticsGroupCode,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Picture undocumented
+ Picture []Picture `json:"picture,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EmployeeRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EmployeeRequest.go
new file mode 100644
index 00000000..0aa203fe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EmployeeRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EmployeeRequestBuilder is request builder for Employee
+type EmployeeRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EmployeeRequest
+func (b *EmployeeRequestBuilder) Request() *EmployeeRequest {
+ return &EmployeeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EmployeeRequest is request for Employee
+type EmployeeRequest struct{ BaseRequest }
+
+// Get performs GET request for Employee
+func (r *EmployeeRequest) Get(ctx context.Context) (resObj *Employee, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Employee
+func (r *EmployeeRequest) Update(ctx context.Context, reqObj *Employee) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Employee
+func (r *EmployeeRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Picture returns request builder for Picture collection
+func (b *EmployeeRequestBuilder) Picture() *EmployeePictureCollectionRequestBuilder {
+ bb := &EmployeePictureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/picture"
+ return bb
+}
+
+// EmployeePictureCollectionRequestBuilder is request builder for Picture collection
+type EmployeePictureCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Picture collection
+func (b *EmployeePictureCollectionRequestBuilder) Request() *EmployeePictureCollectionRequest {
+ return &EmployeePictureCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Picture item
+func (b *EmployeePictureCollectionRequestBuilder) ID(id string) *PictureRequestBuilder {
+ bb := &PictureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EmployeePictureCollectionRequest is request for Picture collection
+type EmployeePictureCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Picture collection
+func (r *EmployeePictureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Picture, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Picture
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Picture
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Picture collection
+func (r *EmployeePictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Picture collection
+func (r *EmployeePictureCollectionRequest) Add(ctx context.Context, reqObj *Picture) (resObj *Picture, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnablementEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnablementEnum.go
new file mode 100644
index 00000000..39726fb5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnablementEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Enablement undocumented
+type Enablement int
+
+const (
+ // EnablementVNotConfigured undocumented
+ EnablementVNotConfigured Enablement = 0
+ // EnablementVEnabled undocumented
+ EnablementVEnabled Enablement = 1
+ // EnablementVDisabled undocumented
+ EnablementVDisabled Enablement = 2
+)
+
+// EnablementPNotConfigured returns a pointer to EnablementVNotConfigured
+func EnablementPNotConfigured() *Enablement {
+ v := EnablementVNotConfigured
+ return &v
+}
+
+// EnablementPEnabled returns a pointer to EnablementVEnabled
+func EnablementPEnabled() *Enablement {
+ v := EnablementVEnabled
+ return &v
+}
+
+// EnablementPDisabled returns a pointer to EnablementVDisabled
+func EnablementPDisabled() *Enablement {
+ v := EnablementVDisabled
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EncryptContentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EncryptContentModel.go
new file mode 100644
index 00000000..9194d28e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EncryptContentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EncryptContent undocumented
+type EncryptContent struct {
+ // LabelActionBase is the base model of EncryptContent
+ LabelActionBase
+ // EncryptWith undocumented
+ EncryptWith *EncryptWith `json:"encryptWith,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EncryptWithEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EncryptWithEnum.go
new file mode 100644
index 00000000..e89ade59
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EncryptWithEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EncryptWith undocumented
+type EncryptWith int
+
+const (
+ // EncryptWithVTemplate undocumented
+ EncryptWithVTemplate EncryptWith = 0
+ // EncryptWithVUserDefinedRights undocumented
+ EncryptWithVUserDefinedRights EncryptWith = 1
+)
+
+// EncryptWithPTemplate returns a pointer to EncryptWithVTemplate
+func EncryptWithPTemplate() *EncryptWith {
+ v := EncryptWithVTemplate
+ return &v
+}
+
+// EncryptWithPUserDefinedRights returns a pointer to EncryptWithVUserDefinedRights
+func EncryptWithPUserDefinedRights() *EncryptWith {
+ v := EncryptWithVUserDefinedRights
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EncryptWithTemplateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EncryptWithTemplateModel.go
new file mode 100644
index 00000000..5a29cf2c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EncryptWithTemplateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EncryptWithTemplate undocumented
+type EncryptWithTemplate struct {
+ // EncryptContent is the base model of EncryptWithTemplate
+ EncryptContent
+ // TemplateID undocumented
+ TemplateID *string `json:"templateId,omitempty"`
+ // AvailableForEncryption undocumented
+ AvailableForEncryption *bool `json:"availableForEncryption,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EncryptWithUserDefinedRightsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EncryptWithUserDefinedRightsModel.go
new file mode 100644
index 00000000..c8c99ee6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EncryptWithUserDefinedRightsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EncryptWithUserDefinedRights undocumented
+type EncryptWithUserDefinedRights struct {
+ // EncryptContent is the base model of EncryptWithUserDefinedRights
+ EncryptContent
+ // DecryptionRightsManagementTemplateID undocumented
+ DecryptionRightsManagementTemplateID *string `json:"decryptionRightsManagementTemplateId,omitempty"`
+ // AllowMailForwarding undocumented
+ AllowMailForwarding *bool `json:"allowMailForwarding,omitempty"`
+ // AllowAdHocPermissions undocumented
+ AllowAdHocPermissions *bool `json:"allowAdHocPermissions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EncryptionReadinessStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EncryptionReadinessStateEnum.go
new file mode 100644
index 00000000..22be9eb2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EncryptionReadinessStateEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EncryptionReadinessState undocumented
+type EncryptionReadinessState int
+
+const (
+ // EncryptionReadinessStateVNotReady undocumented
+ EncryptionReadinessStateVNotReady EncryptionReadinessState = 0
+ // EncryptionReadinessStateVReady undocumented
+ EncryptionReadinessStateVReady EncryptionReadinessState = 1
+)
+
+// EncryptionReadinessStatePNotReady returns a pointer to EncryptionReadinessStateVNotReady
+func EncryptionReadinessStatePNotReady() *EncryptionReadinessState {
+ v := EncryptionReadinessStateVNotReady
+ return &v
+}
+
+// EncryptionReadinessStatePReady returns a pointer to EncryptionReadinessStateVReady
+func EncryptionReadinessStatePReady() *EncryptionReadinessState {
+ v := EncryptionReadinessStateVReady
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EncryptionReportPolicyDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EncryptionReportPolicyDetailsModel.go
new file mode 100644
index 00000000..64c7282a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EncryptionReportPolicyDetailsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EncryptionReportPolicyDetails undocumented
+type EncryptionReportPolicyDetails struct {
+ // Object is the base model of EncryptionReportPolicyDetails
+ Object
+ // PolicyID Policy Id for Encryption Report
+ PolicyID *string `json:"policyId,omitempty"`
+ // PolicyName Policy Name for Encryption Report
+ PolicyName *string `json:"policyName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EncryptionStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EncryptionStateEnum.go
new file mode 100644
index 00000000..65d52cea
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EncryptionStateEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EncryptionState undocumented
+type EncryptionState int
+
+const (
+ // EncryptionStateVNotEncrypted undocumented
+ EncryptionStateVNotEncrypted EncryptionState = 0
+ // EncryptionStateVEncrypted undocumented
+ EncryptionStateVEncrypted EncryptionState = 1
+)
+
+// EncryptionStatePNotEncrypted returns a pointer to EncryptionStateVNotEncrypted
+func EncryptionStatePNotEncrypted() *EncryptionState {
+ v := EncryptionStateVNotEncrypted
+ return &v
+}
+
+// EncryptionStatePEncrypted returns a pointer to EncryptionStateVEncrypted
+func EncryptionStatePEncrypted() *EncryptionState {
+ v := EncryptionStateVEncrypted
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EndpointModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EndpointModel.go
new file mode 100644
index 00000000..91b91c20
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EndpointModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Endpoint undocumented
+type Endpoint struct {
+ // DirectoryObject is the base model of Endpoint
+ DirectoryObject
+ // Capability undocumented
+ Capability *string `json:"capability,omitempty"`
+ // ProviderID undocumented
+ ProviderID *string `json:"providerId,omitempty"`
+ // ProviderName undocumented
+ ProviderName *string `json:"providerName,omitempty"`
+ // URI undocumented
+ URI *string `json:"uri,omitempty"`
+ // ProviderResourceID undocumented
+ ProviderResourceID *string `json:"providerResourceId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EndpointRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EndpointRequest.go
new file mode 100644
index 00000000..2565686b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EndpointRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EndpointRequestBuilder is request builder for Endpoint
+type EndpointRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EndpointRequest
+func (b *EndpointRequestBuilder) Request() *EndpointRequest {
+ return &EndpointRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EndpointRequest is request for Endpoint
+type EndpointRequest struct{ BaseRequest }
+
+// Get performs GET request for Endpoint
+func (r *EndpointRequest) Get(ctx context.Context) (resObj *Endpoint, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Endpoint
+func (r *EndpointRequest) Update(ctx context.Context, reqObj *Endpoint) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Endpoint
+func (r *EndpointRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EndpointTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EndpointTypeEnum.go
new file mode 100644
index 00000000..ac5c8e41
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EndpointTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EndpointType undocumented
+type EndpointType int
+
+const (
+ // EndpointTypeVDefault undocumented
+ EndpointTypeVDefault EndpointType = 0
+ // EndpointTypeVVoicemail undocumented
+ EndpointTypeVVoicemail EndpointType = 1
+ // EndpointTypeVSkypeForBusiness undocumented
+ EndpointTypeVSkypeForBusiness EndpointType = 2
+ // EndpointTypeVSkypeForBusinessVoipPhone undocumented
+ EndpointTypeVSkypeForBusinessVoipPhone EndpointType = 3
+ // EndpointTypeVUnknownFutureValue undocumented
+ EndpointTypeVUnknownFutureValue EndpointType = 4
+)
+
+// EndpointTypePDefault returns a pointer to EndpointTypeVDefault
+func EndpointTypePDefault() *EndpointType {
+ v := EndpointTypeVDefault
+ return &v
+}
+
+// EndpointTypePVoicemail returns a pointer to EndpointTypeVVoicemail
+func EndpointTypePVoicemail() *EndpointType {
+ v := EndpointTypeVVoicemail
+ return &v
+}
+
+// EndpointTypePSkypeForBusiness returns a pointer to EndpointTypeVSkypeForBusiness
+func EndpointTypePSkypeForBusiness() *EndpointType {
+ v := EndpointTypeVSkypeForBusiness
+ return &v
+}
+
+// EndpointTypePSkypeForBusinessVoipPhone returns a pointer to EndpointTypeVSkypeForBusinessVoipPhone
+func EndpointTypePSkypeForBusinessVoipPhone() *EndpointType {
+ v := EndpointTypeVSkypeForBusinessVoipPhone
+ return &v
+}
+
+// EndpointTypePUnknownFutureValue returns a pointer to EndpointTypeVUnknownFutureValue
+func EndpointTypePUnknownFutureValue() *EndpointType {
+ v := EndpointTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentConfigurationAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentConfigurationAssignmentModel.go
new file mode 100644
index 00000000..e02725db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentConfigurationAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EnrollmentConfigurationAssignment Enrollment Configuration Assignment
+type EnrollmentConfigurationAssignment struct {
+ // Entity is the base model of EnrollmentConfigurationAssignment
+ Entity
+ // Target Represents an assignment to managed devices in the tenant
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+ // Source Type of resource used for deployment to a group, direct or policySet
+ Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"`
+ // SourceID Identifier for resource used for deployment to a group
+ SourceID *string `json:"sourceId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentConfigurationAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentConfigurationAssignmentRequest.go
new file mode 100644
index 00000000..041fb9b8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentConfigurationAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EnrollmentConfigurationAssignmentRequestBuilder is request builder for EnrollmentConfigurationAssignment
+type EnrollmentConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EnrollmentConfigurationAssignmentRequest
+func (b *EnrollmentConfigurationAssignmentRequestBuilder) Request() *EnrollmentConfigurationAssignmentRequest {
+ return &EnrollmentConfigurationAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EnrollmentConfigurationAssignmentRequest is request for EnrollmentConfigurationAssignment
+type EnrollmentConfigurationAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for EnrollmentConfigurationAssignment
+func (r *EnrollmentConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *EnrollmentConfigurationAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EnrollmentConfigurationAssignment
+func (r *EnrollmentConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *EnrollmentConfigurationAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EnrollmentConfigurationAssignment
+func (r *EnrollmentConfigurationAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentProfileAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentProfileAction.go
new file mode 100644
index 00000000..a01ff532
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentProfileAction.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EnrollmentProfileSetDefaultProfileRequestParameter undocumented
+type EnrollmentProfileSetDefaultProfileRequestParameter struct {
+}
+
+// EnrollmentProfileUpdateDeviceProfileAssignmentRequestParameter undocumented
+type EnrollmentProfileUpdateDeviceProfileAssignmentRequestParameter struct {
+ // DeviceIDs undocumented
+ DeviceIDs []string `json:"deviceIds,omitempty"`
+}
+
+//
+type EnrollmentProfileSetDefaultProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// SetDefaultProfile action undocumented
+func (b *EnrollmentProfileRequestBuilder) SetDefaultProfile(reqObj *EnrollmentProfileSetDefaultProfileRequestParameter) *EnrollmentProfileSetDefaultProfileRequestBuilder {
+ bb := &EnrollmentProfileSetDefaultProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/setDefaultProfile"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EnrollmentProfileSetDefaultProfileRequest struct{ BaseRequest }
+
+//
+func (b *EnrollmentProfileSetDefaultProfileRequestBuilder) Request() *EnrollmentProfileSetDefaultProfileRequest {
+ return &EnrollmentProfileSetDefaultProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EnrollmentProfileSetDefaultProfileRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EnrollmentProfileUpdateDeviceProfileAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateDeviceProfileAssignment action undocumented
+func (b *EnrollmentProfileRequestBuilder) UpdateDeviceProfileAssignment(reqObj *EnrollmentProfileUpdateDeviceProfileAssignmentRequestParameter) *EnrollmentProfileUpdateDeviceProfileAssignmentRequestBuilder {
+ bb := &EnrollmentProfileUpdateDeviceProfileAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateDeviceProfileAssignment"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EnrollmentProfileUpdateDeviceProfileAssignmentRequest struct{ BaseRequest }
+
+//
+func (b *EnrollmentProfileUpdateDeviceProfileAssignmentRequestBuilder) Request() *EnrollmentProfileUpdateDeviceProfileAssignmentRequest {
+ return &EnrollmentProfileUpdateDeviceProfileAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EnrollmentProfileUpdateDeviceProfileAssignmentRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentProfileModel.go
new file mode 100644
index 00000000..852460a1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentProfileModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EnrollmentProfile The enrollmentProfile resource represents a collection of configurations which must be provided pre-enrollment to enable enrolling certain devices whose identities have been pre-staged. Pre-staged device identities are assigned to this type of profile to apply the profile's configurations at enrollment of the corresponding device.
+type EnrollmentProfile struct {
+ // Entity is the base model of EnrollmentProfile
+ Entity
+ // DisplayName Name of the profile
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of the profile
+ Description *string `json:"description,omitempty"`
+ // RequiresUserAuthentication Indicates if the profile requires user authentication
+ RequiresUserAuthentication *bool `json:"requiresUserAuthentication,omitempty"`
+ // ConfigurationEndpointURL Configuration endpoint url to use for Enrollment
+ ConfigurationEndpointURL *string `json:"configurationEndpointUrl,omitempty"`
+ // EnableAuthenticationViaCompanyPortal Indicates to authenticate with Apple Setup Assistant instead of Company Portal.
+ EnableAuthenticationViaCompanyPortal *bool `json:"enableAuthenticationViaCompanyPortal,omitempty"`
+ // RequireCompanyPortalOnSetupAssistantEnrolledDevices Indicates that Company Portal is required on setup assistant enrolled devices
+ RequireCompanyPortalOnSetupAssistantEnrolledDevices *bool `json:"requireCompanyPortalOnSetupAssistantEnrolledDevices,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentProfileRequest.go
new file mode 100644
index 00000000..8e52004d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EnrollmentProfileRequestBuilder is request builder for EnrollmentProfile
+type EnrollmentProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EnrollmentProfileRequest
+func (b *EnrollmentProfileRequestBuilder) Request() *EnrollmentProfileRequest {
+ return &EnrollmentProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EnrollmentProfileRequest is request for EnrollmentProfile
+type EnrollmentProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for EnrollmentProfile
+func (r *EnrollmentProfileRequest) Get(ctx context.Context) (resObj *EnrollmentProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EnrollmentProfile
+func (r *EnrollmentProfileRequest) Update(ctx context.Context, reqObj *EnrollmentProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EnrollmentProfile
+func (r *EnrollmentProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentRestrictionsConfigurationPolicySetItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentRestrictionsConfigurationPolicySetItemModel.go
new file mode 100644
index 00000000..c098ce01
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentRestrictionsConfigurationPolicySetItemModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EnrollmentRestrictionsConfigurationPolicySetItem A class containing the properties used for enrollment restriction PolicySetItem.
+type EnrollmentRestrictionsConfigurationPolicySetItem struct {
+ // PolicySetItem is the base model of EnrollmentRestrictionsConfigurationPolicySetItem
+ PolicySetItem
+ // Priority Priority of the EnrollmentRestrictionsConfigurationPolicySetItem.
+ Priority *int `json:"priority,omitempty"`
+ // Limit Limit of the EnrollmentRestrictionsConfigurationPolicySetItem.
+ Limit *int `json:"limit,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentStateEnum.go
new file mode 100644
index 00000000..1f29db2f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentStateEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EnrollmentState undocumented
+type EnrollmentState int
+
+const (
+ // EnrollmentStateVUnknown undocumented
+ EnrollmentStateVUnknown EnrollmentState = 0
+ // EnrollmentStateVEnrolled undocumented
+ EnrollmentStateVEnrolled EnrollmentState = 1
+ // EnrollmentStateVPendingReset undocumented
+ EnrollmentStateVPendingReset EnrollmentState = 2
+ // EnrollmentStateVFailed undocumented
+ EnrollmentStateVFailed EnrollmentState = 3
+ // EnrollmentStateVNotContacted undocumented
+ EnrollmentStateVNotContacted EnrollmentState = 4
+ // EnrollmentStateVBlocked undocumented
+ EnrollmentStateVBlocked EnrollmentState = 5
+)
+
+// EnrollmentStatePUnknown returns a pointer to EnrollmentStateVUnknown
+func EnrollmentStatePUnknown() *EnrollmentState {
+ v := EnrollmentStateVUnknown
+ return &v
+}
+
+// EnrollmentStatePEnrolled returns a pointer to EnrollmentStateVEnrolled
+func EnrollmentStatePEnrolled() *EnrollmentState {
+ v := EnrollmentStateVEnrolled
+ return &v
+}
+
+// EnrollmentStatePPendingReset returns a pointer to EnrollmentStateVPendingReset
+func EnrollmentStatePPendingReset() *EnrollmentState {
+ v := EnrollmentStateVPendingReset
+ return &v
+}
+
+// EnrollmentStatePFailed returns a pointer to EnrollmentStateVFailed
+func EnrollmentStatePFailed() *EnrollmentState {
+ v := EnrollmentStateVFailed
+ return &v
+}
+
+// EnrollmentStatePNotContacted returns a pointer to EnrollmentStateVNotContacted
+func EnrollmentStatePNotContacted() *EnrollmentState {
+ v := EnrollmentStateVNotContacted
+ return &v
+}
+
+// EnrollmentStatePBlocked returns a pointer to EnrollmentStateVBlocked
+func EnrollmentStatePBlocked() *EnrollmentState {
+ v := EnrollmentStateVBlocked
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentTroubleshootingEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentTroubleshootingEventModel.go
new file mode 100644
index 00000000..d4154aff
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnrollmentTroubleshootingEventModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EnrollmentTroubleshootingEvent Event representing an enrollment failure.
+type EnrollmentTroubleshootingEvent struct {
+ // DeviceManagementTroubleshootingEvent is the base model of EnrollmentTroubleshootingEvent
+ DeviceManagementTroubleshootingEvent
+ // ManagedDeviceIdentifier Device identifier created or collected by Intune.
+ ManagedDeviceIdentifier *string `json:"managedDeviceIdentifier,omitempty"`
+ // OperatingSystem Operating System.
+ OperatingSystem *string `json:"operatingSystem,omitempty"`
+ // OsVersion OS Version.
+ OsVersion *string `json:"osVersion,omitempty"`
+ // UserID Identifier for the user that tried to enroll the device.
+ UserID *string `json:"userId,omitempty"`
+ // DeviceID Azure AD device identifier.
+ DeviceID *string `json:"deviceId,omitempty"`
+ // EnrollmentType Type of the enrollment.
+ EnrollmentType *DeviceEnrollmentType `json:"enrollmentType,omitempty"`
+ // FailureCategory Highlevel failure category.
+ FailureCategory *DeviceEnrollmentFailureReason `json:"failureCategory,omitempty"`
+ // FailureReason Detailed failure reason.
+ FailureReason *string `json:"failureReason,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnterpriseCodeSigningCertificateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnterpriseCodeSigningCertificateModel.go
new file mode 100644
index 00000000..e4c7f6a6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnterpriseCodeSigningCertificateModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EnterpriseCodeSigningCertificate undocumented
+type EnterpriseCodeSigningCertificate struct {
+ // Entity is the base model of EnterpriseCodeSigningCertificate
+ Entity
+ // Content The Windows Enterprise Code-Signing Certificate in the raw data format.
+ Content *Binary `json:"content,omitempty"`
+ // Status The Certificate Status Provisioned or not Provisioned.
+ Status *CertificateStatus `json:"status,omitempty"`
+ // SubjectName The Subject Name for the cert.
+ SubjectName *string `json:"subjectName,omitempty"`
+ // Subject The Subject Value for the cert.
+ Subject *string `json:"subject,omitempty"`
+ // IssuerName The Issuer Name for the cert.
+ IssuerName *string `json:"issuerName,omitempty"`
+ // Issuer The Issuer value for the cert.
+ Issuer *string `json:"issuer,omitempty"`
+ // ExpirationDateTime The Cert Expiration Date.
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // UploadDateTime The date time of CodeSigning Cert when it is uploaded.
+ UploadDateTime *time.Time `json:"uploadDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnterpriseCodeSigningCertificateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnterpriseCodeSigningCertificateRequest.go
new file mode 100644
index 00000000..7489fb8b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnterpriseCodeSigningCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EnterpriseCodeSigningCertificateRequestBuilder is request builder for EnterpriseCodeSigningCertificate
+type EnterpriseCodeSigningCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EnterpriseCodeSigningCertificateRequest
+func (b *EnterpriseCodeSigningCertificateRequestBuilder) Request() *EnterpriseCodeSigningCertificateRequest {
+ return &EnterpriseCodeSigningCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EnterpriseCodeSigningCertificateRequest is request for EnterpriseCodeSigningCertificate
+type EnterpriseCodeSigningCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for EnterpriseCodeSigningCertificate
+func (r *EnterpriseCodeSigningCertificateRequest) Get(ctx context.Context) (resObj *EnterpriseCodeSigningCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EnterpriseCodeSigningCertificate
+func (r *EnterpriseCodeSigningCertificateRequest) Update(ctx context.Context, reqObj *EnterpriseCodeSigningCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EnterpriseCodeSigningCertificate
+func (r *EnterpriseCodeSigningCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EntitlementManagementModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EntitlementManagementModel.go
new file mode 100644
index 00000000..066ca91d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EntitlementManagementModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EntitlementManagement undocumented
+type EntitlementManagement struct {
+ // Entity is the base model of EntitlementManagement
+ Entity
+ // AccessPackageCatalogs undocumented
+ AccessPackageCatalogs []AccessPackageCatalog `json:"accessPackageCatalogs,omitempty"`
+ // AccessPackageResources undocumented
+ AccessPackageResources []AccessPackageResource `json:"accessPackageResources,omitempty"`
+ // AccessPackageResourceRequests undocumented
+ AccessPackageResourceRequests []AccessPackageResourceRequestObject `json:"accessPackageResourceRequests,omitempty"`
+ // AccessPackageResourceRoleScopes undocumented
+ AccessPackageResourceRoleScopes []AccessPackageResourceRoleScope `json:"accessPackageResourceRoleScopes,omitempty"`
+ // AccessPackages undocumented
+ AccessPackages []AccessPackage `json:"accessPackages,omitempty"`
+ // AccessPackageAssignmentPolicies undocumented
+ AccessPackageAssignmentPolicies []AccessPackageAssignmentPolicy `json:"accessPackageAssignmentPolicies,omitempty"`
+ // AccessPackageAssignments undocumented
+ AccessPackageAssignments []AccessPackageAssignment `json:"accessPackageAssignments,omitempty"`
+ // AccessPackageAssignmentRequests undocumented
+ AccessPackageAssignmentRequests []AccessPackageAssignmentRequestObject `json:"accessPackageAssignmentRequests,omitempty"`
+ // AccessPackageAssignmentResourceRoles undocumented
+ AccessPackageAssignmentResourceRoles []AccessPackageAssignmentResourceRole `json:"accessPackageAssignmentResourceRoles,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EntitlementManagementRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EntitlementManagementRequest.go
new file mode 100644
index 00000000..6793450d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EntitlementManagementRequest.go
@@ -0,0 +1,891 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EntitlementManagementRequestBuilder is request builder for EntitlementManagement
+type EntitlementManagementRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EntitlementManagementRequest
+func (b *EntitlementManagementRequestBuilder) Request() *EntitlementManagementRequest {
+ return &EntitlementManagementRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EntitlementManagementRequest is request for EntitlementManagement
+type EntitlementManagementRequest struct{ BaseRequest }
+
+// Get performs GET request for EntitlementManagement
+func (r *EntitlementManagementRequest) Get(ctx context.Context) (resObj *EntitlementManagement, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EntitlementManagement
+func (r *EntitlementManagementRequest) Update(ctx context.Context, reqObj *EntitlementManagement) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EntitlementManagement
+func (r *EntitlementManagementRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageAssignmentPolicies returns request builder for AccessPackageAssignmentPolicy collection
+func (b *EntitlementManagementRequestBuilder) AccessPackageAssignmentPolicies() *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentPolicies"
+ return bb
+}
+
+// EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder is request builder for AccessPackageAssignmentPolicy collection
+type EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentPolicy collection
+func (b *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest {
+ return &EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentPolicy item
+func (b *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentPolicyRequestBuilder {
+ bb := &AccessPackageAssignmentPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest is request for AccessPackageAssignmentPolicy collection
+type EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentPolicy collection
+func (r *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageAssignmentPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentPolicy collection
+func (r *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageAssignmentPolicy collection
+func (r *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentPolicy) (resObj *AccessPackageAssignmentPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageAssignmentRequests returns request builder for AccessPackageAssignmentRequestObject collection
+func (b *EntitlementManagementRequestBuilder) AccessPackageAssignmentRequests() *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentRequests"
+ return bb
+}
+
+// EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder is request builder for AccessPackageAssignmentRequestObject collection
+type EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentRequestObject collection
+func (b *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest {
+ return &EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentRequestObject item
+func (b *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestObjectRequestBuilder {
+ bb := &AccessPackageAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest is request for AccessPackageAssignmentRequestObject collection
+type EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentRequestObject collection
+func (r *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageAssignmentRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentRequestObject collection
+func (r *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageAssignmentRequestObject collection
+func (r *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentRequestObject) (resObj *AccessPackageAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageAssignmentResourceRoles returns request builder for AccessPackageAssignmentResourceRole collection
+func (b *EntitlementManagementRequestBuilder) AccessPackageAssignmentResourceRoles() *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentResourceRoles"
+ return bb
+}
+
+// EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder is request builder for AccessPackageAssignmentResourceRole collection
+type EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentResourceRole collection
+func (b *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest {
+ return &EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentResourceRole item
+func (b *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentResourceRoleRequestBuilder {
+ bb := &AccessPackageAssignmentResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest is request for AccessPackageAssignmentResourceRole collection
+type EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentResourceRole collection
+func (r *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageAssignmentResourceRole, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentResourceRole
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentResourceRole
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentResourceRole collection
+func (r *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentResourceRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageAssignmentResourceRole collection
+func (r *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentResourceRole) (resObj *AccessPackageAssignmentResourceRole, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageAssignments returns request builder for AccessPackageAssignment collection
+func (b *EntitlementManagementRequestBuilder) AccessPackageAssignments() *EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignments"
+ return bb
+}
+
+// EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder is request builder for AccessPackageAssignment collection
+type EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignment collection
+func (b *EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageAssignmentsCollectionRequest {
+ return &EntitlementManagementAccessPackageAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignment item
+func (b *EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestBuilder {
+ bb := &AccessPackageAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackageAssignmentsCollectionRequest is request for AccessPackageAssignment collection
+type EntitlementManagementAccessPackageAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignment collection
+func (r *EntitlementManagementAccessPackageAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignment collection
+func (r *EntitlementManagementAccessPackageAssignmentsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageAssignment collection
+func (r *EntitlementManagementAccessPackageAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignment) (resObj *AccessPackageAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageCatalogs returns request builder for AccessPackageCatalog collection
+func (b *EntitlementManagementRequestBuilder) AccessPackageCatalogs() *EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageCatalogs"
+ return bb
+}
+
+// EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder is request builder for AccessPackageCatalog collection
+type EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageCatalog collection
+func (b *EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageCatalogsCollectionRequest {
+ return &EntitlementManagementAccessPackageCatalogsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageCatalog item
+func (b *EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder) ID(id string) *AccessPackageCatalogRequestBuilder {
+ bb := &AccessPackageCatalogRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackageCatalogsCollectionRequest is request for AccessPackageCatalog collection
+type EntitlementManagementAccessPackageCatalogsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageCatalog collection
+func (r *EntitlementManagementAccessPackageCatalogsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageCatalog, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageCatalog
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageCatalog
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageCatalog collection
+func (r *EntitlementManagementAccessPackageCatalogsCollectionRequest) Get(ctx context.Context) ([]AccessPackageCatalog, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageCatalog collection
+func (r *EntitlementManagementAccessPackageCatalogsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageCatalog) (resObj *AccessPackageCatalog, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResourceRequests returns request builder for AccessPackageResourceRequestObject collection
+func (b *EntitlementManagementRequestBuilder) AccessPackageResourceRequests() *EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRequests"
+ return bb
+}
+
+// EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder is request builder for AccessPackageResourceRequestObject collection
+type EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceRequestObject collection
+func (b *EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageResourceRequestsCollectionRequest {
+ return &EntitlementManagementAccessPackageResourceRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceRequestObject item
+func (b *EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder) ID(id string) *AccessPackageResourceRequestObjectRequestBuilder {
+ bb := &AccessPackageResourceRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackageResourceRequestsCollectionRequest is request for AccessPackageResourceRequestObject collection
+type EntitlementManagementAccessPackageResourceRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceRequestObject collection
+func (r *EntitlementManagementAccessPackageResourceRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResourceRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceRequestObject collection
+func (r *EntitlementManagementAccessPackageResourceRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageResourceRequestObject collection
+func (r *EntitlementManagementAccessPackageResourceRequestsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRequestObject) (resObj *AccessPackageResourceRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResourceRoleScopes returns request builder for AccessPackageResourceRoleScope collection
+func (b *EntitlementManagementRequestBuilder) AccessPackageResourceRoleScopes() *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRoleScopes"
+ return bb
+}
+
+// EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder is request builder for AccessPackageResourceRoleScope collection
+type EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceRoleScope collection
+func (b *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest {
+ return &EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceRoleScope item
+func (b *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleScopeRequestBuilder {
+ bb := &AccessPackageResourceRoleScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest is request for AccessPackageResourceRoleScope collection
+type EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceRoleScope collection
+func (r *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResourceRoleScope, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceRoleScope
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceRoleScope
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceRoleScope collection
+func (r *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRoleScope, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageResourceRoleScope collection
+func (r *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRoleScope) (resObj *AccessPackageResourceRoleScope, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResources returns request builder for AccessPackageResource collection
+func (b *EntitlementManagementRequestBuilder) AccessPackageResources() *EntitlementManagementAccessPackageResourcesCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackageResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResources"
+ return bb
+}
+
+// EntitlementManagementAccessPackageResourcesCollectionRequestBuilder is request builder for AccessPackageResource collection
+type EntitlementManagementAccessPackageResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResource collection
+func (b *EntitlementManagementAccessPackageResourcesCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageResourcesCollectionRequest {
+ return &EntitlementManagementAccessPackageResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResource item
+func (b *EntitlementManagementAccessPackageResourcesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRequestBuilder {
+ bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackageResourcesCollectionRequest is request for AccessPackageResource collection
+type EntitlementManagementAccessPackageResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResource collection
+func (r *EntitlementManagementAccessPackageResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResource collection
+func (r *EntitlementManagementAccessPackageResourcesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageResource collection
+func (r *EntitlementManagementAccessPackageResourcesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResource) (resObj *AccessPackageResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackages returns request builder for AccessPackage collection
+func (b *EntitlementManagementRequestBuilder) AccessPackages() *EntitlementManagementAccessPackagesCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackages"
+ return bb
+}
+
+// EntitlementManagementAccessPackagesCollectionRequestBuilder is request builder for AccessPackage collection
+type EntitlementManagementAccessPackagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackage collection
+func (b *EntitlementManagementAccessPackagesCollectionRequestBuilder) Request() *EntitlementManagementAccessPackagesCollectionRequest {
+ return &EntitlementManagementAccessPackagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackage item
+func (b *EntitlementManagementAccessPackagesCollectionRequestBuilder) ID(id string) *AccessPackageRequestBuilder {
+ bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackagesCollectionRequest is request for AccessPackage collection
+type EntitlementManagementAccessPackagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackage collection
+func (r *EntitlementManagementAccessPackagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackage collection
+func (r *EntitlementManagementAccessPackagesCollectionRequest) Get(ctx context.Context) ([]AccessPackage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackage collection
+func (r *EntitlementManagementAccessPackagesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackage) (resObj *AccessPackage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EntityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EntityModel.go
new file mode 100644
index 00000000..96c93ceb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EntityModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Entity undocumented
+type Entity struct {
+ // Object is the base model of Entity
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EntityRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EntityRequest.go
new file mode 100644
index 00000000..6ec06098
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EntityRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EntityRequestBuilder is request builder for Entity
+type EntityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EntityRequest
+func (b *EntityRequestBuilder) Request() *EntityRequest {
+ return &EntityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EntityRequest is request for Entity
+type EntityRequest struct{ BaseRequest }
+
+// Get performs GET request for Entity
+func (r *EntityRequest) Get(ctx context.Context) (resObj *Entity, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Entity
+func (r *EntityRequest) Update(ctx context.Context, reqObj *Entity) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Entity
+func (r *EntityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EntitySetNamesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EntitySetNamesModel.go
new file mode 100644
index 00000000..64b7fc42
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EntitySetNamesModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EntitySetNames undocumented
+type EntitySetNames struct {
+ // Object is the base model of EntitySetNames
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EntityTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EntityTypeEnum.go
new file mode 100644
index 00000000..037283e0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EntityTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EntityType undocumented
+type EntityType int
+
+const (
+ // EntityTypeVEvent undocumented
+ EntityTypeVEvent EntityType = 0
+ // EntityTypeVMessage undocumented
+ EntityTypeVMessage EntityType = 1
+ // EntityTypeVDriveItem undocumented
+ EntityTypeVDriveItem EntityType = 2
+ // EntityTypeVExternalFile undocumented
+ EntityTypeVExternalFile EntityType = 3
+ // EntityTypeVExternalItem undocumented
+ EntityTypeVExternalItem EntityType = 4
+)
+
+// EntityTypePEvent returns a pointer to EntityTypeVEvent
+func EntityTypePEvent() *EntityType {
+ v := EntityTypeVEvent
+ return &v
+}
+
+// EntityTypePMessage returns a pointer to EntityTypeVMessage
+func EntityTypePMessage() *EntityType {
+ v := EntityTypeVMessage
+ return &v
+}
+
+// EntityTypePDriveItem returns a pointer to EntityTypeVDriveItem
+func EntityTypePDriveItem() *EntityType {
+ v := EntityTypeVDriveItem
+ return &v
+}
+
+// EntityTypePExternalFile returns a pointer to EntityTypeVExternalFile
+func EntityTypePExternalFile() *EntityType {
+ v := EntityTypeVExternalFile
+ return &v
+}
+
+// EntityTypePExternalItem returns a pointer to EntityTypeVExternalItem
+func EntityTypePExternalItem() *EntityType {
+ v := EntityTypeVExternalItem
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EntryExportStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EntryExportStatusEnum.go
new file mode 100644
index 00000000..dc2e7fc4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EntryExportStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EntryExportStatus undocumented
+type EntryExportStatus int
+
+const (
+ // EntryExportStatusVNoop undocumented
+ EntryExportStatusVNoop EntryExportStatus = 0
+ // EntryExportStatusVSuccess undocumented
+ EntryExportStatusVSuccess EntryExportStatus = 1
+ // EntryExportStatusVRetryableError undocumented
+ EntryExportStatusVRetryableError EntryExportStatus = 2
+ // EntryExportStatusVPermanentError undocumented
+ EntryExportStatusVPermanentError EntryExportStatus = 3
+ // EntryExportStatusVError undocumented
+ EntryExportStatusVError EntryExportStatus = 4
+)
+
+// EntryExportStatusPNoop returns a pointer to EntryExportStatusVNoop
+func EntryExportStatusPNoop() *EntryExportStatus {
+ v := EntryExportStatusVNoop
+ return &v
+}
+
+// EntryExportStatusPSuccess returns a pointer to EntryExportStatusVSuccess
+func EntryExportStatusPSuccess() *EntryExportStatus {
+ v := EntryExportStatusVSuccess
+ return &v
+}
+
+// EntryExportStatusPRetryableError returns a pointer to EntryExportStatusVRetryableError
+func EntryExportStatusPRetryableError() *EntryExportStatus {
+ v := EntryExportStatusVRetryableError
+ return &v
+}
+
+// EntryExportStatusPPermanentError returns a pointer to EntryExportStatusVPermanentError
+func EntryExportStatusPPermanentError() *EntryExportStatus {
+ v := EntryExportStatusVPermanentError
+ return &v
+}
+
+// EntryExportStatusPError returns a pointer to EntryExportStatusVError
+func EntryExportStatusPError() *EntryExportStatus {
+ v := EntryExportStatusVError
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EntrySyncOperationEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EntrySyncOperationEnum.go
new file mode 100644
index 00000000..07347d89
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EntrySyncOperationEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EntrySyncOperation undocumented
+type EntrySyncOperation int
+
+const (
+ // EntrySyncOperationVNone undocumented
+ EntrySyncOperationVNone EntrySyncOperation = 0
+ // EntrySyncOperationVAdd undocumented
+ EntrySyncOperationVAdd EntrySyncOperation = 1
+ // EntrySyncOperationVDelete undocumented
+ EntrySyncOperationVDelete EntrySyncOperation = 2
+ // EntrySyncOperationVUpdate undocumented
+ EntrySyncOperationVUpdate EntrySyncOperation = 3
+)
+
+// EntrySyncOperationPNone returns a pointer to EntrySyncOperationVNone
+func EntrySyncOperationPNone() *EntrySyncOperation {
+ v := EntrySyncOperationVNone
+ return &v
+}
+
+// EntrySyncOperationPAdd returns a pointer to EntrySyncOperationVAdd
+func EntrySyncOperationPAdd() *EntrySyncOperation {
+ v := EntrySyncOperationVAdd
+ return &v
+}
+
+// EntrySyncOperationPDelete returns a pointer to EntrySyncOperationVDelete
+func EntrySyncOperationPDelete() *EntrySyncOperation {
+ v := EntrySyncOperationVDelete
+ return &v
+}
+
+// EntrySyncOperationPUpdate returns a pointer to EntrySyncOperationVUpdate
+func EntrySyncOperationPUpdate() *EntrySyncOperation {
+ v := EntrySyncOperationVUpdate
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ErrorCodeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ErrorCodeEnum.go
new file mode 100644
index 00000000..ea9b0004
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ErrorCodeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ErrorCode undocumented
+type ErrorCode int
+
+const (
+ // ErrorCodeVNoError undocumented
+ ErrorCodeVNoError ErrorCode = 0
+ // ErrorCodeVUnauthorized undocumented
+ ErrorCodeVUnauthorized ErrorCode = 1
+ // ErrorCodeVNotFound undocumented
+ ErrorCodeVNotFound ErrorCode = 2
+ // ErrorCodeVDeleted undocumented
+ ErrorCodeVDeleted ErrorCode = 3
+)
+
+// ErrorCodePNoError returns a pointer to ErrorCodeVNoError
+func ErrorCodePNoError() *ErrorCode {
+ v := ErrorCodeVNoError
+ return &v
+}
+
+// ErrorCodePUnauthorized returns a pointer to ErrorCodeVUnauthorized
+func ErrorCodePUnauthorized() *ErrorCode {
+ v := ErrorCodeVUnauthorized
+ return &v
+}
+
+// ErrorCodePNotFound returns a pointer to ErrorCodeVNotFound
+func ErrorCodePNotFound() *ErrorCode {
+ v := ErrorCodeVNotFound
+ return &v
+}
+
+// ErrorCodePDeleted returns a pointer to ErrorCodeVDeleted
+func ErrorCodePDeleted() *ErrorCode {
+ v := ErrorCodeVDeleted
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ErrorDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ErrorDetailModel.go
new file mode 100644
index 00000000..bcf9968e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ErrorDetailModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ErrorDetail undocumented
+type ErrorDetail struct {
+ // Object is the base model of ErrorDetail
+ Object
+ // ErrorCode undocumented
+ ErrorCode *string `json:"errorCode,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Details undocumented
+ Details []InnerErrorDetail `json:"details,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateDynamicMembershipResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateDynamicMembershipResultModel.go
new file mode 100644
index 00000000..d8b94179
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateDynamicMembershipResultModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EvaluateDynamicMembershipResult undocumented
+type EvaluateDynamicMembershipResult struct {
+ // Object is the base model of EvaluateDynamicMembershipResult
+ Object
+ // MembershipRule undocumented
+ MembershipRule *string `json:"membershipRule,omitempty"`
+ // MembershipRuleEvaluationResult undocumented
+ MembershipRuleEvaluationResult *bool `json:"membershipRuleEvaluationResult,omitempty"`
+ // MembershipRuleEvaluationDetails undocumented
+ MembershipRuleEvaluationDetails *ExpressionEvaluationDetails `json:"membershipRuleEvaluationDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateLabelJobResponseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateLabelJobResponseModel.go
new file mode 100644
index 00000000..bbdaa41d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateLabelJobResponseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EvaluateLabelJobResponse undocumented
+type EvaluateLabelJobResponse struct {
+ // JobResponseBase is the base model of EvaluateLabelJobResponse
+ JobResponseBase
+ // Result undocumented
+ Result *EvaluateLabelJobResultGroup `json:"result,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateLabelJobResultGroupModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateLabelJobResultGroupModel.go
new file mode 100644
index 00000000..bd908895
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateLabelJobResultGroupModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EvaluateLabelJobResultGroup undocumented
+type EvaluateLabelJobResultGroup struct {
+ // Object is the base model of EvaluateLabelJobResultGroup
+ Object
+ // Automatic undocumented
+ Automatic *EvaluateLabelJobResult `json:"automatic,omitempty"`
+ // Recommended undocumented
+ Recommended *EvaluateLabelJobResult `json:"recommended,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateLabelJobResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateLabelJobResultModel.go
new file mode 100644
index 00000000..cf3e5411
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateLabelJobResultModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EvaluateLabelJobResult undocumented
+type EvaluateLabelJobResult struct {
+ // Object is the base model of EvaluateLabelJobResult
+ Object
+ // SensitivityLabel undocumented
+ SensitivityLabel *MatchingLabel `json:"sensitivityLabel,omitempty"`
+ // ResponsibleSensitiveTypes undocumented
+ ResponsibleSensitiveTypes []ResponsibleSensitiveType `json:"responsibleSensitiveTypes,omitempty"`
+ // ResponsiblePolicy undocumented
+ ResponsiblePolicy *ResponsiblePolicy `json:"responsiblePolicy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateLabelsAndPoliciesJobResponseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateLabelsAndPoliciesJobResponseModel.go
new file mode 100644
index 00000000..f7c72f91
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateLabelsAndPoliciesJobResponseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EvaluateLabelsAndPoliciesJobResponse undocumented
+type EvaluateLabelsAndPoliciesJobResponse struct {
+ // JobResponseBase is the base model of EvaluateLabelsAndPoliciesJobResponse
+ JobResponseBase
+ // Result undocumented
+ Result *EvaluateLabelsAndPoliciesResult `json:"result,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateLabelsAndPoliciesResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateLabelsAndPoliciesResultModel.go
new file mode 100644
index 00000000..ea9cb4d7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateLabelsAndPoliciesResultModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EvaluateLabelsAndPoliciesResult undocumented
+type EvaluateLabelsAndPoliciesResult struct {
+ // Object is the base model of EvaluateLabelsAndPoliciesResult
+ Object
+ // SensitivityLabelsResult undocumented
+ SensitivityLabelsResult *EvaluateLabelJobResultGroup `json:"sensitivityLabelsResult,omitempty"`
+ // DataLossPreventionPoliciesResult undocumented
+ DataLossPreventionPoliciesResult *DlpPoliciesJobResult `json:"dataLossPreventionPoliciesResult,omitempty"`
+ // ClassificationResult undocumented
+ ClassificationResult *DetectedSensitiveContentWrapper `json:"classificationResult,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateSensitivityLabelsRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateSensitivityLabelsRequestObjectModel.go
new file mode 100644
index 00000000..73843983
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EvaluateSensitivityLabelsRequestObjectModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EvaluateSensitivityLabelsRequestObject undocumented
+type EvaluateSensitivityLabelsRequestObject struct {
+ // Object is the base model of EvaluateSensitivityLabelsRequestObject
+ Object
+ // DiscoveredSensitiveTypes undocumented
+ DiscoveredSensitiveTypes []DiscoveredSensitiveType `json:"discoveredSensitiveTypes,omitempty"`
+ // CurrentLabel undocumented
+ CurrentLabel *CurrentLabel `json:"currentLabel,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EventAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/EventAction.go
new file mode 100644
index 00000000..40366c79
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EventAction.go
@@ -0,0 +1,239 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EventDismissReminderRequestParameter undocumented
+type EventDismissReminderRequestParameter struct {
+}
+
+// EventSnoozeReminderRequestParameter undocumented
+type EventSnoozeReminderRequestParameter struct {
+ // NewReminderTime undocumented
+ NewReminderTime *DateTimeTimeZone `json:"NewReminderTime,omitempty"`
+}
+
+// EventForwardRequestParameter undocumented
+type EventForwardRequestParameter struct {
+ // ToRecipients undocumented
+ ToRecipients []Recipient `json:"ToRecipients,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// EventAcceptRequestParameter undocumented
+type EventAcceptRequestParameter struct {
+ // SendResponse undocumented
+ SendResponse *bool `json:"SendResponse,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// EventDeclineRequestParameter undocumented
+type EventDeclineRequestParameter struct {
+ // ProposedNewTime undocumented
+ ProposedNewTime *TimeSlot `json:"ProposedNewTime,omitempty"`
+ // SendResponse undocumented
+ SendResponse *bool `json:"SendResponse,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// EventTentativelyAcceptRequestParameter undocumented
+type EventTentativelyAcceptRequestParameter struct {
+ // ProposedNewTime undocumented
+ ProposedNewTime *TimeSlot `json:"ProposedNewTime,omitempty"`
+ // SendResponse undocumented
+ SendResponse *bool `json:"SendResponse,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// EventCancelRequestParameter undocumented
+type EventCancelRequestParameter struct {
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+//
+type EventDismissReminderRequestBuilder struct{ BaseRequestBuilder }
+
+// DismissReminder action undocumented
+func (b *EventRequestBuilder) DismissReminder(reqObj *EventDismissReminderRequestParameter) *EventDismissReminderRequestBuilder {
+ bb := &EventDismissReminderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dismissReminder"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventDismissReminderRequest struct{ BaseRequest }
+
+//
+func (b *EventDismissReminderRequestBuilder) Request() *EventDismissReminderRequest {
+ return &EventDismissReminderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventDismissReminderRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EventSnoozeReminderRequestBuilder struct{ BaseRequestBuilder }
+
+// SnoozeReminder action undocumented
+func (b *EventRequestBuilder) SnoozeReminder(reqObj *EventSnoozeReminderRequestParameter) *EventSnoozeReminderRequestBuilder {
+ bb := &EventSnoozeReminderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/snoozeReminder"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventSnoozeReminderRequest struct{ BaseRequest }
+
+//
+func (b *EventSnoozeReminderRequestBuilder) Request() *EventSnoozeReminderRequest {
+ return &EventSnoozeReminderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventSnoozeReminderRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EventForwardRequestBuilder struct{ BaseRequestBuilder }
+
+// Forward action undocumented
+func (b *EventRequestBuilder) Forward(reqObj *EventForwardRequestParameter) *EventForwardRequestBuilder {
+ bb := &EventForwardRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/forward"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventForwardRequest struct{ BaseRequest }
+
+//
+func (b *EventForwardRequestBuilder) Request() *EventForwardRequest {
+ return &EventForwardRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventForwardRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EventAcceptRequestBuilder struct{ BaseRequestBuilder }
+
+// Accept action undocumented
+func (b *EventRequestBuilder) Accept(reqObj *EventAcceptRequestParameter) *EventAcceptRequestBuilder {
+ bb := &EventAcceptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/accept"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventAcceptRequest struct{ BaseRequest }
+
+//
+func (b *EventAcceptRequestBuilder) Request() *EventAcceptRequest {
+ return &EventAcceptRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventAcceptRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EventDeclineRequestBuilder struct{ BaseRequestBuilder }
+
+// Decline action undocumented
+func (b *EventRequestBuilder) Decline(reqObj *EventDeclineRequestParameter) *EventDeclineRequestBuilder {
+ bb := &EventDeclineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/decline"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventDeclineRequest struct{ BaseRequest }
+
+//
+func (b *EventDeclineRequestBuilder) Request() *EventDeclineRequest {
+ return &EventDeclineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventDeclineRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EventTentativelyAcceptRequestBuilder struct{ BaseRequestBuilder }
+
+// TentativelyAccept action undocumented
+func (b *EventRequestBuilder) TentativelyAccept(reqObj *EventTentativelyAcceptRequestParameter) *EventTentativelyAcceptRequestBuilder {
+ bb := &EventTentativelyAcceptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/tentativelyAccept"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventTentativelyAcceptRequest struct{ BaseRequest }
+
+//
+func (b *EventTentativelyAcceptRequestBuilder) Request() *EventTentativelyAcceptRequest {
+ return &EventTentativelyAcceptRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventTentativelyAcceptRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EventCancelRequestBuilder struct{ BaseRequestBuilder }
+
+// Cancel action undocumented
+func (b *EventRequestBuilder) Cancel(reqObj *EventCancelRequestParameter) *EventCancelRequestBuilder {
+ bb := &EventCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancel"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventCancelRequest struct{ BaseRequest }
+
+//
+func (b *EventCancelRequestBuilder) Request() *EventCancelRequest {
+ return &EventCancelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventCancelRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageModel.go
new file mode 100644
index 00000000..76176931
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EventMessage undocumented
+type EventMessage struct {
+ // Message is the base model of EventMessage
+ Message
+ // MeetingMessageType undocumented
+ MeetingMessageType *MeetingMessageType `json:"meetingMessageType,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *DateTimeTimeZone `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *DateTimeTimeZone `json:"endDateTime,omitempty"`
+ // Location undocumented
+ Location *Location `json:"location,omitempty"`
+ // Type undocumented
+ Type *EventType `json:"type,omitempty"`
+ // Recurrence undocumented
+ Recurrence *PatternedRecurrence `json:"recurrence,omitempty"`
+ // IsOutOfDate undocumented
+ IsOutOfDate *bool `json:"isOutOfDate,omitempty"`
+ // IsAllDay undocumented
+ IsAllDay *bool `json:"isAllDay,omitempty"`
+ // IsDelegated undocumented
+ IsDelegated *bool `json:"isDelegated,omitempty"`
+ // Event undocumented
+ Event *Event `json:"event,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageRequest.go
new file mode 100644
index 00000000..95dd4c37
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EventMessageRequestBuilder is request builder for EventMessage
+type EventMessageRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EventMessageRequest
+func (b *EventMessageRequestBuilder) Request() *EventMessageRequest {
+ return &EventMessageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EventMessageRequest is request for EventMessage
+type EventMessageRequest struct{ BaseRequest }
+
+// Get performs GET request for EventMessage
+func (r *EventMessageRequest) Get(ctx context.Context) (resObj *EventMessage, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EventMessage
+func (r *EventMessageRequest) Update(ctx context.Context, reqObj *EventMessage) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EventMessage
+func (r *EventMessageRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Event is navigation property
+func (b *EventMessageRequestBuilder) Event() *EventRequestBuilder {
+ bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/event"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageRequestObjectAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageRequestObjectAction.go
new file mode 100644
index 00000000..be1f8af6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageRequestObjectAction.go
@@ -0,0 +1,111 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EventMessageRequestObjectAcceptRequestParameter undocumented
+type EventMessageRequestObjectAcceptRequestParameter struct {
+ // SendResponse undocumented
+ SendResponse *bool `json:"SendResponse,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// EventMessageRequestObjectDeclineRequestParameter undocumented
+type EventMessageRequestObjectDeclineRequestParameter struct {
+ // ProposedNewTime undocumented
+ ProposedNewTime *TimeSlot `json:"ProposedNewTime,omitempty"`
+ // SendResponse undocumented
+ SendResponse *bool `json:"SendResponse,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// EventMessageRequestObjectTentativelyAcceptRequestParameter undocumented
+type EventMessageRequestObjectTentativelyAcceptRequestParameter struct {
+ // ProposedNewTime undocumented
+ ProposedNewTime *TimeSlot `json:"ProposedNewTime,omitempty"`
+ // SendResponse undocumented
+ SendResponse *bool `json:"SendResponse,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+//
+type EventMessageRequestObjectAcceptRequestBuilder struct{ BaseRequestBuilder }
+
+// Accept action undocumented
+func (b *EventMessageRequestObjectRequestBuilder) Accept(reqObj *EventMessageRequestObjectAcceptRequestParameter) *EventMessageRequestObjectAcceptRequestBuilder {
+ bb := &EventMessageRequestObjectAcceptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/accept"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventMessageRequestObjectAcceptRequest struct{ BaseRequest }
+
+//
+func (b *EventMessageRequestObjectAcceptRequestBuilder) Request() *EventMessageRequestObjectAcceptRequest {
+ return &EventMessageRequestObjectAcceptRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventMessageRequestObjectAcceptRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EventMessageRequestObjectDeclineRequestBuilder struct{ BaseRequestBuilder }
+
+// Decline action undocumented
+func (b *EventMessageRequestObjectRequestBuilder) Decline(reqObj *EventMessageRequestObjectDeclineRequestParameter) *EventMessageRequestObjectDeclineRequestBuilder {
+ bb := &EventMessageRequestObjectDeclineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/decline"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventMessageRequestObjectDeclineRequest struct{ BaseRequest }
+
+//
+func (b *EventMessageRequestObjectDeclineRequestBuilder) Request() *EventMessageRequestObjectDeclineRequest {
+ return &EventMessageRequestObjectDeclineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventMessageRequestObjectDeclineRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EventMessageRequestObjectTentativelyAcceptRequestBuilder struct{ BaseRequestBuilder }
+
+// TentativelyAccept action undocumented
+func (b *EventMessageRequestObjectRequestBuilder) TentativelyAccept(reqObj *EventMessageRequestObjectTentativelyAcceptRequestParameter) *EventMessageRequestObjectTentativelyAcceptRequestBuilder {
+ bb := &EventMessageRequestObjectTentativelyAcceptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/tentativelyAccept"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventMessageRequestObjectTentativelyAcceptRequest struct{ BaseRequest }
+
+//
+func (b *EventMessageRequestObjectTentativelyAcceptRequestBuilder) Request() *EventMessageRequestObjectTentativelyAcceptRequest {
+ return &EventMessageRequestObjectTentativelyAcceptRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventMessageRequestObjectTentativelyAcceptRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageRequestObjectModel.go
new file mode 100644
index 00000000..acd152ea
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageRequestObjectModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EventMessageRequestObject undocumented
+type EventMessageRequestObject struct {
+ // EventMessage is the base model of EventMessageRequestObject
+ EventMessage
+ // PreviousLocation undocumented
+ PreviousLocation *Location `json:"previousLocation,omitempty"`
+ // PreviousStartDateTime undocumented
+ PreviousStartDateTime *DateTimeTimeZone `json:"previousStartDateTime,omitempty"`
+ // PreviousEndDateTime undocumented
+ PreviousEndDateTime *DateTimeTimeZone `json:"previousEndDateTime,omitempty"`
+ // ResponseRequested undocumented
+ ResponseRequested *bool `json:"responseRequested,omitempty"`
+ // AllowNewTimeProposals undocumented
+ AllowNewTimeProposals *bool `json:"allowNewTimeProposals,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageRequestObjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageRequestObjectRequest.go
new file mode 100644
index 00000000..16b6b7a7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageRequestObjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EventMessageRequestObjectRequestBuilder is request builder for EventMessageRequestObject
+type EventMessageRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EventMessageRequestObjectRequest
+func (b *EventMessageRequestObjectRequestBuilder) Request() *EventMessageRequestObjectRequest {
+ return &EventMessageRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EventMessageRequestObjectRequest is request for EventMessageRequestObject
+type EventMessageRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for EventMessageRequestObject
+func (r *EventMessageRequestObjectRequest) Get(ctx context.Context) (resObj *EventMessageRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EventMessageRequestObject
+func (r *EventMessageRequestObjectRequest) Update(ctx context.Context, reqObj *EventMessageRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EventMessageRequestObject
+func (r *EventMessageRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageResponseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageResponseModel.go
new file mode 100644
index 00000000..48ee9c02
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EventMessageResponseModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EventMessageResponse undocumented
+type EventMessageResponse struct {
+ // EventMessage is the base model of EventMessageResponse
+ EventMessage
+ // ProposedNewTime undocumented
+ ProposedNewTime *TimeSlot `json:"proposedNewTime,omitempty"`
+ // ResponseType undocumented
+ ResponseType *ResponseType `json:"responseType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EventModel.go
new file mode 100644
index 00000000..17389b48
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EventModel.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Event undocumented
+type Event struct {
+ // OutlookItem is the base model of Event
+ OutlookItem
+ // OriginalStartTimeZone undocumented
+ OriginalStartTimeZone *string `json:"originalStartTimeZone,omitempty"`
+ // OriginalEndTimeZone undocumented
+ OriginalEndTimeZone *string `json:"originalEndTimeZone,omitempty"`
+ // ResponseStatus undocumented
+ ResponseStatus *ResponseStatus `json:"responseStatus,omitempty"`
+ // UID undocumented
+ UID *string `json:"uid,omitempty"`
+ // ReminderMinutesBeforeStart undocumented
+ ReminderMinutesBeforeStart *int `json:"reminderMinutesBeforeStart,omitempty"`
+ // IsReminderOn undocumented
+ IsReminderOn *bool `json:"isReminderOn,omitempty"`
+ // HasAttachments undocumented
+ HasAttachments *bool `json:"hasAttachments,omitempty"`
+ // Subject undocumented
+ Subject *string `json:"subject,omitempty"`
+ // Body undocumented
+ Body *ItemBody `json:"body,omitempty"`
+ // BodyPreview undocumented
+ BodyPreview *string `json:"bodyPreview,omitempty"`
+ // Importance undocumented
+ Importance *Importance `json:"importance,omitempty"`
+ // Sensitivity undocumented
+ Sensitivity *Sensitivity `json:"sensitivity,omitempty"`
+ // Start undocumented
+ Start *DateTimeTimeZone `json:"start,omitempty"`
+ // OriginalStart undocumented
+ OriginalStart *time.Time `json:"originalStart,omitempty"`
+ // End undocumented
+ End *DateTimeTimeZone `json:"end,omitempty"`
+ // Location undocumented
+ Location *Location `json:"location,omitempty"`
+ // Locations undocumented
+ Locations []Location `json:"locations,omitempty"`
+ // IsAllDay undocumented
+ IsAllDay *bool `json:"isAllDay,omitempty"`
+ // IsCancelled undocumented
+ IsCancelled *bool `json:"isCancelled,omitempty"`
+ // IsOrganizer undocumented
+ IsOrganizer *bool `json:"isOrganizer,omitempty"`
+ // Recurrence undocumented
+ Recurrence *PatternedRecurrence `json:"recurrence,omitempty"`
+ // ResponseRequested undocumented
+ ResponseRequested *bool `json:"responseRequested,omitempty"`
+ // SeriesMasterID undocumented
+ SeriesMasterID *string `json:"seriesMasterId,omitempty"`
+ // ShowAs undocumented
+ ShowAs *FreeBusyStatus `json:"showAs,omitempty"`
+ // Type undocumented
+ Type *EventType `json:"type,omitempty"`
+ // Attendees undocumented
+ Attendees []Attendee `json:"attendees,omitempty"`
+ // Organizer undocumented
+ Organizer *Recipient `json:"organizer,omitempty"`
+ // WebLink undocumented
+ WebLink *string `json:"webLink,omitempty"`
+ // OnlineMeetingURL undocumented
+ OnlineMeetingURL *string `json:"onlineMeetingUrl,omitempty"`
+ // IsOnlineMeeting undocumented
+ IsOnlineMeeting *bool `json:"isOnlineMeeting,omitempty"`
+ // OnlineMeetingProvider undocumented
+ OnlineMeetingProvider *OnlineMeetingProviderType `json:"onlineMeetingProvider,omitempty"`
+ // OnlineMeeting undocumented
+ OnlineMeeting *OnlineMeetingInfo `json:"onlineMeeting,omitempty"`
+ // AllowNewTimeProposals undocumented
+ AllowNewTimeProposals *bool `json:"allowNewTimeProposals,omitempty"`
+ // Attachments undocumented
+ Attachments []Attachment `json:"attachments,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+ // Calendar undocumented
+ Calendar *Calendar `json:"calendar,omitempty"`
+ // Instances undocumented
+ Instances []Event `json:"instances,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/EventRequest.go
new file mode 100644
index 00000000..4994e189
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EventRequest.go
@@ -0,0 +1,522 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EventRequestBuilder is request builder for Event
+type EventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EventRequest
+func (b *EventRequestBuilder) Request() *EventRequest {
+ return &EventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EventRequest is request for Event
+type EventRequest struct{ BaseRequest }
+
+// Get performs GET request for Event
+func (r *EventRequest) Get(ctx context.Context) (resObj *Event, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Event
+func (r *EventRequest) Update(ctx context.Context, reqObj *Event) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Event
+func (r *EventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Attachments returns request builder for Attachment collection
+func (b *EventRequestBuilder) Attachments() *EventAttachmentsCollectionRequestBuilder {
+ bb := &EventAttachmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/attachments"
+ return bb
+}
+
+// EventAttachmentsCollectionRequestBuilder is request builder for Attachment collection
+type EventAttachmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Attachment collection
+func (b *EventAttachmentsCollectionRequestBuilder) Request() *EventAttachmentsCollectionRequest {
+ return &EventAttachmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Attachment item
+func (b *EventAttachmentsCollectionRequestBuilder) ID(id string) *AttachmentRequestBuilder {
+ bb := &AttachmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EventAttachmentsCollectionRequest is request for Attachment collection
+type EventAttachmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Attachment collection
+func (r *EventAttachmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Attachment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Attachment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Attachment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Attachment collection
+func (r *EventAttachmentsCollectionRequest) Get(ctx context.Context) ([]Attachment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Attachment collection
+func (r *EventAttachmentsCollectionRequest) Add(ctx context.Context, reqObj *Attachment) (resObj *Attachment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Calendar is navigation property
+func (b *EventRequestBuilder) Calendar() *CalendarRequestBuilder {
+ bb := &CalendarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendar"
+ return bb
+}
+
+// Extensions returns request builder for Extension collection
+func (b *EventRequestBuilder) Extensions() *EventExtensionsCollectionRequestBuilder {
+ bb := &EventExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// EventExtensionsCollectionRequestBuilder is request builder for Extension collection
+type EventExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *EventExtensionsCollectionRequestBuilder) Request() *EventExtensionsCollectionRequest {
+ return &EventExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *EventExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EventExtensionsCollectionRequest is request for Extension collection
+type EventExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *EventExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *EventExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Extension collection
+func (r *EventExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Instances returns request builder for Event collection
+func (b *EventRequestBuilder) Instances() *EventInstancesCollectionRequestBuilder {
+ bb := &EventInstancesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/instances"
+ return bb
+}
+
+// EventInstancesCollectionRequestBuilder is request builder for Event collection
+type EventInstancesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Event collection
+func (b *EventInstancesCollectionRequestBuilder) Request() *EventInstancesCollectionRequest {
+ return &EventInstancesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Event item
+func (b *EventInstancesCollectionRequestBuilder) ID(id string) *EventRequestBuilder {
+ bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EventInstancesCollectionRequest is request for Event collection
+type EventInstancesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Event collection
+func (r *EventInstancesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Event, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Event
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Event
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Event collection
+func (r *EventInstancesCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Event collection
+func (r *EventInstancesCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *EventRequestBuilder) MultiValueExtendedProperties() *EventMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &EventMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// EventMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type EventMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *EventMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *EventMultiValueExtendedPropertiesCollectionRequest {
+ return &EventMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *EventMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EventMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type EventMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *EventMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *EventMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *EventMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *EventRequestBuilder) SingleValueExtendedProperties() *EventSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &EventSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// EventSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type EventSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *EventSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *EventSingleValueExtendedPropertiesCollectionRequest {
+ return &EventSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *EventSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EventSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type EventSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *EventSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *EventSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *EventSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EventTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/EventTypeEnum.go
new file mode 100644
index 00000000..975d327f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EventTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EventType undocumented
+type EventType int
+
+const (
+ // EventTypeVSingleInstance undocumented
+ EventTypeVSingleInstance EventType = 0
+ // EventTypeVOccurrence undocumented
+ EventTypeVOccurrence EventType = 1
+ // EventTypeVException undocumented
+ EventTypeVException EventType = 2
+ // EventTypeVSeriesMaster undocumented
+ EventTypeVSeriesMaster EventType = 3
+)
+
+// EventTypePSingleInstance returns a pointer to EventTypeVSingleInstance
+func EventTypePSingleInstance() *EventType {
+ v := EventTypeVSingleInstance
+ return &v
+}
+
+// EventTypePOccurrence returns a pointer to EventTypeVOccurrence
+func EventTypePOccurrence() *EventType {
+ v := EventTypeVOccurrence
+ return &v
+}
+
+// EventTypePException returns a pointer to EventTypeVException
+func EventTypePException() *EventType {
+ v := EventTypeVException
+ return &v
+}
+
+// EventTypePSeriesMaster returns a pointer to EventTypeVSeriesMaster
+func EventTypePSeriesMaster() *EventType {
+ v := EventTypeVSeriesMaster
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchClassificationRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchClassificationRequestObjectModel.go
new file mode 100644
index 00000000..933dcd73
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchClassificationRequestObjectModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExactMatchClassificationRequestObject undocumented
+type ExactMatchClassificationRequestObject struct {
+ // Object is the base model of ExactMatchClassificationRequestObject
+ Object
+ // SensitiveTypeIDs undocumented
+ SensitiveTypeIDs []string `json:"sensitiveTypeIds,omitempty"`
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+ // TimeoutInMs undocumented
+ TimeoutInMs *int `json:"timeoutInMs,omitempty"`
+ // ContentClassifications undocumented
+ ContentClassifications []ContentClassification `json:"contentClassifications,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchClassificationResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchClassificationResultModel.go
new file mode 100644
index 00000000..f5725d1f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchClassificationResultModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExactMatchClassificationResult undocumented
+type ExactMatchClassificationResult struct {
+ // Object is the base model of ExactMatchClassificationResult
+ Object
+ // Classification undocumented
+ Classification []DetectedSensitiveContent `json:"classification,omitempty"`
+ // Errors undocumented
+ Errors []ClassificationError `json:"errors,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchDataStoreAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchDataStoreAction.go
new file mode 100644
index 00000000..c253d9f2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchDataStoreAction.go
@@ -0,0 +1,104 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ExactMatchDataStoreLookupRequestParameter undocumented
+type ExactMatchDataStoreLookupRequestParameter struct {
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+ // Values undocumented
+ Values []string `json:"values,omitempty"`
+ // ResultColumnNames undocumented
+ ResultColumnNames []string `json:"resultColumnNames,omitempty"`
+}
+
+//
+type ExactMatchDataStoreLookupRequestBuilder struct{ BaseRequestBuilder }
+
+// Lookup action undocumented
+func (b *ExactMatchDataStoreRequestBuilder) Lookup(reqObj *ExactMatchDataStoreLookupRequestParameter) *ExactMatchDataStoreLookupRequestBuilder {
+ bb := &ExactMatchDataStoreLookupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/lookup"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ExactMatchDataStoreLookupRequest struct{ BaseRequest }
+
+//
+func (b *ExactMatchDataStoreLookupRequestBuilder) Request() *ExactMatchDataStoreLookupRequest {
+ return &ExactMatchDataStoreLookupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ExactMatchDataStoreLookupRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]string, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]string
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]string
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *ExactMatchDataStoreLookupRequest) Get(ctx context.Context) ([][]string, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchDataStoreModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchDataStoreModel.go
new file mode 100644
index 00000000..d5a41493
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchDataStoreModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ExactMatchDataStore undocumented
+type ExactMatchDataStore struct {
+ // Entity is the base model of ExactMatchDataStore
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DataLastUpdatedDateTime undocumented
+ DataLastUpdatedDateTime *time.Time `json:"dataLastUpdatedDateTime,omitempty"`
+ // Sessions undocumented
+ Sessions []ExactMatchSession `json:"sessions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchDataStoreRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchDataStoreRequest.go
new file mode 100644
index 00000000..efddb871
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchDataStoreRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ExactMatchDataStoreRequestBuilder is request builder for ExactMatchDataStore
+type ExactMatchDataStoreRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExactMatchDataStoreRequest
+func (b *ExactMatchDataStoreRequestBuilder) Request() *ExactMatchDataStoreRequest {
+ return &ExactMatchDataStoreRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExactMatchDataStoreRequest is request for ExactMatchDataStore
+type ExactMatchDataStoreRequest struct{ BaseRequest }
+
+// Get performs GET request for ExactMatchDataStore
+func (r *ExactMatchDataStoreRequest) Get(ctx context.Context) (resObj *ExactMatchDataStore, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ExactMatchDataStore
+func (r *ExactMatchDataStoreRequest) Update(ctx context.Context, reqObj *ExactMatchDataStore) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ExactMatchDataStore
+func (r *ExactMatchDataStoreRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Sessions returns request builder for ExactMatchSession collection
+func (b *ExactMatchDataStoreRequestBuilder) Sessions() *ExactMatchDataStoreSessionsCollectionRequestBuilder {
+ bb := &ExactMatchDataStoreSessionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sessions"
+ return bb
+}
+
+// ExactMatchDataStoreSessionsCollectionRequestBuilder is request builder for ExactMatchSession collection
+type ExactMatchDataStoreSessionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ExactMatchSession collection
+func (b *ExactMatchDataStoreSessionsCollectionRequestBuilder) Request() *ExactMatchDataStoreSessionsCollectionRequest {
+ return &ExactMatchDataStoreSessionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ExactMatchSession item
+func (b *ExactMatchDataStoreSessionsCollectionRequestBuilder) ID(id string) *ExactMatchSessionRequestBuilder {
+ bb := &ExactMatchSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ExactMatchDataStoreSessionsCollectionRequest is request for ExactMatchSession collection
+type ExactMatchDataStoreSessionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ExactMatchSession collection
+func (r *ExactMatchDataStoreSessionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ExactMatchSession, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ExactMatchSession
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ExactMatchSession
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ExactMatchSession collection
+func (r *ExactMatchDataStoreSessionsCollectionRequest) Get(ctx context.Context) ([]ExactMatchSession, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ExactMatchSession collection
+func (r *ExactMatchDataStoreSessionsCollectionRequest) Add(ctx context.Context, reqObj *ExactMatchSession) (resObj *ExactMatchSession, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchJobBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchJobBaseModel.go
new file mode 100644
index 00000000..4d77efe6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchJobBaseModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ExactMatchJobBase undocumented
+type ExactMatchJobBase struct {
+ // Entity is the base model of ExactMatchJobBase
+ Entity
+ // CreationDateTime undocumented
+ CreationDateTime *time.Time `json:"creationDateTime,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // LastUpdatedDateTime undocumented
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+ // CompletionDateTime undocumented
+ CompletionDateTime *time.Time `json:"completionDateTime,omitempty"`
+ // Error undocumented
+ Error *ClassificationError `json:"error,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchLookupJobModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchLookupJobModel.go
new file mode 100644
index 00000000..2679612a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchLookupJobModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExactMatchLookupJob undocumented
+type ExactMatchLookupJob struct {
+ // ExactMatchJobBase is the base model of ExactMatchLookupJob
+ ExactMatchJobBase
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // MatchingRows undocumented
+ MatchingRows []LookupResultRow `json:"matchingRows,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchLookupJobRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchLookupJobRequest.go
new file mode 100644
index 00000000..fcb78930
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchLookupJobRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ExactMatchLookupJobRequestBuilder is request builder for ExactMatchLookupJob
+type ExactMatchLookupJobRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExactMatchLookupJobRequest
+func (b *ExactMatchLookupJobRequestBuilder) Request() *ExactMatchLookupJobRequest {
+ return &ExactMatchLookupJobRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExactMatchLookupJobRequest is request for ExactMatchLookupJob
+type ExactMatchLookupJobRequest struct{ BaseRequest }
+
+// Get performs GET request for ExactMatchLookupJob
+func (r *ExactMatchLookupJobRequest) Get(ctx context.Context) (resObj *ExactMatchLookupJob, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ExactMatchLookupJob
+func (r *ExactMatchLookupJobRequest) Update(ctx context.Context, reqObj *ExactMatchLookupJob) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ExactMatchLookupJob
+func (r *ExactMatchLookupJobRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MatchingRows returns request builder for LookupResultRow collection
+func (b *ExactMatchLookupJobRequestBuilder) MatchingRows() *ExactMatchLookupJobMatchingRowsCollectionRequestBuilder {
+ bb := &ExactMatchLookupJobMatchingRowsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/matchingRows"
+ return bb
+}
+
+// ExactMatchLookupJobMatchingRowsCollectionRequestBuilder is request builder for LookupResultRow collection
+type ExactMatchLookupJobMatchingRowsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for LookupResultRow collection
+func (b *ExactMatchLookupJobMatchingRowsCollectionRequestBuilder) Request() *ExactMatchLookupJobMatchingRowsCollectionRequest {
+ return &ExactMatchLookupJobMatchingRowsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for LookupResultRow item
+func (b *ExactMatchLookupJobMatchingRowsCollectionRequestBuilder) ID(id string) *LookupResultRowRequestBuilder {
+ bb := &LookupResultRowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ExactMatchLookupJobMatchingRowsCollectionRequest is request for LookupResultRow collection
+type ExactMatchLookupJobMatchingRowsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for LookupResultRow collection
+func (r *ExactMatchLookupJobMatchingRowsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]LookupResultRow, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []LookupResultRow
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []LookupResultRow
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for LookupResultRow collection
+func (r *ExactMatchLookupJobMatchingRowsCollectionRequest) Get(ctx context.Context) ([]LookupResultRow, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for LookupResultRow collection
+func (r *ExactMatchLookupJobMatchingRowsCollectionRequest) Add(ctx context.Context, reqObj *LookupResultRow) (resObj *LookupResultRow, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchSessionAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchSessionAction.go
new file mode 100644
index 00000000..a2f7f71a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchSessionAction.go
@@ -0,0 +1,96 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ExactMatchSessionCancelRequestParameter undocumented
+type ExactMatchSessionCancelRequestParameter struct {
+}
+
+// ExactMatchSessionCommitRequestParameter undocumented
+type ExactMatchSessionCommitRequestParameter struct {
+}
+
+// ExactMatchSessionRenewRequestParameter undocumented
+type ExactMatchSessionRenewRequestParameter struct {
+}
+
+//
+type ExactMatchSessionCancelRequestBuilder struct{ BaseRequestBuilder }
+
+// Cancel action undocumented
+func (b *ExactMatchSessionRequestBuilder) Cancel(reqObj *ExactMatchSessionCancelRequestParameter) *ExactMatchSessionCancelRequestBuilder {
+ bb := &ExactMatchSessionCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancel"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ExactMatchSessionCancelRequest struct{ BaseRequest }
+
+//
+func (b *ExactMatchSessionCancelRequestBuilder) Request() *ExactMatchSessionCancelRequest {
+ return &ExactMatchSessionCancelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ExactMatchSessionCancelRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ExactMatchSessionCommitRequestBuilder struct{ BaseRequestBuilder }
+
+// Commit action undocumented
+func (b *ExactMatchSessionRequestBuilder) Commit(reqObj *ExactMatchSessionCommitRequestParameter) *ExactMatchSessionCommitRequestBuilder {
+ bb := &ExactMatchSessionCommitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/commit"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ExactMatchSessionCommitRequest struct{ BaseRequest }
+
+//
+func (b *ExactMatchSessionCommitRequestBuilder) Request() *ExactMatchSessionCommitRequest {
+ return &ExactMatchSessionCommitRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ExactMatchSessionCommitRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ExactMatchSessionRenewRequestBuilder struct{ BaseRequestBuilder }
+
+// Renew action undocumented
+func (b *ExactMatchSessionRequestBuilder) Renew(reqObj *ExactMatchSessionRenewRequestParameter) *ExactMatchSessionRenewRequestBuilder {
+ bb := &ExactMatchSessionRenewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/renew"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ExactMatchSessionRenewRequest struct{ BaseRequest }
+
+//
+func (b *ExactMatchSessionRenewRequestBuilder) Request() *ExactMatchSessionRenewRequest {
+ return &ExactMatchSessionRenewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ExactMatchSessionRenewRequest) Post(ctx context.Context) (resObj *ExactMatchSession, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchSessionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchSessionModel.go
new file mode 100644
index 00000000..7b110ff2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchSessionModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ExactMatchSession undocumented
+type ExactMatchSession struct {
+ // ExactMatchJobBase is the base model of ExactMatchSession
+ ExactMatchJobBase
+ // DatastoreID undocumented
+ DatastoreID *string `json:"datastoreId,omitempty"`
+ // UploadAgentID undocumented
+ UploadAgentID *string `json:"uploadAgentId,omitempty"`
+ // Fields undocumented
+ Fields []string `json:"fields,omitempty"`
+ // FileName undocumented
+ FileName *string `json:"fileName,omitempty"`
+ // Checksum undocumented
+ Checksum *string `json:"checksum,omitempty"`
+ // DataUploadURI undocumented
+ DataUploadURI *string `json:"dataUploadURI,omitempty"`
+ // RemainingBlockCount undocumented
+ RemainingBlockCount *int `json:"remainingBlockCount,omitempty"`
+ // TotalBlockCount undocumented
+ TotalBlockCount *int `json:"totalBlockCount,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // UploadCompletionDateTime undocumented
+ UploadCompletionDateTime *time.Time `json:"uploadCompletionDateTime,omitempty"`
+ // ProcessingCompletionDateTime undocumented
+ ProcessingCompletionDateTime *time.Time `json:"processingCompletionDateTime,omitempty"`
+ // RowsPerBlock undocumented
+ RowsPerBlock *int `json:"rowsPerBlock,omitempty"`
+ // TotalJobCount undocumented
+ TotalJobCount *int `json:"totalJobCount,omitempty"`
+ // RemainingJobCount undocumented
+ RemainingJobCount *int `json:"remainingJobCount,omitempty"`
+ // UploadAgent undocumented
+ UploadAgent *ExactMatchUploadAgent `json:"uploadAgent,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchSessionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchSessionRequest.go
new file mode 100644
index 00000000..2e27695d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchSessionRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ExactMatchSessionRequestBuilder is request builder for ExactMatchSession
+type ExactMatchSessionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExactMatchSessionRequest
+func (b *ExactMatchSessionRequestBuilder) Request() *ExactMatchSessionRequest {
+ return &ExactMatchSessionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExactMatchSessionRequest is request for ExactMatchSession
+type ExactMatchSessionRequest struct{ BaseRequest }
+
+// Get performs GET request for ExactMatchSession
+func (r *ExactMatchSessionRequest) Get(ctx context.Context) (resObj *ExactMatchSession, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ExactMatchSession
+func (r *ExactMatchSessionRequest) Update(ctx context.Context, reqObj *ExactMatchSession) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ExactMatchSession
+func (r *ExactMatchSessionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UploadAgent is navigation property
+func (b *ExactMatchSessionRequestBuilder) UploadAgent() *ExactMatchUploadAgentRequestBuilder {
+ bb := &ExactMatchUploadAgentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/uploadAgent"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchUploadAgentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchUploadAgentModel.go
new file mode 100644
index 00000000..c18132ec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchUploadAgentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ExactMatchUploadAgent undocumented
+type ExactMatchUploadAgent struct {
+ // Entity is the base model of ExactMatchUploadAgent
+ Entity
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // CreationDateTime undocumented
+ CreationDateTime *time.Time `json:"creationDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchUploadAgentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchUploadAgentRequest.go
new file mode 100644
index 00000000..45b390a2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExactMatchUploadAgentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ExactMatchUploadAgentRequestBuilder is request builder for ExactMatchUploadAgent
+type ExactMatchUploadAgentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExactMatchUploadAgentRequest
+func (b *ExactMatchUploadAgentRequestBuilder) Request() *ExactMatchUploadAgentRequest {
+ return &ExactMatchUploadAgentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExactMatchUploadAgentRequest is request for ExactMatchUploadAgent
+type ExactMatchUploadAgentRequest struct{ BaseRequest }
+
+// Get performs GET request for ExactMatchUploadAgent
+func (r *ExactMatchUploadAgentRequest) Get(ctx context.Context) (resObj *ExactMatchUploadAgent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ExactMatchUploadAgent
+func (r *ExactMatchUploadAgentRequest) Update(ctx context.Context, reqObj *ExactMatchUploadAgent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ExactMatchUploadAgent
+func (r *ExactMatchUploadAgentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExchangeIDFormatEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExchangeIDFormatEnum.go
new file mode 100644
index 00000000..3aa5279e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExchangeIDFormatEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExchangeIDFormat undocumented
+type ExchangeIDFormat int
+
+const (
+ // ExchangeIDFormatVEntryID undocumented
+ ExchangeIDFormatVEntryID ExchangeIDFormat = 0
+ // ExchangeIDFormatVEwsID undocumented
+ ExchangeIDFormatVEwsID ExchangeIDFormat = 1
+ // ExchangeIDFormatVImmutableEntryID undocumented
+ ExchangeIDFormatVImmutableEntryID ExchangeIDFormat = 2
+ // ExchangeIDFormatVRestID undocumented
+ ExchangeIDFormatVRestID ExchangeIDFormat = 3
+ // ExchangeIDFormatVRestImmutableEntryID undocumented
+ ExchangeIDFormatVRestImmutableEntryID ExchangeIDFormat = 4
+)
+
+// ExchangeIDFormatPEntryID returns a pointer to ExchangeIDFormatVEntryID
+func ExchangeIDFormatPEntryID() *ExchangeIDFormat {
+ v := ExchangeIDFormatVEntryID
+ return &v
+}
+
+// ExchangeIDFormatPEwsID returns a pointer to ExchangeIDFormatVEwsID
+func ExchangeIDFormatPEwsID() *ExchangeIDFormat {
+ v := ExchangeIDFormatVEwsID
+ return &v
+}
+
+// ExchangeIDFormatPImmutableEntryID returns a pointer to ExchangeIDFormatVImmutableEntryID
+func ExchangeIDFormatPImmutableEntryID() *ExchangeIDFormat {
+ v := ExchangeIDFormatVImmutableEntryID
+ return &v
+}
+
+// ExchangeIDFormatPRestID returns a pointer to ExchangeIDFormatVRestID
+func ExchangeIDFormatPRestID() *ExchangeIDFormat {
+ v := ExchangeIDFormatVRestID
+ return &v
+}
+
+// ExchangeIDFormatPRestImmutableEntryID returns a pointer to ExchangeIDFormatVRestImmutableEntryID
+func ExchangeIDFormatPRestImmutableEntryID() *ExchangeIDFormat {
+ v := ExchangeIDFormatVRestImmutableEntryID
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExcludedAppsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExcludedAppsModel.go
new file mode 100644
index 00000000..2d4158b4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExcludedAppsModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExcludedApps undocumented
+type ExcludedApps struct {
+ // Object is the base model of ExcludedApps
+ Object
+ // Access The value for if MS Office Access should be excluded or not.
+ Access *bool `json:"access,omitempty"`
+ // Excel The value for if MS Office Excel should be excluded or not.
+ Excel *bool `json:"excel,omitempty"`
+ // Groove The value for if MS Office OneDrive for Business - Groove should be excluded or not.
+ Groove *bool `json:"groove,omitempty"`
+ // InfoPath The value for if MS Office InfoPath should be excluded or not.
+ InfoPath *bool `json:"infoPath,omitempty"`
+ // Lync The value for if MS Office Skype for Business - Lync should be excluded or not.
+ Lync *bool `json:"lync,omitempty"`
+ // OneDrive The value for if MS Office OneDrive should be excluded or not.
+ OneDrive *bool `json:"oneDrive,omitempty"`
+ // OneNote The value for if MS Office OneNote should be excluded or not.
+ OneNote *bool `json:"oneNote,omitempty"`
+ // Outlook The value for if MS Office Outlook should be excluded or not.
+ Outlook *bool `json:"outlook,omitempty"`
+ // PowerPoint The value for if MS Office PowerPoint should be excluded or not.
+ PowerPoint *bool `json:"powerPoint,omitempty"`
+ // Publisher The value for if MS Office Publisher should be excluded or not.
+ Publisher *bool `json:"publisher,omitempty"`
+ // SharePointDesigner The value for if MS Office SharePointDesigner should be excluded or not.
+ SharePointDesigner *bool `json:"sharePointDesigner,omitempty"`
+ // Teams The value for if MS Office Teams should be excluded or not.
+ Teams *bool `json:"teams,omitempty"`
+ // Visio The value for if MS Office Visio should be excluded or not.
+ Visio *bool `json:"visio,omitempty"`
+ // Word The value for if MS Office Word should be excluded or not.
+ Word *bool `json:"word,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExclusionGroupAssignmentTargetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExclusionGroupAssignmentTargetModel.go
new file mode 100644
index 00000000..4df756fa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExclusionGroupAssignmentTargetModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExclusionGroupAssignmentTarget undocumented
+type ExclusionGroupAssignmentTarget struct {
+ // GroupAssignmentTarget is the base model of ExclusionGroupAssignmentTarget
+ GroupAssignmentTarget
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExpressionEvaluationDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExpressionEvaluationDetailsModel.go
new file mode 100644
index 00000000..ac17f9f2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExpressionEvaluationDetailsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExpressionEvaluationDetails undocumented
+type ExpressionEvaluationDetails struct {
+ // Object is the base model of ExpressionEvaluationDetails
+ Object
+ // ExpressionResult undocumented
+ ExpressionResult *bool `json:"expressionResult,omitempty"`
+ // Expression undocumented
+ Expression *string `json:"expression,omitempty"`
+ // ExpressionEvaluationDetails undocumented
+ ExpressionEvaluationDetails []ExpressionEvaluationDetails `json:"expressionEvaluationDetails,omitempty"`
+ // PropertyToEvaluate undocumented
+ PropertyToEvaluate *PropertyToEvaluate `json:"propertyToEvaluate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExpressionInputObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExpressionInputObjectModel.go
new file mode 100644
index 00000000..60108c9c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExpressionInputObjectModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExpressionInputObject undocumented
+type ExpressionInputObject struct {
+ // Object is the base model of ExpressionInputObject
+ Object
+ // Definition undocumented
+ Definition *ObjectDefinition `json:"definition,omitempty"`
+ // Properties undocumented
+ Properties []StringKeyObjectValuePair `json:"properties,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExtendedKeyUsageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExtendedKeyUsageModel.go
new file mode 100644
index 00000000..807a8d04
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExtendedKeyUsageModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExtendedKeyUsage undocumented
+type ExtendedKeyUsage struct {
+ // Object is the base model of ExtendedKeyUsage
+ Object
+ // Name Extended Key Usage Name
+ Name *string `json:"name,omitempty"`
+ // ObjectIdentifier Extended Key Usage Object Identifier
+ ObjectIdentifier *string `json:"objectIdentifier,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExtendedPlacePropertiesModelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExtendedPlacePropertiesModelModel.go
new file mode 100644
index 00000000..c2b67a17
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExtendedPlacePropertiesModelModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExtendedPlacePropertiesModel undocumented
+type ExtendedPlacePropertiesModel struct {
+ // Object is the base model of ExtendedPlacePropertiesModel
+ Object
+ // PriceRange undocumented
+ PriceRange *string `json:"priceRange,omitempty"`
+ // MenuURL undocumented
+ MenuURL *string `json:"menuUrl,omitempty"`
+ // BusinessURL undocumented
+ BusinessURL *string `json:"businessUrl,omitempty"`
+ // FormattedAddress undocumented
+ FormattedAddress *string `json:"formattedAddress,omitempty"`
+ // OpeningHoursSpecifications undocumented
+ OpeningHoursSpecifications []OpeningHoursSpecification `json:"openingHoursSpecifications,omitempty"`
+ // TimeZone undocumented
+ TimeZone *string `json:"timeZone,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExtensionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExtensionModel.go
new file mode 100644
index 00000000..30971fcd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExtensionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Extension undocumented
+type Extension struct {
+ // Entity is the base model of Extension
+ Entity
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExtensionPropertyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExtensionPropertyModel.go
new file mode 100644
index 00000000..749b4634
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExtensionPropertyModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExtensionProperty undocumented
+type ExtensionProperty struct {
+ // DirectoryObject is the base model of ExtensionProperty
+ DirectoryObject
+ // AppDisplayName undocumented
+ AppDisplayName *string `json:"appDisplayName,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // DataType undocumented
+ DataType *string `json:"dataType,omitempty"`
+ // IsSyncedFromOnPremises undocumented
+ IsSyncedFromOnPremises *bool `json:"isSyncedFromOnPremises,omitempty"`
+ // TargetObjects undocumented
+ TargetObjects []string `json:"targetObjects,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExtensionPropertyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExtensionPropertyRequest.go
new file mode 100644
index 00000000..346cd271
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExtensionPropertyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ExtensionPropertyRequestBuilder is request builder for ExtensionProperty
+type ExtensionPropertyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExtensionPropertyRequest
+func (b *ExtensionPropertyRequestBuilder) Request() *ExtensionPropertyRequest {
+ return &ExtensionPropertyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExtensionPropertyRequest is request for ExtensionProperty
+type ExtensionPropertyRequest struct{ BaseRequest }
+
+// Get performs GET request for ExtensionProperty
+func (r *ExtensionPropertyRequest) Get(ctx context.Context) (resObj *ExtensionProperty, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ExtensionProperty
+func (r *ExtensionPropertyRequest) Update(ctx context.Context, reqObj *ExtensionProperty) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ExtensionProperty
+func (r *ExtensionPropertyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExtensionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExtensionRequest.go
new file mode 100644
index 00000000..6564e995
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExtensionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ExtensionRequestBuilder is request builder for Extension
+type ExtensionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExtensionRequest
+func (b *ExtensionRequestBuilder) Request() *ExtensionRequest {
+ return &ExtensionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExtensionRequest is request for Extension
+type ExtensionRequest struct{ BaseRequest }
+
+// Get performs GET request for Extension
+func (r *ExtensionRequest) Get(ctx context.Context) (resObj *Extension, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Extension
+func (r *ExtensionRequest) Update(ctx context.Context, reqObj *Extension) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Extension
+func (r *ExtensionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExtensionSchemaPropertyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExtensionSchemaPropertyModel.go
new file mode 100644
index 00000000..5e49b19c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExtensionSchemaPropertyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExtensionSchemaProperty undocumented
+type ExtensionSchemaProperty struct {
+ // Object is the base model of ExtensionSchemaProperty
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExternalAudienceScopeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalAudienceScopeEnum.go
new file mode 100644
index 00000000..bf36edd2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalAudienceScopeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExternalAudienceScope undocumented
+type ExternalAudienceScope int
+
+const (
+ // ExternalAudienceScopeVNone undocumented
+ ExternalAudienceScopeVNone ExternalAudienceScope = 0
+ // ExternalAudienceScopeVContactsOnly undocumented
+ ExternalAudienceScopeVContactsOnly ExternalAudienceScope = 1
+ // ExternalAudienceScopeVAll undocumented
+ ExternalAudienceScopeVAll ExternalAudienceScope = 2
+)
+
+// ExternalAudienceScopePNone returns a pointer to ExternalAudienceScopeVNone
+func ExternalAudienceScopePNone() *ExternalAudienceScope {
+ v := ExternalAudienceScopeVNone
+ return &v
+}
+
+// ExternalAudienceScopePContactsOnly returns a pointer to ExternalAudienceScopeVContactsOnly
+func ExternalAudienceScopePContactsOnly() *ExternalAudienceScope {
+ v := ExternalAudienceScopeVContactsOnly
+ return &v
+}
+
+// ExternalAudienceScopePAll returns a pointer to ExternalAudienceScopeVAll
+func ExternalAudienceScopePAll() *ExternalAudienceScope {
+ v := ExternalAudienceScopeVAll
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExternalConnectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalConnectionModel.go
new file mode 100644
index 00000000..5f0f56ab
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalConnectionModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExternalConnection undocumented
+type ExternalConnection struct {
+ // Entity is the base model of ExternalConnection
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Configuration undocumented
+ Configuration *Configuration `json:"configuration,omitempty"`
+ // Schema undocumented
+ Schema *Schema `json:"schema,omitempty"`
+ // Items undocumented
+ Items []ExternalItem `json:"items,omitempty"`
+ // Operations undocumented
+ Operations []ConnectionOperation `json:"operations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExternalConnectionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalConnectionRequest.go
new file mode 100644
index 00000000..fb5fc1e4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalConnectionRequest.go
@@ -0,0 +1,240 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ExternalConnectionRequestBuilder is request builder for ExternalConnection
+type ExternalConnectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExternalConnectionRequest
+func (b *ExternalConnectionRequestBuilder) Request() *ExternalConnectionRequest {
+ return &ExternalConnectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExternalConnectionRequest is request for ExternalConnection
+type ExternalConnectionRequest struct{ BaseRequest }
+
+// Get performs GET request for ExternalConnection
+func (r *ExternalConnectionRequest) Get(ctx context.Context) (resObj *ExternalConnection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ExternalConnection
+func (r *ExternalConnectionRequest) Update(ctx context.Context, reqObj *ExternalConnection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ExternalConnection
+func (r *ExternalConnectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Items returns request builder for ExternalItem collection
+func (b *ExternalConnectionRequestBuilder) Items() *ExternalConnectionItemsCollectionRequestBuilder {
+ bb := &ExternalConnectionItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/items"
+ return bb
+}
+
+// ExternalConnectionItemsCollectionRequestBuilder is request builder for ExternalItem collection
+type ExternalConnectionItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ExternalItem collection
+func (b *ExternalConnectionItemsCollectionRequestBuilder) Request() *ExternalConnectionItemsCollectionRequest {
+ return &ExternalConnectionItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ExternalItem item
+func (b *ExternalConnectionItemsCollectionRequestBuilder) ID(id string) *ExternalItemRequestBuilder {
+ bb := &ExternalItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ExternalConnectionItemsCollectionRequest is request for ExternalItem collection
+type ExternalConnectionItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ExternalItem collection
+func (r *ExternalConnectionItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ExternalItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ExternalItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ExternalItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ExternalItem collection
+func (r *ExternalConnectionItemsCollectionRequest) Get(ctx context.Context) ([]ExternalItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ExternalItem collection
+func (r *ExternalConnectionItemsCollectionRequest) Add(ctx context.Context, reqObj *ExternalItem) (resObj *ExternalItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Operations returns request builder for ConnectionOperation collection
+func (b *ExternalConnectionRequestBuilder) Operations() *ExternalConnectionOperationsCollectionRequestBuilder {
+ bb := &ExternalConnectionOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/operations"
+ return bb
+}
+
+// ExternalConnectionOperationsCollectionRequestBuilder is request builder for ConnectionOperation collection
+type ExternalConnectionOperationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ConnectionOperation collection
+func (b *ExternalConnectionOperationsCollectionRequestBuilder) Request() *ExternalConnectionOperationsCollectionRequest {
+ return &ExternalConnectionOperationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ConnectionOperation item
+func (b *ExternalConnectionOperationsCollectionRequestBuilder) ID(id string) *ConnectionOperationRequestBuilder {
+ bb := &ConnectionOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ExternalConnectionOperationsCollectionRequest is request for ConnectionOperation collection
+type ExternalConnectionOperationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ConnectionOperation collection
+func (r *ExternalConnectionOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ConnectionOperation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ConnectionOperation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ConnectionOperation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ConnectionOperation collection
+func (r *ExternalConnectionOperationsCollectionRequest) Get(ctx context.Context) ([]ConnectionOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ConnectionOperation collection
+func (r *ExternalConnectionOperationsCollectionRequest) Add(ctx context.Context, reqObj *ConnectionOperation) (resObj *ConnectionOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Schema is navigation property
+func (b *ExternalConnectionRequestBuilder) Schema() *SchemaRequestBuilder {
+ bb := &SchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schema"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExternalFileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalFileModel.go
new file mode 100644
index 00000000..ebf82e1d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalFileModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ExternalFile undocumented
+type ExternalFile struct {
+ // ExternalItem is the base model of ExternalFile
+ ExternalItem
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedDateTime undocumented
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *string `json:"createdBy,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Extension undocumented
+ Extension *string `json:"extension,omitempty"`
+ // Size undocumented
+ Size *int `json:"size,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExternalItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalItemModel.go
new file mode 100644
index 00000000..d785bd9c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalItemModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExternalItem undocumented
+type ExternalItem struct {
+ // Entity is the base model of ExternalItem
+ Entity
+ // Properties undocumented
+ Properties *Properties `json:"properties,omitempty"`
+ // Content undocumented
+ Content *string `json:"content,omitempty"`
+ // ACL undocumented
+ ACL []ACL `json:"acl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExternalItemRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalItemRequest.go
new file mode 100644
index 00000000..91359fe5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalItemRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ExternalItemRequestBuilder is request builder for ExternalItem
+type ExternalItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExternalItemRequest
+func (b *ExternalItemRequestBuilder) Request() *ExternalItemRequest {
+ return &ExternalItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExternalItemRequest is request for ExternalItem
+type ExternalItemRequest struct{ BaseRequest }
+
+// Get performs GET request for ExternalItem
+func (r *ExternalItemRequest) Get(ctx context.Context) (resObj *ExternalItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ExternalItem
+func (r *ExternalItemRequest) Update(ctx context.Context, reqObj *ExternalItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ExternalItem
+func (r *ExternalItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExternalLinkModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalLinkModel.go
new file mode 100644
index 00000000..bbf90ed4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalLinkModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExternalLink undocumented
+type ExternalLink struct {
+ // Object is the base model of ExternalLink
+ Object
+ // Href undocumented
+ Href *string `json:"href,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExternalModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalModel.go
new file mode 100644
index 00000000..0b668b10
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// External undocumented
+type External struct {
+ // Entity is the base model of External
+ Entity
+ // Connections undocumented
+ Connections []ExternalConnection `json:"connections,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ExternalRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalRequest.go
new file mode 100644
index 00000000..2fb76430
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ExternalRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ExternalRequestBuilder is request builder for External
+type ExternalRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExternalRequest
+func (b *ExternalRequestBuilder) Request() *ExternalRequest {
+ return &ExternalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExternalRequest is request for External
+type ExternalRequest struct{ BaseRequest }
+
+// Get performs GET request for External
+func (r *ExternalRequest) Get(ctx context.Context) (resObj *External, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for External
+func (r *ExternalRequest) Update(ctx context.Context, reqObj *External) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for External
+func (r *ExternalRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Connections returns request builder for ExternalConnection collection
+func (b *ExternalRequestBuilder) Connections() *ExternalConnectionsCollectionRequestBuilder {
+ bb := &ExternalConnectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/connections"
+ return bb
+}
+
+// ExternalConnectionsCollectionRequestBuilder is request builder for ExternalConnection collection
+type ExternalConnectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ExternalConnection collection
+func (b *ExternalConnectionsCollectionRequestBuilder) Request() *ExternalConnectionsCollectionRequest {
+ return &ExternalConnectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ExternalConnection item
+func (b *ExternalConnectionsCollectionRequestBuilder) ID(id string) *ExternalConnectionRequestBuilder {
+ bb := &ExternalConnectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ExternalConnectionsCollectionRequest is request for ExternalConnection collection
+type ExternalConnectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ExternalConnection collection
+func (r *ExternalConnectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ExternalConnection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ExternalConnection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ExternalConnection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ExternalConnection collection
+func (r *ExternalConnectionsCollectionRequest) Get(ctx context.Context) ([]ExternalConnection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ExternalConnection collection
+func (r *ExternalConnectionsCollectionRequest) Add(ctx context.Context, reqObj *ExternalConnection) (resObj *ExternalConnection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FeatureRolloutPolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FeatureRolloutPolicyModel.go
new file mode 100644
index 00000000..5940567a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FeatureRolloutPolicyModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FeatureRolloutPolicy undocumented
+type FeatureRolloutPolicy struct {
+ // Entity is the base model of FeatureRolloutPolicy
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Feature undocumented
+ Feature *StagedFeatureName `json:"feature,omitempty"`
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // IsAppliedToOrganization undocumented
+ IsAppliedToOrganization *bool `json:"isAppliedToOrganization,omitempty"`
+ // AppliesTo undocumented
+ AppliesTo []DirectoryObject `json:"appliesTo,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FeatureRolloutPolicyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/FeatureRolloutPolicyRequest.go
new file mode 100644
index 00000000..f2005690
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FeatureRolloutPolicyRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// FeatureRolloutPolicyRequestBuilder is request builder for FeatureRolloutPolicy
+type FeatureRolloutPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns FeatureRolloutPolicyRequest
+func (b *FeatureRolloutPolicyRequestBuilder) Request() *FeatureRolloutPolicyRequest {
+ return &FeatureRolloutPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// FeatureRolloutPolicyRequest is request for FeatureRolloutPolicy
+type FeatureRolloutPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for FeatureRolloutPolicy
+func (r *FeatureRolloutPolicyRequest) Get(ctx context.Context) (resObj *FeatureRolloutPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for FeatureRolloutPolicy
+func (r *FeatureRolloutPolicyRequest) Update(ctx context.Context, reqObj *FeatureRolloutPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for FeatureRolloutPolicy
+func (r *FeatureRolloutPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AppliesTo returns request builder for DirectoryObject collection
+func (b *FeatureRolloutPolicyRequestBuilder) AppliesTo() *FeatureRolloutPolicyAppliesToCollectionRequestBuilder {
+ bb := &FeatureRolloutPolicyAppliesToCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appliesTo"
+ return bb
+}
+
+// FeatureRolloutPolicyAppliesToCollectionRequestBuilder is request builder for DirectoryObject collection
+type FeatureRolloutPolicyAppliesToCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *FeatureRolloutPolicyAppliesToCollectionRequestBuilder) Request() *FeatureRolloutPolicyAppliesToCollectionRequest {
+ return &FeatureRolloutPolicyAppliesToCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *FeatureRolloutPolicyAppliesToCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// FeatureRolloutPolicyAppliesToCollectionRequest is request for DirectoryObject collection
+type FeatureRolloutPolicyAppliesToCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *FeatureRolloutPolicyAppliesToCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *FeatureRolloutPolicyAppliesToCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *FeatureRolloutPolicyAppliesToCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FeatureTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/FeatureTypeEnum.go
new file mode 100644
index 00000000..40a26a9c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FeatureTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FeatureType undocumented
+type FeatureType int
+
+const (
+ // FeatureTypeVRegistration undocumented
+ FeatureTypeVRegistration FeatureType = 0
+ // FeatureTypeVReset undocumented
+ FeatureTypeVReset FeatureType = 1
+ // FeatureTypeVUnknownFutureValue undocumented
+ FeatureTypeVUnknownFutureValue FeatureType = 2
+)
+
+// FeatureTypePRegistration returns a pointer to FeatureTypeVRegistration
+func FeatureTypePRegistration() *FeatureType {
+ v := FeatureTypeVRegistration
+ return &v
+}
+
+// FeatureTypePReset returns a pointer to FeatureTypeVReset
+func FeatureTypePReset() *FeatureType {
+ v := FeatureTypeVReset
+ return &v
+}
+
+// FeatureTypePUnknownFutureValue returns a pointer to FeatureTypeVUnknownFutureValue
+func FeatureTypePUnknownFutureValue() *FeatureType {
+ v := FeatureTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FeatureUsageDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FeatureUsageDetailModel.go
new file mode 100644
index 00000000..19b77a4c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FeatureUsageDetailModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// FeatureUsageDetail undocumented
+type FeatureUsageDetail struct {
+ // Object is the base model of FeatureUsageDetail
+ Object
+ // FeatureName undocumented
+ FeatureName *string `json:"featureName,omitempty"`
+ // LicenseRequired undocumented
+ LicenseRequired *AzureADLicenseType `json:"licenseRequired,omitempty"`
+ // LicenseAssigned undocumented
+ LicenseAssigned *AzureADLicenseType `json:"licenseAssigned,omitempty"`
+ // LastUsedDateTime undocumented
+ LastUsedDateTime *time.Time `json:"lastUsedDateTime,omitempty"`
+ // LastConfiguredDateTime undocumented
+ LastConfiguredDateTime *time.Time `json:"lastConfiguredDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FieldValueSetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FieldValueSetModel.go
new file mode 100644
index 00000000..23d4cfd1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FieldValueSetModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FieldValueSet undocumented
+type FieldValueSet struct {
+ // Entity is the base model of FieldValueSet
+ Entity
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FieldValueSetRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/FieldValueSetRequest.go
new file mode 100644
index 00000000..94498be5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FieldValueSetRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// FieldValueSetRequestBuilder is request builder for FieldValueSet
+type FieldValueSetRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns FieldValueSetRequest
+func (b *FieldValueSetRequestBuilder) Request() *FieldValueSetRequest {
+ return &FieldValueSetRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// FieldValueSetRequest is request for FieldValueSet
+type FieldValueSetRequest struct{ BaseRequest }
+
+// Get performs GET request for FieldValueSet
+func (r *FieldValueSetRequest) Get(ctx context.Context) (resObj *FieldValueSet, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for FieldValueSet
+func (r *FieldValueSetRequest) Update(ctx context.Context, reqObj *FieldValueSet) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for FieldValueSet
+func (r *FieldValueSetRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FileAssessmentRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FileAssessmentRequestObjectModel.go
new file mode 100644
index 00000000..46fe71ca
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FileAssessmentRequestObjectModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FileAssessmentRequestObject undocumented
+type FileAssessmentRequestObject struct {
+ // ThreatAssessmentRequestObject is the base model of FileAssessmentRequestObject
+ ThreatAssessmentRequestObject
+ // FileName undocumented
+ FileName *string `json:"fileName,omitempty"`
+ // ContentData undocumented
+ ContentData *string `json:"contentData,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FileAttachmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FileAttachmentModel.go
new file mode 100644
index 00000000..4d4774bf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FileAttachmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FileAttachment undocumented
+type FileAttachment struct {
+ // Attachment is the base model of FileAttachment
+ Attachment
+ // ContentID undocumented
+ ContentID *string `json:"contentId,omitempty"`
+ // ContentLocation undocumented
+ ContentLocation *string `json:"contentLocation,omitempty"`
+ // ContentBytes undocumented
+ ContentBytes *Binary `json:"contentBytes,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FileClassificationRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FileClassificationRequestObjectModel.go
new file mode 100644
index 00000000..a0fb98db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FileClassificationRequestObjectModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FileClassificationRequestObject undocumented
+type FileClassificationRequestObject struct {
+ // Entity is the base model of FileClassificationRequestObject
+ Entity
+ // File undocumented
+ File *Stream `json:"file,omitempty"`
+ // SensitiveTypeIDs undocumented
+ SensitiveTypeIDs []string `json:"sensitiveTypeIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FileClassificationRequestObjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/FileClassificationRequestObjectRequest.go
new file mode 100644
index 00000000..d2736da6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FileClassificationRequestObjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// FileClassificationRequestObjectRequestBuilder is request builder for FileClassificationRequestObject
+type FileClassificationRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns FileClassificationRequestObjectRequest
+func (b *FileClassificationRequestObjectRequestBuilder) Request() *FileClassificationRequestObjectRequest {
+ return &FileClassificationRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// FileClassificationRequestObjectRequest is request for FileClassificationRequestObject
+type FileClassificationRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for FileClassificationRequestObject
+func (r *FileClassificationRequestObjectRequest) Get(ctx context.Context) (resObj *FileClassificationRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for FileClassificationRequestObject
+func (r *FileClassificationRequestObjectRequest) Update(ctx context.Context, reqObj *FileClassificationRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for FileClassificationRequestObject
+func (r *FileClassificationRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FileEncryptionInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FileEncryptionInfoModel.go
new file mode 100644
index 00000000..510a1ef1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FileEncryptionInfoModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FileEncryptionInfo undocumented
+type FileEncryptionInfo struct {
+ // Object is the base model of FileEncryptionInfo
+ Object
+ // EncryptionKey The key used to encrypt the file content.
+ EncryptionKey *Binary `json:"encryptionKey,omitempty"`
+ // InitializationVector The initialization vector used for the encryption algorithm.
+ InitializationVector *Binary `json:"initializationVector,omitempty"`
+ // Mac The hash of the encrypted file content + IV (content hash).
+ Mac *Binary `json:"mac,omitempty"`
+ // MacKey The key used to get mac.
+ MacKey *Binary `json:"macKey,omitempty"`
+ // ProfileIdentifier The the profile identifier.
+ ProfileIdentifier *string `json:"profileIdentifier,omitempty"`
+ // FileDigest The file digest prior to encryption.
+ FileDigest *Binary `json:"fileDigest,omitempty"`
+ // FileDigestAlgorithm The file digest algorithm.
+ FileDigestAlgorithm *string `json:"fileDigestAlgorithm,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FileHashModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FileHashModel.go
new file mode 100644
index 00000000..f1a6dbb5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FileHashModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FileHash undocumented
+type FileHash struct {
+ // Object is the base model of FileHash
+ Object
+ // HashType undocumented
+ HashType *FileHashType `json:"hashType,omitempty"`
+ // HashValue undocumented
+ HashValue *string `json:"hashValue,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FileHashTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/FileHashTypeEnum.go
new file mode 100644
index 00000000..f21c9d73
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FileHashTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FileHashType undocumented
+type FileHashType int
+
+const (
+ // FileHashTypeVUnknown undocumented
+ FileHashTypeVUnknown FileHashType = 0
+ // FileHashTypeVSha1 undocumented
+ FileHashTypeVSha1 FileHashType = 1
+ // FileHashTypeVSha256 undocumented
+ FileHashTypeVSha256 FileHashType = 2
+ // FileHashTypeVMd5 undocumented
+ FileHashTypeVMd5 FileHashType = 3
+ // FileHashTypeVAuthenticodeHash256 undocumented
+ FileHashTypeVAuthenticodeHash256 FileHashType = 4
+ // FileHashTypeVLsHash undocumented
+ FileHashTypeVLsHash FileHashType = 5
+ // FileHashTypeVCtph undocumented
+ FileHashTypeVCtph FileHashType = 6
+ // FileHashTypeVUnknownFutureValue undocumented
+ FileHashTypeVUnknownFutureValue FileHashType = 127
+)
+
+// FileHashTypePUnknown returns a pointer to FileHashTypeVUnknown
+func FileHashTypePUnknown() *FileHashType {
+ v := FileHashTypeVUnknown
+ return &v
+}
+
+// FileHashTypePSha1 returns a pointer to FileHashTypeVSha1
+func FileHashTypePSha1() *FileHashType {
+ v := FileHashTypeVSha1
+ return &v
+}
+
+// FileHashTypePSha256 returns a pointer to FileHashTypeVSha256
+func FileHashTypePSha256() *FileHashType {
+ v := FileHashTypeVSha256
+ return &v
+}
+
+// FileHashTypePMd5 returns a pointer to FileHashTypeVMd5
+func FileHashTypePMd5() *FileHashType {
+ v := FileHashTypeVMd5
+ return &v
+}
+
+// FileHashTypePAuthenticodeHash256 returns a pointer to FileHashTypeVAuthenticodeHash256
+func FileHashTypePAuthenticodeHash256() *FileHashType {
+ v := FileHashTypeVAuthenticodeHash256
+ return &v
+}
+
+// FileHashTypePLsHash returns a pointer to FileHashTypeVLsHash
+func FileHashTypePLsHash() *FileHashType {
+ v := FileHashTypeVLsHash
+ return &v
+}
+
+// FileHashTypePCtph returns a pointer to FileHashTypeVCtph
+func FileHashTypePCtph() *FileHashType {
+ v := FileHashTypeVCtph
+ return &v
+}
+
+// FileHashTypePUnknownFutureValue returns a pointer to FileHashTypeVUnknownFutureValue
+func FileHashTypePUnknownFutureValue() *FileHashType {
+ v := FileHashTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FileModel.go
new file mode 100644
index 00000000..5cfe5b17
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FileModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// File undocumented
+type File struct {
+ // Object is the base model of File
+ Object
+ // Hashes undocumented
+ Hashes *Hashes `json:"hashes,omitempty"`
+ // MimeType undocumented
+ MimeType *string `json:"mimeType,omitempty"`
+ // ProcessingMetadata undocumented
+ ProcessingMetadata *bool `json:"processingMetadata,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FileSecurityProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FileSecurityProfileModel.go
new file mode 100644
index 00000000..f73c3611
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FileSecurityProfileModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// FileSecurityProfile undocumented
+type FileSecurityProfile struct {
+ // Entity is the base model of FileSecurityProfile
+ Entity
+ // ActivityGroupNames undocumented
+ ActivityGroupNames []string `json:"activityGroupNames,omitempty"`
+ // AzureSubscriptionID undocumented
+ AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // CertificateThumbprint undocumented
+ CertificateThumbprint *string `json:"certificateThumbprint,omitempty"`
+ // Extensions undocumented
+ Extensions []string `json:"extensions,omitempty"`
+ // FileType undocumented
+ FileType *string `json:"fileType,omitempty"`
+ // FirstSeenDateTime undocumented
+ FirstSeenDateTime *time.Time `json:"firstSeenDateTime,omitempty"`
+ // Hashes undocumented
+ Hashes []FileHash `json:"hashes,omitempty"`
+ // LastSeenDateTime undocumented
+ LastSeenDateTime *time.Time `json:"lastSeenDateTime,omitempty"`
+ // MalwareStates undocumented
+ MalwareStates []MalwareState `json:"malwareStates,omitempty"`
+ // Names undocumented
+ Names []string `json:"names,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // Size undocumented
+ Size *int `json:"size,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+ // VulnerabilityStates undocumented
+ VulnerabilityStates []VulnerabilityState `json:"vulnerabilityStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FileSecurityProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/FileSecurityProfileRequest.go
new file mode 100644
index 00000000..5e0052d2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FileSecurityProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// FileSecurityProfileRequestBuilder is request builder for FileSecurityProfile
+type FileSecurityProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns FileSecurityProfileRequest
+func (b *FileSecurityProfileRequestBuilder) Request() *FileSecurityProfileRequest {
+ return &FileSecurityProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// FileSecurityProfileRequest is request for FileSecurityProfile
+type FileSecurityProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for FileSecurityProfile
+func (r *FileSecurityProfileRequest) Get(ctx context.Context) (resObj *FileSecurityProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for FileSecurityProfile
+func (r *FileSecurityProfileRequest) Update(ctx context.Context, reqObj *FileSecurityProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for FileSecurityProfile
+func (r *FileSecurityProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FileSecurityStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FileSecurityStateModel.go
new file mode 100644
index 00000000..a50e2dba
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FileSecurityStateModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FileSecurityState undocumented
+type FileSecurityState struct {
+ // Object is the base model of FileSecurityState
+ Object
+ // FileHash undocumented
+ FileHash *FileHash `json:"fileHash,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Path undocumented
+ Path *string `json:"path,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FileSystemInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FileSystemInfoModel.go
new file mode 100644
index 00000000..d0c5713a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FileSystemInfoModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// FileSystemInfo undocumented
+type FileSystemInfo struct {
+ // Object is the base model of FileSystemInfo
+ Object
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastAccessedDateTime undocumented
+ LastAccessedDateTime *time.Time `json:"lastAccessedDateTime,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FileVaultStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/FileVaultStateEnum.go
new file mode 100644
index 00000000..7468b91a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FileVaultStateEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FileVaultState undocumented
+type FileVaultState int
+
+const (
+ // FileVaultStateVSuccess undocumented
+ FileVaultStateVSuccess FileVaultState = 0
+ // FileVaultStateVDriveEncryptedByUser undocumented
+ FileVaultStateVDriveEncryptedByUser FileVaultState = 1
+ // FileVaultStateVUserDeferredEncryption undocumented
+ FileVaultStateVUserDeferredEncryption FileVaultState = 2
+ // FileVaultStateVEscrowNotEnabled undocumented
+ FileVaultStateVEscrowNotEnabled FileVaultState = 4
+)
+
+// FileVaultStatePSuccess returns a pointer to FileVaultStateVSuccess
+func FileVaultStatePSuccess() *FileVaultState {
+ v := FileVaultStateVSuccess
+ return &v
+}
+
+// FileVaultStatePDriveEncryptedByUser returns a pointer to FileVaultStateVDriveEncryptedByUser
+func FileVaultStatePDriveEncryptedByUser() *FileVaultState {
+ v := FileVaultStateVDriveEncryptedByUser
+ return &v
+}
+
+// FileVaultStatePUserDeferredEncryption returns a pointer to FileVaultStateVUserDeferredEncryption
+func FileVaultStatePUserDeferredEncryption() *FileVaultState {
+ v := FileVaultStateVUserDeferredEncryption
+ return &v
+}
+
+// FileVaultStatePEscrowNotEnabled returns a pointer to FileVaultStateVEscrowNotEnabled
+func FileVaultStatePEscrowNotEnabled() *FileVaultState {
+ v := FileVaultStateVEscrowNotEnabled
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FilterClauseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FilterClauseModel.go
new file mode 100644
index 00000000..d4229ab9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FilterClauseModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FilterClause undocumented
+type FilterClause struct {
+ // Object is the base model of FilterClause
+ Object
+ // OperatorName undocumented
+ OperatorName *string `json:"operatorName,omitempty"`
+ // SourceOperandName undocumented
+ SourceOperandName *string `json:"sourceOperandName,omitempty"`
+ // TargetOperand undocumented
+ TargetOperand *FilterOperand `json:"targetOperand,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FilterGroupModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FilterGroupModel.go
new file mode 100644
index 00000000..6c64ae44
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FilterGroupModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FilterGroup undocumented
+type FilterGroup struct {
+ // Object is the base model of FilterGroup
+ Object
+ // Clauses undocumented
+ Clauses []FilterClause `json:"clauses,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FilterModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FilterModel.go
new file mode 100644
index 00000000..f3396bb8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FilterModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Filter undocumented
+type Filter struct {
+ // Object is the base model of Filter
+ Object
+ // Groups undocumented
+ Groups []FilterGroup `json:"groups,omitempty"`
+ // InputFilterGroups undocumented
+ InputFilterGroups []FilterGroup `json:"inputFilterGroups,omitempty"`
+ // CategoryFilterGroups undocumented
+ CategoryFilterGroups []FilterGroup `json:"categoryFilterGroups,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FilterOperandModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FilterOperandModel.go
new file mode 100644
index 00000000..b2a6511c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FilterOperandModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FilterOperand undocumented
+type FilterOperand struct {
+ // Object is the base model of FilterOperand
+ Object
+ // Values undocumented
+ Values []string `json:"values,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FilterOperatorSchemaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FilterOperatorSchemaModel.go
new file mode 100644
index 00000000..f60c3a12
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FilterOperatorSchemaModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FilterOperatorSchema undocumented
+type FilterOperatorSchema struct {
+ // Entity is the base model of FilterOperatorSchema
+ Entity
+ // Arity undocumented
+ Arity *ScopeOperatorType `json:"arity,omitempty"`
+ // MultivaluedComparisonType undocumented
+ MultivaluedComparisonType *ScopeOperatorMultiValuedComparisonType `json:"multivaluedComparisonType,omitempty"`
+ // SupportedAttributeTypes undocumented
+ SupportedAttributeTypes []AttributeType `json:"supportedAttributeTypes,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FilterOperatorSchemaRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/FilterOperatorSchemaRequest.go
new file mode 100644
index 00000000..a660d5be
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FilterOperatorSchemaRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// FilterOperatorSchemaRequestBuilder is request builder for FilterOperatorSchema
+type FilterOperatorSchemaRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns FilterOperatorSchemaRequest
+func (b *FilterOperatorSchemaRequestBuilder) Request() *FilterOperatorSchemaRequest {
+ return &FilterOperatorSchemaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// FilterOperatorSchemaRequest is request for FilterOperatorSchema
+type FilterOperatorSchemaRequest struct{ BaseRequest }
+
+// Get performs GET request for FilterOperatorSchema
+func (r *FilterOperatorSchemaRequest) Get(ctx context.Context) (resObj *FilterOperatorSchema, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for FilterOperatorSchema
+func (r *FilterOperatorSchemaRequest) Update(ctx context.Context, reqObj *FilterOperatorSchema) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for FilterOperatorSchema
+func (r *FilterOperatorSchemaRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FinancialsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FinancialsModel.go
new file mode 100644
index 00000000..fcae9cab
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FinancialsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Financials undocumented
+type Financials struct {
+ // Entity is the base model of Financials
+ Entity
+ // Companies undocumented
+ Companies []Company `json:"companies,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FinancialsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/FinancialsRequest.go
new file mode 100644
index 00000000..7ed2a8d8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FinancialsRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// FinancialsRequestBuilder is request builder for Financials
+type FinancialsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns FinancialsRequest
+func (b *FinancialsRequestBuilder) Request() *FinancialsRequest {
+ return &FinancialsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// FinancialsRequest is request for Financials
+type FinancialsRequest struct{ BaseRequest }
+
+// Get performs GET request for Financials
+func (r *FinancialsRequest) Get(ctx context.Context) (resObj *Financials, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Financials
+func (r *FinancialsRequest) Update(ctx context.Context, reqObj *Financials) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Financials
+func (r *FinancialsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Companies returns request builder for Company collection
+func (b *FinancialsRequestBuilder) Companies() *FinancialsCompaniesCollectionRequestBuilder {
+ bb := &FinancialsCompaniesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/companies"
+ return bb
+}
+
+// FinancialsCompaniesCollectionRequestBuilder is request builder for Company collection
+type FinancialsCompaniesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Company collection
+func (b *FinancialsCompaniesCollectionRequestBuilder) Request() *FinancialsCompaniesCollectionRequest {
+ return &FinancialsCompaniesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Company item
+func (b *FinancialsCompaniesCollectionRequestBuilder) ID(id string) *CompanyRequestBuilder {
+ bb := &CompanyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// FinancialsCompaniesCollectionRequest is request for Company collection
+type FinancialsCompaniesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Company collection
+func (r *FinancialsCompaniesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Company, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Company
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Company
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Company collection
+func (r *FinancialsCompaniesCollectionRequest) Get(ctx context.Context) ([]Company, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Company collection
+func (r *FinancialsCompaniesCollectionRequest) Add(ctx context.Context, reqObj *Company) (resObj *Company, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FirewallCertificateRevocationListCheckMethodTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/FirewallCertificateRevocationListCheckMethodTypeEnum.go
new file mode 100644
index 00000000..51f2c573
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FirewallCertificateRevocationListCheckMethodTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FirewallCertificateRevocationListCheckMethodType undocumented
+type FirewallCertificateRevocationListCheckMethodType int
+
+const (
+ // FirewallCertificateRevocationListCheckMethodTypeVDeviceDefault undocumented
+ FirewallCertificateRevocationListCheckMethodTypeVDeviceDefault FirewallCertificateRevocationListCheckMethodType = 0
+ // FirewallCertificateRevocationListCheckMethodTypeVNone undocumented
+ FirewallCertificateRevocationListCheckMethodTypeVNone FirewallCertificateRevocationListCheckMethodType = 1
+ // FirewallCertificateRevocationListCheckMethodTypeVAttempt undocumented
+ FirewallCertificateRevocationListCheckMethodTypeVAttempt FirewallCertificateRevocationListCheckMethodType = 2
+ // FirewallCertificateRevocationListCheckMethodTypeVRequire undocumented
+ FirewallCertificateRevocationListCheckMethodTypeVRequire FirewallCertificateRevocationListCheckMethodType = 3
+)
+
+// FirewallCertificateRevocationListCheckMethodTypePDeviceDefault returns a pointer to FirewallCertificateRevocationListCheckMethodTypeVDeviceDefault
+func FirewallCertificateRevocationListCheckMethodTypePDeviceDefault() *FirewallCertificateRevocationListCheckMethodType {
+ v := FirewallCertificateRevocationListCheckMethodTypeVDeviceDefault
+ return &v
+}
+
+// FirewallCertificateRevocationListCheckMethodTypePNone returns a pointer to FirewallCertificateRevocationListCheckMethodTypeVNone
+func FirewallCertificateRevocationListCheckMethodTypePNone() *FirewallCertificateRevocationListCheckMethodType {
+ v := FirewallCertificateRevocationListCheckMethodTypeVNone
+ return &v
+}
+
+// FirewallCertificateRevocationListCheckMethodTypePAttempt returns a pointer to FirewallCertificateRevocationListCheckMethodTypeVAttempt
+func FirewallCertificateRevocationListCheckMethodTypePAttempt() *FirewallCertificateRevocationListCheckMethodType {
+ v := FirewallCertificateRevocationListCheckMethodTypeVAttempt
+ return &v
+}
+
+// FirewallCertificateRevocationListCheckMethodTypePRequire returns a pointer to FirewallCertificateRevocationListCheckMethodTypeVRequire
+func FirewallCertificateRevocationListCheckMethodTypePRequire() *FirewallCertificateRevocationListCheckMethodType {
+ v := FirewallCertificateRevocationListCheckMethodTypeVRequire
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FirewallPacketQueueingMethodTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/FirewallPacketQueueingMethodTypeEnum.go
new file mode 100644
index 00000000..0c4347ac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FirewallPacketQueueingMethodTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FirewallPacketQueueingMethodType undocumented
+type FirewallPacketQueueingMethodType int
+
+const (
+ // FirewallPacketQueueingMethodTypeVDeviceDefault undocumented
+ FirewallPacketQueueingMethodTypeVDeviceDefault FirewallPacketQueueingMethodType = 0
+ // FirewallPacketQueueingMethodTypeVDisabled undocumented
+ FirewallPacketQueueingMethodTypeVDisabled FirewallPacketQueueingMethodType = 1
+ // FirewallPacketQueueingMethodTypeVQueueInbound undocumented
+ FirewallPacketQueueingMethodTypeVQueueInbound FirewallPacketQueueingMethodType = 2
+ // FirewallPacketQueueingMethodTypeVQueueOutbound undocumented
+ FirewallPacketQueueingMethodTypeVQueueOutbound FirewallPacketQueueingMethodType = 3
+ // FirewallPacketQueueingMethodTypeVQueueBoth undocumented
+ FirewallPacketQueueingMethodTypeVQueueBoth FirewallPacketQueueingMethodType = 4
+)
+
+// FirewallPacketQueueingMethodTypePDeviceDefault returns a pointer to FirewallPacketQueueingMethodTypeVDeviceDefault
+func FirewallPacketQueueingMethodTypePDeviceDefault() *FirewallPacketQueueingMethodType {
+ v := FirewallPacketQueueingMethodTypeVDeviceDefault
+ return &v
+}
+
+// FirewallPacketQueueingMethodTypePDisabled returns a pointer to FirewallPacketQueueingMethodTypeVDisabled
+func FirewallPacketQueueingMethodTypePDisabled() *FirewallPacketQueueingMethodType {
+ v := FirewallPacketQueueingMethodTypeVDisabled
+ return &v
+}
+
+// FirewallPacketQueueingMethodTypePQueueInbound returns a pointer to FirewallPacketQueueingMethodTypeVQueueInbound
+func FirewallPacketQueueingMethodTypePQueueInbound() *FirewallPacketQueueingMethodType {
+ v := FirewallPacketQueueingMethodTypeVQueueInbound
+ return &v
+}
+
+// FirewallPacketQueueingMethodTypePQueueOutbound returns a pointer to FirewallPacketQueueingMethodTypeVQueueOutbound
+func FirewallPacketQueueingMethodTypePQueueOutbound() *FirewallPacketQueueingMethodType {
+ v := FirewallPacketQueueingMethodTypeVQueueOutbound
+ return &v
+}
+
+// FirewallPacketQueueingMethodTypePQueueBoth returns a pointer to FirewallPacketQueueingMethodTypeVQueueBoth
+func FirewallPacketQueueingMethodTypePQueueBoth() *FirewallPacketQueueingMethodType {
+ v := FirewallPacketQueueingMethodTypeVQueueBoth
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FirewallPreSharedKeyEncodingMethodTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/FirewallPreSharedKeyEncodingMethodTypeEnum.go
new file mode 100644
index 00000000..a6bcc5e8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FirewallPreSharedKeyEncodingMethodTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FirewallPreSharedKeyEncodingMethodType undocumented
+type FirewallPreSharedKeyEncodingMethodType int
+
+const (
+ // FirewallPreSharedKeyEncodingMethodTypeVDeviceDefault undocumented
+ FirewallPreSharedKeyEncodingMethodTypeVDeviceDefault FirewallPreSharedKeyEncodingMethodType = 0
+ // FirewallPreSharedKeyEncodingMethodTypeVNone undocumented
+ FirewallPreSharedKeyEncodingMethodTypeVNone FirewallPreSharedKeyEncodingMethodType = 1
+ // FirewallPreSharedKeyEncodingMethodTypeVUtF8 undocumented
+ FirewallPreSharedKeyEncodingMethodTypeVUtF8 FirewallPreSharedKeyEncodingMethodType = 2
+)
+
+// FirewallPreSharedKeyEncodingMethodTypePDeviceDefault returns a pointer to FirewallPreSharedKeyEncodingMethodTypeVDeviceDefault
+func FirewallPreSharedKeyEncodingMethodTypePDeviceDefault() *FirewallPreSharedKeyEncodingMethodType {
+ v := FirewallPreSharedKeyEncodingMethodTypeVDeviceDefault
+ return &v
+}
+
+// FirewallPreSharedKeyEncodingMethodTypePNone returns a pointer to FirewallPreSharedKeyEncodingMethodTypeVNone
+func FirewallPreSharedKeyEncodingMethodTypePNone() *FirewallPreSharedKeyEncodingMethodType {
+ v := FirewallPreSharedKeyEncodingMethodTypeVNone
+ return &v
+}
+
+// FirewallPreSharedKeyEncodingMethodTypePUtF8 returns a pointer to FirewallPreSharedKeyEncodingMethodTypeVUtF8
+func FirewallPreSharedKeyEncodingMethodTypePUtF8() *FirewallPreSharedKeyEncodingMethodType {
+ v := FirewallPreSharedKeyEncodingMethodTypeVUtF8
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FlexSchemaContainerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FlexSchemaContainerModel.go
new file mode 100644
index 00000000..d5cd338b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FlexSchemaContainerModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FlexSchemaContainer undocumented
+type FlexSchemaContainer struct {
+ // Object is the base model of FlexSchemaContainer
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FocusActivityStatisticsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FocusActivityStatisticsModel.go
new file mode 100644
index 00000000..3d9ebf27
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FocusActivityStatisticsModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FocusActivityStatistics undocumented
+type FocusActivityStatistics struct {
+ // ActivityStatistics is the base model of FocusActivityStatistics
+ ActivityStatistics
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FolderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FolderModel.go
new file mode 100644
index 00000000..f310c510
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FolderModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Folder undocumented
+type Folder struct {
+ // Object is the base model of Folder
+ Object
+ // ChildCount undocumented
+ ChildCount *int `json:"childCount,omitempty"`
+ // View undocumented
+ View *FolderView `json:"view,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FolderProtectionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/FolderProtectionTypeEnum.go
new file mode 100644
index 00000000..d1712fff
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FolderProtectionTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FolderProtectionType undocumented
+type FolderProtectionType int
+
+const (
+ // FolderProtectionTypeVUserDefined undocumented
+ FolderProtectionTypeVUserDefined FolderProtectionType = 0
+ // FolderProtectionTypeVEnable undocumented
+ FolderProtectionTypeVEnable FolderProtectionType = 1
+ // FolderProtectionTypeVAuditMode undocumented
+ FolderProtectionTypeVAuditMode FolderProtectionType = 2
+ // FolderProtectionTypeVBlockDiskModification undocumented
+ FolderProtectionTypeVBlockDiskModification FolderProtectionType = 3
+ // FolderProtectionTypeVAuditDiskModification undocumented
+ FolderProtectionTypeVAuditDiskModification FolderProtectionType = 4
+)
+
+// FolderProtectionTypePUserDefined returns a pointer to FolderProtectionTypeVUserDefined
+func FolderProtectionTypePUserDefined() *FolderProtectionType {
+ v := FolderProtectionTypeVUserDefined
+ return &v
+}
+
+// FolderProtectionTypePEnable returns a pointer to FolderProtectionTypeVEnable
+func FolderProtectionTypePEnable() *FolderProtectionType {
+ v := FolderProtectionTypeVEnable
+ return &v
+}
+
+// FolderProtectionTypePAuditMode returns a pointer to FolderProtectionTypeVAuditMode
+func FolderProtectionTypePAuditMode() *FolderProtectionType {
+ v := FolderProtectionTypeVAuditMode
+ return &v
+}
+
+// FolderProtectionTypePBlockDiskModification returns a pointer to FolderProtectionTypeVBlockDiskModification
+func FolderProtectionTypePBlockDiskModification() *FolderProtectionType {
+ v := FolderProtectionTypeVBlockDiskModification
+ return &v
+}
+
+// FolderProtectionTypePAuditDiskModification returns a pointer to FolderProtectionTypeVAuditDiskModification
+func FolderProtectionTypePAuditDiskModification() *FolderProtectionType {
+ v := FolderProtectionTypeVAuditDiskModification
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FolderViewModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FolderViewModel.go
new file mode 100644
index 00000000..a799fb94
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FolderViewModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FolderView undocumented
+type FolderView struct {
+ // Object is the base model of FolderView
+ Object
+ // SortBy undocumented
+ SortBy *string `json:"sortBy,omitempty"`
+ // SortOrder undocumented
+ SortOrder *string `json:"sortOrder,omitempty"`
+ // ViewType undocumented
+ ViewType *string `json:"viewType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FollowupFlagModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FollowupFlagModel.go
new file mode 100644
index 00000000..933e0fc7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FollowupFlagModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FollowupFlag undocumented
+type FollowupFlag struct {
+ // Object is the base model of FollowupFlag
+ Object
+ // CompletedDateTime undocumented
+ CompletedDateTime *DateTimeTimeZone `json:"completedDateTime,omitempty"`
+ // DueDateTime undocumented
+ DueDateTime *DateTimeTimeZone `json:"dueDateTime,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *DateTimeTimeZone `json:"startDateTime,omitempty"`
+ // FlagStatus undocumented
+ FlagStatus *FollowupFlagStatus `json:"flagStatus,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FollowupFlagStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/FollowupFlagStatusEnum.go
new file mode 100644
index 00000000..b47c3d45
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FollowupFlagStatusEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FollowupFlagStatus undocumented
+type FollowupFlagStatus int
+
+const (
+ // FollowupFlagStatusVNotFlagged undocumented
+ FollowupFlagStatusVNotFlagged FollowupFlagStatus = 0
+ // FollowupFlagStatusVComplete undocumented
+ FollowupFlagStatusVComplete FollowupFlagStatus = 1
+ // FollowupFlagStatusVFlagged undocumented
+ FollowupFlagStatusVFlagged FollowupFlagStatus = 2
+)
+
+// FollowupFlagStatusPNotFlagged returns a pointer to FollowupFlagStatusVNotFlagged
+func FollowupFlagStatusPNotFlagged() *FollowupFlagStatus {
+ v := FollowupFlagStatusVNotFlagged
+ return &v
+}
+
+// FollowupFlagStatusPComplete returns a pointer to FollowupFlagStatusVComplete
+func FollowupFlagStatusPComplete() *FollowupFlagStatus {
+ v := FollowupFlagStatusVComplete
+ return &v
+}
+
+// FollowupFlagStatusPFlagged returns a pointer to FollowupFlagStatusVFlagged
+func FollowupFlagStatusPFlagged() *FollowupFlagStatus {
+ v := FollowupFlagStatusVFlagged
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FreeBusyErrorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/FreeBusyErrorModel.go
new file mode 100644
index 00000000..d8a2e464
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FreeBusyErrorModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FreeBusyError undocumented
+type FreeBusyError struct {
+ // Object is the base model of FreeBusyError
+ Object
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // ResponseCode undocumented
+ ResponseCode *string `json:"responseCode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/FreeBusyStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/FreeBusyStatusEnum.go
new file mode 100644
index 00000000..3f4889ac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/FreeBusyStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FreeBusyStatus undocumented
+type FreeBusyStatus int
+
+const (
+ // FreeBusyStatusVFree undocumented
+ FreeBusyStatusVFree FreeBusyStatus = 0
+ // FreeBusyStatusVTentative undocumented
+ FreeBusyStatusVTentative FreeBusyStatus = 1
+ // FreeBusyStatusVBusy undocumented
+ FreeBusyStatusVBusy FreeBusyStatus = 2
+ // FreeBusyStatusVOof undocumented
+ FreeBusyStatusVOof FreeBusyStatus = 3
+ // FreeBusyStatusVWorkingElsewhere undocumented
+ FreeBusyStatusVWorkingElsewhere FreeBusyStatus = 4
+ // FreeBusyStatusVUnknown undocumented
+ FreeBusyStatusVUnknown FreeBusyStatus = -1
+)
+
+// FreeBusyStatusPFree returns a pointer to FreeBusyStatusVFree
+func FreeBusyStatusPFree() *FreeBusyStatus {
+ v := FreeBusyStatusVFree
+ return &v
+}
+
+// FreeBusyStatusPTentative returns a pointer to FreeBusyStatusVTentative
+func FreeBusyStatusPTentative() *FreeBusyStatus {
+ v := FreeBusyStatusVTentative
+ return &v
+}
+
+// FreeBusyStatusPBusy returns a pointer to FreeBusyStatusVBusy
+func FreeBusyStatusPBusy() *FreeBusyStatus {
+ v := FreeBusyStatusVBusy
+ return &v
+}
+
+// FreeBusyStatusPOof returns a pointer to FreeBusyStatusVOof
+func FreeBusyStatusPOof() *FreeBusyStatus {
+ v := FreeBusyStatusVOof
+ return &v
+}
+
+// FreeBusyStatusPWorkingElsewhere returns a pointer to FreeBusyStatusVWorkingElsewhere
+func FreeBusyStatusPWorkingElsewhere() *FreeBusyStatus {
+ v := FreeBusyStatusVWorkingElsewhere
+ return &v
+}
+
+// FreeBusyStatusPUnknown returns a pointer to FreeBusyStatusVUnknown
+func FreeBusyStatusPUnknown() *FreeBusyStatus {
+ v := FreeBusyStatusVUnknown
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GeneralLedgerEntryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GeneralLedgerEntryModel.go
new file mode 100644
index 00000000..7f0b0121
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GeneralLedgerEntryModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// GeneralLedgerEntry undocumented
+type GeneralLedgerEntry struct {
+ // Entity is the base model of GeneralLedgerEntry
+ Entity
+ // PostingDate undocumented
+ PostingDate *time.Time `json:"postingDate,omitempty"`
+ // DocumentNumber undocumented
+ DocumentNumber *string `json:"documentNumber,omitempty"`
+ // DocumentType undocumented
+ DocumentType *string `json:"documentType,omitempty"`
+ // AccountID undocumented
+ AccountID *UUID `json:"accountId,omitempty"`
+ // AccountNumber undocumented
+ AccountNumber *string `json:"accountNumber,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DebitAmount undocumented
+ DebitAmount *int `json:"debitAmount,omitempty"`
+ // CreditAmount undocumented
+ CreditAmount *int `json:"creditAmount,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GeneralLedgerEntryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GeneralLedgerEntryRequest.go
new file mode 100644
index 00000000..95700e05
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GeneralLedgerEntryRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GeneralLedgerEntryRequestBuilder is request builder for GeneralLedgerEntry
+type GeneralLedgerEntryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GeneralLedgerEntryRequest
+func (b *GeneralLedgerEntryRequestBuilder) Request() *GeneralLedgerEntryRequest {
+ return &GeneralLedgerEntryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GeneralLedgerEntryRequest is request for GeneralLedgerEntry
+type GeneralLedgerEntryRequest struct{ BaseRequest }
+
+// Get performs GET request for GeneralLedgerEntry
+func (r *GeneralLedgerEntryRequest) Get(ctx context.Context) (resObj *GeneralLedgerEntry, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GeneralLedgerEntry
+func (r *GeneralLedgerEntryRequest) Update(ctx context.Context, reqObj *GeneralLedgerEntry) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GeneralLedgerEntry
+func (r *GeneralLedgerEntryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Account is navigation property
+func (b *GeneralLedgerEntryRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GenericErrorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GenericErrorModel.go
new file mode 100644
index 00000000..8ecf7672
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GenericErrorModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GenericError undocumented
+type GenericError struct {
+ // Object is the base model of GenericError
+ Object
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GeoCoordinatesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GeoCoordinatesModel.go
new file mode 100644
index 00000000..a5ff16b7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GeoCoordinatesModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GeoCoordinates undocumented
+type GeoCoordinates struct {
+ // Object is the base model of GeoCoordinates
+ Object
+ // Altitude undocumented
+ Altitude *float64 `json:"altitude,omitempty"`
+ // Latitude undocumented
+ Latitude *float64 `json:"latitude,omitempty"`
+ // Longitude undocumented
+ Longitude *float64 `json:"longitude,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GeolocationColumnModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GeolocationColumnModel.go
new file mode 100644
index 00000000..c1da5fec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GeolocationColumnModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GeolocationColumn undocumented
+type GeolocationColumn struct {
+ // Object is the base model of GeolocationColumn
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GiphyRatingTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/GiphyRatingTypeEnum.go
new file mode 100644
index 00000000..bdbce185
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GiphyRatingTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GiphyRatingType undocumented
+type GiphyRatingType int
+
+const (
+ // GiphyRatingTypeVStrict undocumented
+ GiphyRatingTypeVStrict GiphyRatingType = 0
+ // GiphyRatingTypeVModerate undocumented
+ GiphyRatingTypeVModerate GiphyRatingType = 1
+ // GiphyRatingTypeVUnknownFutureValue undocumented
+ GiphyRatingTypeVUnknownFutureValue GiphyRatingType = 2
+)
+
+// GiphyRatingTypePStrict returns a pointer to GiphyRatingTypeVStrict
+func GiphyRatingTypePStrict() *GiphyRatingType {
+ v := GiphyRatingTypeVStrict
+ return &v
+}
+
+// GiphyRatingTypePModerate returns a pointer to GiphyRatingTypeVModerate
+func GiphyRatingTypePModerate() *GiphyRatingType {
+ v := GiphyRatingTypeVModerate
+ return &v
+}
+
+// GiphyRatingTypePUnknownFutureValue returns a pointer to GiphyRatingTypeVUnknownFutureValue
+func GiphyRatingTypePUnknownFutureValue() *GiphyRatingType {
+ v := GiphyRatingTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceCriteriaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceCriteriaModel.go
new file mode 100644
index 00000000..59623596
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceCriteriaModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GovernanceCriteria undocumented
+type GovernanceCriteria struct {
+ // Object is the base model of GovernanceCriteria
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceNotificationPolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceNotificationPolicyModel.go
new file mode 100644
index 00000000..5cb8fdda
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceNotificationPolicyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GovernanceNotificationPolicy undocumented
+type GovernanceNotificationPolicy struct {
+ // Object is the base model of GovernanceNotificationPolicy
+ Object
+ // NotificationTemplates undocumented
+ NotificationTemplates []GovernanceNotificationTemplate `json:"notificationTemplates,omitempty"`
+ // EnabledTemplateTypes undocumented
+ EnabledTemplateTypes []string `json:"enabledTemplateTypes,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceNotificationTemplateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceNotificationTemplateModel.go
new file mode 100644
index 00000000..462a5a6f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceNotificationTemplateModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GovernanceNotificationTemplate undocumented
+type GovernanceNotificationTemplate struct {
+ // Object is the base model of GovernanceNotificationTemplate
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Source undocumented
+ Source *string `json:"source,omitempty"`
+ // Version undocumented
+ Version *string `json:"version,omitempty"`
+ // Culture undocumented
+ Culture *string `json:"culture,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernancePermissionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernancePermissionModel.go
new file mode 100644
index 00000000..260395fe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernancePermissionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GovernancePermission undocumented
+type GovernancePermission struct {
+ // Object is the base model of GovernancePermission
+ Object
+ // AccessLevel undocumented
+ AccessLevel *string `json:"accessLevel,omitempty"`
+ // IsActive undocumented
+ IsActive *bool `json:"isActive,omitempty"`
+ // IsEligible undocumented
+ IsEligible *bool `json:"isEligible,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernancePolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernancePolicyModel.go
new file mode 100644
index 00000000..cc34f758
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernancePolicyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GovernancePolicy undocumented
+type GovernancePolicy struct {
+ // Object is the base model of GovernancePolicy
+ Object
+ // DecisionMakerCriteria undocumented
+ DecisionMakerCriteria []GovernanceCriteria `json:"decisionMakerCriteria,omitempty"`
+ // NotificationPolicy undocumented
+ NotificationPolicy *GovernanceNotificationPolicy `json:"notificationPolicy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernancePolicyTemplateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernancePolicyTemplateModel.go
new file mode 100644
index 00000000..f5a2676e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernancePolicyTemplateModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GovernancePolicyTemplate undocumented
+type GovernancePolicyTemplate struct {
+ // Entity is the base model of GovernancePolicyTemplate
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Policy undocumented
+ Policy *GovernancePolicy `json:"policy,omitempty"`
+ // Settings undocumented
+ Settings *BusinessFlowSettings `json:"settings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernancePolicyTemplateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernancePolicyTemplateRequest.go
new file mode 100644
index 00000000..c8533d51
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernancePolicyTemplateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GovernancePolicyTemplateRequestBuilder is request builder for GovernancePolicyTemplate
+type GovernancePolicyTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GovernancePolicyTemplateRequest
+func (b *GovernancePolicyTemplateRequestBuilder) Request() *GovernancePolicyTemplateRequest {
+ return &GovernancePolicyTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GovernancePolicyTemplateRequest is request for GovernancePolicyTemplate
+type GovernancePolicyTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for GovernancePolicyTemplate
+func (r *GovernancePolicyTemplateRequest) Get(ctx context.Context) (resObj *GovernancePolicyTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GovernancePolicyTemplate
+func (r *GovernancePolicyTemplateRequest) Update(ctx context.Context, reqObj *GovernancePolicyTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GovernancePolicyTemplate
+func (r *GovernancePolicyTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceResourceAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceResourceAction.go
new file mode 100644
index 00000000..0a401402
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceResourceAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GovernanceResourceCollectionRegisterRequestParameter undocumented
+type GovernanceResourceCollectionRegisterRequestParameter struct {
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+}
+
+//
+type GovernanceResourceCollectionRegisterRequestBuilder struct{ BaseRequestBuilder }
+
+// Register action undocumented
+func (b *PrivilegedAccessResourcesCollectionRequestBuilder) Register(reqObj *GovernanceResourceCollectionRegisterRequestParameter) *GovernanceResourceCollectionRegisterRequestBuilder {
+ bb := &GovernanceResourceCollectionRegisterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/register"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GovernanceResourceCollectionRegisterRequest struct{ BaseRequest }
+
+//
+func (b *GovernanceResourceCollectionRegisterRequestBuilder) Request() *GovernanceResourceCollectionRegisterRequest {
+ return &GovernanceResourceCollectionRegisterRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GovernanceResourceCollectionRegisterRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceResourceModel.go
new file mode 100644
index 00000000..f074ef2a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceResourceModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// GovernanceResource undocumented
+type GovernanceResource struct {
+ // Entity is the base model of GovernanceResource
+ Entity
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // RegisteredDateTime undocumented
+ RegisteredDateTime *time.Time `json:"registeredDateTime,omitempty"`
+ // RegisteredRoot undocumented
+ RegisteredRoot *string `json:"registeredRoot,omitempty"`
+ // Parent undocumented
+ Parent *GovernanceResource `json:"parent,omitempty"`
+ // RoleDefinitions undocumented
+ RoleDefinitions []GovernanceRoleDefinition `json:"roleDefinitions,omitempty"`
+ // RoleAssignments undocumented
+ RoleAssignments []GovernanceRoleAssignment `json:"roleAssignments,omitempty"`
+ // RoleAssignmentRequests undocumented
+ RoleAssignmentRequests []GovernanceRoleAssignmentRequestObject `json:"roleAssignmentRequests,omitempty"`
+ // RoleSettings undocumented
+ RoleSettings []GovernanceRoleSetting `json:"roleSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceResourceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceResourceRequest.go
new file mode 100644
index 00000000..0a909170
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceResourceRequest.go
@@ -0,0 +1,428 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// GovernanceResourceRequestBuilder is request builder for GovernanceResource
+type GovernanceResourceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GovernanceResourceRequest
+func (b *GovernanceResourceRequestBuilder) Request() *GovernanceResourceRequest {
+ return &GovernanceResourceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GovernanceResourceRequest is request for GovernanceResource
+type GovernanceResourceRequest struct{ BaseRequest }
+
+// Get performs GET request for GovernanceResource
+func (r *GovernanceResourceRequest) Get(ctx context.Context) (resObj *GovernanceResource, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GovernanceResource
+func (r *GovernanceResourceRequest) Update(ctx context.Context, reqObj *GovernanceResource) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GovernanceResource
+func (r *GovernanceResourceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Parent is navigation property
+func (b *GovernanceResourceRequestBuilder) Parent() *GovernanceResourceRequestBuilder {
+ bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/parent"
+ return bb
+}
+
+// RoleAssignmentRequests returns request builder for GovernanceRoleAssignmentRequestObject collection
+func (b *GovernanceResourceRequestBuilder) RoleAssignmentRequests() *GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder {
+ bb := &GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleAssignmentRequests"
+ return bb
+}
+
+// GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder is request builder for GovernanceRoleAssignmentRequestObject collection
+type GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleAssignmentRequestObject collection
+func (b *GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder) Request() *GovernanceResourceRoleAssignmentRequestsCollectionRequest {
+ return &GovernanceResourceRoleAssignmentRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleAssignmentRequestObject item
+func (b *GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestObjectRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GovernanceResourceRoleAssignmentRequestsCollectionRequest is request for GovernanceRoleAssignmentRequestObject collection
+type GovernanceResourceRoleAssignmentRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleAssignmentRequestObject collection
+func (r *GovernanceResourceRoleAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GovernanceRoleAssignmentRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleAssignmentRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleAssignmentRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleAssignmentRequestObject collection
+func (r *GovernanceResourceRoleAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GovernanceRoleAssignmentRequestObject collection
+func (r *GovernanceResourceRoleAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignmentRequestObject) (resObj *GovernanceRoleAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleAssignments returns request builder for GovernanceRoleAssignment collection
+func (b *GovernanceResourceRequestBuilder) RoleAssignments() *GovernanceResourceRoleAssignmentsCollectionRequestBuilder {
+ bb := &GovernanceResourceRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleAssignments"
+ return bb
+}
+
+// GovernanceResourceRoleAssignmentsCollectionRequestBuilder is request builder for GovernanceRoleAssignment collection
+type GovernanceResourceRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleAssignment collection
+func (b *GovernanceResourceRoleAssignmentsCollectionRequestBuilder) Request() *GovernanceResourceRoleAssignmentsCollectionRequest {
+ return &GovernanceResourceRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleAssignment item
+func (b *GovernanceResourceRoleAssignmentsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GovernanceResourceRoleAssignmentsCollectionRequest is request for GovernanceRoleAssignment collection
+type GovernanceResourceRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleAssignment collection
+func (r *GovernanceResourceRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GovernanceRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleAssignment collection
+func (r *GovernanceResourceRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GovernanceRoleAssignment collection
+func (r *GovernanceResourceRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignment) (resObj *GovernanceRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleDefinitions returns request builder for GovernanceRoleDefinition collection
+func (b *GovernanceResourceRequestBuilder) RoleDefinitions() *GovernanceResourceRoleDefinitionsCollectionRequestBuilder {
+ bb := &GovernanceResourceRoleDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinitions"
+ return bb
+}
+
+// GovernanceResourceRoleDefinitionsCollectionRequestBuilder is request builder for GovernanceRoleDefinition collection
+type GovernanceResourceRoleDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleDefinition collection
+func (b *GovernanceResourceRoleDefinitionsCollectionRequestBuilder) Request() *GovernanceResourceRoleDefinitionsCollectionRequest {
+ return &GovernanceResourceRoleDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleDefinition item
+func (b *GovernanceResourceRoleDefinitionsCollectionRequestBuilder) ID(id string) *GovernanceRoleDefinitionRequestBuilder {
+ bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GovernanceResourceRoleDefinitionsCollectionRequest is request for GovernanceRoleDefinition collection
+type GovernanceResourceRoleDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleDefinition collection
+func (r *GovernanceResourceRoleDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GovernanceRoleDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleDefinition collection
+func (r *GovernanceResourceRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GovernanceRoleDefinition collection
+func (r *GovernanceResourceRoleDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleDefinition) (resObj *GovernanceRoleDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleSettings returns request builder for GovernanceRoleSetting collection
+func (b *GovernanceResourceRequestBuilder) RoleSettings() *GovernanceResourceRoleSettingsCollectionRequestBuilder {
+ bb := &GovernanceResourceRoleSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleSettings"
+ return bb
+}
+
+// GovernanceResourceRoleSettingsCollectionRequestBuilder is request builder for GovernanceRoleSetting collection
+type GovernanceResourceRoleSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleSetting collection
+func (b *GovernanceResourceRoleSettingsCollectionRequestBuilder) Request() *GovernanceResourceRoleSettingsCollectionRequest {
+ return &GovernanceResourceRoleSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleSetting item
+func (b *GovernanceResourceRoleSettingsCollectionRequestBuilder) ID(id string) *GovernanceRoleSettingRequestBuilder {
+ bb := &GovernanceRoleSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GovernanceResourceRoleSettingsCollectionRequest is request for GovernanceRoleSetting collection
+type GovernanceResourceRoleSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleSetting collection
+func (r *GovernanceResourceRoleSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GovernanceRoleSetting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleSetting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleSetting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleSetting collection
+func (r *GovernanceResourceRoleSettingsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleSetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GovernanceRoleSetting collection
+func (r *GovernanceResourceRoleSettingsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleSetting) (resObj *GovernanceRoleSetting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentModel.go
new file mode 100644
index 00000000..2d276a16
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// GovernanceRoleAssignment undocumented
+type GovernanceRoleAssignment struct {
+ // Entity is the base model of GovernanceRoleAssignment
+ Entity
+ // ResourceID undocumented
+ ResourceID *string `json:"resourceId,omitempty"`
+ // RoleDefinitionID undocumented
+ RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
+ // SubjectID undocumented
+ SubjectID *string `json:"subjectId,omitempty"`
+ // LinkedEligibleRoleAssignmentID undocumented
+ LinkedEligibleRoleAssignmentID *string `json:"linkedEligibleRoleAssignmentId,omitempty"`
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // MemberType undocumented
+ MemberType *string `json:"memberType,omitempty"`
+ // AssignmentState undocumented
+ AssignmentState *string `json:"assignmentState,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // Resource undocumented
+ Resource *GovernanceResource `json:"resource,omitempty"`
+ // RoleDefinition undocumented
+ RoleDefinition *GovernanceRoleDefinition `json:"roleDefinition,omitempty"`
+ // Subject undocumented
+ Subject *GovernanceSubject `json:"subject,omitempty"`
+ // LinkedEligibleRoleAssignment undocumented
+ LinkedEligibleRoleAssignment *GovernanceRoleAssignment `json:"linkedEligibleRoleAssignment,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentRequest.go
new file mode 100644
index 00000000..149fe4ee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentRequest.go
@@ -0,0 +1,66 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GovernanceRoleAssignmentRequestBuilder is request builder for GovernanceRoleAssignment
+type GovernanceRoleAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GovernanceRoleAssignmentRequest
+func (b *GovernanceRoleAssignmentRequestBuilder) Request() *GovernanceRoleAssignmentRequest {
+ return &GovernanceRoleAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GovernanceRoleAssignmentRequest is request for GovernanceRoleAssignment
+type GovernanceRoleAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for GovernanceRoleAssignment
+func (r *GovernanceRoleAssignmentRequest) Get(ctx context.Context) (resObj *GovernanceRoleAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GovernanceRoleAssignment
+func (r *GovernanceRoleAssignmentRequest) Update(ctx context.Context, reqObj *GovernanceRoleAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GovernanceRoleAssignment
+func (r *GovernanceRoleAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// LinkedEligibleRoleAssignment is navigation property
+func (b *GovernanceRoleAssignmentRequestBuilder) LinkedEligibleRoleAssignment() *GovernanceRoleAssignmentRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/linkedEligibleRoleAssignment"
+ return bb
+}
+
+// Resource is navigation property
+func (b *GovernanceRoleAssignmentRequestBuilder) Resource() *GovernanceResourceRequestBuilder {
+ bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resource"
+ return bb
+}
+
+// RoleDefinition is navigation property
+func (b *GovernanceRoleAssignmentRequestBuilder) RoleDefinition() *GovernanceRoleDefinitionRequestBuilder {
+ bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinition"
+ return bb
+}
+
+// Subject is navigation property
+func (b *GovernanceRoleAssignmentRequestBuilder) Subject() *GovernanceSubjectRequestBuilder {
+ bb := &GovernanceSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/subject"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectAction.go
new file mode 100644
index 00000000..0e5cdeae
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectAction.go
@@ -0,0 +1,74 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GovernanceRoleAssignmentRequestObjectCancelRequestParameter undocumented
+type GovernanceRoleAssignmentRequestObjectCancelRequestParameter struct {
+}
+
+// GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestParameter undocumented
+type GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestParameter struct {
+ // Decision undocumented
+ Decision *string `json:"decision,omitempty"`
+ // AssignmentState undocumented
+ AssignmentState *string `json:"assignmentState,omitempty"`
+ // Schedule undocumented
+ Schedule *GovernanceSchedule `json:"schedule,omitempty"`
+ // Reason undocumented
+ Reason *string `json:"reason,omitempty"`
+}
+
+//
+type GovernanceRoleAssignmentRequestObjectCancelRequestBuilder struct{ BaseRequestBuilder }
+
+// Cancel action undocumented
+func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) Cancel(reqObj *GovernanceRoleAssignmentRequestObjectCancelRequestParameter) *GovernanceRoleAssignmentRequestObjectCancelRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestObjectCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancel"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GovernanceRoleAssignmentRequestObjectCancelRequest struct{ BaseRequest }
+
+//
+func (b *GovernanceRoleAssignmentRequestObjectCancelRequestBuilder) Request() *GovernanceRoleAssignmentRequestObjectCancelRequest {
+ return &GovernanceRoleAssignmentRequestObjectCancelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GovernanceRoleAssignmentRequestObjectCancelRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateRequestAction action undocumented
+func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) UpdateRequestAction(reqObj *GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestParameter) *GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateRequest"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequest struct{ BaseRequest }
+
+//
+func (b *GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestBuilder) Request() *GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequest {
+ return &GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequest) Post(ctx context.Context) (resObj *GovernanceRoleAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectModel.go
new file mode 100644
index 00000000..7ce2492c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// GovernanceRoleAssignmentRequestObject undocumented
+type GovernanceRoleAssignmentRequestObject struct {
+ // Entity is the base model of GovernanceRoleAssignmentRequestObject
+ Entity
+ // ResourceID undocumented
+ ResourceID *string `json:"resourceId,omitempty"`
+ // RoleDefinitionID undocumented
+ RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
+ // SubjectID undocumented
+ SubjectID *string `json:"subjectId,omitempty"`
+ // LinkedEligibleRoleAssignmentID undocumented
+ LinkedEligibleRoleAssignmentID *string `json:"linkedEligibleRoleAssignmentId,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // AssignmentState undocumented
+ AssignmentState *string `json:"assignmentState,omitempty"`
+ // RequestedDateTime undocumented
+ RequestedDateTime *time.Time `json:"requestedDateTime,omitempty"`
+ // Reason undocumented
+ Reason *string `json:"reason,omitempty"`
+ // Status undocumented
+ Status *GovernanceRoleAssignmentRequestStatus `json:"status,omitempty"`
+ // Schedule undocumented
+ Schedule *GovernanceSchedule `json:"schedule,omitempty"`
+ // Resource undocumented
+ Resource *GovernanceResource `json:"resource,omitempty"`
+ // RoleDefinition undocumented
+ RoleDefinition *GovernanceRoleDefinition `json:"roleDefinition,omitempty"`
+ // Subject undocumented
+ Subject *GovernanceSubject `json:"subject,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectRequest.go
new file mode 100644
index 00000000..b5f5fb01
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentRequestObjectRequest.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GovernanceRoleAssignmentRequestObjectRequestBuilder is request builder for GovernanceRoleAssignmentRequestObject
+type GovernanceRoleAssignmentRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GovernanceRoleAssignmentRequestObjectRequest
+func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) Request() *GovernanceRoleAssignmentRequestObjectRequest {
+ return &GovernanceRoleAssignmentRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GovernanceRoleAssignmentRequestObjectRequest is request for GovernanceRoleAssignmentRequestObject
+type GovernanceRoleAssignmentRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for GovernanceRoleAssignmentRequestObject
+func (r *GovernanceRoleAssignmentRequestObjectRequest) Get(ctx context.Context) (resObj *GovernanceRoleAssignmentRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GovernanceRoleAssignmentRequestObject
+func (r *GovernanceRoleAssignmentRequestObjectRequest) Update(ctx context.Context, reqObj *GovernanceRoleAssignmentRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GovernanceRoleAssignmentRequestObject
+func (r *GovernanceRoleAssignmentRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Resource is navigation property
+func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) Resource() *GovernanceResourceRequestBuilder {
+ bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resource"
+ return bb
+}
+
+// RoleDefinition is navigation property
+func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) RoleDefinition() *GovernanceRoleDefinitionRequestBuilder {
+ bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinition"
+ return bb
+}
+
+// Subject is navigation property
+func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) Subject() *GovernanceSubjectRequestBuilder {
+ bb := &GovernanceSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/subject"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentRequestStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentRequestStatusModel.go
new file mode 100644
index 00000000..faf3a16a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleAssignmentRequestStatusModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GovernanceRoleAssignmentRequestStatus undocumented
+type GovernanceRoleAssignmentRequestStatus struct {
+ // Object is the base model of GovernanceRoleAssignmentRequestStatus
+ Object
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // SubStatus undocumented
+ SubStatus *string `json:"subStatus,omitempty"`
+ // StatusDetails undocumented
+ StatusDetails []KeyValue `json:"statusDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleDefinitionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleDefinitionModel.go
new file mode 100644
index 00000000..a3c527cf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleDefinitionModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GovernanceRoleDefinition undocumented
+type GovernanceRoleDefinition struct {
+ // Entity is the base model of GovernanceRoleDefinition
+ Entity
+ // ResourceID undocumented
+ ResourceID *string `json:"resourceId,omitempty"`
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // TemplateID undocumented
+ TemplateID *string `json:"templateId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Resource undocumented
+ Resource *GovernanceResource `json:"resource,omitempty"`
+ // RoleSetting undocumented
+ RoleSetting *GovernanceRoleSetting `json:"roleSetting,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleDefinitionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleDefinitionRequest.go
new file mode 100644
index 00000000..9407e678
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleDefinitionRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GovernanceRoleDefinitionRequestBuilder is request builder for GovernanceRoleDefinition
+type GovernanceRoleDefinitionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GovernanceRoleDefinitionRequest
+func (b *GovernanceRoleDefinitionRequestBuilder) Request() *GovernanceRoleDefinitionRequest {
+ return &GovernanceRoleDefinitionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GovernanceRoleDefinitionRequest is request for GovernanceRoleDefinition
+type GovernanceRoleDefinitionRequest struct{ BaseRequest }
+
+// Get performs GET request for GovernanceRoleDefinition
+func (r *GovernanceRoleDefinitionRequest) Get(ctx context.Context) (resObj *GovernanceRoleDefinition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GovernanceRoleDefinition
+func (r *GovernanceRoleDefinitionRequest) Update(ctx context.Context, reqObj *GovernanceRoleDefinition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GovernanceRoleDefinition
+func (r *GovernanceRoleDefinitionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Resource is navigation property
+func (b *GovernanceRoleDefinitionRequestBuilder) Resource() *GovernanceResourceRequestBuilder {
+ bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resource"
+ return bb
+}
+
+// RoleSetting is navigation property
+func (b *GovernanceRoleDefinitionRequestBuilder) RoleSetting() *GovernanceRoleSettingRequestBuilder {
+ bb := &GovernanceRoleSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleSetting"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleSettingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleSettingModel.go
new file mode 100644
index 00000000..286e02cc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleSettingModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// GovernanceRoleSetting undocumented
+type GovernanceRoleSetting struct {
+ // Entity is the base model of GovernanceRoleSetting
+ Entity
+ // ResourceID undocumented
+ ResourceID *string `json:"resourceId,omitempty"`
+ // RoleDefinitionID undocumented
+ RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // LastUpdatedDateTime undocumented
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+ // LastUpdatedBy undocumented
+ LastUpdatedBy *string `json:"lastUpdatedBy,omitempty"`
+ // AdminEligibleSettings undocumented
+ AdminEligibleSettings []GovernanceRuleSetting `json:"adminEligibleSettings,omitempty"`
+ // AdminMemberSettings undocumented
+ AdminMemberSettings []GovernanceRuleSetting `json:"adminMemberSettings,omitempty"`
+ // UserEligibleSettings undocumented
+ UserEligibleSettings []GovernanceRuleSetting `json:"userEligibleSettings,omitempty"`
+ // UserMemberSettings undocumented
+ UserMemberSettings []GovernanceRuleSetting `json:"userMemberSettings,omitempty"`
+ // RoleDefinition undocumented
+ RoleDefinition *GovernanceRoleDefinition `json:"roleDefinition,omitempty"`
+ // Resource undocumented
+ Resource *GovernanceResource `json:"resource,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleSettingRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleSettingRequest.go
new file mode 100644
index 00000000..71a71953
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRoleSettingRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GovernanceRoleSettingRequestBuilder is request builder for GovernanceRoleSetting
+type GovernanceRoleSettingRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GovernanceRoleSettingRequest
+func (b *GovernanceRoleSettingRequestBuilder) Request() *GovernanceRoleSettingRequest {
+ return &GovernanceRoleSettingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GovernanceRoleSettingRequest is request for GovernanceRoleSetting
+type GovernanceRoleSettingRequest struct{ BaseRequest }
+
+// Get performs GET request for GovernanceRoleSetting
+func (r *GovernanceRoleSettingRequest) Get(ctx context.Context) (resObj *GovernanceRoleSetting, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GovernanceRoleSetting
+func (r *GovernanceRoleSettingRequest) Update(ctx context.Context, reqObj *GovernanceRoleSetting) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GovernanceRoleSetting
+func (r *GovernanceRoleSettingRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Resource is navigation property
+func (b *GovernanceRoleSettingRequestBuilder) Resource() *GovernanceResourceRequestBuilder {
+ bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resource"
+ return bb
+}
+
+// RoleDefinition is navigation property
+func (b *GovernanceRoleSettingRequestBuilder) RoleDefinition() *GovernanceRoleDefinitionRequestBuilder {
+ bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinition"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRuleSettingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRuleSettingModel.go
new file mode 100644
index 00000000..f871f596
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceRuleSettingModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GovernanceRuleSetting undocumented
+type GovernanceRuleSetting struct {
+ // Object is the base model of GovernanceRuleSetting
+ Object
+ // RuleIdentifier undocumented
+ RuleIdentifier *string `json:"ruleIdentifier,omitempty"`
+ // Setting undocumented
+ Setting *string `json:"setting,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceScheduleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceScheduleModel.go
new file mode 100644
index 00000000..93767704
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceScheduleModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// GovernanceSchedule undocumented
+type GovernanceSchedule struct {
+ // Object is the base model of GovernanceSchedule
+ Object
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // Duration undocumented
+ Duration *time.Duration `json:"duration,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceSubjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceSubjectModel.go
new file mode 100644
index 00000000..d7c0c749
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceSubjectModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GovernanceSubject undocumented
+type GovernanceSubject struct {
+ // Entity is the base model of GovernanceSubject
+ Entity
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // PrincipalName undocumented
+ PrincipalName *string `json:"principalName,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceSubjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceSubjectRequest.go
new file mode 100644
index 00000000..6ae2648f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GovernanceSubjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GovernanceSubjectRequestBuilder is request builder for GovernanceSubject
+type GovernanceSubjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GovernanceSubjectRequest
+func (b *GovernanceSubjectRequestBuilder) Request() *GovernanceSubjectRequest {
+ return &GovernanceSubjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GovernanceSubjectRequest is request for GovernanceSubject
+type GovernanceSubjectRequest struct{ BaseRequest }
+
+// Get performs GET request for GovernanceSubject
+func (r *GovernanceSubjectRequest) Get(ctx context.Context) (resObj *GovernanceSubject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GovernanceSubject
+func (r *GovernanceSubjectRequest) Update(ctx context.Context, reqObj *GovernanceSubject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GovernanceSubject
+func (r *GovernanceSubjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GraphServiceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GraphServiceRequest.go
new file mode 100644
index 00000000..f8aeb924
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GraphServiceRequest.go
@@ -0,0 +1,8560 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AccessPackageAssignmentPolicies returns request builder for AccessPackageAssignmentPolicy collection
+func (b *GraphServiceRequestBuilder) AccessPackageAssignmentPolicies() *GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentPolicies"
+ return bb
+}
+
+// GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder is request builder for AccessPackageAssignmentPolicy collection
+type GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentPolicy collection
+func (b *GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder) Request() *GraphServiceAccessPackageAssignmentPoliciesCollectionRequest {
+ return &GraphServiceAccessPackageAssignmentPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentPolicy item
+func (b *GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentPolicyRequestBuilder {
+ bb := &AccessPackageAssignmentPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackageAssignmentPoliciesCollectionRequest is request for AccessPackageAssignmentPolicy collection
+type GraphServiceAccessPackageAssignmentPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentPolicy collection
+func (r *GraphServiceAccessPackageAssignmentPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageAssignmentPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentPolicy collection
+func (r *GraphServiceAccessPackageAssignmentPoliciesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageAssignmentPolicy collection
+func (r *GraphServiceAccessPackageAssignmentPoliciesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentPolicy) (resObj *AccessPackageAssignmentPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageAssignmentRequests returns request builder for AccessPackageAssignmentRequestObject collection
+func (b *GraphServiceRequestBuilder) AccessPackageAssignmentRequests() *GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentRequests"
+ return bb
+}
+
+// GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder is request builder for AccessPackageAssignmentRequestObject collection
+type GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentRequestObject collection
+func (b *GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder) Request() *GraphServiceAccessPackageAssignmentRequestsCollectionRequest {
+ return &GraphServiceAccessPackageAssignmentRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentRequestObject item
+func (b *GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestObjectRequestBuilder {
+ bb := &AccessPackageAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackageAssignmentRequestsCollectionRequest is request for AccessPackageAssignmentRequestObject collection
+type GraphServiceAccessPackageAssignmentRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentRequestObject collection
+func (r *GraphServiceAccessPackageAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageAssignmentRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentRequestObject collection
+func (r *GraphServiceAccessPackageAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageAssignmentRequestObject collection
+func (r *GraphServiceAccessPackageAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentRequestObject) (resObj *AccessPackageAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageAssignmentResourceRoles returns request builder for AccessPackageAssignmentResourceRole collection
+func (b *GraphServiceRequestBuilder) AccessPackageAssignmentResourceRoles() *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentResourceRoles"
+ return bb
+}
+
+// GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder is request builder for AccessPackageAssignmentResourceRole collection
+type GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentResourceRole collection
+func (b *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder) Request() *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest {
+ return &GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentResourceRole item
+func (b *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentResourceRoleRequestBuilder {
+ bb := &AccessPackageAssignmentResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest is request for AccessPackageAssignmentResourceRole collection
+type GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentResourceRole collection
+func (r *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageAssignmentResourceRole, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentResourceRole
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentResourceRole
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignmentResourceRole collection
+func (r *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentResourceRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageAssignmentResourceRole collection
+func (r *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentResourceRole) (resObj *AccessPackageAssignmentResourceRole, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageAssignments returns request builder for AccessPackageAssignment collection
+func (b *GraphServiceRequestBuilder) AccessPackageAssignments() *GraphServiceAccessPackageAssignmentsCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackageAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignments"
+ return bb
+}
+
+// GraphServiceAccessPackageAssignmentsCollectionRequestBuilder is request builder for AccessPackageAssignment collection
+type GraphServiceAccessPackageAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignment collection
+func (b *GraphServiceAccessPackageAssignmentsCollectionRequestBuilder) Request() *GraphServiceAccessPackageAssignmentsCollectionRequest {
+ return &GraphServiceAccessPackageAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignment item
+func (b *GraphServiceAccessPackageAssignmentsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestBuilder {
+ bb := &AccessPackageAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackageAssignmentsCollectionRequest is request for AccessPackageAssignment collection
+type GraphServiceAccessPackageAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignment collection
+func (r *GraphServiceAccessPackageAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageAssignment collection
+func (r *GraphServiceAccessPackageAssignmentsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageAssignment collection
+func (r *GraphServiceAccessPackageAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignment) (resObj *AccessPackageAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageCatalogs returns request builder for AccessPackageCatalog collection
+func (b *GraphServiceRequestBuilder) AccessPackageCatalogs() *GraphServiceAccessPackageCatalogsCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackageCatalogsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageCatalogs"
+ return bb
+}
+
+// GraphServiceAccessPackageCatalogsCollectionRequestBuilder is request builder for AccessPackageCatalog collection
+type GraphServiceAccessPackageCatalogsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageCatalog collection
+func (b *GraphServiceAccessPackageCatalogsCollectionRequestBuilder) Request() *GraphServiceAccessPackageCatalogsCollectionRequest {
+ return &GraphServiceAccessPackageCatalogsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageCatalog item
+func (b *GraphServiceAccessPackageCatalogsCollectionRequestBuilder) ID(id string) *AccessPackageCatalogRequestBuilder {
+ bb := &AccessPackageCatalogRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackageCatalogsCollectionRequest is request for AccessPackageCatalog collection
+type GraphServiceAccessPackageCatalogsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageCatalog collection
+func (r *GraphServiceAccessPackageCatalogsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageCatalog, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageCatalog
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageCatalog
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageCatalog collection
+func (r *GraphServiceAccessPackageCatalogsCollectionRequest) Get(ctx context.Context) ([]AccessPackageCatalog, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageCatalog collection
+func (r *GraphServiceAccessPackageCatalogsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageCatalog) (resObj *AccessPackageCatalog, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResourceRequests returns request builder for AccessPackageResourceRequestObject collection
+func (b *GraphServiceRequestBuilder) AccessPackageResourceRequests() *GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRequests"
+ return bb
+}
+
+// GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder is request builder for AccessPackageResourceRequestObject collection
+type GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceRequestObject collection
+func (b *GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder) Request() *GraphServiceAccessPackageResourceRequestsCollectionRequest {
+ return &GraphServiceAccessPackageResourceRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceRequestObject item
+func (b *GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder) ID(id string) *AccessPackageResourceRequestObjectRequestBuilder {
+ bb := &AccessPackageResourceRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackageResourceRequestsCollectionRequest is request for AccessPackageResourceRequestObject collection
+type GraphServiceAccessPackageResourceRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceRequestObject collection
+func (r *GraphServiceAccessPackageResourceRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResourceRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceRequestObject collection
+func (r *GraphServiceAccessPackageResourceRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageResourceRequestObject collection
+func (r *GraphServiceAccessPackageResourceRequestsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRequestObject) (resObj *AccessPackageResourceRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResourceRoleScopes returns request builder for AccessPackageResourceRoleScope collection
+func (b *GraphServiceRequestBuilder) AccessPackageResourceRoleScopes() *GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRoleScopes"
+ return bb
+}
+
+// GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder is request builder for AccessPackageResourceRoleScope collection
+type GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceRoleScope collection
+func (b *GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder) Request() *GraphServiceAccessPackageResourceRoleScopesCollectionRequest {
+ return &GraphServiceAccessPackageResourceRoleScopesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceRoleScope item
+func (b *GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleScopeRequestBuilder {
+ bb := &AccessPackageResourceRoleScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackageResourceRoleScopesCollectionRequest is request for AccessPackageResourceRoleScope collection
+type GraphServiceAccessPackageResourceRoleScopesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceRoleScope collection
+func (r *GraphServiceAccessPackageResourceRoleScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResourceRoleScope, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceRoleScope
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceRoleScope
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResourceRoleScope collection
+func (r *GraphServiceAccessPackageResourceRoleScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRoleScope, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageResourceRoleScope collection
+func (r *GraphServiceAccessPackageResourceRoleScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRoleScope) (resObj *AccessPackageResourceRoleScope, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResources returns request builder for AccessPackageResource collection
+func (b *GraphServiceRequestBuilder) AccessPackageResources() *GraphServiceAccessPackageResourcesCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackageResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResources"
+ return bb
+}
+
+// GraphServiceAccessPackageResourcesCollectionRequestBuilder is request builder for AccessPackageResource collection
+type GraphServiceAccessPackageResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResource collection
+func (b *GraphServiceAccessPackageResourcesCollectionRequestBuilder) Request() *GraphServiceAccessPackageResourcesCollectionRequest {
+ return &GraphServiceAccessPackageResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResource item
+func (b *GraphServiceAccessPackageResourcesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRequestBuilder {
+ bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackageResourcesCollectionRequest is request for AccessPackageResource collection
+type GraphServiceAccessPackageResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResource collection
+func (r *GraphServiceAccessPackageResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackageResource collection
+func (r *GraphServiceAccessPackageResourcesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackageResource collection
+func (r *GraphServiceAccessPackageResourcesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResource) (resObj *AccessPackageResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackages returns request builder for AccessPackage collection
+func (b *GraphServiceRequestBuilder) AccessPackages() *GraphServiceAccessPackagesCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackages"
+ return bb
+}
+
+// GraphServiceAccessPackagesCollectionRequestBuilder is request builder for AccessPackage collection
+type GraphServiceAccessPackagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackage collection
+func (b *GraphServiceAccessPackagesCollectionRequestBuilder) Request() *GraphServiceAccessPackagesCollectionRequest {
+ return &GraphServiceAccessPackagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackage item
+func (b *GraphServiceAccessPackagesCollectionRequestBuilder) ID(id string) *AccessPackageRequestBuilder {
+ bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackagesCollectionRequest is request for AccessPackage collection
+type GraphServiceAccessPackagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackage collection
+func (r *GraphServiceAccessPackagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessPackage collection
+func (r *GraphServiceAccessPackagesCollectionRequest) Get(ctx context.Context) ([]AccessPackage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessPackage collection
+func (r *GraphServiceAccessPackagesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackage) (resObj *AccessPackage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessReviewDecisions returns request builder for AccessReviewDecision collection
+func (b *GraphServiceRequestBuilder) AccessReviewDecisions() *GraphServiceAccessReviewDecisionsCollectionRequestBuilder {
+ bb := &GraphServiceAccessReviewDecisionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessReviewDecisions"
+ return bb
+}
+
+// GraphServiceAccessReviewDecisionsCollectionRequestBuilder is request builder for AccessReviewDecision collection
+type GraphServiceAccessReviewDecisionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessReviewDecision collection
+func (b *GraphServiceAccessReviewDecisionsCollectionRequestBuilder) Request() *GraphServiceAccessReviewDecisionsCollectionRequest {
+ return &GraphServiceAccessReviewDecisionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessReviewDecision item
+func (b *GraphServiceAccessReviewDecisionsCollectionRequestBuilder) ID(id string) *AccessReviewDecisionRequestBuilder {
+ bb := &AccessReviewDecisionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessReviewDecisionsCollectionRequest is request for AccessReviewDecision collection
+type GraphServiceAccessReviewDecisionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessReviewDecision collection
+func (r *GraphServiceAccessReviewDecisionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessReviewDecision, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessReviewDecision
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessReviewDecision
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessReviewDecision collection
+func (r *GraphServiceAccessReviewDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessReviewDecision collection
+func (r *GraphServiceAccessReviewDecisionsCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewDecision) (resObj *AccessReviewDecision, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessReviews returns request builder for AccessReview collection
+func (b *GraphServiceRequestBuilder) AccessReviews() *GraphServiceAccessReviewsCollectionRequestBuilder {
+ bb := &GraphServiceAccessReviewsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessReviews"
+ return bb
+}
+
+// GraphServiceAccessReviewsCollectionRequestBuilder is request builder for AccessReview collection
+type GraphServiceAccessReviewsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessReview collection
+func (b *GraphServiceAccessReviewsCollectionRequestBuilder) Request() *GraphServiceAccessReviewsCollectionRequest {
+ return &GraphServiceAccessReviewsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessReview item
+func (b *GraphServiceAccessReviewsCollectionRequestBuilder) ID(id string) *AccessReviewRequestBuilder {
+ bb := &AccessReviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessReviewsCollectionRequest is request for AccessReview collection
+type GraphServiceAccessReviewsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessReview collection
+func (r *GraphServiceAccessReviewsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessReview, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessReview
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessReview
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessReview collection
+func (r *GraphServiceAccessReviewsCollectionRequest) Get(ctx context.Context) ([]AccessReview, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessReview collection
+func (r *GraphServiceAccessReviewsCollectionRequest) Add(ctx context.Context, reqObj *AccessReview) (resObj *AccessReview, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Activitystatistics returns request builder for ActivityStatistics collection
+func (b *GraphServiceRequestBuilder) Activitystatistics() *GraphServiceActivitystatisticsCollectionRequestBuilder {
+ bb := &GraphServiceActivitystatisticsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activitystatistics"
+ return bb
+}
+
+// GraphServiceActivitystatisticsCollectionRequestBuilder is request builder for ActivityStatistics collection
+type GraphServiceActivitystatisticsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ActivityStatistics collection
+func (b *GraphServiceActivitystatisticsCollectionRequestBuilder) Request() *GraphServiceActivitystatisticsCollectionRequest {
+ return &GraphServiceActivitystatisticsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ActivityStatistics item
+func (b *GraphServiceActivitystatisticsCollectionRequestBuilder) ID(id string) *ActivityStatisticsRequestBuilder {
+ bb := &ActivityStatisticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceActivitystatisticsCollectionRequest is request for ActivityStatistics collection
+type GraphServiceActivitystatisticsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ActivityStatistics collection
+func (r *GraphServiceActivitystatisticsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ActivityStatistics, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ActivityStatistics
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ActivityStatistics
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ActivityStatistics collection
+func (r *GraphServiceActivitystatisticsCollectionRequest) Get(ctx context.Context) ([]ActivityStatistics, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ActivityStatistics collection
+func (r *GraphServiceActivitystatisticsCollectionRequest) Add(ctx context.Context, reqObj *ActivityStatistics) (resObj *ActivityStatistics, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AdministrativeUnits returns request builder for AdministrativeUnit collection
+func (b *GraphServiceRequestBuilder) AdministrativeUnits() *GraphServiceAdministrativeUnitsCollectionRequestBuilder {
+ bb := &GraphServiceAdministrativeUnitsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/administrativeUnits"
+ return bb
+}
+
+// GraphServiceAdministrativeUnitsCollectionRequestBuilder is request builder for AdministrativeUnit collection
+type GraphServiceAdministrativeUnitsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AdministrativeUnit collection
+func (b *GraphServiceAdministrativeUnitsCollectionRequestBuilder) Request() *GraphServiceAdministrativeUnitsCollectionRequest {
+ return &GraphServiceAdministrativeUnitsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AdministrativeUnit item
+func (b *GraphServiceAdministrativeUnitsCollectionRequestBuilder) ID(id string) *AdministrativeUnitRequestBuilder {
+ bb := &AdministrativeUnitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAdministrativeUnitsCollectionRequest is request for AdministrativeUnit collection
+type GraphServiceAdministrativeUnitsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AdministrativeUnit collection
+func (r *GraphServiceAdministrativeUnitsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AdministrativeUnit, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AdministrativeUnit
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AdministrativeUnit
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AdministrativeUnit collection
+func (r *GraphServiceAdministrativeUnitsCollectionRequest) Get(ctx context.Context) ([]AdministrativeUnit, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AdministrativeUnit collection
+func (r *GraphServiceAdministrativeUnitsCollectionRequest) Add(ctx context.Context, reqObj *AdministrativeUnit) (resObj *AdministrativeUnit, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AgreementAcceptances returns request builder for AgreementAcceptance collection
+func (b *GraphServiceRequestBuilder) AgreementAcceptances() *GraphServiceAgreementAcceptancesCollectionRequestBuilder {
+ bb := &GraphServiceAgreementAcceptancesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agreementAcceptances"
+ return bb
+}
+
+// GraphServiceAgreementAcceptancesCollectionRequestBuilder is request builder for AgreementAcceptance collection
+type GraphServiceAgreementAcceptancesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AgreementAcceptance collection
+func (b *GraphServiceAgreementAcceptancesCollectionRequestBuilder) Request() *GraphServiceAgreementAcceptancesCollectionRequest {
+ return &GraphServiceAgreementAcceptancesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AgreementAcceptance item
+func (b *GraphServiceAgreementAcceptancesCollectionRequestBuilder) ID(id string) *AgreementAcceptanceRequestBuilder {
+ bb := &AgreementAcceptanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAgreementAcceptancesCollectionRequest is request for AgreementAcceptance collection
+type GraphServiceAgreementAcceptancesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AgreementAcceptance collection
+func (r *GraphServiceAgreementAcceptancesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AgreementAcceptance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AgreementAcceptance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AgreementAcceptance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AgreementAcceptance collection
+func (r *GraphServiceAgreementAcceptancesCollectionRequest) Get(ctx context.Context) ([]AgreementAcceptance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AgreementAcceptance collection
+func (r *GraphServiceAgreementAcceptancesCollectionRequest) Add(ctx context.Context, reqObj *AgreementAcceptance) (resObj *AgreementAcceptance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Agreements returns request builder for Agreement collection
+func (b *GraphServiceRequestBuilder) Agreements() *GraphServiceAgreementsCollectionRequestBuilder {
+ bb := &GraphServiceAgreementsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agreements"
+ return bb
+}
+
+// GraphServiceAgreementsCollectionRequestBuilder is request builder for Agreement collection
+type GraphServiceAgreementsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Agreement collection
+func (b *GraphServiceAgreementsCollectionRequestBuilder) Request() *GraphServiceAgreementsCollectionRequest {
+ return &GraphServiceAgreementsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Agreement item
+func (b *GraphServiceAgreementsCollectionRequestBuilder) ID(id string) *AgreementRequestBuilder {
+ bb := &AgreementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAgreementsCollectionRequest is request for Agreement collection
+type GraphServiceAgreementsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Agreement collection
+func (r *GraphServiceAgreementsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Agreement, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Agreement
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Agreement
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Agreement collection
+func (r *GraphServiceAgreementsCollectionRequest) Get(ctx context.Context) ([]Agreement, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Agreement collection
+func (r *GraphServiceAgreementsCollectionRequest) Add(ctx context.Context, reqObj *Agreement) (resObj *Agreement, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AllowedDataLocations returns request builder for AllowedDataLocation collection
+func (b *GraphServiceRequestBuilder) AllowedDataLocations() *GraphServiceAllowedDataLocationsCollectionRequestBuilder {
+ bb := &GraphServiceAllowedDataLocationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/allowedDataLocations"
+ return bb
+}
+
+// GraphServiceAllowedDataLocationsCollectionRequestBuilder is request builder for AllowedDataLocation collection
+type GraphServiceAllowedDataLocationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AllowedDataLocation collection
+func (b *GraphServiceAllowedDataLocationsCollectionRequestBuilder) Request() *GraphServiceAllowedDataLocationsCollectionRequest {
+ return &GraphServiceAllowedDataLocationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AllowedDataLocation item
+func (b *GraphServiceAllowedDataLocationsCollectionRequestBuilder) ID(id string) *AllowedDataLocationRequestBuilder {
+ bb := &AllowedDataLocationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAllowedDataLocationsCollectionRequest is request for AllowedDataLocation collection
+type GraphServiceAllowedDataLocationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AllowedDataLocation collection
+func (r *GraphServiceAllowedDataLocationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AllowedDataLocation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AllowedDataLocation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AllowedDataLocation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AllowedDataLocation collection
+func (r *GraphServiceAllowedDataLocationsCollectionRequest) Get(ctx context.Context) ([]AllowedDataLocation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AllowedDataLocation collection
+func (r *GraphServiceAllowedDataLocationsCollectionRequest) Add(ctx context.Context, reqObj *AllowedDataLocation) (resObj *AllowedDataLocation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AnonymousIPRiskEvents returns request builder for AnonymousIPRiskEvent collection
+func (b *GraphServiceRequestBuilder) AnonymousIPRiskEvents() *GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder {
+ bb := &GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/anonymousIpRiskEvents"
+ return bb
+}
+
+// GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder is request builder for AnonymousIPRiskEvent collection
+type GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AnonymousIPRiskEvent collection
+func (b *GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder) Request() *GraphServiceAnonymousIPRiskEventsCollectionRequest {
+ return &GraphServiceAnonymousIPRiskEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AnonymousIPRiskEvent item
+func (b *GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder) ID(id string) *AnonymousIPRiskEventRequestBuilder {
+ bb := &AnonymousIPRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAnonymousIPRiskEventsCollectionRequest is request for AnonymousIPRiskEvent collection
+type GraphServiceAnonymousIPRiskEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AnonymousIPRiskEvent collection
+func (r *GraphServiceAnonymousIPRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AnonymousIPRiskEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AnonymousIPRiskEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AnonymousIPRiskEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AnonymousIPRiskEvent collection
+func (r *GraphServiceAnonymousIPRiskEventsCollectionRequest) Get(ctx context.Context) ([]AnonymousIPRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AnonymousIPRiskEvent collection
+func (r *GraphServiceAnonymousIPRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *AnonymousIPRiskEvent) (resObj *AnonymousIPRiskEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AppRoleAssignments returns request builder for AppRoleAssignment collection
+func (b *GraphServiceRequestBuilder) AppRoleAssignments() *GraphServiceAppRoleAssignmentsCollectionRequestBuilder {
+ bb := &GraphServiceAppRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appRoleAssignments"
+ return bb
+}
+
+// GraphServiceAppRoleAssignmentsCollectionRequestBuilder is request builder for AppRoleAssignment collection
+type GraphServiceAppRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppRoleAssignment collection
+func (b *GraphServiceAppRoleAssignmentsCollectionRequestBuilder) Request() *GraphServiceAppRoleAssignmentsCollectionRequest {
+ return &GraphServiceAppRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppRoleAssignment item
+func (b *GraphServiceAppRoleAssignmentsCollectionRequestBuilder) ID(id string) *AppRoleAssignmentRequestBuilder {
+ bb := &AppRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAppRoleAssignmentsCollectionRequest is request for AppRoleAssignment collection
+type GraphServiceAppRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppRoleAssignment collection
+func (r *GraphServiceAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AppRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppRoleAssignment collection
+func (r *GraphServiceAppRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AppRoleAssignment collection
+func (r *GraphServiceAppRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AppRoleAssignment) (resObj *AppRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ApplicationTemplates returns request builder for ApplicationTemplate collection
+func (b *GraphServiceRequestBuilder) ApplicationTemplates() *GraphServiceApplicationTemplatesCollectionRequestBuilder {
+ bb := &GraphServiceApplicationTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/applicationTemplates"
+ return bb
+}
+
+// GraphServiceApplicationTemplatesCollectionRequestBuilder is request builder for ApplicationTemplate collection
+type GraphServiceApplicationTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ApplicationTemplate collection
+func (b *GraphServiceApplicationTemplatesCollectionRequestBuilder) Request() *GraphServiceApplicationTemplatesCollectionRequest {
+ return &GraphServiceApplicationTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ApplicationTemplate item
+func (b *GraphServiceApplicationTemplatesCollectionRequestBuilder) ID(id string) *ApplicationTemplateRequestBuilder {
+ bb := &ApplicationTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceApplicationTemplatesCollectionRequest is request for ApplicationTemplate collection
+type GraphServiceApplicationTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ApplicationTemplate collection
+func (r *GraphServiceApplicationTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ApplicationTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ApplicationTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ApplicationTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ApplicationTemplate collection
+func (r *GraphServiceApplicationTemplatesCollectionRequest) Get(ctx context.Context) ([]ApplicationTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ApplicationTemplate collection
+func (r *GraphServiceApplicationTemplatesCollectionRequest) Add(ctx context.Context, reqObj *ApplicationTemplate) (resObj *ApplicationTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Applications returns request builder for Application collection
+func (b *GraphServiceRequestBuilder) Applications() *GraphServiceApplicationsCollectionRequestBuilder {
+ bb := &GraphServiceApplicationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/applications"
+ return bb
+}
+
+// GraphServiceApplicationsCollectionRequestBuilder is request builder for Application collection
+type GraphServiceApplicationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Application collection
+func (b *GraphServiceApplicationsCollectionRequestBuilder) Request() *GraphServiceApplicationsCollectionRequest {
+ return &GraphServiceApplicationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Application item
+func (b *GraphServiceApplicationsCollectionRequestBuilder) ID(id string) *ApplicationRequestBuilder {
+ bb := &ApplicationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceApplicationsCollectionRequest is request for Application collection
+type GraphServiceApplicationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Application collection
+func (r *GraphServiceApplicationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Application, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Application
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Application
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Application collection
+func (r *GraphServiceApplicationsCollectionRequest) Get(ctx context.Context) ([]Application, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Application collection
+func (r *GraphServiceApplicationsCollectionRequest) Add(ctx context.Context, reqObj *Application) (resObj *Application, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ApprovalWorkflowProviders returns request builder for ApprovalWorkflowProvider collection
+func (b *GraphServiceRequestBuilder) ApprovalWorkflowProviders() *GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder {
+ bb := &GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/approvalWorkflowProviders"
+ return bb
+}
+
+// GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder is request builder for ApprovalWorkflowProvider collection
+type GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ApprovalWorkflowProvider collection
+func (b *GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder) Request() *GraphServiceApprovalWorkflowProvidersCollectionRequest {
+ return &GraphServiceApprovalWorkflowProvidersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ApprovalWorkflowProvider item
+func (b *GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder) ID(id string) *ApprovalWorkflowProviderRequestBuilder {
+ bb := &ApprovalWorkflowProviderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceApprovalWorkflowProvidersCollectionRequest is request for ApprovalWorkflowProvider collection
+type GraphServiceApprovalWorkflowProvidersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ApprovalWorkflowProvider collection
+func (r *GraphServiceApprovalWorkflowProvidersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ApprovalWorkflowProvider, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ApprovalWorkflowProvider
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ApprovalWorkflowProvider
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ApprovalWorkflowProvider collection
+func (r *GraphServiceApprovalWorkflowProvidersCollectionRequest) Get(ctx context.Context) ([]ApprovalWorkflowProvider, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ApprovalWorkflowProvider collection
+func (r *GraphServiceApprovalWorkflowProvidersCollectionRequest) Add(ctx context.Context, reqObj *ApprovalWorkflowProvider) (resObj *ApprovalWorkflowProvider, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// BookingBusinesses returns request builder for BookingBusiness collection
+func (b *GraphServiceRequestBuilder) BookingBusinesses() *GraphServiceBookingBusinessesCollectionRequestBuilder {
+ bb := &GraphServiceBookingBusinessesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/bookingBusinesses"
+ return bb
+}
+
+// GraphServiceBookingBusinessesCollectionRequestBuilder is request builder for BookingBusiness collection
+type GraphServiceBookingBusinessesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BookingBusiness collection
+func (b *GraphServiceBookingBusinessesCollectionRequestBuilder) Request() *GraphServiceBookingBusinessesCollectionRequest {
+ return &GraphServiceBookingBusinessesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BookingBusiness item
+func (b *GraphServiceBookingBusinessesCollectionRequestBuilder) ID(id string) *BookingBusinessRequestBuilder {
+ bb := &BookingBusinessRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceBookingBusinessesCollectionRequest is request for BookingBusiness collection
+type GraphServiceBookingBusinessesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BookingBusiness collection
+func (r *GraphServiceBookingBusinessesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]BookingBusiness, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BookingBusiness
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BookingBusiness
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BookingBusiness collection
+func (r *GraphServiceBookingBusinessesCollectionRequest) Get(ctx context.Context) ([]BookingBusiness, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for BookingBusiness collection
+func (r *GraphServiceBookingBusinessesCollectionRequest) Add(ctx context.Context, reqObj *BookingBusiness) (resObj *BookingBusiness, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// BookingCurrencies returns request builder for BookingCurrency collection
+func (b *GraphServiceRequestBuilder) BookingCurrencies() *GraphServiceBookingCurrenciesCollectionRequestBuilder {
+ bb := &GraphServiceBookingCurrenciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/bookingCurrencies"
+ return bb
+}
+
+// GraphServiceBookingCurrenciesCollectionRequestBuilder is request builder for BookingCurrency collection
+type GraphServiceBookingCurrenciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BookingCurrency collection
+func (b *GraphServiceBookingCurrenciesCollectionRequestBuilder) Request() *GraphServiceBookingCurrenciesCollectionRequest {
+ return &GraphServiceBookingCurrenciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BookingCurrency item
+func (b *GraphServiceBookingCurrenciesCollectionRequestBuilder) ID(id string) *BookingCurrencyRequestBuilder {
+ bb := &BookingCurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceBookingCurrenciesCollectionRequest is request for BookingCurrency collection
+type GraphServiceBookingCurrenciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BookingCurrency collection
+func (r *GraphServiceBookingCurrenciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]BookingCurrency, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BookingCurrency
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BookingCurrency
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BookingCurrency collection
+func (r *GraphServiceBookingCurrenciesCollectionRequest) Get(ctx context.Context) ([]BookingCurrency, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for BookingCurrency collection
+func (r *GraphServiceBookingCurrenciesCollectionRequest) Add(ctx context.Context, reqObj *BookingCurrency) (resObj *BookingCurrency, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// BusinessFlowTemplates returns request builder for BusinessFlowTemplate collection
+func (b *GraphServiceRequestBuilder) BusinessFlowTemplates() *GraphServiceBusinessFlowTemplatesCollectionRequestBuilder {
+ bb := &GraphServiceBusinessFlowTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/businessFlowTemplates"
+ return bb
+}
+
+// GraphServiceBusinessFlowTemplatesCollectionRequestBuilder is request builder for BusinessFlowTemplate collection
+type GraphServiceBusinessFlowTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BusinessFlowTemplate collection
+func (b *GraphServiceBusinessFlowTemplatesCollectionRequestBuilder) Request() *GraphServiceBusinessFlowTemplatesCollectionRequest {
+ return &GraphServiceBusinessFlowTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BusinessFlowTemplate item
+func (b *GraphServiceBusinessFlowTemplatesCollectionRequestBuilder) ID(id string) *BusinessFlowTemplateRequestBuilder {
+ bb := &BusinessFlowTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceBusinessFlowTemplatesCollectionRequest is request for BusinessFlowTemplate collection
+type GraphServiceBusinessFlowTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BusinessFlowTemplate collection
+func (r *GraphServiceBusinessFlowTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]BusinessFlowTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BusinessFlowTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BusinessFlowTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BusinessFlowTemplate collection
+func (r *GraphServiceBusinessFlowTemplatesCollectionRequest) Get(ctx context.Context) ([]BusinessFlowTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for BusinessFlowTemplate collection
+func (r *GraphServiceBusinessFlowTemplatesCollectionRequest) Add(ctx context.Context, reqObj *BusinessFlowTemplate) (resObj *BusinessFlowTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CertificateBasedAuthConfiguration returns request builder for CertificateBasedAuthConfiguration collection
+func (b *GraphServiceRequestBuilder) CertificateBasedAuthConfiguration() *GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder {
+ bb := &GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/certificateBasedAuthConfiguration"
+ return bb
+}
+
+// GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder is request builder for CertificateBasedAuthConfiguration collection
+type GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CertificateBasedAuthConfiguration collection
+func (b *GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder) Request() *GraphServiceCertificateBasedAuthConfigurationCollectionRequest {
+ return &GraphServiceCertificateBasedAuthConfigurationCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CertificateBasedAuthConfiguration item
+func (b *GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder) ID(id string) *CertificateBasedAuthConfigurationRequestBuilder {
+ bb := &CertificateBasedAuthConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceCertificateBasedAuthConfigurationCollectionRequest is request for CertificateBasedAuthConfiguration collection
+type GraphServiceCertificateBasedAuthConfigurationCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CertificateBasedAuthConfiguration collection
+func (r *GraphServiceCertificateBasedAuthConfigurationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]CertificateBasedAuthConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CertificateBasedAuthConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CertificateBasedAuthConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CertificateBasedAuthConfiguration collection
+func (r *GraphServiceCertificateBasedAuthConfigurationCollectionRequest) Get(ctx context.Context) ([]CertificateBasedAuthConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for CertificateBasedAuthConfiguration collection
+func (r *GraphServiceCertificateBasedAuthConfigurationCollectionRequest) Add(ctx context.Context, reqObj *CertificateBasedAuthConfiguration) (resObj *CertificateBasedAuthConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Chats returns request builder for Chat collection
+func (b *GraphServiceRequestBuilder) Chats() *GraphServiceChatsCollectionRequestBuilder {
+ bb := &GraphServiceChatsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/chats"
+ return bb
+}
+
+// GraphServiceChatsCollectionRequestBuilder is request builder for Chat collection
+type GraphServiceChatsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Chat collection
+func (b *GraphServiceChatsCollectionRequestBuilder) Request() *GraphServiceChatsCollectionRequest {
+ return &GraphServiceChatsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Chat item
+func (b *GraphServiceChatsCollectionRequestBuilder) ID(id string) *ChatRequestBuilder {
+ bb := &ChatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceChatsCollectionRequest is request for Chat collection
+type GraphServiceChatsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Chat collection
+func (r *GraphServiceChatsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Chat, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Chat
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Chat
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Chat collection
+func (r *GraphServiceChatsCollectionRequest) Get(ctx context.Context) ([]Chat, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Chat collection
+func (r *GraphServiceChatsCollectionRequest) Add(ctx context.Context, reqObj *Chat) (resObj *Chat, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Commands returns request builder for Command collection
+func (b *GraphServiceRequestBuilder) Commands() *GraphServiceCommandsCollectionRequestBuilder {
+ bb := &GraphServiceCommandsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/commands"
+ return bb
+}
+
+// GraphServiceCommandsCollectionRequestBuilder is request builder for Command collection
+type GraphServiceCommandsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Command collection
+func (b *GraphServiceCommandsCollectionRequestBuilder) Request() *GraphServiceCommandsCollectionRequest {
+ return &GraphServiceCommandsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Command item
+func (b *GraphServiceCommandsCollectionRequestBuilder) ID(id string) *CommandRequestBuilder {
+ bb := &CommandRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceCommandsCollectionRequest is request for Command collection
+type GraphServiceCommandsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Command collection
+func (r *GraphServiceCommandsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Command, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Command
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Command
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Command collection
+func (r *GraphServiceCommandsCollectionRequest) Get(ctx context.Context) ([]Command, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Command collection
+func (r *GraphServiceCommandsCollectionRequest) Add(ctx context.Context, reqObj *Command) (resObj *Command, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Connections returns request builder for ExternalConnection collection
+func (b *GraphServiceRequestBuilder) Connections() *GraphServiceConnectionsCollectionRequestBuilder {
+ bb := &GraphServiceConnectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/connections"
+ return bb
+}
+
+// GraphServiceConnectionsCollectionRequestBuilder is request builder for ExternalConnection collection
+type GraphServiceConnectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ExternalConnection collection
+func (b *GraphServiceConnectionsCollectionRequestBuilder) Request() *GraphServiceConnectionsCollectionRequest {
+ return &GraphServiceConnectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ExternalConnection item
+func (b *GraphServiceConnectionsCollectionRequestBuilder) ID(id string) *ExternalConnectionRequestBuilder {
+ bb := &ExternalConnectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceConnectionsCollectionRequest is request for ExternalConnection collection
+type GraphServiceConnectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ExternalConnection collection
+func (r *GraphServiceConnectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ExternalConnection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ExternalConnection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ExternalConnection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ExternalConnection collection
+func (r *GraphServiceConnectionsCollectionRequest) Get(ctx context.Context) ([]ExternalConnection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ExternalConnection collection
+func (r *GraphServiceConnectionsCollectionRequest) Add(ctx context.Context, reqObj *ExternalConnection) (resObj *ExternalConnection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Contacts returns request builder for OrgContact collection
+func (b *GraphServiceRequestBuilder) Contacts() *GraphServiceContactsCollectionRequestBuilder {
+ bb := &GraphServiceContactsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contacts"
+ return bb
+}
+
+// GraphServiceContactsCollectionRequestBuilder is request builder for OrgContact collection
+type GraphServiceContactsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OrgContact collection
+func (b *GraphServiceContactsCollectionRequestBuilder) Request() *GraphServiceContactsCollectionRequest {
+ return &GraphServiceContactsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OrgContact item
+func (b *GraphServiceContactsCollectionRequestBuilder) ID(id string) *OrgContactRequestBuilder {
+ bb := &OrgContactRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceContactsCollectionRequest is request for OrgContact collection
+type GraphServiceContactsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OrgContact collection
+func (r *GraphServiceContactsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OrgContact, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OrgContact
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OrgContact
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OrgContact collection
+func (r *GraphServiceContactsCollectionRequest) Get(ctx context.Context) ([]OrgContact, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OrgContact collection
+func (r *GraphServiceContactsCollectionRequest) Add(ctx context.Context, reqObj *OrgContact) (resObj *OrgContact, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Contracts returns request builder for Contract collection
+func (b *GraphServiceRequestBuilder) Contracts() *GraphServiceContractsCollectionRequestBuilder {
+ bb := &GraphServiceContractsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contracts"
+ return bb
+}
+
+// GraphServiceContractsCollectionRequestBuilder is request builder for Contract collection
+type GraphServiceContractsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Contract collection
+func (b *GraphServiceContractsCollectionRequestBuilder) Request() *GraphServiceContractsCollectionRequest {
+ return &GraphServiceContractsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Contract item
+func (b *GraphServiceContractsCollectionRequestBuilder) ID(id string) *ContractRequestBuilder {
+ bb := &ContractRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceContractsCollectionRequest is request for Contract collection
+type GraphServiceContractsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Contract collection
+func (r *GraphServiceContractsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Contract, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Contract
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Contract
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Contract collection
+func (r *GraphServiceContractsCollectionRequest) Get(ctx context.Context) ([]Contract, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Contract collection
+func (r *GraphServiceContractsCollectionRequest) Add(ctx context.Context, reqObj *Contract) (resObj *Contract, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DataPolicyOperations returns request builder for DataPolicyOperation collection
+func (b *GraphServiceRequestBuilder) DataPolicyOperations() *GraphServiceDataPolicyOperationsCollectionRequestBuilder {
+ bb := &GraphServiceDataPolicyOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/dataPolicyOperations"
+ return bb
+}
+
+// GraphServiceDataPolicyOperationsCollectionRequestBuilder is request builder for DataPolicyOperation collection
+type GraphServiceDataPolicyOperationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DataPolicyOperation collection
+func (b *GraphServiceDataPolicyOperationsCollectionRequestBuilder) Request() *GraphServiceDataPolicyOperationsCollectionRequest {
+ return &GraphServiceDataPolicyOperationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DataPolicyOperation item
+func (b *GraphServiceDataPolicyOperationsCollectionRequestBuilder) ID(id string) *DataPolicyOperationRequestBuilder {
+ bb := &DataPolicyOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDataPolicyOperationsCollectionRequest is request for DataPolicyOperation collection
+type GraphServiceDataPolicyOperationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DataPolicyOperation collection
+func (r *GraphServiceDataPolicyOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DataPolicyOperation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DataPolicyOperation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DataPolicyOperation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DataPolicyOperation collection
+func (r *GraphServiceDataPolicyOperationsCollectionRequest) Get(ctx context.Context) ([]DataPolicyOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DataPolicyOperation collection
+func (r *GraphServiceDataPolicyOperationsCollectionRequest) Add(ctx context.Context, reqObj *DataPolicyOperation) (resObj *DataPolicyOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Devices returns request builder for Device collection
+func (b *GraphServiceRequestBuilder) Devices() *GraphServiceDevicesCollectionRequestBuilder {
+ bb := &GraphServiceDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/devices"
+ return bb
+}
+
+// GraphServiceDevicesCollectionRequestBuilder is request builder for Device collection
+type GraphServiceDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Device collection
+func (b *GraphServiceDevicesCollectionRequestBuilder) Request() *GraphServiceDevicesCollectionRequest {
+ return &GraphServiceDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Device item
+func (b *GraphServiceDevicesCollectionRequestBuilder) ID(id string) *DeviceRequestBuilder {
+ bb := &DeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDevicesCollectionRequest is request for Device collection
+type GraphServiceDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Device collection
+func (r *GraphServiceDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Device, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Device
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Device
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Device collection
+func (r *GraphServiceDevicesCollectionRequest) Get(ctx context.Context) ([]Device, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Device collection
+func (r *GraphServiceDevicesCollectionRequest) Add(ctx context.Context, reqObj *Device) (resObj *Device, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Directories returns request builder for DirectoryDefinition collection
+func (b *GraphServiceRequestBuilder) Directories() *GraphServiceDirectoriesCollectionRequestBuilder {
+ bb := &GraphServiceDirectoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directories"
+ return bb
+}
+
+// GraphServiceDirectoriesCollectionRequestBuilder is request builder for DirectoryDefinition collection
+type GraphServiceDirectoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryDefinition collection
+func (b *GraphServiceDirectoriesCollectionRequestBuilder) Request() *GraphServiceDirectoriesCollectionRequest {
+ return &GraphServiceDirectoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryDefinition item
+func (b *GraphServiceDirectoriesCollectionRequestBuilder) ID(id string) *DirectoryDefinitionRequestBuilder {
+ bb := &DirectoryDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDirectoriesCollectionRequest is request for DirectoryDefinition collection
+type GraphServiceDirectoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryDefinition collection
+func (r *GraphServiceDirectoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryDefinition collection
+func (r *GraphServiceDirectoriesCollectionRequest) Get(ctx context.Context) ([]DirectoryDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryDefinition collection
+func (r *GraphServiceDirectoriesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryDefinition) (resObj *DirectoryDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DirectoryObjects returns request builder for DirectoryObject collection
+func (b *GraphServiceRequestBuilder) DirectoryObjects() *GraphServiceDirectoryObjectsCollectionRequestBuilder {
+ bb := &GraphServiceDirectoryObjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directoryObjects"
+ return bb
+}
+
+// GraphServiceDirectoryObjectsCollectionRequestBuilder is request builder for DirectoryObject collection
+type GraphServiceDirectoryObjectsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GraphServiceDirectoryObjectsCollectionRequestBuilder) Request() *GraphServiceDirectoryObjectsCollectionRequest {
+ return &GraphServiceDirectoryObjectsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GraphServiceDirectoryObjectsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDirectoryObjectsCollectionRequest is request for DirectoryObject collection
+type GraphServiceDirectoryObjectsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GraphServiceDirectoryObjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GraphServiceDirectoryObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GraphServiceDirectoryObjectsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DirectoryRoleTemplates returns request builder for DirectoryRoleTemplate collection
+func (b *GraphServiceRequestBuilder) DirectoryRoleTemplates() *GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder {
+ bb := &GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directoryRoleTemplates"
+ return bb
+}
+
+// GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder is request builder for DirectoryRoleTemplate collection
+type GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryRoleTemplate collection
+func (b *GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder) Request() *GraphServiceDirectoryRoleTemplatesCollectionRequest {
+ return &GraphServiceDirectoryRoleTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryRoleTemplate item
+func (b *GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder) ID(id string) *DirectoryRoleTemplateRequestBuilder {
+ bb := &DirectoryRoleTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDirectoryRoleTemplatesCollectionRequest is request for DirectoryRoleTemplate collection
+type GraphServiceDirectoryRoleTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryRoleTemplate collection
+func (r *GraphServiceDirectoryRoleTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryRoleTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryRoleTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryRoleTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryRoleTemplate collection
+func (r *GraphServiceDirectoryRoleTemplatesCollectionRequest) Get(ctx context.Context) ([]DirectoryRoleTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryRoleTemplate collection
+func (r *GraphServiceDirectoryRoleTemplatesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryRoleTemplate) (resObj *DirectoryRoleTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DirectoryRoles returns request builder for DirectoryRole collection
+func (b *GraphServiceRequestBuilder) DirectoryRoles() *GraphServiceDirectoryRolesCollectionRequestBuilder {
+ bb := &GraphServiceDirectoryRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directoryRoles"
+ return bb
+}
+
+// GraphServiceDirectoryRolesCollectionRequestBuilder is request builder for DirectoryRole collection
+type GraphServiceDirectoryRolesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryRole collection
+func (b *GraphServiceDirectoryRolesCollectionRequestBuilder) Request() *GraphServiceDirectoryRolesCollectionRequest {
+ return &GraphServiceDirectoryRolesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryRole item
+func (b *GraphServiceDirectoryRolesCollectionRequestBuilder) ID(id string) *DirectoryRoleRequestBuilder {
+ bb := &DirectoryRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDirectoryRolesCollectionRequest is request for DirectoryRole collection
+type GraphServiceDirectoryRolesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryRole collection
+func (r *GraphServiceDirectoryRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryRole, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryRole
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryRole
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryRole collection
+func (r *GraphServiceDirectoryRolesCollectionRequest) Get(ctx context.Context) ([]DirectoryRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryRole collection
+func (r *GraphServiceDirectoryRolesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryRole) (resObj *DirectoryRole, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DirectorySettingTemplates returns request builder for DirectorySettingTemplate collection
+func (b *GraphServiceRequestBuilder) DirectorySettingTemplates() *GraphServiceDirectorySettingTemplatesCollectionRequestBuilder {
+ bb := &GraphServiceDirectorySettingTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directorySettingTemplates"
+ return bb
+}
+
+// GraphServiceDirectorySettingTemplatesCollectionRequestBuilder is request builder for DirectorySettingTemplate collection
+type GraphServiceDirectorySettingTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectorySettingTemplate collection
+func (b *GraphServiceDirectorySettingTemplatesCollectionRequestBuilder) Request() *GraphServiceDirectorySettingTemplatesCollectionRequest {
+ return &GraphServiceDirectorySettingTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectorySettingTemplate item
+func (b *GraphServiceDirectorySettingTemplatesCollectionRequestBuilder) ID(id string) *DirectorySettingTemplateRequestBuilder {
+ bb := &DirectorySettingTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDirectorySettingTemplatesCollectionRequest is request for DirectorySettingTemplate collection
+type GraphServiceDirectorySettingTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectorySettingTemplate collection
+func (r *GraphServiceDirectorySettingTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectorySettingTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectorySettingTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectorySettingTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectorySettingTemplate collection
+func (r *GraphServiceDirectorySettingTemplatesCollectionRequest) Get(ctx context.Context) ([]DirectorySettingTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectorySettingTemplate collection
+func (r *GraphServiceDirectorySettingTemplatesCollectionRequest) Add(ctx context.Context, reqObj *DirectorySettingTemplate) (resObj *DirectorySettingTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DomainDNSRecords returns request builder for DomainDNSRecord collection
+func (b *GraphServiceRequestBuilder) DomainDNSRecords() *GraphServiceDomainDNSRecordsCollectionRequestBuilder {
+ bb := &GraphServiceDomainDNSRecordsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/domainDnsRecords"
+ return bb
+}
+
+// GraphServiceDomainDNSRecordsCollectionRequestBuilder is request builder for DomainDNSRecord collection
+type GraphServiceDomainDNSRecordsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DomainDNSRecord collection
+func (b *GraphServiceDomainDNSRecordsCollectionRequestBuilder) Request() *GraphServiceDomainDNSRecordsCollectionRequest {
+ return &GraphServiceDomainDNSRecordsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DomainDNSRecord item
+func (b *GraphServiceDomainDNSRecordsCollectionRequestBuilder) ID(id string) *DomainDNSRecordRequestBuilder {
+ bb := &DomainDNSRecordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDomainDNSRecordsCollectionRequest is request for DomainDNSRecord collection
+type GraphServiceDomainDNSRecordsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DomainDNSRecord collection
+func (r *GraphServiceDomainDNSRecordsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DomainDNSRecord, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DomainDNSRecord
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DomainDNSRecord
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DomainDNSRecord collection
+func (r *GraphServiceDomainDNSRecordsCollectionRequest) Get(ctx context.Context) ([]DomainDNSRecord, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DomainDNSRecord collection
+func (r *GraphServiceDomainDNSRecordsCollectionRequest) Add(ctx context.Context, reqObj *DomainDNSRecord) (resObj *DomainDNSRecord, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Domains returns request builder for Domain collection
+func (b *GraphServiceRequestBuilder) Domains() *GraphServiceDomainsCollectionRequestBuilder {
+ bb := &GraphServiceDomainsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/domains"
+ return bb
+}
+
+// GraphServiceDomainsCollectionRequestBuilder is request builder for Domain collection
+type GraphServiceDomainsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Domain collection
+func (b *GraphServiceDomainsCollectionRequestBuilder) Request() *GraphServiceDomainsCollectionRequest {
+ return &GraphServiceDomainsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Domain item
+func (b *GraphServiceDomainsCollectionRequestBuilder) ID(id string) *DomainRequestBuilder {
+ bb := &DomainRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDomainsCollectionRequest is request for Domain collection
+type GraphServiceDomainsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Domain collection
+func (r *GraphServiceDomainsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Domain, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Domain
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Domain
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Domain collection
+func (r *GraphServiceDomainsCollectionRequest) Get(ctx context.Context) ([]Domain, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Domain collection
+func (r *GraphServiceDomainsCollectionRequest) Add(ctx context.Context, reqObj *Domain) (resObj *Domain, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Drives returns request builder for Drive collection
+func (b *GraphServiceRequestBuilder) Drives() *GraphServiceDrivesCollectionRequestBuilder {
+ bb := &GraphServiceDrivesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drives"
+ return bb
+}
+
+// GraphServiceDrivesCollectionRequestBuilder is request builder for Drive collection
+type GraphServiceDrivesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Drive collection
+func (b *GraphServiceDrivesCollectionRequestBuilder) Request() *GraphServiceDrivesCollectionRequest {
+ return &GraphServiceDrivesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Drive item
+func (b *GraphServiceDrivesCollectionRequestBuilder) ID(id string) *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDrivesCollectionRequest is request for Drive collection
+type GraphServiceDrivesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Drive collection
+func (r *GraphServiceDrivesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Drive, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Drive
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Drive
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Drive collection
+func (r *GraphServiceDrivesCollectionRequest) Get(ctx context.Context) ([]Drive, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Drive collection
+func (r *GraphServiceDrivesCollectionRequest) Add(ctx context.Context, reqObj *Drive) (resObj *Drive, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// FilterOperators returns request builder for FilterOperatorSchema collection
+func (b *GraphServiceRequestBuilder) FilterOperators() *GraphServiceFilterOperatorsCollectionRequestBuilder {
+ bb := &GraphServiceFilterOperatorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/filterOperators"
+ return bb
+}
+
+// GraphServiceFilterOperatorsCollectionRequestBuilder is request builder for FilterOperatorSchema collection
+type GraphServiceFilterOperatorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for FilterOperatorSchema collection
+func (b *GraphServiceFilterOperatorsCollectionRequestBuilder) Request() *GraphServiceFilterOperatorsCollectionRequest {
+ return &GraphServiceFilterOperatorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for FilterOperatorSchema item
+func (b *GraphServiceFilterOperatorsCollectionRequestBuilder) ID(id string) *FilterOperatorSchemaRequestBuilder {
+ bb := &FilterOperatorSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceFilterOperatorsCollectionRequest is request for FilterOperatorSchema collection
+type GraphServiceFilterOperatorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for FilterOperatorSchema collection
+func (r *GraphServiceFilterOperatorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]FilterOperatorSchema, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []FilterOperatorSchema
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []FilterOperatorSchema
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for FilterOperatorSchema collection
+func (r *GraphServiceFilterOperatorsCollectionRequest) Get(ctx context.Context) ([]FilterOperatorSchema, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for FilterOperatorSchema collection
+func (r *GraphServiceFilterOperatorsCollectionRequest) Add(ctx context.Context, reqObj *FilterOperatorSchema) (resObj *FilterOperatorSchema, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Functions returns request builder for AttributeMappingFunctionSchema collection
+func (b *GraphServiceRequestBuilder) Functions() *GraphServiceFunctionsCollectionRequestBuilder {
+ bb := &GraphServiceFunctionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/functions"
+ return bb
+}
+
+// GraphServiceFunctionsCollectionRequestBuilder is request builder for AttributeMappingFunctionSchema collection
+type GraphServiceFunctionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AttributeMappingFunctionSchema collection
+func (b *GraphServiceFunctionsCollectionRequestBuilder) Request() *GraphServiceFunctionsCollectionRequest {
+ return &GraphServiceFunctionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AttributeMappingFunctionSchema item
+func (b *GraphServiceFunctionsCollectionRequestBuilder) ID(id string) *AttributeMappingFunctionSchemaRequestBuilder {
+ bb := &AttributeMappingFunctionSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceFunctionsCollectionRequest is request for AttributeMappingFunctionSchema collection
+type GraphServiceFunctionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AttributeMappingFunctionSchema collection
+func (r *GraphServiceFunctionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AttributeMappingFunctionSchema, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AttributeMappingFunctionSchema
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AttributeMappingFunctionSchema
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AttributeMappingFunctionSchema collection
+func (r *GraphServiceFunctionsCollectionRequest) Get(ctx context.Context) ([]AttributeMappingFunctionSchema, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AttributeMappingFunctionSchema collection
+func (r *GraphServiceFunctionsCollectionRequest) Add(ctx context.Context, reqObj *AttributeMappingFunctionSchema) (resObj *AttributeMappingFunctionSchema, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GovernanceResources returns request builder for GovernanceResource collection
+func (b *GraphServiceRequestBuilder) GovernanceResources() *GraphServiceGovernanceResourcesCollectionRequestBuilder {
+ bb := &GraphServiceGovernanceResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/governanceResources"
+ return bb
+}
+
+// GraphServiceGovernanceResourcesCollectionRequestBuilder is request builder for GovernanceResource collection
+type GraphServiceGovernanceResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceResource collection
+func (b *GraphServiceGovernanceResourcesCollectionRequestBuilder) Request() *GraphServiceGovernanceResourcesCollectionRequest {
+ return &GraphServiceGovernanceResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceResource item
+func (b *GraphServiceGovernanceResourcesCollectionRequestBuilder) ID(id string) *GovernanceResourceRequestBuilder {
+ bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceGovernanceResourcesCollectionRequest is request for GovernanceResource collection
+type GraphServiceGovernanceResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceResource collection
+func (r *GraphServiceGovernanceResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GovernanceResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceResource collection
+func (r *GraphServiceGovernanceResourcesCollectionRequest) Get(ctx context.Context) ([]GovernanceResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GovernanceResource collection
+func (r *GraphServiceGovernanceResourcesCollectionRequest) Add(ctx context.Context, reqObj *GovernanceResource) (resObj *GovernanceResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GovernanceRoleAssignmentRequests returns request builder for GovernanceRoleAssignmentRequestObject collection
+func (b *GraphServiceRequestBuilder) GovernanceRoleAssignmentRequests() *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder {
+ bb := &GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/governanceRoleAssignmentRequests"
+ return bb
+}
+
+// GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder is request builder for GovernanceRoleAssignmentRequestObject collection
+type GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleAssignmentRequestObject collection
+func (b *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder) Request() *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest {
+ return &GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleAssignmentRequestObject item
+func (b *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestObjectRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest is request for GovernanceRoleAssignmentRequestObject collection
+type GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleAssignmentRequestObject collection
+func (r *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GovernanceRoleAssignmentRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleAssignmentRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleAssignmentRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleAssignmentRequestObject collection
+func (r *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GovernanceRoleAssignmentRequestObject collection
+func (r *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignmentRequestObject) (resObj *GovernanceRoleAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GovernanceRoleAssignments returns request builder for GovernanceRoleAssignment collection
+func (b *GraphServiceRequestBuilder) GovernanceRoleAssignments() *GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder {
+ bb := &GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/governanceRoleAssignments"
+ return bb
+}
+
+// GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder is request builder for GovernanceRoleAssignment collection
+type GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleAssignment collection
+func (b *GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder) Request() *GraphServiceGovernanceRoleAssignmentsCollectionRequest {
+ return &GraphServiceGovernanceRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleAssignment item
+func (b *GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceGovernanceRoleAssignmentsCollectionRequest is request for GovernanceRoleAssignment collection
+type GraphServiceGovernanceRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleAssignment collection
+func (r *GraphServiceGovernanceRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GovernanceRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleAssignment collection
+func (r *GraphServiceGovernanceRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GovernanceRoleAssignment collection
+func (r *GraphServiceGovernanceRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignment) (resObj *GovernanceRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GovernanceRoleDefinitions returns request builder for GovernanceRoleDefinition collection
+func (b *GraphServiceRequestBuilder) GovernanceRoleDefinitions() *GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder {
+ bb := &GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/governanceRoleDefinitions"
+ return bb
+}
+
+// GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder is request builder for GovernanceRoleDefinition collection
+type GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleDefinition collection
+func (b *GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder) Request() *GraphServiceGovernanceRoleDefinitionsCollectionRequest {
+ return &GraphServiceGovernanceRoleDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleDefinition item
+func (b *GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder) ID(id string) *GovernanceRoleDefinitionRequestBuilder {
+ bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceGovernanceRoleDefinitionsCollectionRequest is request for GovernanceRoleDefinition collection
+type GraphServiceGovernanceRoleDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleDefinition collection
+func (r *GraphServiceGovernanceRoleDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GovernanceRoleDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleDefinition collection
+func (r *GraphServiceGovernanceRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GovernanceRoleDefinition collection
+func (r *GraphServiceGovernanceRoleDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleDefinition) (resObj *GovernanceRoleDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GovernanceRoleSettings returns request builder for GovernanceRoleSetting collection
+func (b *GraphServiceRequestBuilder) GovernanceRoleSettings() *GraphServiceGovernanceRoleSettingsCollectionRequestBuilder {
+ bb := &GraphServiceGovernanceRoleSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/governanceRoleSettings"
+ return bb
+}
+
+// GraphServiceGovernanceRoleSettingsCollectionRequestBuilder is request builder for GovernanceRoleSetting collection
+type GraphServiceGovernanceRoleSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleSetting collection
+func (b *GraphServiceGovernanceRoleSettingsCollectionRequestBuilder) Request() *GraphServiceGovernanceRoleSettingsCollectionRequest {
+ return &GraphServiceGovernanceRoleSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleSetting item
+func (b *GraphServiceGovernanceRoleSettingsCollectionRequestBuilder) ID(id string) *GovernanceRoleSettingRequestBuilder {
+ bb := &GovernanceRoleSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceGovernanceRoleSettingsCollectionRequest is request for GovernanceRoleSetting collection
+type GraphServiceGovernanceRoleSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleSetting collection
+func (r *GraphServiceGovernanceRoleSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GovernanceRoleSetting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleSetting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleSetting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleSetting collection
+func (r *GraphServiceGovernanceRoleSettingsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleSetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GovernanceRoleSetting collection
+func (r *GraphServiceGovernanceRoleSettingsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleSetting) (resObj *GovernanceRoleSetting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GovernanceSubjects returns request builder for GovernanceSubject collection
+func (b *GraphServiceRequestBuilder) GovernanceSubjects() *GraphServiceGovernanceSubjectsCollectionRequestBuilder {
+ bb := &GraphServiceGovernanceSubjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/governanceSubjects"
+ return bb
+}
+
+// GraphServiceGovernanceSubjectsCollectionRequestBuilder is request builder for GovernanceSubject collection
+type GraphServiceGovernanceSubjectsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceSubject collection
+func (b *GraphServiceGovernanceSubjectsCollectionRequestBuilder) Request() *GraphServiceGovernanceSubjectsCollectionRequest {
+ return &GraphServiceGovernanceSubjectsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceSubject item
+func (b *GraphServiceGovernanceSubjectsCollectionRequestBuilder) ID(id string) *GovernanceSubjectRequestBuilder {
+ bb := &GovernanceSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceGovernanceSubjectsCollectionRequest is request for GovernanceSubject collection
+type GraphServiceGovernanceSubjectsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceSubject collection
+func (r *GraphServiceGovernanceSubjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GovernanceSubject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceSubject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceSubject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceSubject collection
+func (r *GraphServiceGovernanceSubjectsCollectionRequest) Get(ctx context.Context) ([]GovernanceSubject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GovernanceSubject collection
+func (r *GraphServiceGovernanceSubjectsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceSubject) (resObj *GovernanceSubject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupLifecyclePolicies returns request builder for GroupLifecyclePolicy collection
+func (b *GraphServiceRequestBuilder) GroupLifecyclePolicies() *GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder {
+ bb := &GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupLifecyclePolicies"
+ return bb
+}
+
+// GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder is request builder for GroupLifecyclePolicy collection
+type GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupLifecyclePolicy collection
+func (b *GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder) Request() *GraphServiceGroupLifecyclePoliciesCollectionRequest {
+ return &GraphServiceGroupLifecyclePoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupLifecyclePolicy item
+func (b *GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder) ID(id string) *GroupLifecyclePolicyRequestBuilder {
+ bb := &GroupLifecyclePolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceGroupLifecyclePoliciesCollectionRequest is request for GroupLifecyclePolicy collection
+type GraphServiceGroupLifecyclePoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupLifecyclePolicy collection
+func (r *GraphServiceGroupLifecyclePoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GroupLifecyclePolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupLifecyclePolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupLifecyclePolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupLifecyclePolicy collection
+func (r *GraphServiceGroupLifecyclePoliciesCollectionRequest) Get(ctx context.Context) ([]GroupLifecyclePolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GroupLifecyclePolicy collection
+func (r *GraphServiceGroupLifecyclePoliciesCollectionRequest) Add(ctx context.Context, reqObj *GroupLifecyclePolicy) (resObj *GroupLifecyclePolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Groups returns request builder for Group collection
+func (b *GraphServiceRequestBuilder) Groups() *GraphServiceGroupsCollectionRequestBuilder {
+ bb := &GraphServiceGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groups"
+ return bb
+}
+
+// GraphServiceGroupsCollectionRequestBuilder is request builder for Group collection
+type GraphServiceGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Group collection
+func (b *GraphServiceGroupsCollectionRequestBuilder) Request() *GraphServiceGroupsCollectionRequest {
+ return &GraphServiceGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Group item
+func (b *GraphServiceGroupsCollectionRequestBuilder) ID(id string) *GroupRequestBuilder {
+ bb := &GroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceGroupsCollectionRequest is request for Group collection
+type GraphServiceGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Group collection
+func (r *GraphServiceGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Group, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Group
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Group
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Group collection
+func (r *GraphServiceGroupsCollectionRequest) Get(ctx context.Context) ([]Group, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Group collection
+func (r *GraphServiceGroupsCollectionRequest) Add(ctx context.Context, reqObj *Group) (resObj *Group, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IdentityProviders returns request builder for IdentityProvider collection
+func (b *GraphServiceRequestBuilder) IdentityProviders() *GraphServiceIdentityProvidersCollectionRequestBuilder {
+ bb := &GraphServiceIdentityProvidersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityProviders"
+ return bb
+}
+
+// GraphServiceIdentityProvidersCollectionRequestBuilder is request builder for IdentityProvider collection
+type GraphServiceIdentityProvidersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IdentityProvider collection
+func (b *GraphServiceIdentityProvidersCollectionRequestBuilder) Request() *GraphServiceIdentityProvidersCollectionRequest {
+ return &GraphServiceIdentityProvidersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IdentityProvider item
+func (b *GraphServiceIdentityProvidersCollectionRequestBuilder) ID(id string) *IdentityProviderRequestBuilder {
+ bb := &IdentityProviderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceIdentityProvidersCollectionRequest is request for IdentityProvider collection
+type GraphServiceIdentityProvidersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IdentityProvider collection
+func (r *GraphServiceIdentityProvidersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]IdentityProvider, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IdentityProvider
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IdentityProvider
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IdentityProvider collection
+func (r *GraphServiceIdentityProvidersCollectionRequest) Get(ctx context.Context) ([]IdentityProvider, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for IdentityProvider collection
+func (r *GraphServiceIdentityProvidersCollectionRequest) Add(ctx context.Context, reqObj *IdentityProvider) (resObj *IdentityProvider, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IdentityRiskEvents returns request builder for IdentityRiskEvent collection
+func (b *GraphServiceRequestBuilder) IdentityRiskEvents() *GraphServiceIdentityRiskEventsCollectionRequestBuilder {
+ bb := &GraphServiceIdentityRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityRiskEvents"
+ return bb
+}
+
+// GraphServiceIdentityRiskEventsCollectionRequestBuilder is request builder for IdentityRiskEvent collection
+type GraphServiceIdentityRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IdentityRiskEvent collection
+func (b *GraphServiceIdentityRiskEventsCollectionRequestBuilder) Request() *GraphServiceIdentityRiskEventsCollectionRequest {
+ return &GraphServiceIdentityRiskEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IdentityRiskEvent item
+func (b *GraphServiceIdentityRiskEventsCollectionRequestBuilder) ID(id string) *IdentityRiskEventRequestBuilder {
+ bb := &IdentityRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceIdentityRiskEventsCollectionRequest is request for IdentityRiskEvent collection
+type GraphServiceIdentityRiskEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IdentityRiskEvent collection
+func (r *GraphServiceIdentityRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]IdentityRiskEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IdentityRiskEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IdentityRiskEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IdentityRiskEvent collection
+func (r *GraphServiceIdentityRiskEventsCollectionRequest) Get(ctx context.Context) ([]IdentityRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for IdentityRiskEvent collection
+func (r *GraphServiceIdentityRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *IdentityRiskEvent) (resObj *IdentityRiskEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ImpossibleTravelRiskEvents returns request builder for ImpossibleTravelRiskEvent collection
+func (b *GraphServiceRequestBuilder) ImpossibleTravelRiskEvents() *GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder {
+ bb := &GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/impossibleTravelRiskEvents"
+ return bb
+}
+
+// GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder is request builder for ImpossibleTravelRiskEvent collection
+type GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ImpossibleTravelRiskEvent collection
+func (b *GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder) Request() *GraphServiceImpossibleTravelRiskEventsCollectionRequest {
+ return &GraphServiceImpossibleTravelRiskEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ImpossibleTravelRiskEvent item
+func (b *GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder) ID(id string) *ImpossibleTravelRiskEventRequestBuilder {
+ bb := &ImpossibleTravelRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceImpossibleTravelRiskEventsCollectionRequest is request for ImpossibleTravelRiskEvent collection
+type GraphServiceImpossibleTravelRiskEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ImpossibleTravelRiskEvent collection
+func (r *GraphServiceImpossibleTravelRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ImpossibleTravelRiskEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ImpossibleTravelRiskEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ImpossibleTravelRiskEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ImpossibleTravelRiskEvent collection
+func (r *GraphServiceImpossibleTravelRiskEventsCollectionRequest) Get(ctx context.Context) ([]ImpossibleTravelRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ImpossibleTravelRiskEvent collection
+func (r *GraphServiceImpossibleTravelRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *ImpossibleTravelRiskEvent) (resObj *ImpossibleTravelRiskEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Invitations returns request builder for Invitation collection
+func (b *GraphServiceRequestBuilder) Invitations() *GraphServiceInvitationsCollectionRequestBuilder {
+ bb := &GraphServiceInvitationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/invitations"
+ return bb
+}
+
+// GraphServiceInvitationsCollectionRequestBuilder is request builder for Invitation collection
+type GraphServiceInvitationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Invitation collection
+func (b *GraphServiceInvitationsCollectionRequestBuilder) Request() *GraphServiceInvitationsCollectionRequest {
+ return &GraphServiceInvitationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Invitation item
+func (b *GraphServiceInvitationsCollectionRequestBuilder) ID(id string) *InvitationRequestBuilder {
+ bb := &InvitationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceInvitationsCollectionRequest is request for Invitation collection
+type GraphServiceInvitationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Invitation collection
+func (r *GraphServiceInvitationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Invitation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Invitation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Invitation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Invitation collection
+func (r *GraphServiceInvitationsCollectionRequest) Get(ctx context.Context) ([]Invitation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Invitation collection
+func (r *GraphServiceInvitationsCollectionRequest) Add(ctx context.Context, reqObj *Invitation) (resObj *Invitation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// LeakedCredentialsRiskEvents returns request builder for LeakedCredentialsRiskEvent collection
+func (b *GraphServiceRequestBuilder) LeakedCredentialsRiskEvents() *GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder {
+ bb := &GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/leakedCredentialsRiskEvents"
+ return bb
+}
+
+// GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder is request builder for LeakedCredentialsRiskEvent collection
+type GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for LeakedCredentialsRiskEvent collection
+func (b *GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder) Request() *GraphServiceLeakedCredentialsRiskEventsCollectionRequest {
+ return &GraphServiceLeakedCredentialsRiskEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for LeakedCredentialsRiskEvent item
+func (b *GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder) ID(id string) *LeakedCredentialsRiskEventRequestBuilder {
+ bb := &LeakedCredentialsRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceLeakedCredentialsRiskEventsCollectionRequest is request for LeakedCredentialsRiskEvent collection
+type GraphServiceLeakedCredentialsRiskEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for LeakedCredentialsRiskEvent collection
+func (r *GraphServiceLeakedCredentialsRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]LeakedCredentialsRiskEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []LeakedCredentialsRiskEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []LeakedCredentialsRiskEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for LeakedCredentialsRiskEvent collection
+func (r *GraphServiceLeakedCredentialsRiskEventsCollectionRequest) Get(ctx context.Context) ([]LeakedCredentialsRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for LeakedCredentialsRiskEvent collection
+func (r *GraphServiceLeakedCredentialsRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *LeakedCredentialsRiskEvent) (resObj *LeakedCredentialsRiskEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MalwareRiskEvents returns request builder for MalwareRiskEvent collection
+func (b *GraphServiceRequestBuilder) MalwareRiskEvents() *GraphServiceMalwareRiskEventsCollectionRequestBuilder {
+ bb := &GraphServiceMalwareRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/malwareRiskEvents"
+ return bb
+}
+
+// GraphServiceMalwareRiskEventsCollectionRequestBuilder is request builder for MalwareRiskEvent collection
+type GraphServiceMalwareRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MalwareRiskEvent collection
+func (b *GraphServiceMalwareRiskEventsCollectionRequestBuilder) Request() *GraphServiceMalwareRiskEventsCollectionRequest {
+ return &GraphServiceMalwareRiskEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MalwareRiskEvent item
+func (b *GraphServiceMalwareRiskEventsCollectionRequestBuilder) ID(id string) *MalwareRiskEventRequestBuilder {
+ bb := &MalwareRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceMalwareRiskEventsCollectionRequest is request for MalwareRiskEvent collection
+type GraphServiceMalwareRiskEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MalwareRiskEvent collection
+func (r *GraphServiceMalwareRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MalwareRiskEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MalwareRiskEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MalwareRiskEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MalwareRiskEvent collection
+func (r *GraphServiceMalwareRiskEventsCollectionRequest) Get(ctx context.Context) ([]MalwareRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MalwareRiskEvent collection
+func (r *GraphServiceMalwareRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *MalwareRiskEvent) (resObj *MalwareRiskEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Oauth2PermissionGrants returns request builder for OAuth2PermissionGrant collection
+func (b *GraphServiceRequestBuilder) Oauth2PermissionGrants() *GraphServiceOauth2PermissionGrantsCollectionRequestBuilder {
+ bb := &GraphServiceOauth2PermissionGrantsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/oauth2PermissionGrants"
+ return bb
+}
+
+// GraphServiceOauth2PermissionGrantsCollectionRequestBuilder is request builder for OAuth2PermissionGrant collection
+type GraphServiceOauth2PermissionGrantsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OAuth2PermissionGrant collection
+func (b *GraphServiceOauth2PermissionGrantsCollectionRequestBuilder) Request() *GraphServiceOauth2PermissionGrantsCollectionRequest {
+ return &GraphServiceOauth2PermissionGrantsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OAuth2PermissionGrant item
+func (b *GraphServiceOauth2PermissionGrantsCollectionRequestBuilder) ID(id string) *OAuth2PermissionGrantRequestBuilder {
+ bb := &OAuth2PermissionGrantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceOauth2PermissionGrantsCollectionRequest is request for OAuth2PermissionGrant collection
+type GraphServiceOauth2PermissionGrantsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OAuth2PermissionGrant collection
+func (r *GraphServiceOauth2PermissionGrantsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OAuth2PermissionGrant, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OAuth2PermissionGrant
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OAuth2PermissionGrant
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OAuth2PermissionGrant collection
+func (r *GraphServiceOauth2PermissionGrantsCollectionRequest) Get(ctx context.Context) ([]OAuth2PermissionGrant, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OAuth2PermissionGrant collection
+func (r *GraphServiceOauth2PermissionGrantsCollectionRequest) Add(ctx context.Context, reqObj *OAuth2PermissionGrant) (resObj *OAuth2PermissionGrant, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// OnPremisesPublishingProfiles returns request builder for OnPremisesPublishingProfile collection
+func (b *GraphServiceRequestBuilder) OnPremisesPublishingProfiles() *GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder {
+ bb := &GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/onPremisesPublishingProfiles"
+ return bb
+}
+
+// GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder is request builder for OnPremisesPublishingProfile collection
+type GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnPremisesPublishingProfile collection
+func (b *GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder) Request() *GraphServiceOnPremisesPublishingProfilesCollectionRequest {
+ return &GraphServiceOnPremisesPublishingProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnPremisesPublishingProfile item
+func (b *GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder) ID(id string) *OnPremisesPublishingProfileRequestBuilder {
+ bb := &OnPremisesPublishingProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceOnPremisesPublishingProfilesCollectionRequest is request for OnPremisesPublishingProfile collection
+type GraphServiceOnPremisesPublishingProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnPremisesPublishingProfile collection
+func (r *GraphServiceOnPremisesPublishingProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OnPremisesPublishingProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnPremisesPublishingProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnPremisesPublishingProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnPremisesPublishingProfile collection
+func (r *GraphServiceOnPremisesPublishingProfilesCollectionRequest) Get(ctx context.Context) ([]OnPremisesPublishingProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OnPremisesPublishingProfile collection
+func (r *GraphServiceOnPremisesPublishingProfilesCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesPublishingProfile) (resObj *OnPremisesPublishingProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Organization returns request builder for Organization collection
+func (b *GraphServiceRequestBuilder) Organization() *GraphServiceOrganizationCollectionRequestBuilder {
+ bb := &GraphServiceOrganizationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/organization"
+ return bb
+}
+
+// GraphServiceOrganizationCollectionRequestBuilder is request builder for Organization collection
+type GraphServiceOrganizationCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Organization collection
+func (b *GraphServiceOrganizationCollectionRequestBuilder) Request() *GraphServiceOrganizationCollectionRequest {
+ return &GraphServiceOrganizationCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Organization item
+func (b *GraphServiceOrganizationCollectionRequestBuilder) ID(id string) *OrganizationRequestBuilder {
+ bb := &OrganizationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceOrganizationCollectionRequest is request for Organization collection
+type GraphServiceOrganizationCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Organization collection
+func (r *GraphServiceOrganizationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Organization, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Organization
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Organization
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Organization collection
+func (r *GraphServiceOrganizationCollectionRequest) Get(ctx context.Context) ([]Organization, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Organization collection
+func (r *GraphServiceOrganizationCollectionRequest) Add(ctx context.Context, reqObj *Organization) (resObj *Organization, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PayloadResponse returns request builder for PayloadResponse collection
+func (b *GraphServiceRequestBuilder) PayloadResponse() *GraphServicePayloadResponseCollectionRequestBuilder {
+ bb := &GraphServicePayloadResponseCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/payloadResponse"
+ return bb
+}
+
+// GraphServicePayloadResponseCollectionRequestBuilder is request builder for PayloadResponse collection
+type GraphServicePayloadResponseCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PayloadResponse collection
+func (b *GraphServicePayloadResponseCollectionRequestBuilder) Request() *GraphServicePayloadResponseCollectionRequest {
+ return &GraphServicePayloadResponseCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PayloadResponse item
+func (b *GraphServicePayloadResponseCollectionRequestBuilder) ID(id string) *PayloadResponseRequestBuilder {
+ bb := &PayloadResponseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePayloadResponseCollectionRequest is request for PayloadResponse collection
+type GraphServicePayloadResponseCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PayloadResponse collection
+func (r *GraphServicePayloadResponseCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PayloadResponse, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PayloadResponse
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PayloadResponse
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PayloadResponse collection
+func (r *GraphServicePayloadResponseCollectionRequest) Get(ctx context.Context) ([]PayloadResponse, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PayloadResponse collection
+func (r *GraphServicePayloadResponseCollectionRequest) Add(ctx context.Context, reqObj *PayloadResponse) (resObj *PayloadResponse, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PermissionGrants returns request builder for ResourceSpecificPermissionGrant collection
+func (b *GraphServiceRequestBuilder) PermissionGrants() *GraphServicePermissionGrantsCollectionRequestBuilder {
+ bb := &GraphServicePermissionGrantsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/permissionGrants"
+ return bb
+}
+
+// GraphServicePermissionGrantsCollectionRequestBuilder is request builder for ResourceSpecificPermissionGrant collection
+type GraphServicePermissionGrantsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ResourceSpecificPermissionGrant collection
+func (b *GraphServicePermissionGrantsCollectionRequestBuilder) Request() *GraphServicePermissionGrantsCollectionRequest {
+ return &GraphServicePermissionGrantsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ResourceSpecificPermissionGrant item
+func (b *GraphServicePermissionGrantsCollectionRequestBuilder) ID(id string) *ResourceSpecificPermissionGrantRequestBuilder {
+ bb := &ResourceSpecificPermissionGrantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePermissionGrantsCollectionRequest is request for ResourceSpecificPermissionGrant collection
+type GraphServicePermissionGrantsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ResourceSpecificPermissionGrant collection
+func (r *GraphServicePermissionGrantsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ResourceSpecificPermissionGrant, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ResourceSpecificPermissionGrant
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ResourceSpecificPermissionGrant
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ResourceSpecificPermissionGrant collection
+func (r *GraphServicePermissionGrantsCollectionRequest) Get(ctx context.Context) ([]ResourceSpecificPermissionGrant, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ResourceSpecificPermissionGrant collection
+func (r *GraphServicePermissionGrantsCollectionRequest) Add(ctx context.Context, reqObj *ResourceSpecificPermissionGrant) (resObj *ResourceSpecificPermissionGrant, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Places returns request builder for Place collection
+func (b *GraphServiceRequestBuilder) Places() *GraphServicePlacesCollectionRequestBuilder {
+ bb := &GraphServicePlacesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/places"
+ return bb
+}
+
+// GraphServicePlacesCollectionRequestBuilder is request builder for Place collection
+type GraphServicePlacesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Place collection
+func (b *GraphServicePlacesCollectionRequestBuilder) Request() *GraphServicePlacesCollectionRequest {
+ return &GraphServicePlacesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Place item
+func (b *GraphServicePlacesCollectionRequestBuilder) ID(id string) *PlaceRequestBuilder {
+ bb := &PlaceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePlacesCollectionRequest is request for Place collection
+type GraphServicePlacesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Place collection
+func (r *GraphServicePlacesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Place, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Place
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Place
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Place collection
+func (r *GraphServicePlacesCollectionRequest) Get(ctx context.Context) ([]Place, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Place collection
+func (r *GraphServicePlacesCollectionRequest) Add(ctx context.Context, reqObj *Place) (resObj *Place, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Policies returns request builder for Policy collection
+func (b *GraphServiceRequestBuilder) Policies() *GraphServicePoliciesCollectionRequestBuilder {
+ bb := &GraphServicePoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policies"
+ return bb
+}
+
+// GraphServicePoliciesCollectionRequestBuilder is request builder for Policy collection
+type GraphServicePoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Policy collection
+func (b *GraphServicePoliciesCollectionRequestBuilder) Request() *GraphServicePoliciesCollectionRequest {
+ return &GraphServicePoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Policy item
+func (b *GraphServicePoliciesCollectionRequestBuilder) ID(id string) *PolicyRequestBuilder {
+ bb := &PolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePoliciesCollectionRequest is request for Policy collection
+type GraphServicePoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Policy collection
+func (r *GraphServicePoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Policy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Policy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Policy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Policy collection
+func (r *GraphServicePoliciesCollectionRequest) Get(ctx context.Context) ([]Policy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Policy collection
+func (r *GraphServicePoliciesCollectionRequest) Add(ctx context.Context, reqObj *Policy) (resObj *Policy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PrivilegedAccess returns request builder for PrivilegedAccess collection
+func (b *GraphServiceRequestBuilder) PrivilegedAccess() *GraphServicePrivilegedAccessCollectionRequestBuilder {
+ bb := &GraphServicePrivilegedAccessCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/privilegedAccess"
+ return bb
+}
+
+// GraphServicePrivilegedAccessCollectionRequestBuilder is request builder for PrivilegedAccess collection
+type GraphServicePrivilegedAccessCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PrivilegedAccess collection
+func (b *GraphServicePrivilegedAccessCollectionRequestBuilder) Request() *GraphServicePrivilegedAccessCollectionRequest {
+ return &GraphServicePrivilegedAccessCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PrivilegedAccess item
+func (b *GraphServicePrivilegedAccessCollectionRequestBuilder) ID(id string) *PrivilegedAccessRequestBuilder {
+ bb := &PrivilegedAccessRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePrivilegedAccessCollectionRequest is request for PrivilegedAccess collection
+type GraphServicePrivilegedAccessCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PrivilegedAccess collection
+func (r *GraphServicePrivilegedAccessCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PrivilegedAccess, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PrivilegedAccess
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PrivilegedAccess
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PrivilegedAccess collection
+func (r *GraphServicePrivilegedAccessCollectionRequest) Get(ctx context.Context) ([]PrivilegedAccess, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PrivilegedAccess collection
+func (r *GraphServicePrivilegedAccessCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedAccess) (resObj *PrivilegedAccess, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PrivilegedApproval returns request builder for PrivilegedApproval collection
+func (b *GraphServiceRequestBuilder) PrivilegedApproval() *GraphServicePrivilegedApprovalCollectionRequestBuilder {
+ bb := &GraphServicePrivilegedApprovalCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/privilegedApproval"
+ return bb
+}
+
+// GraphServicePrivilegedApprovalCollectionRequestBuilder is request builder for PrivilegedApproval collection
+type GraphServicePrivilegedApprovalCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PrivilegedApproval collection
+func (b *GraphServicePrivilegedApprovalCollectionRequestBuilder) Request() *GraphServicePrivilegedApprovalCollectionRequest {
+ return &GraphServicePrivilegedApprovalCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PrivilegedApproval item
+func (b *GraphServicePrivilegedApprovalCollectionRequestBuilder) ID(id string) *PrivilegedApprovalRequestBuilder {
+ bb := &PrivilegedApprovalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePrivilegedApprovalCollectionRequest is request for PrivilegedApproval collection
+type GraphServicePrivilegedApprovalCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PrivilegedApproval collection
+func (r *GraphServicePrivilegedApprovalCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PrivilegedApproval, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PrivilegedApproval
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PrivilegedApproval
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PrivilegedApproval collection
+func (r *GraphServicePrivilegedApprovalCollectionRequest) Get(ctx context.Context) ([]PrivilegedApproval, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PrivilegedApproval collection
+func (r *GraphServicePrivilegedApprovalCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedApproval) (resObj *PrivilegedApproval, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PrivilegedOperationEvents returns request builder for PrivilegedOperationEvent collection
+func (b *GraphServiceRequestBuilder) PrivilegedOperationEvents() *GraphServicePrivilegedOperationEventsCollectionRequestBuilder {
+ bb := &GraphServicePrivilegedOperationEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/privilegedOperationEvents"
+ return bb
+}
+
+// GraphServicePrivilegedOperationEventsCollectionRequestBuilder is request builder for PrivilegedOperationEvent collection
+type GraphServicePrivilegedOperationEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PrivilegedOperationEvent collection
+func (b *GraphServicePrivilegedOperationEventsCollectionRequestBuilder) Request() *GraphServicePrivilegedOperationEventsCollectionRequest {
+ return &GraphServicePrivilegedOperationEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PrivilegedOperationEvent item
+func (b *GraphServicePrivilegedOperationEventsCollectionRequestBuilder) ID(id string) *PrivilegedOperationEventRequestBuilder {
+ bb := &PrivilegedOperationEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePrivilegedOperationEventsCollectionRequest is request for PrivilegedOperationEvent collection
+type GraphServicePrivilegedOperationEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PrivilegedOperationEvent collection
+func (r *GraphServicePrivilegedOperationEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PrivilegedOperationEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PrivilegedOperationEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PrivilegedOperationEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PrivilegedOperationEvent collection
+func (r *GraphServicePrivilegedOperationEventsCollectionRequest) Get(ctx context.Context) ([]PrivilegedOperationEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PrivilegedOperationEvent collection
+func (r *GraphServicePrivilegedOperationEventsCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedOperationEvent) (resObj *PrivilegedOperationEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PrivilegedRoleAssignmentRequests returns request builder for PrivilegedRoleAssignmentRequestObject collection
+func (b *GraphServiceRequestBuilder) PrivilegedRoleAssignmentRequests() *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder {
+ bb := &GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/privilegedRoleAssignmentRequests"
+ return bb
+}
+
+// GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder is request builder for PrivilegedRoleAssignmentRequestObject collection
+type GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PrivilegedRoleAssignmentRequestObject collection
+func (b *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder) Request() *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest {
+ return &GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PrivilegedRoleAssignmentRequestObject item
+func (b *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder) ID(id string) *PrivilegedRoleAssignmentRequestObjectRequestBuilder {
+ bb := &PrivilegedRoleAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest is request for PrivilegedRoleAssignmentRequestObject collection
+type GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PrivilegedRoleAssignmentRequestObject collection
+func (r *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PrivilegedRoleAssignmentRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PrivilegedRoleAssignmentRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PrivilegedRoleAssignmentRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PrivilegedRoleAssignmentRequestObject collection
+func (r *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]PrivilegedRoleAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PrivilegedRoleAssignmentRequestObject collection
+func (r *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedRoleAssignmentRequestObject) (resObj *PrivilegedRoleAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PrivilegedRoleAssignments returns request builder for PrivilegedRoleAssignment collection
+func (b *GraphServiceRequestBuilder) PrivilegedRoleAssignments() *GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder {
+ bb := &GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/privilegedRoleAssignments"
+ return bb
+}
+
+// GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder is request builder for PrivilegedRoleAssignment collection
+type GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PrivilegedRoleAssignment collection
+func (b *GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder) Request() *GraphServicePrivilegedRoleAssignmentsCollectionRequest {
+ return &GraphServicePrivilegedRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PrivilegedRoleAssignment item
+func (b *GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder) ID(id string) *PrivilegedRoleAssignmentRequestBuilder {
+ bb := &PrivilegedRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePrivilegedRoleAssignmentsCollectionRequest is request for PrivilegedRoleAssignment collection
+type GraphServicePrivilegedRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PrivilegedRoleAssignment collection
+func (r *GraphServicePrivilegedRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PrivilegedRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PrivilegedRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PrivilegedRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PrivilegedRoleAssignment collection
+func (r *GraphServicePrivilegedRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]PrivilegedRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PrivilegedRoleAssignment collection
+func (r *GraphServicePrivilegedRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedRoleAssignment) (resObj *PrivilegedRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PrivilegedRoles returns request builder for PrivilegedRole collection
+func (b *GraphServiceRequestBuilder) PrivilegedRoles() *GraphServicePrivilegedRolesCollectionRequestBuilder {
+ bb := &GraphServicePrivilegedRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/privilegedRoles"
+ return bb
+}
+
+// GraphServicePrivilegedRolesCollectionRequestBuilder is request builder for PrivilegedRole collection
+type GraphServicePrivilegedRolesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PrivilegedRole collection
+func (b *GraphServicePrivilegedRolesCollectionRequestBuilder) Request() *GraphServicePrivilegedRolesCollectionRequest {
+ return &GraphServicePrivilegedRolesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PrivilegedRole item
+func (b *GraphServicePrivilegedRolesCollectionRequestBuilder) ID(id string) *PrivilegedRoleRequestBuilder {
+ bb := &PrivilegedRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePrivilegedRolesCollectionRequest is request for PrivilegedRole collection
+type GraphServicePrivilegedRolesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PrivilegedRole collection
+func (r *GraphServicePrivilegedRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PrivilegedRole, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PrivilegedRole
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PrivilegedRole
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PrivilegedRole collection
+func (r *GraphServicePrivilegedRolesCollectionRequest) Get(ctx context.Context) ([]PrivilegedRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PrivilegedRole collection
+func (r *GraphServicePrivilegedRolesCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedRole) (resObj *PrivilegedRole, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PrivilegedSignupStatus returns request builder for PrivilegedSignupStatus collection
+func (b *GraphServiceRequestBuilder) PrivilegedSignupStatus() *GraphServicePrivilegedSignupStatusCollectionRequestBuilder {
+ bb := &GraphServicePrivilegedSignupStatusCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/privilegedSignupStatus"
+ return bb
+}
+
+// GraphServicePrivilegedSignupStatusCollectionRequestBuilder is request builder for PrivilegedSignupStatus collection
+type GraphServicePrivilegedSignupStatusCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PrivilegedSignupStatus collection
+func (b *GraphServicePrivilegedSignupStatusCollectionRequestBuilder) Request() *GraphServicePrivilegedSignupStatusCollectionRequest {
+ return &GraphServicePrivilegedSignupStatusCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PrivilegedSignupStatus item
+func (b *GraphServicePrivilegedSignupStatusCollectionRequestBuilder) ID(id string) *PrivilegedSignupStatusRequestBuilder {
+ bb := &PrivilegedSignupStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePrivilegedSignupStatusCollectionRequest is request for PrivilegedSignupStatus collection
+type GraphServicePrivilegedSignupStatusCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PrivilegedSignupStatus collection
+func (r *GraphServicePrivilegedSignupStatusCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PrivilegedSignupStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PrivilegedSignupStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PrivilegedSignupStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PrivilegedSignupStatus collection
+func (r *GraphServicePrivilegedSignupStatusCollectionRequest) Get(ctx context.Context) ([]PrivilegedSignupStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PrivilegedSignupStatus collection
+func (r *GraphServicePrivilegedSignupStatusCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedSignupStatus) (resObj *PrivilegedSignupStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ProgramControlTypes returns request builder for ProgramControlType collection
+func (b *GraphServiceRequestBuilder) ProgramControlTypes() *GraphServiceProgramControlTypesCollectionRequestBuilder {
+ bb := &GraphServiceProgramControlTypesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/programControlTypes"
+ return bb
+}
+
+// GraphServiceProgramControlTypesCollectionRequestBuilder is request builder for ProgramControlType collection
+type GraphServiceProgramControlTypesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProgramControlType collection
+func (b *GraphServiceProgramControlTypesCollectionRequestBuilder) Request() *GraphServiceProgramControlTypesCollectionRequest {
+ return &GraphServiceProgramControlTypesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProgramControlType item
+func (b *GraphServiceProgramControlTypesCollectionRequestBuilder) ID(id string) *ProgramControlTypeRequestBuilder {
+ bb := &ProgramControlTypeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceProgramControlTypesCollectionRequest is request for ProgramControlType collection
+type GraphServiceProgramControlTypesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProgramControlType collection
+func (r *GraphServiceProgramControlTypesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ProgramControlType, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProgramControlType
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProgramControlType
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProgramControlType collection
+func (r *GraphServiceProgramControlTypesCollectionRequest) Get(ctx context.Context) ([]ProgramControlType, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ProgramControlType collection
+func (r *GraphServiceProgramControlTypesCollectionRequest) Add(ctx context.Context, reqObj *ProgramControlType) (resObj *ProgramControlType, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ProgramControls returns request builder for ProgramControl collection
+func (b *GraphServiceRequestBuilder) ProgramControls() *GraphServiceProgramControlsCollectionRequestBuilder {
+ bb := &GraphServiceProgramControlsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/programControls"
+ return bb
+}
+
+// GraphServiceProgramControlsCollectionRequestBuilder is request builder for ProgramControl collection
+type GraphServiceProgramControlsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProgramControl collection
+func (b *GraphServiceProgramControlsCollectionRequestBuilder) Request() *GraphServiceProgramControlsCollectionRequest {
+ return &GraphServiceProgramControlsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProgramControl item
+func (b *GraphServiceProgramControlsCollectionRequestBuilder) ID(id string) *ProgramControlRequestBuilder {
+ bb := &ProgramControlRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceProgramControlsCollectionRequest is request for ProgramControl collection
+type GraphServiceProgramControlsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProgramControl collection
+func (r *GraphServiceProgramControlsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ProgramControl, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProgramControl
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProgramControl
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProgramControl collection
+func (r *GraphServiceProgramControlsCollectionRequest) Get(ctx context.Context) ([]ProgramControl, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ProgramControl collection
+func (r *GraphServiceProgramControlsCollectionRequest) Add(ctx context.Context, reqObj *ProgramControl) (resObj *ProgramControl, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Programs returns request builder for Program collection
+func (b *GraphServiceRequestBuilder) Programs() *GraphServiceProgramsCollectionRequestBuilder {
+ bb := &GraphServiceProgramsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/programs"
+ return bb
+}
+
+// GraphServiceProgramsCollectionRequestBuilder is request builder for Program collection
+type GraphServiceProgramsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Program collection
+func (b *GraphServiceProgramsCollectionRequestBuilder) Request() *GraphServiceProgramsCollectionRequest {
+ return &GraphServiceProgramsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Program item
+func (b *GraphServiceProgramsCollectionRequestBuilder) ID(id string) *ProgramRequestBuilder {
+ bb := &ProgramRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceProgramsCollectionRequest is request for Program collection
+type GraphServiceProgramsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Program collection
+func (r *GraphServiceProgramsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Program, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Program
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Program
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Program collection
+func (r *GraphServiceProgramsCollectionRequest) Get(ctx context.Context) ([]Program, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Program collection
+func (r *GraphServiceProgramsCollectionRequest) Add(ctx context.Context, reqObj *Program) (resObj *Program, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RiskDetections returns request builder for RiskDetection collection
+func (b *GraphServiceRequestBuilder) RiskDetections() *GraphServiceRiskDetectionsCollectionRequestBuilder {
+ bb := &GraphServiceRiskDetectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/riskDetections"
+ return bb
+}
+
+// GraphServiceRiskDetectionsCollectionRequestBuilder is request builder for RiskDetection collection
+type GraphServiceRiskDetectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RiskDetection collection
+func (b *GraphServiceRiskDetectionsCollectionRequestBuilder) Request() *GraphServiceRiskDetectionsCollectionRequest {
+ return &GraphServiceRiskDetectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RiskDetection item
+func (b *GraphServiceRiskDetectionsCollectionRequestBuilder) ID(id string) *RiskDetectionRequestBuilder {
+ bb := &RiskDetectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceRiskDetectionsCollectionRequest is request for RiskDetection collection
+type GraphServiceRiskDetectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RiskDetection collection
+func (r *GraphServiceRiskDetectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]RiskDetection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RiskDetection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RiskDetection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RiskDetection collection
+func (r *GraphServiceRiskDetectionsCollectionRequest) Get(ctx context.Context) ([]RiskDetection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for RiskDetection collection
+func (r *GraphServiceRiskDetectionsCollectionRequest) Add(ctx context.Context, reqObj *RiskDetection) (resObj *RiskDetection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RiskyUsers returns request builder for RiskyUser collection
+func (b *GraphServiceRequestBuilder) RiskyUsers() *GraphServiceRiskyUsersCollectionRequestBuilder {
+ bb := &GraphServiceRiskyUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/riskyUsers"
+ return bb
+}
+
+// GraphServiceRiskyUsersCollectionRequestBuilder is request builder for RiskyUser collection
+type GraphServiceRiskyUsersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RiskyUser collection
+func (b *GraphServiceRiskyUsersCollectionRequestBuilder) Request() *GraphServiceRiskyUsersCollectionRequest {
+ return &GraphServiceRiskyUsersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RiskyUser item
+func (b *GraphServiceRiskyUsersCollectionRequestBuilder) ID(id string) *RiskyUserRequestBuilder {
+ bb := &RiskyUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceRiskyUsersCollectionRequest is request for RiskyUser collection
+type GraphServiceRiskyUsersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RiskyUser collection
+func (r *GraphServiceRiskyUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]RiskyUser, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RiskyUser
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RiskyUser
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RiskyUser collection
+func (r *GraphServiceRiskyUsersCollectionRequest) Get(ctx context.Context) ([]RiskyUser, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for RiskyUser collection
+func (r *GraphServiceRiskyUsersCollectionRequest) Add(ctx context.Context, reqObj *RiskyUser) (resObj *RiskyUser, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SchemaExtensions returns request builder for SchemaExtension collection
+func (b *GraphServiceRequestBuilder) SchemaExtensions() *GraphServiceSchemaExtensionsCollectionRequestBuilder {
+ bb := &GraphServiceSchemaExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schemaExtensions"
+ return bb
+}
+
+// GraphServiceSchemaExtensionsCollectionRequestBuilder is request builder for SchemaExtension collection
+type GraphServiceSchemaExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SchemaExtension collection
+func (b *GraphServiceSchemaExtensionsCollectionRequestBuilder) Request() *GraphServiceSchemaExtensionsCollectionRequest {
+ return &GraphServiceSchemaExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SchemaExtension item
+func (b *GraphServiceSchemaExtensionsCollectionRequestBuilder) ID(id string) *SchemaExtensionRequestBuilder {
+ bb := &SchemaExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceSchemaExtensionsCollectionRequest is request for SchemaExtension collection
+type GraphServiceSchemaExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SchemaExtension collection
+func (r *GraphServiceSchemaExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SchemaExtension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SchemaExtension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SchemaExtension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SchemaExtension collection
+func (r *GraphServiceSchemaExtensionsCollectionRequest) Get(ctx context.Context) ([]SchemaExtension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SchemaExtension collection
+func (r *GraphServiceSchemaExtensionsCollectionRequest) Add(ctx context.Context, reqObj *SchemaExtension) (resObj *SchemaExtension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ScopedRoleMemberships returns request builder for ScopedRoleMembership collection
+func (b *GraphServiceRequestBuilder) ScopedRoleMemberships() *GraphServiceScopedRoleMembershipsCollectionRequestBuilder {
+ bb := &GraphServiceScopedRoleMembershipsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/scopedRoleMemberships"
+ return bb
+}
+
+// GraphServiceScopedRoleMembershipsCollectionRequestBuilder is request builder for ScopedRoleMembership collection
+type GraphServiceScopedRoleMembershipsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ScopedRoleMembership collection
+func (b *GraphServiceScopedRoleMembershipsCollectionRequestBuilder) Request() *GraphServiceScopedRoleMembershipsCollectionRequest {
+ return &GraphServiceScopedRoleMembershipsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ScopedRoleMembership item
+func (b *GraphServiceScopedRoleMembershipsCollectionRequestBuilder) ID(id string) *ScopedRoleMembershipRequestBuilder {
+ bb := &ScopedRoleMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceScopedRoleMembershipsCollectionRequest is request for ScopedRoleMembership collection
+type GraphServiceScopedRoleMembershipsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ScopedRoleMembership collection
+func (r *GraphServiceScopedRoleMembershipsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ScopedRoleMembership, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ScopedRoleMembership
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ScopedRoleMembership
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ScopedRoleMembership collection
+func (r *GraphServiceScopedRoleMembershipsCollectionRequest) Get(ctx context.Context) ([]ScopedRoleMembership, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ScopedRoleMembership collection
+func (r *GraphServiceScopedRoleMembershipsCollectionRequest) Add(ctx context.Context, reqObj *ScopedRoleMembership) (resObj *ScopedRoleMembership, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ServicePrincipals returns request builder for ServicePrincipal collection
+func (b *GraphServiceRequestBuilder) ServicePrincipals() *GraphServiceServicePrincipalsCollectionRequestBuilder {
+ bb := &GraphServiceServicePrincipalsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/servicePrincipals"
+ return bb
+}
+
+// GraphServiceServicePrincipalsCollectionRequestBuilder is request builder for ServicePrincipal collection
+type GraphServiceServicePrincipalsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ServicePrincipal collection
+func (b *GraphServiceServicePrincipalsCollectionRequestBuilder) Request() *GraphServiceServicePrincipalsCollectionRequest {
+ return &GraphServiceServicePrincipalsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ServicePrincipal item
+func (b *GraphServiceServicePrincipalsCollectionRequestBuilder) ID(id string) *ServicePrincipalRequestBuilder {
+ bb := &ServicePrincipalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceServicePrincipalsCollectionRequest is request for ServicePrincipal collection
+type GraphServiceServicePrincipalsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ServicePrincipal collection
+func (r *GraphServiceServicePrincipalsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ServicePrincipal, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ServicePrincipal
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ServicePrincipal
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ServicePrincipal collection
+func (r *GraphServiceServicePrincipalsCollectionRequest) Get(ctx context.Context) ([]ServicePrincipal, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ServicePrincipal collection
+func (r *GraphServiceServicePrincipalsCollectionRequest) Add(ctx context.Context, reqObj *ServicePrincipal) (resObj *ServicePrincipal, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Settings returns request builder for DirectorySetting collection
+func (b *GraphServiceRequestBuilder) Settings() *GraphServiceSettingsCollectionRequestBuilder {
+ bb := &GraphServiceSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settings"
+ return bb
+}
+
+// GraphServiceSettingsCollectionRequestBuilder is request builder for DirectorySetting collection
+type GraphServiceSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectorySetting collection
+func (b *GraphServiceSettingsCollectionRequestBuilder) Request() *GraphServiceSettingsCollectionRequest {
+ return &GraphServiceSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectorySetting item
+func (b *GraphServiceSettingsCollectionRequestBuilder) ID(id string) *DirectorySettingRequestBuilder {
+ bb := &DirectorySettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceSettingsCollectionRequest is request for DirectorySetting collection
+type GraphServiceSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectorySetting collection
+func (r *GraphServiceSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectorySetting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectorySetting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectorySetting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectorySetting collection
+func (r *GraphServiceSettingsCollectionRequest) Get(ctx context.Context) ([]DirectorySetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectorySetting collection
+func (r *GraphServiceSettingsCollectionRequest) Add(ctx context.Context, reqObj *DirectorySetting) (resObj *DirectorySetting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Shares returns request builder for SharedDriveItem collection
+func (b *GraphServiceRequestBuilder) Shares() *GraphServiceSharesCollectionRequestBuilder {
+ bb := &GraphServiceSharesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/shares"
+ return bb
+}
+
+// GraphServiceSharesCollectionRequestBuilder is request builder for SharedDriveItem collection
+type GraphServiceSharesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SharedDriveItem collection
+func (b *GraphServiceSharesCollectionRequestBuilder) Request() *GraphServiceSharesCollectionRequest {
+ return &GraphServiceSharesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SharedDriveItem item
+func (b *GraphServiceSharesCollectionRequestBuilder) ID(id string) *SharedDriveItemRequestBuilder {
+ bb := &SharedDriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceSharesCollectionRequest is request for SharedDriveItem collection
+type GraphServiceSharesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SharedDriveItem collection
+func (r *GraphServiceSharesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SharedDriveItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SharedDriveItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SharedDriveItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SharedDriveItem collection
+func (r *GraphServiceSharesCollectionRequest) Get(ctx context.Context) ([]SharedDriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SharedDriveItem collection
+func (r *GraphServiceSharesCollectionRequest) Add(ctx context.Context, reqObj *SharedDriveItem) (resObj *SharedDriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Sites returns request builder for Site collection
+func (b *GraphServiceRequestBuilder) Sites() *GraphServiceSitesCollectionRequestBuilder {
+ bb := &GraphServiceSitesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sites"
+ return bb
+}
+
+// GraphServiceSitesCollectionRequestBuilder is request builder for Site collection
+type GraphServiceSitesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Site collection
+func (b *GraphServiceSitesCollectionRequestBuilder) Request() *GraphServiceSitesCollectionRequest {
+ return &GraphServiceSitesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Site item
+func (b *GraphServiceSitesCollectionRequestBuilder) ID(id string) *SiteRequestBuilder {
+ bb := &SiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceSitesCollectionRequest is request for Site collection
+type GraphServiceSitesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Site collection
+func (r *GraphServiceSitesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Site, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Site
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Site
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Site collection
+func (r *GraphServiceSitesCollectionRequest) Get(ctx context.Context) ([]Site, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Site collection
+func (r *GraphServiceSitesCollectionRequest) Add(ctx context.Context, reqObj *Site) (resObj *Site, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SubscribedSKUs returns request builder for SubscribedSKU collection
+func (b *GraphServiceRequestBuilder) SubscribedSKUs() *GraphServiceSubscribedSKUsCollectionRequestBuilder {
+ bb := &GraphServiceSubscribedSKUsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/subscribedSkus"
+ return bb
+}
+
+// GraphServiceSubscribedSKUsCollectionRequestBuilder is request builder for SubscribedSKU collection
+type GraphServiceSubscribedSKUsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SubscribedSKU collection
+func (b *GraphServiceSubscribedSKUsCollectionRequestBuilder) Request() *GraphServiceSubscribedSKUsCollectionRequest {
+ return &GraphServiceSubscribedSKUsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SubscribedSKU item
+func (b *GraphServiceSubscribedSKUsCollectionRequestBuilder) ID(id string) *SubscribedSKURequestBuilder {
+ bb := &SubscribedSKURequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceSubscribedSKUsCollectionRequest is request for SubscribedSKU collection
+type GraphServiceSubscribedSKUsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SubscribedSKU collection
+func (r *GraphServiceSubscribedSKUsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SubscribedSKU, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SubscribedSKU
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SubscribedSKU
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SubscribedSKU collection
+func (r *GraphServiceSubscribedSKUsCollectionRequest) Get(ctx context.Context) ([]SubscribedSKU, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SubscribedSKU collection
+func (r *GraphServiceSubscribedSKUsCollectionRequest) Add(ctx context.Context, reqObj *SubscribedSKU) (resObj *SubscribedSKU, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Subscriptions returns request builder for Subscription collection
+func (b *GraphServiceRequestBuilder) Subscriptions() *GraphServiceSubscriptionsCollectionRequestBuilder {
+ bb := &GraphServiceSubscriptionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/subscriptions"
+ return bb
+}
+
+// GraphServiceSubscriptionsCollectionRequestBuilder is request builder for Subscription collection
+type GraphServiceSubscriptionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Subscription collection
+func (b *GraphServiceSubscriptionsCollectionRequestBuilder) Request() *GraphServiceSubscriptionsCollectionRequest {
+ return &GraphServiceSubscriptionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Subscription item
+func (b *GraphServiceSubscriptionsCollectionRequestBuilder) ID(id string) *SubscriptionRequestBuilder {
+ bb := &SubscriptionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceSubscriptionsCollectionRequest is request for Subscription collection
+type GraphServiceSubscriptionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Subscription collection
+func (r *GraphServiceSubscriptionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Subscription, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Subscription
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Subscription
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Subscription collection
+func (r *GraphServiceSubscriptionsCollectionRequest) Get(ctx context.Context) ([]Subscription, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Subscription collection
+func (r *GraphServiceSubscriptionsCollectionRequest) Add(ctx context.Context, reqObj *Subscription) (resObj *Subscription, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SuspiciousIPRiskEvents returns request builder for SuspiciousIPRiskEvent collection
+func (b *GraphServiceRequestBuilder) SuspiciousIPRiskEvents() *GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder {
+ bb := &GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/suspiciousIpRiskEvents"
+ return bb
+}
+
+// GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder is request builder for SuspiciousIPRiskEvent collection
+type GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SuspiciousIPRiskEvent collection
+func (b *GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder) Request() *GraphServiceSuspiciousIPRiskEventsCollectionRequest {
+ return &GraphServiceSuspiciousIPRiskEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SuspiciousIPRiskEvent item
+func (b *GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder) ID(id string) *SuspiciousIPRiskEventRequestBuilder {
+ bb := &SuspiciousIPRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceSuspiciousIPRiskEventsCollectionRequest is request for SuspiciousIPRiskEvent collection
+type GraphServiceSuspiciousIPRiskEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SuspiciousIPRiskEvent collection
+func (r *GraphServiceSuspiciousIPRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SuspiciousIPRiskEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SuspiciousIPRiskEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SuspiciousIPRiskEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SuspiciousIPRiskEvent collection
+func (r *GraphServiceSuspiciousIPRiskEventsCollectionRequest) Get(ctx context.Context) ([]SuspiciousIPRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SuspiciousIPRiskEvent collection
+func (r *GraphServiceSuspiciousIPRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *SuspiciousIPRiskEvent) (resObj *SuspiciousIPRiskEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Teams returns request builder for Team collection
+func (b *GraphServiceRequestBuilder) Teams() *GraphServiceTeamsCollectionRequestBuilder {
+ bb := &GraphServiceTeamsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teams"
+ return bb
+}
+
+// GraphServiceTeamsCollectionRequestBuilder is request builder for Team collection
+type GraphServiceTeamsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Team collection
+func (b *GraphServiceTeamsCollectionRequestBuilder) Request() *GraphServiceTeamsCollectionRequest {
+ return &GraphServiceTeamsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Team item
+func (b *GraphServiceTeamsCollectionRequestBuilder) ID(id string) *TeamRequestBuilder {
+ bb := &TeamRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceTeamsCollectionRequest is request for Team collection
+type GraphServiceTeamsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Team collection
+func (r *GraphServiceTeamsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Team, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Team
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Team
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Team collection
+func (r *GraphServiceTeamsCollectionRequest) Get(ctx context.Context) ([]Team, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Team collection
+func (r *GraphServiceTeamsCollectionRequest) Add(ctx context.Context, reqObj *Team) (resObj *Team, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TeamsTemplates returns request builder for TeamsTemplate collection
+func (b *GraphServiceRequestBuilder) TeamsTemplates() *GraphServiceTeamsTemplatesCollectionRequestBuilder {
+ bb := &GraphServiceTeamsTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teamsTemplates"
+ return bb
+}
+
+// GraphServiceTeamsTemplatesCollectionRequestBuilder is request builder for TeamsTemplate collection
+type GraphServiceTeamsTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsTemplate collection
+func (b *GraphServiceTeamsTemplatesCollectionRequestBuilder) Request() *GraphServiceTeamsTemplatesCollectionRequest {
+ return &GraphServiceTeamsTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsTemplate item
+func (b *GraphServiceTeamsTemplatesCollectionRequestBuilder) ID(id string) *TeamsTemplateRequestBuilder {
+ bb := &TeamsTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceTeamsTemplatesCollectionRequest is request for TeamsTemplate collection
+type GraphServiceTeamsTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsTemplate collection
+func (r *GraphServiceTeamsTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TeamsTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsTemplate collection
+func (r *GraphServiceTeamsTemplatesCollectionRequest) Get(ctx context.Context) ([]TeamsTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TeamsTemplate collection
+func (r *GraphServiceTeamsTemplatesCollectionRequest) Add(ctx context.Context, reqObj *TeamsTemplate) (resObj *TeamsTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UnfamiliarLocationRiskEvents returns request builder for UnfamiliarLocationRiskEvent collection
+func (b *GraphServiceRequestBuilder) UnfamiliarLocationRiskEvents() *GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder {
+ bb := &GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/unfamiliarLocationRiskEvents"
+ return bb
+}
+
+// GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder is request builder for UnfamiliarLocationRiskEvent collection
+type GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UnfamiliarLocationRiskEvent collection
+func (b *GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder) Request() *GraphServiceUnfamiliarLocationRiskEventsCollectionRequest {
+ return &GraphServiceUnfamiliarLocationRiskEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UnfamiliarLocationRiskEvent item
+func (b *GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder) ID(id string) *UnfamiliarLocationRiskEventRequestBuilder {
+ bb := &UnfamiliarLocationRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceUnfamiliarLocationRiskEventsCollectionRequest is request for UnfamiliarLocationRiskEvent collection
+type GraphServiceUnfamiliarLocationRiskEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UnfamiliarLocationRiskEvent collection
+func (r *GraphServiceUnfamiliarLocationRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UnfamiliarLocationRiskEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UnfamiliarLocationRiskEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UnfamiliarLocationRiskEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UnfamiliarLocationRiskEvent collection
+func (r *GraphServiceUnfamiliarLocationRiskEventsCollectionRequest) Get(ctx context.Context) ([]UnfamiliarLocationRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UnfamiliarLocationRiskEvent collection
+func (r *GraphServiceUnfamiliarLocationRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *UnfamiliarLocationRiskEvent) (resObj *UnfamiliarLocationRiskEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Users returns request builder for User collection
+func (b *GraphServiceRequestBuilder) Users() *GraphServiceUsersCollectionRequestBuilder {
+ bb := &GraphServiceUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/users"
+ return bb
+}
+
+// GraphServiceUsersCollectionRequestBuilder is request builder for User collection
+type GraphServiceUsersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for User collection
+func (b *GraphServiceUsersCollectionRequestBuilder) Request() *GraphServiceUsersCollectionRequest {
+ return &GraphServiceUsersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for User item
+func (b *GraphServiceUsersCollectionRequestBuilder) ID(id string) *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceUsersCollectionRequest is request for User collection
+type GraphServiceUsersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for User collection
+func (r *GraphServiceUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]User, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []User
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []User
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for User collection
+func (r *GraphServiceUsersCollectionRequest) Get(ctx context.Context) ([]User, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for User collection
+func (r *GraphServiceUsersCollectionRequest) Add(ctx context.Context, reqObj *User) (resObj *User, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Workbooks returns request builder for DriveItem collection
+func (b *GraphServiceRequestBuilder) Workbooks() *GraphServiceWorkbooksCollectionRequestBuilder {
+ bb := &GraphServiceWorkbooksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/workbooks"
+ return bb
+}
+
+// GraphServiceWorkbooksCollectionRequestBuilder is request builder for DriveItem collection
+type GraphServiceWorkbooksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DriveItem collection
+func (b *GraphServiceWorkbooksCollectionRequestBuilder) Request() *GraphServiceWorkbooksCollectionRequest {
+ return &GraphServiceWorkbooksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DriveItem item
+func (b *GraphServiceWorkbooksCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceWorkbooksCollectionRequest is request for DriveItem collection
+type GraphServiceWorkbooksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DriveItem collection
+func (r *GraphServiceWorkbooksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DriveItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DriveItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DriveItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DriveItem collection
+func (r *GraphServiceWorkbooksCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DriveItem collection
+func (r *GraphServiceWorkbooksCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Security is navigation property
+func (b *GraphServiceRequestBuilder) Security() *SecurityRequestBuilder {
+ bb := &SecurityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/Security"
+ return bb
+}
+
+// App is navigation property
+func (b *GraphServiceRequestBuilder) App() *CommsApplicationRequestBuilder {
+ bb := &CommsApplicationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/app"
+ return bb
+}
+
+// AppCatalogs is navigation property
+func (b *GraphServiceRequestBuilder) AppCatalogs() *AppCatalogsRequestBuilder {
+ bb := &AppCatalogsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appCatalogs"
+ return bb
+}
+
+// AuditLogs is navigation property
+func (b *GraphServiceRequestBuilder) AuditLogs() *AuditLogRootRequestBuilder {
+ bb := &AuditLogRootRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/auditLogs"
+ return bb
+}
+
+// Communications is navigation property
+func (b *GraphServiceRequestBuilder) Communications() *CloudCommunicationsRequestBuilder {
+ bb := &CloudCommunicationsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/communications"
+ return bb
+}
+
+// ConditionalAccess is navigation property
+func (b *GraphServiceRequestBuilder) ConditionalAccess() *ConditionalAccessRootRequestBuilder {
+ bb := &ConditionalAccessRootRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/conditionalAccess"
+ return bb
+}
+
+// DataClassification is navigation property
+func (b *GraphServiceRequestBuilder) DataClassification() *DataClassificationServiceRequestBuilder {
+ bb := &DataClassificationServiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/dataClassification"
+ return bb
+}
+
+// DeviceAppManagement is navigation property
+func (b *GraphServiceRequestBuilder) DeviceAppManagement() *DeviceAppManagementRequestBuilder {
+ bb := &DeviceAppManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceAppManagement"
+ return bb
+}
+
+// DeviceManagement is navigation property
+func (b *GraphServiceRequestBuilder) DeviceManagement() *DeviceManagementRequestBuilder {
+ bb := &DeviceManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceManagement"
+ return bb
+}
+
+// Directory is navigation property
+func (b *GraphServiceRequestBuilder) Directory() *DirectoryRequestBuilder {
+ bb := &DirectoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directory"
+ return bb
+}
+
+// Drive is navigation property
+func (b *GraphServiceRequestBuilder) Drive() *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drive"
+ return bb
+}
+
+// Education is navigation property
+func (b *GraphServiceRequestBuilder) Education() *EducationRootRequestBuilder {
+ bb := &EducationRootRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/education"
+ return bb
+}
+
+// EntitlementManagement is navigation property
+func (b *GraphServiceRequestBuilder) EntitlementManagement() *EntitlementManagementRequestBuilder {
+ bb := &EntitlementManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/entitlementManagement"
+ return bb
+}
+
+// External is navigation property
+func (b *GraphServiceRequestBuilder) External() *ExternalRequestBuilder {
+ bb := &ExternalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/external"
+ return bb
+}
+
+// Financials is navigation property
+func (b *GraphServiceRequestBuilder) Financials() *FinancialsRequestBuilder {
+ bb := &FinancialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/financials"
+ return bb
+}
+
+// Identity is navigation property
+func (b *GraphServiceRequestBuilder) Identity() *IdentityContainerRequestBuilder {
+ bb := &IdentityContainerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identity"
+ return bb
+}
+
+// IdentityGovernance is navigation property
+func (b *GraphServiceRequestBuilder) IdentityGovernance() *IdentityGovernanceRequestBuilder {
+ bb := &IdentityGovernanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityGovernance"
+ return bb
+}
+
+// InformationProtection is navigation property
+func (b *GraphServiceRequestBuilder) InformationProtection() *InformationProtectionRequestBuilder {
+ bb := &InformationProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/informationProtection"
+ return bb
+}
+
+// Me is navigation property
+func (b *GraphServiceRequestBuilder) Me() *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/me"
+ return bb
+}
+
+// OfficeConfiguration is navigation property
+func (b *GraphServiceRequestBuilder) OfficeConfiguration() *OfficeConfigurationRequestBuilder {
+ bb := &OfficeConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/officeConfiguration"
+ return bb
+}
+
+// Planner is navigation property
+func (b *GraphServiceRequestBuilder) Planner() *PlannerRequestBuilder {
+ bb := &PlannerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/planner"
+ return bb
+}
+
+// Reports is navigation property
+func (b *GraphServiceRequestBuilder) Reports() *ReportRootRequestBuilder {
+ bb := &ReportRootRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/reports"
+ return bb
+}
+
+// RoleManagement is navigation property
+func (b *GraphServiceRequestBuilder) RoleManagement() *RoleManagementRequestBuilder {
+ bb := &RoleManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleManagement"
+ return bb
+}
+
+// Search is navigation property
+func (b *GraphServiceRequestBuilder) Search() *SearchRequestBuilder {
+ bb := &SearchRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/search"
+ return bb
+}
+
+// Teamwork is navigation property
+func (b *GraphServiceRequestBuilder) Teamwork() *TeamworkRequestBuilder {
+ bb := &TeamworkRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teamwork"
+ return bb
+}
+
+// TrustFramework is navigation property
+func (b *GraphServiceRequestBuilder) TrustFramework() *TrustFrameworkRequestBuilder {
+ bb := &TrustFrameworkRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/trustFramework"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupAccessTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupAccessTypeEnum.go
new file mode 100644
index 00000000..1e046e91
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupAccessTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupAccessType undocumented
+type GroupAccessType int
+
+const (
+ // GroupAccessTypeVNone undocumented
+ GroupAccessTypeVNone GroupAccessType = 0
+ // GroupAccessTypeVPrivate undocumented
+ GroupAccessTypeVPrivate GroupAccessType = 1
+ // GroupAccessTypeVSecret undocumented
+ GroupAccessTypeVSecret GroupAccessType = 2
+ // GroupAccessTypeVPublic undocumented
+ GroupAccessTypeVPublic GroupAccessType = 3
+)
+
+// GroupAccessTypePNone returns a pointer to GroupAccessTypeVNone
+func GroupAccessTypePNone() *GroupAccessType {
+ v := GroupAccessTypeVNone
+ return &v
+}
+
+// GroupAccessTypePPrivate returns a pointer to GroupAccessTypeVPrivate
+func GroupAccessTypePPrivate() *GroupAccessType {
+ v := GroupAccessTypeVPrivate
+ return &v
+}
+
+// GroupAccessTypePSecret returns a pointer to GroupAccessTypeVSecret
+func GroupAccessTypePSecret() *GroupAccessType {
+ v := GroupAccessTypeVSecret
+ return &v
+}
+
+// GroupAccessTypePPublic returns a pointer to GroupAccessTypeVPublic
+func GroupAccessTypePPublic() *GroupAccessType {
+ v := GroupAccessTypeVPublic
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupAction.go
new file mode 100644
index 00000000..86188980
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupAction.go
@@ -0,0 +1,417 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// GroupCollectionEvaluateDynamicMembershipRequestParameter undocumented
+type GroupCollectionEvaluateDynamicMembershipRequestParameter struct {
+ // MemberID undocumented
+ MemberID *string `json:"memberId,omitempty"`
+ // MembershipRule undocumented
+ MembershipRule *string `json:"membershipRule,omitempty"`
+}
+
+// GroupValidatePropertiesRequestParameter undocumented
+type GroupValidatePropertiesRequestParameter struct {
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // MailNickname undocumented
+ MailNickname *string `json:"mailNickname,omitempty"`
+ // OnBehalfOfUserID undocumented
+ OnBehalfOfUserID *UUID `json:"onBehalfOfUserId,omitempty"`
+}
+
+// GroupCheckGrantedPermissionsForAppRequestParameter undocumented
+type GroupCheckGrantedPermissionsForAppRequestParameter struct {
+}
+
+// GroupAssignLicenseRequestParameter undocumented
+type GroupAssignLicenseRequestParameter struct {
+ // AddLicenses undocumented
+ AddLicenses []AssignedLicense `json:"addLicenses,omitempty"`
+ // RemoveLicenses undocumented
+ RemoveLicenses []UUID `json:"removeLicenses,omitempty"`
+}
+
+// GroupSubscribeByMailRequestParameter undocumented
+type GroupSubscribeByMailRequestParameter struct {
+}
+
+// GroupUnsubscribeByMailRequestParameter undocumented
+type GroupUnsubscribeByMailRequestParameter struct {
+}
+
+// GroupAddFavoriteRequestParameter undocumented
+type GroupAddFavoriteRequestParameter struct {
+}
+
+// GroupRemoveFavoriteRequestParameter undocumented
+type GroupRemoveFavoriteRequestParameter struct {
+}
+
+// GroupResetUnseenCountRequestParameter undocumented
+type GroupResetUnseenCountRequestParameter struct {
+}
+
+// GroupRenewRequestParameter undocumented
+type GroupRenewRequestParameter struct {
+}
+
+// GroupEvaluateDynamicMembershipRequestParameter undocumented
+type GroupEvaluateDynamicMembershipRequestParameter struct {
+ // MemberID undocumented
+ MemberID *string `json:"memberId,omitempty"`
+}
+
+//
+type GroupCollectionEvaluateDynamicMembershipRequestBuilder struct{ BaseRequestBuilder }
+
+// EvaluateDynamicMembership action undocumented
+func (b *UserJoinedGroupsCollectionRequestBuilder) EvaluateDynamicMembership(reqObj *GroupCollectionEvaluateDynamicMembershipRequestParameter) *GroupCollectionEvaluateDynamicMembershipRequestBuilder {
+ bb := &GroupCollectionEvaluateDynamicMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluateDynamicMembership"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupCollectionEvaluateDynamicMembershipRequest struct{ BaseRequest }
+
+//
+func (b *GroupCollectionEvaluateDynamicMembershipRequestBuilder) Request() *GroupCollectionEvaluateDynamicMembershipRequest {
+ return &GroupCollectionEvaluateDynamicMembershipRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupCollectionEvaluateDynamicMembershipRequest) Post(ctx context.Context) (resObj *EvaluateDynamicMembershipResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type GroupValidatePropertiesRequestBuilder struct{ BaseRequestBuilder }
+
+// ValidateProperties action undocumented
+func (b *GroupRequestBuilder) ValidateProperties(reqObj *GroupValidatePropertiesRequestParameter) *GroupValidatePropertiesRequestBuilder {
+ bb := &GroupValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupValidatePropertiesRequest struct{ BaseRequest }
+
+//
+func (b *GroupValidatePropertiesRequestBuilder) Request() *GroupValidatePropertiesRequest {
+ return &GroupValidatePropertiesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupValidatePropertiesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type GroupCheckGrantedPermissionsForAppRequestBuilder struct{ BaseRequestBuilder }
+
+// CheckGrantedPermissionsForApp action undocumented
+func (b *GroupRequestBuilder) CheckGrantedPermissionsForApp(reqObj *GroupCheckGrantedPermissionsForAppRequestParameter) *GroupCheckGrantedPermissionsForAppRequestBuilder {
+ bb := &GroupCheckGrantedPermissionsForAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/checkGrantedPermissionsForApp"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupCheckGrantedPermissionsForAppRequest struct{ BaseRequest }
+
+//
+func (b *GroupCheckGrantedPermissionsForAppRequestBuilder) Request() *GroupCheckGrantedPermissionsForAppRequest {
+ return &GroupCheckGrantedPermissionsForAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupCheckGrantedPermissionsForAppRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]ResourceSpecificPermissionGrant, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]ResourceSpecificPermissionGrant
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]ResourceSpecificPermissionGrant
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *GroupCheckGrantedPermissionsForAppRequest) Get(ctx context.Context) ([][]ResourceSpecificPermissionGrant, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type GroupAssignLicenseRequestBuilder struct{ BaseRequestBuilder }
+
+// AssignLicense action undocumented
+func (b *GroupRequestBuilder) AssignLicense(reqObj *GroupAssignLicenseRequestParameter) *GroupAssignLicenseRequestBuilder {
+ bb := &GroupAssignLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assignLicense"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupAssignLicenseRequest struct{ BaseRequest }
+
+//
+func (b *GroupAssignLicenseRequestBuilder) Request() *GroupAssignLicenseRequest {
+ return &GroupAssignLicenseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupAssignLicenseRequest) Post(ctx context.Context) (resObj *Group, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type GroupSubscribeByMailRequestBuilder struct{ BaseRequestBuilder }
+
+// SubscribeByMail action undocumented
+func (b *GroupRequestBuilder) SubscribeByMail(reqObj *GroupSubscribeByMailRequestParameter) *GroupSubscribeByMailRequestBuilder {
+ bb := &GroupSubscribeByMailRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/subscribeByMail"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupSubscribeByMailRequest struct{ BaseRequest }
+
+//
+func (b *GroupSubscribeByMailRequestBuilder) Request() *GroupSubscribeByMailRequest {
+ return &GroupSubscribeByMailRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupSubscribeByMailRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type GroupUnsubscribeByMailRequestBuilder struct{ BaseRequestBuilder }
+
+// UnsubscribeByMail action undocumented
+func (b *GroupRequestBuilder) UnsubscribeByMail(reqObj *GroupUnsubscribeByMailRequestParameter) *GroupUnsubscribeByMailRequestBuilder {
+ bb := &GroupUnsubscribeByMailRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unsubscribeByMail"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupUnsubscribeByMailRequest struct{ BaseRequest }
+
+//
+func (b *GroupUnsubscribeByMailRequestBuilder) Request() *GroupUnsubscribeByMailRequest {
+ return &GroupUnsubscribeByMailRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupUnsubscribeByMailRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type GroupAddFavoriteRequestBuilder struct{ BaseRequestBuilder }
+
+// AddFavorite action undocumented
+func (b *GroupRequestBuilder) AddFavorite(reqObj *GroupAddFavoriteRequestParameter) *GroupAddFavoriteRequestBuilder {
+ bb := &GroupAddFavoriteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/addFavorite"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupAddFavoriteRequest struct{ BaseRequest }
+
+//
+func (b *GroupAddFavoriteRequestBuilder) Request() *GroupAddFavoriteRequest {
+ return &GroupAddFavoriteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupAddFavoriteRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type GroupRemoveFavoriteRequestBuilder struct{ BaseRequestBuilder }
+
+// RemoveFavorite action undocumented
+func (b *GroupRequestBuilder) RemoveFavorite(reqObj *GroupRemoveFavoriteRequestParameter) *GroupRemoveFavoriteRequestBuilder {
+ bb := &GroupRemoveFavoriteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/removeFavorite"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupRemoveFavoriteRequest struct{ BaseRequest }
+
+//
+func (b *GroupRemoveFavoriteRequestBuilder) Request() *GroupRemoveFavoriteRequest {
+ return &GroupRemoveFavoriteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupRemoveFavoriteRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type GroupResetUnseenCountRequestBuilder struct{ BaseRequestBuilder }
+
+// ResetUnseenCount action undocumented
+func (b *GroupRequestBuilder) ResetUnseenCount(reqObj *GroupResetUnseenCountRequestParameter) *GroupResetUnseenCountRequestBuilder {
+ bb := &GroupResetUnseenCountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/resetUnseenCount"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupResetUnseenCountRequest struct{ BaseRequest }
+
+//
+func (b *GroupResetUnseenCountRequestBuilder) Request() *GroupResetUnseenCountRequest {
+ return &GroupResetUnseenCountRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupResetUnseenCountRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type GroupRenewRequestBuilder struct{ BaseRequestBuilder }
+
+// Renew action undocumented
+func (b *GroupRequestBuilder) Renew(reqObj *GroupRenewRequestParameter) *GroupRenewRequestBuilder {
+ bb := &GroupRenewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/renew"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupRenewRequest struct{ BaseRequest }
+
+//
+func (b *GroupRenewRequestBuilder) Request() *GroupRenewRequest {
+ return &GroupRenewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupRenewRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type GroupEvaluateDynamicMembershipRequestBuilder struct{ BaseRequestBuilder }
+
+// EvaluateDynamicMembership action undocumented
+func (b *GroupRequestBuilder) EvaluateDynamicMembership(reqObj *GroupEvaluateDynamicMembershipRequestParameter) *GroupEvaluateDynamicMembershipRequestBuilder {
+ bb := &GroupEvaluateDynamicMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluateDynamicMembership"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupEvaluateDynamicMembershipRequest struct{ BaseRequest }
+
+//
+func (b *GroupEvaluateDynamicMembershipRequestBuilder) Request() *GroupEvaluateDynamicMembershipRequest {
+ return &GroupEvaluateDynamicMembershipRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupEvaluateDynamicMembershipRequest) Post(ctx context.Context) (resObj *EvaluateDynamicMembershipResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupAssignmentTargetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupAssignmentTargetModel.go
new file mode 100644
index 00000000..4d9c88be
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupAssignmentTargetModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupAssignmentTarget undocumented
+type GroupAssignmentTarget struct {
+ // DeviceAndAppManagementAssignmentTarget is the base model of GroupAssignmentTarget
+ DeviceAndAppManagementAssignmentTarget
+ // GroupID The group Id that is the target of the assignment.
+ GroupID *string `json:"groupId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupLifecyclePolicyAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupLifecyclePolicyAction.go
new file mode 100644
index 00000000..d11dd4f3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupLifecyclePolicyAction.go
@@ -0,0 +1,104 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GroupLifecyclePolicyCollectionRenewGroupRequestParameter undocumented
+type GroupLifecyclePolicyCollectionRenewGroupRequestParameter struct {
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+}
+
+// GroupLifecyclePolicyAddGroupRequestParameter undocumented
+type GroupLifecyclePolicyAddGroupRequestParameter struct {
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+}
+
+// GroupLifecyclePolicyRemoveGroupRequestParameter undocumented
+type GroupLifecyclePolicyRemoveGroupRequestParameter struct {
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+}
+
+//
+type GroupLifecyclePolicyCollectionRenewGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// RenewGroup action undocumented
+func (b *GroupGroupLifecyclePoliciesCollectionRequestBuilder) RenewGroup(reqObj *GroupLifecyclePolicyCollectionRenewGroupRequestParameter) *GroupLifecyclePolicyCollectionRenewGroupRequestBuilder {
+ bb := &GroupLifecyclePolicyCollectionRenewGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/renewGroup"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupLifecyclePolicyCollectionRenewGroupRequest struct{ BaseRequest }
+
+//
+func (b *GroupLifecyclePolicyCollectionRenewGroupRequestBuilder) Request() *GroupLifecyclePolicyCollectionRenewGroupRequest {
+ return &GroupLifecyclePolicyCollectionRenewGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupLifecyclePolicyCollectionRenewGroupRequest) Post(ctx context.Context) (resObj *bool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type GroupLifecyclePolicyAddGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// AddGroup action undocumented
+func (b *GroupLifecyclePolicyRequestBuilder) AddGroup(reqObj *GroupLifecyclePolicyAddGroupRequestParameter) *GroupLifecyclePolicyAddGroupRequestBuilder {
+ bb := &GroupLifecyclePolicyAddGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/addGroup"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupLifecyclePolicyAddGroupRequest struct{ BaseRequest }
+
+//
+func (b *GroupLifecyclePolicyAddGroupRequestBuilder) Request() *GroupLifecyclePolicyAddGroupRequest {
+ return &GroupLifecyclePolicyAddGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupLifecyclePolicyAddGroupRequest) Post(ctx context.Context) (resObj *bool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type GroupLifecyclePolicyRemoveGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// RemoveGroup action undocumented
+func (b *GroupLifecyclePolicyRequestBuilder) RemoveGroup(reqObj *GroupLifecyclePolicyRemoveGroupRequestParameter) *GroupLifecyclePolicyRemoveGroupRequestBuilder {
+ bb := &GroupLifecyclePolicyRemoveGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/removeGroup"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupLifecyclePolicyRemoveGroupRequest struct{ BaseRequest }
+
+//
+func (b *GroupLifecyclePolicyRemoveGroupRequestBuilder) Request() *GroupLifecyclePolicyRemoveGroupRequest {
+ return &GroupLifecyclePolicyRemoveGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupLifecyclePolicyRemoveGroupRequest) Post(ctx context.Context) (resObj *bool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupLifecyclePolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupLifecyclePolicyModel.go
new file mode 100644
index 00000000..be7e003e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupLifecyclePolicyModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupLifecyclePolicy undocumented
+type GroupLifecyclePolicy struct {
+ // Entity is the base model of GroupLifecyclePolicy
+ Entity
+ // GroupLifetimeInDays undocumented
+ GroupLifetimeInDays *int `json:"groupLifetimeInDays,omitempty"`
+ // ManagedGroupTypes undocumented
+ ManagedGroupTypes *string `json:"managedGroupTypes,omitempty"`
+ // AlternateNotificationEmails undocumented
+ AlternateNotificationEmails *string `json:"alternateNotificationEmails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupLifecyclePolicyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupLifecyclePolicyRequest.go
new file mode 100644
index 00000000..ee936dd7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupLifecyclePolicyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GroupLifecyclePolicyRequestBuilder is request builder for GroupLifecyclePolicy
+type GroupLifecyclePolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupLifecyclePolicyRequest
+func (b *GroupLifecyclePolicyRequestBuilder) Request() *GroupLifecyclePolicyRequest {
+ return &GroupLifecyclePolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupLifecyclePolicyRequest is request for GroupLifecyclePolicy
+type GroupLifecyclePolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupLifecyclePolicy
+func (r *GroupLifecyclePolicyRequest) Get(ctx context.Context) (resObj *GroupLifecyclePolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupLifecyclePolicy
+func (r *GroupLifecyclePolicyRequest) Update(ctx context.Context, reqObj *GroupLifecyclePolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupLifecyclePolicy
+func (r *GroupLifecyclePolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupMembershipGovernanceCriteriaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupMembershipGovernanceCriteriaModel.go
new file mode 100644
index 00000000..81a4e9bd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupMembershipGovernanceCriteriaModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupMembershipGovernanceCriteria undocumented
+type GroupMembershipGovernanceCriteria struct {
+ // GovernanceCriteria is the base model of GroupMembershipGovernanceCriteria
+ GovernanceCriteria
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupModel.go
new file mode 100644
index 00000000..40880082
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupModel.go
@@ -0,0 +1,155 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Group undocumented
+type Group struct {
+ // DirectoryObject is the base model of Group
+ DirectoryObject
+ // AssignedLabels undocumented
+ AssignedLabels []AssignedLabel `json:"assignedLabels,omitempty"`
+ // AssignedLicenses undocumented
+ AssignedLicenses []AssignedLicense `json:"assignedLicenses,omitempty"`
+ // Classification undocumented
+ Classification *string `json:"classification,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // GroupTypes undocumented
+ GroupTypes []string `json:"groupTypes,omitempty"`
+ // HasMembersWithLicenseErrors undocumented
+ HasMembersWithLicenseErrors *bool `json:"hasMembersWithLicenseErrors,omitempty"`
+ // IsAssignableToRole undocumented
+ IsAssignableToRole *bool `json:"isAssignableToRole,omitempty"`
+ // LicenseProcessingState undocumented
+ LicenseProcessingState *LicenseProcessingState `json:"licenseProcessingState,omitempty"`
+ // Mail undocumented
+ Mail *string `json:"mail,omitempty"`
+ // MailEnabled undocumented
+ MailEnabled *bool `json:"mailEnabled,omitempty"`
+ // MailNickname undocumented
+ MailNickname *string `json:"mailNickname,omitempty"`
+ // MdmAppID undocumented
+ MdmAppID *string `json:"mdmAppId,omitempty"`
+ // MembershipRule undocumented
+ MembershipRule *string `json:"membershipRule,omitempty"`
+ // MembershipRuleProcessingState undocumented
+ MembershipRuleProcessingState *string `json:"membershipRuleProcessingState,omitempty"`
+ // OnPremisesDomainName undocumented
+ OnPremisesDomainName *string `json:"onPremisesDomainName,omitempty"`
+ // OnPremisesLastSyncDateTime undocumented
+ OnPremisesLastSyncDateTime *time.Time `json:"onPremisesLastSyncDateTime,omitempty"`
+ // OnPremisesNetBiosName undocumented
+ OnPremisesNetBiosName *string `json:"onPremisesNetBiosName,omitempty"`
+ // OnPremisesProvisioningErrors undocumented
+ OnPremisesProvisioningErrors []OnPremisesProvisioningError `json:"onPremisesProvisioningErrors,omitempty"`
+ // OnPremisesSamAccountName undocumented
+ OnPremisesSamAccountName *string `json:"onPremisesSamAccountName,omitempty"`
+ // OnPremisesSecurityIdentifier undocumented
+ OnPremisesSecurityIdentifier *string `json:"onPremisesSecurityIdentifier,omitempty"`
+ // OnPremisesSyncEnabled undocumented
+ OnPremisesSyncEnabled *bool `json:"onPremisesSyncEnabled,omitempty"`
+ // PreferredDataLocation undocumented
+ PreferredDataLocation *string `json:"preferredDataLocation,omitempty"`
+ // PreferredLanguage undocumented
+ PreferredLanguage *string `json:"preferredLanguage,omitempty"`
+ // ProxyAddresses undocumented
+ ProxyAddresses []string `json:"proxyAddresses,omitempty"`
+ // RenewedDateTime undocumented
+ RenewedDateTime *time.Time `json:"renewedDateTime,omitempty"`
+ // ResourceBehaviorOptions undocumented
+ ResourceBehaviorOptions []string `json:"resourceBehaviorOptions,omitempty"`
+ // ResourceProvisioningOptions undocumented
+ ResourceProvisioningOptions []string `json:"resourceProvisioningOptions,omitempty"`
+ // SecurityEnabled undocumented
+ SecurityEnabled *bool `json:"securityEnabled,omitempty"`
+ // SecurityIdentifier undocumented
+ SecurityIdentifier *string `json:"securityIdentifier,omitempty"`
+ // Theme undocumented
+ Theme *string `json:"theme,omitempty"`
+ // Visibility undocumented
+ Visibility *string `json:"visibility,omitempty"`
+ // AccessType undocumented
+ AccessType *GroupAccessType `json:"accessType,omitempty"`
+ // AllowExternalSenders undocumented
+ AllowExternalSenders *bool `json:"allowExternalSenders,omitempty"`
+ // AutoSubscribeNewMembers undocumented
+ AutoSubscribeNewMembers *bool `json:"autoSubscribeNewMembers,omitempty"`
+ // IsFavorite undocumented
+ IsFavorite *bool `json:"isFavorite,omitempty"`
+ // IsSubscribedByMail undocumented
+ IsSubscribedByMail *bool `json:"isSubscribedByMail,omitempty"`
+ // UnseenCount undocumented
+ UnseenCount *int `json:"unseenCount,omitempty"`
+ // UnseenConversationsCount undocumented
+ UnseenConversationsCount *int `json:"unseenConversationsCount,omitempty"`
+ // UnseenMessagesCount undocumented
+ UnseenMessagesCount *int `json:"unseenMessagesCount,omitempty"`
+ // HideFromOutlookClients undocumented
+ HideFromOutlookClients *bool `json:"hideFromOutlookClients,omitempty"`
+ // HideFromAddressLists undocumented
+ HideFromAddressLists *bool `json:"hideFromAddressLists,omitempty"`
+ // IsArchived undocumented
+ IsArchived *bool `json:"isArchived,omitempty"`
+ // AppRoleAssignments undocumented
+ AppRoleAssignments []AppRoleAssignment `json:"appRoleAssignments,omitempty"`
+ // Members undocumented
+ Members []DirectoryObject `json:"members,omitempty"`
+ // MembersWithLicenseErrors undocumented
+ MembersWithLicenseErrors []DirectoryObject `json:"membersWithLicenseErrors,omitempty"`
+ // MemberOf undocumented
+ MemberOf []DirectoryObject `json:"memberOf,omitempty"`
+ // TransitiveMembers undocumented
+ TransitiveMembers []DirectoryObject `json:"transitiveMembers,omitempty"`
+ // TransitiveMemberOf undocumented
+ TransitiveMemberOf []DirectoryObject `json:"transitiveMemberOf,omitempty"`
+ // CreatedOnBehalfOf undocumented
+ CreatedOnBehalfOf *DirectoryObject `json:"createdOnBehalfOf,omitempty"`
+ // Owners undocumented
+ Owners []DirectoryObject `json:"owners,omitempty"`
+ // Settings undocumented
+ Settings []DirectorySetting `json:"settings,omitempty"`
+ // Endpoints undocumented
+ Endpoints []Endpoint `json:"endpoints,omitempty"`
+ // PermissionGrants undocumented
+ PermissionGrants []ResourceSpecificPermissionGrant `json:"permissionGrants,omitempty"`
+ // Conversations undocumented
+ Conversations []Conversation `json:"conversations,omitempty"`
+ // Photos undocumented
+ Photos []ProfilePhoto `json:"photos,omitempty"`
+ // AcceptedSenders undocumented
+ AcceptedSenders []DirectoryObject `json:"acceptedSenders,omitempty"`
+ // RejectedSenders undocumented
+ RejectedSenders []DirectoryObject `json:"rejectedSenders,omitempty"`
+ // Threads undocumented
+ Threads []ConversationThread `json:"threads,omitempty"`
+ // Calendar undocumented
+ Calendar *Calendar `json:"calendar,omitempty"`
+ // CalendarView undocumented
+ CalendarView []Event `json:"calendarView,omitempty"`
+ // Events undocumented
+ Events []Event `json:"events,omitempty"`
+ // Photo undocumented
+ Photo *ProfilePhoto `json:"photo,omitempty"`
+ // Drive undocumented
+ Drive *Drive `json:"drive,omitempty"`
+ // Drives undocumented
+ Drives []Drive `json:"drives,omitempty"`
+ // Sites undocumented
+ Sites []Site `json:"sites,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+ // GroupLifecyclePolicies undocumented
+ GroupLifecyclePolicies []GroupLifecyclePolicy `json:"groupLifecyclePolicies,omitempty"`
+ // Planner undocumented
+ Planner *PlannerGroup `json:"planner,omitempty"`
+ // Onenote undocumented
+ Onenote *Onenote `json:"onenote,omitempty"`
+ // Team undocumented
+ Team *Team `json:"team,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationAction.go
new file mode 100644
index 00000000..62fb1068
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationAction.go
@@ -0,0 +1,136 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// GroupPolicyConfigurationAssignRequestParameter undocumented
+type GroupPolicyConfigurationAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []GroupPolicyConfigurationAssignment `json:"assignments,omitempty"`
+}
+
+// GroupPolicyConfigurationUpdateDefinitionValuesRequestParameter undocumented
+type GroupPolicyConfigurationUpdateDefinitionValuesRequestParameter struct {
+ // Added undocumented
+ Added []GroupPolicyDefinitionValue `json:"added,omitempty"`
+ // Updated undocumented
+ Updated []GroupPolicyDefinitionValue `json:"updated,omitempty"`
+ // DeletedIDs undocumented
+ DeletedIDs []string `json:"deletedIds,omitempty"`
+}
+
+//
+type GroupPolicyConfigurationAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *GroupPolicyConfigurationRequestBuilder) Assign(reqObj *GroupPolicyConfigurationAssignRequestParameter) *GroupPolicyConfigurationAssignRequestBuilder {
+ bb := &GroupPolicyConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupPolicyConfigurationAssignRequest struct{ BaseRequest }
+
+//
+func (b *GroupPolicyConfigurationAssignRequestBuilder) Request() *GroupPolicyConfigurationAssignRequest {
+ return &GroupPolicyConfigurationAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupPolicyConfigurationAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]GroupPolicyConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]GroupPolicyConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]GroupPolicyConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *GroupPolicyConfigurationAssignRequest) Get(ctx context.Context) ([][]GroupPolicyConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type GroupPolicyConfigurationUpdateDefinitionValuesRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateDefinitionValues action undocumented
+func (b *GroupPolicyConfigurationRequestBuilder) UpdateDefinitionValues(reqObj *GroupPolicyConfigurationUpdateDefinitionValuesRequestParameter) *GroupPolicyConfigurationUpdateDefinitionValuesRequestBuilder {
+ bb := &GroupPolicyConfigurationUpdateDefinitionValuesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateDefinitionValues"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupPolicyConfigurationUpdateDefinitionValuesRequest struct{ BaseRequest }
+
+//
+func (b *GroupPolicyConfigurationUpdateDefinitionValuesRequestBuilder) Request() *GroupPolicyConfigurationUpdateDefinitionValuesRequest {
+ return &GroupPolicyConfigurationUpdateDefinitionValuesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupPolicyConfigurationUpdateDefinitionValuesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationAssignmentModel.go
new file mode 100644
index 00000000..fc7b6801
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// GroupPolicyConfigurationAssignment The group policy configuration assignment entity assigns one or more AAD groups to a specific group policy configuration.
+type GroupPolicyConfigurationAssignment struct {
+ // Entity is the base model of GroupPolicyConfigurationAssignment
+ Entity
+ // LastModifiedDateTime The date and time the entity was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Target The type of groups targeted the group policy configuration.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationAssignmentRequest.go
new file mode 100644
index 00000000..e4f4b5e9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GroupPolicyConfigurationAssignmentRequestBuilder is request builder for GroupPolicyConfigurationAssignment
+type GroupPolicyConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicyConfigurationAssignmentRequest
+func (b *GroupPolicyConfigurationAssignmentRequestBuilder) Request() *GroupPolicyConfigurationAssignmentRequest {
+ return &GroupPolicyConfigurationAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicyConfigurationAssignmentRequest is request for GroupPolicyConfigurationAssignment
+type GroupPolicyConfigurationAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicyConfigurationAssignment
+func (r *GroupPolicyConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *GroupPolicyConfigurationAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicyConfigurationAssignment
+func (r *GroupPolicyConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *GroupPolicyConfigurationAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicyConfigurationAssignment
+func (r *GroupPolicyConfigurationAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationModel.go
new file mode 100644
index 00000000..80f5b53c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// GroupPolicyConfiguration The group policy configuration entity contains the configured values for one or more group policy definitions.
+type GroupPolicyConfiguration struct {
+ // Entity is the base model of GroupPolicyConfiguration
+ Entity
+ // CreatedDateTime The date and time the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DisplayName User provided name for the resource object.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description User provided description for the resource object.
+ Description *string `json:"description,omitempty"`
+ // RoleScopeTagIDs The list of scope tags for the configuration.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // LastModifiedDateTime The date and time the entity was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DefinitionValues undocumented
+ DefinitionValues []GroupPolicyDefinitionValue `json:"definitionValues,omitempty"`
+ // Assignments undocumented
+ Assignments []GroupPolicyConfigurationAssignment `json:"assignments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationRequest.go
new file mode 100644
index 00000000..1935ed3a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// GroupPolicyConfigurationRequestBuilder is request builder for GroupPolicyConfiguration
+type GroupPolicyConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicyConfigurationRequest
+func (b *GroupPolicyConfigurationRequestBuilder) Request() *GroupPolicyConfigurationRequest {
+ return &GroupPolicyConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicyConfigurationRequest is request for GroupPolicyConfiguration
+type GroupPolicyConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicyConfiguration
+func (r *GroupPolicyConfigurationRequest) Get(ctx context.Context) (resObj *GroupPolicyConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicyConfiguration
+func (r *GroupPolicyConfigurationRequest) Update(ctx context.Context, reqObj *GroupPolicyConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicyConfiguration
+func (r *GroupPolicyConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for GroupPolicyConfigurationAssignment collection
+func (b *GroupPolicyConfigurationRequestBuilder) Assignments() *GroupPolicyConfigurationAssignmentsCollectionRequestBuilder {
+ bb := &GroupPolicyConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// GroupPolicyConfigurationAssignmentsCollectionRequestBuilder is request builder for GroupPolicyConfigurationAssignment collection
+type GroupPolicyConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyConfigurationAssignment collection
+func (b *GroupPolicyConfigurationAssignmentsCollectionRequestBuilder) Request() *GroupPolicyConfigurationAssignmentsCollectionRequest {
+ return &GroupPolicyConfigurationAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyConfigurationAssignment item
+func (b *GroupPolicyConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *GroupPolicyConfigurationAssignmentRequestBuilder {
+ bb := &GroupPolicyConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupPolicyConfigurationAssignmentsCollectionRequest is request for GroupPolicyConfigurationAssignment collection
+type GroupPolicyConfigurationAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyConfigurationAssignment collection
+func (r *GroupPolicyConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GroupPolicyConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyConfigurationAssignment collection
+func (r *GroupPolicyConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GroupPolicyConfigurationAssignment collection
+func (r *GroupPolicyConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyConfigurationAssignment) (resObj *GroupPolicyConfigurationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DefinitionValues returns request builder for GroupPolicyDefinitionValue collection
+func (b *GroupPolicyConfigurationRequestBuilder) DefinitionValues() *GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder {
+ bb := &GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/definitionValues"
+ return bb
+}
+
+// GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder is request builder for GroupPolicyDefinitionValue collection
+type GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyDefinitionValue collection
+func (b *GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder) Request() *GroupPolicyConfigurationDefinitionValuesCollectionRequest {
+ return &GroupPolicyConfigurationDefinitionValuesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyDefinitionValue item
+func (b *GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder) ID(id string) *GroupPolicyDefinitionValueRequestBuilder {
+ bb := &GroupPolicyDefinitionValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupPolicyConfigurationDefinitionValuesCollectionRequest is request for GroupPolicyDefinitionValue collection
+type GroupPolicyConfigurationDefinitionValuesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyDefinitionValue collection
+func (r *GroupPolicyConfigurationDefinitionValuesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GroupPolicyDefinitionValue, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyDefinitionValue
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyDefinitionValue
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyDefinitionValue collection
+func (r *GroupPolicyConfigurationDefinitionValuesCollectionRequest) Get(ctx context.Context) ([]GroupPolicyDefinitionValue, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GroupPolicyDefinitionValue collection
+func (r *GroupPolicyConfigurationDefinitionValuesCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyDefinitionValue) (resObj *GroupPolicyDefinitionValue, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationTypeEnum.go
new file mode 100644
index 00000000..20e101d2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyConfigurationTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyConfigurationType undocumented
+type GroupPolicyConfigurationType int
+
+const (
+ // GroupPolicyConfigurationTypeVPolicy undocumented
+ GroupPolicyConfigurationTypeVPolicy GroupPolicyConfigurationType = 0
+ // GroupPolicyConfigurationTypeVPreference undocumented
+ GroupPolicyConfigurationTypeVPreference GroupPolicyConfigurationType = 1
+)
+
+// GroupPolicyConfigurationTypePPolicy returns a pointer to GroupPolicyConfigurationTypeVPolicy
+func GroupPolicyConfigurationTypePPolicy() *GroupPolicyConfigurationType {
+ v := GroupPolicyConfigurationTypeVPolicy
+ return &v
+}
+
+// GroupPolicyConfigurationTypePPreference returns a pointer to GroupPolicyConfigurationTypeVPreference
+func GroupPolicyConfigurationTypePPreference() *GroupPolicyConfigurationType {
+ v := GroupPolicyConfigurationTypeVPreference
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionClassTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionClassTypeEnum.go
new file mode 100644
index 00000000..bc29f880
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionClassTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyDefinitionClassType undocumented
+type GroupPolicyDefinitionClassType int
+
+const (
+ // GroupPolicyDefinitionClassTypeVUser undocumented
+ GroupPolicyDefinitionClassTypeVUser GroupPolicyDefinitionClassType = 0
+ // GroupPolicyDefinitionClassTypeVMachine undocumented
+ GroupPolicyDefinitionClassTypeVMachine GroupPolicyDefinitionClassType = 1
+)
+
+// GroupPolicyDefinitionClassTypePUser returns a pointer to GroupPolicyDefinitionClassTypeVUser
+func GroupPolicyDefinitionClassTypePUser() *GroupPolicyDefinitionClassType {
+ v := GroupPolicyDefinitionClassTypeVUser
+ return &v
+}
+
+// GroupPolicyDefinitionClassTypePMachine returns a pointer to GroupPolicyDefinitionClassTypeVMachine
+func GroupPolicyDefinitionClassTypePMachine() *GroupPolicyDefinitionClassType {
+ v := GroupPolicyDefinitionClassTypeVMachine
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionFileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionFileModel.go
new file mode 100644
index 00000000..780a9a3b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionFileModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// GroupPolicyDefinitionFile The entity represents an ADMX (Administrative Template) XML file. The ADMX file contains a collection of group policy definitions and their locations by category path. The group policy definition file also contains the languages supported as determined by the language dependent ADML (Administrative Template) language files.
+type GroupPolicyDefinitionFile struct {
+ // Entity is the base model of GroupPolicyDefinitionFile
+ Entity
+ // DisplayName The localized friendly name of the ADMX file.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The localized description of the policy settings in the ADMX file. The default value is empty.
+ Description *string `json:"description,omitempty"`
+ // LanguageCodes The supported language codes for the ADMX file.
+ LanguageCodes []string `json:"languageCodes,omitempty"`
+ // TargetPrefix Specifies the logical name that refers to the namespace within the ADMX file.
+ TargetPrefix *string `json:"targetPrefix,omitempty"`
+ // TargetNamespace Specifies the URI used to identify the namespace within the ADMX file.
+ TargetNamespace *string `json:"targetNamespace,omitempty"`
+ // PolicyType Specifies the type of group policy.
+ PolicyType *GroupPolicyType `json:"policyType,omitempty"`
+ // Revision The revision version associated with the file.
+ Revision *string `json:"revision,omitempty"`
+ // LastModifiedDateTime The date and time the entity was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Definitions undocumented
+ Definitions []GroupPolicyDefinition `json:"definitions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionFileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionFileRequest.go
new file mode 100644
index 00000000..c1aa1d01
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionFileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// GroupPolicyDefinitionFileRequestBuilder is request builder for GroupPolicyDefinitionFile
+type GroupPolicyDefinitionFileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicyDefinitionFileRequest
+func (b *GroupPolicyDefinitionFileRequestBuilder) Request() *GroupPolicyDefinitionFileRequest {
+ return &GroupPolicyDefinitionFileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicyDefinitionFileRequest is request for GroupPolicyDefinitionFile
+type GroupPolicyDefinitionFileRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicyDefinitionFile
+func (r *GroupPolicyDefinitionFileRequest) Get(ctx context.Context) (resObj *GroupPolicyDefinitionFile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicyDefinitionFile
+func (r *GroupPolicyDefinitionFileRequest) Update(ctx context.Context, reqObj *GroupPolicyDefinitionFile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicyDefinitionFile
+func (r *GroupPolicyDefinitionFileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Definitions returns request builder for GroupPolicyDefinition collection
+func (b *GroupPolicyDefinitionFileRequestBuilder) Definitions() *GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder {
+ bb := &GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/definitions"
+ return bb
+}
+
+// GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder is request builder for GroupPolicyDefinition collection
+type GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyDefinition collection
+func (b *GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder) Request() *GroupPolicyDefinitionFileDefinitionsCollectionRequest {
+ return &GroupPolicyDefinitionFileDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyDefinition item
+func (b *GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder) ID(id string) *GroupPolicyDefinitionRequestBuilder {
+ bb := &GroupPolicyDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupPolicyDefinitionFileDefinitionsCollectionRequest is request for GroupPolicyDefinition collection
+type GroupPolicyDefinitionFileDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyDefinition collection
+func (r *GroupPolicyDefinitionFileDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GroupPolicyDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyDefinition collection
+func (r *GroupPolicyDefinitionFileDefinitionsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GroupPolicyDefinition collection
+func (r *GroupPolicyDefinitionFileDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyDefinition) (resObj *GroupPolicyDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionModel.go
new file mode 100644
index 00000000..05301122
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// GroupPolicyDefinition The entity describes all of the information about a single group policy.
+type GroupPolicyDefinition struct {
+ // Entity is the base model of GroupPolicyDefinition
+ Entity
+ // ClassType Identifies the type of groups the policy can be applied to.
+ ClassType *GroupPolicyDefinitionClassType `json:"classType,omitempty"`
+ // DisplayName The localized policy name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // ExplainText The localized explanation or help text associated with the policy. The default value is empty.
+ ExplainText *string `json:"explainText,omitempty"`
+ // CategoryPath The localized full category path for the policy.
+ CategoryPath *string `json:"categoryPath,omitempty"`
+ // SupportedOn Localized string used to specify what operating system or application version is affected by the policy.
+ SupportedOn *string `json:"supportedOn,omitempty"`
+ // PolicyType Specifies the type of group policy.
+ PolicyType *GroupPolicyType `json:"policyType,omitempty"`
+ // LastModifiedDateTime The date and time the entity was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DefinitionFile undocumented
+ DefinitionFile *GroupPolicyDefinitionFile `json:"definitionFile,omitempty"`
+ // Presentations undocumented
+ Presentations []GroupPolicyPresentation `json:"presentations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionRequest.go
new file mode 100644
index 00000000..603a9a19
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionRequest.go
@@ -0,0 +1,146 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// GroupPolicyDefinitionRequestBuilder is request builder for GroupPolicyDefinition
+type GroupPolicyDefinitionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicyDefinitionRequest
+func (b *GroupPolicyDefinitionRequestBuilder) Request() *GroupPolicyDefinitionRequest {
+ return &GroupPolicyDefinitionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicyDefinitionRequest is request for GroupPolicyDefinition
+type GroupPolicyDefinitionRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicyDefinition
+func (r *GroupPolicyDefinitionRequest) Get(ctx context.Context) (resObj *GroupPolicyDefinition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicyDefinition
+func (r *GroupPolicyDefinitionRequest) Update(ctx context.Context, reqObj *GroupPolicyDefinition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicyDefinition
+func (r *GroupPolicyDefinitionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DefinitionFile is navigation property
+func (b *GroupPolicyDefinitionRequestBuilder) DefinitionFile() *GroupPolicyDefinitionFileRequestBuilder {
+ bb := &GroupPolicyDefinitionFileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/definitionFile"
+ return bb
+}
+
+// Presentations returns request builder for GroupPolicyPresentation collection
+func (b *GroupPolicyDefinitionRequestBuilder) Presentations() *GroupPolicyDefinitionPresentationsCollectionRequestBuilder {
+ bb := &GroupPolicyDefinitionPresentationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/presentations"
+ return bb
+}
+
+// GroupPolicyDefinitionPresentationsCollectionRequestBuilder is request builder for GroupPolicyPresentation collection
+type GroupPolicyDefinitionPresentationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyPresentation collection
+func (b *GroupPolicyDefinitionPresentationsCollectionRequestBuilder) Request() *GroupPolicyDefinitionPresentationsCollectionRequest {
+ return &GroupPolicyDefinitionPresentationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyPresentation item
+func (b *GroupPolicyDefinitionPresentationsCollectionRequestBuilder) ID(id string) *GroupPolicyPresentationRequestBuilder {
+ bb := &GroupPolicyPresentationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupPolicyDefinitionPresentationsCollectionRequest is request for GroupPolicyPresentation collection
+type GroupPolicyDefinitionPresentationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyPresentation collection
+func (r *GroupPolicyDefinitionPresentationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GroupPolicyPresentation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyPresentation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyPresentation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyPresentation collection
+func (r *GroupPolicyDefinitionPresentationsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyPresentation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GroupPolicyPresentation collection
+func (r *GroupPolicyDefinitionPresentationsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyPresentation) (resObj *GroupPolicyPresentation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionValueModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionValueModel.go
new file mode 100644
index 00000000..cdf88390
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionValueModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// GroupPolicyDefinitionValue The definition value entity stores the value for a single group policy definition.
+type GroupPolicyDefinitionValue struct {
+ // Entity is the base model of GroupPolicyDefinitionValue
+ Entity
+ // CreatedDateTime The date and time the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Enabled Enables or disables the associated group policy definition.
+ Enabled *bool `json:"enabled,omitempty"`
+ // ConfigurationType Specifies how the value should be configured. This can be either as a Policy or as a Preference.
+ ConfigurationType *GroupPolicyConfigurationType `json:"configurationType,omitempty"`
+ // LastModifiedDateTime The date and time the entity was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // PresentationValues undocumented
+ PresentationValues []GroupPolicyPresentationValue `json:"presentationValues,omitempty"`
+ // Definition undocumented
+ Definition *GroupPolicyDefinition `json:"definition,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionValueRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionValueRequest.go
new file mode 100644
index 00000000..9644e06c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyDefinitionValueRequest.go
@@ -0,0 +1,146 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// GroupPolicyDefinitionValueRequestBuilder is request builder for GroupPolicyDefinitionValue
+type GroupPolicyDefinitionValueRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicyDefinitionValueRequest
+func (b *GroupPolicyDefinitionValueRequestBuilder) Request() *GroupPolicyDefinitionValueRequest {
+ return &GroupPolicyDefinitionValueRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicyDefinitionValueRequest is request for GroupPolicyDefinitionValue
+type GroupPolicyDefinitionValueRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicyDefinitionValue
+func (r *GroupPolicyDefinitionValueRequest) Get(ctx context.Context) (resObj *GroupPolicyDefinitionValue, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicyDefinitionValue
+func (r *GroupPolicyDefinitionValueRequest) Update(ctx context.Context, reqObj *GroupPolicyDefinitionValue) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicyDefinitionValue
+func (r *GroupPolicyDefinitionValueRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Definition is navigation property
+func (b *GroupPolicyDefinitionValueRequestBuilder) Definition() *GroupPolicyDefinitionRequestBuilder {
+ bb := &GroupPolicyDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/definition"
+ return bb
+}
+
+// PresentationValues returns request builder for GroupPolicyPresentationValue collection
+func (b *GroupPolicyDefinitionValueRequestBuilder) PresentationValues() *GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder {
+ bb := &GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/presentationValues"
+ return bb
+}
+
+// GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder is request builder for GroupPolicyPresentationValue collection
+type GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyPresentationValue collection
+func (b *GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder) Request() *GroupPolicyDefinitionValuePresentationValuesCollectionRequest {
+ return &GroupPolicyDefinitionValuePresentationValuesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyPresentationValue item
+func (b *GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder) ID(id string) *GroupPolicyPresentationValueRequestBuilder {
+ bb := &GroupPolicyPresentationValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupPolicyDefinitionValuePresentationValuesCollectionRequest is request for GroupPolicyPresentationValue collection
+type GroupPolicyDefinitionValuePresentationValuesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyPresentationValue collection
+func (r *GroupPolicyDefinitionValuePresentationValuesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GroupPolicyPresentationValue, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyPresentationValue
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyPresentationValue
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicyPresentationValue collection
+func (r *GroupPolicyDefinitionValuePresentationValuesCollectionRequest) Get(ctx context.Context) ([]GroupPolicyPresentationValue, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GroupPolicyPresentationValue collection
+func (r *GroupPolicyDefinitionValuePresentationValuesCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyPresentationValue) (resObj *GroupPolicyPresentationValue, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyMigrationReadinessEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyMigrationReadinessEnum.go
new file mode 100644
index 00000000..7b00c646
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyMigrationReadinessEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyMigrationReadiness undocumented
+type GroupPolicyMigrationReadiness int
+
+const (
+ // GroupPolicyMigrationReadinessVNone undocumented
+ GroupPolicyMigrationReadinessVNone GroupPolicyMigrationReadiness = 1
+ // GroupPolicyMigrationReadinessVPartial undocumented
+ GroupPolicyMigrationReadinessVPartial GroupPolicyMigrationReadiness = 2
+ // GroupPolicyMigrationReadinessVComplete undocumented
+ GroupPolicyMigrationReadinessVComplete GroupPolicyMigrationReadiness = 3
+ // GroupPolicyMigrationReadinessVError undocumented
+ GroupPolicyMigrationReadinessVError GroupPolicyMigrationReadiness = 4
+ // GroupPolicyMigrationReadinessVNotApplicable undocumented
+ GroupPolicyMigrationReadinessVNotApplicable GroupPolicyMigrationReadiness = 5
+)
+
+// GroupPolicyMigrationReadinessPNone returns a pointer to GroupPolicyMigrationReadinessVNone
+func GroupPolicyMigrationReadinessPNone() *GroupPolicyMigrationReadiness {
+ v := GroupPolicyMigrationReadinessVNone
+ return &v
+}
+
+// GroupPolicyMigrationReadinessPPartial returns a pointer to GroupPolicyMigrationReadinessVPartial
+func GroupPolicyMigrationReadinessPPartial() *GroupPolicyMigrationReadiness {
+ v := GroupPolicyMigrationReadinessVPartial
+ return &v
+}
+
+// GroupPolicyMigrationReadinessPComplete returns a pointer to GroupPolicyMigrationReadinessVComplete
+func GroupPolicyMigrationReadinessPComplete() *GroupPolicyMigrationReadiness {
+ v := GroupPolicyMigrationReadinessVComplete
+ return &v
+}
+
+// GroupPolicyMigrationReadinessPError returns a pointer to GroupPolicyMigrationReadinessVError
+func GroupPolicyMigrationReadinessPError() *GroupPolicyMigrationReadiness {
+ v := GroupPolicyMigrationReadinessVError
+ return &v
+}
+
+// GroupPolicyMigrationReadinessPNotApplicable returns a pointer to GroupPolicyMigrationReadinessVNotApplicable
+func GroupPolicyMigrationReadinessPNotApplicable() *GroupPolicyMigrationReadiness {
+ v := GroupPolicyMigrationReadinessVNotApplicable
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyMigrationReportAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyMigrationReportAction.go
new file mode 100644
index 00000000..3bc1b4cd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyMigrationReportAction.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GroupPolicyMigrationReportCollectionCreateMigrationReportRequestParameter undocumented
+type GroupPolicyMigrationReportCollectionCreateMigrationReportRequestParameter struct {
+ // GroupPolicyObjectFile undocumented
+ GroupPolicyObjectFile *GroupPolicyObjectFile `json:"groupPolicyObjectFile,omitempty"`
+}
+
+//
+type GroupPolicyMigrationReportCollectionCreateMigrationReportRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateMigrationReport action undocumented
+func (b *DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder) CreateMigrationReport(reqObj *GroupPolicyMigrationReportCollectionCreateMigrationReportRequestParameter) *GroupPolicyMigrationReportCollectionCreateMigrationReportRequestBuilder {
+ bb := &GroupPolicyMigrationReportCollectionCreateMigrationReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createMigrationReport"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupPolicyMigrationReportCollectionCreateMigrationReportRequest struct{ BaseRequest }
+
+//
+func (b *GroupPolicyMigrationReportCollectionCreateMigrationReportRequestBuilder) Request() *GroupPolicyMigrationReportCollectionCreateMigrationReportRequest {
+ return &GroupPolicyMigrationReportCollectionCreateMigrationReportRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupPolicyMigrationReportCollectionCreateMigrationReportRequest) Post(ctx context.Context) (resObj *string, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyMigrationReportModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyMigrationReportModel.go
new file mode 100644
index 00000000..5cc081aa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyMigrationReportModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// GroupPolicyMigrationReport The Group Policy migration report.
+type GroupPolicyMigrationReport struct {
+ // Entity is the base model of GroupPolicyMigrationReport
+ Entity
+ // GroupPolicyObjectID The Group Policy Object GUID from GPO Xml content
+ GroupPolicyObjectID *UUID `json:"groupPolicyObjectId,omitempty"`
+ // DisplayName The name of Group Policy Object from the GPO Xml Content
+ DisplayName *string `json:"displayName,omitempty"`
+ // OuDistinguishedName The distinguished name of the OU.
+ OuDistinguishedName *string `json:"ouDistinguishedName,omitempty"`
+ // CreatedDateTime The date and time at which the GroupPolicyMigrationReport was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime The date and time at which the GroupPolicyMigrationReport was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // GroupPolicyCreatedDateTime The date and time at which the GroupPolicyMigrationReport was created.
+ GroupPolicyCreatedDateTime *time.Time `json:"groupPolicyCreatedDateTime,omitempty"`
+ // GroupPolicyLastModifiedDateTime The date and time at which the GroupPolicyMigrationReport was last modified.
+ GroupPolicyLastModifiedDateTime *time.Time `json:"groupPolicyLastModifiedDateTime,omitempty"`
+ // MigrationReadiness The Intune coverage for the associated Group Policy Object file.
+ MigrationReadiness *GroupPolicyMigrationReadiness `json:"migrationReadiness,omitempty"`
+ // TargetedInActiveDirectory The Targeted in AD property from GPO Xml Content
+ TargetedInActiveDirectory *bool `json:"targetedInActiveDirectory,omitempty"`
+ // TotalSettingsCount The total number of Group Policy Settings from GPO file.
+ TotalSettingsCount *int `json:"totalSettingsCount,omitempty"`
+ // SupportedSettingsCount The number of Group Policy Settings supported by Intune.
+ SupportedSettingsCount *int `json:"supportedSettingsCount,omitempty"`
+ // SupportedSettingsPercent The Percentage of Group Policy Settings supported by Intune.
+ SupportedSettingsPercent *int `json:"supportedSettingsPercent,omitempty"`
+ // GroupPolicySettingMappings undocumented
+ GroupPolicySettingMappings []GroupPolicySettingMapping `json:"groupPolicySettingMappings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyMigrationReportRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyMigrationReportRequest.go
new file mode 100644
index 00000000..a5b35058
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyMigrationReportRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// GroupPolicyMigrationReportRequestBuilder is request builder for GroupPolicyMigrationReport
+type GroupPolicyMigrationReportRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicyMigrationReportRequest
+func (b *GroupPolicyMigrationReportRequestBuilder) Request() *GroupPolicyMigrationReportRequest {
+ return &GroupPolicyMigrationReportRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicyMigrationReportRequest is request for GroupPolicyMigrationReport
+type GroupPolicyMigrationReportRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicyMigrationReport
+func (r *GroupPolicyMigrationReportRequest) Get(ctx context.Context) (resObj *GroupPolicyMigrationReport, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicyMigrationReport
+func (r *GroupPolicyMigrationReportRequest) Update(ctx context.Context, reqObj *GroupPolicyMigrationReport) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicyMigrationReport
+func (r *GroupPolicyMigrationReportRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// GroupPolicySettingMappings returns request builder for GroupPolicySettingMapping collection
+func (b *GroupPolicyMigrationReportRequestBuilder) GroupPolicySettingMappings() *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder {
+ bb := &GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupPolicySettingMappings"
+ return bb
+}
+
+// GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder is request builder for GroupPolicySettingMapping collection
+type GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicySettingMapping collection
+func (b *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder) Request() *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest {
+ return &GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicySettingMapping item
+func (b *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder) ID(id string) *GroupPolicySettingMappingRequestBuilder {
+ bb := &GroupPolicySettingMappingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest is request for GroupPolicySettingMapping collection
+type GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicySettingMapping collection
+func (r *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GroupPolicySettingMapping, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicySettingMapping
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicySettingMapping
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupPolicySettingMapping collection
+func (r *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest) Get(ctx context.Context) ([]GroupPolicySettingMapping, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GroupPolicySettingMapping collection
+func (r *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicySettingMapping) (resObj *GroupPolicySettingMapping, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyObjectFileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyObjectFileModel.go
new file mode 100644
index 00000000..35b18f52
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyObjectFileModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyObjectFile undocumented
+type GroupPolicyObjectFile struct {
+ // Object is the base model of GroupPolicyObjectFile
+ Object
+ // OuDistinguishedName The distinguished name of the OU.
+ OuDistinguishedName *string `json:"ouDistinguishedName,omitempty"`
+ // Content The Group Policy Object file content.
+ Content *string `json:"content,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationCheckBoxModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationCheckBoxModel.go
new file mode 100644
index 00000000..a86e0800
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationCheckBoxModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyPresentationCheckBox Represents an ADMX checkBox element and an ADMX boolean element.
+type GroupPolicyPresentationCheckBox struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationCheckBox
+ GroupPolicyPresentation
+ // DefaultChecked Default value for the check box. The default value is false.
+ DefaultChecked *bool `json:"defaultChecked,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationComboBoxModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationComboBoxModel.go
new file mode 100644
index 00000000..12a86997
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationComboBoxModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyPresentationComboBox Represents an ADMX comboBox element and an ADMX text element.
+type GroupPolicyPresentationComboBox struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationComboBox
+ GroupPolicyPresentation
+ // DefaultValue Localized default string displayed in the combo box. The default value is empty.
+ DefaultValue *string `json:"defaultValue,omitempty"`
+ // Suggestions Localized strings listed in the drop-down list of the combo box. The default value is empty.
+ Suggestions []string `json:"suggestions,omitempty"`
+ // Required Specifies whether a value must be specified for the parameter. The default value is false.
+ Required *bool `json:"required,omitempty"`
+ // MaxLength An unsigned integer that specifies the maximum number of text characters for the parameter. The default value is 1023.
+ MaxLength *int `json:"maxLength,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationDecimalTextBoxModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationDecimalTextBoxModel.go
new file mode 100644
index 00000000..4b4a45e5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationDecimalTextBoxModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyPresentationDecimalTextBox Represents an ADMX decimalTextBox element and an ADMX decimal element.
+type GroupPolicyPresentationDecimalTextBox struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationDecimalTextBox
+ GroupPolicyPresentation
+ // DefaultValue An unsigned integer that specifies the initial value for the decimal text box. The default value is 1.
+ DefaultValue *int `json:"defaultValue,omitempty"`
+ // Spin If true, create a spin control; otherwise, create a text box for numeric entry. The default value is true.
+ Spin *bool `json:"spin,omitempty"`
+ // SpinStep An unsigned integer that specifies the increment of change for the spin control. The default value is 1.
+ SpinStep *int `json:"spinStep,omitempty"`
+ // Required Requirement to enter a value in the parameter box. The default value is false.
+ Required *bool `json:"required,omitempty"`
+ // MinValue An unsigned integer that specifies the minimum allowed value. The default value is 0.
+ MinValue *int `json:"minValue,omitempty"`
+ // MaxValue An unsigned integer that specifies the maximum allowed value. The default value is 9999.
+ MaxValue *int `json:"maxValue,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationDropdownListItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationDropdownListItemModel.go
new file mode 100644
index 00000000..3dfb939f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationDropdownListItemModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyPresentationDropdownListItem undocumented
+type GroupPolicyPresentationDropdownListItem struct {
+ // Object is the base model of GroupPolicyPresentationDropdownListItem
+ Object
+ // DisplayName Localized display name for the drop-down list item.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Value Associated value for the drop-down list item
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationDropdownListModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationDropdownListModel.go
new file mode 100644
index 00000000..c85e4d97
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationDropdownListModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyPresentationDropdownList Represents an ADMX dropdownList element and an ADMX enum element.
+type GroupPolicyPresentationDropdownList struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationDropdownList
+ GroupPolicyPresentation
+ // DefaultItem Localized string value identifying the default choice of the list of items.
+ DefaultItem *GroupPolicyPresentationDropdownListItem `json:"defaultItem,omitempty"`
+ // Items Represents a set of localized display names and their associated values.
+ Items []GroupPolicyPresentationDropdownListItem `json:"items,omitempty"`
+ // Required Requirement to enter a value in the parameter box. The default value is false.
+ Required *bool `json:"required,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationListBoxModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationListBoxModel.go
new file mode 100644
index 00000000..9b36bffb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationListBoxModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyPresentationListBox Represents an ADMX listBox element and an ADMX list element.
+type GroupPolicyPresentationListBox struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationListBox
+ GroupPolicyPresentation
+ // ExplicitValue If this option is specified true the user must specify the registry subkey value and the registry subkey name. The list box shows two columns, one for the name and one for the data. The default value is false.
+ ExplicitValue *bool `json:"explicitValue,omitempty"`
+ // ValuePrefix undocumented
+ ValuePrefix *string `json:"valuePrefix,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationLongDecimalTextBoxModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationLongDecimalTextBoxModel.go
new file mode 100644
index 00000000..6a3556ae
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationLongDecimalTextBoxModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyPresentationLongDecimalTextBox Represents an ADMX longDecimalTextBox element and an ADMX longDecimal element.
+type GroupPolicyPresentationLongDecimalTextBox struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationLongDecimalTextBox
+ GroupPolicyPresentation
+ // DefaultValue An unsigned integer that specifies the initial value for the decimal text box. The default value is 1.
+ DefaultValue *int `json:"defaultValue,omitempty"`
+ // Spin If true, create a spin control; otherwise, create a text box for numeric entry. The default value is true.
+ Spin *bool `json:"spin,omitempty"`
+ // SpinStep An unsigned integer that specifies the increment of change for the spin control. The default value is 1.
+ SpinStep *int `json:"spinStep,omitempty"`
+ // Required Requirement to enter a value in the parameter box. The default value is false.
+ Required *bool `json:"required,omitempty"`
+ // MinValue An unsigned long that specifies the minimum allowed value. The default value is 0.
+ MinValue *int `json:"minValue,omitempty"`
+ // MaxValue An unsigned long that specifies the maximum allowed value. The default value is 9999.
+ MaxValue *int `json:"maxValue,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationModel.go
new file mode 100644
index 00000000..74758ecf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// GroupPolicyPresentation The base entity for the display presentation of any of the additional options in a group policy definition.
+type GroupPolicyPresentation struct {
+ // Entity is the base model of GroupPolicyPresentation
+ Entity
+ // Label Localized text label for any presentation entity. The default value is empty.
+ Label *string `json:"label,omitempty"`
+ // LastModifiedDateTime The date and time the entity was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Definition undocumented
+ Definition *GroupPolicyDefinition `json:"definition,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationMultiTextBoxModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationMultiTextBoxModel.go
new file mode 100644
index 00000000..dc201319
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationMultiTextBoxModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyPresentationMultiTextBox Represents an ADMX multiTextBox element and an ADMX multiText element.
+type GroupPolicyPresentationMultiTextBox struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationMultiTextBox
+ GroupPolicyPresentation
+ // Required Requirement to enter a value in the text box. Default value is false.
+ Required *bool `json:"required,omitempty"`
+ // MaxLength An unsigned integer that specifies the maximum number of text characters. Default value is 1023.
+ MaxLength *int `json:"maxLength,omitempty"`
+ // MaxStrings An unsigned integer that specifies the maximum number of strings. Default value is 0.
+ MaxStrings *int `json:"maxStrings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationRequest.go
new file mode 100644
index 00000000..e4d09d01
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GroupPolicyPresentationRequestBuilder is request builder for GroupPolicyPresentation
+type GroupPolicyPresentationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicyPresentationRequest
+func (b *GroupPolicyPresentationRequestBuilder) Request() *GroupPolicyPresentationRequest {
+ return &GroupPolicyPresentationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicyPresentationRequest is request for GroupPolicyPresentation
+type GroupPolicyPresentationRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicyPresentation
+func (r *GroupPolicyPresentationRequest) Get(ctx context.Context) (resObj *GroupPolicyPresentation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicyPresentation
+func (r *GroupPolicyPresentationRequest) Update(ctx context.Context, reqObj *GroupPolicyPresentation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicyPresentation
+func (r *GroupPolicyPresentationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Definition is navigation property
+func (b *GroupPolicyPresentationRequestBuilder) Definition() *GroupPolicyDefinitionRequestBuilder {
+ bb := &GroupPolicyDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/definition"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationTextBoxModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationTextBoxModel.go
new file mode 100644
index 00000000..e8074d41
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationTextBoxModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyPresentationTextBox Represents an ADMX textBox element and an ADMX text element.
+type GroupPolicyPresentationTextBox struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationTextBox
+ GroupPolicyPresentation
+ // DefaultValue Localized default string displayed in the text box. The default value is empty.
+ DefaultValue *string `json:"defaultValue,omitempty"`
+ // Required Requirement to enter a value in the text box. Default value is false.
+ Required *bool `json:"required,omitempty"`
+ // MaxLength An unsigned integer that specifies the maximum number of text characters. Default value is 1023.
+ MaxLength *int `json:"maxLength,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationTextModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationTextModel.go
new file mode 100644
index 00000000..50cbc2ad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationTextModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyPresentationText Represents an ADMX text element.
+type GroupPolicyPresentationText struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationText
+ GroupPolicyPresentation
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueBooleanModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueBooleanModel.go
new file mode 100644
index 00000000..8b7f397b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueBooleanModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyPresentationValueBoolean The entity represents a Boolean value of a checkbox presentation on a policy definition.
+type GroupPolicyPresentationValueBoolean struct {
+ // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueBoolean
+ GroupPolicyPresentationValue
+ // Value An boolean value for the associated presentation.
+ Value *bool `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueDecimalModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueDecimalModel.go
new file mode 100644
index 00000000..cbcb2ff8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueDecimalModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyPresentationValueDecimal The entity represents an unsigned integer value of a decimal text box presentation on a policy definition.
+type GroupPolicyPresentationValueDecimal struct {
+ // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueDecimal
+ GroupPolicyPresentationValue
+ // Value An unsigned integer value for the associated presentation.
+ Value *int `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueListModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueListModel.go
new file mode 100644
index 00000000..019b3000
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueListModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyPresentationValueList The entity represents a collection of name/value pairs of a list box presentation on a policy definition.
+type GroupPolicyPresentationValueList struct {
+ // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueList
+ GroupPolicyPresentationValue
+ // Values A list of pairs for the associated presentation.
+ Values []KeyValuePair `json:"values,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueLongDecimalModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueLongDecimalModel.go
new file mode 100644
index 00000000..a32ae6e1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueLongDecimalModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyPresentationValueLongDecimal The entity represents an unsigned long value of a long decimal text box presentation on a policy definition.
+type GroupPolicyPresentationValueLongDecimal struct {
+ // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueLongDecimal
+ GroupPolicyPresentationValue
+ // Value An unsigned long value for the associated presentation.
+ Value *int `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueModel.go
new file mode 100644
index 00000000..d073a725
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// GroupPolicyPresentationValue The base presentation value entity that stores the value for a single group policy presentation.
+type GroupPolicyPresentationValue struct {
+ // Entity is the base model of GroupPolicyPresentationValue
+ Entity
+ // LastModifiedDateTime The date and time the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // CreatedDateTime The date and time the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DefinitionValue undocumented
+ DefinitionValue *GroupPolicyDefinitionValue `json:"definitionValue,omitempty"`
+ // Presentation undocumented
+ Presentation *GroupPolicyPresentation `json:"presentation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueMultiTextModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueMultiTextModel.go
new file mode 100644
index 00000000..ec151df7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueMultiTextModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyPresentationValueMultiText The entity represents a string value of a multi-line text box presentation on a policy definition.
+type GroupPolicyPresentationValueMultiText struct {
+ // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueMultiText
+ GroupPolicyPresentationValue
+ // Values A collection of non-empty strings for the associated presentation.
+ Values []string `json:"values,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueRequest.go
new file mode 100644
index 00000000..1517a648
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GroupPolicyPresentationValueRequestBuilder is request builder for GroupPolicyPresentationValue
+type GroupPolicyPresentationValueRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicyPresentationValueRequest
+func (b *GroupPolicyPresentationValueRequestBuilder) Request() *GroupPolicyPresentationValueRequest {
+ return &GroupPolicyPresentationValueRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicyPresentationValueRequest is request for GroupPolicyPresentationValue
+type GroupPolicyPresentationValueRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicyPresentationValue
+func (r *GroupPolicyPresentationValueRequest) Get(ctx context.Context) (resObj *GroupPolicyPresentationValue, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicyPresentationValue
+func (r *GroupPolicyPresentationValueRequest) Update(ctx context.Context, reqObj *GroupPolicyPresentationValue) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicyPresentationValue
+func (r *GroupPolicyPresentationValueRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DefinitionValue is navigation property
+func (b *GroupPolicyPresentationValueRequestBuilder) DefinitionValue() *GroupPolicyDefinitionValueRequestBuilder {
+ bb := &GroupPolicyDefinitionValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/definitionValue"
+ return bb
+}
+
+// Presentation is navigation property
+func (b *GroupPolicyPresentationValueRequestBuilder) Presentation() *GroupPolicyPresentationRequestBuilder {
+ bb := &GroupPolicyPresentationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/presentation"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueTextModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueTextModel.go
new file mode 100644
index 00000000..4c2a5a21
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyPresentationValueTextModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyPresentationValueText The entity represents a string value for a drop-down list, combo box, or text box presentation on a policy definition.
+type GroupPolicyPresentationValueText struct {
+ // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueText
+ GroupPolicyPresentationValue
+ // Value A string value for the associated presentation.
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicySettingMappingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicySettingMappingModel.go
new file mode 100644
index 00000000..85c3e273
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicySettingMappingModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicySettingMapping The Group Policy setting to MDM/Intune mapping.
+type GroupPolicySettingMapping struct {
+ // Entity is the base model of GroupPolicySettingMapping
+ Entity
+ // ParentID Parent Id of the group policy setting.
+ ParentID *string `json:"parentId,omitempty"`
+ // ChildIDList List of Child Ids of the group policy setting.
+ ChildIDList []string `json:"childIdList,omitempty"`
+ // SettingName The name of this group policy setting.
+ SettingName *string `json:"settingName,omitempty"`
+ // SettingValue The value of this group policy setting.
+ SettingValue *string `json:"settingValue,omitempty"`
+ // SettingValueType The value type of this group policy setting.
+ SettingValueType *string `json:"settingValueType,omitempty"`
+ // SettingDisplayName The display name of this group policy setting.
+ SettingDisplayName *string `json:"settingDisplayName,omitempty"`
+ // SettingDisplayValue The display value of this group policy setting.
+ SettingDisplayValue *string `json:"settingDisplayValue,omitempty"`
+ // SettingDisplayValueType The display value type of this group policy setting.
+ SettingDisplayValueType *string `json:"settingDisplayValueType,omitempty"`
+ // SettingValueDisplayUnits The display units of this group policy setting value
+ SettingValueDisplayUnits *string `json:"settingValueDisplayUnits,omitempty"`
+ // SettingCategory The category the group policy setting is in.
+ SettingCategory *string `json:"settingCategory,omitempty"`
+ // MdmCspName The CSP name this group policy setting maps to.
+ MdmCspName *string `json:"mdmCspName,omitempty"`
+ // MdmSettingURI The MDM CSP URI this group policy setting maps to.
+ MdmSettingURI *string `json:"mdmSettingUri,omitempty"`
+ // MdmMinimumOSVersion The minimum OS version this mdm setting supports.
+ MdmMinimumOSVersion *int `json:"mdmMinimumOSVersion,omitempty"`
+ // SettingType The setting type (security or admx) of the Group Policy.
+ SettingType *GroupPolicySettingType `json:"settingType,omitempty"`
+ // IsMdmSupported Indicates if the setting is supported by Intune or not
+ IsMdmSupported *bool `json:"isMdmSupported,omitempty"`
+ // SettingScope The scope of the setting
+ SettingScope *GroupPolicySettingScope `json:"settingScope,omitempty"`
+ // IntuneSettingURIList The list of Intune Setting URIs this group policy setting maps to
+ IntuneSettingURIList []string `json:"intuneSettingUriList,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicySettingMappingRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicySettingMappingRequest.go
new file mode 100644
index 00000000..dce6ddf8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicySettingMappingRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GroupPolicySettingMappingRequestBuilder is request builder for GroupPolicySettingMapping
+type GroupPolicySettingMappingRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicySettingMappingRequest
+func (b *GroupPolicySettingMappingRequestBuilder) Request() *GroupPolicySettingMappingRequest {
+ return &GroupPolicySettingMappingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicySettingMappingRequest is request for GroupPolicySettingMapping
+type GroupPolicySettingMappingRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicySettingMapping
+func (r *GroupPolicySettingMappingRequest) Get(ctx context.Context) (resObj *GroupPolicySettingMapping, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicySettingMapping
+func (r *GroupPolicySettingMappingRequest) Update(ctx context.Context, reqObj *GroupPolicySettingMapping) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicySettingMapping
+func (r *GroupPolicySettingMappingRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicySettingScopeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicySettingScopeEnum.go
new file mode 100644
index 00000000..aa29bb47
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicySettingScopeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicySettingScope undocumented
+type GroupPolicySettingScope int
+
+const (
+ // GroupPolicySettingScopeVUnknown undocumented
+ GroupPolicySettingScopeVUnknown GroupPolicySettingScope = 0
+ // GroupPolicySettingScopeVDevice undocumented
+ GroupPolicySettingScopeVDevice GroupPolicySettingScope = 1
+ // GroupPolicySettingScopeVUser undocumented
+ GroupPolicySettingScopeVUser GroupPolicySettingScope = 2
+)
+
+// GroupPolicySettingScopePUnknown returns a pointer to GroupPolicySettingScopeVUnknown
+func GroupPolicySettingScopePUnknown() *GroupPolicySettingScope {
+ v := GroupPolicySettingScopeVUnknown
+ return &v
+}
+
+// GroupPolicySettingScopePDevice returns a pointer to GroupPolicySettingScopeVDevice
+func GroupPolicySettingScopePDevice() *GroupPolicySettingScope {
+ v := GroupPolicySettingScopeVDevice
+ return &v
+}
+
+// GroupPolicySettingScopePUser returns a pointer to GroupPolicySettingScopeVUser
+func GroupPolicySettingScopePUser() *GroupPolicySettingScope {
+ v := GroupPolicySettingScopeVUser
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicySettingTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicySettingTypeEnum.go
new file mode 100644
index 00000000..0691eb9a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicySettingTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicySettingType undocumented
+type GroupPolicySettingType int
+
+const (
+ // GroupPolicySettingTypeVUnknown undocumented
+ GroupPolicySettingTypeVUnknown GroupPolicySettingType = 0
+ // GroupPolicySettingTypeVPolicy undocumented
+ GroupPolicySettingTypeVPolicy GroupPolicySettingType = 1
+ // GroupPolicySettingTypeVAccount undocumented
+ GroupPolicySettingTypeVAccount GroupPolicySettingType = 2
+)
+
+// GroupPolicySettingTypePUnknown returns a pointer to GroupPolicySettingTypeVUnknown
+func GroupPolicySettingTypePUnknown() *GroupPolicySettingType {
+ v := GroupPolicySettingTypeVUnknown
+ return &v
+}
+
+// GroupPolicySettingTypePPolicy returns a pointer to GroupPolicySettingTypeVPolicy
+func GroupPolicySettingTypePPolicy() *GroupPolicySettingType {
+ v := GroupPolicySettingTypeVPolicy
+ return &v
+}
+
+// GroupPolicySettingTypePAccount returns a pointer to GroupPolicySettingTypeVAccount
+func GroupPolicySettingTypePAccount() *GroupPolicySettingType {
+ v := GroupPolicySettingTypeVAccount
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyTypeEnum.go
new file mode 100644
index 00000000..d7e3f5fb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPolicyTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPolicyType undocumented
+type GroupPolicyType int
+
+const (
+ // GroupPolicyTypeVAdmxBacked undocumented
+ GroupPolicyTypeVAdmxBacked GroupPolicyType = 0
+ // GroupPolicyTypeVAdmxIngested undocumented
+ GroupPolicyTypeVAdmxIngested GroupPolicyType = 1
+)
+
+// GroupPolicyTypePAdmxBacked returns a pointer to GroupPolicyTypeVAdmxBacked
+func GroupPolicyTypePAdmxBacked() *GroupPolicyType {
+ v := GroupPolicyTypeVAdmxBacked
+ return &v
+}
+
+// GroupPolicyTypePAdmxIngested returns a pointer to GroupPolicyTypeVAdmxIngested
+func GroupPolicyTypePAdmxIngested() *GroupPolicyType {
+ v := GroupPolicyTypeVAdmxIngested
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupPrivacyEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPrivacyEnum.go
new file mode 100644
index 00000000..3cf2cad9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupPrivacyEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupPrivacy undocumented
+type GroupPrivacy int
+
+const (
+ // GroupPrivacyVPublic undocumented
+ GroupPrivacyVPublic GroupPrivacy = 0
+ // GroupPrivacyVPrivate undocumented
+ GroupPrivacyVPrivate GroupPrivacy = 1
+)
+
+// GroupPrivacyPPublic returns a pointer to GroupPrivacyVPublic
+func GroupPrivacyPPublic() *GroupPrivacy {
+ v := GroupPrivacyVPublic
+ return &v
+}
+
+// GroupPrivacyPPrivate returns a pointer to GroupPrivacyVPrivate
+func GroupPrivacyPPrivate() *GroupPrivacy {
+ v := GroupPrivacyVPrivate
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupRequest.go
new file mode 100644
index 00000000..10a6a0a8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupRequest.go
@@ -0,0 +1,2068 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// GroupRequestBuilder is request builder for Group
+type GroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupRequest
+func (b *GroupRequestBuilder) Request() *GroupRequest {
+ return &GroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupRequest is request for Group
+type GroupRequest struct{ BaseRequest }
+
+// Get performs GET request for Group
+func (r *GroupRequest) Get(ctx context.Context) (resObj *Group, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Group
+func (r *GroupRequest) Update(ctx context.Context, reqObj *Group) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Group
+func (r *GroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AcceptedSenders returns request builder for DirectoryObject collection
+func (b *GroupRequestBuilder) AcceptedSenders() *GroupAcceptedSendersCollectionRequestBuilder {
+ bb := &GroupAcceptedSendersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/acceptedSenders"
+ return bb
+}
+
+// GroupAcceptedSendersCollectionRequestBuilder is request builder for DirectoryObject collection
+type GroupAcceptedSendersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GroupAcceptedSendersCollectionRequestBuilder) Request() *GroupAcceptedSendersCollectionRequest {
+ return &GroupAcceptedSendersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GroupAcceptedSendersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupAcceptedSendersCollectionRequest is request for DirectoryObject collection
+type GroupAcceptedSendersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GroupAcceptedSendersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupAcceptedSendersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GroupAcceptedSendersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AppRoleAssignments returns request builder for AppRoleAssignment collection
+func (b *GroupRequestBuilder) AppRoleAssignments() *GroupAppRoleAssignmentsCollectionRequestBuilder {
+ bb := &GroupAppRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appRoleAssignments"
+ return bb
+}
+
+// GroupAppRoleAssignmentsCollectionRequestBuilder is request builder for AppRoleAssignment collection
+type GroupAppRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppRoleAssignment collection
+func (b *GroupAppRoleAssignmentsCollectionRequestBuilder) Request() *GroupAppRoleAssignmentsCollectionRequest {
+ return &GroupAppRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppRoleAssignment item
+func (b *GroupAppRoleAssignmentsCollectionRequestBuilder) ID(id string) *AppRoleAssignmentRequestBuilder {
+ bb := &AppRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupAppRoleAssignmentsCollectionRequest is request for AppRoleAssignment collection
+type GroupAppRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppRoleAssignment collection
+func (r *GroupAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AppRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppRoleAssignment collection
+func (r *GroupAppRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AppRoleAssignment collection
+func (r *GroupAppRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AppRoleAssignment) (resObj *AppRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Calendar is navigation property
+func (b *GroupRequestBuilder) Calendar() *CalendarRequestBuilder {
+ bb := &CalendarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendar"
+ return bb
+}
+
+// CalendarView returns request builder for Event collection
+func (b *GroupRequestBuilder) CalendarView() *GroupCalendarViewCollectionRequestBuilder {
+ bb := &GroupCalendarViewCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendarView"
+ return bb
+}
+
+// GroupCalendarViewCollectionRequestBuilder is request builder for Event collection
+type GroupCalendarViewCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Event collection
+func (b *GroupCalendarViewCollectionRequestBuilder) Request() *GroupCalendarViewCollectionRequest {
+ return &GroupCalendarViewCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Event item
+func (b *GroupCalendarViewCollectionRequestBuilder) ID(id string) *EventRequestBuilder {
+ bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupCalendarViewCollectionRequest is request for Event collection
+type GroupCalendarViewCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Event collection
+func (r *GroupCalendarViewCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Event, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Event
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Event
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Event collection
+func (r *GroupCalendarViewCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Event collection
+func (r *GroupCalendarViewCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Conversations returns request builder for Conversation collection
+func (b *GroupRequestBuilder) Conversations() *GroupConversationsCollectionRequestBuilder {
+ bb := &GroupConversationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/conversations"
+ return bb
+}
+
+// GroupConversationsCollectionRequestBuilder is request builder for Conversation collection
+type GroupConversationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Conversation collection
+func (b *GroupConversationsCollectionRequestBuilder) Request() *GroupConversationsCollectionRequest {
+ return &GroupConversationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Conversation item
+func (b *GroupConversationsCollectionRequestBuilder) ID(id string) *ConversationRequestBuilder {
+ bb := &ConversationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupConversationsCollectionRequest is request for Conversation collection
+type GroupConversationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Conversation collection
+func (r *GroupConversationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Conversation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Conversation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Conversation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Conversation collection
+func (r *GroupConversationsCollectionRequest) Get(ctx context.Context) ([]Conversation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Conversation collection
+func (r *GroupConversationsCollectionRequest) Add(ctx context.Context, reqObj *Conversation) (resObj *Conversation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CreatedOnBehalfOf is navigation property
+func (b *GroupRequestBuilder) CreatedOnBehalfOf() *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/createdOnBehalfOf"
+ return bb
+}
+
+// Drive is navigation property
+func (b *GroupRequestBuilder) Drive() *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drive"
+ return bb
+}
+
+// Drives returns request builder for Drive collection
+func (b *GroupRequestBuilder) Drives() *GroupDrivesCollectionRequestBuilder {
+ bb := &GroupDrivesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drives"
+ return bb
+}
+
+// GroupDrivesCollectionRequestBuilder is request builder for Drive collection
+type GroupDrivesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Drive collection
+func (b *GroupDrivesCollectionRequestBuilder) Request() *GroupDrivesCollectionRequest {
+ return &GroupDrivesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Drive item
+func (b *GroupDrivesCollectionRequestBuilder) ID(id string) *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupDrivesCollectionRequest is request for Drive collection
+type GroupDrivesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Drive collection
+func (r *GroupDrivesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Drive, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Drive
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Drive
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Drive collection
+func (r *GroupDrivesCollectionRequest) Get(ctx context.Context) ([]Drive, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Drive collection
+func (r *GroupDrivesCollectionRequest) Add(ctx context.Context, reqObj *Drive) (resObj *Drive, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Endpoints returns request builder for Endpoint collection
+func (b *GroupRequestBuilder) Endpoints() *GroupEndpointsCollectionRequestBuilder {
+ bb := &GroupEndpointsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/endpoints"
+ return bb
+}
+
+// GroupEndpointsCollectionRequestBuilder is request builder for Endpoint collection
+type GroupEndpointsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Endpoint collection
+func (b *GroupEndpointsCollectionRequestBuilder) Request() *GroupEndpointsCollectionRequest {
+ return &GroupEndpointsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Endpoint item
+func (b *GroupEndpointsCollectionRequestBuilder) ID(id string) *EndpointRequestBuilder {
+ bb := &EndpointRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupEndpointsCollectionRequest is request for Endpoint collection
+type GroupEndpointsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Endpoint collection
+func (r *GroupEndpointsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Endpoint, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Endpoint
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Endpoint
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Endpoint collection
+func (r *GroupEndpointsCollectionRequest) Get(ctx context.Context) ([]Endpoint, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Endpoint collection
+func (r *GroupEndpointsCollectionRequest) Add(ctx context.Context, reqObj *Endpoint) (resObj *Endpoint, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Events returns request builder for Event collection
+func (b *GroupRequestBuilder) Events() *GroupEventsCollectionRequestBuilder {
+ bb := &GroupEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/events"
+ return bb
+}
+
+// GroupEventsCollectionRequestBuilder is request builder for Event collection
+type GroupEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Event collection
+func (b *GroupEventsCollectionRequestBuilder) Request() *GroupEventsCollectionRequest {
+ return &GroupEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Event item
+func (b *GroupEventsCollectionRequestBuilder) ID(id string) *EventRequestBuilder {
+ bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupEventsCollectionRequest is request for Event collection
+type GroupEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Event collection
+func (r *GroupEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Event, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Event
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Event
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Event collection
+func (r *GroupEventsCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Event collection
+func (r *GroupEventsCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Extensions returns request builder for Extension collection
+func (b *GroupRequestBuilder) Extensions() *GroupExtensionsCollectionRequestBuilder {
+ bb := &GroupExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// GroupExtensionsCollectionRequestBuilder is request builder for Extension collection
+type GroupExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *GroupExtensionsCollectionRequestBuilder) Request() *GroupExtensionsCollectionRequest {
+ return &GroupExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *GroupExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupExtensionsCollectionRequest is request for Extension collection
+type GroupExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *GroupExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *GroupExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Extension collection
+func (r *GroupExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupLifecyclePolicies returns request builder for GroupLifecyclePolicy collection
+func (b *GroupRequestBuilder) GroupLifecyclePolicies() *GroupGroupLifecyclePoliciesCollectionRequestBuilder {
+ bb := &GroupGroupLifecyclePoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupLifecyclePolicies"
+ return bb
+}
+
+// GroupGroupLifecyclePoliciesCollectionRequestBuilder is request builder for GroupLifecyclePolicy collection
+type GroupGroupLifecyclePoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupLifecyclePolicy collection
+func (b *GroupGroupLifecyclePoliciesCollectionRequestBuilder) Request() *GroupGroupLifecyclePoliciesCollectionRequest {
+ return &GroupGroupLifecyclePoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupLifecyclePolicy item
+func (b *GroupGroupLifecyclePoliciesCollectionRequestBuilder) ID(id string) *GroupLifecyclePolicyRequestBuilder {
+ bb := &GroupLifecyclePolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupGroupLifecyclePoliciesCollectionRequest is request for GroupLifecyclePolicy collection
+type GroupGroupLifecyclePoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupLifecyclePolicy collection
+func (r *GroupGroupLifecyclePoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GroupLifecyclePolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupLifecyclePolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupLifecyclePolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GroupLifecyclePolicy collection
+func (r *GroupGroupLifecyclePoliciesCollectionRequest) Get(ctx context.Context) ([]GroupLifecyclePolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GroupLifecyclePolicy collection
+func (r *GroupGroupLifecyclePoliciesCollectionRequest) Add(ctx context.Context, reqObj *GroupLifecyclePolicy) (resObj *GroupLifecyclePolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MemberOf returns request builder for DirectoryObject collection
+func (b *GroupRequestBuilder) MemberOf() *GroupMemberOfCollectionRequestBuilder {
+ bb := &GroupMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/memberOf"
+ return bb
+}
+
+// GroupMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type GroupMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GroupMemberOfCollectionRequestBuilder) Request() *GroupMemberOfCollectionRequest {
+ return &GroupMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GroupMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupMemberOfCollectionRequest is request for DirectoryObject collection
+type GroupMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GroupMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GroupMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Members returns request builder for DirectoryObject collection
+func (b *GroupRequestBuilder) Members() *GroupMembersCollectionRequestBuilder {
+ bb := &GroupMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/members"
+ return bb
+}
+
+// GroupMembersCollectionRequestBuilder is request builder for DirectoryObject collection
+type GroupMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GroupMembersCollectionRequestBuilder) Request() *GroupMembersCollectionRequest {
+ return &GroupMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GroupMembersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupMembersCollectionRequest is request for DirectoryObject collection
+type GroupMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GroupMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupMembersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GroupMembersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MembersWithLicenseErrors returns request builder for DirectoryObject collection
+func (b *GroupRequestBuilder) MembersWithLicenseErrors() *GroupMembersWithLicenseErrorsCollectionRequestBuilder {
+ bb := &GroupMembersWithLicenseErrorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/membersWithLicenseErrors"
+ return bb
+}
+
+// GroupMembersWithLicenseErrorsCollectionRequestBuilder is request builder for DirectoryObject collection
+type GroupMembersWithLicenseErrorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GroupMembersWithLicenseErrorsCollectionRequestBuilder) Request() *GroupMembersWithLicenseErrorsCollectionRequest {
+ return &GroupMembersWithLicenseErrorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GroupMembersWithLicenseErrorsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupMembersWithLicenseErrorsCollectionRequest is request for DirectoryObject collection
+type GroupMembersWithLicenseErrorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GroupMembersWithLicenseErrorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupMembersWithLicenseErrorsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GroupMembersWithLicenseErrorsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Onenote is navigation property
+func (b *GroupRequestBuilder) Onenote() *OnenoteRequestBuilder {
+ bb := &OnenoteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/onenote"
+ return bb
+}
+
+// Owners returns request builder for DirectoryObject collection
+func (b *GroupRequestBuilder) Owners() *GroupOwnersCollectionRequestBuilder {
+ bb := &GroupOwnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/owners"
+ return bb
+}
+
+// GroupOwnersCollectionRequestBuilder is request builder for DirectoryObject collection
+type GroupOwnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GroupOwnersCollectionRequestBuilder) Request() *GroupOwnersCollectionRequest {
+ return &GroupOwnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GroupOwnersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupOwnersCollectionRequest is request for DirectoryObject collection
+type GroupOwnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GroupOwnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupOwnersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GroupOwnersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PermissionGrants returns request builder for ResourceSpecificPermissionGrant collection
+func (b *GroupRequestBuilder) PermissionGrants() *GroupPermissionGrantsCollectionRequestBuilder {
+ bb := &GroupPermissionGrantsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/permissionGrants"
+ return bb
+}
+
+// GroupPermissionGrantsCollectionRequestBuilder is request builder for ResourceSpecificPermissionGrant collection
+type GroupPermissionGrantsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ResourceSpecificPermissionGrant collection
+func (b *GroupPermissionGrantsCollectionRequestBuilder) Request() *GroupPermissionGrantsCollectionRequest {
+ return &GroupPermissionGrantsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ResourceSpecificPermissionGrant item
+func (b *GroupPermissionGrantsCollectionRequestBuilder) ID(id string) *ResourceSpecificPermissionGrantRequestBuilder {
+ bb := &ResourceSpecificPermissionGrantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupPermissionGrantsCollectionRequest is request for ResourceSpecificPermissionGrant collection
+type GroupPermissionGrantsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ResourceSpecificPermissionGrant collection
+func (r *GroupPermissionGrantsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ResourceSpecificPermissionGrant, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ResourceSpecificPermissionGrant
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ResourceSpecificPermissionGrant
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ResourceSpecificPermissionGrant collection
+func (r *GroupPermissionGrantsCollectionRequest) Get(ctx context.Context) ([]ResourceSpecificPermissionGrant, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ResourceSpecificPermissionGrant collection
+func (r *GroupPermissionGrantsCollectionRequest) Add(ctx context.Context, reqObj *ResourceSpecificPermissionGrant) (resObj *ResourceSpecificPermissionGrant, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Photo is navigation property
+func (b *GroupRequestBuilder) Photo() *ProfilePhotoRequestBuilder {
+ bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/photo"
+ return bb
+}
+
+// Photos returns request builder for ProfilePhoto collection
+func (b *GroupRequestBuilder) Photos() *GroupPhotosCollectionRequestBuilder {
+ bb := &GroupPhotosCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/photos"
+ return bb
+}
+
+// GroupPhotosCollectionRequestBuilder is request builder for ProfilePhoto collection
+type GroupPhotosCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProfilePhoto collection
+func (b *GroupPhotosCollectionRequestBuilder) Request() *GroupPhotosCollectionRequest {
+ return &GroupPhotosCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProfilePhoto item
+func (b *GroupPhotosCollectionRequestBuilder) ID(id string) *ProfilePhotoRequestBuilder {
+ bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupPhotosCollectionRequest is request for ProfilePhoto collection
+type GroupPhotosCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProfilePhoto collection
+func (r *GroupPhotosCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ProfilePhoto, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProfilePhoto
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProfilePhoto
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProfilePhoto collection
+func (r *GroupPhotosCollectionRequest) Get(ctx context.Context) ([]ProfilePhoto, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ProfilePhoto collection
+func (r *GroupPhotosCollectionRequest) Add(ctx context.Context, reqObj *ProfilePhoto) (resObj *ProfilePhoto, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Planner is navigation property
+func (b *GroupRequestBuilder) Planner() *PlannerGroupRequestBuilder {
+ bb := &PlannerGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/planner"
+ return bb
+}
+
+// RejectedSenders returns request builder for DirectoryObject collection
+func (b *GroupRequestBuilder) RejectedSenders() *GroupRejectedSendersCollectionRequestBuilder {
+ bb := &GroupRejectedSendersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rejectedSenders"
+ return bb
+}
+
+// GroupRejectedSendersCollectionRequestBuilder is request builder for DirectoryObject collection
+type GroupRejectedSendersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GroupRejectedSendersCollectionRequestBuilder) Request() *GroupRejectedSendersCollectionRequest {
+ return &GroupRejectedSendersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GroupRejectedSendersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupRejectedSendersCollectionRequest is request for DirectoryObject collection
+type GroupRejectedSendersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GroupRejectedSendersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupRejectedSendersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GroupRejectedSendersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Settings returns request builder for DirectorySetting collection
+func (b *GroupRequestBuilder) Settings() *GroupSettingsCollectionRequestBuilder {
+ bb := &GroupSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settings"
+ return bb
+}
+
+// GroupSettingsCollectionRequestBuilder is request builder for DirectorySetting collection
+type GroupSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectorySetting collection
+func (b *GroupSettingsCollectionRequestBuilder) Request() *GroupSettingsCollectionRequest {
+ return &GroupSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectorySetting item
+func (b *GroupSettingsCollectionRequestBuilder) ID(id string) *DirectorySettingRequestBuilder {
+ bb := &DirectorySettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupSettingsCollectionRequest is request for DirectorySetting collection
+type GroupSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectorySetting collection
+func (r *GroupSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectorySetting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectorySetting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectorySetting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectorySetting collection
+func (r *GroupSettingsCollectionRequest) Get(ctx context.Context) ([]DirectorySetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectorySetting collection
+func (r *GroupSettingsCollectionRequest) Add(ctx context.Context, reqObj *DirectorySetting) (resObj *DirectorySetting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Sites returns request builder for Site collection
+func (b *GroupRequestBuilder) Sites() *GroupSitesCollectionRequestBuilder {
+ bb := &GroupSitesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sites"
+ return bb
+}
+
+// GroupSitesCollectionRequestBuilder is request builder for Site collection
+type GroupSitesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Site collection
+func (b *GroupSitesCollectionRequestBuilder) Request() *GroupSitesCollectionRequest {
+ return &GroupSitesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Site item
+func (b *GroupSitesCollectionRequestBuilder) ID(id string) *SiteRequestBuilder {
+ bb := &SiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupSitesCollectionRequest is request for Site collection
+type GroupSitesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Site collection
+func (r *GroupSitesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Site, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Site
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Site
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Site collection
+func (r *GroupSitesCollectionRequest) Get(ctx context.Context) ([]Site, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Site collection
+func (r *GroupSitesCollectionRequest) Add(ctx context.Context, reqObj *Site) (resObj *Site, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Team is navigation property
+func (b *GroupRequestBuilder) Team() *TeamRequestBuilder {
+ bb := &TeamRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/team"
+ return bb
+}
+
+// Threads returns request builder for ConversationThread collection
+func (b *GroupRequestBuilder) Threads() *GroupThreadsCollectionRequestBuilder {
+ bb := &GroupThreadsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/threads"
+ return bb
+}
+
+// GroupThreadsCollectionRequestBuilder is request builder for ConversationThread collection
+type GroupThreadsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ConversationThread collection
+func (b *GroupThreadsCollectionRequestBuilder) Request() *GroupThreadsCollectionRequest {
+ return &GroupThreadsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ConversationThread item
+func (b *GroupThreadsCollectionRequestBuilder) ID(id string) *ConversationThreadRequestBuilder {
+ bb := &ConversationThreadRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupThreadsCollectionRequest is request for ConversationThread collection
+type GroupThreadsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ConversationThread collection
+func (r *GroupThreadsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ConversationThread, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ConversationThread
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ConversationThread
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ConversationThread collection
+func (r *GroupThreadsCollectionRequest) Get(ctx context.Context) ([]ConversationThread, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ConversationThread collection
+func (r *GroupThreadsCollectionRequest) Add(ctx context.Context, reqObj *ConversationThread) (resObj *ConversationThread, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TransitiveMemberOf returns request builder for DirectoryObject collection
+func (b *GroupRequestBuilder) TransitiveMemberOf() *GroupTransitiveMemberOfCollectionRequestBuilder {
+ bb := &GroupTransitiveMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/transitiveMemberOf"
+ return bb
+}
+
+// GroupTransitiveMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type GroupTransitiveMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GroupTransitiveMemberOfCollectionRequestBuilder) Request() *GroupTransitiveMemberOfCollectionRequest {
+ return &GroupTransitiveMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GroupTransitiveMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupTransitiveMemberOfCollectionRequest is request for DirectoryObject collection
+type GroupTransitiveMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GroupTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GroupTransitiveMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TransitiveMembers returns request builder for DirectoryObject collection
+func (b *GroupRequestBuilder) TransitiveMembers() *GroupTransitiveMembersCollectionRequestBuilder {
+ bb := &GroupTransitiveMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/transitiveMembers"
+ return bb
+}
+
+// GroupTransitiveMembersCollectionRequestBuilder is request builder for DirectoryObject collection
+type GroupTransitiveMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GroupTransitiveMembersCollectionRequestBuilder) Request() *GroupTransitiveMembersCollectionRequest {
+ return &GroupTransitiveMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GroupTransitiveMembersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupTransitiveMembersCollectionRequest is request for DirectoryObject collection
+type GroupTransitiveMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GroupTransitiveMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupTransitiveMembersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GroupTransitiveMembersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GroupTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/GroupTypeEnum.go
new file mode 100644
index 00000000..2d0127af
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GroupTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupType undocumented
+type GroupType int
+
+const (
+ // GroupTypeVUnifiedGroups undocumented
+ GroupTypeVUnifiedGroups GroupType = 0
+ // GroupTypeVAzureAD undocumented
+ GroupTypeVAzureAD GroupType = 1
+ // GroupTypeVUnknownFutureValue undocumented
+ GroupTypeVUnknownFutureValue GroupType = 2
+)
+
+// GroupTypePUnifiedGroups returns a pointer to GroupTypeVUnifiedGroups
+func GroupTypePUnifiedGroups() *GroupType {
+ v := GroupTypeVUnifiedGroups
+ return &v
+}
+
+// GroupTypePAzureAD returns a pointer to GroupTypeVAzureAD
+func GroupTypePAzureAD() *GroupType {
+ v := GroupTypeVAzureAD
+ return &v
+}
+
+// GroupTypePUnknownFutureValue returns a pointer to GroupTypeVUnknownFutureValue
+func GroupTypePUnknownFutureValue() *GroupType {
+ v := GroupTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/HardwareInformationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/HardwareInformationModel.go
new file mode 100644
index 00000000..734d7648
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/HardwareInformationModel.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// HardwareInformation undocumented
+type HardwareInformation struct {
+ // Object is the base model of HardwareInformation
+ Object
+ // SerialNumber Serial number.
+ SerialNumber *string `json:"serialNumber,omitempty"`
+ // TotalStorageSpace Total storage space of the device.
+ TotalStorageSpace *int `json:"totalStorageSpace,omitempty"`
+ // FreeStorageSpace Free storage space of the device.
+ FreeStorageSpace *int `json:"freeStorageSpace,omitempty"`
+ // Imei IMEI
+ Imei *string `json:"imei,omitempty"`
+ // Meid MEID
+ Meid *string `json:"meid,omitempty"`
+ // Manufacturer Manufacturer of the device
+ Manufacturer *string `json:"manufacturer,omitempty"`
+ // Model Model of the device
+ Model *string `json:"model,omitempty"`
+ // PhoneNumber Phone number of the device
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // SubscriberCarrier Subscriber carrier of the device
+ SubscriberCarrier *string `json:"subscriberCarrier,omitempty"`
+ // CellularTechnology Cellular technology of the device
+ CellularTechnology *string `json:"cellularTechnology,omitempty"`
+ // WifiMac WiFi MAC address of the device
+ WifiMac *string `json:"wifiMac,omitempty"`
+ // OperatingSystemLanguage Operating system language of the device
+ OperatingSystemLanguage *string `json:"operatingSystemLanguage,omitempty"`
+ // IsSupervised Supervised mode of the device
+ IsSupervised *bool `json:"isSupervised,omitempty"`
+ // IsEncrypted Encryption status of the device
+ IsEncrypted *bool `json:"isEncrypted,omitempty"`
+ // IsSharedDevice Shared iPad
+ IsSharedDevice *bool `json:"isSharedDevice,omitempty"`
+ // SharedDeviceCachedUsers All users on the shared Apple device
+ SharedDeviceCachedUsers []SharedAppleDeviceUser `json:"sharedDeviceCachedUsers,omitempty"`
+ // TpmSpecificationVersion String that specifies the specification version.
+ TpmSpecificationVersion *string `json:"tpmSpecificationVersion,omitempty"`
+ // OperatingSystemEdition String that specifies the OS edition.
+ OperatingSystemEdition *string `json:"operatingSystemEdition,omitempty"`
+ // DeviceFullQualifiedDomainName Returns the fully qualified domain name of the device (if any). If the device is not domain-joined, it returns an empty string.
+ DeviceFullQualifiedDomainName *string `json:"deviceFullQualifiedDomainName,omitempty"`
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementState Virtualization-based security hardware requirement status.
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementState *DeviceGuardVirtualizationBasedSecurityHardwareRequirementState `json:"deviceGuardVirtualizationBasedSecurityHardwareRequirementState,omitempty"`
+ // DeviceGuardVirtualizationBasedSecurityState Virtualization-based security status.
+ DeviceGuardVirtualizationBasedSecurityState *DeviceGuardVirtualizationBasedSecurityState `json:"deviceGuardVirtualizationBasedSecurityState,omitempty"`
+ // DeviceGuardLocalSystemAuthorityCredentialGuardState Local System Authority (LSA) credential guard status.
+ DeviceGuardLocalSystemAuthorityCredentialGuardState *DeviceGuardLocalSystemAuthorityCredentialGuardState `json:"deviceGuardLocalSystemAuthorityCredentialGuardState,omitempty"`
+ // OsBuildNumber Operating System Build Number on Android device
+ OsBuildNumber *string `json:"osBuildNumber,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/HasPayloadLinkResultItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/HasPayloadLinkResultItemModel.go
new file mode 100644
index 00000000..0c3c2d5d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/HasPayloadLinkResultItemModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// HasPayloadLinkResultItem undocumented
+type HasPayloadLinkResultItem struct {
+ // Object is the base model of HasPayloadLinkResultItem
+ Object
+ // PayloadID Key of the Payload, In the format of Guid.
+ PayloadID *string `json:"payloadId,omitempty"`
+ // HasLink Indicate whether a payload has any link or not.
+ HasLink *bool `json:"hasLink,omitempty"`
+ // Error Exception information indicates if check for this item was successful or not.Empty string for no error.
+ Error *string `json:"error,omitempty"`
+ // Sources The reason where the link comes from.
+ Sources []DeviceAndAppManagementAssignmentSource `json:"sources,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/HashAlgorithmsEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/HashAlgorithmsEnum.go
new file mode 100644
index 00000000..8fc657f1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/HashAlgorithmsEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// HashAlgorithms undocumented
+type HashAlgorithms int
+
+const (
+ // HashAlgorithmsVSha1 undocumented
+ HashAlgorithmsVSha1 HashAlgorithms = 1
+ // HashAlgorithmsVSha2 undocumented
+ HashAlgorithmsVSha2 HashAlgorithms = 2
+)
+
+// HashAlgorithmsPSha1 returns a pointer to HashAlgorithmsVSha1
+func HashAlgorithmsPSha1() *HashAlgorithms {
+ v := HashAlgorithmsVSha1
+ return &v
+}
+
+// HashAlgorithmsPSha2 returns a pointer to HashAlgorithmsVSha2
+func HashAlgorithmsPSha2() *HashAlgorithms {
+ v := HashAlgorithmsVSha2
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/HashesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/HashesModel.go
new file mode 100644
index 00000000..dfc90cc9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/HashesModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Hashes undocumented
+type Hashes struct {
+ // Object is the base model of Hashes
+ Object
+ // Crc32Hash undocumented
+ Crc32Hash *string `json:"crc32Hash,omitempty"`
+ // QuickXorHash undocumented
+ QuickXorHash *string `json:"quickXorHash,omitempty"`
+ // Sha1Hash undocumented
+ Sha1Hash *string `json:"sha1Hash,omitempty"`
+ // Sha256Hash undocumented
+ Sha256Hash *string `json:"sha256Hash,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/HealthStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/HealthStateEnum.go
new file mode 100644
index 00000000..4676928e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/HealthStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// HealthState undocumented
+type HealthState int
+
+const (
+ // HealthStateVUnknown undocumented
+ HealthStateVUnknown HealthState = 0
+ // HealthStateVHealthy undocumented
+ HealthStateVHealthy HealthState = 1
+ // HealthStateVUnhealthy undocumented
+ HealthStateVUnhealthy HealthState = 2
+)
+
+// HealthStatePUnknown returns a pointer to HealthStateVUnknown
+func HealthStatePUnknown() *HealthState {
+ v := HealthStateVUnknown
+ return &v
+}
+
+// HealthStatePHealthy returns a pointer to HealthStateVHealthy
+func HealthStatePHealthy() *HealthState {
+ v := HealthStateVHealthy
+ return &v
+}
+
+// HealthStatePUnhealthy returns a pointer to HealthStateVUnhealthy
+func HealthStatePUnhealthy() *HealthState {
+ v := HealthStateVUnhealthy
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/HostSecurityProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/HostSecurityProfileModel.go
new file mode 100644
index 00000000..7b1b3c28
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/HostSecurityProfileModel.go
@@ -0,0 +1,47 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// HostSecurityProfile undocumented
+type HostSecurityProfile struct {
+ // Entity is the base model of HostSecurityProfile
+ Entity
+ // AzureSubscriptionID undocumented
+ AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // FirstSeenDateTime undocumented
+ FirstSeenDateTime *time.Time `json:"firstSeenDateTime,omitempty"`
+ // Fqdn undocumented
+ Fqdn *string `json:"fqdn,omitempty"`
+ // IsAzureAdJoined undocumented
+ IsAzureAdJoined *bool `json:"isAzureAdJoined,omitempty"`
+ // IsAzureAdRegistered undocumented
+ IsAzureAdRegistered *bool `json:"isAzureAdRegistered,omitempty"`
+ // IsHybridAzureDomainJoined undocumented
+ IsHybridAzureDomainJoined *bool `json:"isHybridAzureDomainJoined,omitempty"`
+ // LastSeenDateTime undocumented
+ LastSeenDateTime *time.Time `json:"lastSeenDateTime,omitempty"`
+ // LogonUsers undocumented
+ LogonUsers []LogonUser `json:"logonUsers,omitempty"`
+ // NetBiosName undocumented
+ NetBiosName *string `json:"netBiosName,omitempty"`
+ // NetworkInterfaces undocumented
+ NetworkInterfaces []NetworkInterface `json:"networkInterfaces,omitempty"`
+ // Os undocumented
+ Os *string `json:"os,omitempty"`
+ // OsVersion undocumented
+ OsVersion *string `json:"osVersion,omitempty"`
+ // ParentHost undocumented
+ ParentHost *string `json:"parentHost,omitempty"`
+ // RelatedHostIDs undocumented
+ RelatedHostIDs []string `json:"relatedHostIds,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/HostSecurityProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/HostSecurityProfileRequest.go
new file mode 100644
index 00000000..89d8b576
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/HostSecurityProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// HostSecurityProfileRequestBuilder is request builder for HostSecurityProfile
+type HostSecurityProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns HostSecurityProfileRequest
+func (b *HostSecurityProfileRequestBuilder) Request() *HostSecurityProfileRequest {
+ return &HostSecurityProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// HostSecurityProfileRequest is request for HostSecurityProfile
+type HostSecurityProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for HostSecurityProfile
+func (r *HostSecurityProfileRequest) Get(ctx context.Context) (resObj *HostSecurityProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for HostSecurityProfile
+func (r *HostSecurityProfileRequest) Update(ctx context.Context, reqObj *HostSecurityProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for HostSecurityProfile
+func (r *HostSecurityProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/HostSecurityStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/HostSecurityStateModel.go
new file mode 100644
index 00000000..64ed9885
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/HostSecurityStateModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// HostSecurityState undocumented
+type HostSecurityState struct {
+ // Object is the base model of HostSecurityState
+ Object
+ // Fqdn undocumented
+ Fqdn *string `json:"fqdn,omitempty"`
+ // IsAzureAdJoined undocumented
+ IsAzureAdJoined *bool `json:"isAzureAdJoined,omitempty"`
+ // IsAzureAdRegistered undocumented
+ IsAzureAdRegistered *bool `json:"isAzureAdRegistered,omitempty"`
+ // IsHybridAzureDomainJoined undocumented
+ IsHybridAzureDomainJoined *bool `json:"isHybridAzureDomainJoined,omitempty"`
+ // NetBiosName undocumented
+ NetBiosName *string `json:"netBiosName,omitempty"`
+ // Os undocumented
+ Os *string `json:"os,omitempty"`
+ // PrivateIPAddress undocumented
+ PrivateIPAddress *string `json:"privateIpAddress,omitempty"`
+ // PublicIPAddress undocumented
+ PublicIPAddress *string `json:"publicIpAddress,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/HourlyScheduleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/HourlyScheduleModel.go
new file mode 100644
index 00000000..2326c168
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/HourlyScheduleModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// HourlySchedule undocumented
+type HourlySchedule struct {
+ // RunSchedule is the base model of HourlySchedule
+ RunSchedule
+ // Interval Interval in number of hours
+ Interval *int `json:"interval,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/HybridAgentUpdaterConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/HybridAgentUpdaterConfigurationModel.go
new file mode 100644
index 00000000..3ee7280c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/HybridAgentUpdaterConfigurationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// HybridAgentUpdaterConfiguration undocumented
+type HybridAgentUpdaterConfiguration struct {
+ // Object is the base model of HybridAgentUpdaterConfiguration
+ Object
+ // DeferUpdateDateTime undocumented
+ DeferUpdateDateTime *time.Time `json:"deferUpdateDateTime,omitempty"`
+ // UpdateWindow undocumented
+ UpdateWindow *UpdateWindow `json:"updateWindow,omitempty"`
+ // AllowUpdateConfigurationOverride undocumented
+ AllowUpdateConfigurationOverride *bool `json:"allowUpdateConfigurationOverride,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSBookmarkModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSBookmarkModel.go
new file mode 100644
index 00000000..2c630a7a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSBookmarkModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSBookmark undocumented
+type IOSBookmark struct {
+ // Object is the base model of IOSBookmark
+ Object
+ // URL URL allowed to access
+ URL *string `json:"url,omitempty"`
+ // BookmarkFolder The folder into which the bookmark should be added in Safari
+ BookmarkFolder *string `json:"bookmarkFolder,omitempty"`
+ // DisplayName The display name of the bookmark
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSCertificateProfileBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSCertificateProfileBaseModel.go
new file mode 100644
index 00000000..76bb1a78
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSCertificateProfileBaseModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSCertificateProfileBase iOS certificate profile base.
+type IOSCertificateProfileBase struct {
+ // IOSCertificateProfile is the base model of IOSCertificateProfileBase
+ IOSCertificateProfile
+ // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99
+ RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
+ // SubjectNameFormat Certificate Subject Name Format.
+ SubjectNameFormat *AppleSubjectNameFormat `json:"subjectNameFormat,omitempty"`
+ // SubjectAlternativeNameType Certificate Subject Alternative Name type.
+ SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"`
+ // CertificateValidityPeriodValue Value for the Certificate Validity Period.
+ CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
+ // CertificateValidityPeriodScale Scale for the Certificate Validity Period.
+ CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSCertificateProfileBaseRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSCertificateProfileBaseRequest.go
new file mode 100644
index 00000000..b1dc9224
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSCertificateProfileBaseRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IOSCertificateProfileBaseRequestBuilder is request builder for IOSCertificateProfileBase
+type IOSCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSCertificateProfileBaseRequest
+func (b *IOSCertificateProfileBaseRequestBuilder) Request() *IOSCertificateProfileBaseRequest {
+ return &IOSCertificateProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSCertificateProfileBaseRequest is request for IOSCertificateProfileBase
+type IOSCertificateProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSCertificateProfileBase
+func (r *IOSCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *IOSCertificateProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSCertificateProfileBase
+func (r *IOSCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *IOSCertificateProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSCertificateProfileBase
+func (r *IOSCertificateProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSCertificateProfileModel.go
new file mode 100644
index 00000000..9ad7fdbb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSCertificateProfileModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSCertificateProfile Device Configuration.
+type IOSCertificateProfile struct {
+ // DeviceConfiguration is the base model of IOSCertificateProfile
+ DeviceConfiguration
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSCertificateProfileRequest.go
new file mode 100644
index 00000000..d97fa04d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSCertificateProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IOSCertificateProfileRequestBuilder is request builder for IOSCertificateProfile
+type IOSCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSCertificateProfileRequest
+func (b *IOSCertificateProfileRequestBuilder) Request() *IOSCertificateProfileRequest {
+ return &IOSCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSCertificateProfileRequest is request for IOSCertificateProfile
+type IOSCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSCertificateProfile
+func (r *IOSCertificateProfileRequest) Get(ctx context.Context) (resObj *IOSCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSCertificateProfile
+func (r *IOSCertificateProfileRequest) Update(ctx context.Context, reqObj *IOSCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSCertificateProfile
+func (r *IOSCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSCompliancePolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSCompliancePolicyModel.go
new file mode 100644
index 00000000..21fa4256
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSCompliancePolicyModel.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSCompliancePolicy This class contains compliance settings for IOS.
+type IOSCompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of IOSCompliancePolicy
+ DeviceCompliancePolicy
+ // PasscodeBlockSimple Indicates whether or not to block simple passcodes.
+ PasscodeBlockSimple *bool `json:"passcodeBlockSimple,omitempty"`
+ // PasscodeExpirationDays Number of days before the passcode expires. Valid values 1 to 65535
+ PasscodeExpirationDays *int `json:"passcodeExpirationDays,omitempty"`
+ // PasscodeMinimumLength Minimum length of passcode. Valid values 4 to 14
+ PasscodeMinimumLength *int `json:"passcodeMinimumLength,omitempty"`
+ // PasscodeMinutesOfInactivityBeforeLock Minutes of inactivity before a passcode is required.
+ PasscodeMinutesOfInactivityBeforeLock *int `json:"passcodeMinutesOfInactivityBeforeLock,omitempty"`
+ // PasscodeMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out.
+ PasscodeMinutesOfInactivityBeforeScreenTimeout *int `json:"passcodeMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasscodePreviousPasscodeBlockCount Number of previous passcodes to block. Valid values 1 to 24
+ PasscodePreviousPasscodeBlockCount *int `json:"passcodePreviousPasscodeBlockCount,omitempty"`
+ // PasscodeMinimumCharacterSetCount The number of character sets required in the password.
+ PasscodeMinimumCharacterSetCount *int `json:"passcodeMinimumCharacterSetCount,omitempty"`
+ // PasscodeRequiredType The required passcode type.
+ PasscodeRequiredType *RequiredPasswordType `json:"passcodeRequiredType,omitempty"`
+ // PasscodeRequired Indicates whether or not to require a passcode.
+ PasscodeRequired *bool `json:"passcodeRequired,omitempty"`
+ // OsMinimumVersion Minimum IOS version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum IOS version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // OsMinimumBuildVersion Minimum IOS build version.
+ OsMinimumBuildVersion *string `json:"osMinimumBuildVersion,omitempty"`
+ // OsMaximumBuildVersion Maximum IOS build version.
+ OsMaximumBuildVersion *string `json:"osMaximumBuildVersion,omitempty"`
+ // SecurityBlockJailbrokenDevices Devices must not be jailbroken or rooted.
+ SecurityBlockJailbrokenDevices *bool `json:"securityBlockJailbrokenDevices,omitempty"`
+ // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection .
+ DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"`
+ // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance.
+ DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"`
+ // ManagedEmailProfileRequired Indicates whether or not to require a managed email profile.
+ ManagedEmailProfileRequired *bool `json:"managedEmailProfileRequired,omitempty"`
+ // RestrictedApps Require the device to not have the specified apps installed. This collection can contain a maximum of 100 elements.
+ RestrictedApps []AppListItem `json:"restrictedApps,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSCustomConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSCustomConfigurationModel.go
new file mode 100644
index 00000000..67008d7b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSCustomConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSCustomConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the iosCustomConfiguration resource.
+type IOSCustomConfiguration struct {
+ // DeviceConfiguration is the base model of IOSCustomConfiguration
+ DeviceConfiguration
+ // PayloadName Name that is displayed to the user.
+ PayloadName *string `json:"payloadName,omitempty"`
+ // PayloadFileName Payload file name (*.mobileconfig | *.xml).
+ PayloadFileName *string `json:"payloadFileName,omitempty"`
+ // Payload Payload. (UTF8 encoded byte array)
+ Payload *Binary `json:"payload,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationModel.go
new file mode 100644
index 00000000..5aa3259e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSDerivedCredentialAuthenticationConfiguration iOS Derived Credential profile.
+type IOSDerivedCredentialAuthenticationConfiguration struct {
+ // DeviceConfiguration is the base model of IOSDerivedCredentialAuthenticationConfiguration
+ DeviceConfiguration
+ // DerivedCredentialSettings undocumented
+ DerivedCredentialSettings *DeviceManagementDerivedCredentialSettings `json:"derivedCredentialSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationRequest.go
new file mode 100644
index 00000000..a1ac2828
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSDerivedCredentialAuthenticationConfigurationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IOSDerivedCredentialAuthenticationConfigurationRequestBuilder is request builder for IOSDerivedCredentialAuthenticationConfiguration
+type IOSDerivedCredentialAuthenticationConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSDerivedCredentialAuthenticationConfigurationRequest
+func (b *IOSDerivedCredentialAuthenticationConfigurationRequestBuilder) Request() *IOSDerivedCredentialAuthenticationConfigurationRequest {
+ return &IOSDerivedCredentialAuthenticationConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSDerivedCredentialAuthenticationConfigurationRequest is request for IOSDerivedCredentialAuthenticationConfiguration
+type IOSDerivedCredentialAuthenticationConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSDerivedCredentialAuthenticationConfiguration
+func (r *IOSDerivedCredentialAuthenticationConfigurationRequest) Get(ctx context.Context) (resObj *IOSDerivedCredentialAuthenticationConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSDerivedCredentialAuthenticationConfiguration
+func (r *IOSDerivedCredentialAuthenticationConfigurationRequest) Update(ctx context.Context, reqObj *IOSDerivedCredentialAuthenticationConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSDerivedCredentialAuthenticationConfiguration
+func (r *IOSDerivedCredentialAuthenticationConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DerivedCredentialSettings is navigation property
+func (b *IOSDerivedCredentialAuthenticationConfigurationRequestBuilder) DerivedCredentialSettings() *DeviceManagementDerivedCredentialSettingsRequestBuilder {
+ bb := &DeviceManagementDerivedCredentialSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/derivedCredentialSettings"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSDeviceFeaturesConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSDeviceFeaturesConfigurationModel.go
new file mode 100644
index 00000000..e100307d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSDeviceFeaturesConfigurationModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSDeviceFeaturesConfiguration iOS Device Features Configuration Profile.
+type IOSDeviceFeaturesConfiguration struct {
+ // AppleDeviceFeaturesConfigurationBase is the base model of IOSDeviceFeaturesConfiguration
+ AppleDeviceFeaturesConfigurationBase
+ // AssetTagTemplate Asset tag information for the device, displayed on the login window and lock screen.
+ AssetTagTemplate *string `json:"assetTagTemplate,omitempty"`
+ // ContentFilterSettings Gets or sets iOS Web Content Filter settings, supervised mode only
+ ContentFilterSettings *IOSWebContentFilterBase `json:"contentFilterSettings,omitempty"`
+ // LockScreenFootnote A footnote displayed on the login window and lock screen. Available in iOS 9.3.1 and later.
+ LockScreenFootnote *string `json:"lockScreenFootnote,omitempty"`
+ // HomeScreenDockIcons A list of app and folders to appear on the Home Screen Dock. This collection can contain a maximum of 500 elements.
+ HomeScreenDockIcons []IOSHomeScreenItem `json:"homeScreenDockIcons,omitempty"`
+ // HomeScreenPages A list of pages on the Home Screen. This collection can contain a maximum of 500 elements.
+ HomeScreenPages []IOSHomeScreenPage `json:"homeScreenPages,omitempty"`
+ // NotificationSettings Notification settings for each bundle id. Applicable to devices in supervised mode only (iOS 9.3 and later). This collection can contain a maximum of 500 elements.
+ NotificationSettings []IOSNotificationSettings `json:"notificationSettings,omitempty"`
+ // SingleSignOnSettings The Kerberos login settings that enable apps on receiving devices to authenticate smoothly.
+ SingleSignOnSettings *IOSSingleSignOnSettings `json:"singleSignOnSettings,omitempty"`
+ // WallpaperDisplayLocation A wallpaper display location specifier.
+ WallpaperDisplayLocation *IOSWallpaperDisplayLocation `json:"wallpaperDisplayLocation,omitempty"`
+ // WallpaperImage A wallpaper image must be in either PNG or JPEG format. It requires a supervised device with iOS 8 or later version.
+ WallpaperImage *MimeContent `json:"wallpaperImage,omitempty"`
+ // SingleSignOnExtension Gets or sets a single sign-on extension profile.
+ SingleSignOnExtension *SingleSignOnExtension `json:"singleSignOnExtension,omitempty"`
+ // IdentityCertificateForClientAuthentication undocumented
+ IdentityCertificateForClientAuthentication *IOSCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"`
+ // SingleSignOnExtensionPkinitCertificate undocumented
+ SingleSignOnExtensionPkinitCertificate *IOSCertificateProfileBase `json:"singleSignOnExtensionPkinitCertificate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSDeviceFeaturesConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSDeviceFeaturesConfigurationRequest.go
new file mode 100644
index 00000000..215621a4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSDeviceFeaturesConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IOSDeviceFeaturesConfigurationRequestBuilder is request builder for IOSDeviceFeaturesConfiguration
+type IOSDeviceFeaturesConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSDeviceFeaturesConfigurationRequest
+func (b *IOSDeviceFeaturesConfigurationRequestBuilder) Request() *IOSDeviceFeaturesConfigurationRequest {
+ return &IOSDeviceFeaturesConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSDeviceFeaturesConfigurationRequest is request for IOSDeviceFeaturesConfiguration
+type IOSDeviceFeaturesConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSDeviceFeaturesConfiguration
+func (r *IOSDeviceFeaturesConfigurationRequest) Get(ctx context.Context) (resObj *IOSDeviceFeaturesConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSDeviceFeaturesConfiguration
+func (r *IOSDeviceFeaturesConfigurationRequest) Update(ctx context.Context, reqObj *IOSDeviceFeaturesConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSDeviceFeaturesConfiguration
+func (r *IOSDeviceFeaturesConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityCertificateForClientAuthentication is navigation property
+func (b *IOSDeviceFeaturesConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *IOSCertificateProfileBaseRequestBuilder {
+ bb := &IOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificateForClientAuthentication"
+ return bb
+}
+
+// SingleSignOnExtensionPkinitCertificate is navigation property
+func (b *IOSDeviceFeaturesConfigurationRequestBuilder) SingleSignOnExtensionPkinitCertificate() *IOSCertificateProfileBaseRequestBuilder {
+ bb := &IOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleSignOnExtensionPkinitCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSDeviceTypeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSDeviceTypeModel.go
new file mode 100644
index 00000000..90e17f99
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSDeviceTypeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSDeviceType undocumented
+type IOSDeviceType struct {
+ // Object is the base model of IOSDeviceType
+ Object
+ // IPad Whether the app should run on iPads.
+ IPad *bool `json:"iPad,omitempty"`
+ // IPhoneAndIPod Whether the app should run on iPhones and iPods.
+ IPhoneAndIPod *bool `json:"iPhoneAndIPod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSEasEmailProfileConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSEasEmailProfileConfigurationModel.go
new file mode 100644
index 00000000..b7132fef
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSEasEmailProfileConfigurationModel.go
@@ -0,0 +1,61 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSEasEmailProfileConfiguration By providing configurations in this profile you can instruct the native email client on iOS devices to communicate with an Exchange server and get email, contacts, calendar, reminders, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync.
+type IOSEasEmailProfileConfiguration struct {
+ // EasEmailProfileConfigurationBase is the base model of IOSEasEmailProfileConfiguration
+ EasEmailProfileConfigurationBase
+ // AccountName Account name.
+ AccountName *string `json:"accountName,omitempty"`
+ // AuthenticationMethod Authentication method for this Email profile.
+ AuthenticationMethod *EasAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // BlockMovingMessagesToOtherEmailAccounts Indicates whether or not to block moving messages to other email accounts.
+ BlockMovingMessagesToOtherEmailAccounts *bool `json:"blockMovingMessagesToOtherEmailAccounts,omitempty"`
+ // BlockSendingEmailFromThirdPartyApps Indicates whether or not to block sending email from third party apps.
+ BlockSendingEmailFromThirdPartyApps *bool `json:"blockSendingEmailFromThirdPartyApps,omitempty"`
+ // BlockSyncingRecentlyUsedEmailAddresses Indicates whether or not to block syncing recently used email addresses, for instance - when composing new email.
+ BlockSyncingRecentlyUsedEmailAddresses *bool `json:"blockSyncingRecentlyUsedEmailAddresses,omitempty"`
+ // DurationOfEmailToSync Duration of time email should be synced back to.
+ DurationOfEmailToSync *EmailSyncDuration `json:"durationOfEmailToSync,omitempty"`
+ // EmailAddressSource Email attribute that is picked from AAD and injected into this profile before installing on the device.
+ EmailAddressSource *UserEmailSource `json:"emailAddressSource,omitempty"`
+ // EasServices Exchange data to sync.
+ EasServices *EasServices `json:"easServices,omitempty"`
+ // EasServicesUserOverrideEnabled Allow users to change sync settings.
+ EasServicesUserOverrideEnabled *bool `json:"easServicesUserOverrideEnabled,omitempty"`
+ // HostName Exchange location that (URL) that the native mail app connects to.
+ HostName *string `json:"hostName,omitempty"`
+ // RequireSmime Indicates whether or not to use S/MIME certificate.
+ RequireSmime *bool `json:"requireSmime,omitempty"`
+ // SmimeEnablePerMessageSwitch Indicates whether or not to allow unencrypted emails.
+ SmimeEnablePerMessageSwitch *bool `json:"smimeEnablePerMessageSwitch,omitempty"`
+ // SmimeEncryptByDefaultEnabled If set to true S/MIME encryption is enabled by default.
+ SmimeEncryptByDefaultEnabled *bool `json:"smimeEncryptByDefaultEnabled,omitempty"`
+ // SmimeSigningEnabled If set to true S/MIME signing is enabled for this account
+ SmimeSigningEnabled *bool `json:"smimeSigningEnabled,omitempty"`
+ // SmimeSigningUserOverrideEnabled If set to true, the user can toggle S/MIME signing on or off.
+ SmimeSigningUserOverrideEnabled *bool `json:"smimeSigningUserOverrideEnabled,omitempty"`
+ // SmimeEncryptByDefaultUserOverrideEnabled If set to true, the user can toggle the encryption by default setting.
+ SmimeEncryptByDefaultUserOverrideEnabled *bool `json:"smimeEncryptByDefaultUserOverrideEnabled,omitempty"`
+ // SmimeSigningCertificateUserOverrideEnabled If set to true, the user can select the signing identity.
+ SmimeSigningCertificateUserOverrideEnabled *bool `json:"smimeSigningCertificateUserOverrideEnabled,omitempty"`
+ // SmimeEncryptionCertificateUserOverrideEnabled If set to true the user can select the S/MIME encryption identity.
+ SmimeEncryptionCertificateUserOverrideEnabled *bool `json:"smimeEncryptionCertificateUserOverrideEnabled,omitempty"`
+ // RequireSsl Indicates whether or not to use SSL.
+ RequireSsl *bool `json:"requireSsl,omitempty"`
+ // UseOAuth Specifies whether the connection should use OAuth for authentication.
+ UseOAuth *bool `json:"useOAuth,omitempty"`
+ // SigningCertificateType Signing Certificate type for this Email profile.
+ SigningCertificateType *EmailCertificateType `json:"signingCertificateType,omitempty"`
+ // EncryptionCertificateType Encryption Certificate type for this Email profile.
+ EncryptionCertificateType *EmailCertificateType `json:"encryptionCertificateType,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *IOSCertificateProfileBase `json:"identityCertificate,omitempty"`
+ // SmimeSigningCertificate undocumented
+ SmimeSigningCertificate *IOSCertificateProfile `json:"smimeSigningCertificate,omitempty"`
+ // SmimeEncryptionCertificate undocumented
+ SmimeEncryptionCertificate *IOSCertificateProfile `json:"smimeEncryptionCertificate,omitempty"`
+ // DerivedCredentialSettings undocumented
+ DerivedCredentialSettings *DeviceManagementDerivedCredentialSettings `json:"derivedCredentialSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSEasEmailProfileConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSEasEmailProfileConfigurationRequest.go
new file mode 100644
index 00000000..b94a0140
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSEasEmailProfileConfigurationRequest.go
@@ -0,0 +1,66 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IOSEasEmailProfileConfigurationRequestBuilder is request builder for IOSEasEmailProfileConfiguration
+type IOSEasEmailProfileConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSEasEmailProfileConfigurationRequest
+func (b *IOSEasEmailProfileConfigurationRequestBuilder) Request() *IOSEasEmailProfileConfigurationRequest {
+ return &IOSEasEmailProfileConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSEasEmailProfileConfigurationRequest is request for IOSEasEmailProfileConfiguration
+type IOSEasEmailProfileConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSEasEmailProfileConfiguration
+func (r *IOSEasEmailProfileConfigurationRequest) Get(ctx context.Context) (resObj *IOSEasEmailProfileConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSEasEmailProfileConfiguration
+func (r *IOSEasEmailProfileConfigurationRequest) Update(ctx context.Context, reqObj *IOSEasEmailProfileConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSEasEmailProfileConfiguration
+func (r *IOSEasEmailProfileConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DerivedCredentialSettings is navigation property
+func (b *IOSEasEmailProfileConfigurationRequestBuilder) DerivedCredentialSettings() *DeviceManagementDerivedCredentialSettingsRequestBuilder {
+ bb := &DeviceManagementDerivedCredentialSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/derivedCredentialSettings"
+ return bb
+}
+
+// IdentityCertificate is navigation property
+func (b *IOSEasEmailProfileConfigurationRequestBuilder) IdentityCertificate() *IOSCertificateProfileBaseRequestBuilder {
+ bb := &IOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
+
+// SmimeEncryptionCertificate is navigation property
+func (b *IOSEasEmailProfileConfigurationRequestBuilder) SmimeEncryptionCertificate() *IOSCertificateProfileRequestBuilder {
+ bb := &IOSCertificateProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/smimeEncryptionCertificate"
+ return bb
+}
+
+// SmimeSigningCertificate is navigation property
+func (b *IOSEasEmailProfileConfigurationRequestBuilder) SmimeSigningCertificate() *IOSCertificateProfileRequestBuilder {
+ bb := &IOSCertificateProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/smimeSigningCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSEduCertificateSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSEduCertificateSettingsModel.go
new file mode 100644
index 00000000..2eb8a137
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSEduCertificateSettingsModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSEduCertificateSettings undocumented
+type IOSEduCertificateSettings struct {
+ // Object is the base model of IOSEduCertificateSettings
+ Object
+ // TrustedRootCertificate Trusted Root Certificate.
+ TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"`
+ // CertFileName File name to display in UI.
+ CertFileName *string `json:"certFileName,omitempty"`
+ // CertificationAuthority PKCS Certification Authority.
+ CertificationAuthority *string `json:"certificationAuthority,omitempty"`
+ // CertificationAuthorityName PKCS Certification Authority Name.
+ CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"`
+ // CertificateTemplateName PKCS Certificate Template Name.
+ CertificateTemplateName *string `json:"certificateTemplateName,omitempty"`
+ // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99
+ RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
+ // CertificateValidityPeriodValue Value for the Certificate Validity Period.
+ CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
+ // CertificateValidityPeriodScale Scale for the Certificate Validity Period.
+ CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSEduDeviceConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSEduDeviceConfigurationModel.go
new file mode 100644
index 00000000..4619fe1f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSEduDeviceConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSEduDeviceConfiguration iOS Education device configuration
+type IOSEduDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of IOSEduDeviceConfiguration
+ DeviceConfiguration
+ // TeacherCertificateSettings The Trusted Root and PFX certificates for Teacher
+ TeacherCertificateSettings *IOSEduCertificateSettings `json:"teacherCertificateSettings,omitempty"`
+ // StudentCertificateSettings The Trusted Root and PFX certificates for Student
+ StudentCertificateSettings *IOSEduCertificateSettings `json:"studentCertificateSettings,omitempty"`
+ // DeviceCertificateSettings The Trusted Root and PFX certificates for Device
+ DeviceCertificateSettings *IOSEduCertificateSettings `json:"deviceCertificateSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSEducationDeviceConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSEducationDeviceConfigurationModel.go
new file mode 100644
index 00000000..26d16837
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSEducationDeviceConfigurationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSEducationDeviceConfiguration iOS Education configuration profile
+type IOSEducationDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of IOSEducationDeviceConfiguration
+ DeviceConfiguration
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSEnterpriseWiFiConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSEnterpriseWiFiConfigurationModel.go
new file mode 100644
index 00000000..7904716f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSEnterpriseWiFiConfigurationModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSEnterpriseWiFiConfiguration By providing the configurations in this profile you can instruct the iOS device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user.
+type IOSEnterpriseWiFiConfiguration struct {
+ // IOSWiFiConfiguration is the base model of IOSEnterpriseWiFiConfiguration
+ IOSWiFiConfiguration
+ // EapType Extensible Authentication Protocol (EAP). Indicates the type of EAP protocol set on the Wi-Fi endpoint (router).
+ EapType *EapType `json:"eapType,omitempty"`
+ // EapFastConfiguration EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type.
+ EapFastConfiguration *EapFastConfiguration `json:"eapFastConfiguration,omitempty"`
+ // TrustedServerCertificateNames Trusted server certificate names when EAP Type is configured to EAP-TLS/TTLS/FAST or PEAP. This is the common name used in the certificates issued by your trusted certificate authority (CA). If you provide this information, you can bypass the dynamic trust dialog that is displayed on end users' devices when they connect to this Wi-Fi network.
+ TrustedServerCertificateNames []string `json:"trustedServerCertificateNames,omitempty"`
+ // AuthenticationMethod Authentication Method when EAP Type is configured to PEAP or EAP-TTLS.
+ AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"`
+ // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP - TTLS, EAP - FAST or PEAP. This property masks usernames with the text you enter. For example, if you use 'anonymous', each user that authenticates with this Wi-Fi connection using their real username is displayed as 'anonymous'.
+ OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"`
+ // UsernameFormatString Username format string used to build the username to connect to wifi
+ UsernameFormatString *string `json:"usernameFormatString,omitempty"`
+ // PasswordFormatString Password format string used to build the password to connect to wifi
+ PasswordFormatString *string `json:"passwordFormatString,omitempty"`
+ // RootCertificatesForServerValidation undocumented
+ RootCertificatesForServerValidation []IOSTrustedRootCertificate `json:"rootCertificatesForServerValidation,omitempty"`
+ // IdentityCertificateForClientAuthentication undocumented
+ IdentityCertificateForClientAuthentication *IOSCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"`
+ // DerivedCredentialSettings undocumented
+ DerivedCredentialSettings *DeviceManagementDerivedCredentialSettings `json:"derivedCredentialSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSEnterpriseWiFiConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSEnterpriseWiFiConfigurationRequest.go
new file mode 100644
index 00000000..f06ade0b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSEnterpriseWiFiConfigurationRequest.go
@@ -0,0 +1,153 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// IOSEnterpriseWiFiConfigurationRequestBuilder is request builder for IOSEnterpriseWiFiConfiguration
+type IOSEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSEnterpriseWiFiConfigurationRequest
+func (b *IOSEnterpriseWiFiConfigurationRequestBuilder) Request() *IOSEnterpriseWiFiConfigurationRequest {
+ return &IOSEnterpriseWiFiConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSEnterpriseWiFiConfigurationRequest is request for IOSEnterpriseWiFiConfiguration
+type IOSEnterpriseWiFiConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSEnterpriseWiFiConfiguration
+func (r *IOSEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *IOSEnterpriseWiFiConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSEnterpriseWiFiConfiguration
+func (r *IOSEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *IOSEnterpriseWiFiConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSEnterpriseWiFiConfiguration
+func (r *IOSEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DerivedCredentialSettings is navigation property
+func (b *IOSEnterpriseWiFiConfigurationRequestBuilder) DerivedCredentialSettings() *DeviceManagementDerivedCredentialSettingsRequestBuilder {
+ bb := &DeviceManagementDerivedCredentialSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/derivedCredentialSettings"
+ return bb
+}
+
+// IdentityCertificateForClientAuthentication is navigation property
+func (b *IOSEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *IOSCertificateProfileBaseRequestBuilder {
+ bb := &IOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificateForClientAuthentication"
+ return bb
+}
+
+// RootCertificatesForServerValidation returns request builder for IOSTrustedRootCertificate collection
+func (b *IOSEnterpriseWiFiConfigurationRequestBuilder) RootCertificatesForServerValidation() *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder {
+ bb := &IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificatesForServerValidation"
+ return bb
+}
+
+// IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder is request builder for IOSTrustedRootCertificate collection
+type IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IOSTrustedRootCertificate collection
+func (b *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder) Request() *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest {
+ return &IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IOSTrustedRootCertificate item
+func (b *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder) ID(id string) *IOSTrustedRootCertificateRequestBuilder {
+ bb := &IOSTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest is request for IOSTrustedRootCertificate collection
+type IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IOSTrustedRootCertificate collection
+func (r *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]IOSTrustedRootCertificate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IOSTrustedRootCertificate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IOSTrustedRootCertificate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IOSTrustedRootCertificate collection
+func (r *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest) Get(ctx context.Context) ([]IOSTrustedRootCertificate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for IOSTrustedRootCertificate collection
+func (r *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest) Add(ctx context.Context, reqObj *IOSTrustedRootCertificate) (resObj *IOSTrustedRootCertificate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSGeneralDeviceConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSGeneralDeviceConfigurationModel.go
new file mode 100644
index 00000000..b6ac9880
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSGeneralDeviceConfigurationModel.go
@@ -0,0 +1,359 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSGeneralDeviceConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the iosGeneralDeviceConfiguration resource.
+type IOSGeneralDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of IOSGeneralDeviceConfiguration
+ DeviceConfiguration
+ // AccountBlockModification Indicates whether or not to allow account modification when the device is in supervised mode.
+ AccountBlockModification *bool `json:"accountBlockModification,omitempty"`
+ // ActivationLockAllowWhenSupervised Indicates whether or not to allow activation lock when the device is in the supervised mode.
+ ActivationLockAllowWhenSupervised *bool `json:"activationLockAllowWhenSupervised,omitempty"`
+ // AirDropBlocked Indicates whether or not to allow AirDrop when the device is in supervised mode.
+ AirDropBlocked *bool `json:"airDropBlocked,omitempty"`
+ // AirDropForceUnmanagedDropTarget Indicates whether or not to cause AirDrop to be considered an unmanaged drop target (iOS 9.0 and later).
+ AirDropForceUnmanagedDropTarget *bool `json:"airDropForceUnmanagedDropTarget,omitempty"`
+ // AirPlayForcePairingPasswordForOutgoingRequests Indicates whether or not to enforce all devices receiving AirPlay requests from this device to use a pairing password.
+ AirPlayForcePairingPasswordForOutgoingRequests *bool `json:"airPlayForcePairingPasswordForOutgoingRequests,omitempty"`
+ // AppleWatchBlockPairing Indicates whether or not to allow Apple Watch pairing when the device is in supervised mode (iOS 9.0 and later).
+ AppleWatchBlockPairing *bool `json:"appleWatchBlockPairing,omitempty"`
+ // AppleWatchForceWristDetection Indicates whether or not to force a paired Apple Watch to use Wrist Detection (iOS 8.2 and later).
+ AppleWatchForceWristDetection *bool `json:"appleWatchForceWristDetection,omitempty"`
+ // AppleNewsBlocked Indicates whether or not to block the user from using News when the device is in supervised mode (iOS 9.0 and later).
+ AppleNewsBlocked *bool `json:"appleNewsBlocked,omitempty"`
+ // AppsSingleAppModeList Gets or sets the list of iOS apps allowed to autonomously enter Single App Mode. Supervised only. iOS 7.0 and later. This collection can contain a maximum of 500 elements.
+ AppsSingleAppModeList []AppListItem `json:"appsSingleAppModeList,omitempty"`
+ // AppsVisibilityList List of apps in the visibility list (either visible/launchable apps list or hidden/unlaunchable apps list, controlled by AppsVisibilityListType) (iOS 9.3 and later). This collection can contain a maximum of 10000 elements.
+ AppsVisibilityList []AppListItem `json:"appsVisibilityList,omitempty"`
+ // AppsVisibilityListType Type of list that is in the AppsVisibilityList.
+ AppsVisibilityListType *AppListType `json:"appsVisibilityListType,omitempty"`
+ // AppStoreBlockAutomaticDownloads Indicates whether or not to block the automatic downloading of apps purchased on other devices when the device is in supervised mode (iOS 9.0 and later).
+ AppStoreBlockAutomaticDownloads *bool `json:"appStoreBlockAutomaticDownloads,omitempty"`
+ // AppStoreBlocked Indicates whether or not to block the user from using the App Store. Requires a supervised device for iOS 13 and later.
+ AppStoreBlocked *bool `json:"appStoreBlocked,omitempty"`
+ // AppStoreBlockInAppPurchases Indicates whether or not to block the user from making in app purchases.
+ AppStoreBlockInAppPurchases *bool `json:"appStoreBlockInAppPurchases,omitempty"`
+ // AppStoreBlockUIAppInstallation Indicates whether or not to block the App Store app, not restricting installation through Host apps. Applies to supervised mode only (iOS 9.0 and later).
+ AppStoreBlockUIAppInstallation *bool `json:"appStoreBlockUIAppInstallation,omitempty"`
+ // AppStoreRequirePassword Indicates whether or not to require a password when using the app store.
+ AppStoreRequirePassword *bool `json:"appStoreRequirePassword,omitempty"`
+ // AutoFillForceAuthentication Indicates whether or not to force user authentication before autofilling passwords and credit card information in Safari and other apps on supervised devices.
+ AutoFillForceAuthentication *bool `json:"autoFillForceAuthentication,omitempty"`
+ // BluetoothBlockModification Indicates whether or not to allow modification of Bluetooth settings when the device is in supervised mode (iOS 10.0 and later).
+ BluetoothBlockModification *bool `json:"bluetoothBlockModification,omitempty"`
+ // CameraBlocked Indicates whether or not to block the user from accessing the camera of the device. Requires a supervised device for iOS 13 and later.
+ CameraBlocked *bool `json:"cameraBlocked,omitempty"`
+ // CellularBlockDataRoaming Indicates whether or not to block data roaming.
+ CellularBlockDataRoaming *bool `json:"cellularBlockDataRoaming,omitempty"`
+ // CellularBlockGlobalBackgroundFetchWhileRoaming Indicates whether or not to block global background fetch while roaming.
+ CellularBlockGlobalBackgroundFetchWhileRoaming *bool `json:"cellularBlockGlobalBackgroundFetchWhileRoaming,omitempty"`
+ // CellularBlockPerAppDataModification Indicates whether or not to allow changes to cellular app data usage settings when the device is in supervised mode.
+ CellularBlockPerAppDataModification *bool `json:"cellularBlockPerAppDataModification,omitempty"`
+ // CellularBlockPersonalHotspot Indicates whether or not to block Personal Hotspot.
+ CellularBlockPersonalHotspot *bool `json:"cellularBlockPersonalHotspot,omitempty"`
+ // CellularBlockPlanModification Indicates whether or not to allow users to change the settings of the cellular plan on a supervised device.
+ CellularBlockPlanModification *bool `json:"cellularBlockPlanModification,omitempty"`
+ // CellularBlockVoiceRoaming Indicates whether or not to block voice roaming.
+ CellularBlockVoiceRoaming *bool `json:"cellularBlockVoiceRoaming,omitempty"`
+ // CertificatesBlockUntrustedTLSCertificates Indicates whether or not to block untrusted TLS certificates.
+ CertificatesBlockUntrustedTLSCertificates *bool `json:"certificatesBlockUntrustedTlsCertificates,omitempty"`
+ // ClassroomAppBlockRemoteScreenObservation Indicates whether or not to allow remote screen observation by Classroom app when the device is in supervised mode (iOS 9.3 and later).
+ ClassroomAppBlockRemoteScreenObservation *bool `json:"classroomAppBlockRemoteScreenObservation,omitempty"`
+ // ClassroomAppForceUnpromptedScreenObservation Indicates whether or not to automatically give permission to the teacher of a managed course on the Classroom app to view a student's screen without prompting when the device is in supervised mode.
+ ClassroomAppForceUnpromptedScreenObservation *bool `json:"classroomAppForceUnpromptedScreenObservation,omitempty"`
+ // ClassroomForceAutomaticallyJoinClasses Indicates whether or not to automatically give permission to the teacher's requests, without prompting the student, when the device is in supervised mode.
+ ClassroomForceAutomaticallyJoinClasses *bool `json:"classroomForceAutomaticallyJoinClasses,omitempty"`
+ // ClassroomForceUnpromptedAppAndDeviceLock Indicates whether or not to allow the teacher to lock apps or the device without prompting the student. Supervised only.
+ ClassroomForceUnpromptedAppAndDeviceLock *bool `json:"classroomForceUnpromptedAppAndDeviceLock,omitempty"`
+ // CompliantAppsList List of apps in the compliance (either allow list or block list, controlled by CompliantAppListType). This collection can contain a maximum of 10000 elements.
+ CompliantAppsList []AppListItem `json:"compliantAppsList,omitempty"`
+ // CompliantAppListType List that is in the AppComplianceList.
+ CompliantAppListType *AppListType `json:"compliantAppListType,omitempty"`
+ // ConfigurationProfileBlockChanges Indicates whether or not to block the user from installing configuration profiles and certificates interactively when the device is in supervised mode.
+ ConfigurationProfileBlockChanges *bool `json:"configurationProfileBlockChanges,omitempty"`
+ // DefinitionLookupBlocked Indicates whether or not to block definition lookup when the device is in supervised mode (iOS 8.1.3 and later ).
+ DefinitionLookupBlocked *bool `json:"definitionLookupBlocked,omitempty"`
+ // DeviceBlockEnableRestrictions Indicates whether or not to allow the user to enables restrictions in the device settings when the device is in supervised mode.
+ DeviceBlockEnableRestrictions *bool `json:"deviceBlockEnableRestrictions,omitempty"`
+ // DeviceBlockEraseContentAndSettings Indicates whether or not to allow the use of the 'Erase all content and settings' option on the device when the device is in supervised mode.
+ DeviceBlockEraseContentAndSettings *bool `json:"deviceBlockEraseContentAndSettings,omitempty"`
+ // DeviceBlockNameModification Indicates whether or not to allow device name modification when the device is in supervised mode (iOS 9.0 and later).
+ DeviceBlockNameModification *bool `json:"deviceBlockNameModification,omitempty"`
+ // DiagnosticDataBlockSubmission Indicates whether or not to block diagnostic data submission.
+ DiagnosticDataBlockSubmission *bool `json:"diagnosticDataBlockSubmission,omitempty"`
+ // DiagnosticDataBlockSubmissionModification Indicates whether or not to allow diagnostics submission settings modification when the device is in supervised mode (iOS 9.3.2 and later).
+ DiagnosticDataBlockSubmissionModification *bool `json:"diagnosticDataBlockSubmissionModification,omitempty"`
+ // DocumentsBlockManagedDocumentsInUnmanagedApps Indicates whether or not to block the user from viewing managed documents in unmanaged apps.
+ DocumentsBlockManagedDocumentsInUnmanagedApps *bool `json:"documentsBlockManagedDocumentsInUnmanagedApps,omitempty"`
+ // DocumentsBlockUnmanagedDocumentsInManagedApps Indicates whether or not to block the user from viewing unmanaged documents in managed apps.
+ DocumentsBlockUnmanagedDocumentsInManagedApps *bool `json:"documentsBlockUnmanagedDocumentsInManagedApps,omitempty"`
+ // EmailInDomainSuffixes An email address lacking a suffix that matches any of these strings will be considered out-of-domain.
+ EmailInDomainSuffixes []string `json:"emailInDomainSuffixes,omitempty"`
+ // EnterpriseAppBlockTrust Indicates whether or not to block the user from trusting an enterprise app.
+ EnterpriseAppBlockTrust *bool `json:"enterpriseAppBlockTrust,omitempty"`
+ // EnterpriseAppBlockTrustModification Indicates whether or not to block the user from modifying the enterprise app trust settings.
+ EnterpriseAppBlockTrustModification *bool `json:"enterpriseAppBlockTrustModification,omitempty"`
+ // EsimBlockModification Indicates whether or not to allow the addition or removal of cellular plans on the eSIM of a supervised device.
+ EsimBlockModification *bool `json:"esimBlockModification,omitempty"`
+ // FaceTimeBlocked Indicates whether or not to block the user from using FaceTime. Requires a supervised device for iOS 13 and later.
+ FaceTimeBlocked *bool `json:"faceTimeBlocked,omitempty"`
+ // FindMyFriendsBlocked Indicates whether or not to block changes to Find My Friends when the device is in supervised mode.
+ FindMyFriendsBlocked *bool `json:"findMyFriendsBlocked,omitempty"`
+ // GamingBlockGameCenterFriends Indicates whether or not to block the user from having friends in Game Center. Requires a supervised device for iOS 13 and later.
+ GamingBlockGameCenterFriends *bool `json:"gamingBlockGameCenterFriends,omitempty"`
+ // GamingBlockMultiplayer Indicates whether or not to block the user from using multiplayer gaming. Requires a supervised device for iOS 13 and later.
+ GamingBlockMultiplayer *bool `json:"gamingBlockMultiplayer,omitempty"`
+ // GameCenterBlocked Indicates whether or not to block the user from using Game Center when the device is in supervised mode.
+ GameCenterBlocked *bool `json:"gameCenterBlocked,omitempty"`
+ // HostPairingBlocked indicates whether or not to allow host pairing to control the devices an iOS device can pair with when the iOS device is in supervised mode.
+ HostPairingBlocked *bool `json:"hostPairingBlocked,omitempty"`
+ // IBooksStoreBlocked Indicates whether or not to block the user from using the iBooks Store when the device is in supervised mode.
+ IBooksStoreBlocked *bool `json:"iBooksStoreBlocked,omitempty"`
+ // IBooksStoreBlockErotica Indicates whether or not to block the user from downloading media from the iBookstore that has been tagged as erotica.
+ IBooksStoreBlockErotica *bool `json:"iBooksStoreBlockErotica,omitempty"`
+ // ICloudBlockActivityContinuation Indicates whether or not to block the user from continuing work they started on iOS device to another iOS or macOS device.
+ ICloudBlockActivityContinuation *bool `json:"iCloudBlockActivityContinuation,omitempty"`
+ // ICloudBlockBackup Indicates whether or not to block iCloud backup. Requires a supervised device for iOS 13 and later.
+ ICloudBlockBackup *bool `json:"iCloudBlockBackup,omitempty"`
+ // ICloudBlockDocumentSync Indicates whether or not to block iCloud document sync. Requires a supervised device for iOS 13 and later.
+ ICloudBlockDocumentSync *bool `json:"iCloudBlockDocumentSync,omitempty"`
+ // ICloudBlockManagedAppsSync Indicates whether or not to block Managed Apps Cloud Sync.
+ ICloudBlockManagedAppsSync *bool `json:"iCloudBlockManagedAppsSync,omitempty"`
+ // ICloudBlockPhotoLibrary Indicates whether or not to block iCloud Photo Library.
+ ICloudBlockPhotoLibrary *bool `json:"iCloudBlockPhotoLibrary,omitempty"`
+ // ICloudBlockPhotoStreamSync Indicates whether or not to block iCloud Photo Stream Sync.
+ ICloudBlockPhotoStreamSync *bool `json:"iCloudBlockPhotoStreamSync,omitempty"`
+ // ICloudBlockSharedPhotoStream Indicates whether or not to block Shared Photo Stream.
+ ICloudBlockSharedPhotoStream *bool `json:"iCloudBlockSharedPhotoStream,omitempty"`
+ // ICloudRequireEncryptedBackup Indicates whether or not to require backups to iCloud be encrypted.
+ ICloudRequireEncryptedBackup *bool `json:"iCloudRequireEncryptedBackup,omitempty"`
+ // ITunesBlockExplicitContent Indicates whether or not to block the user from accessing explicit content in iTunes and the App Store. Requires a supervised device for iOS 13 and later.
+ ITunesBlockExplicitContent *bool `json:"iTunesBlockExplicitContent,omitempty"`
+ // ITunesBlockMusicService Indicates whether or not to block Music service and revert Music app to classic mode when the device is in supervised mode (iOS 9.3 and later and macOS 10.12 and later).
+ ITunesBlockMusicService *bool `json:"iTunesBlockMusicService,omitempty"`
+ // ITunesBlockRadio Indicates whether or not to block the user from using iTunes Radio when the device is in supervised mode (iOS 9.3 and later).
+ ITunesBlockRadio *bool `json:"iTunesBlockRadio,omitempty"`
+ // KeyboardBlockAutoCorrect Indicates whether or not to block keyboard auto-correction when the device is in supervised mode (iOS 8.1.3 and later).
+ KeyboardBlockAutoCorrect *bool `json:"keyboardBlockAutoCorrect,omitempty"`
+ // KeyboardBlockDictation Indicates whether or not to block the user from using dictation input when the device is in supervised mode.
+ KeyboardBlockDictation *bool `json:"keyboardBlockDictation,omitempty"`
+ // KeyboardBlockPredictive Indicates whether or not to block predictive keyboards when device is in supervised mode (iOS 8.1.3 and later).
+ KeyboardBlockPredictive *bool `json:"keyboardBlockPredictive,omitempty"`
+ // KeyboardBlockShortcuts Indicates whether or not to block keyboard shortcuts when the device is in supervised mode (iOS 9.0 and later).
+ KeyboardBlockShortcuts *bool `json:"keyboardBlockShortcuts,omitempty"`
+ // KeyboardBlockSpellCheck Indicates whether or not to block keyboard spell-checking when the device is in supervised mode (iOS 8.1.3 and later).
+ KeyboardBlockSpellCheck *bool `json:"keyboardBlockSpellCheck,omitempty"`
+ // KioskModeAllowAssistiveSpeak Indicates whether or not to allow assistive speak while in kiosk mode.
+ KioskModeAllowAssistiveSpeak *bool `json:"kioskModeAllowAssistiveSpeak,omitempty"`
+ // KioskModeAllowAssistiveTouchSettings Indicates whether or not to allow access to the Assistive Touch Settings while in kiosk mode.
+ KioskModeAllowAssistiveTouchSettings *bool `json:"kioskModeAllowAssistiveTouchSettings,omitempty"`
+ // KioskModeAllowAutoLock Indicates whether or not to allow device auto lock while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockAutoLock instead.
+ KioskModeAllowAutoLock *bool `json:"kioskModeAllowAutoLock,omitempty"`
+ // KioskModeBlockAutoLock Indicates whether or not to block device auto lock while in kiosk mode.
+ KioskModeBlockAutoLock *bool `json:"kioskModeBlockAutoLock,omitempty"`
+ // KioskModeAllowColorInversionSettings Indicates whether or not to allow access to the Color Inversion Settings while in kiosk mode.
+ KioskModeAllowColorInversionSettings *bool `json:"kioskModeAllowColorInversionSettings,omitempty"`
+ // KioskModeAllowRingerSwitch Indicates whether or not to allow use of the ringer switch while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockRingerSwitch instead.
+ KioskModeAllowRingerSwitch *bool `json:"kioskModeAllowRingerSwitch,omitempty"`
+ // KioskModeBlockRingerSwitch Indicates whether or not to block use of the ringer switch while in kiosk mode.
+ KioskModeBlockRingerSwitch *bool `json:"kioskModeBlockRingerSwitch,omitempty"`
+ // KioskModeAllowScreenRotation Indicates whether or not to allow screen rotation while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockScreenRotation instead.
+ KioskModeAllowScreenRotation *bool `json:"kioskModeAllowScreenRotation,omitempty"`
+ // KioskModeBlockScreenRotation Indicates whether or not to block screen rotation while in kiosk mode.
+ KioskModeBlockScreenRotation *bool `json:"kioskModeBlockScreenRotation,omitempty"`
+ // KioskModeAllowSleepButton Indicates whether or not to allow use of the sleep button while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockSleepButton instead.
+ KioskModeAllowSleepButton *bool `json:"kioskModeAllowSleepButton,omitempty"`
+ // KioskModeBlockSleepButton Indicates whether or not to block use of the sleep button while in kiosk mode.
+ KioskModeBlockSleepButton *bool `json:"kioskModeBlockSleepButton,omitempty"`
+ // KioskModeAllowTouchscreen Indicates whether or not to allow use of the touchscreen while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockTouchscreen instead.
+ KioskModeAllowTouchscreen *bool `json:"kioskModeAllowTouchscreen,omitempty"`
+ // KioskModeBlockTouchscreen Indicates whether or not to block use of the touchscreen while in kiosk mode.
+ KioskModeBlockTouchscreen *bool `json:"kioskModeBlockTouchscreen,omitempty"`
+ // KioskModeEnableVoiceControl Indicates whether or not to enable voice control in kiosk mode.
+ KioskModeEnableVoiceControl *bool `json:"kioskModeEnableVoiceControl,omitempty"`
+ // KioskModeAllowVoiceControlModification Indicates whether or not to allow the user to toggle voice control in kiosk mode.
+ KioskModeAllowVoiceControlModification *bool `json:"kioskModeAllowVoiceControlModification,omitempty"`
+ // KioskModeAllowVoiceOverSettings Indicates whether or not to allow access to the voice over settings while in kiosk mode.
+ KioskModeAllowVoiceOverSettings *bool `json:"kioskModeAllowVoiceOverSettings,omitempty"`
+ // KioskModeAllowVolumeButtons Indicates whether or not to allow use of the volume buttons while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockVolumeButtons instead.
+ KioskModeAllowVolumeButtons *bool `json:"kioskModeAllowVolumeButtons,omitempty"`
+ // KioskModeBlockVolumeButtons Indicates whether or not to block the volume buttons while in Kiosk Mode.
+ KioskModeBlockVolumeButtons *bool `json:"kioskModeBlockVolumeButtons,omitempty"`
+ // KioskModeAllowZoomSettings Indicates whether or not to allow access to the zoom settings while in kiosk mode.
+ KioskModeAllowZoomSettings *bool `json:"kioskModeAllowZoomSettings,omitempty"`
+ // KioskModeAppStoreURL URL in the app store to the app to use for kiosk mode. Use if KioskModeManagedAppId is not known.
+ KioskModeAppStoreURL *string `json:"kioskModeAppStoreUrl,omitempty"`
+ // KioskModeBuiltInAppID ID for built-in apps to use for kiosk mode. Used when KioskModeManagedAppId and KioskModeAppStoreUrl are not set.
+ KioskModeBuiltInAppID *string `json:"kioskModeBuiltInAppId,omitempty"`
+ // KioskModeRequireAssistiveTouch Indicates whether or not to require assistive touch while in kiosk mode.
+ KioskModeRequireAssistiveTouch *bool `json:"kioskModeRequireAssistiveTouch,omitempty"`
+ // KioskModeRequireColorInversion Indicates whether or not to require color inversion while in kiosk mode.
+ KioskModeRequireColorInversion *bool `json:"kioskModeRequireColorInversion,omitempty"`
+ // KioskModeRequireMonoAudio Indicates whether or not to require mono audio while in kiosk mode.
+ KioskModeRequireMonoAudio *bool `json:"kioskModeRequireMonoAudio,omitempty"`
+ // KioskModeRequireVoiceOver Indicates whether or not to require voice over while in kiosk mode.
+ KioskModeRequireVoiceOver *bool `json:"kioskModeRequireVoiceOver,omitempty"`
+ // KioskModeRequireZoom Indicates whether or not to require zoom while in kiosk mode.
+ KioskModeRequireZoom *bool `json:"kioskModeRequireZoom,omitempty"`
+ // KioskModeManagedAppID Managed app id of the app to use for kiosk mode. If KioskModeManagedAppId is specified then KioskModeAppStoreUrl will be ignored.
+ KioskModeManagedAppID *string `json:"kioskModeManagedAppId,omitempty"`
+ // LockScreenBlockControlCenter Indicates whether or not to block the user from using control center on the lock screen.
+ LockScreenBlockControlCenter *bool `json:"lockScreenBlockControlCenter,omitempty"`
+ // LockScreenBlockNotificationView Indicates whether or not to block the user from using the notification view on the lock screen.
+ LockScreenBlockNotificationView *bool `json:"lockScreenBlockNotificationView,omitempty"`
+ // LockScreenBlockPassbook Indicates whether or not to block the user from using passbook when the device is locked.
+ LockScreenBlockPassbook *bool `json:"lockScreenBlockPassbook,omitempty"`
+ // LockScreenBlockTodayView Indicates whether or not to block the user from using the Today View on the lock screen.
+ LockScreenBlockTodayView *bool `json:"lockScreenBlockTodayView,omitempty"`
+ // MediaContentRatingAustralia Media content rating settings for Australia
+ MediaContentRatingAustralia *MediaContentRatingAustralia `json:"mediaContentRatingAustralia,omitempty"`
+ // MediaContentRatingCanada Media content rating settings for Canada
+ MediaContentRatingCanada *MediaContentRatingCanada `json:"mediaContentRatingCanada,omitempty"`
+ // MediaContentRatingFrance Media content rating settings for France
+ MediaContentRatingFrance *MediaContentRatingFrance `json:"mediaContentRatingFrance,omitempty"`
+ // MediaContentRatingGermany Media content rating settings for Germany
+ MediaContentRatingGermany *MediaContentRatingGermany `json:"mediaContentRatingGermany,omitempty"`
+ // MediaContentRatingIreland Media content rating settings for Ireland
+ MediaContentRatingIreland *MediaContentRatingIreland `json:"mediaContentRatingIreland,omitempty"`
+ // MediaContentRatingJapan Media content rating settings for Japan
+ MediaContentRatingJapan *MediaContentRatingJapan `json:"mediaContentRatingJapan,omitempty"`
+ // MediaContentRatingNewZealand Media content rating settings for New Zealand
+ MediaContentRatingNewZealand *MediaContentRatingNewZealand `json:"mediaContentRatingNewZealand,omitempty"`
+ // MediaContentRatingUnitedKingdom Media content rating settings for United Kingdom
+ MediaContentRatingUnitedKingdom *MediaContentRatingUnitedKingdom `json:"mediaContentRatingUnitedKingdom,omitempty"`
+ // MediaContentRatingUnitedStates Media content rating settings for United States
+ MediaContentRatingUnitedStates *MediaContentRatingUnitedStates `json:"mediaContentRatingUnitedStates,omitempty"`
+ // NetworkUsageRules List of managed apps and the network rules that applies to them. This collection can contain a maximum of 1000 elements.
+ NetworkUsageRules []IOSNetworkUsageRule `json:"networkUsageRules,omitempty"`
+ // MediaContentRatingApps Media content rating settings for Apps
+ MediaContentRatingApps *RatingAppsType `json:"mediaContentRatingApps,omitempty"`
+ // MessagesBlocked Indicates whether or not to block the user from using the Messages app on the supervised device.
+ MessagesBlocked *bool `json:"messagesBlocked,omitempty"`
+ // NotificationsBlockSettingsModification Indicates whether or not to allow notifications settings modification (iOS 9.3 and later).
+ NotificationsBlockSettingsModification *bool `json:"notificationsBlockSettingsModification,omitempty"`
+ // PasscodeBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock.
+ PasscodeBlockFingerprintUnlock *bool `json:"passcodeBlockFingerprintUnlock,omitempty"`
+ // PasscodeBlockFingerprintModification Block modification of registered Touch ID fingerprints when in supervised mode.
+ PasscodeBlockFingerprintModification *bool `json:"passcodeBlockFingerprintModification,omitempty"`
+ // PasscodeBlockModification Indicates whether or not to allow passcode modification on the supervised device (iOS 9.0 and later).
+ PasscodeBlockModification *bool `json:"passcodeBlockModification,omitempty"`
+ // PasscodeBlockSimple Indicates whether or not to block simple passcodes.
+ PasscodeBlockSimple *bool `json:"passcodeBlockSimple,omitempty"`
+ // PasscodeExpirationDays Number of days before the passcode expires. Valid values 1 to 65535
+ PasscodeExpirationDays *int `json:"passcodeExpirationDays,omitempty"`
+ // PasscodeMinimumLength Minimum length of passcode. Valid values 4 to 14
+ PasscodeMinimumLength *int `json:"passcodeMinimumLength,omitempty"`
+ // PasscodeMinutesOfInactivityBeforeLock Minutes of inactivity before a passcode is required.
+ PasscodeMinutesOfInactivityBeforeLock *int `json:"passcodeMinutesOfInactivityBeforeLock,omitempty"`
+ // PasscodeMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out.
+ PasscodeMinutesOfInactivityBeforeScreenTimeout *int `json:"passcodeMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasscodeMinimumCharacterSetCount Number of character sets a passcode must contain. Valid values 0 to 4
+ PasscodeMinimumCharacterSetCount *int `json:"passcodeMinimumCharacterSetCount,omitempty"`
+ // PasscodePreviousPasscodeBlockCount Number of previous passcodes to block. Valid values 1 to 24
+ PasscodePreviousPasscodeBlockCount *int `json:"passcodePreviousPasscodeBlockCount,omitempty"`
+ // PasscodeSignInFailureCountBeforeWipe Number of sign in failures allowed before wiping the device. Valid values 4 to 11
+ PasscodeSignInFailureCountBeforeWipe *int `json:"passcodeSignInFailureCountBeforeWipe,omitempty"`
+ // PasscodeRequiredType Type of passcode that is required.
+ PasscodeRequiredType *RequiredPasswordType `json:"passcodeRequiredType,omitempty"`
+ // PasscodeRequired Indicates whether or not to require a passcode.
+ PasscodeRequired *bool `json:"passcodeRequired,omitempty"`
+ // PodcastsBlocked Indicates whether or not to block the user from using podcasts on the supervised device (iOS 8.0 and later).
+ PodcastsBlocked *bool `json:"podcastsBlocked,omitempty"`
+ // ProximityBlockSetupToNewDevice Indicates whether or not to enable the prompt to setup nearby devices with a supervised device.
+ ProximityBlockSetupToNewDevice *bool `json:"proximityBlockSetupToNewDevice,omitempty"`
+ // SafariBlockAutofill Indicates whether or not to block the user from using Auto fill in Safari. Requires a supervised device for iOS 13 and later.
+ SafariBlockAutofill *bool `json:"safariBlockAutofill,omitempty"`
+ // SafariBlockJavaScript Indicates whether or not to block JavaScript in Safari.
+ SafariBlockJavaScript *bool `json:"safariBlockJavaScript,omitempty"`
+ // SafariBlockPopups Indicates whether or not to block popups in Safari.
+ SafariBlockPopups *bool `json:"safariBlockPopups,omitempty"`
+ // SafariBlocked Indicates whether or not to block the user from using Safari. Requires a supervised device for iOS 13 and later.
+ SafariBlocked *bool `json:"safariBlocked,omitempty"`
+ // SafariCookieSettings Cookie settings for Safari.
+ SafariCookieSettings *WebBrowserCookieSettings `json:"safariCookieSettings,omitempty"`
+ // SafariManagedDomains URLs matching the patterns listed here will be considered managed.
+ SafariManagedDomains []string `json:"safariManagedDomains,omitempty"`
+ // SafariPasswordAutoFillDomains Users can save passwords in Safari only from URLs matching the patterns listed here. Applies to devices in supervised mode (iOS 9.3 and later).
+ SafariPasswordAutoFillDomains []string `json:"safariPasswordAutoFillDomains,omitempty"`
+ // SafariRequireFraudWarning Indicates whether or not to require fraud warning in Safari.
+ SafariRequireFraudWarning *bool `json:"safariRequireFraudWarning,omitempty"`
+ // ScreenCaptureBlocked Indicates whether or not to block the user from taking Screenshots.
+ ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"`
+ // SiriBlocked Indicates whether or not to block the user from using Siri.
+ SiriBlocked *bool `json:"siriBlocked,omitempty"`
+ // SiriBlockedWhenLocked Indicates whether or not to block the user from using Siri when locked.
+ SiriBlockedWhenLocked *bool `json:"siriBlockedWhenLocked,omitempty"`
+ // SiriBlockUserGeneratedContent Indicates whether or not to block Siri from querying user-generated content when used on a supervised device.
+ SiriBlockUserGeneratedContent *bool `json:"siriBlockUserGeneratedContent,omitempty"`
+ // SiriRequireProfanityFilter Indicates whether or not to prevent Siri from dictating, or speaking profane language on supervised device.
+ SiriRequireProfanityFilter *bool `json:"siriRequireProfanityFilter,omitempty"`
+ // SoftwareUpdatesEnforcedDelayInDays Sets how many days a software update will be delyed for a supervised device. Valid values 0 to 90
+ SoftwareUpdatesEnforcedDelayInDays *int `json:"softwareUpdatesEnforcedDelayInDays,omitempty"`
+ // SoftwareUpdatesForceDelayed Indicates whether or not to delay user visibility of software updates when the device is in supervised mode.
+ SoftwareUpdatesForceDelayed *bool `json:"softwareUpdatesForceDelayed,omitempty"`
+ // SpotlightBlockInternetResults Indicates whether or not to block Spotlight search from returning internet results on supervised device.
+ SpotlightBlockInternetResults *bool `json:"spotlightBlockInternetResults,omitempty"`
+ // VoiceDialingBlocked Indicates whether or not to block voice dialing.
+ VoiceDialingBlocked *bool `json:"voiceDialingBlocked,omitempty"`
+ // WallpaperBlockModification Indicates whether or not to allow wallpaper modification on supervised device (iOS 9.0 and later) .
+ WallpaperBlockModification *bool `json:"wallpaperBlockModification,omitempty"`
+ // WiFiConnectOnlyToConfiguredNetworks Indicates whether or not to force the device to use only Wi-Fi networks from configuration profiles when the device is in supervised mode.
+ WiFiConnectOnlyToConfiguredNetworks *bool `json:"wiFiConnectOnlyToConfiguredNetworks,omitempty"`
+ // ClassroomForceRequestPermissionToLeaveClasses Indicates whether a student enrolled in an unmanaged course via Classroom will request permission from the teacher when attempting to leave the course (iOS 11.3 and later).
+ ClassroomForceRequestPermissionToLeaveClasses *bool `json:"classroomForceRequestPermissionToLeaveClasses,omitempty"`
+ // KeychainBlockCloudSync Indicates whether or not iCloud keychain synchronization is blocked. Requires a supervised device for iOS 13 and later.
+ KeychainBlockCloudSync *bool `json:"keychainBlockCloudSync,omitempty"`
+ // PkiBlockOTAUpdates Indicates whether or not over-the-air PKI updates are blocked. Setting this restriction to false does not disable CRL and OCSP checks (iOS 7.0 and later).
+ PkiBlockOTAUpdates *bool `json:"pkiBlockOTAUpdates,omitempty"`
+ // PrivacyForceLimitAdTracking Indicates if ad tracking is limited.(iOS 7.0 and later).
+ PrivacyForceLimitAdTracking *bool `json:"privacyForceLimitAdTracking,omitempty"`
+ // EnterpriseBookBlockBackup Indicates whether or not Enterprise book back up is blocked.
+ EnterpriseBookBlockBackup *bool `json:"enterpriseBookBlockBackup,omitempty"`
+ // EnterpriseBookBlockMetadataSync Indicates whether or not Enterprise book notes and highlights sync is blocked.
+ EnterpriseBookBlockMetadataSync *bool `json:"enterpriseBookBlockMetadataSync,omitempty"`
+ // AirPrintBlocked Indicates whether or not AirPrint is blocked (iOS 11.0 and later).
+ AirPrintBlocked *bool `json:"airPrintBlocked,omitempty"`
+ // AirPrintBlockCredentialsStorage Indicates whether or not keychain storage of username and password for Airprint is blocked (iOS 11.0 and later).
+ AirPrintBlockCredentialsStorage *bool `json:"airPrintBlockCredentialsStorage,omitempty"`
+ // AirPrintForceTrustedTLS Indicates if trusted certificates are required for TLS printing communication (iOS 11.0 and later).
+ AirPrintForceTrustedTLS *bool `json:"airPrintForceTrustedTLS,omitempty"`
+ // AirPrintBlockiBeaconDiscovery Indicates whether or not iBeacon discovery of AirPrint printers is blocked. This prevents spurious AirPrint Bluetooth beacons from phishing for network traffic (iOS 11.0 and later).
+ AirPrintBlockiBeaconDiscovery *bool `json:"airPrintBlockiBeaconDiscovery,omitempty"`
+ // FilesNetworkDriveAccessBlocked Indicates if devices can access files or other resources on a network server using the Server Message Block (SMB) protocol. Available for devices running iOS and iPadOS, versions 13.0 and later.
+ FilesNetworkDriveAccessBlocked *bool `json:"filesNetworkDriveAccessBlocked,omitempty"`
+ // FilesUsbDriveAccessBlocked Indicates if sevices with access can connect to and open files on a USB drive. Available for devices running iOS and iPadOS, versions 13.0 and later.
+ FilesUsbDriveAccessBlocked *bool `json:"filesUsbDriveAccessBlocked,omitempty"`
+ // WifiPowerOnForced Indicates whether or not Wi-Fi remains on, even when device is in airplane mode. Available for devices running iOS and iPadOS, versions 13.0 and later.
+ WifiPowerOnForced *bool `json:"wifiPowerOnForced,omitempty"`
+ // BlockSystemAppRemoval Indicates whether or not the removal of system apps from the device is blocked on a supervised device (iOS 11.0 and later).
+ BlockSystemAppRemoval *bool `json:"blockSystemAppRemoval,omitempty"`
+ // VpnBlockCreation Indicates whether or not the creation of VPN configurations is blocked (iOS 11.0 and later).
+ VpnBlockCreation *bool `json:"vpnBlockCreation,omitempty"`
+ // AppRemovalBlocked Indicates if the removal of apps is allowed.
+ AppRemovalBlocked *bool `json:"appRemovalBlocked,omitempty"`
+ // UsbRestrictedModeBlocked Indicates if connecting to USB accessories while the device is locked is allowed (iOS 11.4.1 and later).
+ UsbRestrictedModeBlocked *bool `json:"usbRestrictedModeBlocked,omitempty"`
+ // PasswordBlockAutoFill Indicates if the AutoFill passwords feature is allowed (iOS 12.0 and later).
+ PasswordBlockAutoFill *bool `json:"passwordBlockAutoFill,omitempty"`
+ // PasswordBlockProximityRequests Indicates whether or not to block requesting passwords from nearby devices (iOS 12.0 and later).
+ PasswordBlockProximityRequests *bool `json:"passwordBlockProximityRequests,omitempty"`
+ // PasswordBlockAirDropSharing Indicates whether or not to block sharing passwords with the AirDrop passwords feature iOS 12.0 and later).
+ PasswordBlockAirDropSharing *bool `json:"passwordBlockAirDropSharing,omitempty"`
+ // DateAndTimeForceSetAutomatically Indicates whether or not the Date and Time "Set Automatically" feature is enabled and cannot be turned off by the user (iOS 12.0 and later).
+ DateAndTimeForceSetAutomatically *bool `json:"dateAndTimeForceSetAutomatically,omitempty"`
+ // ContactsAllowManagedToUnmanagedWrite Indicates whether or not managed apps can write contacts to unmanaged contacts accounts (iOS 12.0 and later).
+ ContactsAllowManagedToUnmanagedWrite *bool `json:"contactsAllowManagedToUnmanagedWrite,omitempty"`
+ // ContactsAllowUnmanagedToManagedRead Indicates whether or not unmanaged apps can read from managed contacts accounts (iOS 12.0 or later).
+ ContactsAllowUnmanagedToManagedRead *bool `json:"contactsAllowUnmanagedToManagedRead,omitempty"`
+ // CellularBlockPersonalHotspotModification Indicates whether or not to block the user from modifying the personal hotspot setting (iOS 12.2 or later).
+ CellularBlockPersonalHotspotModification *bool `json:"cellularBlockPersonalHotspotModification,omitempty"`
+ // ContinuousPathKeyboardBlocked Indicates whether or not to block the continuous path keyboard when the device is supervised (iOS 13 or later).
+ ContinuousPathKeyboardBlocked *bool `json:"continuousPathKeyboardBlocked,omitempty"`
+ // FindMyDeviceInFindMyAppBlocked Indicates whether or not to block Find My Device when the device is supervised (iOS 13 or later).
+ FindMyDeviceInFindMyAppBlocked *bool `json:"findMyDeviceInFindMyAppBlocked,omitempty"`
+ // FindMyFriendsInFindMyAppBlocked Indicates whether or not to block Find My Friends when the device is supervised (iOS 13 or later).
+ FindMyFriendsInFindMyAppBlocked *bool `json:"findMyFriendsInFindMyAppBlocked,omitempty"`
+ // ITunesBlocked Indicates whether or not to block the iTunes app. Requires a supervised device for iOS 13 and later.
+ ITunesBlocked *bool `json:"iTunesBlocked,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSHomeScreenAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSHomeScreenAppModel.go
new file mode 100644
index 00000000..584d7b20
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSHomeScreenAppModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSHomeScreenApp undocumented
+type IOSHomeScreenApp struct {
+ // IOSHomeScreenItem is the base model of IOSHomeScreenApp
+ IOSHomeScreenItem
+ // BundleID BundleID of app
+ BundleID *string `json:"bundleID,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSHomeScreenFolderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSHomeScreenFolderModel.go
new file mode 100644
index 00000000..0c5cdebb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSHomeScreenFolderModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSHomeScreenFolder undocumented
+type IOSHomeScreenFolder struct {
+ // IOSHomeScreenItem is the base model of IOSHomeScreenFolder
+ IOSHomeScreenItem
+ // Pages Pages of Home Screen Layout Icons which must be Application Type. This collection can contain a maximum of 500 elements.
+ Pages []IOSHomeScreenFolderPage `json:"pages,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSHomeScreenFolderPageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSHomeScreenFolderPageModel.go
new file mode 100644
index 00000000..84f73289
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSHomeScreenFolderPageModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSHomeScreenFolderPage undocumented
+type IOSHomeScreenFolderPage struct {
+ // Object is the base model of IOSHomeScreenFolderPage
+ Object
+ // DisplayName Name of the folder page
+ DisplayName *string `json:"displayName,omitempty"`
+ // Apps A list of apps to appear on a page within a folder. This collection can contain a maximum of 500 elements.
+ Apps []IOSHomeScreenApp `json:"apps,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSHomeScreenItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSHomeScreenItemModel.go
new file mode 100644
index 00000000..b111931e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSHomeScreenItemModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSHomeScreenItem undocumented
+type IOSHomeScreenItem struct {
+ // Object is the base model of IOSHomeScreenItem
+ Object
+ // DisplayName Name of the app
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSHomeScreenPageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSHomeScreenPageModel.go
new file mode 100644
index 00000000..8c5170c2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSHomeScreenPageModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSHomeScreenPage undocumented
+type IOSHomeScreenPage struct {
+ // Object is the base model of IOSHomeScreenPage
+ Object
+ // DisplayName Name of the page
+ DisplayName *string `json:"displayName,omitempty"`
+ // Icons A list of apps and folders to appear on a page. This collection can contain a maximum of 500 elements.
+ Icons []IOSHomeScreenItem `json:"icons,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSImportedPFXCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSImportedPFXCertificateProfileModel.go
new file mode 100644
index 00000000..acced846
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSImportedPFXCertificateProfileModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSImportedPFXCertificateProfile iOS PFX Import certificate profile
+type IOSImportedPFXCertificateProfile struct {
+ // IOSCertificateProfile is the base model of IOSImportedPFXCertificateProfile
+ IOSCertificateProfile
+ // IntendedPurpose Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc.
+ IntendedPurpose *IntendedPurpose `json:"intendedPurpose,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSImportedPFXCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSImportedPFXCertificateProfileRequest.go
new file mode 100644
index 00000000..d54e7e22
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSImportedPFXCertificateProfileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// IOSImportedPFXCertificateProfileRequestBuilder is request builder for IOSImportedPFXCertificateProfile
+type IOSImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSImportedPFXCertificateProfileRequest
+func (b *IOSImportedPFXCertificateProfileRequestBuilder) Request() *IOSImportedPFXCertificateProfileRequest {
+ return &IOSImportedPFXCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSImportedPFXCertificateProfileRequest is request for IOSImportedPFXCertificateProfile
+type IOSImportedPFXCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSImportedPFXCertificateProfile
+func (r *IOSImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *IOSImportedPFXCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSImportedPFXCertificateProfile
+func (r *IOSImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *IOSImportedPFXCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSImportedPFXCertificateProfile
+func (r *IOSImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *IOSImportedPFXCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSKerberosSingleSignOnExtensionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSKerberosSingleSignOnExtensionModel.go
new file mode 100644
index 00000000..60523e10
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSKerberosSingleSignOnExtensionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSKerberosSingleSignOnExtension undocumented
+type IOSKerberosSingleSignOnExtension struct {
+ // KerberosSingleSignOnExtension is the base model of IOSKerberosSingleSignOnExtension
+ KerberosSingleSignOnExtension
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppAssignmentSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppAssignmentSettingsModel.go
new file mode 100644
index 00000000..928d1bee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppAssignmentSettingsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSLobAppAssignmentSettings undocumented
+type IOSLobAppAssignmentSettings struct {
+ // MobileAppAssignmentSettings is the base model of IOSLobAppAssignmentSettings
+ MobileAppAssignmentSettings
+ // VpnConfigurationID The VPN Configuration Id to apply for this app.
+ VpnConfigurationID *string `json:"vpnConfigurationId,omitempty"`
+ // UninstallOnDeviceRemoval Whether or not to uninstall the app when device is removed from Intune.
+ UninstallOnDeviceRemoval *bool `json:"uninstallOnDeviceRemoval,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppModel.go
new file mode 100644
index 00000000..a430b6a4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// IOSLobApp Contains properties and inherited properties for iOS Line Of Business apps.
+type IOSLobApp struct {
+ // MobileLobApp is the base model of IOSLobApp
+ MobileLobApp
+ // BundleID The Identity Name.
+ BundleID *string `json:"bundleId,omitempty"`
+ // ApplicableDeviceType The iOS architecture for which this app can run on.
+ ApplicableDeviceType *IOSDeviceType `json:"applicableDeviceType,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *IOSMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+ // ExpirationDateTime The expiration time.
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // VersionNumber The version number of iOS Line of Business (LoB) app.
+ VersionNumber *string `json:"versionNumber,omitempty"`
+ // BuildNumber The build number of iOS Line of Business (LoB) app.
+ BuildNumber *string `json:"buildNumber,omitempty"`
+ // IdentityVersion The identity version.
+ IdentityVersion *string `json:"identityVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationAction.go
new file mode 100644
index 00000000..5873af20
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationAction.go
@@ -0,0 +1,134 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestParameter undocumented
+type IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// IOSLobAppProvisioningConfigurationAssignRequestParameter undocumented
+type IOSLobAppProvisioningConfigurationAssignRequestParameter struct {
+ // AppProvisioningConfigurationGroupAssignments undocumented
+ AppProvisioningConfigurationGroupAssignments []MobileAppProvisioningConfigGroupAssignment `json:"appProvisioningConfigurationGroupAssignments,omitempty"`
+ // IOSLobAppProvisioningConfigAssignments undocumented
+ IOSLobAppProvisioningConfigAssignments []IOSLobAppProvisioningConfigurationAssignment `json:"iOSLobAppProvisioningConfigAssignments,omitempty"`
+}
+
+//
+type IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestParameter) *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestBuilder {
+ bb := &IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestBuilder) Request() *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequest {
+ return &IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequest) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type IOSLobAppProvisioningConfigurationAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *IOSLobAppProvisioningConfigurationRequestBuilder) Assign(reqObj *IOSLobAppProvisioningConfigurationAssignRequestParameter) *IOSLobAppProvisioningConfigurationAssignRequestBuilder {
+ bb := &IOSLobAppProvisioningConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type IOSLobAppProvisioningConfigurationAssignRequest struct{ BaseRequest }
+
+//
+func (b *IOSLobAppProvisioningConfigurationAssignRequestBuilder) Request() *IOSLobAppProvisioningConfigurationAssignRequest {
+ return &IOSLobAppProvisioningConfigurationAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *IOSLobAppProvisioningConfigurationAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentModel.go
new file mode 100644
index 00000000..eb3e36d1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSLobAppProvisioningConfigurationAssignment A class containing the properties used for Group Assignment of an iOS LOB App Provisioning and Configuration.
+type IOSLobAppProvisioningConfigurationAssignment struct {
+ // Entity is the base model of IOSLobAppProvisioningConfigurationAssignment
+ Entity
+ // Target The target group assignment defined by the admin.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentRequest.go
new file mode 100644
index 00000000..d519cf6a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IOSLobAppProvisioningConfigurationAssignmentRequestBuilder is request builder for IOSLobAppProvisioningConfigurationAssignment
+type IOSLobAppProvisioningConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSLobAppProvisioningConfigurationAssignmentRequest
+func (b *IOSLobAppProvisioningConfigurationAssignmentRequestBuilder) Request() *IOSLobAppProvisioningConfigurationAssignmentRequest {
+ return &IOSLobAppProvisioningConfigurationAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSLobAppProvisioningConfigurationAssignmentRequest is request for IOSLobAppProvisioningConfigurationAssignment
+type IOSLobAppProvisioningConfigurationAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSLobAppProvisioningConfigurationAssignment
+func (r *IOSLobAppProvisioningConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *IOSLobAppProvisioningConfigurationAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSLobAppProvisioningConfigurationAssignment
+func (r *IOSLobAppProvisioningConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *IOSLobAppProvisioningConfigurationAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSLobAppProvisioningConfigurationAssignment
+func (r *IOSLobAppProvisioningConfigurationAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationModel.go
new file mode 100644
index 00000000..78cdc6a5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// IOSLobAppProvisioningConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the iOS Lob App Provisioning Configuration resource.
+type IOSLobAppProvisioningConfiguration struct {
+ // Entity is the base model of IOSLobAppProvisioningConfiguration
+ Entity
+ // ExpirationDateTime Optional profile expiration date and time.
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // PayloadFileName Payload file name (*.mobileprovision | *.xml).
+ PayloadFileName *string `json:"payloadFileName,omitempty"`
+ // Payload Payload. (UTF8 encoded byte array)
+ Payload *Binary `json:"payload,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this iOS LOB app provisioning configuration entity.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // CreatedDateTime DateTime the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Description Admin provided description of the Device Configuration.
+ Description *string `json:"description,omitempty"`
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DisplayName Admin provided name of the device configuration.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version Version of the device configuration.
+ Version *int `json:"version,omitempty"`
+ // GroupAssignments undocumented
+ GroupAssignments []MobileAppProvisioningConfigGroupAssignment `json:"groupAssignments,omitempty"`
+ // Assignments undocumented
+ Assignments []IOSLobAppProvisioningConfigurationAssignment `json:"assignments,omitempty"`
+ // DeviceStatuses undocumented
+ DeviceStatuses []ManagedDeviceMobileAppConfigurationDeviceStatus `json:"deviceStatuses,omitempty"`
+ // UserStatuses undocumented
+ UserStatuses []ManagedDeviceMobileAppConfigurationUserStatus `json:"userStatuses,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationPolicySetItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationPolicySetItemModel.go
new file mode 100644
index 00000000..52e153e3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationPolicySetItemModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSLobAppProvisioningConfigurationPolicySetItem A class containing the properties used for iOS lob app provisioning configuration PolicySetItem.
+type IOSLobAppProvisioningConfigurationPolicySetItem struct {
+ // PolicySetItem is the base model of IOSLobAppProvisioningConfigurationPolicySetItem
+ PolicySetItem
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationRequest.go
new file mode 100644
index 00000000..b18bb21a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSLobAppProvisioningConfigurationRequest.go
@@ -0,0 +1,421 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// IOSLobAppProvisioningConfigurationRequestBuilder is request builder for IOSLobAppProvisioningConfiguration
+type IOSLobAppProvisioningConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSLobAppProvisioningConfigurationRequest
+func (b *IOSLobAppProvisioningConfigurationRequestBuilder) Request() *IOSLobAppProvisioningConfigurationRequest {
+ return &IOSLobAppProvisioningConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSLobAppProvisioningConfigurationRequest is request for IOSLobAppProvisioningConfiguration
+type IOSLobAppProvisioningConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSLobAppProvisioningConfiguration
+func (r *IOSLobAppProvisioningConfigurationRequest) Get(ctx context.Context) (resObj *IOSLobAppProvisioningConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSLobAppProvisioningConfiguration
+func (r *IOSLobAppProvisioningConfigurationRequest) Update(ctx context.Context, reqObj *IOSLobAppProvisioningConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSLobAppProvisioningConfiguration
+func (r *IOSLobAppProvisioningConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for IOSLobAppProvisioningConfigurationAssignment collection
+func (b *IOSLobAppProvisioningConfigurationRequestBuilder) Assignments() *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder {
+ bb := &IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder is request builder for IOSLobAppProvisioningConfigurationAssignment collection
+type IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IOSLobAppProvisioningConfigurationAssignment collection
+func (b *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder) Request() *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest {
+ return &IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IOSLobAppProvisioningConfigurationAssignment item
+func (b *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *IOSLobAppProvisioningConfigurationAssignmentRequestBuilder {
+ bb := &IOSLobAppProvisioningConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest is request for IOSLobAppProvisioningConfigurationAssignment collection
+type IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IOSLobAppProvisioningConfigurationAssignment collection
+func (r *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]IOSLobAppProvisioningConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IOSLobAppProvisioningConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IOSLobAppProvisioningConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IOSLobAppProvisioningConfigurationAssignment collection
+func (r *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]IOSLobAppProvisioningConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for IOSLobAppProvisioningConfigurationAssignment collection
+func (r *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *IOSLobAppProvisioningConfigurationAssignment) (resObj *IOSLobAppProvisioningConfigurationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStatuses returns request builder for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (b *IOSLobAppProvisioningConfigurationRequestBuilder) DeviceStatuses() *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder {
+ bb := &IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatuses"
+ return bb
+}
+
+// IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+type IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (b *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder) Request() *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest {
+ return &IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceMobileAppConfigurationDeviceStatus item
+func (b *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest is request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+type IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (r *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceMobileAppConfigurationDeviceStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceMobileAppConfigurationDeviceStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (r *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (r *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationDeviceStatus) (resObj *ManagedDeviceMobileAppConfigurationDeviceStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupAssignments returns request builder for MobileAppProvisioningConfigGroupAssignment collection
+func (b *IOSLobAppProvisioningConfigurationRequestBuilder) GroupAssignments() *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder {
+ bb := &IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupAssignments"
+ return bb
+}
+
+// IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder is request builder for MobileAppProvisioningConfigGroupAssignment collection
+type IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppProvisioningConfigGroupAssignment collection
+func (b *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder) Request() *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest {
+ return &IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppProvisioningConfigGroupAssignment item
+func (b *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder) ID(id string) *MobileAppProvisioningConfigGroupAssignmentRequestBuilder {
+ bb := &MobileAppProvisioningConfigGroupAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest is request for MobileAppProvisioningConfigGroupAssignment collection
+type IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppProvisioningConfigGroupAssignment collection
+func (r *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MobileAppProvisioningConfigGroupAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppProvisioningConfigGroupAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppProvisioningConfigGroupAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppProvisioningConfigGroupAssignment collection
+func (r *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest) Get(ctx context.Context) ([]MobileAppProvisioningConfigGroupAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MobileAppProvisioningConfigGroupAssignment collection
+func (r *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppProvisioningConfigGroupAssignment) (resObj *MobileAppProvisioningConfigGroupAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserStatuses returns request builder for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (b *IOSLobAppProvisioningConfigurationRequestBuilder) UserStatuses() *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder {
+ bb := &IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStatuses"
+ return bb
+}
+
+// IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationUserStatus collection
+type IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (b *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder) Request() *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest {
+ return &IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceMobileAppConfigurationUserStatus item
+func (b *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest is request for ManagedDeviceMobileAppConfigurationUserStatus collection
+type IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (r *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceMobileAppConfigurationUserStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceMobileAppConfigurationUserStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (r *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (r *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationUserStatus) (resObj *ManagedDeviceMobileAppConfigurationUserStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSManagedAppProtectionAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSManagedAppProtectionAction.go
new file mode 100644
index 00000000..44cd933f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSManagedAppProtectionAction.go
@@ -0,0 +1,100 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// IOSManagedAppProtectionCollectionHasPayloadLinksRequestParameter undocumented
+type IOSManagedAppProtectionCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+//
+type IOSManagedAppProtectionCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder) HasPayloadLinks(reqObj *IOSManagedAppProtectionCollectionHasPayloadLinksRequestParameter) *IOSManagedAppProtectionCollectionHasPayloadLinksRequestBuilder {
+ bb := &IOSManagedAppProtectionCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type IOSManagedAppProtectionCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *IOSManagedAppProtectionCollectionHasPayloadLinksRequestBuilder) Request() *IOSManagedAppProtectionCollectionHasPayloadLinksRequest {
+ return &IOSManagedAppProtectionCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *IOSManagedAppProtectionCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *IOSManagedAppProtectionCollectionHasPayloadLinksRequest) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSManagedAppProtectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSManagedAppProtectionModel.go
new file mode 100644
index 00000000..ad3f1dd3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSManagedAppProtectionModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSManagedAppProtection Policy used to configure detailed management settings targeted to specific security groups and for a specified set of apps on an iOS device
+type IOSManagedAppProtection struct {
+ // TargetedManagedAppProtection is the base model of IOSManagedAppProtection
+ TargetedManagedAppProtection
+ // AppDataEncryptionType Type of encryption which should be used for data in a managed app.
+ AppDataEncryptionType *ManagedAppDataEncryptionType `json:"appDataEncryptionType,omitempty"`
+ // MinimumRequiredSdkVersion Versions less than the specified version will block the managed app from accessing company data.
+ MinimumRequiredSdkVersion *string `json:"minimumRequiredSdkVersion,omitempty"`
+ // DeployedAppCount Count of apps to which the current policy is deployed.
+ DeployedAppCount *int `json:"deployedAppCount,omitempty"`
+ // FaceIDBlocked Indicates whether use of the FaceID is allowed in place of a pin if PinRequired is set to True.
+ FaceIDBlocked *bool `json:"faceIdBlocked,omitempty"`
+ // ExemptedAppProtocols Apps in this list will be exempt from the policy and will be able to receive data from managed apps.
+ ExemptedAppProtocols []KeyValuePair `json:"exemptedAppProtocols,omitempty"`
+ // MinimumWipeSdkVersion Versions less than the specified version will block the managed app from accessing company data.
+ MinimumWipeSdkVersion *string `json:"minimumWipeSdkVersion,omitempty"`
+ // AllowedIOSDeviceModels Semicolon seperated list of device models allowed, as a string, for the managed app to work.
+ AllowedIOSDeviceModels *string `json:"allowedIosDeviceModels,omitempty"`
+ // AppActionIfIOSDeviceModelNotAllowed Defines a managed app behavior, either block or wipe, if the specified device model is not allowed.
+ AppActionIfIOSDeviceModelNotAllowed *ManagedAppRemediationAction `json:"appActionIfIosDeviceModelNotAllowed,omitempty"`
+ // ThirdPartyKeyboardsBlocked Defines if third party keyboards are allowed while accessing a managed app
+ ThirdPartyKeyboardsBlocked *bool `json:"thirdPartyKeyboardsBlocked,omitempty"`
+ // FilterOpenInToOnlyManagedApps Defines if open-in operation is supported from the managed app to the filesharing locations selected. This setting only applies when AllowedOutboundDataTransferDestinations is set to ManagedApps and DisableProtectionOfManagedOutboundOpenInData is set to False.
+ FilterOpenInToOnlyManagedApps *bool `json:"filterOpenInToOnlyManagedApps,omitempty"`
+ // DisableProtectionOfManagedOutboundOpenInData Disable protection of data transferred to other apps through IOS OpenIn option. This setting is only allowed to be True when AllowedOutboundDataTransferDestinations is set to ManagedApps.
+ DisableProtectionOfManagedOutboundOpenInData *bool `json:"disableProtectionOfManagedOutboundOpenInData,omitempty"`
+ // ProtectInboundDataFromUnknownSources Protect incoming data from unknown source. This setting is only allowed to be True when AllowedInboundDataTransferSources is set to AllApps.
+ ProtectInboundDataFromUnknownSources *bool `json:"protectInboundDataFromUnknownSources,omitempty"`
+ // CustomBrowserProtocol A custom browser protocol to open weblink on iOS.
+ CustomBrowserProtocol *string `json:"customBrowserProtocol,omitempty"`
+ // Apps undocumented
+ Apps []ManagedMobileApp `json:"apps,omitempty"`
+ // DeploymentSummary undocumented
+ DeploymentSummary *ManagedAppPolicyDeploymentSummary `json:"deploymentSummary,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSManagedAppProtectionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSManagedAppProtectionRequest.go
new file mode 100644
index 00000000..38d1f855
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSManagedAppProtectionRequest.go
@@ -0,0 +1,146 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// IOSManagedAppProtectionRequestBuilder is request builder for IOSManagedAppProtection
+type IOSManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSManagedAppProtectionRequest
+func (b *IOSManagedAppProtectionRequestBuilder) Request() *IOSManagedAppProtectionRequest {
+ return &IOSManagedAppProtectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSManagedAppProtectionRequest is request for IOSManagedAppProtection
+type IOSManagedAppProtectionRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSManagedAppProtection
+func (r *IOSManagedAppProtectionRequest) Get(ctx context.Context) (resObj *IOSManagedAppProtection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSManagedAppProtection
+func (r *IOSManagedAppProtectionRequest) Update(ctx context.Context, reqObj *IOSManagedAppProtection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSManagedAppProtection
+func (r *IOSManagedAppProtectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Apps returns request builder for ManagedMobileApp collection
+func (b *IOSManagedAppProtectionRequestBuilder) Apps() *IOSManagedAppProtectionAppsCollectionRequestBuilder {
+ bb := &IOSManagedAppProtectionAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/apps"
+ return bb
+}
+
+// IOSManagedAppProtectionAppsCollectionRequestBuilder is request builder for ManagedMobileApp collection
+type IOSManagedAppProtectionAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedMobileApp collection
+func (b *IOSManagedAppProtectionAppsCollectionRequestBuilder) Request() *IOSManagedAppProtectionAppsCollectionRequest {
+ return &IOSManagedAppProtectionAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedMobileApp item
+func (b *IOSManagedAppProtectionAppsCollectionRequestBuilder) ID(id string) *ManagedMobileAppRequestBuilder {
+ bb := &ManagedMobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSManagedAppProtectionAppsCollectionRequest is request for ManagedMobileApp collection
+type IOSManagedAppProtectionAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedMobileApp collection
+func (r *IOSManagedAppProtectionAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedMobileApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedMobileApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedMobileApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedMobileApp collection
+func (r *IOSManagedAppProtectionAppsCollectionRequest) Get(ctx context.Context) ([]ManagedMobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedMobileApp collection
+func (r *IOSManagedAppProtectionAppsCollectionRequest) Add(ctx context.Context, reqObj *ManagedMobileApp) (resObj *ManagedMobileApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeploymentSummary is navigation property
+func (b *IOSManagedAppProtectionRequestBuilder) DeploymentSummary() *ManagedAppPolicyDeploymentSummaryRequestBuilder {
+ bb := &ManagedAppPolicyDeploymentSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deploymentSummary"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSManagedAppRegistrationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSManagedAppRegistrationModel.go
new file mode 100644
index 00000000..2e13b300
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSManagedAppRegistrationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSManagedAppRegistration Represents the synchronization details of an ios app, with management capabilities, for a specific user.
+type IOSManagedAppRegistration struct {
+ // ManagedAppRegistration is the base model of IOSManagedAppRegistration
+ ManagedAppRegistration
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSMinimumOperatingSystemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSMinimumOperatingSystemModel.go
new file mode 100644
index 00000000..c7e9394a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSMinimumOperatingSystemModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSMinimumOperatingSystem undocumented
+type IOSMinimumOperatingSystem struct {
+ // Object is the base model of IOSMinimumOperatingSystem
+ Object
+ // V8_0 Version 8.0 or later.
+ V8_0 *bool `json:"v8_0,omitempty"`
+ // V9_0 Version 9.0 or later.
+ V9_0 *bool `json:"v9_0,omitempty"`
+ // V10_0 Version 10.0 or later.
+ V10_0 *bool `json:"v10_0,omitempty"`
+ // V11_0 Version 11.0 or later.
+ V11_0 *bool `json:"v11_0,omitempty"`
+ // V12_0 Version 12.0 or later.
+ V12_0 *bool `json:"v12_0,omitempty"`
+ // V13_0 Version 13.0 or later.
+ V13_0 *bool `json:"v13_0,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSMobileAppConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSMobileAppConfigurationModel.go
new file mode 100644
index 00000000..cae13420
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSMobileAppConfigurationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSMobileAppConfiguration Contains properties, inherited properties and actions for iOS mobile app configurations.
+type IOSMobileAppConfiguration struct {
+ // ManagedDeviceMobileAppConfiguration is the base model of IOSMobileAppConfiguration
+ ManagedDeviceMobileAppConfiguration
+ // EncodedSettingXML mdm app configuration Base64 binary.
+ EncodedSettingXML *Binary `json:"encodedSettingXml,omitempty"`
+ // Settings app configuration setting items.
+ Settings []AppConfigurationSettingItem `json:"settings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSMobileAppIdentifierModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSMobileAppIdentifierModel.go
new file mode 100644
index 00000000..3d90f4f2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSMobileAppIdentifierModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSMobileAppIdentifier undocumented
+type IOSMobileAppIdentifier struct {
+ // MobileAppIdentifier is the base model of IOSMobileAppIdentifier
+ MobileAppIdentifier
+ // BundleID The identifier for an app, as specified in the app store.
+ BundleID *string `json:"bundleId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSNetworkUsageRuleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSNetworkUsageRuleModel.go
new file mode 100644
index 00000000..3e760e1c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSNetworkUsageRuleModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSNetworkUsageRule undocumented
+type IOSNetworkUsageRule struct {
+ // Object is the base model of IOSNetworkUsageRule
+ Object
+ // ManagedApps Information about the managed apps that this rule is going to apply to. This collection can contain a maximum of 500 elements.
+ ManagedApps []AppListItem `json:"managedApps,omitempty"`
+ // CellularDataBlockWhenRoaming If set to true, corresponding managed apps will not be allowed to use cellular data when roaming.
+ CellularDataBlockWhenRoaming *bool `json:"cellularDataBlockWhenRoaming,omitempty"`
+ // CellularDataBlocked If set to true, corresponding managed apps will not be allowed to use cellular data at any time.
+ CellularDataBlocked *bool `json:"cellularDataBlocked,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSNotificationAlertTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSNotificationAlertTypeEnum.go
new file mode 100644
index 00000000..970486d2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSNotificationAlertTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSNotificationAlertType undocumented
+type IOSNotificationAlertType int
+
+const (
+ // IOSNotificationAlertTypeVDeviceDefault undocumented
+ IOSNotificationAlertTypeVDeviceDefault IOSNotificationAlertType = 0
+ // IOSNotificationAlertTypeVBanner undocumented
+ IOSNotificationAlertTypeVBanner IOSNotificationAlertType = 1
+ // IOSNotificationAlertTypeVModal undocumented
+ IOSNotificationAlertTypeVModal IOSNotificationAlertType = 2
+ // IOSNotificationAlertTypeVNone undocumented
+ IOSNotificationAlertTypeVNone IOSNotificationAlertType = 3
+)
+
+// IOSNotificationAlertTypePDeviceDefault returns a pointer to IOSNotificationAlertTypeVDeviceDefault
+func IOSNotificationAlertTypePDeviceDefault() *IOSNotificationAlertType {
+ v := IOSNotificationAlertTypeVDeviceDefault
+ return &v
+}
+
+// IOSNotificationAlertTypePBanner returns a pointer to IOSNotificationAlertTypeVBanner
+func IOSNotificationAlertTypePBanner() *IOSNotificationAlertType {
+ v := IOSNotificationAlertTypeVBanner
+ return &v
+}
+
+// IOSNotificationAlertTypePModal returns a pointer to IOSNotificationAlertTypeVModal
+func IOSNotificationAlertTypePModal() *IOSNotificationAlertType {
+ v := IOSNotificationAlertTypeVModal
+ return &v
+}
+
+// IOSNotificationAlertTypePNone returns a pointer to IOSNotificationAlertTypeVNone
+func IOSNotificationAlertTypePNone() *IOSNotificationAlertType {
+ v := IOSNotificationAlertTypeVNone
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSNotificationSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSNotificationSettingsModel.go
new file mode 100644
index 00000000..0d29accb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSNotificationSettingsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSNotificationSettings undocumented
+type IOSNotificationSettings struct {
+ // Object is the base model of IOSNotificationSettings
+ Object
+ // BundleID Bundle id of app to which to apply these notification settings.
+ BundleID *string `json:"bundleID,omitempty"`
+ // AppName Application name to be associated with the bundleID.
+ AppName *string `json:"appName,omitempty"`
+ // Publisher Publisher to be associated with the bundleID.
+ Publisher *string `json:"publisher,omitempty"`
+ // Enabled Indicates whether notifications are allowed for this app.
+ Enabled *bool `json:"enabled,omitempty"`
+ // ShowInNotificationCenter Indicates whether notifications can be shown in notification center.
+ ShowInNotificationCenter *bool `json:"showInNotificationCenter,omitempty"`
+ // ShowOnLockScreen Indicates whether notifications can be shown on the lock screen.
+ ShowOnLockScreen *bool `json:"showOnLockScreen,omitempty"`
+ // AlertType Indicates the type of alert for notifications for this app.
+ AlertType *IOSNotificationAlertType `json:"alertType,omitempty"`
+ // BadgesEnabled Indicates whether badges are allowed for this app.
+ BadgesEnabled *bool `json:"badgesEnabled,omitempty"`
+ // SoundsEnabled Indicates whether sounds are allowed for this app.
+ SoundsEnabled *bool `json:"soundsEnabled,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSPkcsCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSPkcsCertificateProfileModel.go
new file mode 100644
index 00000000..94e97d21
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSPkcsCertificateProfileModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSPkcsCertificateProfile iOS PKCS certificate profile.
+type IOSPkcsCertificateProfile struct {
+ // IOSCertificateProfileBase is the base model of IOSPkcsCertificateProfile
+ IOSCertificateProfileBase
+ // CertificationAuthority PKCS Certification Authority.
+ CertificationAuthority *string `json:"certificationAuthority,omitempty"`
+ // CertificationAuthorityName PKCS Certification Authority Name.
+ CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"`
+ // CertificateTemplateName PKCS Certificate Template Name.
+ CertificateTemplateName *string `json:"certificateTemplateName,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSPkcsCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSPkcsCertificateProfileRequest.go
new file mode 100644
index 00000000..b8e952e7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSPkcsCertificateProfileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// IOSPkcsCertificateProfileRequestBuilder is request builder for IOSPkcsCertificateProfile
+type IOSPkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSPkcsCertificateProfileRequest
+func (b *IOSPkcsCertificateProfileRequestBuilder) Request() *IOSPkcsCertificateProfileRequest {
+ return &IOSPkcsCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSPkcsCertificateProfileRequest is request for IOSPkcsCertificateProfile
+type IOSPkcsCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSPkcsCertificateProfile
+func (r *IOSPkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *IOSPkcsCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSPkcsCertificateProfile
+func (r *IOSPkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *IOSPkcsCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSPkcsCertificateProfile
+func (r *IOSPkcsCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *IOSPkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSScepCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSScepCertificateProfileModel.go
new file mode 100644
index 00000000..59e07b03
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSScepCertificateProfileModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSScepCertificateProfile iOS SCEP certificate profile.
+type IOSScepCertificateProfile struct {
+ // IOSCertificateProfileBase is the base model of IOSScepCertificateProfile
+ IOSCertificateProfileBase
+ // ScepServerUrls SCEP Server Url(s).
+ ScepServerUrls []string `json:"scepServerUrls,omitempty"`
+ // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
+ SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"`
+ // KeyUsage SCEP Key Usage.
+ KeyUsage *KeyUsages `json:"keyUsage,omitempty"`
+ // KeySize SCEP Key Size.
+ KeySize *KeySize `json:"keySize,omitempty"`
+ // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
+ ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // CertificateStore Target store certificate
+ CertificateStore *CertificateStore `json:"certificateStore,omitempty"`
+ // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.
+ CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"`
+ // RootCertificate undocumented
+ RootCertificate *IOSTrustedRootCertificate `json:"rootCertificate,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSScepCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSScepCertificateProfileRequest.go
new file mode 100644
index 00000000..f82c32ba
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSScepCertificateProfileRequest.go
@@ -0,0 +1,146 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// IOSScepCertificateProfileRequestBuilder is request builder for IOSScepCertificateProfile
+type IOSScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSScepCertificateProfileRequest
+func (b *IOSScepCertificateProfileRequestBuilder) Request() *IOSScepCertificateProfileRequest {
+ return &IOSScepCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSScepCertificateProfileRequest is request for IOSScepCertificateProfile
+type IOSScepCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSScepCertificateProfile
+func (r *IOSScepCertificateProfileRequest) Get(ctx context.Context) (resObj *IOSScepCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSScepCertificateProfile
+func (r *IOSScepCertificateProfileRequest) Update(ctx context.Context, reqObj *IOSScepCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSScepCertificateProfile
+func (r *IOSScepCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *IOSScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RootCertificate is navigation property
+func (b *IOSScepCertificateProfileRequestBuilder) RootCertificate() *IOSTrustedRootCertificateRequestBuilder {
+ bb := &IOSTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSSingleSignOnSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSSingleSignOnSettingsModel.go
new file mode 100644
index 00000000..b214ba3f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSSingleSignOnSettingsModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSSingleSignOnSettings undocumented
+type IOSSingleSignOnSettings struct {
+ // Object is the base model of IOSSingleSignOnSettings
+ Object
+ // AllowedAppsList List of app identifiers that are allowed to use this login. If this field is omitted, the login applies to all applications on the device. This collection can contain a maximum of 500 elements.
+ AllowedAppsList []AppListItem `json:"allowedAppsList,omitempty"`
+ // AllowedUrls List of HTTP URLs that must be matched in order to use this login. With iOS 9.0 or later, a wildcard characters may be used.
+ AllowedUrls []string `json:"allowedUrls,omitempty"`
+ // DisplayName The display name of login settings shown on the receiving device.
+ DisplayName *string `json:"displayName,omitempty"`
+ // KerberosPrincipalName A Kerberos principal name. If not provided, the user is prompted for one during profile installation.
+ KerberosPrincipalName *string `json:"kerberosPrincipalName,omitempty"`
+ // KerberosRealm A Kerberos realm name. Case sensitive.
+ KerberosRealm *string `json:"kerberosRealm,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSStoreAppAssignmentSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSStoreAppAssignmentSettingsModel.go
new file mode 100644
index 00000000..3f7890f3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSStoreAppAssignmentSettingsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSStoreAppAssignmentSettings undocumented
+type IOSStoreAppAssignmentSettings struct {
+ // MobileAppAssignmentSettings is the base model of IOSStoreAppAssignmentSettings
+ MobileAppAssignmentSettings
+ // VpnConfigurationID The VPN Configuration Id to apply for this app.
+ VpnConfigurationID *string `json:"vpnConfigurationId,omitempty"`
+ // UninstallOnDeviceRemoval Whether or not to uninstall the app when device is removed from Intune.
+ UninstallOnDeviceRemoval *bool `json:"uninstallOnDeviceRemoval,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSStoreAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSStoreAppModel.go
new file mode 100644
index 00000000..68700edd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSStoreAppModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSStoreApp Contains properties and inherited properties for iOS store apps.
+type IOSStoreApp struct {
+ // MobileApp is the base model of IOSStoreApp
+ MobileApp
+ // BundleID The Identity Name.
+ BundleID *string `json:"bundleId,omitempty"`
+ // AppStoreURL The Apple App Store URL
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+ // ApplicableDeviceType The iOS architecture for which this app can run on.
+ ApplicableDeviceType *IOSDeviceType `json:"applicableDeviceType,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *IOSMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSTrustedRootCertificateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSTrustedRootCertificateModel.go
new file mode 100644
index 00000000..31b64426
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSTrustedRootCertificateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSTrustedRootCertificate iOS Trusted Root Certificate configuration profile.
+type IOSTrustedRootCertificate struct {
+ // DeviceConfiguration is the base model of IOSTrustedRootCertificate
+ DeviceConfiguration
+ // TrustedRootCertificate Trusted Root Certificate.
+ TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"`
+ // CertFileName File name to display in UI.
+ CertFileName *string `json:"certFileName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSTrustedRootCertificateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSTrustedRootCertificateRequest.go
new file mode 100644
index 00000000..8dc88046
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSTrustedRootCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IOSTrustedRootCertificateRequestBuilder is request builder for IOSTrustedRootCertificate
+type IOSTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSTrustedRootCertificateRequest
+func (b *IOSTrustedRootCertificateRequestBuilder) Request() *IOSTrustedRootCertificateRequest {
+ return &IOSTrustedRootCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSTrustedRootCertificateRequest is request for IOSTrustedRootCertificate
+type IOSTrustedRootCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSTrustedRootCertificate
+func (r *IOSTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *IOSTrustedRootCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSTrustedRootCertificate
+func (r *IOSTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *IOSTrustedRootCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSTrustedRootCertificate
+func (r *IOSTrustedRootCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSUpdateConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSUpdateConfigurationModel.go
new file mode 100644
index 00000000..8ac45dda
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSUpdateConfigurationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// IOSUpdateConfiguration IOS Update Configuration, allows you to configure time window within week to install iOS updates
+type IOSUpdateConfiguration struct {
+ // DeviceConfiguration is the base model of IOSUpdateConfiguration
+ DeviceConfiguration
+ // IsEnabled Is setting enabled in UI
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // ActiveHoursStart Active Hours Start (active hours mean the time window when updates install should not happen)
+ ActiveHoursStart *time.Time `json:"activeHoursStart,omitempty"`
+ // ActiveHoursEnd Active Hours End (active hours mean the time window when updates install should not happen)
+ ActiveHoursEnd *time.Time `json:"activeHoursEnd,omitempty"`
+ // ScheduledInstallDays Days in week for which active hours are configured. This collection can contain a maximum of 7 elements.
+ ScheduledInstallDays []DayOfWeek `json:"scheduledInstallDays,omitempty"`
+ // UtcTimeOffsetInMinutes UTC Time Offset indicated in minutes
+ UtcTimeOffsetInMinutes *int `json:"utcTimeOffsetInMinutes,omitempty"`
+ // EnforcedSoftwareUpdateDelayInDays Days before software updates are visible to iOS devices ranging from 0 to 90 inclusive
+ EnforcedSoftwareUpdateDelayInDays *int `json:"enforcedSoftwareUpdateDelayInDays,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSUpdateDeviceStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSUpdateDeviceStatusModel.go
new file mode 100644
index 00000000..4b4b5b1c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSUpdateDeviceStatusModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// IOSUpdateDeviceStatus undocumented
+type IOSUpdateDeviceStatus struct {
+ // Entity is the base model of IOSUpdateDeviceStatus
+ Entity
+ // InstallStatus The installation status of the policy report.
+ InstallStatus *IOSUpdatesInstallStatus `json:"installStatus,omitempty"`
+ // OsVersion The device version that is being reported.
+ OsVersion *string `json:"osVersion,omitempty"`
+ // DeviceID The device id that is being reported.
+ DeviceID *string `json:"deviceId,omitempty"`
+ // UserID The User id that is being reported.
+ UserID *string `json:"userId,omitempty"`
+ // DeviceDisplayName Device name of the DevicePolicyStatus.
+ DeviceDisplayName *string `json:"deviceDisplayName,omitempty"`
+ // UserName The User Name that is being reported
+ UserName *string `json:"userName,omitempty"`
+ // DeviceModel The device model that is being reported
+ DeviceModel *string `json:"deviceModel,omitempty"`
+ // Platform Platform of the device that is being reported
+ Platform *int `json:"platform,omitempty"`
+ // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires
+ ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"`
+ // Status Compliance status of the policy report.
+ Status *ComplianceStatus `json:"status,omitempty"`
+ // LastReportedDateTime Last modified date time of the policy report.
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSUpdateDeviceStatusRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSUpdateDeviceStatusRequest.go
new file mode 100644
index 00000000..535f3b8b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSUpdateDeviceStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IOSUpdateDeviceStatusRequestBuilder is request builder for IOSUpdateDeviceStatus
+type IOSUpdateDeviceStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSUpdateDeviceStatusRequest
+func (b *IOSUpdateDeviceStatusRequestBuilder) Request() *IOSUpdateDeviceStatusRequest {
+ return &IOSUpdateDeviceStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSUpdateDeviceStatusRequest is request for IOSUpdateDeviceStatus
+type IOSUpdateDeviceStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSUpdateDeviceStatus
+func (r *IOSUpdateDeviceStatusRequest) Get(ctx context.Context) (resObj *IOSUpdateDeviceStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSUpdateDeviceStatus
+func (r *IOSUpdateDeviceStatusRequest) Update(ctx context.Context, reqObj *IOSUpdateDeviceStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSUpdateDeviceStatus
+func (r *IOSUpdateDeviceStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSUpdatesInstallStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSUpdatesInstallStatusEnum.go
new file mode 100644
index 00000000..4162ba14
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSUpdatesInstallStatusEnum.go
@@ -0,0 +1,145 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSUpdatesInstallStatus undocumented
+type IOSUpdatesInstallStatus int
+
+const (
+ // IOSUpdatesInstallStatusVSuccess undocumented
+ IOSUpdatesInstallStatusVSuccess IOSUpdatesInstallStatus = 0
+ // IOSUpdatesInstallStatusVAvailable undocumented
+ IOSUpdatesInstallStatusVAvailable IOSUpdatesInstallStatus = 1
+ // IOSUpdatesInstallStatusVIdle undocumented
+ IOSUpdatesInstallStatusVIdle IOSUpdatesInstallStatus = 2
+ // IOSUpdatesInstallStatusVUnknown undocumented
+ IOSUpdatesInstallStatusVUnknown IOSUpdatesInstallStatus = 3
+ // IOSUpdatesInstallStatusVDownloading undocumented
+ IOSUpdatesInstallStatusVDownloading IOSUpdatesInstallStatus = -2016330712
+ // IOSUpdatesInstallStatusVDownloadFailed undocumented
+ IOSUpdatesInstallStatusVDownloadFailed IOSUpdatesInstallStatus = -2016330711
+ // IOSUpdatesInstallStatusVDownloadRequiresComputer undocumented
+ IOSUpdatesInstallStatusVDownloadRequiresComputer IOSUpdatesInstallStatus = -2016330710
+ // IOSUpdatesInstallStatusVDownloadInsufficientSpace undocumented
+ IOSUpdatesInstallStatusVDownloadInsufficientSpace IOSUpdatesInstallStatus = -2016330709
+ // IOSUpdatesInstallStatusVDownloadInsufficientPower undocumented
+ IOSUpdatesInstallStatusVDownloadInsufficientPower IOSUpdatesInstallStatus = -2016330708
+ // IOSUpdatesInstallStatusVDownloadInsufficientNetwork undocumented
+ IOSUpdatesInstallStatusVDownloadInsufficientNetwork IOSUpdatesInstallStatus = -2016330707
+ // IOSUpdatesInstallStatusVInstalling undocumented
+ IOSUpdatesInstallStatusVInstalling IOSUpdatesInstallStatus = -2016330706
+ // IOSUpdatesInstallStatusVInstallInsufficientSpace undocumented
+ IOSUpdatesInstallStatusVInstallInsufficientSpace IOSUpdatesInstallStatus = -2016330705
+ // IOSUpdatesInstallStatusVInstallInsufficientPower undocumented
+ IOSUpdatesInstallStatusVInstallInsufficientPower IOSUpdatesInstallStatus = -2016330704
+ // IOSUpdatesInstallStatusVInstallPhoneCallInProgress undocumented
+ IOSUpdatesInstallStatusVInstallPhoneCallInProgress IOSUpdatesInstallStatus = -2016330703
+ // IOSUpdatesInstallStatusVInstallFailed undocumented
+ IOSUpdatesInstallStatusVInstallFailed IOSUpdatesInstallStatus = -2016330702
+ // IOSUpdatesInstallStatusVNotSupportedOperation undocumented
+ IOSUpdatesInstallStatusVNotSupportedOperation IOSUpdatesInstallStatus = -2016330701
+ // IOSUpdatesInstallStatusVSharedDeviceUserLoggedInError undocumented
+ IOSUpdatesInstallStatusVSharedDeviceUserLoggedInError IOSUpdatesInstallStatus = -2016330699
+)
+
+// IOSUpdatesInstallStatusPSuccess returns a pointer to IOSUpdatesInstallStatusVSuccess
+func IOSUpdatesInstallStatusPSuccess() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVSuccess
+ return &v
+}
+
+// IOSUpdatesInstallStatusPAvailable returns a pointer to IOSUpdatesInstallStatusVAvailable
+func IOSUpdatesInstallStatusPAvailable() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVAvailable
+ return &v
+}
+
+// IOSUpdatesInstallStatusPIdle returns a pointer to IOSUpdatesInstallStatusVIdle
+func IOSUpdatesInstallStatusPIdle() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVIdle
+ return &v
+}
+
+// IOSUpdatesInstallStatusPUnknown returns a pointer to IOSUpdatesInstallStatusVUnknown
+func IOSUpdatesInstallStatusPUnknown() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVUnknown
+ return &v
+}
+
+// IOSUpdatesInstallStatusPDownloading returns a pointer to IOSUpdatesInstallStatusVDownloading
+func IOSUpdatesInstallStatusPDownloading() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVDownloading
+ return &v
+}
+
+// IOSUpdatesInstallStatusPDownloadFailed returns a pointer to IOSUpdatesInstallStatusVDownloadFailed
+func IOSUpdatesInstallStatusPDownloadFailed() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVDownloadFailed
+ return &v
+}
+
+// IOSUpdatesInstallStatusPDownloadRequiresComputer returns a pointer to IOSUpdatesInstallStatusVDownloadRequiresComputer
+func IOSUpdatesInstallStatusPDownloadRequiresComputer() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVDownloadRequiresComputer
+ return &v
+}
+
+// IOSUpdatesInstallStatusPDownloadInsufficientSpace returns a pointer to IOSUpdatesInstallStatusVDownloadInsufficientSpace
+func IOSUpdatesInstallStatusPDownloadInsufficientSpace() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVDownloadInsufficientSpace
+ return &v
+}
+
+// IOSUpdatesInstallStatusPDownloadInsufficientPower returns a pointer to IOSUpdatesInstallStatusVDownloadInsufficientPower
+func IOSUpdatesInstallStatusPDownloadInsufficientPower() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVDownloadInsufficientPower
+ return &v
+}
+
+// IOSUpdatesInstallStatusPDownloadInsufficientNetwork returns a pointer to IOSUpdatesInstallStatusVDownloadInsufficientNetwork
+func IOSUpdatesInstallStatusPDownloadInsufficientNetwork() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVDownloadInsufficientNetwork
+ return &v
+}
+
+// IOSUpdatesInstallStatusPInstalling returns a pointer to IOSUpdatesInstallStatusVInstalling
+func IOSUpdatesInstallStatusPInstalling() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVInstalling
+ return &v
+}
+
+// IOSUpdatesInstallStatusPInstallInsufficientSpace returns a pointer to IOSUpdatesInstallStatusVInstallInsufficientSpace
+func IOSUpdatesInstallStatusPInstallInsufficientSpace() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVInstallInsufficientSpace
+ return &v
+}
+
+// IOSUpdatesInstallStatusPInstallInsufficientPower returns a pointer to IOSUpdatesInstallStatusVInstallInsufficientPower
+func IOSUpdatesInstallStatusPInstallInsufficientPower() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVInstallInsufficientPower
+ return &v
+}
+
+// IOSUpdatesInstallStatusPInstallPhoneCallInProgress returns a pointer to IOSUpdatesInstallStatusVInstallPhoneCallInProgress
+func IOSUpdatesInstallStatusPInstallPhoneCallInProgress() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVInstallPhoneCallInProgress
+ return &v
+}
+
+// IOSUpdatesInstallStatusPInstallFailed returns a pointer to IOSUpdatesInstallStatusVInstallFailed
+func IOSUpdatesInstallStatusPInstallFailed() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVInstallFailed
+ return &v
+}
+
+// IOSUpdatesInstallStatusPNotSupportedOperation returns a pointer to IOSUpdatesInstallStatusVNotSupportedOperation
+func IOSUpdatesInstallStatusPNotSupportedOperation() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVNotSupportedOperation
+ return &v
+}
+
+// IOSUpdatesInstallStatusPSharedDeviceUserLoggedInError returns a pointer to IOSUpdatesInstallStatusVSharedDeviceUserLoggedInError
+func IOSUpdatesInstallStatusPSharedDeviceUserLoggedInError() *IOSUpdatesInstallStatus {
+ v := IOSUpdatesInstallStatusVSharedDeviceUserLoggedInError
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSVpnConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVpnConfigurationModel.go
new file mode 100644
index 00000000..af47f1b5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVpnConfigurationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSVpnConfiguration By providing the configurations in this profile you can instruct the iOS device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.
+type IOSVpnConfiguration struct {
+ // AppleVpnConfiguration is the base model of IOSVpnConfiguration
+ AppleVpnConfiguration
+ // ProviderType Provider type for per-app VPN.
+ ProviderType *VpnProviderType `json:"providerType,omitempty"`
+ // UserDomain Zscaler only. Enter a static domain to pre-populate the login field with in the Zscaler app. If this is left empty, the user's Azure Active Directory domain will be used instead.
+ UserDomain *string `json:"userDomain,omitempty"`
+ // StrictEnforcement Zscaler only. Blocks network traffic until the user signs into Zscaler app. "True" means traffic is blocked.
+ StrictEnforcement *bool `json:"strictEnforcement,omitempty"`
+ // CloudName Zscaler only. Zscaler cloud which the user is assigned to.
+ CloudName *string `json:"cloudName,omitempty"`
+ // ExcludeList Zscaler only. List of network addresses which are not sent through the Zscaler cloud.
+ ExcludeList []string `json:"excludeList,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *IOSCertificateProfileBase `json:"identityCertificate,omitempty"`
+ // DerivedCredentialSettings undocumented
+ DerivedCredentialSettings *DeviceManagementDerivedCredentialSettings `json:"derivedCredentialSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSVpnConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVpnConfigurationRequest.go
new file mode 100644
index 00000000..567f2569
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVpnConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IOSVpnConfigurationRequestBuilder is request builder for IOSVpnConfiguration
+type IOSVpnConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSVpnConfigurationRequest
+func (b *IOSVpnConfigurationRequestBuilder) Request() *IOSVpnConfigurationRequest {
+ return &IOSVpnConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSVpnConfigurationRequest is request for IOSVpnConfiguration
+type IOSVpnConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSVpnConfiguration
+func (r *IOSVpnConfigurationRequest) Get(ctx context.Context) (resObj *IOSVpnConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSVpnConfiguration
+func (r *IOSVpnConfigurationRequest) Update(ctx context.Context, reqObj *IOSVpnConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSVpnConfiguration
+func (r *IOSVpnConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DerivedCredentialSettings is navigation property
+func (b *IOSVpnConfigurationRequestBuilder) DerivedCredentialSettings() *DeviceManagementDerivedCredentialSettingsRequestBuilder {
+ bb := &DeviceManagementDerivedCredentialSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/derivedCredentialSettings"
+ return bb
+}
+
+// IdentityCertificate is navigation property
+func (b *IOSVpnConfigurationRequestBuilder) IdentityCertificate() *IOSCertificateProfileBaseRequestBuilder {
+ bb := &IOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSVpnSecurityAssociationParametersModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVpnSecurityAssociationParametersModel.go
new file mode 100644
index 00000000..5f6da1ac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVpnSecurityAssociationParametersModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSVpnSecurityAssociationParameters undocumented
+type IOSVpnSecurityAssociationParameters struct {
+ // Object is the base model of IOSVpnSecurityAssociationParameters
+ Object
+ // SecurityEncryptionAlgorithm Encryption algorithm
+ SecurityEncryptionAlgorithm *VpnEncryptionAlgorithmType `json:"securityEncryptionAlgorithm,omitempty"`
+ // SecurityIntegrityAlgorithm Integrity algorithm
+ SecurityIntegrityAlgorithm *VpnIntegrityAlgorithmType `json:"securityIntegrityAlgorithm,omitempty"`
+ // SecurityDiffieHellmanGroup Diffie-Hellman Group
+ SecurityDiffieHellmanGroup *int `json:"securityDiffieHellmanGroup,omitempty"`
+ // LifetimeInMinutes Lifetime (minutes)
+ LifetimeInMinutes *int `json:"lifetimeInMinutes,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAction.go
new file mode 100644
index 00000000..72e70100
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAction.go
@@ -0,0 +1,105 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IOSVppAppRevokeAllLicensesRequestParameter undocumented
+type IOSVppAppRevokeAllLicensesRequestParameter struct {
+ // NotifyManagedDevices undocumented
+ NotifyManagedDevices *bool `json:"notifyManagedDevices,omitempty"`
+}
+
+// IOSVppAppRevokeUserLicenseRequestParameter undocumented
+type IOSVppAppRevokeUserLicenseRequestParameter struct {
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // NotifyManagedDevices undocumented
+ NotifyManagedDevices *bool `json:"notifyManagedDevices,omitempty"`
+}
+
+// IOSVppAppRevokeDeviceLicenseRequestParameter undocumented
+type IOSVppAppRevokeDeviceLicenseRequestParameter struct {
+ // ManagedDeviceID undocumented
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // NotifyManagedDevices undocumented
+ NotifyManagedDevices *bool `json:"notifyManagedDevices,omitempty"`
+}
+
+//
+type IOSVppAppRevokeAllLicensesRequestBuilder struct{ BaseRequestBuilder }
+
+// RevokeAllLicenses action undocumented
+func (b *IOSVppAppRequestBuilder) RevokeAllLicenses(reqObj *IOSVppAppRevokeAllLicensesRequestParameter) *IOSVppAppRevokeAllLicensesRequestBuilder {
+ bb := &IOSVppAppRevokeAllLicensesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/revokeAllLicenses"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type IOSVppAppRevokeAllLicensesRequest struct{ BaseRequest }
+
+//
+func (b *IOSVppAppRevokeAllLicensesRequestBuilder) Request() *IOSVppAppRevokeAllLicensesRequest {
+ return &IOSVppAppRevokeAllLicensesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *IOSVppAppRevokeAllLicensesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type IOSVppAppRevokeUserLicenseRequestBuilder struct{ BaseRequestBuilder }
+
+// RevokeUserLicense action undocumented
+func (b *IOSVppAppRequestBuilder) RevokeUserLicense(reqObj *IOSVppAppRevokeUserLicenseRequestParameter) *IOSVppAppRevokeUserLicenseRequestBuilder {
+ bb := &IOSVppAppRevokeUserLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/revokeUserLicense"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type IOSVppAppRevokeUserLicenseRequest struct{ BaseRequest }
+
+//
+func (b *IOSVppAppRevokeUserLicenseRequestBuilder) Request() *IOSVppAppRevokeUserLicenseRequest {
+ return &IOSVppAppRevokeUserLicenseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *IOSVppAppRevokeUserLicenseRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type IOSVppAppRevokeDeviceLicenseRequestBuilder struct{ BaseRequestBuilder }
+
+// RevokeDeviceLicense action undocumented
+func (b *IOSVppAppRequestBuilder) RevokeDeviceLicense(reqObj *IOSVppAppRevokeDeviceLicenseRequestParameter) *IOSVppAppRevokeDeviceLicenseRequestBuilder {
+ bb := &IOSVppAppRevokeDeviceLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/revokeDeviceLicense"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type IOSVppAppRevokeDeviceLicenseRequest struct{ BaseRequest }
+
+//
+func (b *IOSVppAppRevokeDeviceLicenseRequestBuilder) Request() *IOSVppAppRevokeDeviceLicenseRequest {
+ return &IOSVppAppRevokeDeviceLicenseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *IOSVppAppRevokeDeviceLicenseRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAssignedDeviceLicenseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAssignedDeviceLicenseModel.go
new file mode 100644
index 00000000..789398bd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAssignedDeviceLicenseModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSVppAppAssignedDeviceLicense iOS Volume Purchase Program device license assignment. This class does not support Create, Delete, or Update.
+type IOSVppAppAssignedDeviceLicense struct {
+ // IOSVppAppAssignedLicense is the base model of IOSVppAppAssignedDeviceLicense
+ IOSVppAppAssignedLicense
+ // ManagedDeviceID The managed device ID.
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // DeviceName The device name.
+ DeviceName *string `json:"deviceName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAssignedLicenseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAssignedLicenseModel.go
new file mode 100644
index 00000000..95ecafbe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAssignedLicenseModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSVppAppAssignedLicense iOS Volume Purchase Program license assignment. This class does not support Create, Delete, or Update.
+type IOSVppAppAssignedLicense struct {
+ // Entity is the base model of IOSVppAppAssignedLicense
+ Entity
+ // UserEmailAddress The user email address.
+ UserEmailAddress *string `json:"userEmailAddress,omitempty"`
+ // UserID The user ID.
+ UserID *string `json:"userId,omitempty"`
+ // UserName The user name.
+ UserName *string `json:"userName,omitempty"`
+ // UserPrincipalName The user principal name.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAssignedLicenseRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAssignedLicenseRequest.go
new file mode 100644
index 00000000..3030b0af
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAssignedLicenseRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IOSVppAppAssignedLicenseRequestBuilder is request builder for IOSVppAppAssignedLicense
+type IOSVppAppAssignedLicenseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSVppAppAssignedLicenseRequest
+func (b *IOSVppAppAssignedLicenseRequestBuilder) Request() *IOSVppAppAssignedLicenseRequest {
+ return &IOSVppAppAssignedLicenseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSVppAppAssignedLicenseRequest is request for IOSVppAppAssignedLicense
+type IOSVppAppAssignedLicenseRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSVppAppAssignedLicense
+func (r *IOSVppAppAssignedLicenseRequest) Get(ctx context.Context) (resObj *IOSVppAppAssignedLicense, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSVppAppAssignedLicense
+func (r *IOSVppAppAssignedLicenseRequest) Update(ctx context.Context, reqObj *IOSVppAppAssignedLicense) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSVppAppAssignedLicense
+func (r *IOSVppAppAssignedLicenseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAssignedUserLicenseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAssignedUserLicenseModel.go
new file mode 100644
index 00000000..be6b8ab5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAssignedUserLicenseModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSVppAppAssignedUserLicense iOS Volume Purchase Program user license assignment. This class does not support Create, Delete, or Update.
+type IOSVppAppAssignedUserLicense struct {
+ // IOSVppAppAssignedLicense is the base model of IOSVppAppAssignedUserLicense
+ IOSVppAppAssignedLicense
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAssignmentSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAssignmentSettingsModel.go
new file mode 100644
index 00000000..cdacd968
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppAssignmentSettingsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSVppAppAssignmentSettings undocumented
+type IOSVppAppAssignmentSettings struct {
+ // MobileAppAssignmentSettings is the base model of IOSVppAppAssignmentSettings
+ MobileAppAssignmentSettings
+ // UseDeviceLicensing Whether or not to use device licensing.
+ UseDeviceLicensing *bool `json:"useDeviceLicensing,omitempty"`
+ // VpnConfigurationID The VPN Configuration Id to apply for this app.
+ VpnConfigurationID *string `json:"vpnConfigurationId,omitempty"`
+ // UninstallOnDeviceRemoval Whether or not to uninstall the app when device is removed from Intune.
+ UninstallOnDeviceRemoval *bool `json:"uninstallOnDeviceRemoval,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppModel.go
new file mode 100644
index 00000000..9570af5a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// IOSVppApp Contains properties and inherited properties for iOS Volume-Purchased Program (VPP) Apps.
+type IOSVppApp struct {
+ // MobileApp is the base model of IOSVppApp
+ MobileApp
+ // UsedLicenseCount The number of VPP licenses in use.
+ UsedLicenseCount *int `json:"usedLicenseCount,omitempty"`
+ // TotalLicenseCount The total number of VPP licenses.
+ TotalLicenseCount *int `json:"totalLicenseCount,omitempty"`
+ // ReleaseDateTime The VPP application release date and time.
+ ReleaseDateTime *time.Time `json:"releaseDateTime,omitempty"`
+ // AppStoreURL The store URL.
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+ // LicensingType The supported License Type.
+ LicensingType *VppLicensingType `json:"licensingType,omitempty"`
+ // ApplicableDeviceType The applicable iOS Device Type.
+ ApplicableDeviceType *IOSDeviceType `json:"applicableDeviceType,omitempty"`
+ // VppTokenOrganizationName The organization associated with the Apple Volume Purchase Program Token
+ VppTokenOrganizationName *string `json:"vppTokenOrganizationName,omitempty"`
+ // VppTokenAccountType The type of volume purchase program which the given Apple Volume Purchase Program Token is associated with. Possible values are: `business`, `education`.
+ VppTokenAccountType *VppTokenAccountType `json:"vppTokenAccountType,omitempty"`
+ // VppTokenAppleID The Apple Id associated with the given Apple Volume Purchase Program Token.
+ VppTokenAppleID *string `json:"vppTokenAppleId,omitempty"`
+ // BundleID The Identity Name.
+ BundleID *string `json:"bundleId,omitempty"`
+ // VppTokenID Identifier of the VPP token associated with this app.
+ VppTokenID *string `json:"vppTokenId,omitempty"`
+ // RevokeLicenseActionResults Results of revoke license actions on this app.
+ RevokeLicenseActionResults []IOSVppAppRevokeLicensesActionResult `json:"revokeLicenseActionResults,omitempty"`
+ // AssignedLicenses undocumented
+ AssignedLicenses []IOSVppAppAssignedLicense `json:"assignedLicenses,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppRequest.go
new file mode 100644
index 00000000..c74971b4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// IOSVppAppRequestBuilder is request builder for IOSVppApp
+type IOSVppAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSVppAppRequest
+func (b *IOSVppAppRequestBuilder) Request() *IOSVppAppRequest {
+ return &IOSVppAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSVppAppRequest is request for IOSVppApp
+type IOSVppAppRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSVppApp
+func (r *IOSVppAppRequest) Get(ctx context.Context) (resObj *IOSVppApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSVppApp
+func (r *IOSVppAppRequest) Update(ctx context.Context, reqObj *IOSVppApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSVppApp
+func (r *IOSVppAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AssignedLicenses returns request builder for IOSVppAppAssignedLicense collection
+func (b *IOSVppAppRequestBuilder) AssignedLicenses() *IOSVppAppAssignedLicensesCollectionRequestBuilder {
+ bb := &IOSVppAppAssignedLicensesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignedLicenses"
+ return bb
+}
+
+// IOSVppAppAssignedLicensesCollectionRequestBuilder is request builder for IOSVppAppAssignedLicense collection
+type IOSVppAppAssignedLicensesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IOSVppAppAssignedLicense collection
+func (b *IOSVppAppAssignedLicensesCollectionRequestBuilder) Request() *IOSVppAppAssignedLicensesCollectionRequest {
+ return &IOSVppAppAssignedLicensesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IOSVppAppAssignedLicense item
+func (b *IOSVppAppAssignedLicensesCollectionRequestBuilder) ID(id string) *IOSVppAppAssignedLicenseRequestBuilder {
+ bb := &IOSVppAppAssignedLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSVppAppAssignedLicensesCollectionRequest is request for IOSVppAppAssignedLicense collection
+type IOSVppAppAssignedLicensesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IOSVppAppAssignedLicense collection
+func (r *IOSVppAppAssignedLicensesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]IOSVppAppAssignedLicense, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IOSVppAppAssignedLicense
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IOSVppAppAssignedLicense
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IOSVppAppAssignedLicense collection
+func (r *IOSVppAppAssignedLicensesCollectionRequest) Get(ctx context.Context) ([]IOSVppAppAssignedLicense, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for IOSVppAppAssignedLicense collection
+func (r *IOSVppAppAssignedLicensesCollectionRequest) Add(ctx context.Context, reqObj *IOSVppAppAssignedLicense) (resObj *IOSVppAppAssignedLicense, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppRevokeLicensesActionResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppRevokeLicensesActionResultModel.go
new file mode 100644
index 00000000..e7e75d54
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppAppRevokeLicensesActionResultModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// IOSVppAppRevokeLicensesActionResult undocumented
+type IOSVppAppRevokeLicensesActionResult struct {
+ // Object is the base model of IOSVppAppRevokeLicensesActionResult
+ Object
+ // UserID UserId associated with the action.
+ UserID *string `json:"userId,omitempty"`
+ // ManagedDeviceID DeviceId associated with the action.
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // TotalLicensesCount A count of the number of licenses for which revoke was attempted.
+ TotalLicensesCount *int `json:"totalLicensesCount,omitempty"`
+ // FailedLicensesCount A count of the number of licenses for which revoke failed.
+ FailedLicensesCount *int `json:"failedLicensesCount,omitempty"`
+ // ActionFailureReason The reason for the revoke licenses action failure.
+ ActionFailureReason *VppTokenActionFailureReason `json:"actionFailureReason,omitempty"`
+ // ActionName Action name
+ ActionName *string `json:"actionName,omitempty"`
+ // ActionState State of the action
+ ActionState *ActionState `json:"actionState,omitempty"`
+ // StartDateTime Time the action was initiated
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // LastUpdatedDateTime Time the action state was last updated
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppEBookAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppEBookAssignmentModel.go
new file mode 100644
index 00000000..98b7995f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppEBookAssignmentModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSVppEBookAssignment Contains properties used to assign an iOS VPP EBook to a group.
+type IOSVppEBookAssignment struct {
+ // ManagedEBookAssignment is the base model of IOSVppEBookAssignment
+ ManagedEBookAssignment
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppEBookModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppEBookModel.go
new file mode 100644
index 00000000..a851cc6b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSVppEBookModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSVppEBook A class containing the properties for iOS Vpp eBook.
+type IOSVppEBook struct {
+ // ManagedEBook is the base model of IOSVppEBook
+ ManagedEBook
+ // VppTokenID The Vpp token ID.
+ VppTokenID *UUID `json:"vppTokenId,omitempty"`
+ // AppleID The Apple ID associated with Vpp token.
+ AppleID *string `json:"appleId,omitempty"`
+ // VppOrganizationName The Vpp token's organization name.
+ VppOrganizationName *string `json:"vppOrganizationName,omitempty"`
+ // Genres Genres.
+ Genres []string `json:"genres,omitempty"`
+ // Language Language.
+ Language *string `json:"language,omitempty"`
+ // Seller Seller.
+ Seller *string `json:"seller,omitempty"`
+ // TotalLicenseCount Total license count.
+ TotalLicenseCount *int `json:"totalLicenseCount,omitempty"`
+ // UsedLicenseCount Used license count.
+ UsedLicenseCount *int `json:"usedLicenseCount,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSWallpaperDisplayLocationEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSWallpaperDisplayLocationEnum.go
new file mode 100644
index 00000000..bf4b54b6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSWallpaperDisplayLocationEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSWallpaperDisplayLocation undocumented
+type IOSWallpaperDisplayLocation int
+
+const (
+ // IOSWallpaperDisplayLocationVNotConfigured undocumented
+ IOSWallpaperDisplayLocationVNotConfigured IOSWallpaperDisplayLocation = 0
+ // IOSWallpaperDisplayLocationVLockScreen undocumented
+ IOSWallpaperDisplayLocationVLockScreen IOSWallpaperDisplayLocation = 1
+ // IOSWallpaperDisplayLocationVHomeScreen undocumented
+ IOSWallpaperDisplayLocationVHomeScreen IOSWallpaperDisplayLocation = 2
+ // IOSWallpaperDisplayLocationVLockAndHomeScreens undocumented
+ IOSWallpaperDisplayLocationVLockAndHomeScreens IOSWallpaperDisplayLocation = 3
+)
+
+// IOSWallpaperDisplayLocationPNotConfigured returns a pointer to IOSWallpaperDisplayLocationVNotConfigured
+func IOSWallpaperDisplayLocationPNotConfigured() *IOSWallpaperDisplayLocation {
+ v := IOSWallpaperDisplayLocationVNotConfigured
+ return &v
+}
+
+// IOSWallpaperDisplayLocationPLockScreen returns a pointer to IOSWallpaperDisplayLocationVLockScreen
+func IOSWallpaperDisplayLocationPLockScreen() *IOSWallpaperDisplayLocation {
+ v := IOSWallpaperDisplayLocationVLockScreen
+ return &v
+}
+
+// IOSWallpaperDisplayLocationPHomeScreen returns a pointer to IOSWallpaperDisplayLocationVHomeScreen
+func IOSWallpaperDisplayLocationPHomeScreen() *IOSWallpaperDisplayLocation {
+ v := IOSWallpaperDisplayLocationVHomeScreen
+ return &v
+}
+
+// IOSWallpaperDisplayLocationPLockAndHomeScreens returns a pointer to IOSWallpaperDisplayLocationVLockAndHomeScreens
+func IOSWallpaperDisplayLocationPLockAndHomeScreens() *IOSWallpaperDisplayLocation {
+ v := IOSWallpaperDisplayLocationVLockAndHomeScreens
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSWebContentFilterAutoFilterModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSWebContentFilterAutoFilterModel.go
new file mode 100644
index 00000000..7dfa4bd7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSWebContentFilterAutoFilterModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSWebContentFilterAutoFilter undocumented
+type IOSWebContentFilterAutoFilter struct {
+ // IOSWebContentFilterBase is the base model of IOSWebContentFilterAutoFilter
+ IOSWebContentFilterBase
+ // AllowedUrls Additional URLs allowed for access
+ AllowedUrls []string `json:"allowedUrls,omitempty"`
+ // BlockedUrls Additional URLs blocked for access
+ BlockedUrls []string `json:"blockedUrls,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSWebContentFilterBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSWebContentFilterBaseModel.go
new file mode 100644
index 00000000..3188ac9b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSWebContentFilterBaseModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSWebContentFilterBase undocumented
+type IOSWebContentFilterBase struct {
+ // Object is the base model of IOSWebContentFilterBase
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSWebContentFilterSpecificWebsitesAccessModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSWebContentFilterSpecificWebsitesAccessModel.go
new file mode 100644
index 00000000..00c3a0a6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSWebContentFilterSpecificWebsitesAccessModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSWebContentFilterSpecificWebsitesAccess undocumented
+type IOSWebContentFilterSpecificWebsitesAccess struct {
+ // IOSWebContentFilterBase is the base model of IOSWebContentFilterSpecificWebsitesAccess
+ IOSWebContentFilterBase
+ // SpecificWebsitesOnly URL bookmarks which will be installed into built-in browser and user is only allowed to access websites through bookmarks. This collection can contain a maximum of 500 elements.
+ SpecificWebsitesOnly []IOSBookmark `json:"specificWebsitesOnly,omitempty"`
+ // WebsiteList URL bookmarks which will be installed into built-in browser and user is only allowed to access websites through bookmarks. This collection can contain a maximum of 500 elements.
+ WebsiteList []IOSBookmark `json:"websiteList,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IOSWiFiConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IOSWiFiConfigurationModel.go
new file mode 100644
index 00000000..8ee8a847
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IOSWiFiConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSWiFiConfiguration By providing the configurations in this profile you can instruct the iOS device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile.
+type IOSWiFiConfiguration struct {
+ // DeviceConfiguration is the base model of IOSWiFiConfiguration
+ DeviceConfiguration
+ // NetworkName Network Name
+ NetworkName *string `json:"networkName,omitempty"`
+ // Ssid This is the name of the Wi-Fi network that is broadcast to all devices.
+ Ssid *string `json:"ssid,omitempty"`
+ // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network.
+ ConnectAutomatically *bool `json:"connectAutomatically,omitempty"`
+ // ConnectWhenNetworkNameIsHidden Connect when the network is not broadcasting its name (SSID). When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices.
+ ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"`
+ // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type.
+ WiFiSecurityType *WiFiSecurityType `json:"wiFiSecurityType,omitempty"`
+ // ProxySettings Proxy Type for this Wi-Fi connection
+ ProxySettings *WiFiProxySetting `json:"proxySettings,omitempty"`
+ // ProxyManualAddress IP Address or DNS hostname of the proxy server when manual configuration is selected.
+ ProxyManualAddress *string `json:"proxyManualAddress,omitempty"`
+ // ProxyManualPort Port of the proxy server when manual configuration is selected.
+ ProxyManualPort *int `json:"proxyManualPort,omitempty"`
+ // ProxyAutomaticConfigurationURL URL of the proxy server automatic configuration script when automatic configuration is selected. This URL is typically the location of PAC (Proxy Auto Configuration) file.
+ ProxyAutomaticConfigurationURL *string `json:"proxyAutomaticConfigurationUrl,omitempty"`
+ // PreSharedKey This is the pre-shared key for WPA Personal Wi-Fi network.
+ PreSharedKey *string `json:"preSharedKey,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IPCategoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IPCategoryModel.go
new file mode 100644
index 00000000..3b88a9b9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IPCategoryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IPCategory undocumented
+type IPCategory struct {
+ // Object is the base model of IPCategory
+ Object
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Vendor undocumented
+ Vendor *string `json:"vendor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IPNamedLocationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IPNamedLocationModel.go
new file mode 100644
index 00000000..b463b02c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IPNamedLocationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IPNamedLocation undocumented
+type IPNamedLocation struct {
+ // NamedLocation is the base model of IPNamedLocation
+ NamedLocation
+ // IPRanges undocumented
+ IPRanges []IPRange `json:"ipRanges,omitempty"`
+ // IsTrusted undocumented
+ IsTrusted *bool `json:"isTrusted,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IPRangeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IPRangeModel.go
new file mode 100644
index 00000000..cc38506d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IPRangeModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IPRange undocumented
+type IPRange struct {
+ // Object is the base model of IPRange
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IPReferenceDataModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IPReferenceDataModel.go
new file mode 100644
index 00000000..5e6a0e47
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IPReferenceDataModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IPReferenceData undocumented
+type IPReferenceData struct {
+ // Object is the base model of IPReferenceData
+ Object
+ // Asn undocumented
+ Asn *int `json:"asn,omitempty"`
+ // City undocumented
+ City *string `json:"city,omitempty"`
+ // CountryOrRegionCode undocumented
+ CountryOrRegionCode *string `json:"countryOrRegionCode,omitempty"`
+ // Organization undocumented
+ Organization *string `json:"organization,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // Vendor undocumented
+ Vendor *string `json:"vendor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IPSecurityProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IPSecurityProfileModel.go
new file mode 100644
index 00000000..25dcd297
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IPSecurityProfileModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// IPSecurityProfile undocumented
+type IPSecurityProfile struct {
+ // Entity is the base model of IPSecurityProfile
+ Entity
+ // ActivityGroupNames undocumented
+ ActivityGroupNames []string `json:"activityGroupNames,omitempty"`
+ // Address undocumented
+ Address *string `json:"address,omitempty"`
+ // AzureSubscriptionID undocumented
+ AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // CountHits undocumented
+ CountHits *int `json:"countHits,omitempty"`
+ // CountHosts undocumented
+ CountHosts *int `json:"countHosts,omitempty"`
+ // FirstSeenDateTime undocumented
+ FirstSeenDateTime *time.Time `json:"firstSeenDateTime,omitempty"`
+ // IPCategories undocumented
+ IPCategories []IPCategory `json:"ipCategories,omitempty"`
+ // IPReferenceData undocumented
+ IPReferenceData []IPReferenceData `json:"ipReferenceData,omitempty"`
+ // LastSeenDateTime undocumented
+ LastSeenDateTime *time.Time `json:"lastSeenDateTime,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IPSecurityProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IPSecurityProfileRequest.go
new file mode 100644
index 00000000..4c946ccd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IPSecurityProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IPSecurityProfileRequestBuilder is request builder for IPSecurityProfile
+type IPSecurityProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IPSecurityProfileRequest
+func (b *IPSecurityProfileRequestBuilder) Request() *IPSecurityProfileRequest {
+ return &IPSecurityProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IPSecurityProfileRequest is request for IPSecurityProfile
+type IPSecurityProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for IPSecurityProfile
+func (r *IPSecurityProfileRequest) Get(ctx context.Context) (resObj *IPSecurityProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IPSecurityProfile
+func (r *IPSecurityProfileRequest) Update(ctx context.Context, reqObj *IPSecurityProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IPSecurityProfile
+func (r *IPSecurityProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IPv4CidrRangeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IPv4CidrRangeModel.go
new file mode 100644
index 00000000..7f50b060
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IPv4CidrRangeModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IPv4CidrRange undocumented
+type IPv4CidrRange struct {
+ // IPRange is the base model of IPv4CidrRange
+ IPRange
+ // CidrAddress undocumented
+ CidrAddress *string `json:"cidrAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IPv4RangeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IPv4RangeModel.go
new file mode 100644
index 00000000..495c0f06
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IPv4RangeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IPv4Range undocumented
+type IPv4Range struct {
+ // IPRange is the base model of IPv4Range
+ IPRange
+ // LowerAddress Lower address.
+ LowerAddress *string `json:"lowerAddress,omitempty"`
+ // UpperAddress Upper address.
+ UpperAddress *string `json:"upperAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IPv6CidrRangeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IPv6CidrRangeModel.go
new file mode 100644
index 00000000..71de48bd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IPv6CidrRangeModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IPv6CidrRange undocumented
+type IPv6CidrRange struct {
+ // IPRange is the base model of IPv6CidrRange
+ IPRange
+ // CidrAddress undocumented
+ CidrAddress *string `json:"cidrAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IPv6RangeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IPv6RangeModel.go
new file mode 100644
index 00000000..552a8862
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IPv6RangeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IPv6Range undocumented
+type IPv6Range struct {
+ // IPRange is the base model of IPv6Range
+ IPRange
+ // LowerAddress Lower address.
+ LowerAddress *string `json:"lowerAddress,omitempty"`
+ // UpperAddress Upper address.
+ UpperAddress *string `json:"upperAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ITunesPairingModeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ITunesPairingModeEnum.go
new file mode 100644
index 00000000..59e639c9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ITunesPairingModeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ITunesPairingMode undocumented
+type ITunesPairingMode int
+
+const (
+ // ITunesPairingModeVDisallow undocumented
+ ITunesPairingModeVDisallow ITunesPairingMode = 0
+ // ITunesPairingModeVAllow undocumented
+ ITunesPairingModeVAllow ITunesPairingMode = 1
+ // ITunesPairingModeVRequiresCertificate undocumented
+ ITunesPairingModeVRequiresCertificate ITunesPairingMode = 2
+)
+
+// ITunesPairingModePDisallow returns a pointer to ITunesPairingModeVDisallow
+func ITunesPairingModePDisallow() *ITunesPairingMode {
+ v := ITunesPairingModeVDisallow
+ return &v
+}
+
+// ITunesPairingModePAllow returns a pointer to ITunesPairingModeVAllow
+func ITunesPairingModePAllow() *ITunesPairingMode {
+ v := ITunesPairingModeVAllow
+ return &v
+}
+
+// ITunesPairingModePRequiresCertificate returns a pointer to ITunesPairingModeVRequiresCertificate
+func ITunesPairingModePRequiresCertificate() *ITunesPairingMode {
+ v := ITunesPairingModeVRequiresCertificate
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IdentityContainerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityContainerModel.go
new file mode 100644
index 00000000..ecc00f16
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityContainerModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IdentityContainer undocumented
+type IdentityContainer struct {
+ // Entity is the base model of IdentityContainer
+ Entity
+ // UserFlows undocumented
+ UserFlows []IdentityUserFlow `json:"userFlows,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IdentityContainerRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityContainerRequest.go
new file mode 100644
index 00000000..a168d720
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityContainerRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// IdentityContainerRequestBuilder is request builder for IdentityContainer
+type IdentityContainerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IdentityContainerRequest
+func (b *IdentityContainerRequestBuilder) Request() *IdentityContainerRequest {
+ return &IdentityContainerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IdentityContainerRequest is request for IdentityContainer
+type IdentityContainerRequest struct{ BaseRequest }
+
+// Get performs GET request for IdentityContainer
+func (r *IdentityContainerRequest) Get(ctx context.Context) (resObj *IdentityContainer, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IdentityContainer
+func (r *IdentityContainerRequest) Update(ctx context.Context, reqObj *IdentityContainer) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IdentityContainer
+func (r *IdentityContainerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserFlows returns request builder for IdentityUserFlow collection
+func (b *IdentityContainerRequestBuilder) UserFlows() *IdentityContainerUserFlowsCollectionRequestBuilder {
+ bb := &IdentityContainerUserFlowsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userFlows"
+ return bb
+}
+
+// IdentityContainerUserFlowsCollectionRequestBuilder is request builder for IdentityUserFlow collection
+type IdentityContainerUserFlowsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IdentityUserFlow collection
+func (b *IdentityContainerUserFlowsCollectionRequestBuilder) Request() *IdentityContainerUserFlowsCollectionRequest {
+ return &IdentityContainerUserFlowsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IdentityUserFlow item
+func (b *IdentityContainerUserFlowsCollectionRequestBuilder) ID(id string) *IdentityUserFlowRequestBuilder {
+ bb := &IdentityUserFlowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IdentityContainerUserFlowsCollectionRequest is request for IdentityUserFlow collection
+type IdentityContainerUserFlowsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IdentityUserFlow collection
+func (r *IdentityContainerUserFlowsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]IdentityUserFlow, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IdentityUserFlow
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IdentityUserFlow
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IdentityUserFlow collection
+func (r *IdentityContainerUserFlowsCollectionRequest) Get(ctx context.Context) ([]IdentityUserFlow, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for IdentityUserFlow collection
+func (r *IdentityContainerUserFlowsCollectionRequest) Add(ctx context.Context, reqObj *IdentityUserFlow) (resObj *IdentityUserFlow, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IdentityGovernanceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityGovernanceModel.go
new file mode 100644
index 00000000..d6d0ef2d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityGovernanceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IdentityGovernance undocumented
+type IdentityGovernance struct {
+ // Entity is the base model of IdentityGovernance
+ Entity
+ // EntitlementManagement undocumented
+ EntitlementManagement *EntitlementManagement `json:"entitlementManagement,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IdentityGovernanceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityGovernanceRequest.go
new file mode 100644
index 00000000..06784d32
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityGovernanceRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IdentityGovernanceRequestBuilder is request builder for IdentityGovernance
+type IdentityGovernanceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IdentityGovernanceRequest
+func (b *IdentityGovernanceRequestBuilder) Request() *IdentityGovernanceRequest {
+ return &IdentityGovernanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IdentityGovernanceRequest is request for IdentityGovernance
+type IdentityGovernanceRequest struct{ BaseRequest }
+
+// Get performs GET request for IdentityGovernance
+func (r *IdentityGovernanceRequest) Get(ctx context.Context) (resObj *IdentityGovernance, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IdentityGovernance
+func (r *IdentityGovernanceRequest) Update(ctx context.Context, reqObj *IdentityGovernance) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IdentityGovernance
+func (r *IdentityGovernanceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EntitlementManagement is navigation property
+func (b *IdentityGovernanceRequestBuilder) EntitlementManagement() *EntitlementManagementRequestBuilder {
+ bb := &EntitlementManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/entitlementManagement"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IdentityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityModel.go
new file mode 100644
index 00000000..5cba56a0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Identity undocumented
+type Identity struct {
+ // Object is the base model of Identity
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IdentityProviderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityProviderModel.go
new file mode 100644
index 00000000..72f9d918
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityProviderModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IdentityProvider undocumented
+type IdentityProvider struct {
+ // Entity is the base model of IdentityProvider
+ Entity
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ClientID undocumented
+ ClientID *string `json:"clientId,omitempty"`
+ // ClientSecret undocumented
+ ClientSecret *string `json:"clientSecret,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IdentityProviderRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityProviderRequest.go
new file mode 100644
index 00000000..45cacbc5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityProviderRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IdentityProviderRequestBuilder is request builder for IdentityProvider
+type IdentityProviderRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IdentityProviderRequest
+func (b *IdentityProviderRequestBuilder) Request() *IdentityProviderRequest {
+ return &IdentityProviderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IdentityProviderRequest is request for IdentityProvider
+type IdentityProviderRequest struct{ BaseRequest }
+
+// Get performs GET request for IdentityProvider
+func (r *IdentityProviderRequest) Get(ctx context.Context) (resObj *IdentityProvider, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IdentityProvider
+func (r *IdentityProviderRequest) Update(ctx context.Context, reqObj *IdentityProvider) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IdentityProvider
+func (r *IdentityProviderRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IdentityRiskEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityRiskEventModel.go
new file mode 100644
index 00000000..d80118ff
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityRiskEventModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// IdentityRiskEvent undocumented
+type IdentityRiskEvent struct {
+ // Entity is the base model of IdentityRiskEvent
+ Entity
+ // UserDisplayName undocumented
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // RiskEventDateTime undocumented
+ RiskEventDateTime *time.Time `json:"riskEventDateTime,omitempty"`
+ // RiskEventType undocumented
+ RiskEventType *string `json:"riskEventType,omitempty"`
+ // RiskLevel undocumented
+ RiskLevel *RiskLevel `json:"riskLevel,omitempty"`
+ // RiskEventStatus undocumented
+ RiskEventStatus *RiskEventStatus `json:"riskEventStatus,omitempty"`
+ // ClosedDateTime undocumented
+ ClosedDateTime *time.Time `json:"closedDateTime,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // ImpactedUser undocumented
+ ImpactedUser *User `json:"impactedUser,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IdentityRiskEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityRiskEventRequest.go
new file mode 100644
index 00000000..a9964b1f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityRiskEventRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IdentityRiskEventRequestBuilder is request builder for IdentityRiskEvent
+type IdentityRiskEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IdentityRiskEventRequest
+func (b *IdentityRiskEventRequestBuilder) Request() *IdentityRiskEventRequest {
+ return &IdentityRiskEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IdentityRiskEventRequest is request for IdentityRiskEvent
+type IdentityRiskEventRequest struct{ BaseRequest }
+
+// Get performs GET request for IdentityRiskEvent
+func (r *IdentityRiskEventRequest) Get(ctx context.Context) (resObj *IdentityRiskEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IdentityRiskEvent
+func (r *IdentityRiskEventRequest) Update(ctx context.Context, reqObj *IdentityRiskEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IdentityRiskEvent
+func (r *IdentityRiskEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ImpactedUser is navigation property
+func (b *IdentityRiskEventRequestBuilder) ImpactedUser() *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/impactedUser"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IdentitySetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IdentitySetModel.go
new file mode 100644
index 00000000..1d06013d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IdentitySetModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IdentitySet undocumented
+type IdentitySet struct {
+ // Object is the base model of IdentitySet
+ Object
+ // Application undocumented
+ Application *Identity `json:"application,omitempty"`
+ // Device undocumented
+ Device *Identity `json:"device,omitempty"`
+ // User undocumented
+ User *Identity `json:"user,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IdentityUserFlowModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityUserFlowModel.go
new file mode 100644
index 00000000..f8af2197
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityUserFlowModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IdentityUserFlow undocumented
+type IdentityUserFlow struct {
+ // Entity is the base model of IdentityUserFlow
+ Entity
+ // UserFlowType undocumented
+ UserFlowType *UserFlowType `json:"userFlowType,omitempty"`
+ // UserFlowTypeVersion undocumented
+ UserFlowTypeVersion *float64 `json:"userFlowTypeVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IdentityUserFlowRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityUserFlowRequest.go
new file mode 100644
index 00000000..fb3bebd4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityUserFlowRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IdentityUserFlowRequestBuilder is request builder for IdentityUserFlow
+type IdentityUserFlowRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IdentityUserFlowRequest
+func (b *IdentityUserFlowRequestBuilder) Request() *IdentityUserFlowRequest {
+ return &IdentityUserFlowRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IdentityUserFlowRequest is request for IdentityUserFlow
+type IdentityUserFlowRequest struct{ BaseRequest }
+
+// Get performs GET request for IdentityUserFlow
+func (r *IdentityUserFlowRequest) Get(ctx context.Context) (resObj *IdentityUserFlow, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IdentityUserFlow
+func (r *IdentityUserFlowRequest) Update(ctx context.Context, reqObj *IdentityUserFlow) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IdentityUserFlow
+func (r *IdentityUserFlowRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IdentityUserRiskModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityUserRiskModel.go
new file mode 100644
index 00000000..a4d0210d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IdentityUserRiskModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// IdentityUserRisk undocumented
+type IdentityUserRisk struct {
+ // Object is the base model of IdentityUserRisk
+ Object
+ // Level undocumented
+ Level *UserRiskLevel `json:"level,omitempty"`
+ // LastChangedDateTime undocumented
+ LastChangedDateTime *time.Time `json:"lastChangedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImageInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImageInfoModel.go
new file mode 100644
index 00000000..37dde817
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImageInfoModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ImageInfo undocumented
+type ImageInfo struct {
+ // Object is the base model of ImageInfo
+ Object
+ // IconURL undocumented
+ IconURL *string `json:"iconUrl,omitempty"`
+ // AlternativeText undocumented
+ AlternativeText *string `json:"alternativeText,omitempty"`
+ // AlternateText undocumented
+ AlternateText *string `json:"alternateText,omitempty"`
+ // AddImageQuery undocumented
+ AddImageQuery *bool `json:"addImageQuery,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImageModel.go
new file mode 100644
index 00000000..8349e70f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImageModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Image undocumented
+type Image struct {
+ // Object is the base model of Image
+ Object
+ // Height undocumented
+ Height *int `json:"height,omitempty"`
+ // Width undocumented
+ Width *int `json:"width,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImplicitGrantSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImplicitGrantSettingsModel.go
new file mode 100644
index 00000000..414c08e7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImplicitGrantSettingsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ImplicitGrantSettings undocumented
+type ImplicitGrantSettings struct {
+ // Object is the base model of ImplicitGrantSettings
+ Object
+ // EnableIDTokenIssuance undocumented
+ EnableIDTokenIssuance *bool `json:"enableIdTokenIssuance,omitempty"`
+ // EnableAccessTokenIssuance undocumented
+ EnableAccessTokenIssuance *bool `json:"enableAccessTokenIssuance,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportanceEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportanceEnum.go
new file mode 100644
index 00000000..910018c4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportanceEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Importance undocumented
+type Importance int
+
+const (
+ // ImportanceVLow undocumented
+ ImportanceVLow Importance = 0
+ // ImportanceVNormal undocumented
+ ImportanceVNormal Importance = 1
+ // ImportanceVHigh undocumented
+ ImportanceVHigh Importance = 2
+)
+
+// ImportancePLow returns a pointer to ImportanceVLow
+func ImportancePLow() *Importance {
+ v := ImportanceVLow
+ return &v
+}
+
+// ImportancePNormal returns a pointer to ImportanceVNormal
+func ImportancePNormal() *Importance {
+ v := ImportanceVNormal
+ return &v
+}
+
+// ImportancePHigh returns a pointer to ImportanceVHigh
+func ImportancePHigh() *Importance {
+ v := ImportanceVHigh
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportedAppleDeviceIdentityAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedAppleDeviceIdentityAction.go
new file mode 100644
index 00000000..775cd3e1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedAppleDeviceIdentityAction.go
@@ -0,0 +1,102 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestParameter undocumented
+type ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestParameter struct {
+ // ImportedAppleDeviceIdentities undocumented
+ ImportedAppleDeviceIdentities []ImportedAppleDeviceIdentity `json:"importedAppleDeviceIdentities,omitempty"`
+ // OverwriteImportedDeviceIdentities undocumented
+ OverwriteImportedDeviceIdentities *bool `json:"overwriteImportedDeviceIdentities,omitempty"`
+}
+
+//
+type ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestBuilder struct{ BaseRequestBuilder }
+
+// ImportAppleDeviceIdentityList action undocumented
+func (b *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder) ImportAppleDeviceIdentityList(reqObj *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestParameter) *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestBuilder {
+ bb := &ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/importAppleDeviceIdentityList"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequest struct{ BaseRequest }
+
+//
+func (b *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestBuilder) Request() *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequest {
+ return &ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]ImportedAppleDeviceIdentityResult, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]ImportedAppleDeviceIdentityResult
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]ImportedAppleDeviceIdentityResult
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequest) Get(ctx context.Context) ([][]ImportedAppleDeviceIdentityResult, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportedAppleDeviceIdentityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedAppleDeviceIdentityModel.go
new file mode 100644
index 00000000..f447cb55
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedAppleDeviceIdentityModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ImportedAppleDeviceIdentity The importedAppleDeviceIdentity resource represents the imported device identity of an Apple device .
+type ImportedAppleDeviceIdentity struct {
+ // Entity is the base model of ImportedAppleDeviceIdentity
+ Entity
+ // SerialNumber Device serial number
+ SerialNumber *string `json:"serialNumber,omitempty"`
+ // RequestedEnrollmentProfileID Enrollment profile Id admin intends to apply to the device during next enrollment
+ RequestedEnrollmentProfileID *string `json:"requestedEnrollmentProfileId,omitempty"`
+ // RequestedEnrollmentProfileAssignmentDateTime The time enrollment profile was assigned to the device
+ RequestedEnrollmentProfileAssignmentDateTime *time.Time `json:"requestedEnrollmentProfileAssignmentDateTime,omitempty"`
+ // IsSupervised Indicates if the Apple device is supervised. More information is at: https://support.apple.com/en-us/HT202837
+ IsSupervised *bool `json:"isSupervised,omitempty"`
+ // DiscoverySource Apple device discovery source.
+ DiscoverySource *DiscoverySource `json:"discoverySource,omitempty"`
+ // IsDeleted Indicates if the device is deleted from Apple Business Manager
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // CreatedDateTime Created Date Time of the device
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastContactedDateTime Last Contacted Date Time of the device
+ LastContactedDateTime *time.Time `json:"lastContactedDateTime,omitempty"`
+ // Description The description of the device
+ Description *string `json:"description,omitempty"`
+ // EnrollmentState The state of the device in Intune
+ EnrollmentState *EnrollmentState `json:"enrollmentState,omitempty"`
+ // Platform The platform of the Device.
+ Platform *Platform `json:"platform,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportedAppleDeviceIdentityRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedAppleDeviceIdentityRequest.go
new file mode 100644
index 00000000..7c217b29
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedAppleDeviceIdentityRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ImportedAppleDeviceIdentityRequestBuilder is request builder for ImportedAppleDeviceIdentity
+type ImportedAppleDeviceIdentityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ImportedAppleDeviceIdentityRequest
+func (b *ImportedAppleDeviceIdentityRequestBuilder) Request() *ImportedAppleDeviceIdentityRequest {
+ return &ImportedAppleDeviceIdentityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ImportedAppleDeviceIdentityRequest is request for ImportedAppleDeviceIdentity
+type ImportedAppleDeviceIdentityRequest struct{ BaseRequest }
+
+// Get performs GET request for ImportedAppleDeviceIdentity
+func (r *ImportedAppleDeviceIdentityRequest) Get(ctx context.Context) (resObj *ImportedAppleDeviceIdentity, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ImportedAppleDeviceIdentity
+func (r *ImportedAppleDeviceIdentityRequest) Update(ctx context.Context, reqObj *ImportedAppleDeviceIdentity) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ImportedAppleDeviceIdentity
+func (r *ImportedAppleDeviceIdentityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportedAppleDeviceIdentityResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedAppleDeviceIdentityResultModel.go
new file mode 100644
index 00000000..f8de8429
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedAppleDeviceIdentityResultModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ImportedAppleDeviceIdentityResult The importedAppleDeviceIdentityResult resource represents the result of attempting to import Apple devices identities.
+type ImportedAppleDeviceIdentityResult struct {
+ // ImportedAppleDeviceIdentity is the base model of ImportedAppleDeviceIdentityResult
+ ImportedAppleDeviceIdentity
+ // Status Status of imported device identity
+ Status *bool `json:"status,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportedDeviceIdentityAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedDeviceIdentityAction.go
new file mode 100644
index 00000000..2b21cb74
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedDeviceIdentityAction.go
@@ -0,0 +1,190 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestParameter undocumented
+type ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestParameter struct {
+ // ImportedDeviceIdentities undocumented
+ ImportedDeviceIdentities []ImportedDeviceIdentity `json:"importedDeviceIdentities,omitempty"`
+ // OverwriteImportedDeviceIdentities undocumented
+ OverwriteImportedDeviceIdentities *bool `json:"overwriteImportedDeviceIdentities,omitempty"`
+}
+
+// ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestParameter undocumented
+type ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestParameter struct {
+ // ImportedDeviceIdentities undocumented
+ ImportedDeviceIdentities []ImportedDeviceIdentity `json:"importedDeviceIdentities,omitempty"`
+}
+
+//
+type ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestBuilder struct{ BaseRequestBuilder }
+
+// ImportDeviceIdentityList action undocumented
+func (b *DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder) ImportDeviceIdentityList(reqObj *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestParameter) *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestBuilder {
+ bb := &ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/importDeviceIdentityList"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ImportedDeviceIdentityCollectionImportDeviceIdentityListRequest struct{ BaseRequest }
+
+//
+func (b *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestBuilder) Request() *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequest {
+ return &ImportedDeviceIdentityCollectionImportDeviceIdentityListRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]ImportedDeviceIdentityResult, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]ImportedDeviceIdentityResult
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]ImportedDeviceIdentityResult
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequest) Get(ctx context.Context) ([][]ImportedDeviceIdentityResult, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestBuilder struct{ BaseRequestBuilder }
+
+// SearchExistingIdentities action undocumented
+func (b *DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder) SearchExistingIdentities(reqObj *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestParameter) *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestBuilder {
+ bb := &ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/searchExistingIdentities"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequest struct{ BaseRequest }
+
+//
+func (b *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestBuilder) Request() *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequest {
+ return &ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]ImportedDeviceIdentity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]ImportedDeviceIdentity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]ImportedDeviceIdentity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequest) Get(ctx context.Context) ([][]ImportedDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportedDeviceIdentityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedDeviceIdentityModel.go
new file mode 100644
index 00000000..68d79244
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedDeviceIdentityModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ImportedDeviceIdentity The importedDeviceIdentity resource represents a unique hardware identity of a device that has been pre-staged for pre-enrollment configuration.
+type ImportedDeviceIdentity struct {
+ // Entity is the base model of ImportedDeviceIdentity
+ Entity
+ // ImportedDeviceIdentifier Imported Device Identifier
+ ImportedDeviceIdentifier *string `json:"importedDeviceIdentifier,omitempty"`
+ // ImportedDeviceIdentityType Type of Imported Device Identity
+ ImportedDeviceIdentityType *ImportedDeviceIdentityType `json:"importedDeviceIdentityType,omitempty"`
+ // LastModifiedDateTime Last Modified DateTime of the description
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // CreatedDateTime Created Date Time of the device
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastContactedDateTime Last Contacted Date Time of the device
+ LastContactedDateTime *time.Time `json:"lastContactedDateTime,omitempty"`
+ // Description The description of the device
+ Description *string `json:"description,omitempty"`
+ // EnrollmentState The state of the device in Intune
+ EnrollmentState *EnrollmentState `json:"enrollmentState,omitempty"`
+ // Platform The platform of the Device.
+ Platform *Platform `json:"platform,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportedDeviceIdentityRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedDeviceIdentityRequest.go
new file mode 100644
index 00000000..c391fec0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedDeviceIdentityRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ImportedDeviceIdentityRequestBuilder is request builder for ImportedDeviceIdentity
+type ImportedDeviceIdentityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ImportedDeviceIdentityRequest
+func (b *ImportedDeviceIdentityRequestBuilder) Request() *ImportedDeviceIdentityRequest {
+ return &ImportedDeviceIdentityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ImportedDeviceIdentityRequest is request for ImportedDeviceIdentity
+type ImportedDeviceIdentityRequest struct{ BaseRequest }
+
+// Get performs GET request for ImportedDeviceIdentity
+func (r *ImportedDeviceIdentityRequest) Get(ctx context.Context) (resObj *ImportedDeviceIdentity, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ImportedDeviceIdentity
+func (r *ImportedDeviceIdentityRequest) Update(ctx context.Context, reqObj *ImportedDeviceIdentity) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ImportedDeviceIdentity
+func (r *ImportedDeviceIdentityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportedDeviceIdentityResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedDeviceIdentityResultModel.go
new file mode 100644
index 00000000..fc81c4a9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedDeviceIdentityResultModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ImportedDeviceIdentityResult The importedDeviceIdentityResult resource represents the result of attempting to import a device identity.
+type ImportedDeviceIdentityResult struct {
+ // ImportedDeviceIdentity is the base model of ImportedDeviceIdentityResult
+ ImportedDeviceIdentity
+ // Status Status of imported device identity
+ Status *bool `json:"status,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportedDeviceIdentityTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedDeviceIdentityTypeEnum.go
new file mode 100644
index 00000000..1e21e24e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedDeviceIdentityTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ImportedDeviceIdentityType undocumented
+type ImportedDeviceIdentityType int
+
+const (
+ // ImportedDeviceIdentityTypeVUnknown undocumented
+ ImportedDeviceIdentityTypeVUnknown ImportedDeviceIdentityType = 0
+ // ImportedDeviceIdentityTypeVImei undocumented
+ ImportedDeviceIdentityTypeVImei ImportedDeviceIdentityType = 1
+ // ImportedDeviceIdentityTypeVSerialNumber undocumented
+ ImportedDeviceIdentityTypeVSerialNumber ImportedDeviceIdentityType = 2
+)
+
+// ImportedDeviceIdentityTypePUnknown returns a pointer to ImportedDeviceIdentityTypeVUnknown
+func ImportedDeviceIdentityTypePUnknown() *ImportedDeviceIdentityType {
+ v := ImportedDeviceIdentityTypeVUnknown
+ return &v
+}
+
+// ImportedDeviceIdentityTypePImei returns a pointer to ImportedDeviceIdentityTypeVImei
+func ImportedDeviceIdentityTypePImei() *ImportedDeviceIdentityType {
+ v := ImportedDeviceIdentityTypeVImei
+ return &v
+}
+
+// ImportedDeviceIdentityTypePSerialNumber returns a pointer to ImportedDeviceIdentityTypeVSerialNumber
+func ImportedDeviceIdentityTypePSerialNumber() *ImportedDeviceIdentityType {
+ v := ImportedDeviceIdentityTypeVSerialNumber
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityAction.go
new file mode 100644
index 00000000..695597dc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityAction.go
@@ -0,0 +1,108 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestParameter undocumented
+type ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestParameter struct {
+ // ImportedWindowsAutopilotDeviceIdentities undocumented
+ ImportedWindowsAutopilotDeviceIdentities []ImportedWindowsAutopilotDeviceIdentity `json:"importedWindowsAutopilotDeviceIdentities,omitempty"`
+}
+
+//
+type ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder struct{ BaseRequestBuilder }
+
+// Import action undocumented
+func (b *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder) Import(reqObj *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestParameter) *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder {
+ bb := &ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/import"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// Import action undocumented
+func (b *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder) Import(reqObj *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestParameter) *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder {
+ bb := &ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/import"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ImportedWindowsAutopilotDeviceIdentityCollectionImportRequest struct{ BaseRequest }
+
+//
+func (b *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder) Request() *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequest {
+ return &ImportedWindowsAutopilotDeviceIdentityCollectionImportRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]ImportedWindowsAutopilotDeviceIdentity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]ImportedWindowsAutopilotDeviceIdentity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]ImportedWindowsAutopilotDeviceIdentity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequest) Get(ctx context.Context) ([][]ImportedWindowsAutopilotDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityImportStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityImportStatusEnum.go
new file mode 100644
index 00000000..c29f75ae
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityImportStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ImportedWindowsAutopilotDeviceIdentityImportStatus undocumented
+type ImportedWindowsAutopilotDeviceIdentityImportStatus int
+
+const (
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusVUnknown undocumented
+ ImportedWindowsAutopilotDeviceIdentityImportStatusVUnknown ImportedWindowsAutopilotDeviceIdentityImportStatus = 0
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusVPending undocumented
+ ImportedWindowsAutopilotDeviceIdentityImportStatusVPending ImportedWindowsAutopilotDeviceIdentityImportStatus = 1
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusVPartial undocumented
+ ImportedWindowsAutopilotDeviceIdentityImportStatusVPartial ImportedWindowsAutopilotDeviceIdentityImportStatus = 2
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusVComplete undocumented
+ ImportedWindowsAutopilotDeviceIdentityImportStatusVComplete ImportedWindowsAutopilotDeviceIdentityImportStatus = 3
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusVError undocumented
+ ImportedWindowsAutopilotDeviceIdentityImportStatusVError ImportedWindowsAutopilotDeviceIdentityImportStatus = 4
+)
+
+// ImportedWindowsAutopilotDeviceIdentityImportStatusPUnknown returns a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVUnknown
+func ImportedWindowsAutopilotDeviceIdentityImportStatusPUnknown() *ImportedWindowsAutopilotDeviceIdentityImportStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityImportStatusVUnknown
+ return &v
+}
+
+// ImportedWindowsAutopilotDeviceIdentityImportStatusPPending returns a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVPending
+func ImportedWindowsAutopilotDeviceIdentityImportStatusPPending() *ImportedWindowsAutopilotDeviceIdentityImportStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityImportStatusVPending
+ return &v
+}
+
+// ImportedWindowsAutopilotDeviceIdentityImportStatusPPartial returns a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVPartial
+func ImportedWindowsAutopilotDeviceIdentityImportStatusPPartial() *ImportedWindowsAutopilotDeviceIdentityImportStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityImportStatusVPartial
+ return &v
+}
+
+// ImportedWindowsAutopilotDeviceIdentityImportStatusPComplete returns a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVComplete
+func ImportedWindowsAutopilotDeviceIdentityImportStatusPComplete() *ImportedWindowsAutopilotDeviceIdentityImportStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityImportStatusVComplete
+ return &v
+}
+
+// ImportedWindowsAutopilotDeviceIdentityImportStatusPError returns a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVError
+func ImportedWindowsAutopilotDeviceIdentityImportStatusPError() *ImportedWindowsAutopilotDeviceIdentityImportStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityImportStatusVError
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityModel.go
new file mode 100644
index 00000000..b419a5e4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ImportedWindowsAutopilotDeviceIdentity Imported windows autopilot devices.
+type ImportedWindowsAutopilotDeviceIdentity struct {
+ // Entity is the base model of ImportedWindowsAutopilotDeviceIdentity
+ Entity
+ // OrderIdentifier Order Id of the Windows autopilot device. - Deprecate
+ OrderIdentifier *string `json:"orderIdentifier,omitempty"`
+ // GroupTag Group Tag of the Windows autopilot device.
+ GroupTag *string `json:"groupTag,omitempty"`
+ // SerialNumber Serial number of the Windows autopilot device.
+ SerialNumber *string `json:"serialNumber,omitempty"`
+ // ProductKey Product Key of the Windows autopilot device.
+ ProductKey *string `json:"productKey,omitempty"`
+ // ImportID The Import Id of the Windows autopilot device.
+ ImportID *string `json:"importId,omitempty"`
+ // HardwareIdentifier Hardware Blob of the Windows autopilot device.
+ HardwareIdentifier *Binary `json:"hardwareIdentifier,omitempty"`
+ // State Current state of the imported device.
+ State *ImportedWindowsAutopilotDeviceIdentityState `json:"state,omitempty"`
+ // AssignedUserPrincipalName UPN of the user the device will be assigned
+ AssignedUserPrincipalName *string `json:"assignedUserPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityRequest.go
new file mode 100644
index 00000000..ae3152ff
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ImportedWindowsAutopilotDeviceIdentityRequestBuilder is request builder for ImportedWindowsAutopilotDeviceIdentity
+type ImportedWindowsAutopilotDeviceIdentityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ImportedWindowsAutopilotDeviceIdentityRequest
+func (b *ImportedWindowsAutopilotDeviceIdentityRequestBuilder) Request() *ImportedWindowsAutopilotDeviceIdentityRequest {
+ return &ImportedWindowsAutopilotDeviceIdentityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ImportedWindowsAutopilotDeviceIdentityRequest is request for ImportedWindowsAutopilotDeviceIdentity
+type ImportedWindowsAutopilotDeviceIdentityRequest struct{ BaseRequest }
+
+// Get performs GET request for ImportedWindowsAutopilotDeviceIdentity
+func (r *ImportedWindowsAutopilotDeviceIdentityRequest) Get(ctx context.Context) (resObj *ImportedWindowsAutopilotDeviceIdentity, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ImportedWindowsAutopilotDeviceIdentity
+func (r *ImportedWindowsAutopilotDeviceIdentityRequest) Update(ctx context.Context, reqObj *ImportedWindowsAutopilotDeviceIdentity) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ImportedWindowsAutopilotDeviceIdentity
+func (r *ImportedWindowsAutopilotDeviceIdentityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityStateModel.go
new file mode 100644
index 00000000..037d092d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityStateModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ImportedWindowsAutopilotDeviceIdentityState undocumented
+type ImportedWindowsAutopilotDeviceIdentityState struct {
+ // Object is the base model of ImportedWindowsAutopilotDeviceIdentityState
+ Object
+ // DeviceImportStatus Device status reported by Device Directory Service(DDS).
+ DeviceImportStatus *ImportedWindowsAutopilotDeviceIdentityImportStatus `json:"deviceImportStatus,omitempty"`
+ // DeviceRegistrationID Device Registration ID for successfully added device reported by Device Directory Service(DDS).
+ DeviceRegistrationID *string `json:"deviceRegistrationId,omitempty"`
+ // DeviceErrorCode Device error code reported by Device Directory Service(DDS).
+ DeviceErrorCode *int `json:"deviceErrorCode,omitempty"`
+ // DeviceErrorName Device error name reported by Device Directory Service(DDS).
+ DeviceErrorName *string `json:"deviceErrorName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadModel.go
new file mode 100644
index 00000000..d15e2af3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ImportedWindowsAutopilotDeviceIdentityUpload Import windows autopilot devices using upload.
+type ImportedWindowsAutopilotDeviceIdentityUpload struct {
+ // Entity is the base model of ImportedWindowsAutopilotDeviceIdentityUpload
+ Entity
+ // CreatedDateTimeUtc DateTime when the entity is created.
+ CreatedDateTimeUtc *time.Time `json:"createdDateTimeUtc,omitempty"`
+ // Status Upload status.
+ Status *ImportedWindowsAutopilotDeviceIdentityUploadStatus `json:"status,omitempty"`
+ // DeviceIdentities undocumented
+ DeviceIdentities []ImportedWindowsAutopilotDeviceIdentity `json:"deviceIdentities,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadRequest.go
new file mode 100644
index 00000000..a6cc792f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ImportedWindowsAutopilotDeviceIdentityUploadRequestBuilder is request builder for ImportedWindowsAutopilotDeviceIdentityUpload
+type ImportedWindowsAutopilotDeviceIdentityUploadRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ImportedWindowsAutopilotDeviceIdentityUploadRequest
+func (b *ImportedWindowsAutopilotDeviceIdentityUploadRequestBuilder) Request() *ImportedWindowsAutopilotDeviceIdentityUploadRequest {
+ return &ImportedWindowsAutopilotDeviceIdentityUploadRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ImportedWindowsAutopilotDeviceIdentityUploadRequest is request for ImportedWindowsAutopilotDeviceIdentityUpload
+type ImportedWindowsAutopilotDeviceIdentityUploadRequest struct{ BaseRequest }
+
+// Get performs GET request for ImportedWindowsAutopilotDeviceIdentityUpload
+func (r *ImportedWindowsAutopilotDeviceIdentityUploadRequest) Get(ctx context.Context) (resObj *ImportedWindowsAutopilotDeviceIdentityUpload, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ImportedWindowsAutopilotDeviceIdentityUpload
+func (r *ImportedWindowsAutopilotDeviceIdentityUploadRequest) Update(ctx context.Context, reqObj *ImportedWindowsAutopilotDeviceIdentityUpload) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ImportedWindowsAutopilotDeviceIdentityUpload
+func (r *ImportedWindowsAutopilotDeviceIdentityUploadRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceIdentities returns request builder for ImportedWindowsAutopilotDeviceIdentity collection
+func (b *ImportedWindowsAutopilotDeviceIdentityUploadRequestBuilder) DeviceIdentities() *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder {
+ bb := &ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceIdentities"
+ return bb
+}
+
+// ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder is request builder for ImportedWindowsAutopilotDeviceIdentity collection
+type ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ImportedWindowsAutopilotDeviceIdentity collection
+func (b *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder) Request() *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest {
+ return &ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ImportedWindowsAutopilotDeviceIdentity item
+func (b *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder) ID(id string) *ImportedWindowsAutopilotDeviceIdentityRequestBuilder {
+ bb := &ImportedWindowsAutopilotDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest is request for ImportedWindowsAutopilotDeviceIdentity collection
+type ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ImportedWindowsAutopilotDeviceIdentity collection
+func (r *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ImportedWindowsAutopilotDeviceIdentity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ImportedWindowsAutopilotDeviceIdentity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ImportedWindowsAutopilotDeviceIdentity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ImportedWindowsAutopilotDeviceIdentity collection
+func (r *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]ImportedWindowsAutopilotDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ImportedWindowsAutopilotDeviceIdentity collection
+func (r *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest) Add(ctx context.Context, reqObj *ImportedWindowsAutopilotDeviceIdentity) (resObj *ImportedWindowsAutopilotDeviceIdentity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadStatusEnum.go
new file mode 100644
index 00000000..8073038b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImportedWindowsAutopilotDeviceIdentityUploadStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ImportedWindowsAutopilotDeviceIdentityUploadStatus undocumented
+type ImportedWindowsAutopilotDeviceIdentityUploadStatus int
+
+const (
+ // ImportedWindowsAutopilotDeviceIdentityUploadStatusVNoUpload undocumented
+ ImportedWindowsAutopilotDeviceIdentityUploadStatusVNoUpload ImportedWindowsAutopilotDeviceIdentityUploadStatus = 0
+ // ImportedWindowsAutopilotDeviceIdentityUploadStatusVPending undocumented
+ ImportedWindowsAutopilotDeviceIdentityUploadStatusVPending ImportedWindowsAutopilotDeviceIdentityUploadStatus = 1
+ // ImportedWindowsAutopilotDeviceIdentityUploadStatusVComplete undocumented
+ ImportedWindowsAutopilotDeviceIdentityUploadStatusVComplete ImportedWindowsAutopilotDeviceIdentityUploadStatus = 2
+ // ImportedWindowsAutopilotDeviceIdentityUploadStatusVError undocumented
+ ImportedWindowsAutopilotDeviceIdentityUploadStatusVError ImportedWindowsAutopilotDeviceIdentityUploadStatus = 3
+)
+
+// ImportedWindowsAutopilotDeviceIdentityUploadStatusPNoUpload returns a pointer to ImportedWindowsAutopilotDeviceIdentityUploadStatusVNoUpload
+func ImportedWindowsAutopilotDeviceIdentityUploadStatusPNoUpload() *ImportedWindowsAutopilotDeviceIdentityUploadStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityUploadStatusVNoUpload
+ return &v
+}
+
+// ImportedWindowsAutopilotDeviceIdentityUploadStatusPPending returns a pointer to ImportedWindowsAutopilotDeviceIdentityUploadStatusVPending
+func ImportedWindowsAutopilotDeviceIdentityUploadStatusPPending() *ImportedWindowsAutopilotDeviceIdentityUploadStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityUploadStatusVPending
+ return &v
+}
+
+// ImportedWindowsAutopilotDeviceIdentityUploadStatusPComplete returns a pointer to ImportedWindowsAutopilotDeviceIdentityUploadStatusVComplete
+func ImportedWindowsAutopilotDeviceIdentityUploadStatusPComplete() *ImportedWindowsAutopilotDeviceIdentityUploadStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityUploadStatusVComplete
+ return &v
+}
+
+// ImportedWindowsAutopilotDeviceIdentityUploadStatusPError returns a pointer to ImportedWindowsAutopilotDeviceIdentityUploadStatusVError
+func ImportedWindowsAutopilotDeviceIdentityUploadStatusPError() *ImportedWindowsAutopilotDeviceIdentityUploadStatus {
+ v := ImportedWindowsAutopilotDeviceIdentityUploadStatusVError
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImpossibleTravelRiskEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImpossibleTravelRiskEventModel.go
new file mode 100644
index 00000000..c49e05fc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImpossibleTravelRiskEventModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ImpossibleTravelRiskEvent undocumented
+type ImpossibleTravelRiskEvent struct {
+ // LocatedRiskEvent is the base model of ImpossibleTravelRiskEvent
+ LocatedRiskEvent
+ // UserAgent undocumented
+ UserAgent *string `json:"userAgent,omitempty"`
+ // DeviceInformation undocumented
+ DeviceInformation *string `json:"deviceInformation,omitempty"`
+ // IsAtypicalLocation undocumented
+ IsAtypicalLocation *bool `json:"isAtypicalLocation,omitempty"`
+ // PreviousSigninDateTime undocumented
+ PreviousSigninDateTime *time.Time `json:"previousSigninDateTime,omitempty"`
+ // PreviousLocation undocumented
+ PreviousLocation *SignInLocation `json:"previousLocation,omitempty"`
+ // PreviousIPAddress undocumented
+ PreviousIPAddress *string `json:"previousIpAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ImpossibleTravelRiskEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ImpossibleTravelRiskEventRequest.go
new file mode 100644
index 00000000..e4e07d70
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ImpossibleTravelRiskEventRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ImpossibleTravelRiskEventRequestBuilder is request builder for ImpossibleTravelRiskEvent
+type ImpossibleTravelRiskEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ImpossibleTravelRiskEventRequest
+func (b *ImpossibleTravelRiskEventRequestBuilder) Request() *ImpossibleTravelRiskEventRequest {
+ return &ImpossibleTravelRiskEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ImpossibleTravelRiskEventRequest is request for ImpossibleTravelRiskEvent
+type ImpossibleTravelRiskEventRequest struct{ BaseRequest }
+
+// Get performs GET request for ImpossibleTravelRiskEvent
+func (r *ImpossibleTravelRiskEventRequest) Get(ctx context.Context) (resObj *ImpossibleTravelRiskEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ImpossibleTravelRiskEvent
+func (r *ImpossibleTravelRiskEventRequest) Update(ctx context.Context, reqObj *ImpossibleTravelRiskEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ImpossibleTravelRiskEvent
+func (r *ImpossibleTravelRiskEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IncomingContextModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IncomingContextModel.go
new file mode 100644
index 00000000..e927da6f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IncomingContextModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IncomingContext undocumented
+type IncomingContext struct {
+ // Object is the base model of IncomingContext
+ Object
+ // SourceParticipantID undocumented
+ SourceParticipantID *string `json:"sourceParticipantId,omitempty"`
+ // ObservedParticipantID undocumented
+ ObservedParticipantID *string `json:"observedParticipantId,omitempty"`
+ // OnBehalfOf undocumented
+ OnBehalfOf *IdentitySet `json:"onBehalfOf,omitempty"`
+ // Transferor undocumented
+ Transferor *IdentitySet `json:"transferor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IncompleteDataModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IncompleteDataModel.go
new file mode 100644
index 00000000..1e2ee640
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IncompleteDataModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// IncompleteData undocumented
+type IncompleteData struct {
+ // Object is the base model of IncompleteData
+ Object
+ // MissingDataBeforeDateTime undocumented
+ MissingDataBeforeDateTime *time.Time `json:"missingDataBeforeDateTime,omitempty"`
+ // WasThrottled undocumented
+ WasThrottled *bool `json:"wasThrottled,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InferenceClassificationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InferenceClassificationModel.go
new file mode 100644
index 00000000..4c3ef14d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InferenceClassificationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InferenceClassification undocumented
+type InferenceClassification struct {
+ // Entity is the base model of InferenceClassification
+ Entity
+ // Overrides undocumented
+ Overrides []InferenceClassificationOverride `json:"overrides,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InferenceClassificationOverrideModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InferenceClassificationOverrideModel.go
new file mode 100644
index 00000000..7202bf7b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InferenceClassificationOverrideModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InferenceClassificationOverride undocumented
+type InferenceClassificationOverride struct {
+ // Entity is the base model of InferenceClassificationOverride
+ Entity
+ // ClassifyAs undocumented
+ ClassifyAs *InferenceClassificationType `json:"classifyAs,omitempty"`
+ // SenderEmailAddress undocumented
+ SenderEmailAddress *EmailAddress `json:"senderEmailAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InferenceClassificationOverrideRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/InferenceClassificationOverrideRequest.go
new file mode 100644
index 00000000..812328d7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InferenceClassificationOverrideRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// InferenceClassificationOverrideRequestBuilder is request builder for InferenceClassificationOverride
+type InferenceClassificationOverrideRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns InferenceClassificationOverrideRequest
+func (b *InferenceClassificationOverrideRequestBuilder) Request() *InferenceClassificationOverrideRequest {
+ return &InferenceClassificationOverrideRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// InferenceClassificationOverrideRequest is request for InferenceClassificationOverride
+type InferenceClassificationOverrideRequest struct{ BaseRequest }
+
+// Get performs GET request for InferenceClassificationOverride
+func (r *InferenceClassificationOverrideRequest) Get(ctx context.Context) (resObj *InferenceClassificationOverride, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for InferenceClassificationOverride
+func (r *InferenceClassificationOverrideRequest) Update(ctx context.Context, reqObj *InferenceClassificationOverride) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for InferenceClassificationOverride
+func (r *InferenceClassificationOverrideRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InferenceClassificationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/InferenceClassificationRequest.go
new file mode 100644
index 00000000..a59de314
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InferenceClassificationRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// InferenceClassificationRequestBuilder is request builder for InferenceClassification
+type InferenceClassificationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns InferenceClassificationRequest
+func (b *InferenceClassificationRequestBuilder) Request() *InferenceClassificationRequest {
+ return &InferenceClassificationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// InferenceClassificationRequest is request for InferenceClassification
+type InferenceClassificationRequest struct{ BaseRequest }
+
+// Get performs GET request for InferenceClassification
+func (r *InferenceClassificationRequest) Get(ctx context.Context) (resObj *InferenceClassification, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for InferenceClassification
+func (r *InferenceClassificationRequest) Update(ctx context.Context, reqObj *InferenceClassification) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for InferenceClassification
+func (r *InferenceClassificationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Overrides returns request builder for InferenceClassificationOverride collection
+func (b *InferenceClassificationRequestBuilder) Overrides() *InferenceClassificationOverridesCollectionRequestBuilder {
+ bb := &InferenceClassificationOverridesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/overrides"
+ return bb
+}
+
+// InferenceClassificationOverridesCollectionRequestBuilder is request builder for InferenceClassificationOverride collection
+type InferenceClassificationOverridesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for InferenceClassificationOverride collection
+func (b *InferenceClassificationOverridesCollectionRequestBuilder) Request() *InferenceClassificationOverridesCollectionRequest {
+ return &InferenceClassificationOverridesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for InferenceClassificationOverride item
+func (b *InferenceClassificationOverridesCollectionRequestBuilder) ID(id string) *InferenceClassificationOverrideRequestBuilder {
+ bb := &InferenceClassificationOverrideRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// InferenceClassificationOverridesCollectionRequest is request for InferenceClassificationOverride collection
+type InferenceClassificationOverridesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for InferenceClassificationOverride collection
+func (r *InferenceClassificationOverridesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]InferenceClassificationOverride, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []InferenceClassificationOverride
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []InferenceClassificationOverride
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for InferenceClassificationOverride collection
+func (r *InferenceClassificationOverridesCollectionRequest) Get(ctx context.Context) ([]InferenceClassificationOverride, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for InferenceClassificationOverride collection
+func (r *InferenceClassificationOverridesCollectionRequest) Add(ctx context.Context, reqObj *InferenceClassificationOverride) (resObj *InferenceClassificationOverride, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InferenceClassificationTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/InferenceClassificationTypeEnum.go
new file mode 100644
index 00000000..c682b8f3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InferenceClassificationTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InferenceClassificationType undocumented
+type InferenceClassificationType int
+
+const (
+ // InferenceClassificationTypeVFocused undocumented
+ InferenceClassificationTypeVFocused InferenceClassificationType = 0
+ // InferenceClassificationTypeVOther undocumented
+ InferenceClassificationTypeVOther InferenceClassificationType = 1
+)
+
+// InferenceClassificationTypePFocused returns a pointer to InferenceClassificationTypeVFocused
+func InferenceClassificationTypePFocused() *InferenceClassificationType {
+ v := InferenceClassificationTypeVFocused
+ return &v
+}
+
+// InferenceClassificationTypePOther returns a pointer to InferenceClassificationTypeVOther
+func InferenceClassificationTypePOther() *InferenceClassificationType {
+ v := InferenceClassificationTypeVOther
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InferenceDataModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InferenceDataModel.go
new file mode 100644
index 00000000..f4c5e693
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InferenceDataModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InferenceData undocumented
+type InferenceData struct {
+ // Object is the base model of InferenceData
+ Object
+ // ConfidenceScore undocumented
+ ConfidenceScore *float64 `json:"confidenceScore,omitempty"`
+ // UserHasVerifiedAccuracy undocumented
+ UserHasVerifiedAccuracy *bool `json:"userHasVerifiedAccuracy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionAction.go
new file mode 100644
index 00000000..3f3079a8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionAction.go
@@ -0,0 +1,42 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// InformationProtectionEvaluateLabelsAndPoliciesRequestParameter undocumented
+type InformationProtectionEvaluateLabelsAndPoliciesRequestParameter struct {
+ // EvaluateSensitivityLabels undocumented
+ EvaluateSensitivityLabels *EvaluateSensitivityLabelsRequestObject `json:"evaluateSensitivityLabels,omitempty"`
+ // EvaluateDataLossPreventionPolicies undocumented
+ EvaluateDataLossPreventionPolicies *DlpEvaluatePoliciesRequestObject `json:"evaluateDataLossPreventionPolicies,omitempty"`
+ // ClassifyText undocumented
+ ClassifyText *TextClassificationRequestObject `json:"classifyText,omitempty"`
+}
+
+//
+type InformationProtectionEvaluateLabelsAndPoliciesRequestBuilder struct{ BaseRequestBuilder }
+
+// EvaluateLabelsAndPolicies action undocumented
+func (b *InformationProtectionRequestBuilder) EvaluateLabelsAndPolicies(reqObj *InformationProtectionEvaluateLabelsAndPoliciesRequestParameter) *InformationProtectionEvaluateLabelsAndPoliciesRequestBuilder {
+ bb := &InformationProtectionEvaluateLabelsAndPoliciesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluateLabelsAndPolicies"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type InformationProtectionEvaluateLabelsAndPoliciesRequest struct{ BaseRequest }
+
+//
+func (b *InformationProtectionEvaluateLabelsAndPoliciesRequestBuilder) Request() *InformationProtectionEvaluateLabelsAndPoliciesRequest {
+ return &InformationProtectionEvaluateLabelsAndPoliciesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *InformationProtectionEvaluateLabelsAndPoliciesRequest) Post(ctx context.Context) (resObj *EvaluateLabelsAndPoliciesJobResponse, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionActionModel.go
new file mode 100644
index 00000000..1d629a4b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionActionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InformationProtectionAction undocumented
+type InformationProtectionAction struct {
+ // Object is the base model of InformationProtectionAction
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionContentLabelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionContentLabelModel.go
new file mode 100644
index 00000000..6106eb08
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionContentLabelModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// InformationProtectionContentLabel undocumented
+type InformationProtectionContentLabel struct {
+ // Object is the base model of InformationProtectionContentLabel
+ Object
+ // CreationDateTime undocumented
+ CreationDateTime *time.Time `json:"creationDateTime,omitempty"`
+ // AssignmentMethod undocumented
+ AssignmentMethod *AssignmentMethod `json:"assignmentMethod,omitempty"`
+ // Label undocumented
+ Label *LabelDetails `json:"label,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionLabelAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionLabelAction.go
new file mode 100644
index 00000000..d71a06c9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionLabelAction.go
@@ -0,0 +1,315 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// InformationProtectionLabelCollectionExtractLabelRequestParameter undocumented
+type InformationProtectionLabelCollectionExtractLabelRequestParameter struct {
+ // ContentInfo undocumented
+ ContentInfo *ContentInfo `json:"contentInfo,omitempty"`
+}
+
+// InformationProtectionLabelCollectionEvaluateApplicationRequestParameter undocumented
+type InformationProtectionLabelCollectionEvaluateApplicationRequestParameter struct {
+ // ContentInfo undocumented
+ ContentInfo *ContentInfo `json:"contentInfo,omitempty"`
+ // LabelingOptions undocumented
+ LabelingOptions *LabelingOptions `json:"labelingOptions,omitempty"`
+}
+
+// InformationProtectionLabelCollectionEvaluateRemovalRequestParameter undocumented
+type InformationProtectionLabelCollectionEvaluateRemovalRequestParameter struct {
+ // ContentInfo undocumented
+ ContentInfo *ContentInfo `json:"contentInfo,omitempty"`
+ // DowngradeJustification undocumented
+ DowngradeJustification *DowngradeJustification `json:"downgradeJustification,omitempty"`
+}
+
+// InformationProtectionLabelCollectionEvaluateClassificationResultsRequestParameter undocumented
+type InformationProtectionLabelCollectionEvaluateClassificationResultsRequestParameter struct {
+ // ContentInfo undocumented
+ ContentInfo *ContentInfo `json:"contentInfo,omitempty"`
+ // ClassificationResults undocumented
+ ClassificationResults []ClassificationResult `json:"classificationResults,omitempty"`
+}
+
+//
+type InformationProtectionLabelCollectionExtractLabelRequestBuilder struct{ BaseRequestBuilder }
+
+// ExtractLabel action undocumented
+func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) ExtractLabel(reqObj *InformationProtectionLabelCollectionExtractLabelRequestParameter) *InformationProtectionLabelCollectionExtractLabelRequestBuilder {
+ bb := &InformationProtectionLabelCollectionExtractLabelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/extractLabel"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type InformationProtectionLabelCollectionExtractLabelRequest struct{ BaseRequest }
+
+//
+func (b *InformationProtectionLabelCollectionExtractLabelRequestBuilder) Request() *InformationProtectionLabelCollectionExtractLabelRequest {
+ return &InformationProtectionLabelCollectionExtractLabelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *InformationProtectionLabelCollectionExtractLabelRequest) Post(ctx context.Context) (resObj *InformationProtectionContentLabel, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type InformationProtectionLabelCollectionEvaluateApplicationRequestBuilder struct{ BaseRequestBuilder }
+
+// EvaluateApplication action undocumented
+func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) EvaluateApplication(reqObj *InformationProtectionLabelCollectionEvaluateApplicationRequestParameter) *InformationProtectionLabelCollectionEvaluateApplicationRequestBuilder {
+ bb := &InformationProtectionLabelCollectionEvaluateApplicationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluateApplication"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type InformationProtectionLabelCollectionEvaluateApplicationRequest struct{ BaseRequest }
+
+//
+func (b *InformationProtectionLabelCollectionEvaluateApplicationRequestBuilder) Request() *InformationProtectionLabelCollectionEvaluateApplicationRequest {
+ return &InformationProtectionLabelCollectionEvaluateApplicationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *InformationProtectionLabelCollectionEvaluateApplicationRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]InformationProtectionAction, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]InformationProtectionAction
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]InformationProtectionAction
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *InformationProtectionLabelCollectionEvaluateApplicationRequest) Get(ctx context.Context) ([][]InformationProtectionAction, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type InformationProtectionLabelCollectionEvaluateRemovalRequestBuilder struct{ BaseRequestBuilder }
+
+// EvaluateRemoval action undocumented
+func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) EvaluateRemoval(reqObj *InformationProtectionLabelCollectionEvaluateRemovalRequestParameter) *InformationProtectionLabelCollectionEvaluateRemovalRequestBuilder {
+ bb := &InformationProtectionLabelCollectionEvaluateRemovalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluateRemoval"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type InformationProtectionLabelCollectionEvaluateRemovalRequest struct{ BaseRequest }
+
+//
+func (b *InformationProtectionLabelCollectionEvaluateRemovalRequestBuilder) Request() *InformationProtectionLabelCollectionEvaluateRemovalRequest {
+ return &InformationProtectionLabelCollectionEvaluateRemovalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *InformationProtectionLabelCollectionEvaluateRemovalRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]InformationProtectionAction, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]InformationProtectionAction
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]InformationProtectionAction
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *InformationProtectionLabelCollectionEvaluateRemovalRequest) Get(ctx context.Context) ([][]InformationProtectionAction, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type InformationProtectionLabelCollectionEvaluateClassificationResultsRequestBuilder struct{ BaseRequestBuilder }
+
+// EvaluateClassificationResults action undocumented
+func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) EvaluateClassificationResults(reqObj *InformationProtectionLabelCollectionEvaluateClassificationResultsRequestParameter) *InformationProtectionLabelCollectionEvaluateClassificationResultsRequestBuilder {
+ bb := &InformationProtectionLabelCollectionEvaluateClassificationResultsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluateClassificationResults"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type InformationProtectionLabelCollectionEvaluateClassificationResultsRequest struct{ BaseRequest }
+
+//
+func (b *InformationProtectionLabelCollectionEvaluateClassificationResultsRequestBuilder) Request() *InformationProtectionLabelCollectionEvaluateClassificationResultsRequest {
+ return &InformationProtectionLabelCollectionEvaluateClassificationResultsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *InformationProtectionLabelCollectionEvaluateClassificationResultsRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]InformationProtectionAction, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]InformationProtectionAction
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]InformationProtectionAction
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *InformationProtectionLabelCollectionEvaluateClassificationResultsRequest) Get(ctx context.Context) ([][]InformationProtectionAction, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionLabelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionLabelModel.go
new file mode 100644
index 00000000..e1f6a8a8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionLabelModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InformationProtectionLabel undocumented
+type InformationProtectionLabel struct {
+ // Entity is the base model of InformationProtectionLabel
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Color undocumented
+ Color *string `json:"color,omitempty"`
+ // Sensitivity undocumented
+ Sensitivity *int `json:"sensitivity,omitempty"`
+ // Tooltip undocumented
+ Tooltip *string `json:"tooltip,omitempty"`
+ // IsActive undocumented
+ IsActive *bool `json:"isActive,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionLabelRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionLabelRequest.go
new file mode 100644
index 00000000..b1f55ba1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionLabelRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// InformationProtectionLabelRequestBuilder is request builder for InformationProtectionLabel
+type InformationProtectionLabelRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns InformationProtectionLabelRequest
+func (b *InformationProtectionLabelRequestBuilder) Request() *InformationProtectionLabelRequest {
+ return &InformationProtectionLabelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// InformationProtectionLabelRequest is request for InformationProtectionLabel
+type InformationProtectionLabelRequest struct{ BaseRequest }
+
+// Get performs GET request for InformationProtectionLabel
+func (r *InformationProtectionLabelRequest) Get(ctx context.Context) (resObj *InformationProtectionLabel, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for InformationProtectionLabel
+func (r *InformationProtectionLabelRequest) Update(ctx context.Context, reqObj *InformationProtectionLabel) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for InformationProtectionLabel
+func (r *InformationProtectionLabelRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionModel.go
new file mode 100644
index 00000000..f4eeb2ae
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InformationProtection undocumented
+type InformationProtection struct {
+ // Entity is the base model of InformationProtection
+ Entity
+ // Policy undocumented
+ Policy *InformationProtectionPolicy `json:"policy,omitempty"`
+ // SensitivityLabels undocumented
+ SensitivityLabels []SensitivityLabel `json:"sensitivityLabels,omitempty"`
+ // SensitivityPolicySettings undocumented
+ SensitivityPolicySettings *SensitivityPolicySettings `json:"sensitivityPolicySettings,omitempty"`
+ // DataLossPreventionPolicies undocumented
+ DataLossPreventionPolicies []DataLossPreventionPolicy `json:"dataLossPreventionPolicies,omitempty"`
+ // ThreatAssessmentRequests undocumented
+ ThreatAssessmentRequests []ThreatAssessmentRequestObject `json:"threatAssessmentRequests,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionPolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionPolicyModel.go
new file mode 100644
index 00000000..0de7c7b6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionPolicyModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InformationProtectionPolicy undocumented
+type InformationProtectionPolicy struct {
+ // Entity is the base model of InformationProtectionPolicy
+ Entity
+ // Labels undocumented
+ Labels []InformationProtectionLabel `json:"labels,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionPolicyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionPolicyRequest.go
new file mode 100644
index 00000000..01a0ca9a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionPolicyRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// InformationProtectionPolicyRequestBuilder is request builder for InformationProtectionPolicy
+type InformationProtectionPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns InformationProtectionPolicyRequest
+func (b *InformationProtectionPolicyRequestBuilder) Request() *InformationProtectionPolicyRequest {
+ return &InformationProtectionPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// InformationProtectionPolicyRequest is request for InformationProtectionPolicy
+type InformationProtectionPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for InformationProtectionPolicy
+func (r *InformationProtectionPolicyRequest) Get(ctx context.Context) (resObj *InformationProtectionPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for InformationProtectionPolicy
+func (r *InformationProtectionPolicyRequest) Update(ctx context.Context, reqObj *InformationProtectionPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for InformationProtectionPolicy
+func (r *InformationProtectionPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Labels returns request builder for InformationProtectionLabel collection
+func (b *InformationProtectionPolicyRequestBuilder) Labels() *InformationProtectionPolicyLabelsCollectionRequestBuilder {
+ bb := &InformationProtectionPolicyLabelsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/labels"
+ return bb
+}
+
+// InformationProtectionPolicyLabelsCollectionRequestBuilder is request builder for InformationProtectionLabel collection
+type InformationProtectionPolicyLabelsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for InformationProtectionLabel collection
+func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) Request() *InformationProtectionPolicyLabelsCollectionRequest {
+ return &InformationProtectionPolicyLabelsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for InformationProtectionLabel item
+func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) ID(id string) *InformationProtectionLabelRequestBuilder {
+ bb := &InformationProtectionLabelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// InformationProtectionPolicyLabelsCollectionRequest is request for InformationProtectionLabel collection
+type InformationProtectionPolicyLabelsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for InformationProtectionLabel collection
+func (r *InformationProtectionPolicyLabelsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]InformationProtectionLabel, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []InformationProtectionLabel
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []InformationProtectionLabel
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for InformationProtectionLabel collection
+func (r *InformationProtectionPolicyLabelsCollectionRequest) Get(ctx context.Context) ([]InformationProtectionLabel, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for InformationProtectionLabel collection
+func (r *InformationProtectionPolicyLabelsCollectionRequest) Add(ctx context.Context, reqObj *InformationProtectionLabel) (resObj *InformationProtectionLabel, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionRequest.go
new file mode 100644
index 00000000..5940a43a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InformationProtectionRequest.go
@@ -0,0 +1,341 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// InformationProtectionRequestBuilder is request builder for InformationProtection
+type InformationProtectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns InformationProtectionRequest
+func (b *InformationProtectionRequestBuilder) Request() *InformationProtectionRequest {
+ return &InformationProtectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// InformationProtectionRequest is request for InformationProtection
+type InformationProtectionRequest struct{ BaseRequest }
+
+// Get performs GET request for InformationProtection
+func (r *InformationProtectionRequest) Get(ctx context.Context) (resObj *InformationProtection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for InformationProtection
+func (r *InformationProtectionRequest) Update(ctx context.Context, reqObj *InformationProtection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for InformationProtection
+func (r *InformationProtectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DataLossPreventionPolicies returns request builder for DataLossPreventionPolicy collection
+func (b *InformationProtectionRequestBuilder) DataLossPreventionPolicies() *InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder {
+ bb := &InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/dataLossPreventionPolicies"
+ return bb
+}
+
+// InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder is request builder for DataLossPreventionPolicy collection
+type InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DataLossPreventionPolicy collection
+func (b *InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder) Request() *InformationProtectionDataLossPreventionPoliciesCollectionRequest {
+ return &InformationProtectionDataLossPreventionPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DataLossPreventionPolicy item
+func (b *InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder) ID(id string) *DataLossPreventionPolicyRequestBuilder {
+ bb := &DataLossPreventionPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// InformationProtectionDataLossPreventionPoliciesCollectionRequest is request for DataLossPreventionPolicy collection
+type InformationProtectionDataLossPreventionPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DataLossPreventionPolicy collection
+func (r *InformationProtectionDataLossPreventionPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DataLossPreventionPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DataLossPreventionPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DataLossPreventionPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DataLossPreventionPolicy collection
+func (r *InformationProtectionDataLossPreventionPoliciesCollectionRequest) Get(ctx context.Context) ([]DataLossPreventionPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DataLossPreventionPolicy collection
+func (r *InformationProtectionDataLossPreventionPoliciesCollectionRequest) Add(ctx context.Context, reqObj *DataLossPreventionPolicy) (resObj *DataLossPreventionPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Policy is navigation property
+func (b *InformationProtectionRequestBuilder) Policy() *InformationProtectionPolicyRequestBuilder {
+ bb := &InformationProtectionPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policy"
+ return bb
+}
+
+// SensitivityLabels returns request builder for SensitivityLabel collection
+func (b *InformationProtectionRequestBuilder) SensitivityLabels() *InformationProtectionSensitivityLabelsCollectionRequestBuilder {
+ bb := &InformationProtectionSensitivityLabelsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sensitivityLabels"
+ return bb
+}
+
+// InformationProtectionSensitivityLabelsCollectionRequestBuilder is request builder for SensitivityLabel collection
+type InformationProtectionSensitivityLabelsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SensitivityLabel collection
+func (b *InformationProtectionSensitivityLabelsCollectionRequestBuilder) Request() *InformationProtectionSensitivityLabelsCollectionRequest {
+ return &InformationProtectionSensitivityLabelsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SensitivityLabel item
+func (b *InformationProtectionSensitivityLabelsCollectionRequestBuilder) ID(id string) *SensitivityLabelRequestBuilder {
+ bb := &SensitivityLabelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// InformationProtectionSensitivityLabelsCollectionRequest is request for SensitivityLabel collection
+type InformationProtectionSensitivityLabelsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SensitivityLabel collection
+func (r *InformationProtectionSensitivityLabelsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SensitivityLabel, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SensitivityLabel
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SensitivityLabel
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SensitivityLabel collection
+func (r *InformationProtectionSensitivityLabelsCollectionRequest) Get(ctx context.Context) ([]SensitivityLabel, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SensitivityLabel collection
+func (r *InformationProtectionSensitivityLabelsCollectionRequest) Add(ctx context.Context, reqObj *SensitivityLabel) (resObj *SensitivityLabel, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SensitivityPolicySettings is navigation property
+func (b *InformationProtectionRequestBuilder) SensitivityPolicySettings() *SensitivityPolicySettingsRequestBuilder {
+ bb := &SensitivityPolicySettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sensitivityPolicySettings"
+ return bb
+}
+
+// ThreatAssessmentRequests returns request builder for ThreatAssessmentRequestObject collection
+func (b *InformationProtectionRequestBuilder) ThreatAssessmentRequests() *InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder {
+ bb := &InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/threatAssessmentRequests"
+ return bb
+}
+
+// InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder is request builder for ThreatAssessmentRequestObject collection
+type InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ThreatAssessmentRequestObject collection
+func (b *InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder) Request() *InformationProtectionThreatAssessmentRequestsCollectionRequest {
+ return &InformationProtectionThreatAssessmentRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ThreatAssessmentRequestObject item
+func (b *InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder) ID(id string) *ThreatAssessmentRequestObjectRequestBuilder {
+ bb := &ThreatAssessmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// InformationProtectionThreatAssessmentRequestsCollectionRequest is request for ThreatAssessmentRequestObject collection
+type InformationProtectionThreatAssessmentRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ThreatAssessmentRequestObject collection
+func (r *InformationProtectionThreatAssessmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ThreatAssessmentRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ThreatAssessmentRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ThreatAssessmentRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ThreatAssessmentRequestObject collection
+func (r *InformationProtectionThreatAssessmentRequestsCollectionRequest) Get(ctx context.Context) ([]ThreatAssessmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ThreatAssessmentRequestObject collection
+func (r *InformationProtectionThreatAssessmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *ThreatAssessmentRequestObject) (resObj *ThreatAssessmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InformationalURLModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InformationalURLModel.go
new file mode 100644
index 00000000..53503183
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InformationalURLModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InformationalURL undocumented
+type InformationalURL struct {
+ // Object is the base model of InformationalURL
+ Object
+ // LogoURL undocumented
+ LogoURL *string `json:"logoUrl,omitempty"`
+ // MarketingURL undocumented
+ MarketingURL *string `json:"marketingUrl,omitempty"`
+ // PrivacyStatementURL undocumented
+ PrivacyStatementURL *string `json:"privacyStatementUrl,omitempty"`
+ // SupportURL undocumented
+ SupportURL *string `json:"supportUrl,omitempty"`
+ // TermsOfServiceURL undocumented
+ TermsOfServiceURL *string `json:"termsOfServiceUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InitiatorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InitiatorModel.go
new file mode 100644
index 00000000..c2798980
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InitiatorModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Initiator undocumented
+type Initiator struct {
+ // Object is the base model of Initiator
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // InitiatorType undocumented
+ InitiatorType *InitiatorType `json:"initiatorType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InitiatorTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/InitiatorTypeEnum.go
new file mode 100644
index 00000000..b57df40e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InitiatorTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InitiatorType undocumented
+type InitiatorType int
+
+const (
+ // InitiatorTypeVUser undocumented
+ InitiatorTypeVUser InitiatorType = 0
+ // InitiatorTypeVApp undocumented
+ InitiatorTypeVApp InitiatorType = 1
+ // InitiatorTypeVSystem undocumented
+ InitiatorTypeVSystem InitiatorType = 2
+ // InitiatorTypeVUnknownFutureValue undocumented
+ InitiatorTypeVUnknownFutureValue InitiatorType = 3
+)
+
+// InitiatorTypePUser returns a pointer to InitiatorTypeVUser
+func InitiatorTypePUser() *InitiatorType {
+ v := InitiatorTypeVUser
+ return &v
+}
+
+// InitiatorTypePApp returns a pointer to InitiatorTypeVApp
+func InitiatorTypePApp() *InitiatorType {
+ v := InitiatorTypeVApp
+ return &v
+}
+
+// InitiatorTypePSystem returns a pointer to InitiatorTypeVSystem
+func InitiatorTypePSystem() *InitiatorType {
+ v := InitiatorTypeVSystem
+ return &v
+}
+
+// InitiatorTypePUnknownFutureValue returns a pointer to InitiatorTypeVUnknownFutureValue
+func InitiatorTypePUnknownFutureValue() *InitiatorType {
+ v := InitiatorTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InkAccessSettingEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/InkAccessSettingEnum.go
new file mode 100644
index 00000000..d73d088f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InkAccessSettingEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InkAccessSetting undocumented
+type InkAccessSetting int
+
+const (
+ // InkAccessSettingVNotConfigured undocumented
+ InkAccessSettingVNotConfigured InkAccessSetting = 0
+ // InkAccessSettingVEnabled undocumented
+ InkAccessSettingVEnabled InkAccessSetting = 1
+ // InkAccessSettingVDisabled undocumented
+ InkAccessSettingVDisabled InkAccessSetting = 2
+)
+
+// InkAccessSettingPNotConfigured returns a pointer to InkAccessSettingVNotConfigured
+func InkAccessSettingPNotConfigured() *InkAccessSetting {
+ v := InkAccessSettingVNotConfigured
+ return &v
+}
+
+// InkAccessSettingPEnabled returns a pointer to InkAccessSettingVEnabled
+func InkAccessSettingPEnabled() *InkAccessSetting {
+ v := InkAccessSettingVEnabled
+ return &v
+}
+
+// InkAccessSettingPDisabled returns a pointer to InkAccessSettingVDisabled
+func InkAccessSettingPDisabled() *InkAccessSetting {
+ v := InkAccessSettingVDisabled
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InnerErrorDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InnerErrorDetailModel.go
new file mode 100644
index 00000000..4286e8a2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InnerErrorDetailModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InnerErrorDetail undocumented
+type InnerErrorDetail struct {
+ // Object is the base model of InnerErrorDetail
+ Object
+ // Source undocumented
+ Source *string `json:"source,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InsightIdentityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InsightIdentityModel.go
new file mode 100644
index 00000000..50e363d0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InsightIdentityModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InsightIdentity undocumented
+type InsightIdentity struct {
+ // Object is the base model of InsightIdentity
+ Object
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Address undocumented
+ Address *string `json:"address,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InsightValueDoubleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InsightValueDoubleModel.go
new file mode 100644
index 00000000..913ca57d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InsightValueDoubleModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InsightValueDouble undocumented
+type InsightValueDouble struct {
+ // UserExperienceAnalyticsInsightValue is the base model of InsightValueDouble
+ UserExperienceAnalyticsInsightValue
+ // Value undocumented
+ Value *float64 `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InsightValueIntModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InsightValueIntModel.go
new file mode 100644
index 00000000..9e354f10
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InsightValueIntModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InsightValueInt undocumented
+type InsightValueInt struct {
+ // UserExperienceAnalyticsInsightValue is the base model of InsightValueInt
+ UserExperienceAnalyticsInsightValue
+ // Value undocumented
+ Value *int `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InstallIntentEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/InstallIntentEnum.go
new file mode 100644
index 00000000..b89abc08
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InstallIntentEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InstallIntent undocumented
+type InstallIntent int
+
+const (
+ // InstallIntentVAvailable undocumented
+ InstallIntentVAvailable InstallIntent = 0
+ // InstallIntentVRequired undocumented
+ InstallIntentVRequired InstallIntent = 1
+ // InstallIntentVUninstall undocumented
+ InstallIntentVUninstall InstallIntent = 2
+ // InstallIntentVAvailableWithoutEnrollment undocumented
+ InstallIntentVAvailableWithoutEnrollment InstallIntent = 3
+)
+
+// InstallIntentPAvailable returns a pointer to InstallIntentVAvailable
+func InstallIntentPAvailable() *InstallIntent {
+ v := InstallIntentVAvailable
+ return &v
+}
+
+// InstallIntentPRequired returns a pointer to InstallIntentVRequired
+func InstallIntentPRequired() *InstallIntent {
+ v := InstallIntentVRequired
+ return &v
+}
+
+// InstallIntentPUninstall returns a pointer to InstallIntentVUninstall
+func InstallIntentPUninstall() *InstallIntent {
+ v := InstallIntentVUninstall
+ return &v
+}
+
+// InstallIntentPAvailableWithoutEnrollment returns a pointer to InstallIntentVAvailableWithoutEnrollment
+func InstallIntentPAvailableWithoutEnrollment() *InstallIntent {
+ v := InstallIntentVAvailableWithoutEnrollment
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InstallStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/InstallStateEnum.go
new file mode 100644
index 00000000..8d334cb4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InstallStateEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InstallState undocumented
+type InstallState int
+
+const (
+ // InstallStateVNotApplicable undocumented
+ InstallStateVNotApplicable InstallState = 0
+ // InstallStateVInstalled undocumented
+ InstallStateVInstalled InstallState = 1
+ // InstallStateVFailed undocumented
+ InstallStateVFailed InstallState = 2
+ // InstallStateVNotInstalled undocumented
+ InstallStateVNotInstalled InstallState = 3
+ // InstallStateVUninstallFailed undocumented
+ InstallStateVUninstallFailed InstallState = 4
+ // InstallStateVUnknown undocumented
+ InstallStateVUnknown InstallState = 5
+)
+
+// InstallStatePNotApplicable returns a pointer to InstallStateVNotApplicable
+func InstallStatePNotApplicable() *InstallState {
+ v := InstallStateVNotApplicable
+ return &v
+}
+
+// InstallStatePInstalled returns a pointer to InstallStateVInstalled
+func InstallStatePInstalled() *InstallState {
+ v := InstallStateVInstalled
+ return &v
+}
+
+// InstallStatePFailed returns a pointer to InstallStateVFailed
+func InstallStatePFailed() *InstallState {
+ v := InstallStateVFailed
+ return &v
+}
+
+// InstallStatePNotInstalled returns a pointer to InstallStateVNotInstalled
+func InstallStatePNotInstalled() *InstallState {
+ v := InstallStateVNotInstalled
+ return &v
+}
+
+// InstallStatePUninstallFailed returns a pointer to InstallStateVUninstallFailed
+func InstallStatePUninstallFailed() *InstallState {
+ v := InstallStateVUninstallFailed
+ return &v
+}
+
+// InstallStatePUnknown returns a pointer to InstallStateVUnknown
+func InstallStatePUnknown() *InstallState {
+ v := InstallStateVUnknown
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InstanceResourceAccessModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InstanceResourceAccessModel.go
new file mode 100644
index 00000000..fc8b830e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InstanceResourceAccessModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InstanceResourceAccess undocumented
+type InstanceResourceAccess struct {
+ // Object is the base model of InstanceResourceAccess
+ Object
+ // ResourceAppID undocumented
+ ResourceAppID *string `json:"resourceAppId,omitempty"`
+ // Permissions undocumented
+ Permissions []ResourcePermission `json:"permissions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InstitutionDataModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InstitutionDataModel.go
new file mode 100644
index 00000000..d23f4841
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InstitutionDataModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InstitutionData undocumented
+type InstitutionData struct {
+ // Object is the base model of InstitutionData
+ Object
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Location undocumented
+ Location *PhysicalAddress `json:"location,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IntendedPurposeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/IntendedPurposeEnum.go
new file mode 100644
index 00000000..37a6036a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IntendedPurposeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IntendedPurpose undocumented
+type IntendedPurpose int
+
+const (
+ // IntendedPurposeVUnassigned undocumented
+ IntendedPurposeVUnassigned IntendedPurpose = 1
+ // IntendedPurposeVSmimeEncryption undocumented
+ IntendedPurposeVSmimeEncryption IntendedPurpose = 2
+ // IntendedPurposeVSmimeSigning undocumented
+ IntendedPurposeVSmimeSigning IntendedPurpose = 3
+ // IntendedPurposeVVpn undocumented
+ IntendedPurposeVVpn IntendedPurpose = 4
+ // IntendedPurposeVWifi undocumented
+ IntendedPurposeVWifi IntendedPurpose = 5
+)
+
+// IntendedPurposePUnassigned returns a pointer to IntendedPurposeVUnassigned
+func IntendedPurposePUnassigned() *IntendedPurpose {
+ v := IntendedPurposeVUnassigned
+ return &v
+}
+
+// IntendedPurposePSmimeEncryption returns a pointer to IntendedPurposeVSmimeEncryption
+func IntendedPurposePSmimeEncryption() *IntendedPurpose {
+ v := IntendedPurposeVSmimeEncryption
+ return &v
+}
+
+// IntendedPurposePSmimeSigning returns a pointer to IntendedPurposeVSmimeSigning
+func IntendedPurposePSmimeSigning() *IntendedPurpose {
+ v := IntendedPurposeVSmimeSigning
+ return &v
+}
+
+// IntendedPurposePVpn returns a pointer to IntendedPurposeVVpn
+func IntendedPurposePVpn() *IntendedPurpose {
+ v := IntendedPurposeVVpn
+ return &v
+}
+
+// IntendedPurposePWifi returns a pointer to IntendedPurposeVWifi
+func IntendedPurposePWifi() *IntendedPurpose {
+ v := IntendedPurposeVWifi
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InternetExplorerMessageSettingEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/InternetExplorerMessageSettingEnum.go
new file mode 100644
index 00000000..67bbdd93
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InternetExplorerMessageSettingEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InternetExplorerMessageSetting undocumented
+type InternetExplorerMessageSetting int
+
+const (
+ // InternetExplorerMessageSettingVNotConfigured undocumented
+ InternetExplorerMessageSettingVNotConfigured InternetExplorerMessageSetting = 0
+ // InternetExplorerMessageSettingVDisabled undocumented
+ InternetExplorerMessageSettingVDisabled InternetExplorerMessageSetting = 1
+ // InternetExplorerMessageSettingVEnabled undocumented
+ InternetExplorerMessageSettingVEnabled InternetExplorerMessageSetting = 2
+ // InternetExplorerMessageSettingVKeepGoing undocumented
+ InternetExplorerMessageSettingVKeepGoing InternetExplorerMessageSetting = 3
+)
+
+// InternetExplorerMessageSettingPNotConfigured returns a pointer to InternetExplorerMessageSettingVNotConfigured
+func InternetExplorerMessageSettingPNotConfigured() *InternetExplorerMessageSetting {
+ v := InternetExplorerMessageSettingVNotConfigured
+ return &v
+}
+
+// InternetExplorerMessageSettingPDisabled returns a pointer to InternetExplorerMessageSettingVDisabled
+func InternetExplorerMessageSettingPDisabled() *InternetExplorerMessageSetting {
+ v := InternetExplorerMessageSettingVDisabled
+ return &v
+}
+
+// InternetExplorerMessageSettingPEnabled returns a pointer to InternetExplorerMessageSettingVEnabled
+func InternetExplorerMessageSettingPEnabled() *InternetExplorerMessageSetting {
+ v := InternetExplorerMessageSettingVEnabled
+ return &v
+}
+
+// InternetExplorerMessageSettingPKeepGoing returns a pointer to InternetExplorerMessageSettingVKeepGoing
+func InternetExplorerMessageSettingPKeepGoing() *InternetExplorerMessageSetting {
+ v := InternetExplorerMessageSettingVKeepGoing
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InternetMessageHeaderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InternetMessageHeaderModel.go
new file mode 100644
index 00000000..4e6d0fb2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InternetMessageHeaderModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InternetMessageHeader undocumented
+type InternetMessageHeader struct {
+ // Object is the base model of InternetMessageHeader
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InternetSiteSecurityLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/InternetSiteSecurityLevelEnum.go
new file mode 100644
index 00000000..4d9f070e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InternetSiteSecurityLevelEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InternetSiteSecurityLevel undocumented
+type InternetSiteSecurityLevel int
+
+const (
+ // InternetSiteSecurityLevelVUserDefined undocumented
+ InternetSiteSecurityLevelVUserDefined InternetSiteSecurityLevel = 0
+ // InternetSiteSecurityLevelVMedium undocumented
+ InternetSiteSecurityLevelVMedium InternetSiteSecurityLevel = 1
+ // InternetSiteSecurityLevelVMediumHigh undocumented
+ InternetSiteSecurityLevelVMediumHigh InternetSiteSecurityLevel = 2
+ // InternetSiteSecurityLevelVHigh undocumented
+ InternetSiteSecurityLevelVHigh InternetSiteSecurityLevel = 3
+)
+
+// InternetSiteSecurityLevelPUserDefined returns a pointer to InternetSiteSecurityLevelVUserDefined
+func InternetSiteSecurityLevelPUserDefined() *InternetSiteSecurityLevel {
+ v := InternetSiteSecurityLevelVUserDefined
+ return &v
+}
+
+// InternetSiteSecurityLevelPMedium returns a pointer to InternetSiteSecurityLevelVMedium
+func InternetSiteSecurityLevelPMedium() *InternetSiteSecurityLevel {
+ v := InternetSiteSecurityLevelVMedium
+ return &v
+}
+
+// InternetSiteSecurityLevelPMediumHigh returns a pointer to InternetSiteSecurityLevelVMediumHigh
+func InternetSiteSecurityLevelPMediumHigh() *InternetSiteSecurityLevel {
+ v := InternetSiteSecurityLevelVMediumHigh
+ return &v
+}
+
+// InternetSiteSecurityLevelPHigh returns a pointer to InternetSiteSecurityLevelVHigh
+func InternetSiteSecurityLevelPHigh() *InternetSiteSecurityLevel {
+ v := InternetSiteSecurityLevelVHigh
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandModel.go
new file mode 100644
index 00000000..13a78b54
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandModel.go
@@ -0,0 +1,51 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IntuneBrand undocumented
+type IntuneBrand struct {
+ // Object is the base model of IntuneBrand
+ Object
+ // DisplayName Company/organization name that is displayed to end users.
+ DisplayName *string `json:"displayName,omitempty"`
+ // ThemeColor Primary theme color used in the Company Portal applications and web portal.
+ ThemeColor *RgbColor `json:"themeColor,omitempty"`
+ // ShowLogo Boolean that represents whether the administrator-supplied logo images are shown or not shown.
+ ShowLogo *bool `json:"showLogo,omitempty"`
+ // LightBackgroundLogo Logo image displayed in Company Portal apps which have a light background behind the logo.
+ LightBackgroundLogo *MimeContent `json:"lightBackgroundLogo,omitempty"`
+ // DarkBackgroundLogo Logo image displayed in Company Portal apps which have a dark background behind the logo.
+ DarkBackgroundLogo *MimeContent `json:"darkBackgroundLogo,omitempty"`
+ // ShowNameNextToLogo Boolean that represents whether the administrator-supplied display name will be shown next to the logo image.
+ ShowNameNextToLogo *bool `json:"showNameNextToLogo,omitempty"`
+ // LandingPageCustomizedImage Customized image displayed in Company Portal app landing page
+ LandingPageCustomizedImage *MimeContent `json:"landingPageCustomizedImage,omitempty"`
+ // ShowDisplayNameNextToLogo Boolean that represents whether the administrator-supplied display name will be shown next to the logo image.
+ ShowDisplayNameNextToLogo *bool `json:"showDisplayNameNextToLogo,omitempty"`
+ // ContactITName Name of the person/organization responsible for IT support.
+ ContactITName *string `json:"contactITName,omitempty"`
+ // ContactITPhoneNumber Phone number of the person/organization responsible for IT support.
+ ContactITPhoneNumber *string `json:"contactITPhoneNumber,omitempty"`
+ // ContactITEmailAddress Email address of the person/organization responsible for IT support.
+ ContactITEmailAddress *string `json:"contactITEmailAddress,omitempty"`
+ // ContactITNotes Text comments regarding the person/organization responsible for IT support.
+ ContactITNotes *string `json:"contactITNotes,omitempty"`
+ // OnlineSupportSiteURL URL to the company/organization’s IT helpdesk site.
+ OnlineSupportSiteURL *string `json:"onlineSupportSiteUrl,omitempty"`
+ // OnlineSupportSiteName Display name of the company/organization’s IT helpdesk site.
+ OnlineSupportSiteName *string `json:"onlineSupportSiteName,omitempty"`
+ // PrivacyURL URL to the company/organization’s privacy policy.
+ PrivacyURL *string `json:"privacyUrl,omitempty"`
+ // CustomPrivacyMessage Custom privacy message.
+ CustomPrivacyMessage *string `json:"customPrivacyMessage,omitempty"`
+ // IsRemoveDeviceDisabled Boolean that represents whether the adminsistrator has disabled the 'Remove Device' action on corporate owned devices.
+ IsRemoveDeviceDisabled *bool `json:"isRemoveDeviceDisabled,omitempty"`
+ // IsFactoryResetDisabled Boolean that represents whether the adminsistrator has disabled the 'Factory Reset' action on corporate owned devices.
+ IsFactoryResetDisabled *bool `json:"isFactoryResetDisabled,omitempty"`
+ // CompanyPortalBlockedActions Collection of blocked actions on the company portal as per platform and device ownership types.
+ CompanyPortalBlockedActions []CompanyPortalBlockedAction `json:"companyPortalBlockedActions,omitempty"`
+ // ShowAzureADEnterpriseApps Boolean that indicates if AzureAD Enterprise Apps will be shown in Company Portal
+ ShowAzureADEnterpriseApps *bool `json:"showAzureADEnterpriseApps,omitempty"`
+ // ShowOfficeWebApps Boolean that indicates if Office WebApps will be shown in Company Portal
+ ShowOfficeWebApps *bool `json:"showOfficeWebApps,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandingProfileAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandingProfileAction.go
new file mode 100644
index 00000000..7d07e985
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandingProfileAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IntuneBrandingProfileAssignRequestParameter undocumented
+type IntuneBrandingProfileAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []IntuneBrandingProfileAssignment `json:"assignments,omitempty"`
+}
+
+//
+type IntuneBrandingProfileAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *IntuneBrandingProfileRequestBuilder) Assign(reqObj *IntuneBrandingProfileAssignRequestParameter) *IntuneBrandingProfileAssignRequestBuilder {
+ bb := &IntuneBrandingProfileAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type IntuneBrandingProfileAssignRequest struct{ BaseRequest }
+
+//
+func (b *IntuneBrandingProfileAssignRequestBuilder) Request() *IntuneBrandingProfileAssignRequest {
+ return &IntuneBrandingProfileAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *IntuneBrandingProfileAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandingProfileAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandingProfileAssignmentModel.go
new file mode 100644
index 00000000..d27e8777
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandingProfileAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IntuneBrandingProfileAssignment This entity contains the properties used to assign a branding profile to a group.
+type IntuneBrandingProfileAssignment struct {
+ // Entity is the base model of IntuneBrandingProfileAssignment
+ Entity
+ // Target Assignment target that the branding profile is assigned to.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandingProfileAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandingProfileAssignmentRequest.go
new file mode 100644
index 00000000..cc88068c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandingProfileAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IntuneBrandingProfileAssignmentRequestBuilder is request builder for IntuneBrandingProfileAssignment
+type IntuneBrandingProfileAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IntuneBrandingProfileAssignmentRequest
+func (b *IntuneBrandingProfileAssignmentRequestBuilder) Request() *IntuneBrandingProfileAssignmentRequest {
+ return &IntuneBrandingProfileAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IntuneBrandingProfileAssignmentRequest is request for IntuneBrandingProfileAssignment
+type IntuneBrandingProfileAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for IntuneBrandingProfileAssignment
+func (r *IntuneBrandingProfileAssignmentRequest) Get(ctx context.Context) (resObj *IntuneBrandingProfileAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IntuneBrandingProfileAssignment
+func (r *IntuneBrandingProfileAssignmentRequest) Update(ctx context.Context, reqObj *IntuneBrandingProfileAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IntuneBrandingProfileAssignment
+func (r *IntuneBrandingProfileAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandingProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandingProfileModel.go
new file mode 100644
index 00000000..a5aa919b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandingProfileModel.go
@@ -0,0 +1,63 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// IntuneBrandingProfile This entity contains data which is used in customizing the tenant level appearance of the Company Portal applications as well as the end user web portal.
+type IntuneBrandingProfile struct {
+ // Entity is the base model of IntuneBrandingProfile
+ Entity
+ // ProfileName Name of the profile
+ ProfileName *string `json:"profileName,omitempty"`
+ // ProfileDescription Description of the profile
+ ProfileDescription *string `json:"profileDescription,omitempty"`
+ // IsDefaultProfile Boolean that represents whether the profile is used as default or not
+ IsDefaultProfile *bool `json:"isDefaultProfile,omitempty"`
+ // CreatedDateTime Time when the BrandingProfile was created
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Time when the BrandingProfile was last modified
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DisplayName Company/organization name that is displayed to end users
+ DisplayName *string `json:"displayName,omitempty"`
+ // ThemeColor Primary theme color used in the Company Portal applications and web portal
+ ThemeColor *RgbColor `json:"themeColor,omitempty"`
+ // ShowLogo Boolean that represents whether the administrator-supplied logo images are shown or not
+ ShowLogo *bool `json:"showLogo,omitempty"`
+ // ShowDisplayNameNextToLogo Boolean that represents whether the administrator-supplied display name will be shown next to the logo image or not
+ ShowDisplayNameNextToLogo *bool `json:"showDisplayNameNextToLogo,omitempty"`
+ // ThemeColorLogo Logo image displayed in Company Portal apps which have a theme color background behind the logo
+ ThemeColorLogo *MimeContent `json:"themeColorLogo,omitempty"`
+ // LightBackgroundLogo Logo image displayed in Company Portal apps which have a light background behind the logo
+ LightBackgroundLogo *MimeContent `json:"lightBackgroundLogo,omitempty"`
+ // LandingPageCustomizedImage Customized image displayed in Company Portal apps landing page
+ LandingPageCustomizedImage *MimeContent `json:"landingPageCustomizedImage,omitempty"`
+ // ContactITName Name of the person/organization responsible for IT support
+ ContactITName *string `json:"contactITName,omitempty"`
+ // ContactITPhoneNumber Phone number of the person/organization responsible for IT support
+ ContactITPhoneNumber *string `json:"contactITPhoneNumber,omitempty"`
+ // ContactITEmailAddress E-mail address of the person/organization responsible for IT support
+ ContactITEmailAddress *string `json:"contactITEmailAddress,omitempty"`
+ // ContactITNotes Text comments regarding the person/organization responsible for IT support
+ ContactITNotes *string `json:"contactITNotes,omitempty"`
+ // OnlineSupportSiteURL URL to the company/organization’s IT helpdesk site
+ OnlineSupportSiteURL *string `json:"onlineSupportSiteUrl,omitempty"`
+ // OnlineSupportSiteName Display name of the company/organization’s IT helpdesk site
+ OnlineSupportSiteName *string `json:"onlineSupportSiteName,omitempty"`
+ // PrivacyURL URL to the company/organization’s privacy policy
+ PrivacyURL *string `json:"privacyUrl,omitempty"`
+ // CustomPrivacyMessage Text comments regarding what the admin has access to on the device
+ CustomPrivacyMessage *string `json:"customPrivacyMessage,omitempty"`
+ // IsRemoveDeviceDisabled Boolean that represents whether the adminsistrator has disabled the 'Remove Device' action on corporate owned devices.
+ IsRemoveDeviceDisabled *bool `json:"isRemoveDeviceDisabled,omitempty"`
+ // IsFactoryResetDisabled Boolean that represents whether the adminsistrator has disabled the 'Factory Reset' action on corporate owned devices.
+ IsFactoryResetDisabled *bool `json:"isFactoryResetDisabled,omitempty"`
+ // CompanyPortalBlockedActions Collection of blocked actions on the company portal as per platform and device ownership types.
+ CompanyPortalBlockedActions []CompanyPortalBlockedAction `json:"companyPortalBlockedActions,omitempty"`
+ // ShowAzureADEnterpriseApps Boolean that indicates if AzureAD Enterprise Apps will be shown in Company Portal
+ ShowAzureADEnterpriseApps *bool `json:"showAzureADEnterpriseApps,omitempty"`
+ // ShowOfficeWebApps Boolean that indicates if Office WebApps will be shown in Company Portal
+ ShowOfficeWebApps *bool `json:"showOfficeWebApps,omitempty"`
+ // Assignments undocumented
+ Assignments []IntuneBrandingProfileAssignment `json:"assignments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandingProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandingProfileRequest.go
new file mode 100644
index 00000000..074a2fcf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IntuneBrandingProfileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// IntuneBrandingProfileRequestBuilder is request builder for IntuneBrandingProfile
+type IntuneBrandingProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IntuneBrandingProfileRequest
+func (b *IntuneBrandingProfileRequestBuilder) Request() *IntuneBrandingProfileRequest {
+ return &IntuneBrandingProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IntuneBrandingProfileRequest is request for IntuneBrandingProfile
+type IntuneBrandingProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for IntuneBrandingProfile
+func (r *IntuneBrandingProfileRequest) Get(ctx context.Context) (resObj *IntuneBrandingProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IntuneBrandingProfile
+func (r *IntuneBrandingProfileRequest) Update(ctx context.Context, reqObj *IntuneBrandingProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IntuneBrandingProfile
+func (r *IntuneBrandingProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for IntuneBrandingProfileAssignment collection
+func (b *IntuneBrandingProfileRequestBuilder) Assignments() *IntuneBrandingProfileAssignmentsCollectionRequestBuilder {
+ bb := &IntuneBrandingProfileAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// IntuneBrandingProfileAssignmentsCollectionRequestBuilder is request builder for IntuneBrandingProfileAssignment collection
+type IntuneBrandingProfileAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IntuneBrandingProfileAssignment collection
+func (b *IntuneBrandingProfileAssignmentsCollectionRequestBuilder) Request() *IntuneBrandingProfileAssignmentsCollectionRequest {
+ return &IntuneBrandingProfileAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IntuneBrandingProfileAssignment item
+func (b *IntuneBrandingProfileAssignmentsCollectionRequestBuilder) ID(id string) *IntuneBrandingProfileAssignmentRequestBuilder {
+ bb := &IntuneBrandingProfileAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IntuneBrandingProfileAssignmentsCollectionRequest is request for IntuneBrandingProfileAssignment collection
+type IntuneBrandingProfileAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IntuneBrandingProfileAssignment collection
+func (r *IntuneBrandingProfileAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]IntuneBrandingProfileAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IntuneBrandingProfileAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IntuneBrandingProfileAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IntuneBrandingProfileAssignment collection
+func (r *IntuneBrandingProfileAssignmentsCollectionRequest) Get(ctx context.Context) ([]IntuneBrandingProfileAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for IntuneBrandingProfileAssignment collection
+func (r *IntuneBrandingProfileAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *IntuneBrandingProfileAssignment) (resObj *IntuneBrandingProfileAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InvitationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InvitationModel.go
new file mode 100644
index 00000000..f97d5feb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InvitationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Invitation undocumented
+type Invitation struct {
+ // Entity is the base model of Invitation
+ Entity
+ // InvitedUserDisplayName undocumented
+ InvitedUserDisplayName *string `json:"invitedUserDisplayName,omitempty"`
+ // InvitedUserType undocumented
+ InvitedUserType *string `json:"invitedUserType,omitempty"`
+ // InvitedUserEmailAddress undocumented
+ InvitedUserEmailAddress *string `json:"invitedUserEmailAddress,omitempty"`
+ // InvitedUserMessageInfo undocumented
+ InvitedUserMessageInfo *InvitedUserMessageInfo `json:"invitedUserMessageInfo,omitempty"`
+ // SendInvitationMessage undocumented
+ SendInvitationMessage *bool `json:"sendInvitationMessage,omitempty"`
+ // InviteRedirectURL undocumented
+ InviteRedirectURL *string `json:"inviteRedirectUrl,omitempty"`
+ // InviteRedeemURL undocumented
+ InviteRedeemURL *string `json:"inviteRedeemUrl,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // ResetRedemption undocumented
+ ResetRedemption *bool `json:"resetRedemption,omitempty"`
+ // InvitedUser undocumented
+ InvitedUser *User `json:"invitedUser,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InvitationParticipantInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InvitationParticipantInfoModel.go
new file mode 100644
index 00000000..3cd99e65
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InvitationParticipantInfoModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InvitationParticipantInfo undocumented
+type InvitationParticipantInfo struct {
+ // Object is the base model of InvitationParticipantInfo
+ Object
+ // Identity undocumented
+ Identity *IdentitySet `json:"identity,omitempty"`
+ // EndpointType undocumented
+ EndpointType *EndpointType `json:"endpointType,omitempty"`
+ // ReplacesCallID undocumented
+ ReplacesCallID *string `json:"replacesCallId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InvitationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/InvitationRequest.go
new file mode 100644
index 00000000..1636cd09
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InvitationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// InvitationRequestBuilder is request builder for Invitation
+type InvitationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns InvitationRequest
+func (b *InvitationRequestBuilder) Request() *InvitationRequest {
+ return &InvitationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// InvitationRequest is request for Invitation
+type InvitationRequest struct{ BaseRequest }
+
+// Get performs GET request for Invitation
+func (r *InvitationRequest) Get(ctx context.Context) (resObj *Invitation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Invitation
+func (r *InvitationRequest) Update(ctx context.Context, reqObj *Invitation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Invitation
+func (r *InvitationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// InvitedUser is navigation property
+func (b *InvitationRequestBuilder) InvitedUser() *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/invitedUser"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InviteParticipantsOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InviteParticipantsOperationModel.go
new file mode 100644
index 00000000..6c83a995
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InviteParticipantsOperationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InviteParticipantsOperation undocumented
+type InviteParticipantsOperation struct {
+ // CommsOperation is the base model of InviteParticipantsOperation
+ CommsOperation
+ // Participants undocumented
+ Participants []InvitationParticipantInfo `json:"participants,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/InvitedUserMessageInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/InvitedUserMessageInfoModel.go
new file mode 100644
index 00000000..03714128
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/InvitedUserMessageInfoModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InvitedUserMessageInfo undocumented
+type InvitedUserMessageInfo struct {
+ // Object is the base model of InvitedUserMessageInfo
+ Object
+ // CcRecipients undocumented
+ CcRecipients []Recipient `json:"ccRecipients,omitempty"`
+ // MessageLanguage undocumented
+ MessageLanguage *string `json:"messageLanguage,omitempty"`
+ // CustomizedMessageBody undocumented
+ CustomizedMessageBody *string `json:"customizedMessageBody,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/IosikEv2VpnConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/IosikEv2VpnConfigurationModel.go
new file mode 100644
index 00000000..038bd70a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/IosikEv2VpnConfigurationModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IosikEv2VpnConfiguration By providing the configurations in this profile you can instruct the iOS device to connect to desired IKEv2 VPN endpoint.
+type IosikEv2VpnConfiguration struct {
+ // IOSVpnConfiguration is the base model of IosikEv2VpnConfiguration
+ IOSVpnConfiguration
+ // ChildSecurityAssociationParameters Child Security Association Parameters
+ ChildSecurityAssociationParameters *IOSVpnSecurityAssociationParameters `json:"childSecurityAssociationParameters,omitempty"`
+ // ClientAuthenticationType Type of Client Authentication the VPN client will use.
+ ClientAuthenticationType *VpnClientAuthenticationType `json:"clientAuthenticationType,omitempty"`
+ // DeadPeerDetectionRate Determine how often to check if a peer connection is still active.
+ DeadPeerDetectionRate *VpnDeadPeerDetectionRate `json:"deadPeerDetectionRate,omitempty"`
+ // DisableMobilityAndMultihoming Disable MOBIKE
+ DisableMobilityAndMultihoming *bool `json:"disableMobilityAndMultihoming,omitempty"`
+ // DisableRedirect Disable Redirect
+ DisableRedirect *bool `json:"disableRedirect,omitempty"`
+ // EnableCertificateRevocationCheck Enables a best-effort revocation check; server response timeouts will not cause it to fail
+ EnableCertificateRevocationCheck *bool `json:"enableCertificateRevocationCheck,omitempty"`
+ // EnableEAP Enables EAP only authentication
+ EnableEAP *bool `json:"enableEAP,omitempty"`
+ // EnablePerfectForwardSecrecy Enable Perfect Forward Secrecy (PFS).
+ EnablePerfectForwardSecrecy *bool `json:"enablePerfectForwardSecrecy,omitempty"`
+ // EnableUseInternalSubnetAttributes Enable Use Internal Subnet Attributes.
+ EnableUseInternalSubnetAttributes *bool `json:"enableUseInternalSubnetAttributes,omitempty"`
+ // LocalIdentifier Method of identifying the client that is trying to connect via VPN.
+ LocalIdentifier *VpnLocalIdentifier `json:"localIdentifier,omitempty"`
+ // RemoteIdentifier Address of the IKEv2 server. Must be a FQDN, UserFQDN, network address, or ASN1DN
+ RemoteIdentifier *string `json:"remoteIdentifier,omitempty"`
+ // SecurityAssociationParameters Security Association Parameters
+ SecurityAssociationParameters *IOSVpnSecurityAssociationParameters `json:"securityAssociationParameters,omitempty"`
+ // ServerCertificateCommonName Common name of the IKEv2 Server Certificate used in Server Authentication
+ ServerCertificateCommonName *string `json:"serverCertificateCommonName,omitempty"`
+ // ServerCertificateIssuerCommonName Issuer Common name of the IKEv2 Server Certificate issuer used in Authentication
+ ServerCertificateIssuerCommonName *string `json:"serverCertificateIssuerCommonName,omitempty"`
+ // ServerCertificateType The type of certificate the VPN server will present to the VPN client for authentication.
+ ServerCertificateType *VpnServerCertificateType `json:"serverCertificateType,omitempty"`
+ // SharedSecret Used when Shared Secret Authentication is selected
+ SharedSecret *string `json:"sharedSecret,omitempty"`
+ // TLSMaximumVersion The maximum TLS version to be used with EAP-TLS authentication
+ TLSMaximumVersion *string `json:"tlsMaximumVersion,omitempty"`
+ // TLSMinimumVersion The minimum TLS version to be used with EAP-TLS authentication
+ TLSMinimumVersion *string `json:"tlsMinimumVersion,omitempty"`
+ // AllowDefaultSecurityAssociationParameters Allows the use of security association parameters by setting all parameters to the device's default unless explicitly specified.
+ AllowDefaultSecurityAssociationParameters *bool `json:"allowDefaultSecurityAssociationParameters,omitempty"`
+ // AllowDefaultChildSecurityAssociationParameters Allows the use of child security association parameters by setting all parameters to the device's default unless explicitly specified.
+ AllowDefaultChildSecurityAssociationParameters *bool `json:"allowDefaultChildSecurityAssociationParameters,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemActionSetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActionSetModel.go
new file mode 100644
index 00000000..f42c996a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActionSetModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ItemActionSet undocumented
+type ItemActionSet struct {
+ // Object is the base model of ItemActionSet
+ Object
+ // Comment undocumented
+ Comment *CommentAction `json:"comment,omitempty"`
+ // Create undocumented
+ Create *CreateAction `json:"create,omitempty"`
+ // Delete undocumented
+ Delete *DeleteAction `json:"delete,omitempty"`
+ // Edit undocumented
+ Edit *EditAction `json:"edit,omitempty"`
+ // Mention undocumented
+ Mention *MentionAction `json:"mention,omitempty"`
+ // Move undocumented
+ Move *MoveAction `json:"move,omitempty"`
+ // Rename undocumented
+ Rename *RenameAction `json:"rename,omitempty"`
+ // Restore undocumented
+ Restore *RestoreAction `json:"restore,omitempty"`
+ // Share undocumented
+ Share *ShareAction `json:"share,omitempty"`
+ // Version undocumented
+ Version *VersionAction `json:"version,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemActionStatModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActionStatModel.go
new file mode 100644
index 00000000..ec30c74e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActionStatModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ItemActionStat undocumented
+type ItemActionStat struct {
+ // Object is the base model of ItemActionStat
+ Object
+ // ActionCount undocumented
+ ActionCount *int `json:"actionCount,omitempty"`
+ // ActorCount undocumented
+ ActorCount *int `json:"actorCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityModel.go
new file mode 100644
index 00000000..ea191202
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ItemActivity undocumented
+type ItemActivity struct {
+ // Entity is the base model of ItemActivity
+ Entity
+ // Access undocumented
+ Access *AccessAction `json:"access,omitempty"`
+ // ActivityDateTime undocumented
+ ActivityDateTime *time.Time `json:"activityDateTime,omitempty"`
+ // Actor undocumented
+ Actor *IdentitySet `json:"actor,omitempty"`
+ // DriveItem undocumented
+ DriveItem *DriveItem `json:"driveItem,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityOLDModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityOLDModel.go
new file mode 100644
index 00000000..aecfd61a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityOLDModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ItemActivityOLD undocumented
+type ItemActivityOLD struct {
+ // Entity is the base model of ItemActivityOLD
+ Entity
+ // Action undocumented
+ Action *ItemActionSet `json:"action,omitempty"`
+ // Actor undocumented
+ Actor *IdentitySet `json:"actor,omitempty"`
+ // Times undocumented
+ Times *ItemActivityTimeSet `json:"times,omitempty"`
+ // DriveItem undocumented
+ DriveItem *DriveItem `json:"driveItem,omitempty"`
+ // ListItem undocumented
+ ListItem *ListItem `json:"listItem,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityOLDRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityOLDRequest.go
new file mode 100644
index 00000000..ac5877d0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityOLDRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ItemActivityOLDRequestBuilder is request builder for ItemActivityOLD
+type ItemActivityOLDRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemActivityOLDRequest
+func (b *ItemActivityOLDRequestBuilder) Request() *ItemActivityOLDRequest {
+ return &ItemActivityOLDRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemActivityOLDRequest is request for ItemActivityOLD
+type ItemActivityOLDRequest struct{ BaseRequest }
+
+// Get performs GET request for ItemActivityOLD
+func (r *ItemActivityOLDRequest) Get(ctx context.Context) (resObj *ItemActivityOLD, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ItemActivityOLD
+func (r *ItemActivityOLDRequest) Update(ctx context.Context, reqObj *ItemActivityOLD) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ItemActivityOLD
+func (r *ItemActivityOLDRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DriveItem is navigation property
+func (b *ItemActivityOLDRequestBuilder) DriveItem() *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/driveItem"
+ return bb
+}
+
+// ListItem is navigation property
+func (b *ItemActivityOLDRequestBuilder) ListItem() *ListItemRequestBuilder {
+ bb := &ListItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/listItem"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityRequest.go
new file mode 100644
index 00000000..3027b02a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ItemActivityRequestBuilder is request builder for ItemActivity
+type ItemActivityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemActivityRequest
+func (b *ItemActivityRequestBuilder) Request() *ItemActivityRequest {
+ return &ItemActivityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemActivityRequest is request for ItemActivity
+type ItemActivityRequest struct{ BaseRequest }
+
+// Get performs GET request for ItemActivity
+func (r *ItemActivityRequest) Get(ctx context.Context) (resObj *ItemActivity, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ItemActivity
+func (r *ItemActivityRequest) Update(ctx context.Context, reqObj *ItemActivity) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ItemActivity
+func (r *ItemActivityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DriveItem is navigation property
+func (b *ItemActivityRequestBuilder) DriveItem() *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/driveItem"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityStatModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityStatModel.go
new file mode 100644
index 00000000..73bc8873
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityStatModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ItemActivityStat undocumented
+type ItemActivityStat struct {
+ // Entity is the base model of ItemActivityStat
+ Entity
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // Access undocumented
+ Access *ItemActionStat `json:"access,omitempty"`
+ // Create undocumented
+ Create *ItemActionStat `json:"create,omitempty"`
+ // Delete undocumented
+ Delete *ItemActionStat `json:"delete,omitempty"`
+ // Edit undocumented
+ Edit *ItemActionStat `json:"edit,omitempty"`
+ // Move undocumented
+ Move *ItemActionStat `json:"move,omitempty"`
+ // IsTrending undocumented
+ IsTrending *bool `json:"isTrending,omitempty"`
+ // IncompleteData undocumented
+ IncompleteData *IncompleteData `json:"incompleteData,omitempty"`
+ // Activities undocumented
+ Activities []ItemActivity `json:"activities,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityStatRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityStatRequest.go
new file mode 100644
index 00000000..b65da370
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityStatRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ItemActivityStatRequestBuilder is request builder for ItemActivityStat
+type ItemActivityStatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemActivityStatRequest
+func (b *ItemActivityStatRequestBuilder) Request() *ItemActivityStatRequest {
+ return &ItemActivityStatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemActivityStatRequest is request for ItemActivityStat
+type ItemActivityStatRequest struct{ BaseRequest }
+
+// Get performs GET request for ItemActivityStat
+func (r *ItemActivityStatRequest) Get(ctx context.Context) (resObj *ItemActivityStat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ItemActivityStat
+func (r *ItemActivityStatRequest) Update(ctx context.Context, reqObj *ItemActivityStat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ItemActivityStat
+func (r *ItemActivityStatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Activities returns request builder for ItemActivity collection
+func (b *ItemActivityStatRequestBuilder) Activities() *ItemActivityStatActivitiesCollectionRequestBuilder {
+ bb := &ItemActivityStatActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activities"
+ return bb
+}
+
+// ItemActivityStatActivitiesCollectionRequestBuilder is request builder for ItemActivity collection
+type ItemActivityStatActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemActivity collection
+func (b *ItemActivityStatActivitiesCollectionRequestBuilder) Request() *ItemActivityStatActivitiesCollectionRequest {
+ return &ItemActivityStatActivitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemActivity item
+func (b *ItemActivityStatActivitiesCollectionRequestBuilder) ID(id string) *ItemActivityRequestBuilder {
+ bb := &ItemActivityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ItemActivityStatActivitiesCollectionRequest is request for ItemActivity collection
+type ItemActivityStatActivitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemActivity collection
+func (r *ItemActivityStatActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ItemActivity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemActivity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemActivity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemActivity collection
+func (r *ItemActivityStatActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ItemActivity collection
+func (r *ItemActivityStatActivitiesCollectionRequest) Add(ctx context.Context, reqObj *ItemActivity) (resObj *ItemActivity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityTimeSetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityTimeSetModel.go
new file mode 100644
index 00000000..7f59f89a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemActivityTimeSetModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ItemActivityTimeSet undocumented
+type ItemActivityTimeSet struct {
+ // Object is the base model of ItemActivityTimeSet
+ Object
+ // LastRecordedDateTime undocumented
+ LastRecordedDateTime *time.Time `json:"lastRecordedDateTime,omitempty"`
+ // ObservedDateTime undocumented
+ ObservedDateTime *time.Time `json:"observedDateTime,omitempty"`
+ // RecordedDateTime undocumented
+ RecordedDateTime *time.Time `json:"recordedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemAnalyticsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemAnalyticsModel.go
new file mode 100644
index 00000000..d1e53b6f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemAnalyticsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ItemAnalytics undocumented
+type ItemAnalytics struct {
+ // Entity is the base model of ItemAnalytics
+ Entity
+ // ItemActivityStats undocumented
+ ItemActivityStats []ItemActivityStat `json:"itemActivityStats,omitempty"`
+ // AllTime undocumented
+ AllTime *ItemActivityStat `json:"allTime,omitempty"`
+ // LastSevenDays undocumented
+ LastSevenDays *ItemActivityStat `json:"lastSevenDays,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemAnalyticsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemAnalyticsRequest.go
new file mode 100644
index 00000000..0c2ebb36
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemAnalyticsRequest.go
@@ -0,0 +1,153 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ItemAnalyticsRequestBuilder is request builder for ItemAnalytics
+type ItemAnalyticsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemAnalyticsRequest
+func (b *ItemAnalyticsRequestBuilder) Request() *ItemAnalyticsRequest {
+ return &ItemAnalyticsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemAnalyticsRequest is request for ItemAnalytics
+type ItemAnalyticsRequest struct{ BaseRequest }
+
+// Get performs GET request for ItemAnalytics
+func (r *ItemAnalyticsRequest) Get(ctx context.Context) (resObj *ItemAnalytics, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ItemAnalytics
+func (r *ItemAnalyticsRequest) Update(ctx context.Context, reqObj *ItemAnalytics) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ItemAnalytics
+func (r *ItemAnalyticsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AllTime is navigation property
+func (b *ItemAnalyticsRequestBuilder) AllTime() *ItemActivityStatRequestBuilder {
+ bb := &ItemActivityStatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/allTime"
+ return bb
+}
+
+// ItemActivityStats returns request builder for ItemActivityStat collection
+func (b *ItemAnalyticsRequestBuilder) ItemActivityStats() *ItemAnalyticsItemActivityStatsCollectionRequestBuilder {
+ bb := &ItemAnalyticsItemActivityStatsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/itemActivityStats"
+ return bb
+}
+
+// ItemAnalyticsItemActivityStatsCollectionRequestBuilder is request builder for ItemActivityStat collection
+type ItemAnalyticsItemActivityStatsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemActivityStat collection
+func (b *ItemAnalyticsItemActivityStatsCollectionRequestBuilder) Request() *ItemAnalyticsItemActivityStatsCollectionRequest {
+ return &ItemAnalyticsItemActivityStatsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemActivityStat item
+func (b *ItemAnalyticsItemActivityStatsCollectionRequestBuilder) ID(id string) *ItemActivityStatRequestBuilder {
+ bb := &ItemActivityStatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ItemAnalyticsItemActivityStatsCollectionRequest is request for ItemActivityStat collection
+type ItemAnalyticsItemActivityStatsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemActivityStat collection
+func (r *ItemAnalyticsItemActivityStatsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ItemActivityStat, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemActivityStat
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemActivityStat
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemActivityStat collection
+func (r *ItemAnalyticsItemActivityStatsCollectionRequest) Get(ctx context.Context) ([]ItemActivityStat, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ItemActivityStat collection
+func (r *ItemAnalyticsItemActivityStatsCollectionRequest) Add(ctx context.Context, reqObj *ItemActivityStat) (resObj *ItemActivityStat, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// LastSevenDays is navigation property
+func (b *ItemAnalyticsRequestBuilder) LastSevenDays() *ItemActivityStatRequestBuilder {
+ bb := &ItemActivityStatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/lastSevenDays"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemAttachmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemAttachmentModel.go
new file mode 100644
index 00000000..23b043fb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemAttachmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ItemAttachment undocumented
+type ItemAttachment struct {
+ // Attachment is the base model of ItemAttachment
+ Attachment
+ // Item undocumented
+ Item *OutlookItem `json:"item,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemAttachmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemAttachmentRequest.go
new file mode 100644
index 00000000..87fd32fa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemAttachmentRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ItemAttachmentRequestBuilder is request builder for ItemAttachment
+type ItemAttachmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemAttachmentRequest
+func (b *ItemAttachmentRequestBuilder) Request() *ItemAttachmentRequest {
+ return &ItemAttachmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemAttachmentRequest is request for ItemAttachment
+type ItemAttachmentRequest struct{ BaseRequest }
+
+// Get performs GET request for ItemAttachment
+func (r *ItemAttachmentRequest) Get(ctx context.Context) (resObj *ItemAttachment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ItemAttachment
+func (r *ItemAttachmentRequest) Update(ctx context.Context, reqObj *ItemAttachment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ItemAttachment
+func (r *ItemAttachmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Item is navigation property
+func (b *ItemAttachmentRequestBuilder) Item() *OutlookItemRequestBuilder {
+ bb := &OutlookItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/item"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemBodyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemBodyModel.go
new file mode 100644
index 00000000..9db08b8d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemBodyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ItemBody undocumented
+type ItemBody struct {
+ // Object is the base model of ItemBody
+ Object
+ // ContentType undocumented
+ ContentType *BodyType `json:"contentType,omitempty"`
+ // Content undocumented
+ Content *string `json:"content,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemCategoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemCategoryModel.go
new file mode 100644
index 00000000..ddcee146
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemCategoryModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ItemCategory undocumented
+type ItemCategory struct {
+ // Entity is the base model of ItemCategory
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemCategoryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemCategoryRequest.go
new file mode 100644
index 00000000..880e760d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemCategoryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ItemCategoryRequestBuilder is request builder for ItemCategory
+type ItemCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemCategoryRequest
+func (b *ItemCategoryRequestBuilder) Request() *ItemCategoryRequest {
+ return &ItemCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemCategoryRequest is request for ItemCategory
+type ItemCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for ItemCategory
+func (r *ItemCategoryRequest) Get(ctx context.Context) (resObj *ItemCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ItemCategory
+func (r *ItemCategoryRequest) Update(ctx context.Context, reqObj *ItemCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ItemCategory
+func (r *ItemCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemEmailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemEmailModel.go
new file mode 100644
index 00000000..737d583c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemEmailModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ItemEmail undocumented
+type ItemEmail struct {
+ // ItemFacet is the base model of ItemEmail
+ ItemFacet
+ // Address undocumented
+ Address *string `json:"address,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Type undocumented
+ Type *EmailType `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemEmailRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemEmailRequest.go
new file mode 100644
index 00000000..13d1aefd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemEmailRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ItemEmailRequestBuilder is request builder for ItemEmail
+type ItemEmailRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemEmailRequest
+func (b *ItemEmailRequestBuilder) Request() *ItemEmailRequest {
+ return &ItemEmailRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemEmailRequest is request for ItemEmail
+type ItemEmailRequest struct{ BaseRequest }
+
+// Get performs GET request for ItemEmail
+func (r *ItemEmailRequest) Get(ctx context.Context) (resObj *ItemEmail, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ItemEmail
+func (r *ItemEmailRequest) Update(ctx context.Context, reqObj *ItemEmail) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ItemEmail
+func (r *ItemEmailRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemFacetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemFacetModel.go
new file mode 100644
index 00000000..e98e4267
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemFacetModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ItemFacet undocumented
+type ItemFacet struct {
+ // Entity is the base model of ItemFacet
+ Entity
+ // AllowedAudiences undocumented
+ AllowedAudiences *AllowedAudiences `json:"allowedAudiences,omitempty"`
+ // Inference undocumented
+ Inference *InferenceData `json:"inference,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemModel.go
new file mode 100644
index 00000000..be9e100c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemModel.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Item undocumented
+type Item struct {
+ // Entity is the base model of Item
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // ItemCategoryID undocumented
+ ItemCategoryID *UUID `json:"itemCategoryId,omitempty"`
+ // ItemCategoryCode undocumented
+ ItemCategoryCode *string `json:"itemCategoryCode,omitempty"`
+ // Blocked undocumented
+ Blocked *bool `json:"blocked,omitempty"`
+ // BaseUnitOfMeasureID undocumented
+ BaseUnitOfMeasureID *UUID `json:"baseUnitOfMeasureId,omitempty"`
+ // Gtin undocumented
+ Gtin *string `json:"gtin,omitempty"`
+ // Inventory undocumented
+ Inventory *int `json:"inventory,omitempty"`
+ // UnitPrice undocumented
+ UnitPrice *int `json:"unitPrice,omitempty"`
+ // PriceIncludesTax undocumented
+ PriceIncludesTax *bool `json:"priceIncludesTax,omitempty"`
+ // UnitCost undocumented
+ UnitCost *int `json:"unitCost,omitempty"`
+ // TaxGroupID undocumented
+ TaxGroupID *UUID `json:"taxGroupId,omitempty"`
+ // TaxGroupCode undocumented
+ TaxGroupCode *string `json:"taxGroupCode,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Picture undocumented
+ Picture []Picture `json:"picture,omitempty"`
+ // ItemCategory undocumented
+ ItemCategory *ItemCategory `json:"itemCategory,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemPhoneModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemPhoneModel.go
new file mode 100644
index 00000000..b3a8a939
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemPhoneModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ItemPhone undocumented
+type ItemPhone struct {
+ // ItemFacet is the base model of ItemPhone
+ ItemFacet
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Type undocumented
+ Type *PhoneType `json:"type,omitempty"`
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemPhoneRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemPhoneRequest.go
new file mode 100644
index 00000000..fca2c79d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemPhoneRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ItemPhoneRequestBuilder is request builder for ItemPhone
+type ItemPhoneRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemPhoneRequest
+func (b *ItemPhoneRequestBuilder) Request() *ItemPhoneRequest {
+ return &ItemPhoneRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemPhoneRequest is request for ItemPhone
+type ItemPhoneRequest struct{ BaseRequest }
+
+// Get performs GET request for ItemPhone
+func (r *ItemPhoneRequest) Get(ctx context.Context) (resObj *ItemPhone, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ItemPhone
+func (r *ItemPhoneRequest) Update(ctx context.Context, reqObj *ItemPhone) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ItemPhone
+func (r *ItemPhoneRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemPreviewInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemPreviewInfoModel.go
new file mode 100644
index 00000000..c11ab480
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemPreviewInfoModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ItemPreviewInfo undocumented
+type ItemPreviewInfo struct {
+ // Object is the base model of ItemPreviewInfo
+ Object
+ // GetURL undocumented
+ GetURL *string `json:"getUrl,omitempty"`
+ // PostParameters undocumented
+ PostParameters *string `json:"postParameters,omitempty"`
+ // PostURL undocumented
+ PostURL *string `json:"postUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemReferenceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemReferenceModel.go
new file mode 100644
index 00000000..8d7a88c1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemReferenceModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ItemReference undocumented
+type ItemReference struct {
+ // Object is the base model of ItemReference
+ Object
+ // DriveID undocumented
+ DriveID *string `json:"driveId,omitempty"`
+ // DriveType undocumented
+ DriveType *string `json:"driveType,omitempty"`
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Path undocumented
+ Path *string `json:"path,omitempty"`
+ // ShareID undocumented
+ ShareID *string `json:"shareId,omitempty"`
+ // SharepointIDs undocumented
+ SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"`
+ // SiteID undocumented
+ SiteID *string `json:"siteId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ItemRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ItemRequest.go
new file mode 100644
index 00000000..696e5a46
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ItemRequest.go
@@ -0,0 +1,146 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ItemRequestBuilder is request builder for Item
+type ItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemRequest
+func (b *ItemRequestBuilder) Request() *ItemRequest {
+ return &ItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemRequest is request for Item
+type ItemRequest struct{ BaseRequest }
+
+// Get performs GET request for Item
+func (r *ItemRequest) Get(ctx context.Context) (resObj *Item, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Item
+func (r *ItemRequest) Update(ctx context.Context, reqObj *Item) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Item
+func (r *ItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ItemCategory is navigation property
+func (b *ItemRequestBuilder) ItemCategory() *ItemCategoryRequestBuilder {
+ bb := &ItemCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/itemCategory"
+ return bb
+}
+
+// Picture returns request builder for Picture collection
+func (b *ItemRequestBuilder) Picture() *ItemPictureCollectionRequestBuilder {
+ bb := &ItemPictureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/picture"
+ return bb
+}
+
+// ItemPictureCollectionRequestBuilder is request builder for Picture collection
+type ItemPictureCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Picture collection
+func (b *ItemPictureCollectionRequestBuilder) Request() *ItemPictureCollectionRequest {
+ return &ItemPictureCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Picture item
+func (b *ItemPictureCollectionRequestBuilder) ID(id string) *PictureRequestBuilder {
+ bb := &PictureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ItemPictureCollectionRequest is request for Picture collection
+type ItemPictureCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Picture collection
+func (r *ItemPictureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Picture, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Picture
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Picture
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Picture collection
+func (r *ItemPictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Picture collection
+func (r *ItemPictureCollectionRequest) Add(ctx context.Context, reqObj *Picture) (resObj *Picture, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/JSONModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/JSONModel.go
new file mode 100644
index 00000000..ae844bbe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/JSONModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// JSON undocumented
+type JSON struct {
+ // Object is the base model of JSON
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/JobResponseBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/JobResponseBaseModel.go
new file mode 100644
index 00000000..0b2d2712
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/JobResponseBaseModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// JobResponseBase undocumented
+type JobResponseBase struct {
+ // Entity is the base model of JobResponseBase
+ Entity
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // TenantID undocumented
+ TenantID *string `json:"tenantId,omitempty"`
+ // CreationDateTime undocumented
+ CreationDateTime *time.Time `json:"creationDateTime,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // Error undocumented
+ Error *ClassificationError `json:"error,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/JobResponseBaseRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/JobResponseBaseRequest.go
new file mode 100644
index 00000000..bdc5ffa9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/JobResponseBaseRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// JobResponseBaseRequestBuilder is request builder for JobResponseBase
+type JobResponseBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns JobResponseBaseRequest
+func (b *JobResponseBaseRequestBuilder) Request() *JobResponseBaseRequest {
+ return &JobResponseBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// JobResponseBaseRequest is request for JobResponseBase
+type JobResponseBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for JobResponseBase
+func (r *JobResponseBaseRequest) Get(ctx context.Context) (resObj *JobResponseBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for JobResponseBase
+func (r *JobResponseBaseRequest) Update(ctx context.Context, reqObj *JobResponseBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for JobResponseBase
+func (r *JobResponseBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/JournalAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/JournalAction.go
new file mode 100644
index 00000000..df0bbd66
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/JournalAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// JournalPostRequestParameter undocumented
+type JournalPostRequestParameter struct {
+}
+
+//
+type JournalPostRequestBuilder struct{ BaseRequestBuilder }
+
+// Post action undocumented
+func (b *JournalRequestBuilder) Post(reqObj *JournalPostRequestParameter) *JournalPostRequestBuilder {
+ bb := &JournalPostRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/post"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type JournalPostRequest struct{ BaseRequest }
+
+//
+func (b *JournalPostRequestBuilder) Request() *JournalPostRequest {
+ return &JournalPostRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *JournalPostRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/JournalLineModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/JournalLineModel.go
new file mode 100644
index 00000000..69464022
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/JournalLineModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// JournalLine undocumented
+type JournalLine struct {
+ // Entity is the base model of JournalLine
+ Entity
+ // JournalDisplayName undocumented
+ JournalDisplayName *string `json:"journalDisplayName,omitempty"`
+ // LineNumber undocumented
+ LineNumber *int `json:"lineNumber,omitempty"`
+ // AccountID undocumented
+ AccountID *UUID `json:"accountId,omitempty"`
+ // AccountNumber undocumented
+ AccountNumber *string `json:"accountNumber,omitempty"`
+ // PostingDate undocumented
+ PostingDate *time.Time `json:"postingDate,omitempty"`
+ // DocumentNumber undocumented
+ DocumentNumber *string `json:"documentNumber,omitempty"`
+ // ExternalDocumentNumber undocumented
+ ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"`
+ // Amount undocumented
+ Amount *int `json:"amount,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"comment,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/JournalLineRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/JournalLineRequest.go
new file mode 100644
index 00000000..25342524
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/JournalLineRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// JournalLineRequestBuilder is request builder for JournalLine
+type JournalLineRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns JournalLineRequest
+func (b *JournalLineRequestBuilder) Request() *JournalLineRequest {
+ return &JournalLineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// JournalLineRequest is request for JournalLine
+type JournalLineRequest struct{ BaseRequest }
+
+// Get performs GET request for JournalLine
+func (r *JournalLineRequest) Get(ctx context.Context) (resObj *JournalLine, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for JournalLine
+func (r *JournalLineRequest) Update(ctx context.Context, reqObj *JournalLine) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for JournalLine
+func (r *JournalLineRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Account is navigation property
+func (b *JournalLineRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/JournalModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/JournalModel.go
new file mode 100644
index 00000000..dc1a127a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/JournalModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Journal undocumented
+type Journal struct {
+ // Entity is the base model of Journal
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // BalancingAccountID undocumented
+ BalancingAccountID *UUID `json:"balancingAccountId,omitempty"`
+ // BalancingAccountNumber undocumented
+ BalancingAccountNumber *string `json:"balancingAccountNumber,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+ // JournalLines undocumented
+ JournalLines []JournalLine `json:"journalLines,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/JournalRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/JournalRequest.go
new file mode 100644
index 00000000..2616dcd2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/JournalRequest.go
@@ -0,0 +1,146 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// JournalRequestBuilder is request builder for Journal
+type JournalRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns JournalRequest
+func (b *JournalRequestBuilder) Request() *JournalRequest {
+ return &JournalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// JournalRequest is request for Journal
+type JournalRequest struct{ BaseRequest }
+
+// Get performs GET request for Journal
+func (r *JournalRequest) Get(ctx context.Context) (resObj *Journal, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Journal
+func (r *JournalRequest) Update(ctx context.Context, reqObj *Journal) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Journal
+func (r *JournalRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Account is navigation property
+func (b *JournalRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
+
+// JournalLines returns request builder for JournalLine collection
+func (b *JournalRequestBuilder) JournalLines() *JournalJournalLinesCollectionRequestBuilder {
+ bb := &JournalJournalLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/journalLines"
+ return bb
+}
+
+// JournalJournalLinesCollectionRequestBuilder is request builder for JournalLine collection
+type JournalJournalLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for JournalLine collection
+func (b *JournalJournalLinesCollectionRequestBuilder) Request() *JournalJournalLinesCollectionRequest {
+ return &JournalJournalLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for JournalLine item
+func (b *JournalJournalLinesCollectionRequestBuilder) ID(id string) *JournalLineRequestBuilder {
+ bb := &JournalLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// JournalJournalLinesCollectionRequest is request for JournalLine collection
+type JournalJournalLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for JournalLine collection
+func (r *JournalJournalLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]JournalLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []JournalLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []JournalLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for JournalLine collection
+func (r *JournalJournalLinesCollectionRequest) Get(ctx context.Context) ([]JournalLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for JournalLine collection
+func (r *JournalJournalLinesCollectionRequest) Add(ctx context.Context, reqObj *JournalLine) (resObj *JournalLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/JustifyActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/JustifyActionModel.go
new file mode 100644
index 00000000..6e53ec1c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/JustifyActionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// JustifyAction undocumented
+type JustifyAction struct {
+ // InformationProtectionAction is the base model of JustifyAction
+ InformationProtectionAction
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/KerberosSingleSignOnExtensionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/KerberosSingleSignOnExtensionModel.go
new file mode 100644
index 00000000..12f18230
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/KerberosSingleSignOnExtensionModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// KerberosSingleSignOnExtension undocumented
+type KerberosSingleSignOnExtension struct {
+ // SingleSignOnExtension is the base model of KerberosSingleSignOnExtension
+ SingleSignOnExtension
+ // Realm Gets or sets the case-sensitive realm name for this profile.
+ Realm *string `json:"realm,omitempty"`
+ // Domains Gets or sets a list of hosts or domain names for which the app extension performs SSO.
+ Domains []string `json:"domains,omitempty"`
+ // BlockAutomaticLogin Enables or disables Keychain usage.
+ BlockAutomaticLogin *bool `json:"blockAutomaticLogin,omitempty"`
+ // CacheName Gets or sets the Generic Security Services name of the Kerberos cache to use for this profile.
+ CacheName *string `json:"cacheName,omitempty"`
+ // CredentialBundleIDAccessControlList Gets or sets a list of app Bundle IDs allowed to access the Kerberos Ticket Granting Ticket.
+ CredentialBundleIDAccessControlList []string `json:"credentialBundleIdAccessControlList,omitempty"`
+ // DomainRealms Gets or sets a list of realms for custom domain-realm mapping. Realms are case sensitive.
+ DomainRealms []string `json:"domainRealms,omitempty"`
+ // IsDefaultRealm When true, this profile's realm will be selected as the default. Necessary if multiple Kerberos-type profiles are configured.
+ IsDefaultRealm *bool `json:"isDefaultRealm,omitempty"`
+ // PasswordBlockModification Enables or disables password changes.
+ PasswordBlockModification *bool `json:"passwordBlockModification,omitempty"`
+ // PasswordExpirationDays Overrides the default password expiration in days. For most domains, this value is calculated automatically.
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordExpirationNotificationDays Gets or sets the number of days until the user is notified that their password will expire (default is 15).
+ PasswordExpirationNotificationDays *int `json:"passwordExpirationNotificationDays,omitempty"`
+ // UserPrincipalName Gets or sets the principle user name to use for this profile. The realm name does not need to be included.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // PasswordRequireActiveDirectoryComplexity Enables or disables whether passwords must meet Active Directory's complexity requirements.
+ PasswordRequireActiveDirectoryComplexity *bool `json:"passwordRequireActiveDirectoryComplexity,omitempty"`
+ // PasswordPreviousPasswordBlockCount Gets or sets the number of previous passwords to block.
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordMinimumLength Gets or sets the minimum length of a password.
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinimumAgeDays Gets or sets the minimum number of days until a user can change their password again.
+ PasswordMinimumAgeDays *int `json:"passwordMinimumAgeDays,omitempty"`
+ // PasswordRequirementsDescription Gets or sets a description of the password complexity requirements.
+ PasswordRequirementsDescription *string `json:"passwordRequirementsDescription,omitempty"`
+ // RequireUserPresence Gets or sets whether to require authentication via Touch ID, Face ID, or a passcode to access the keychain entry.
+ RequireUserPresence *bool `json:"requireUserPresence,omitempty"`
+ // ActiveDirectorySiteCode Gets or sets the Active Directory site.
+ ActiveDirectorySiteCode *string `json:"activeDirectorySiteCode,omitempty"`
+ // PasswordEnableLocalSync Enables or disables password syncing. This won't affect users logged in with a mobile account on macOS.
+ PasswordEnableLocalSync *bool `json:"passwordEnableLocalSync,omitempty"`
+ // BlockActiveDirectorySiteAutoDiscovery Enables or disables whether the Kerberos extension can automatically determine its site name.
+ BlockActiveDirectorySiteAutoDiscovery *bool `json:"blockActiveDirectorySiteAutoDiscovery,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/KeyBooleanValuePairModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/KeyBooleanValuePairModel.go
new file mode 100644
index 00000000..10167bf7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/KeyBooleanValuePairModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// KeyBooleanValuePair undocumented
+type KeyBooleanValuePair struct {
+ // KeyTypedValuePair is the base model of KeyBooleanValuePair
+ KeyTypedValuePair
+ // Value The Boolean value of the key-value pair.
+ Value *bool `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/KeyCredentialModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/KeyCredentialModel.go
new file mode 100644
index 00000000..77967012
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/KeyCredentialModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// KeyCredential undocumented
+type KeyCredential struct {
+ // Object is the base model of KeyCredential
+ Object
+ // CustomKeyIdentifier undocumented
+ CustomKeyIdentifier *Binary `json:"customKeyIdentifier,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // KeyID undocumented
+ KeyID *UUID `json:"keyId,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Usage undocumented
+ Usage *string `json:"usage,omitempty"`
+ // Key undocumented
+ Key *Binary `json:"key,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/KeyIntegerValuePairModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/KeyIntegerValuePairModel.go
new file mode 100644
index 00000000..4cd17b48
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/KeyIntegerValuePairModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// KeyIntegerValuePair undocumented
+type KeyIntegerValuePair struct {
+ // KeyTypedValuePair is the base model of KeyIntegerValuePair
+ KeyTypedValuePair
+ // Value The integer value of the key-value pair.
+ Value *int `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/KeyRealValuePairModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/KeyRealValuePairModel.go
new file mode 100644
index 00000000..fcbe3cbd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/KeyRealValuePairModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// KeyRealValuePair undocumented
+type KeyRealValuePair struct {
+ // KeyTypedValuePair is the base model of KeyRealValuePair
+ KeyTypedValuePair
+ // Value The real (floating-point) value of the key-value pair.
+ Value *float64 `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/KeySizeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/KeySizeEnum.go
new file mode 100644
index 00000000..c620297b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/KeySizeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// KeySize undocumented
+type KeySize int
+
+const (
+ // KeySizeVSize1024 undocumented
+ KeySizeVSize1024 KeySize = 0
+ // KeySizeVSize2048 undocumented
+ KeySizeVSize2048 KeySize = 1
+)
+
+// KeySizePSize1024 returns a pointer to KeySizeVSize1024
+func KeySizePSize1024() *KeySize {
+ v := KeySizeVSize1024
+ return &v
+}
+
+// KeySizePSize2048 returns a pointer to KeySizeVSize2048
+func KeySizePSize2048() *KeySize {
+ v := KeySizeVSize2048
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/KeyStorageProviderOptionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/KeyStorageProviderOptionEnum.go
new file mode 100644
index 00000000..b3860f22
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/KeyStorageProviderOptionEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// KeyStorageProviderOption undocumented
+type KeyStorageProviderOption int
+
+const (
+ // KeyStorageProviderOptionVUseTpmKspOtherwiseUseSoftwareKsp undocumented
+ KeyStorageProviderOptionVUseTpmKspOtherwiseUseSoftwareKsp KeyStorageProviderOption = 0
+ // KeyStorageProviderOptionVUseTpmKspOtherwiseFail undocumented
+ KeyStorageProviderOptionVUseTpmKspOtherwiseFail KeyStorageProviderOption = 1
+ // KeyStorageProviderOptionVUsePassportForWorkKspOtherwiseFail undocumented
+ KeyStorageProviderOptionVUsePassportForWorkKspOtherwiseFail KeyStorageProviderOption = 2
+ // KeyStorageProviderOptionVUseSoftwareKsp undocumented
+ KeyStorageProviderOptionVUseSoftwareKsp KeyStorageProviderOption = 3
+)
+
+// KeyStorageProviderOptionPUseTpmKspOtherwiseUseSoftwareKsp returns a pointer to KeyStorageProviderOptionVUseTpmKspOtherwiseUseSoftwareKsp
+func KeyStorageProviderOptionPUseTpmKspOtherwiseUseSoftwareKsp() *KeyStorageProviderOption {
+ v := KeyStorageProviderOptionVUseTpmKspOtherwiseUseSoftwareKsp
+ return &v
+}
+
+// KeyStorageProviderOptionPUseTpmKspOtherwiseFail returns a pointer to KeyStorageProviderOptionVUseTpmKspOtherwiseFail
+func KeyStorageProviderOptionPUseTpmKspOtherwiseFail() *KeyStorageProviderOption {
+ v := KeyStorageProviderOptionVUseTpmKspOtherwiseFail
+ return &v
+}
+
+// KeyStorageProviderOptionPUsePassportForWorkKspOtherwiseFail returns a pointer to KeyStorageProviderOptionVUsePassportForWorkKspOtherwiseFail
+func KeyStorageProviderOptionPUsePassportForWorkKspOtherwiseFail() *KeyStorageProviderOption {
+ v := KeyStorageProviderOptionVUsePassportForWorkKspOtherwiseFail
+ return &v
+}
+
+// KeyStorageProviderOptionPUseSoftwareKsp returns a pointer to KeyStorageProviderOptionVUseSoftwareKsp
+func KeyStorageProviderOptionPUseSoftwareKsp() *KeyStorageProviderOption {
+ v := KeyStorageProviderOptionVUseSoftwareKsp
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/KeyStringValuePairModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/KeyStringValuePairModel.go
new file mode 100644
index 00000000..2254f761
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/KeyStringValuePairModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// KeyStringValuePair undocumented
+type KeyStringValuePair struct {
+ // KeyTypedValuePair is the base model of KeyStringValuePair
+ KeyTypedValuePair
+ // Value The string value of the key-value pair.
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/KeyTypedValuePairModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/KeyTypedValuePairModel.go
new file mode 100644
index 00000000..2d1200eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/KeyTypedValuePairModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// KeyTypedValuePair undocumented
+type KeyTypedValuePair struct {
+ // Object is the base model of KeyTypedValuePair
+ Object
+ // Key The string key of the key-value pair.
+ Key *string `json:"key,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/KeyUsagesEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/KeyUsagesEnum.go
new file mode 100644
index 00000000..0a58c199
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/KeyUsagesEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// KeyUsages undocumented
+type KeyUsages int
+
+const (
+ // KeyUsagesVKeyEncipherment undocumented
+ KeyUsagesVKeyEncipherment KeyUsages = 1
+ // KeyUsagesVDigitalSignature undocumented
+ KeyUsagesVDigitalSignature KeyUsages = 2
+)
+
+// KeyUsagesPKeyEncipherment returns a pointer to KeyUsagesVKeyEncipherment
+func KeyUsagesPKeyEncipherment() *KeyUsages {
+ v := KeyUsagesVKeyEncipherment
+ return &v
+}
+
+// KeyUsagesPDigitalSignature returns a pointer to KeyUsagesVDigitalSignature
+func KeyUsagesPDigitalSignature() *KeyUsages {
+ v := KeyUsagesVDigitalSignature
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/KeyValueModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/KeyValueModel.go
new file mode 100644
index 00000000..a04cb81d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/KeyValueModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// KeyValue undocumented
+type KeyValue struct {
+ // Object is the base model of KeyValue
+ Object
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/KeyValuePairModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/KeyValuePairModel.go
new file mode 100644
index 00000000..0ba1f721
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/KeyValuePairModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// KeyValuePair undocumented
+type KeyValuePair struct {
+ // Object is the base model of KeyValuePair
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LabelActionBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LabelActionBaseModel.go
new file mode 100644
index 00000000..d0b24709
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LabelActionBaseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LabelActionBase undocumented
+type LabelActionBase struct {
+ // Object is the base model of LabelActionBase
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LabelDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LabelDetailsModel.go
new file mode 100644
index 00000000..b3e5a8a4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LabelDetailsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LabelDetails undocumented
+type LabelDetails struct {
+ // Object is the base model of LabelDetails
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Color undocumented
+ Color *string `json:"color,omitempty"`
+ // Sensitivity undocumented
+ Sensitivity *int `json:"sensitivity,omitempty"`
+ // Tooltip undocumented
+ Tooltip *string `json:"tooltip,omitempty"`
+ // IsActive undocumented
+ IsActive *bool `json:"isActive,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LabelPolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LabelPolicyModel.go
new file mode 100644
index 00000000..7f064102
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LabelPolicyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LabelPolicy undocumented
+type LabelPolicy struct {
+ // Object is the base model of LabelPolicy
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LabelingOptionsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LabelingOptionsModel.go
new file mode 100644
index 00000000..16790a31
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LabelingOptionsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LabelingOptions undocumented
+type LabelingOptions struct {
+ // Object is the base model of LabelingOptions
+ Object
+ // LabelID undocumented
+ LabelID *UUID `json:"labelId,omitempty"`
+ // AssignmentMethod undocumented
+ AssignmentMethod *AssignmentMethod `json:"assignmentMethod,omitempty"`
+ // DowngradeJustification undocumented
+ DowngradeJustification *DowngradeJustification `json:"downgradeJustification,omitempty"`
+ // ExtendedProperties undocumented
+ ExtendedProperties []KeyValuePair `json:"extendedProperties,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LanManagerAuthenticationLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/LanManagerAuthenticationLevelEnum.go
new file mode 100644
index 00000000..2c01a91a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LanManagerAuthenticationLevelEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LanManagerAuthenticationLevel undocumented
+type LanManagerAuthenticationLevel int
+
+const (
+ // LanManagerAuthenticationLevelVLmAndNltm undocumented
+ LanManagerAuthenticationLevelVLmAndNltm LanManagerAuthenticationLevel = 0
+ // LanManagerAuthenticationLevelVLmNtlmAndNtlmV2 undocumented
+ LanManagerAuthenticationLevelVLmNtlmAndNtlmV2 LanManagerAuthenticationLevel = 1
+ // LanManagerAuthenticationLevelVLmAndNtlmOnly undocumented
+ LanManagerAuthenticationLevelVLmAndNtlmOnly LanManagerAuthenticationLevel = 2
+ // LanManagerAuthenticationLevelVLmAndNtlmV2 undocumented
+ LanManagerAuthenticationLevelVLmAndNtlmV2 LanManagerAuthenticationLevel = 3
+ // LanManagerAuthenticationLevelVLmNtlmV2AndNotLm undocumented
+ LanManagerAuthenticationLevelVLmNtlmV2AndNotLm LanManagerAuthenticationLevel = 4
+ // LanManagerAuthenticationLevelVLmNtlmV2AndNotLmOrNtm undocumented
+ LanManagerAuthenticationLevelVLmNtlmV2AndNotLmOrNtm LanManagerAuthenticationLevel = 5
+)
+
+// LanManagerAuthenticationLevelPLmAndNltm returns a pointer to LanManagerAuthenticationLevelVLmAndNltm
+func LanManagerAuthenticationLevelPLmAndNltm() *LanManagerAuthenticationLevel {
+ v := LanManagerAuthenticationLevelVLmAndNltm
+ return &v
+}
+
+// LanManagerAuthenticationLevelPLmNtlmAndNtlmV2 returns a pointer to LanManagerAuthenticationLevelVLmNtlmAndNtlmV2
+func LanManagerAuthenticationLevelPLmNtlmAndNtlmV2() *LanManagerAuthenticationLevel {
+ v := LanManagerAuthenticationLevelVLmNtlmAndNtlmV2
+ return &v
+}
+
+// LanManagerAuthenticationLevelPLmAndNtlmOnly returns a pointer to LanManagerAuthenticationLevelVLmAndNtlmOnly
+func LanManagerAuthenticationLevelPLmAndNtlmOnly() *LanManagerAuthenticationLevel {
+ v := LanManagerAuthenticationLevelVLmAndNtlmOnly
+ return &v
+}
+
+// LanManagerAuthenticationLevelPLmAndNtlmV2 returns a pointer to LanManagerAuthenticationLevelVLmAndNtlmV2
+func LanManagerAuthenticationLevelPLmAndNtlmV2() *LanManagerAuthenticationLevel {
+ v := LanManagerAuthenticationLevelVLmAndNtlmV2
+ return &v
+}
+
+// LanManagerAuthenticationLevelPLmNtlmV2AndNotLm returns a pointer to LanManagerAuthenticationLevelVLmNtlmV2AndNotLm
+func LanManagerAuthenticationLevelPLmNtlmV2AndNotLm() *LanManagerAuthenticationLevel {
+ v := LanManagerAuthenticationLevelVLmNtlmV2AndNotLm
+ return &v
+}
+
+// LanManagerAuthenticationLevelPLmNtlmV2AndNotLmOrNtm returns a pointer to LanManagerAuthenticationLevelVLmNtlmV2AndNotLmOrNtm
+func LanManagerAuthenticationLevelPLmNtlmV2AndNotLmOrNtm() *LanManagerAuthenticationLevel {
+ v := LanManagerAuthenticationLevelVLmNtlmV2AndNotLmOrNtm
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LanguageProficiencyLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/LanguageProficiencyLevelEnum.go
new file mode 100644
index 00000000..527ed3d7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LanguageProficiencyLevelEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LanguageProficiencyLevel undocumented
+type LanguageProficiencyLevel int
+
+const (
+ // LanguageProficiencyLevelVElementary undocumented
+ LanguageProficiencyLevelVElementary LanguageProficiencyLevel = 0
+ // LanguageProficiencyLevelVConversational undocumented
+ LanguageProficiencyLevelVConversational LanguageProficiencyLevel = 1
+ // LanguageProficiencyLevelVLimitedWorking undocumented
+ LanguageProficiencyLevelVLimitedWorking LanguageProficiencyLevel = 2
+ // LanguageProficiencyLevelVProfessionalWorking undocumented
+ LanguageProficiencyLevelVProfessionalWorking LanguageProficiencyLevel = 3
+ // LanguageProficiencyLevelVFullProfessional undocumented
+ LanguageProficiencyLevelVFullProfessional LanguageProficiencyLevel = 4
+ // LanguageProficiencyLevelVNativeOrBilingual undocumented
+ LanguageProficiencyLevelVNativeOrBilingual LanguageProficiencyLevel = 5
+ // LanguageProficiencyLevelVUnknownFutureValue undocumented
+ LanguageProficiencyLevelVUnknownFutureValue LanguageProficiencyLevel = 6
+)
+
+// LanguageProficiencyLevelPElementary returns a pointer to LanguageProficiencyLevelVElementary
+func LanguageProficiencyLevelPElementary() *LanguageProficiencyLevel {
+ v := LanguageProficiencyLevelVElementary
+ return &v
+}
+
+// LanguageProficiencyLevelPConversational returns a pointer to LanguageProficiencyLevelVConversational
+func LanguageProficiencyLevelPConversational() *LanguageProficiencyLevel {
+ v := LanguageProficiencyLevelVConversational
+ return &v
+}
+
+// LanguageProficiencyLevelPLimitedWorking returns a pointer to LanguageProficiencyLevelVLimitedWorking
+func LanguageProficiencyLevelPLimitedWorking() *LanguageProficiencyLevel {
+ v := LanguageProficiencyLevelVLimitedWorking
+ return &v
+}
+
+// LanguageProficiencyLevelPProfessionalWorking returns a pointer to LanguageProficiencyLevelVProfessionalWorking
+func LanguageProficiencyLevelPProfessionalWorking() *LanguageProficiencyLevel {
+ v := LanguageProficiencyLevelVProfessionalWorking
+ return &v
+}
+
+// LanguageProficiencyLevelPFullProfessional returns a pointer to LanguageProficiencyLevelVFullProfessional
+func LanguageProficiencyLevelPFullProfessional() *LanguageProficiencyLevel {
+ v := LanguageProficiencyLevelVFullProfessional
+ return &v
+}
+
+// LanguageProficiencyLevelPNativeOrBilingual returns a pointer to LanguageProficiencyLevelVNativeOrBilingual
+func LanguageProficiencyLevelPNativeOrBilingual() *LanguageProficiencyLevel {
+ v := LanguageProficiencyLevelVNativeOrBilingual
+ return &v
+}
+
+// LanguageProficiencyLevelPUnknownFutureValue returns a pointer to LanguageProficiencyLevelVUnknownFutureValue
+func LanguageProficiencyLevelPUnknownFutureValue() *LanguageProficiencyLevel {
+ v := LanguageProficiencyLevelVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LanguageProficiencyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LanguageProficiencyModel.go
new file mode 100644
index 00000000..499a03a9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LanguageProficiencyModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LanguageProficiency undocumented
+type LanguageProficiency struct {
+ // ItemFacet is the base model of LanguageProficiency
+ ItemFacet
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Tag undocumented
+ Tag *string `json:"tag,omitempty"`
+ // Proficiency undocumented
+ Proficiency *LanguageProficiencyLevel `json:"proficiency,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LanguageProficiencyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/LanguageProficiencyRequest.go
new file mode 100644
index 00000000..e16707c6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LanguageProficiencyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// LanguageProficiencyRequestBuilder is request builder for LanguageProficiency
+type LanguageProficiencyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns LanguageProficiencyRequest
+func (b *LanguageProficiencyRequestBuilder) Request() *LanguageProficiencyRequest {
+ return &LanguageProficiencyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// LanguageProficiencyRequest is request for LanguageProficiency
+type LanguageProficiencyRequest struct{ BaseRequest }
+
+// Get performs GET request for LanguageProficiency
+func (r *LanguageProficiencyRequest) Get(ctx context.Context) (resObj *LanguageProficiency, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for LanguageProficiency
+func (r *LanguageProficiencyRequest) Update(ctx context.Context, reqObj *LanguageProficiency) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for LanguageProficiency
+func (r *LanguageProficiencyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LeakedCredentialsRiskEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LeakedCredentialsRiskEventModel.go
new file mode 100644
index 00000000..9f111932
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LeakedCredentialsRiskEventModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LeakedCredentialsRiskEvent undocumented
+type LeakedCredentialsRiskEvent struct {
+ // IdentityRiskEvent is the base model of LeakedCredentialsRiskEvent
+ IdentityRiskEvent
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LeakedCredentialsRiskEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/LeakedCredentialsRiskEventRequest.go
new file mode 100644
index 00000000..74784d7d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LeakedCredentialsRiskEventRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// LeakedCredentialsRiskEventRequestBuilder is request builder for LeakedCredentialsRiskEvent
+type LeakedCredentialsRiskEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns LeakedCredentialsRiskEventRequest
+func (b *LeakedCredentialsRiskEventRequestBuilder) Request() *LeakedCredentialsRiskEventRequest {
+ return &LeakedCredentialsRiskEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// LeakedCredentialsRiskEventRequest is request for LeakedCredentialsRiskEvent
+type LeakedCredentialsRiskEventRequest struct{ BaseRequest }
+
+// Get performs GET request for LeakedCredentialsRiskEvent
+func (r *LeakedCredentialsRiskEventRequest) Get(ctx context.Context) (resObj *LeakedCredentialsRiskEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for LeakedCredentialsRiskEvent
+func (r *LeakedCredentialsRiskEventRequest) Update(ctx context.Context, reqObj *LeakedCredentialsRiskEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for LeakedCredentialsRiskEvent
+func (r *LeakedCredentialsRiskEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LearnedLocationModelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LearnedLocationModelModel.go
new file mode 100644
index 00000000..216c9422
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LearnedLocationModelModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LearnedLocationModel undocumented
+type LearnedLocationModel struct {
+ // Object is the base model of LearnedLocationModel
+ Object
+ // Address undocumented
+ Address *PhysicalAddress `json:"address,omitempty"`
+ // Coordinates undocumented
+ Coordinates *OutlookGeoCoordinates `json:"coordinates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LicenseAssignmentStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LicenseAssignmentStateModel.go
new file mode 100644
index 00000000..4be42bf7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LicenseAssignmentStateModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LicenseAssignmentState undocumented
+type LicenseAssignmentState struct {
+ // Object is the base model of LicenseAssignmentState
+ Object
+ // SKUID undocumented
+ SKUID *UUID `json:"skuId,omitempty"`
+ // DisabledPlans undocumented
+ DisabledPlans []UUID `json:"disabledPlans,omitempty"`
+ // AssignedByGroup undocumented
+ AssignedByGroup *string `json:"assignedByGroup,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // Error undocumented
+ Error *string `json:"error,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LicenseDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LicenseDetailsModel.go
new file mode 100644
index 00000000..b19356cb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LicenseDetailsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LicenseDetails undocumented
+type LicenseDetails struct {
+ // Entity is the base model of LicenseDetails
+ Entity
+ // ServicePlans undocumented
+ ServicePlans []ServicePlanInfo `json:"servicePlans,omitempty"`
+ // SKUID undocumented
+ SKUID *UUID `json:"skuId,omitempty"`
+ // SKUPartNumber undocumented
+ SKUPartNumber *string `json:"skuPartNumber,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LicenseDetailsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/LicenseDetailsRequest.go
new file mode 100644
index 00000000..50430177
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LicenseDetailsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// LicenseDetailsRequestBuilder is request builder for LicenseDetails
+type LicenseDetailsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns LicenseDetailsRequest
+func (b *LicenseDetailsRequestBuilder) Request() *LicenseDetailsRequest {
+ return &LicenseDetailsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// LicenseDetailsRequest is request for LicenseDetails
+type LicenseDetailsRequest struct{ BaseRequest }
+
+// Get performs GET request for LicenseDetails
+func (r *LicenseDetailsRequest) Get(ctx context.Context) (resObj *LicenseDetails, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for LicenseDetails
+func (r *LicenseDetailsRequest) Update(ctx context.Context, reqObj *LicenseDetails) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for LicenseDetails
+func (r *LicenseDetailsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LicenseInfoDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LicenseInfoDetailModel.go
new file mode 100644
index 00000000..850ad2f8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LicenseInfoDetailModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LicenseInfoDetail undocumented
+type LicenseInfoDetail struct {
+ // Object is the base model of LicenseInfoDetail
+ Object
+ // LicenseType undocumented
+ LicenseType *AzureADLicenseType `json:"licenseType,omitempty"`
+ // TotalLicenseCount undocumented
+ TotalLicenseCount *int `json:"totalLicenseCount,omitempty"`
+ // TotalAssignedCount undocumented
+ TotalAssignedCount *int `json:"totalAssignedCount,omitempty"`
+ // TotalUsageCount undocumented
+ TotalUsageCount *int `json:"totalUsageCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LicenseProcessingStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LicenseProcessingStateModel.go
new file mode 100644
index 00000000..89c2f4bb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LicenseProcessingStateModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LicenseProcessingState undocumented
+type LicenseProcessingState struct {
+ // Object is the base model of LicenseProcessingState
+ Object
+ // State undocumented
+ State *string `json:"state,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LicenseUnitsDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LicenseUnitsDetailModel.go
new file mode 100644
index 00000000..50ebfcd1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LicenseUnitsDetailModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LicenseUnitsDetail undocumented
+type LicenseUnitsDetail struct {
+ // Object is the base model of LicenseUnitsDetail
+ Object
+ // Enabled undocumented
+ Enabled *int `json:"enabled,omitempty"`
+ // Suspended undocumented
+ Suspended *int `json:"suspended,omitempty"`
+ // Warning undocumented
+ Warning *int `json:"warning,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ListInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ListInfoModel.go
new file mode 100644
index 00000000..bb58a275
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ListInfoModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ListInfo undocumented
+type ListInfo struct {
+ // Object is the base model of ListInfo
+ Object
+ // ContentTypesEnabled undocumented
+ ContentTypesEnabled *bool `json:"contentTypesEnabled,omitempty"`
+ // Hidden undocumented
+ Hidden *bool `json:"hidden,omitempty"`
+ // Template undocumented
+ Template *string `json:"template,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ListItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ListItemModel.go
new file mode 100644
index 00000000..d6ef73cb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ListItemModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ListItem undocumented
+type ListItem struct {
+ // BaseItem is the base model of ListItem
+ BaseItem
+ // ContentType undocumented
+ ContentType *ContentTypeInfo `json:"contentType,omitempty"`
+ // SharepointIDs undocumented
+ SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"`
+ // Activities undocumented
+ Activities []ItemActivityOLD `json:"activities,omitempty"`
+ // Analytics undocumented
+ Analytics *ItemAnalytics `json:"analytics,omitempty"`
+ // DriveItem undocumented
+ DriveItem *DriveItem `json:"driveItem,omitempty"`
+ // Fields undocumented
+ Fields *FieldValueSet `json:"fields,omitempty"`
+ // Versions undocumented
+ Versions []ListItemVersion `json:"versions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ListItemRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ListItemRequest.go
new file mode 100644
index 00000000..d80d6072
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ListItemRequest.go
@@ -0,0 +1,254 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ListItemRequestBuilder is request builder for ListItem
+type ListItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ListItemRequest
+func (b *ListItemRequestBuilder) Request() *ListItemRequest {
+ return &ListItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ListItemRequest is request for ListItem
+type ListItemRequest struct{ BaseRequest }
+
+// Get performs GET request for ListItem
+func (r *ListItemRequest) Get(ctx context.Context) (resObj *ListItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ListItem
+func (r *ListItemRequest) Update(ctx context.Context, reqObj *ListItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ListItem
+func (r *ListItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Activities returns request builder for ItemActivityOLD collection
+func (b *ListItemRequestBuilder) Activities() *ListItemActivitiesCollectionRequestBuilder {
+ bb := &ListItemActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activities"
+ return bb
+}
+
+// ListItemActivitiesCollectionRequestBuilder is request builder for ItemActivityOLD collection
+type ListItemActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemActivityOLD collection
+func (b *ListItemActivitiesCollectionRequestBuilder) Request() *ListItemActivitiesCollectionRequest {
+ return &ListItemActivitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemActivityOLD item
+func (b *ListItemActivitiesCollectionRequestBuilder) ID(id string) *ItemActivityOLDRequestBuilder {
+ bb := &ItemActivityOLDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ListItemActivitiesCollectionRequest is request for ItemActivityOLD collection
+type ListItemActivitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemActivityOLD collection
+func (r *ListItemActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ItemActivityOLD, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemActivityOLD
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemActivityOLD
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemActivityOLD collection
+func (r *ListItemActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivityOLD, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ItemActivityOLD collection
+func (r *ListItemActivitiesCollectionRequest) Add(ctx context.Context, reqObj *ItemActivityOLD) (resObj *ItemActivityOLD, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Analytics is navigation property
+func (b *ListItemRequestBuilder) Analytics() *ItemAnalyticsRequestBuilder {
+ bb := &ItemAnalyticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/analytics"
+ return bb
+}
+
+// DriveItem is navigation property
+func (b *ListItemRequestBuilder) DriveItem() *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/driveItem"
+ return bb
+}
+
+// Fields is navigation property
+func (b *ListItemRequestBuilder) Fields() *FieldValueSetRequestBuilder {
+ bb := &FieldValueSetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/fields"
+ return bb
+}
+
+// Versions returns request builder for ListItemVersion collection
+func (b *ListItemRequestBuilder) Versions() *ListItemVersionsCollectionRequestBuilder {
+ bb := &ListItemVersionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/versions"
+ return bb
+}
+
+// ListItemVersionsCollectionRequestBuilder is request builder for ListItemVersion collection
+type ListItemVersionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ListItemVersion collection
+func (b *ListItemVersionsCollectionRequestBuilder) Request() *ListItemVersionsCollectionRequest {
+ return &ListItemVersionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ListItemVersion item
+func (b *ListItemVersionsCollectionRequestBuilder) ID(id string) *ListItemVersionRequestBuilder {
+ bb := &ListItemVersionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ListItemVersionsCollectionRequest is request for ListItemVersion collection
+type ListItemVersionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ListItemVersion collection
+func (r *ListItemVersionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ListItemVersion, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ListItemVersion
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ListItemVersion
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ListItemVersion collection
+func (r *ListItemVersionsCollectionRequest) Get(ctx context.Context) ([]ListItemVersion, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ListItemVersion collection
+func (r *ListItemVersionsCollectionRequest) Add(ctx context.Context, reqObj *ListItemVersion) (resObj *ListItemVersion, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ListItemVersionAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ListItemVersionAction.go
new file mode 100644
index 00000000..05ca2676
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ListItemVersionAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ListItemVersionRestoreVersionRequestParameter undocumented
+type ListItemVersionRestoreVersionRequestParameter struct {
+}
+
+//
+type ListItemVersionRestoreVersionRequestBuilder struct{ BaseRequestBuilder }
+
+// RestoreVersion action undocumented
+func (b *ListItemVersionRequestBuilder) RestoreVersion(reqObj *ListItemVersionRestoreVersionRequestParameter) *ListItemVersionRestoreVersionRequestBuilder {
+ bb := &ListItemVersionRestoreVersionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/restoreVersion"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ListItemVersionRestoreVersionRequest struct{ BaseRequest }
+
+//
+func (b *ListItemVersionRestoreVersionRequestBuilder) Request() *ListItemVersionRestoreVersionRequest {
+ return &ListItemVersionRestoreVersionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ListItemVersionRestoreVersionRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ListItemVersionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ListItemVersionModel.go
new file mode 100644
index 00000000..88b6e707
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ListItemVersionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ListItemVersion undocumented
+type ListItemVersion struct {
+ // BaseItemVersion is the base model of ListItemVersion
+ BaseItemVersion
+ // Fields undocumented
+ Fields *FieldValueSet `json:"fields,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ListItemVersionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ListItemVersionRequest.go
new file mode 100644
index 00000000..62cb0666
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ListItemVersionRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ListItemVersionRequestBuilder is request builder for ListItemVersion
+type ListItemVersionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ListItemVersionRequest
+func (b *ListItemVersionRequestBuilder) Request() *ListItemVersionRequest {
+ return &ListItemVersionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ListItemVersionRequest is request for ListItemVersion
+type ListItemVersionRequest struct{ BaseRequest }
+
+// Get performs GET request for ListItemVersion
+func (r *ListItemVersionRequest) Get(ctx context.Context) (resObj *ListItemVersion, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ListItemVersion
+func (r *ListItemVersionRequest) Update(ctx context.Context, reqObj *ListItemVersion) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ListItemVersion
+func (r *ListItemVersionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Fields is navigation property
+func (b *ListItemVersionRequestBuilder) Fields() *FieldValueSetRequestBuilder {
+ bb := &FieldValueSetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/fields"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ListModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ListModel.go
new file mode 100644
index 00000000..ddf68195
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ListModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// List undocumented
+type List struct {
+ // BaseItem is the base model of List
+ BaseItem
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // List undocumented
+ List *ListInfo `json:"list,omitempty"`
+ // SharepointIDs undocumented
+ SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"`
+ // System undocumented
+ System *SystemFacet `json:"system,omitempty"`
+ // Activities undocumented
+ Activities []ItemActivityOLD `json:"activities,omitempty"`
+ // Columns undocumented
+ Columns []ColumnDefinition `json:"columns,omitempty"`
+ // ContentTypes undocumented
+ ContentTypes []ContentType `json:"contentTypes,omitempty"`
+ // Drive undocumented
+ Drive *Drive `json:"drive,omitempty"`
+ // Items undocumented
+ Items []ListItem `json:"items,omitempty"`
+ // Subscriptions undocumented
+ Subscriptions []Subscription `json:"subscriptions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ListRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ListRequest.go
new file mode 100644
index 00000000..28718ecc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ListRequest.go
@@ -0,0 +1,522 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ListRequestBuilder is request builder for List
+type ListRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ListRequest
+func (b *ListRequestBuilder) Request() *ListRequest {
+ return &ListRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ListRequest is request for List
+type ListRequest struct{ BaseRequest }
+
+// Get performs GET request for List
+func (r *ListRequest) Get(ctx context.Context) (resObj *List, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for List
+func (r *ListRequest) Update(ctx context.Context, reqObj *List) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for List
+func (r *ListRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Activities returns request builder for ItemActivityOLD collection
+func (b *ListRequestBuilder) Activities() *ListActivitiesCollectionRequestBuilder {
+ bb := &ListActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activities"
+ return bb
+}
+
+// ListActivitiesCollectionRequestBuilder is request builder for ItemActivityOLD collection
+type ListActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemActivityOLD collection
+func (b *ListActivitiesCollectionRequestBuilder) Request() *ListActivitiesCollectionRequest {
+ return &ListActivitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemActivityOLD item
+func (b *ListActivitiesCollectionRequestBuilder) ID(id string) *ItemActivityOLDRequestBuilder {
+ bb := &ItemActivityOLDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ListActivitiesCollectionRequest is request for ItemActivityOLD collection
+type ListActivitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemActivityOLD collection
+func (r *ListActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ItemActivityOLD, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemActivityOLD
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemActivityOLD
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemActivityOLD collection
+func (r *ListActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivityOLD, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ItemActivityOLD collection
+func (r *ListActivitiesCollectionRequest) Add(ctx context.Context, reqObj *ItemActivityOLD) (resObj *ItemActivityOLD, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Columns returns request builder for ColumnDefinition collection
+func (b *ListRequestBuilder) Columns() *ListColumnsCollectionRequestBuilder {
+ bb := &ListColumnsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/columns"
+ return bb
+}
+
+// ListColumnsCollectionRequestBuilder is request builder for ColumnDefinition collection
+type ListColumnsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ColumnDefinition collection
+func (b *ListColumnsCollectionRequestBuilder) Request() *ListColumnsCollectionRequest {
+ return &ListColumnsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ColumnDefinition item
+func (b *ListColumnsCollectionRequestBuilder) ID(id string) *ColumnDefinitionRequestBuilder {
+ bb := &ColumnDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ListColumnsCollectionRequest is request for ColumnDefinition collection
+type ListColumnsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ColumnDefinition collection
+func (r *ListColumnsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ColumnDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ColumnDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ColumnDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ColumnDefinition collection
+func (r *ListColumnsCollectionRequest) Get(ctx context.Context) ([]ColumnDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ColumnDefinition collection
+func (r *ListColumnsCollectionRequest) Add(ctx context.Context, reqObj *ColumnDefinition) (resObj *ColumnDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ContentTypes returns request builder for ContentType collection
+func (b *ListRequestBuilder) ContentTypes() *ListContentTypesCollectionRequestBuilder {
+ bb := &ListContentTypesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contentTypes"
+ return bb
+}
+
+// ListContentTypesCollectionRequestBuilder is request builder for ContentType collection
+type ListContentTypesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ContentType collection
+func (b *ListContentTypesCollectionRequestBuilder) Request() *ListContentTypesCollectionRequest {
+ return &ListContentTypesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ContentType item
+func (b *ListContentTypesCollectionRequestBuilder) ID(id string) *ContentTypeRequestBuilder {
+ bb := &ContentTypeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ListContentTypesCollectionRequest is request for ContentType collection
+type ListContentTypesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ContentType collection
+func (r *ListContentTypesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ContentType, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ContentType
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ContentType
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ContentType collection
+func (r *ListContentTypesCollectionRequest) Get(ctx context.Context) ([]ContentType, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ContentType collection
+func (r *ListContentTypesCollectionRequest) Add(ctx context.Context, reqObj *ContentType) (resObj *ContentType, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Drive is navigation property
+func (b *ListRequestBuilder) Drive() *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drive"
+ return bb
+}
+
+// Items returns request builder for ListItem collection
+func (b *ListRequestBuilder) Items() *ListItemsCollectionRequestBuilder {
+ bb := &ListItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/items"
+ return bb
+}
+
+// ListItemsCollectionRequestBuilder is request builder for ListItem collection
+type ListItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ListItem collection
+func (b *ListItemsCollectionRequestBuilder) Request() *ListItemsCollectionRequest {
+ return &ListItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ListItem item
+func (b *ListItemsCollectionRequestBuilder) ID(id string) *ListItemRequestBuilder {
+ bb := &ListItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ListItemsCollectionRequest is request for ListItem collection
+type ListItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ListItem collection
+func (r *ListItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ListItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ListItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ListItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ListItem collection
+func (r *ListItemsCollectionRequest) Get(ctx context.Context) ([]ListItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ListItem collection
+func (r *ListItemsCollectionRequest) Add(ctx context.Context, reqObj *ListItem) (resObj *ListItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Subscriptions returns request builder for Subscription collection
+func (b *ListRequestBuilder) Subscriptions() *ListSubscriptionsCollectionRequestBuilder {
+ bb := &ListSubscriptionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/subscriptions"
+ return bb
+}
+
+// ListSubscriptionsCollectionRequestBuilder is request builder for Subscription collection
+type ListSubscriptionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Subscription collection
+func (b *ListSubscriptionsCollectionRequestBuilder) Request() *ListSubscriptionsCollectionRequest {
+ return &ListSubscriptionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Subscription item
+func (b *ListSubscriptionsCollectionRequestBuilder) ID(id string) *SubscriptionRequestBuilder {
+ bb := &SubscriptionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ListSubscriptionsCollectionRequest is request for Subscription collection
+type ListSubscriptionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Subscription collection
+func (r *ListSubscriptionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Subscription, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Subscription
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Subscription
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Subscription collection
+func (r *ListSubscriptionsCollectionRequest) Get(ctx context.Context) ([]Subscription, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Subscription collection
+func (r *ListSubscriptionsCollectionRequest) Add(ctx context.Context, reqObj *Subscription) (resObj *Subscription, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeEnum.go
new file mode 100644
index 00000000..a4eb2e71
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocalSecurityOptionsAdministratorElevationPromptBehaviorType undocumented
+type LocalSecurityOptionsAdministratorElevationPromptBehaviorType int
+
+const (
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVNotConfigured undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVNotConfigured LocalSecurityOptionsAdministratorElevationPromptBehaviorType = 0
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVElevateWithoutPrompting undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVElevateWithoutPrompting LocalSecurityOptionsAdministratorElevationPromptBehaviorType = 1
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop LocalSecurityOptionsAdministratorElevationPromptBehaviorType = 2
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentOnTheSecureDesktop undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentOnTheSecureDesktop LocalSecurityOptionsAdministratorElevationPromptBehaviorType = 3
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentials undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentials LocalSecurityOptionsAdministratorElevationPromptBehaviorType = 4
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsent undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsent LocalSecurityOptionsAdministratorElevationPromptBehaviorType = 5
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentForNonWindowsBinaries undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentForNonWindowsBinaries LocalSecurityOptionsAdministratorElevationPromptBehaviorType = 6
+)
+
+// LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePNotConfigured returns a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVNotConfigured
+func LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePNotConfigured() *LocalSecurityOptionsAdministratorElevationPromptBehaviorType {
+ v := LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVNotConfigured
+ return &v
+}
+
+// LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePElevateWithoutPrompting returns a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVElevateWithoutPrompting
+func LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePElevateWithoutPrompting() *LocalSecurityOptionsAdministratorElevationPromptBehaviorType {
+ v := LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVElevateWithoutPrompting
+ return &v
+}
+
+// LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop returns a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop
+func LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop() *LocalSecurityOptionsAdministratorElevationPromptBehaviorType {
+ v := LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop
+ return &v
+}
+
+// LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentOnTheSecureDesktop returns a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentOnTheSecureDesktop
+func LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentOnTheSecureDesktop() *LocalSecurityOptionsAdministratorElevationPromptBehaviorType {
+ v := LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentOnTheSecureDesktop
+ return &v
+}
+
+// LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentials returns a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentials
+func LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentials() *LocalSecurityOptionsAdministratorElevationPromptBehaviorType {
+ v := LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentials
+ return &v
+}
+
+// LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsent returns a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsent
+func LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsent() *LocalSecurityOptionsAdministratorElevationPromptBehaviorType {
+ v := LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsent
+ return &v
+}
+
+// LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentForNonWindowsBinaries returns a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentForNonWindowsBinaries
+func LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentForNonWindowsBinaries() *LocalSecurityOptionsAdministratorElevationPromptBehaviorType {
+ v := LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentForNonWindowsBinaries
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeEnum.go
new file mode 100644
index 00000000..ad065e26
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType undocumented
+type LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType int
+
+const (
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVNotConfigured undocumented
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVNotConfigured LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType = 0
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministrators undocumented
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministrators LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType = 1
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndPowerUsers undocumented
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndPowerUsers LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType = 2
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndInteractiveUsers undocumented
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndInteractiveUsers LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType = 3
+)
+
+// LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePNotConfigured returns a pointer to LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVNotConfigured
+func LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePNotConfigured() *LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType {
+ v := LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVNotConfigured
+ return &v
+}
+
+// LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministrators returns a pointer to LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministrators
+func LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministrators() *LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType {
+ v := LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministrators
+ return &v
+}
+
+// LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndPowerUsers returns a pointer to LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndPowerUsers
+func LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndPowerUsers() *LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType {
+ v := LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndPowerUsers
+ return &v
+}
+
+// LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndInteractiveUsers returns a pointer to LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndInteractiveUsers
+func LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndInteractiveUsers() *LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType {
+ v := LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndInteractiveUsers
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsInformationDisplayedOnLockScreenTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsInformationDisplayedOnLockScreenTypeEnum.go
new file mode 100644
index 00000000..2ce32a01
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsInformationDisplayedOnLockScreenTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocalSecurityOptionsInformationDisplayedOnLockScreenType undocumented
+type LocalSecurityOptionsInformationDisplayedOnLockScreenType int
+
+const (
+ // LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVNotConfigured undocumented
+ LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVNotConfigured LocalSecurityOptionsInformationDisplayedOnLockScreenType = 0
+ // LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministrators undocumented
+ LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministrators LocalSecurityOptionsInformationDisplayedOnLockScreenType = 1
+ // LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndPowerUsers undocumented
+ LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndPowerUsers LocalSecurityOptionsInformationDisplayedOnLockScreenType = 2
+ // LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndInteractiveUsers undocumented
+ LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndInteractiveUsers LocalSecurityOptionsInformationDisplayedOnLockScreenType = 3
+)
+
+// LocalSecurityOptionsInformationDisplayedOnLockScreenTypePNotConfigured returns a pointer to LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVNotConfigured
+func LocalSecurityOptionsInformationDisplayedOnLockScreenTypePNotConfigured() *LocalSecurityOptionsInformationDisplayedOnLockScreenType {
+ v := LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVNotConfigured
+ return &v
+}
+
+// LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministrators returns a pointer to LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministrators
+func LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministrators() *LocalSecurityOptionsInformationDisplayedOnLockScreenType {
+ v := LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministrators
+ return &v
+}
+
+// LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndPowerUsers returns a pointer to LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndPowerUsers
+func LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndPowerUsers() *LocalSecurityOptionsInformationDisplayedOnLockScreenType {
+ v := LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndPowerUsers
+ return &v
+}
+
+// LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndInteractiveUsers returns a pointer to LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndInteractiveUsers
+func LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndInteractiveUsers() *LocalSecurityOptionsInformationDisplayedOnLockScreenType {
+ v := LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndInteractiveUsers
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsInformationShownOnLockScreenTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsInformationShownOnLockScreenTypeEnum.go
new file mode 100644
index 00000000..60f99426
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsInformationShownOnLockScreenTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocalSecurityOptionsInformationShownOnLockScreenType undocumented
+type LocalSecurityOptionsInformationShownOnLockScreenType int
+
+const (
+ // LocalSecurityOptionsInformationShownOnLockScreenTypeVNotConfigured undocumented
+ LocalSecurityOptionsInformationShownOnLockScreenTypeVNotConfigured LocalSecurityOptionsInformationShownOnLockScreenType = 0
+ // LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameDomainUser undocumented
+ LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameDomainUser LocalSecurityOptionsInformationShownOnLockScreenType = 1
+ // LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameOnly undocumented
+ LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameOnly LocalSecurityOptionsInformationShownOnLockScreenType = 2
+ // LocalSecurityOptionsInformationShownOnLockScreenTypeVDoNotDisplayUser undocumented
+ LocalSecurityOptionsInformationShownOnLockScreenTypeVDoNotDisplayUser LocalSecurityOptionsInformationShownOnLockScreenType = 3
+)
+
+// LocalSecurityOptionsInformationShownOnLockScreenTypePNotConfigured returns a pointer to LocalSecurityOptionsInformationShownOnLockScreenTypeVNotConfigured
+func LocalSecurityOptionsInformationShownOnLockScreenTypePNotConfigured() *LocalSecurityOptionsInformationShownOnLockScreenType {
+ v := LocalSecurityOptionsInformationShownOnLockScreenTypeVNotConfigured
+ return &v
+}
+
+// LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameDomainUser returns a pointer to LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameDomainUser
+func LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameDomainUser() *LocalSecurityOptionsInformationShownOnLockScreenType {
+ v := LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameDomainUser
+ return &v
+}
+
+// LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameOnly returns a pointer to LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameOnly
+func LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameOnly() *LocalSecurityOptionsInformationShownOnLockScreenType {
+ v := LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameOnly
+ return &v
+}
+
+// LocalSecurityOptionsInformationShownOnLockScreenTypePDoNotDisplayUser returns a pointer to LocalSecurityOptionsInformationShownOnLockScreenTypeVDoNotDisplayUser
+func LocalSecurityOptionsInformationShownOnLockScreenTypePDoNotDisplayUser() *LocalSecurityOptionsInformationShownOnLockScreenType {
+ v := LocalSecurityOptionsInformationShownOnLockScreenTypeVDoNotDisplayUser
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsMinimumSessionSecurityEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsMinimumSessionSecurityEnum.go
new file mode 100644
index 00000000..0bcfd367
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsMinimumSessionSecurityEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocalSecurityOptionsMinimumSessionSecurity undocumented
+type LocalSecurityOptionsMinimumSessionSecurity int
+
+const (
+ // LocalSecurityOptionsMinimumSessionSecurityVNone undocumented
+ LocalSecurityOptionsMinimumSessionSecurityVNone LocalSecurityOptionsMinimumSessionSecurity = 0
+ // LocalSecurityOptionsMinimumSessionSecurityVRequireNtmlV2SessionSecurity undocumented
+ LocalSecurityOptionsMinimumSessionSecurityVRequireNtmlV2SessionSecurity LocalSecurityOptionsMinimumSessionSecurity = 1
+ // LocalSecurityOptionsMinimumSessionSecurityVRequire128BitEncryption undocumented
+ LocalSecurityOptionsMinimumSessionSecurityVRequire128BitEncryption LocalSecurityOptionsMinimumSessionSecurity = 2
+ // LocalSecurityOptionsMinimumSessionSecurityVNtlmV2And128BitEncryption undocumented
+ LocalSecurityOptionsMinimumSessionSecurityVNtlmV2And128BitEncryption LocalSecurityOptionsMinimumSessionSecurity = 3
+)
+
+// LocalSecurityOptionsMinimumSessionSecurityPNone returns a pointer to LocalSecurityOptionsMinimumSessionSecurityVNone
+func LocalSecurityOptionsMinimumSessionSecurityPNone() *LocalSecurityOptionsMinimumSessionSecurity {
+ v := LocalSecurityOptionsMinimumSessionSecurityVNone
+ return &v
+}
+
+// LocalSecurityOptionsMinimumSessionSecurityPRequireNtmlV2SessionSecurity returns a pointer to LocalSecurityOptionsMinimumSessionSecurityVRequireNtmlV2SessionSecurity
+func LocalSecurityOptionsMinimumSessionSecurityPRequireNtmlV2SessionSecurity() *LocalSecurityOptionsMinimumSessionSecurity {
+ v := LocalSecurityOptionsMinimumSessionSecurityVRequireNtmlV2SessionSecurity
+ return &v
+}
+
+// LocalSecurityOptionsMinimumSessionSecurityPRequire128BitEncryption returns a pointer to LocalSecurityOptionsMinimumSessionSecurityVRequire128BitEncryption
+func LocalSecurityOptionsMinimumSessionSecurityPRequire128BitEncryption() *LocalSecurityOptionsMinimumSessionSecurity {
+ v := LocalSecurityOptionsMinimumSessionSecurityVRequire128BitEncryption
+ return &v
+}
+
+// LocalSecurityOptionsMinimumSessionSecurityPNtlmV2And128BitEncryption returns a pointer to LocalSecurityOptionsMinimumSessionSecurityVNtlmV2And128BitEncryption
+func LocalSecurityOptionsMinimumSessionSecurityPNtlmV2And128BitEncryption() *LocalSecurityOptionsMinimumSessionSecurity {
+ v := LocalSecurityOptionsMinimumSessionSecurityVNtlmV2And128BitEncryption
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsSmartCardRemovalBehaviorTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsSmartCardRemovalBehaviorTypeEnum.go
new file mode 100644
index 00000000..8c0c06f6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsSmartCardRemovalBehaviorTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocalSecurityOptionsSmartCardRemovalBehaviorType undocumented
+type LocalSecurityOptionsSmartCardRemovalBehaviorType int
+
+const (
+ // LocalSecurityOptionsSmartCardRemovalBehaviorTypeVLockWorkstation undocumented
+ LocalSecurityOptionsSmartCardRemovalBehaviorTypeVLockWorkstation LocalSecurityOptionsSmartCardRemovalBehaviorType = 0
+ // LocalSecurityOptionsSmartCardRemovalBehaviorTypeVNoAction undocumented
+ LocalSecurityOptionsSmartCardRemovalBehaviorTypeVNoAction LocalSecurityOptionsSmartCardRemovalBehaviorType = 1
+ // LocalSecurityOptionsSmartCardRemovalBehaviorTypeVForceLogoff undocumented
+ LocalSecurityOptionsSmartCardRemovalBehaviorTypeVForceLogoff LocalSecurityOptionsSmartCardRemovalBehaviorType = 2
+ // LocalSecurityOptionsSmartCardRemovalBehaviorTypeVDisconnectRemoteDesktopSession undocumented
+ LocalSecurityOptionsSmartCardRemovalBehaviorTypeVDisconnectRemoteDesktopSession LocalSecurityOptionsSmartCardRemovalBehaviorType = 3
+)
+
+// LocalSecurityOptionsSmartCardRemovalBehaviorTypePLockWorkstation returns a pointer to LocalSecurityOptionsSmartCardRemovalBehaviorTypeVLockWorkstation
+func LocalSecurityOptionsSmartCardRemovalBehaviorTypePLockWorkstation() *LocalSecurityOptionsSmartCardRemovalBehaviorType {
+ v := LocalSecurityOptionsSmartCardRemovalBehaviorTypeVLockWorkstation
+ return &v
+}
+
+// LocalSecurityOptionsSmartCardRemovalBehaviorTypePNoAction returns a pointer to LocalSecurityOptionsSmartCardRemovalBehaviorTypeVNoAction
+func LocalSecurityOptionsSmartCardRemovalBehaviorTypePNoAction() *LocalSecurityOptionsSmartCardRemovalBehaviorType {
+ v := LocalSecurityOptionsSmartCardRemovalBehaviorTypeVNoAction
+ return &v
+}
+
+// LocalSecurityOptionsSmartCardRemovalBehaviorTypePForceLogoff returns a pointer to LocalSecurityOptionsSmartCardRemovalBehaviorTypeVForceLogoff
+func LocalSecurityOptionsSmartCardRemovalBehaviorTypePForceLogoff() *LocalSecurityOptionsSmartCardRemovalBehaviorType {
+ v := LocalSecurityOptionsSmartCardRemovalBehaviorTypeVForceLogoff
+ return &v
+}
+
+// LocalSecurityOptionsSmartCardRemovalBehaviorTypePDisconnectRemoteDesktopSession returns a pointer to LocalSecurityOptionsSmartCardRemovalBehaviorTypeVDisconnectRemoteDesktopSession
+func LocalSecurityOptionsSmartCardRemovalBehaviorTypePDisconnectRemoteDesktopSession() *LocalSecurityOptionsSmartCardRemovalBehaviorType {
+ v := LocalSecurityOptionsSmartCardRemovalBehaviorTypeVDisconnectRemoteDesktopSession
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeEnum.go
new file mode 100644
index 00000000..21db535a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocalSecurityOptionsStandardUserElevationPromptBehaviorType undocumented
+type LocalSecurityOptionsStandardUserElevationPromptBehaviorType int
+
+const (
+ // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVNotConfigured undocumented
+ LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVNotConfigured LocalSecurityOptionsStandardUserElevationPromptBehaviorType = 0
+ // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVAutomaticallyDenyElevationRequests undocumented
+ LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVAutomaticallyDenyElevationRequests LocalSecurityOptionsStandardUserElevationPromptBehaviorType = 1
+ // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop undocumented
+ LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop LocalSecurityOptionsStandardUserElevationPromptBehaviorType = 2
+ // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentials undocumented
+ LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentials LocalSecurityOptionsStandardUserElevationPromptBehaviorType = 3
+)
+
+// LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePNotConfigured returns a pointer to LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVNotConfigured
+func LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePNotConfigured() *LocalSecurityOptionsStandardUserElevationPromptBehaviorType {
+ v := LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVNotConfigured
+ return &v
+}
+
+// LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePAutomaticallyDenyElevationRequests returns a pointer to LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVAutomaticallyDenyElevationRequests
+func LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePAutomaticallyDenyElevationRequests() *LocalSecurityOptionsStandardUserElevationPromptBehaviorType {
+ v := LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVAutomaticallyDenyElevationRequests
+ return &v
+}
+
+// LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop returns a pointer to LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop
+func LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop() *LocalSecurityOptionsStandardUserElevationPromptBehaviorType {
+ v := LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop
+ return &v
+}
+
+// LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentials returns a pointer to LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentials
+func LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentials() *LocalSecurityOptionsStandardUserElevationPromptBehaviorType {
+ v := LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentials
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocaleInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocaleInfoModel.go
new file mode 100644
index 00000000..28fe7ab8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocaleInfoModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocaleInfo undocumented
+type LocaleInfo struct {
+ // Object is the base model of LocaleInfo
+ Object
+ // Locale undocumented
+ Locale *string `json:"locale,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocalizedNotificationMessageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocalizedNotificationMessageModel.go
new file mode 100644
index 00000000..cfa1c170
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocalizedNotificationMessageModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// LocalizedNotificationMessage The text content of a Notification Message Template for the specified locale.
+type LocalizedNotificationMessage struct {
+ // Entity is the base model of LocalizedNotificationMessage
+ Entity
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Locale The Locale for which this message is destined.
+ Locale *string `json:"locale,omitempty"`
+ // Subject The Message Template Subject.
+ Subject *string `json:"subject,omitempty"`
+ // MessageTemplate The Message Template content.
+ MessageTemplate *string `json:"messageTemplate,omitempty"`
+ // IsDefault Flag to indicate whether or not this is the default locale for language fallback. This flag can only be set. To unset, set this property to true on another Localized Notification Message.
+ IsDefault *bool `json:"isDefault,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocalizedNotificationMessageRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocalizedNotificationMessageRequest.go
new file mode 100644
index 00000000..424d3c2f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocalizedNotificationMessageRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// LocalizedNotificationMessageRequestBuilder is request builder for LocalizedNotificationMessage
+type LocalizedNotificationMessageRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns LocalizedNotificationMessageRequest
+func (b *LocalizedNotificationMessageRequestBuilder) Request() *LocalizedNotificationMessageRequest {
+ return &LocalizedNotificationMessageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// LocalizedNotificationMessageRequest is request for LocalizedNotificationMessage
+type LocalizedNotificationMessageRequest struct{ BaseRequest }
+
+// Get performs GET request for LocalizedNotificationMessage
+func (r *LocalizedNotificationMessageRequest) Get(ctx context.Context) (resObj *LocalizedNotificationMessage, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for LocalizedNotificationMessage
+func (r *LocalizedNotificationMessageRequest) Update(ctx context.Context, reqObj *LocalizedNotificationMessage) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for LocalizedNotificationMessage
+func (r *LocalizedNotificationMessageRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocateDeviceActionResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocateDeviceActionResultModel.go
new file mode 100644
index 00000000..d211b4db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocateDeviceActionResultModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocateDeviceActionResult undocumented
+type LocateDeviceActionResult struct {
+ // DeviceActionResult is the base model of LocateDeviceActionResult
+ DeviceActionResult
+ // DeviceLocation device location
+ DeviceLocation *DeviceGeoLocation `json:"deviceLocation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocatedRiskEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocatedRiskEventModel.go
new file mode 100644
index 00000000..5b4a2f21
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocatedRiskEventModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocatedRiskEvent undocumented
+type LocatedRiskEvent struct {
+ // IdentityRiskEvent is the base model of LocatedRiskEvent
+ IdentityRiskEvent
+ // Location undocumented
+ Location *SignInLocation `json:"location,omitempty"`
+ // IPAddress undocumented
+ IPAddress *string `json:"ipAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocationConstraintItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocationConstraintItemModel.go
new file mode 100644
index 00000000..d16886d5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocationConstraintItemModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocationConstraintItem undocumented
+type LocationConstraintItem struct {
+ // Location is the base model of LocationConstraintItem
+ Location
+ // ResolveAvailability undocumented
+ ResolveAvailability *bool `json:"resolveAvailability,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocationConstraintModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocationConstraintModel.go
new file mode 100644
index 00000000..34903f11
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocationConstraintModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocationConstraint undocumented
+type LocationConstraint struct {
+ // Object is the base model of LocationConstraint
+ Object
+ // Locations undocumented
+ Locations []LocationConstraintItem `json:"locations,omitempty"`
+ // IsRequired undocumented
+ IsRequired *bool `json:"isRequired,omitempty"`
+ // SuggestLocation undocumented
+ SuggestLocation *bool `json:"suggestLocation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocationManagementConditionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocationManagementConditionModel.go
new file mode 100644
index 00000000..73d57b81
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocationManagementConditionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocationManagementCondition Contains the information to define a location management condition, an area of interest, to monitor.
+type LocationManagementCondition struct {
+ // ManagementCondition is the base model of LocationManagementCondition
+ ManagementCondition
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocationModel.go
new file mode 100644
index 00000000..5cc1acd4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocationModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Location undocumented
+type Location struct {
+ // Object is the base model of Location
+ Object
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LocationEmailAddress undocumented
+ LocationEmailAddress *string `json:"locationEmailAddress,omitempty"`
+ // Address undocumented
+ Address *PhysicalAddress `json:"address,omitempty"`
+ // Coordinates undocumented
+ Coordinates *OutlookGeoCoordinates `json:"coordinates,omitempty"`
+ // LocationURI undocumented
+ LocationURI *string `json:"locationUri,omitempty"`
+ // LocationType undocumented
+ LocationType *LocationType `json:"locationType,omitempty"`
+ // UniqueID undocumented
+ UniqueID *string `json:"uniqueId,omitempty"`
+ // UniqueIDType undocumented
+ UniqueIDType *LocationUniqueIDType `json:"uniqueIdType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocationTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocationTypeEnum.go
new file mode 100644
index 00000000..acb06b71
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocationTypeEnum.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocationType undocumented
+type LocationType int
+
+const (
+ // LocationTypeVDefault undocumented
+ LocationTypeVDefault LocationType = 0
+ // LocationTypeVConferenceRoom undocumented
+ LocationTypeVConferenceRoom LocationType = 1
+ // LocationTypeVHomeAddress undocumented
+ LocationTypeVHomeAddress LocationType = 2
+ // LocationTypeVBusinessAddress undocumented
+ LocationTypeVBusinessAddress LocationType = 3
+ // LocationTypeVGeoCoordinates undocumented
+ LocationTypeVGeoCoordinates LocationType = 4
+ // LocationTypeVStreetAddress undocumented
+ LocationTypeVStreetAddress LocationType = 5
+ // LocationTypeVHotel undocumented
+ LocationTypeVHotel LocationType = 6
+ // LocationTypeVRestaurant undocumented
+ LocationTypeVRestaurant LocationType = 7
+ // LocationTypeVLocalBusiness undocumented
+ LocationTypeVLocalBusiness LocationType = 8
+ // LocationTypeVPostalAddress undocumented
+ LocationTypeVPostalAddress LocationType = 9
+)
+
+// LocationTypePDefault returns a pointer to LocationTypeVDefault
+func LocationTypePDefault() *LocationType {
+ v := LocationTypeVDefault
+ return &v
+}
+
+// LocationTypePConferenceRoom returns a pointer to LocationTypeVConferenceRoom
+func LocationTypePConferenceRoom() *LocationType {
+ v := LocationTypeVConferenceRoom
+ return &v
+}
+
+// LocationTypePHomeAddress returns a pointer to LocationTypeVHomeAddress
+func LocationTypePHomeAddress() *LocationType {
+ v := LocationTypeVHomeAddress
+ return &v
+}
+
+// LocationTypePBusinessAddress returns a pointer to LocationTypeVBusinessAddress
+func LocationTypePBusinessAddress() *LocationType {
+ v := LocationTypeVBusinessAddress
+ return &v
+}
+
+// LocationTypePGeoCoordinates returns a pointer to LocationTypeVGeoCoordinates
+func LocationTypePGeoCoordinates() *LocationType {
+ v := LocationTypeVGeoCoordinates
+ return &v
+}
+
+// LocationTypePStreetAddress returns a pointer to LocationTypeVStreetAddress
+func LocationTypePStreetAddress() *LocationType {
+ v := LocationTypeVStreetAddress
+ return &v
+}
+
+// LocationTypePHotel returns a pointer to LocationTypeVHotel
+func LocationTypePHotel() *LocationType {
+ v := LocationTypeVHotel
+ return &v
+}
+
+// LocationTypePRestaurant returns a pointer to LocationTypeVRestaurant
+func LocationTypePRestaurant() *LocationType {
+ v := LocationTypeVRestaurant
+ return &v
+}
+
+// LocationTypePLocalBusiness returns a pointer to LocationTypeVLocalBusiness
+func LocationTypePLocalBusiness() *LocationType {
+ v := LocationTypeVLocalBusiness
+ return &v
+}
+
+// LocationTypePPostalAddress returns a pointer to LocationTypeVPostalAddress
+func LocationTypePPostalAddress() *LocationType {
+ v := LocationTypeVPostalAddress
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LocationUniqueIDTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/LocationUniqueIDTypeEnum.go
new file mode 100644
index 00000000..06d14e58
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LocationUniqueIDTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocationUniqueIDType undocumented
+type LocationUniqueIDType int
+
+const (
+ // LocationUniqueIDTypeVUnknown undocumented
+ LocationUniqueIDTypeVUnknown LocationUniqueIDType = 0
+ // LocationUniqueIDTypeVLocationStore undocumented
+ LocationUniqueIDTypeVLocationStore LocationUniqueIDType = 1
+ // LocationUniqueIDTypeVDirectory undocumented
+ LocationUniqueIDTypeVDirectory LocationUniqueIDType = 2
+ // LocationUniqueIDTypeVPrivate undocumented
+ LocationUniqueIDTypeVPrivate LocationUniqueIDType = 3
+ // LocationUniqueIDTypeVBing undocumented
+ LocationUniqueIDTypeVBing LocationUniqueIDType = 4
+)
+
+// LocationUniqueIDTypePUnknown returns a pointer to LocationUniqueIDTypeVUnknown
+func LocationUniqueIDTypePUnknown() *LocationUniqueIDType {
+ v := LocationUniqueIDTypeVUnknown
+ return &v
+}
+
+// LocationUniqueIDTypePLocationStore returns a pointer to LocationUniqueIDTypeVLocationStore
+func LocationUniqueIDTypePLocationStore() *LocationUniqueIDType {
+ v := LocationUniqueIDTypeVLocationStore
+ return &v
+}
+
+// LocationUniqueIDTypePDirectory returns a pointer to LocationUniqueIDTypeVDirectory
+func LocationUniqueIDTypePDirectory() *LocationUniqueIDType {
+ v := LocationUniqueIDTypeVDirectory
+ return &v
+}
+
+// LocationUniqueIDTypePPrivate returns a pointer to LocationUniqueIDTypeVPrivate
+func LocationUniqueIDTypePPrivate() *LocationUniqueIDType {
+ v := LocationUniqueIDTypeVPrivate
+ return &v
+}
+
+// LocationUniqueIDTypePBing returns a pointer to LocationUniqueIDTypeVBing
+func LocationUniqueIDTypePBing() *LocationUniqueIDType {
+ v := LocationUniqueIDTypeVBing
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LogLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/LogLevelEnum.go
new file mode 100644
index 00000000..9e9faf2c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LogLevelEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LogLevel undocumented
+type LogLevel int
+
+const (
+ // LogLevelVLogAlways undocumented
+ LogLevelVLogAlways LogLevel = 0
+ // LogLevelVCritical undocumented
+ LogLevelVCritical LogLevel = 1
+ // LogLevelVError undocumented
+ LogLevelVError LogLevel = 2
+ // LogLevelVWarning undocumented
+ LogLevelVWarning LogLevel = 3
+ // LogLevelVInformation undocumented
+ LogLevelVInformation LogLevel = 4
+ // LogLevelVVerbose undocumented
+ LogLevelVVerbose LogLevel = 5
+)
+
+// LogLevelPLogAlways returns a pointer to LogLevelVLogAlways
+func LogLevelPLogAlways() *LogLevel {
+ v := LogLevelVLogAlways
+ return &v
+}
+
+// LogLevelPCritical returns a pointer to LogLevelVCritical
+func LogLevelPCritical() *LogLevel {
+ v := LogLevelVCritical
+ return &v
+}
+
+// LogLevelPError returns a pointer to LogLevelVError
+func LogLevelPError() *LogLevel {
+ v := LogLevelVError
+ return &v
+}
+
+// LogLevelPWarning returns a pointer to LogLevelVWarning
+func LogLevelPWarning() *LogLevel {
+ v := LogLevelVWarning
+ return &v
+}
+
+// LogLevelPInformation returns a pointer to LogLevelVInformation
+func LogLevelPInformation() *LogLevel {
+ v := LogLevelVInformation
+ return &v
+}
+
+// LogLevelPVerbose returns a pointer to LogLevelVVerbose
+func LogLevelPVerbose() *LogLevel {
+ v := LogLevelVVerbose
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LoggedOnUserModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LoggedOnUserModel.go
new file mode 100644
index 00000000..28c8d030
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LoggedOnUserModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// LoggedOnUser undocumented
+type LoggedOnUser struct {
+ // Object is the base model of LoggedOnUser
+ Object
+ // UserID User id
+ UserID *string `json:"userId,omitempty"`
+ // LastLogOnDateTime Date time when user logs on
+ LastLogOnDateTime *time.Time `json:"lastLogOnDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LogonTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/LogonTypeEnum.go
new file mode 100644
index 00000000..8953b6e3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LogonTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LogonType undocumented
+type LogonType int
+
+const (
+ // LogonTypeVUnknown undocumented
+ LogonTypeVUnknown LogonType = 0
+ // LogonTypeVInteractive undocumented
+ LogonTypeVInteractive LogonType = 1
+ // LogonTypeVRemoteInteractive undocumented
+ LogonTypeVRemoteInteractive LogonType = 2
+ // LogonTypeVNetwork undocumented
+ LogonTypeVNetwork LogonType = 3
+ // LogonTypeVBatch undocumented
+ LogonTypeVBatch LogonType = 4
+ // LogonTypeVService undocumented
+ LogonTypeVService LogonType = 5
+ // LogonTypeVUnknownFutureValue undocumented
+ LogonTypeVUnknownFutureValue LogonType = 127
+)
+
+// LogonTypePUnknown returns a pointer to LogonTypeVUnknown
+func LogonTypePUnknown() *LogonType {
+ v := LogonTypeVUnknown
+ return &v
+}
+
+// LogonTypePInteractive returns a pointer to LogonTypeVInteractive
+func LogonTypePInteractive() *LogonType {
+ v := LogonTypeVInteractive
+ return &v
+}
+
+// LogonTypePRemoteInteractive returns a pointer to LogonTypeVRemoteInteractive
+func LogonTypePRemoteInteractive() *LogonType {
+ v := LogonTypeVRemoteInteractive
+ return &v
+}
+
+// LogonTypePNetwork returns a pointer to LogonTypeVNetwork
+func LogonTypePNetwork() *LogonType {
+ v := LogonTypeVNetwork
+ return &v
+}
+
+// LogonTypePBatch returns a pointer to LogonTypeVBatch
+func LogonTypePBatch() *LogonType {
+ v := LogonTypeVBatch
+ return &v
+}
+
+// LogonTypePService returns a pointer to LogonTypeVService
+func LogonTypePService() *LogonType {
+ v := LogonTypeVService
+ return &v
+}
+
+// LogonTypePUnknownFutureValue returns a pointer to LogonTypeVUnknownFutureValue
+func LogonTypePUnknownFutureValue() *LogonType {
+ v := LogonTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LogonUserModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LogonUserModel.go
new file mode 100644
index 00000000..78aa9f0e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LogonUserModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// LogonUser undocumented
+type LogonUser struct {
+ // Object is the base model of LogonUser
+ Object
+ // AccountDomain undocumented
+ AccountDomain *string `json:"accountDomain,omitempty"`
+ // AccountName undocumented
+ AccountName *string `json:"accountName,omitempty"`
+ // AccountType undocumented
+ AccountType *UserAccountSecurityType `json:"accountType,omitempty"`
+ // FirstSeenDateTime undocumented
+ FirstSeenDateTime *time.Time `json:"firstSeenDateTime,omitempty"`
+ // LastSeenDateTime undocumented
+ LastSeenDateTime *time.Time `json:"lastSeenDateTime,omitempty"`
+ // LogonID undocumented
+ LogonID *string `json:"logonId,omitempty"`
+ // LogonTypes undocumented
+ LogonTypes []LogonType `json:"logonTypes,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LookupColumnModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LookupColumnModel.go
new file mode 100644
index 00000000..42ae43e4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LookupColumnModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LookupColumn undocumented
+type LookupColumn struct {
+ // Object is the base model of LookupColumn
+ Object
+ // AllowMultipleValues undocumented
+ AllowMultipleValues *bool `json:"allowMultipleValues,omitempty"`
+ // AllowUnlimitedLength undocumented
+ AllowUnlimitedLength *bool `json:"allowUnlimitedLength,omitempty"`
+ // ColumnName undocumented
+ ColumnName *string `json:"columnName,omitempty"`
+ // ListID undocumented
+ ListID *string `json:"listId,omitempty"`
+ // PrimaryLookupColumnID undocumented
+ PrimaryLookupColumnID *string `json:"primaryLookupColumnId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LookupResultRowModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/LookupResultRowModel.go
new file mode 100644
index 00000000..d809fc88
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LookupResultRowModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LookupResultRow undocumented
+type LookupResultRow struct {
+ // Entity is the base model of LookupResultRow
+ Entity
+ // Row undocumented
+ Row *string `json:"row,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LookupResultRowRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/LookupResultRowRequest.go
new file mode 100644
index 00000000..880c399c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LookupResultRowRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// LookupResultRowRequestBuilder is request builder for LookupResultRow
+type LookupResultRowRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns LookupResultRowRequest
+func (b *LookupResultRowRequestBuilder) Request() *LookupResultRowRequest {
+ return &LookupResultRowRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// LookupResultRowRequest is request for LookupResultRow
+type LookupResultRowRequest struct{ BaseRequest }
+
+// Get performs GET request for LookupResultRow
+func (r *LookupResultRowRequest) Get(ctx context.Context) (resObj *LookupResultRow, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for LookupResultRow
+func (r *LookupResultRowRequest) Update(ctx context.Context, reqObj *LookupResultRow) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for LookupResultRow
+func (r *LookupResultRowRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/LostModeStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/LostModeStateEnum.go
new file mode 100644
index 00000000..999265fe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/LostModeStateEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LostModeState undocumented
+type LostModeState int
+
+const (
+ // LostModeStateVDisabled undocumented
+ LostModeStateVDisabled LostModeState = 0
+ // LostModeStateVEnabled undocumented
+ LostModeStateVEnabled LostModeState = 1
+)
+
+// LostModeStatePDisabled returns a pointer to LostModeStateVDisabled
+func LostModeStatePDisabled() *LostModeState {
+ v := LostModeStateVDisabled
+ return &v
+}
+
+// LostModeStatePEnabled returns a pointer to LostModeStateVEnabled
+func LostModeStatePEnabled() *LostModeState {
+ v := LostModeStateVEnabled
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacManagedAppProtectionAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacManagedAppProtectionAction.go
new file mode 100644
index 00000000..df02f2bb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacManagedAppProtectionAction.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacManagedAppProtectionCollectionHasPayloadLinksRequestParameter undocumented
+type MacManagedAppProtectionCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacManagedAppProtectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacManagedAppProtectionModel.go
new file mode 100644
index 00000000..60bc8404
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacManagedAppProtectionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacManagedAppProtection undocumented
+type MacManagedAppProtection struct {
+ // Entity is the base model of MacManagedAppProtection
+ Entity
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacManagedAppProtectionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacManagedAppProtectionRequest.go
new file mode 100644
index 00000000..78ecbd8d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacManagedAppProtectionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MacManagedAppProtectionRequestBuilder is request builder for MacManagedAppProtection
+type MacManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacManagedAppProtectionRequest
+func (b *MacManagedAppProtectionRequestBuilder) Request() *MacManagedAppProtectionRequest {
+ return &MacManagedAppProtectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacManagedAppProtectionRequest is request for MacManagedAppProtection
+type MacManagedAppProtectionRequest struct{ BaseRequest }
+
+// Get performs GET request for MacManagedAppProtection
+func (r *MacManagedAppProtectionRequest) Get(ctx context.Context) (resObj *MacManagedAppProtection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacManagedAppProtection
+func (r *MacManagedAppProtectionRequest) Update(ctx context.Context, reqObj *MacManagedAppProtection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacManagedAppProtection
+func (r *MacManagedAppProtectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSCertificateProfileBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSCertificateProfileBaseModel.go
new file mode 100644
index 00000000..9c404879
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSCertificateProfileBaseModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSCertificateProfileBase Mac OS certificate profile.
+type MacOSCertificateProfileBase struct {
+ // DeviceConfiguration is the base model of MacOSCertificateProfileBase
+ DeviceConfiguration
+ // RenewalThresholdPercentage Certificate renewal threshold percentage.
+ RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
+ // SubjectNameFormat Certificate Subject Name Format.
+ SubjectNameFormat *AppleSubjectNameFormat `json:"subjectNameFormat,omitempty"`
+ // SubjectAlternativeNameType Certificate Subject Alternative Name Type.
+ SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"`
+ // CertificateValidityPeriodValue Value for the Certificate Validity Period.
+ CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
+ // CertificateValidityPeriodScale Scale for the Certificate Validity Period.
+ CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSCertificateProfileBaseRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSCertificateProfileBaseRequest.go
new file mode 100644
index 00000000..01641caf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSCertificateProfileBaseRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MacOSCertificateProfileBaseRequestBuilder is request builder for MacOSCertificateProfileBase
+type MacOSCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSCertificateProfileBaseRequest
+func (b *MacOSCertificateProfileBaseRequestBuilder) Request() *MacOSCertificateProfileBaseRequest {
+ return &MacOSCertificateProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSCertificateProfileBaseRequest is request for MacOSCertificateProfileBase
+type MacOSCertificateProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSCertificateProfileBase
+func (r *MacOSCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *MacOSCertificateProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSCertificateProfileBase
+func (r *MacOSCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *MacOSCertificateProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSCertificateProfileBase
+func (r *MacOSCertificateProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSCompliancePolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSCompliancePolicyModel.go
new file mode 100644
index 00000000..4d505bff
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSCompliancePolicyModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSCompliancePolicy This class contains compliance settings for Mac OS.
+type MacOSCompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of MacOSCompliancePolicy
+ DeviceCompliancePolicy
+ // PasswordRequired Whether or not to require a password.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordBlockSimple Indicates whether or not to block simple passwords.
+ PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 65535
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength Minimum length of password. Valid values 4 to 14
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 1 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordMinimumCharacterSetCount The number of character sets required in the password.
+ PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"`
+ // PasswordRequiredType The required password type.
+ PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // OsMinimumVersion Minimum MacOS version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum MacOS version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // OsMinimumBuildVersion Minimum MacOS build version.
+ OsMinimumBuildVersion *string `json:"osMinimumBuildVersion,omitempty"`
+ // OsMaximumBuildVersion Maximum MacOS build version.
+ OsMaximumBuildVersion *string `json:"osMaximumBuildVersion,omitempty"`
+ // SystemIntegrityProtectionEnabled Require that devices have enabled system integrity protection.
+ SystemIntegrityProtectionEnabled *bool `json:"systemIntegrityProtectionEnabled,omitempty"`
+ // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection.
+ DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"`
+ // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance.
+ DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"`
+ // StorageRequireEncryption Require encryption on Mac OS devices.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+ // GatekeeperAllowedAppSource System and Privacy setting that determines which download locations apps can be run from on a macOS device.
+ GatekeeperAllowedAppSource *MacOSGatekeeperAppSources `json:"gatekeeperAllowedAppSource,omitempty"`
+ // FirewallEnabled Whether the firewall should be enabled or not.
+ FirewallEnabled *bool `json:"firewallEnabled,omitempty"`
+ // FirewallBlockAllIncoming Corresponds to the “Block all incoming connections” option.
+ FirewallBlockAllIncoming *bool `json:"firewallBlockAllIncoming,omitempty"`
+ // FirewallEnableStealthMode Corresponds to “Enable stealth mode.”
+ FirewallEnableStealthMode *bool `json:"firewallEnableStealthMode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSCustomAppConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSCustomAppConfigurationModel.go
new file mode 100644
index 00000000..e13fa444
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSCustomAppConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSCustomAppConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the macOSCustomAppConfiguration resource.
+type MacOSCustomAppConfiguration struct {
+ // DeviceConfiguration is the base model of MacOSCustomAppConfiguration
+ DeviceConfiguration
+ // BundleID Bundle id for targeting.
+ BundleID *string `json:"bundleId,omitempty"`
+ // FileName Configuration file name (*.plist | *.xml).
+ FileName *string `json:"fileName,omitempty"`
+ // ConfigurationXML Configuration xml. (UTF8 encoded byte array)
+ ConfigurationXML *Binary `json:"configurationXml,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSCustomConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSCustomConfigurationModel.go
new file mode 100644
index 00000000..68fecc71
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSCustomConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSCustomConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the macOSCustomConfiguration resource.
+type MacOSCustomConfiguration struct {
+ // DeviceConfiguration is the base model of MacOSCustomConfiguration
+ DeviceConfiguration
+ // PayloadName Name that is displayed to the user.
+ PayloadName *string `json:"payloadName,omitempty"`
+ // PayloadFileName Payload file name (*.mobileconfig | *.xml).
+ PayloadFileName *string `json:"payloadFileName,omitempty"`
+ // Payload Payload. (UTF8 encoded byte array)
+ Payload *Binary `json:"payload,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSDeviceFeaturesConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSDeviceFeaturesConfigurationModel.go
new file mode 100644
index 00000000..09bfb4fa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSDeviceFeaturesConfigurationModel.go
@@ -0,0 +1,51 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSDeviceFeaturesConfiguration MacOS device features configuration profile.
+type MacOSDeviceFeaturesConfiguration struct {
+ // AppleDeviceFeaturesConfigurationBase is the base model of MacOSDeviceFeaturesConfiguration
+ AppleDeviceFeaturesConfigurationBase
+ // AutoLaunchItems List of applications, files, folders, and other items to launch when the user logs in. This collection can contain a maximum of 500 elements.
+ AutoLaunchItems []MacOSLaunchItem `json:"autoLaunchItems,omitempty"`
+ // AdminShowHostInfo Whether to show admin host information on the login window.
+ AdminShowHostInfo *bool `json:"adminShowHostInfo,omitempty"`
+ // LoginWindowText Custom text to be displayed on the login window.
+ LoginWindowText *string `json:"loginWindowText,omitempty"`
+ // AuthorizedUsersListHidden Whether to show the name and password dialog or a list of users on the login window.
+ AuthorizedUsersListHidden *bool `json:"authorizedUsersListHidden,omitempty"`
+ // AuthorizedUsersListHideLocalUsers Whether to show only network and system users in the authorized users list on the login window.
+ AuthorizedUsersListHideLocalUsers *bool `json:"authorizedUsersListHideLocalUsers,omitempty"`
+ // AuthorizedUsersListHideMobileAccounts Whether to hide mobile users in the authorized users list on the login window.
+ AuthorizedUsersListHideMobileAccounts *bool `json:"authorizedUsersListHideMobileAccounts,omitempty"`
+ // AuthorizedUsersListIncludeNetworkUsers Whether to show network users in the authorized users list on the login window.
+ AuthorizedUsersListIncludeNetworkUsers *bool `json:"authorizedUsersListIncludeNetworkUsers,omitempty"`
+ // AuthorizedUsersListHideAdminUsers Whether to hide admin users in the authorized users list on the login window.
+ AuthorizedUsersListHideAdminUsers *bool `json:"authorizedUsersListHideAdminUsers,omitempty"`
+ // AuthorizedUsersListShowOtherManagedUsers Whether to show other users in the authorized users list on the login window.
+ AuthorizedUsersListShowOtherManagedUsers *bool `json:"authorizedUsersListShowOtherManagedUsers,omitempty"`
+ // ShutDownDisabled Whether to hide the Shut Down button item on the login window.
+ ShutDownDisabled *bool `json:"shutDownDisabled,omitempty"`
+ // RestartDisabled Whether to hide the Restart button item on the login window.
+ RestartDisabled *bool `json:"restartDisabled,omitempty"`
+ // SleepDisabled Whether to hide the Sleep menu item on the login window.
+ SleepDisabled *bool `json:"sleepDisabled,omitempty"`
+ // ConsoleAccessDisabled Whether the Other user will disregard use of the `>console> special user name.
+ ConsoleAccessDisabled *bool `json:"consoleAccessDisabled,omitempty"`
+ // ShutDownDisabledWhileLoggedIn Whether the Shut Down menu item on the login window will be disabled while the user is logged in.
+ ShutDownDisabledWhileLoggedIn *bool `json:"shutDownDisabledWhileLoggedIn,omitempty"`
+ // RestartDisabledWhileLoggedIn Whether the Restart menu item on the login window will be disabled while the user is logged in.
+ RestartDisabledWhileLoggedIn *bool `json:"restartDisabledWhileLoggedIn,omitempty"`
+ // PowerOffDisabledWhileLoggedIn Whether the Power Off menu item on the login window will be disabled while the user is logged in.
+ PowerOffDisabledWhileLoggedIn *bool `json:"powerOffDisabledWhileLoggedIn,omitempty"`
+ // LogOutDisabledWhileLoggedIn Whether the Log Out menu item on the login window will be disabled while the user is logged in.
+ LogOutDisabledWhileLoggedIn *bool `json:"logOutDisabledWhileLoggedIn,omitempty"`
+ // ScreenLockDisableImmediate Whether to disable the immediate screen lock functions.
+ ScreenLockDisableImmediate *bool `json:"screenLockDisableImmediate,omitempty"`
+ // AssociatedDomains Gets or sets a list that maps apps to their associated domains. The key should match the app's ID, and the value should be a string in the form of "service:domain" where domain is a fully qualified hostname (e.g. webcredentials:example.com). This collection can contain a maximum of 500 elements.
+ AssociatedDomains []KeyValuePair `json:"associatedDomains,omitempty"`
+ // SingleSignOnExtension Gets or sets a single sign-on extension profile.
+ SingleSignOnExtension *SingleSignOnExtension `json:"singleSignOnExtension,omitempty"`
+ // SingleSignOnExtensionPkinitCertificate undocumented
+ SingleSignOnExtensionPkinitCertificate *MacOSCertificateProfileBase `json:"singleSignOnExtensionPkinitCertificate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSDeviceFeaturesConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSDeviceFeaturesConfigurationRequest.go
new file mode 100644
index 00000000..b4312867
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSDeviceFeaturesConfigurationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MacOSDeviceFeaturesConfigurationRequestBuilder is request builder for MacOSDeviceFeaturesConfiguration
+type MacOSDeviceFeaturesConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSDeviceFeaturesConfigurationRequest
+func (b *MacOSDeviceFeaturesConfigurationRequestBuilder) Request() *MacOSDeviceFeaturesConfigurationRequest {
+ return &MacOSDeviceFeaturesConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSDeviceFeaturesConfigurationRequest is request for MacOSDeviceFeaturesConfiguration
+type MacOSDeviceFeaturesConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSDeviceFeaturesConfiguration
+func (r *MacOSDeviceFeaturesConfigurationRequest) Get(ctx context.Context) (resObj *MacOSDeviceFeaturesConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSDeviceFeaturesConfiguration
+func (r *MacOSDeviceFeaturesConfigurationRequest) Update(ctx context.Context, reqObj *MacOSDeviceFeaturesConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSDeviceFeaturesConfiguration
+func (r *MacOSDeviceFeaturesConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SingleSignOnExtensionPkinitCertificate is navigation property
+func (b *MacOSDeviceFeaturesConfigurationRequestBuilder) SingleSignOnExtensionPkinitCertificate() *MacOSCertificateProfileBaseRequestBuilder {
+ bb := &MacOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleSignOnExtensionPkinitCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSEndpointProtectionConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSEndpointProtectionConfigurationModel.go
new file mode 100644
index 00000000..9e0c8c56
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSEndpointProtectionConfigurationModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSEndpointProtectionConfiguration MacOS endpoint protection configuration profile.
+type MacOSEndpointProtectionConfiguration struct {
+ // DeviceConfiguration is the base model of MacOSEndpointProtectionConfiguration
+ DeviceConfiguration
+ // GatekeeperAllowedAppSource System and Privacy setting that determines which download locations apps can be run from on a macOS device.
+ GatekeeperAllowedAppSource *MacOSGatekeeperAppSources `json:"gatekeeperAllowedAppSource,omitempty"`
+ // GatekeeperBlockOverride If set to true, the user override for Gatekeeper will be disabled.
+ GatekeeperBlockOverride *bool `json:"gatekeeperBlockOverride,omitempty"`
+ // FirewallEnabled Whether the firewall should be enabled or not.
+ FirewallEnabled *bool `json:"firewallEnabled,omitempty"`
+ // FirewallBlockAllIncoming Corresponds to the “Block all incoming connections” option.
+ FirewallBlockAllIncoming *bool `json:"firewallBlockAllIncoming,omitempty"`
+ // FirewallEnableStealthMode Corresponds to “Enable stealth mode.”
+ FirewallEnableStealthMode *bool `json:"firewallEnableStealthMode,omitempty"`
+ // FirewallApplications List of applications with firewall settings. Firewall settings for applications not on this list are determined by the user. This collection can contain a maximum of 500 elements.
+ FirewallApplications []MacOSFirewallApplication `json:"firewallApplications,omitempty"`
+ // FileVaultEnabled Whether FileVault should be enabled or not.
+ FileVaultEnabled *bool `json:"fileVaultEnabled,omitempty"`
+ // FileVaultSelectedRecoveryKeyTypes Required if FileVault is enabled, determines the type(s) of recovery key to use.
+ FileVaultSelectedRecoveryKeyTypes *MacOSFileVaultRecoveryKeyTypes `json:"fileVaultSelectedRecoveryKeyTypes,omitempty"`
+ // FileVaultInstitutionalRecoveryKeyCertificate Required if selected recovery key type(s) include InstitutionalRecoveryKey. The DER Encoded certificate file used to set an institutional recovery key.
+ FileVaultInstitutionalRecoveryKeyCertificate *Binary `json:"fileVaultInstitutionalRecoveryKeyCertificate,omitempty"`
+ // FileVaultInstitutionalRecoveryKeyCertificateFileName File name of the institutional recovery key certificate to display in UI. (*.der).
+ FileVaultInstitutionalRecoveryKeyCertificateFileName *string `json:"fileVaultInstitutionalRecoveryKeyCertificateFileName,omitempty"`
+ // FileVaultPersonalRecoveryKeyHelpMessage Required if selected recovery key type(s) include PersonalRecoveryKey. A short message displayed to the user that explains how they can retrieve their personal recovery key.
+ FileVaultPersonalRecoveryKeyHelpMessage *string `json:"fileVaultPersonalRecoveryKeyHelpMessage,omitempty"`
+ // FileVaultAllowDeferralUntilSignOut Optional. If set to true, the user can defer the enabling of FileVault until they sign out.
+ FileVaultAllowDeferralUntilSignOut *bool `json:"fileVaultAllowDeferralUntilSignOut,omitempty"`
+ // FileVaultNumberOfTimesUserCanIgnore Optional. When using the Defer option, this is the maximum number of times the user can ignore prompts to enable FileVault before FileVault will be required for the user to sign in. If set to -1, it will always prompt to enable FileVault until FileVault is enabled, though it will allow the user to bypass enabling FileVault. Setting this to 0 will disable the feature.
+ FileVaultNumberOfTimesUserCanIgnore *int `json:"fileVaultNumberOfTimesUserCanIgnore,omitempty"`
+ // FileVaultDisablePromptAtSignOut Optional. When using the Defer option, if set to true, the user is not prompted to enable FileVault at sign-out.
+ FileVaultDisablePromptAtSignOut *bool `json:"fileVaultDisablePromptAtSignOut,omitempty"`
+ // FileVaultPersonalRecoveryKeyRotationInMonths Optional. If selected recovery key type(s) include PersonalRecoveryKey, the frequency to rotate that key, in months.
+ FileVaultPersonalRecoveryKeyRotationInMonths *int `json:"fileVaultPersonalRecoveryKeyRotationInMonths,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationModel.go
new file mode 100644
index 00000000..81fd37b7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSEnterpriseWiFiConfiguration MacOS Wi-Fi WPA-Enterprise/WPA2-Enterprise configuration profile.
+type MacOSEnterpriseWiFiConfiguration struct {
+ // MacOSWiFiConfiguration is the base model of MacOSEnterpriseWiFiConfiguration
+ MacOSWiFiConfiguration
+ // EapType Extensible Authentication Protocol (EAP). Indicates the type of EAP protocol set on the Wi-Fi endpoint (router).
+ EapType *EapType `json:"eapType,omitempty"`
+ // EapFastConfiguration EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type.
+ EapFastConfiguration *EapFastConfiguration `json:"eapFastConfiguration,omitempty"`
+ // TrustedServerCertificateNames Trusted server certificate names when EAP Type is configured to EAP-TLS/TTLS/FAST or PEAP. This is the common name used in the certificates issued by your trusted certificate authority (CA). If you provide this information, you can bypass the dynamic trust dialog that is displayed on end users devices when they connect to this Wi-Fi network.
+ TrustedServerCertificateNames []string `json:"trustedServerCertificateNames,omitempty"`
+ // AuthenticationMethod Authentication Method when EAP Type is configured to PEAP or EAP-TTLS.
+ AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"`
+ // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS, EAP-FAST or PEAP. This property masks usernames with the text you enter. For example, if you use 'anonymous', each user that authenticates with this Wi-Fi connection using their real username is displayed as 'anonymous'.
+ OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"`
+ // RootCertificateForServerValidation undocumented
+ RootCertificateForServerValidation *MacOSTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"`
+ // IdentityCertificateForClientAuthentication undocumented
+ IdentityCertificateForClientAuthentication *MacOSCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationRequest.go
new file mode 100644
index 00000000..1cadf1af
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSEnterpriseWiFiConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MacOSEnterpriseWiFiConfigurationRequestBuilder is request builder for MacOSEnterpriseWiFiConfiguration
+type MacOSEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSEnterpriseWiFiConfigurationRequest
+func (b *MacOSEnterpriseWiFiConfigurationRequestBuilder) Request() *MacOSEnterpriseWiFiConfigurationRequest {
+ return &MacOSEnterpriseWiFiConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSEnterpriseWiFiConfigurationRequest is request for MacOSEnterpriseWiFiConfiguration
+type MacOSEnterpriseWiFiConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSEnterpriseWiFiConfiguration
+func (r *MacOSEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *MacOSEnterpriseWiFiConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSEnterpriseWiFiConfiguration
+func (r *MacOSEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *MacOSEnterpriseWiFiConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSEnterpriseWiFiConfiguration
+func (r *MacOSEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityCertificateForClientAuthentication is navigation property
+func (b *MacOSEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *MacOSCertificateProfileBaseRequestBuilder {
+ bb := &MacOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificateForClientAuthentication"
+ return bb
+}
+
+// RootCertificateForServerValidation is navigation property
+func (b *MacOSEnterpriseWiFiConfigurationRequestBuilder) RootCertificateForServerValidation() *MacOSTrustedRootCertificateRequestBuilder {
+ bb := &MacOSTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificateForServerValidation"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSExtensionsConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSExtensionsConfigurationModel.go
new file mode 100644
index 00000000..2ba806ee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSExtensionsConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSExtensionsConfiguration MacOS extensions configuration profile.
+type MacOSExtensionsConfiguration struct {
+ // DeviceConfiguration is the base model of MacOSExtensionsConfiguration
+ DeviceConfiguration
+ // KernelExtensionOverridesAllowed If set to true, users can approve additional kernel extensions not explicitly allowed by configurations profiles.
+ KernelExtensionOverridesAllowed *bool `json:"kernelExtensionOverridesAllowed,omitempty"`
+ // KernelExtensionAllowedTeamIdentifiers All kernel extensions validly signed by the team identifiers in this list will be allowed to load.
+ KernelExtensionAllowedTeamIdentifiers []string `json:"kernelExtensionAllowedTeamIdentifiers,omitempty"`
+ // KernelExtensionsAllowed A list of kernel extensions that will be allowed to load. . This collection can contain a maximum of 500 elements.
+ KernelExtensionsAllowed []MacOSKernelExtension `json:"kernelExtensionsAllowed,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSFileVaultRecoveryKeyTypesEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSFileVaultRecoveryKeyTypesEnum.go
new file mode 100644
index 00000000..03eaf4c5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSFileVaultRecoveryKeyTypesEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSFileVaultRecoveryKeyTypes undocumented
+type MacOSFileVaultRecoveryKeyTypes int
+
+const (
+ // MacOSFileVaultRecoveryKeyTypesVNotConfigured undocumented
+ MacOSFileVaultRecoveryKeyTypesVNotConfigured MacOSFileVaultRecoveryKeyTypes = 0
+ // MacOSFileVaultRecoveryKeyTypesVInstitutionalRecoveryKey undocumented
+ MacOSFileVaultRecoveryKeyTypesVInstitutionalRecoveryKey MacOSFileVaultRecoveryKeyTypes = 1
+ // MacOSFileVaultRecoveryKeyTypesVPersonalRecoveryKey undocumented
+ MacOSFileVaultRecoveryKeyTypesVPersonalRecoveryKey MacOSFileVaultRecoveryKeyTypes = 2
+)
+
+// MacOSFileVaultRecoveryKeyTypesPNotConfigured returns a pointer to MacOSFileVaultRecoveryKeyTypesVNotConfigured
+func MacOSFileVaultRecoveryKeyTypesPNotConfigured() *MacOSFileVaultRecoveryKeyTypes {
+ v := MacOSFileVaultRecoveryKeyTypesVNotConfigured
+ return &v
+}
+
+// MacOSFileVaultRecoveryKeyTypesPInstitutionalRecoveryKey returns a pointer to MacOSFileVaultRecoveryKeyTypesVInstitutionalRecoveryKey
+func MacOSFileVaultRecoveryKeyTypesPInstitutionalRecoveryKey() *MacOSFileVaultRecoveryKeyTypes {
+ v := MacOSFileVaultRecoveryKeyTypesVInstitutionalRecoveryKey
+ return &v
+}
+
+// MacOSFileVaultRecoveryKeyTypesPPersonalRecoveryKey returns a pointer to MacOSFileVaultRecoveryKeyTypesVPersonalRecoveryKey
+func MacOSFileVaultRecoveryKeyTypesPPersonalRecoveryKey() *MacOSFileVaultRecoveryKeyTypes {
+ v := MacOSFileVaultRecoveryKeyTypesVPersonalRecoveryKey
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSFirewallApplicationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSFirewallApplicationModel.go
new file mode 100644
index 00000000..010146f8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSFirewallApplicationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSFirewallApplication undocumented
+type MacOSFirewallApplication struct {
+ // Object is the base model of MacOSFirewallApplication
+ Object
+ // BundleID BundleId of the application.
+ BundleID *string `json:"bundleId,omitempty"`
+ // AllowsIncomingConnections Whether or not incoming connections are allowed.
+ AllowsIncomingConnections *bool `json:"allowsIncomingConnections,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSGatekeeperAppSourcesEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSGatekeeperAppSourcesEnum.go
new file mode 100644
index 00000000..399fe897
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSGatekeeperAppSourcesEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSGatekeeperAppSources undocumented
+type MacOSGatekeeperAppSources int
+
+const (
+ // MacOSGatekeeperAppSourcesVNotConfigured undocumented
+ MacOSGatekeeperAppSourcesVNotConfigured MacOSGatekeeperAppSources = 0
+ // MacOSGatekeeperAppSourcesVMacAppStore undocumented
+ MacOSGatekeeperAppSourcesVMacAppStore MacOSGatekeeperAppSources = 1
+ // MacOSGatekeeperAppSourcesVMacAppStoreAndIdentifiedDevelopers undocumented
+ MacOSGatekeeperAppSourcesVMacAppStoreAndIdentifiedDevelopers MacOSGatekeeperAppSources = 2
+ // MacOSGatekeeperAppSourcesVAnywhere undocumented
+ MacOSGatekeeperAppSourcesVAnywhere MacOSGatekeeperAppSources = 3
+)
+
+// MacOSGatekeeperAppSourcesPNotConfigured returns a pointer to MacOSGatekeeperAppSourcesVNotConfigured
+func MacOSGatekeeperAppSourcesPNotConfigured() *MacOSGatekeeperAppSources {
+ v := MacOSGatekeeperAppSourcesVNotConfigured
+ return &v
+}
+
+// MacOSGatekeeperAppSourcesPMacAppStore returns a pointer to MacOSGatekeeperAppSourcesVMacAppStore
+func MacOSGatekeeperAppSourcesPMacAppStore() *MacOSGatekeeperAppSources {
+ v := MacOSGatekeeperAppSourcesVMacAppStore
+ return &v
+}
+
+// MacOSGatekeeperAppSourcesPMacAppStoreAndIdentifiedDevelopers returns a pointer to MacOSGatekeeperAppSourcesVMacAppStoreAndIdentifiedDevelopers
+func MacOSGatekeeperAppSourcesPMacAppStoreAndIdentifiedDevelopers() *MacOSGatekeeperAppSources {
+ v := MacOSGatekeeperAppSourcesVMacAppStoreAndIdentifiedDevelopers
+ return &v
+}
+
+// MacOSGatekeeperAppSourcesPAnywhere returns a pointer to MacOSGatekeeperAppSourcesVAnywhere
+func MacOSGatekeeperAppSourcesPAnywhere() *MacOSGatekeeperAppSources {
+ v := MacOSGatekeeperAppSourcesVAnywhere
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSGeneralDeviceConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSGeneralDeviceConfigurationModel.go
new file mode 100644
index 00000000..db01c028
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSGeneralDeviceConfigurationModel.go
@@ -0,0 +1,105 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSGeneralDeviceConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the macOSGeneralDeviceConfiguration resource.
+type MacOSGeneralDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of MacOSGeneralDeviceConfiguration
+ DeviceConfiguration
+ // CompliantAppsList List of apps in the compliance (either allow list or block list, controlled by CompliantAppListType). This collection can contain a maximum of 10000 elements.
+ CompliantAppsList []AppListItem `json:"compliantAppsList,omitempty"`
+ // CompliantAppListType List that is in the CompliantAppsList.
+ CompliantAppListType *AppListType `json:"compliantAppListType,omitempty"`
+ // EmailInDomainSuffixes An email address lacking a suffix that matches any of these strings will be considered out-of-domain.
+ EmailInDomainSuffixes []string `json:"emailInDomainSuffixes,omitempty"`
+ // PasswordBlockSimple Block simple passwords.
+ PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires.
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumCharacterSetCount Number of character sets a password must contain. Valid values 0 to 4
+ PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"`
+ // PasswordMinimumLength Minimum length of passwords.
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity required before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity required before the screen times out.
+ PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block.
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordRequiredType Type of password that is required.
+ PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordRequired Whether or not to require a password.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // KeychainBlockCloudSync Indicates whether or not iCloud keychain synchronization is blocked (macOS 10.12 and later).
+ KeychainBlockCloudSync *bool `json:"keychainBlockCloudSync,omitempty"`
+ // AirPrintBlocked Indicates whether or not AirPrint is blocked (macOS 10.12 and later).
+ AirPrintBlocked *bool `json:"airPrintBlocked,omitempty"`
+ // AirPrintForceTrustedTLS Indicates if trusted certificates are required for TLS printing communication (macOS 10.13 and later).
+ AirPrintForceTrustedTLS *bool `json:"airPrintForceTrustedTLS,omitempty"`
+ // AirPrintBlockiBeaconDiscovery Indicates whether or not iBeacon discovery of AirPrint printers is blocked. This prevents spurious AirPrint Bluetooth beacons from phishing for network traffic (macOS 10.3 and later).
+ AirPrintBlockiBeaconDiscovery *bool `json:"airPrintBlockiBeaconDiscovery,omitempty"`
+ // SafariBlockAutofill Indicates whether or not to block the user from using Auto fill in Safari.
+ SafariBlockAutofill *bool `json:"safariBlockAutofill,omitempty"`
+ // CameraBlocked Indicates whether or not to block the user from accessing the camera of the device.
+ CameraBlocked *bool `json:"cameraBlocked,omitempty"`
+ // ITunesBlockMusicService Indicates whether or not to block Music service and revert Music app to classic mode.
+ ITunesBlockMusicService *bool `json:"iTunesBlockMusicService,omitempty"`
+ // SpotlightBlockInternetResults Indicates whether or not to block Spotlight from returning any results from an Internet search.
+ SpotlightBlockInternetResults *bool `json:"spotlightBlockInternetResults,omitempty"`
+ // KeyboardBlockDictation Indicates whether or not to block the user from using dictation input.
+ KeyboardBlockDictation *bool `json:"keyboardBlockDictation,omitempty"`
+ // DefinitionLookupBlocked Indicates whether or not to block definition lookup.
+ DefinitionLookupBlocked *bool `json:"definitionLookupBlocked,omitempty"`
+ // AppleWatchBlockAutoUnlock Indicates whether or to block users from unlocking their Mac with Apple Watch.
+ AppleWatchBlockAutoUnlock *bool `json:"appleWatchBlockAutoUnlock,omitempty"`
+ // ITunesBlockFileSharing Indicates whether or not to block files from being transferred using iTunes.
+ ITunesBlockFileSharing *bool `json:"iTunesBlockFileSharing,omitempty"`
+ // ICloudBlockDocumentSync Indicates whether or not to block iCloud document sync.
+ ICloudBlockDocumentSync *bool `json:"iCloudBlockDocumentSync,omitempty"`
+ // ICloudBlockMail Indicates whether or not to block iCloud from syncing mail.
+ ICloudBlockMail *bool `json:"iCloudBlockMail,omitempty"`
+ // ICloudBlockAddressBook Indicates whether or not to block iCloud from syncing contacts.
+ ICloudBlockAddressBook *bool `json:"iCloudBlockAddressBook,omitempty"`
+ // ICloudBlockCalendar Indicates whether or not to block iCloud from syncing calendars.
+ ICloudBlockCalendar *bool `json:"iCloudBlockCalendar,omitempty"`
+ // ICloudBlockReminders Indicates whether or not to block iCloud from syncing reminders.
+ ICloudBlockReminders *bool `json:"iCloudBlockReminders,omitempty"`
+ // ICloudBlockBookmarks Indicates whether or not to block iCloud from syncing bookmarks.
+ ICloudBlockBookmarks *bool `json:"iCloudBlockBookmarks,omitempty"`
+ // ICloudBlockNotes Indicates whether or not to block iCloud from syncing notes.
+ ICloudBlockNotes *bool `json:"iCloudBlockNotes,omitempty"`
+ // AirDropBlocked Indicates whether or not to allow AirDrop.
+ AirDropBlocked *bool `json:"airDropBlocked,omitempty"`
+ // PasswordBlockModification Indicates whether or not to allow passcode modification.
+ PasswordBlockModification *bool `json:"passwordBlockModification,omitempty"`
+ // PasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock.
+ PasswordBlockFingerprintUnlock *bool `json:"passwordBlockFingerprintUnlock,omitempty"`
+ // PasswordBlockAutoFill Indicates whether or not to block the AutoFill Passwords feature.
+ PasswordBlockAutoFill *bool `json:"passwordBlockAutoFill,omitempty"`
+ // PasswordBlockProximityRequests Indicates whether or not to block requesting passwords from nearby devices.
+ PasswordBlockProximityRequests *bool `json:"passwordBlockProximityRequests,omitempty"`
+ // PasswordBlockAirDropSharing Indicates whether or not to block sharing passwords with the AirDrop passwords feature.
+ PasswordBlockAirDropSharing *bool `json:"passwordBlockAirDropSharing,omitempty"`
+ // SoftwareUpdatesEnforcedDelayInDays Sets how many days a software update will be delyed for a supervised device. Valid values 0 to 90
+ SoftwareUpdatesEnforcedDelayInDays *int `json:"softwareUpdatesEnforcedDelayInDays,omitempty"`
+ // SoftwareUpdatesForceDelayed Indicates whether or not to delay user visibility of software updates when the device is in supervised mode.
+ SoftwareUpdatesForceDelayed *bool `json:"softwareUpdatesForceDelayed,omitempty"`
+ // ContentCachingBlocked Indicates whether or not to allow content caching.
+ ContentCachingBlocked *bool `json:"contentCachingBlocked,omitempty"`
+ // ICloudBlockPhotoLibrary Indicates whether or not to block iCloud Photo Library.
+ ICloudBlockPhotoLibrary *bool `json:"iCloudBlockPhotoLibrary,omitempty"`
+ // ScreenCaptureBlocked Indicates whether or not to block the user from taking Screenshots.
+ ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"`
+ // ClassroomAppBlockRemoteScreenObservation Indicates whether or not to allow remote screen observation by Classroom app. Requires MDM enrollment via Apple School Manager or Apple Business Manager.
+ ClassroomAppBlockRemoteScreenObservation *bool `json:"classroomAppBlockRemoteScreenObservation,omitempty"`
+ // ClassroomAppForceUnpromptedScreenObservation Indicates whether or not to automatically give permission to the teacher of a managed course on the Classroom app to view a student's screen without prompting. Requires MDM enrollment via Apple School Manager or Apple Business Manager.
+ ClassroomAppForceUnpromptedScreenObservation *bool `json:"classroomAppForceUnpromptedScreenObservation,omitempty"`
+ // ClassroomForceAutomaticallyJoinClasses Indicates whether or not to automatically give permission to the teacher's requests, without prompting the student. Requires MDM enrollment via Apple School Manager or Apple Business Manager.
+ ClassroomForceAutomaticallyJoinClasses *bool `json:"classroomForceAutomaticallyJoinClasses,omitempty"`
+ // ClassroomForceRequestPermissionToLeaveClasses Indicates whether a student enrolled in an unmanaged course via Classroom will be required to request permission from the teacher when attempting to leave the course. Requires MDM enrollment via Apple School Manager or Apple Business Manager.
+ ClassroomForceRequestPermissionToLeaveClasses *bool `json:"classroomForceRequestPermissionToLeaveClasses,omitempty"`
+ // ClassroomForceUnpromptedAppAndDeviceLock Indicates whether or not to allow the teacher to lock apps or the device without prompting the student. Requires MDM enrollment via Apple School Manager or Apple Business Manager.
+ ClassroomForceUnpromptedAppAndDeviceLock *bool `json:"classroomForceUnpromptedAppAndDeviceLock,omitempty"`
+ // ICloudBlockActivityContinuation Indicates whether or not to block the user from continuing work that they started on a MacOS device on another iOS or MacOS device (MacOS 10.15 or later).
+ ICloudBlockActivityContinuation *bool `json:"iCloudBlockActivityContinuation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSImportedPFXCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSImportedPFXCertificateProfileModel.go
new file mode 100644
index 00000000..83a142b8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSImportedPFXCertificateProfileModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSImportedPFXCertificateProfile MacOS PFX Import certificate profile
+type MacOSImportedPFXCertificateProfile struct {
+ // MacOSCertificateProfileBase is the base model of MacOSImportedPFXCertificateProfile
+ MacOSCertificateProfileBase
+ // IntendedPurpose Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc.
+ IntendedPurpose *IntendedPurpose `json:"intendedPurpose,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSImportedPFXCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSImportedPFXCertificateProfileRequest.go
new file mode 100644
index 00000000..2a486700
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSImportedPFXCertificateProfileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MacOSImportedPFXCertificateProfileRequestBuilder is request builder for MacOSImportedPFXCertificateProfile
+type MacOSImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSImportedPFXCertificateProfileRequest
+func (b *MacOSImportedPFXCertificateProfileRequestBuilder) Request() *MacOSImportedPFXCertificateProfileRequest {
+ return &MacOSImportedPFXCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSImportedPFXCertificateProfileRequest is request for MacOSImportedPFXCertificateProfile
+type MacOSImportedPFXCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSImportedPFXCertificateProfile
+func (r *MacOSImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *MacOSImportedPFXCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSImportedPFXCertificateProfile
+func (r *MacOSImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *MacOSImportedPFXCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSImportedPFXCertificateProfile
+func (r *MacOSImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *MacOSImportedPFXCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSKerberosSingleSignOnExtensionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSKerberosSingleSignOnExtensionModel.go
new file mode 100644
index 00000000..38ca12d0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSKerberosSingleSignOnExtensionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSKerberosSingleSignOnExtension undocumented
+type MacOSKerberosSingleSignOnExtension struct {
+ // KerberosSingleSignOnExtension is the base model of MacOSKerberosSingleSignOnExtension
+ KerberosSingleSignOnExtension
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSKernelExtensionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSKernelExtensionModel.go
new file mode 100644
index 00000000..be447cd1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSKernelExtensionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSKernelExtension undocumented
+type MacOSKernelExtension struct {
+ // Object is the base model of MacOSKernelExtension
+ Object
+ // TeamIdentifier The team identifier that was used to sign the kernel extension.
+ TeamIdentifier *string `json:"teamIdentifier,omitempty"`
+ // BundleID Bundle ID of the kernel extension.
+ BundleID *string `json:"bundleId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSLaunchItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSLaunchItemModel.go
new file mode 100644
index 00000000..dc2a7067
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSLaunchItemModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSLaunchItem undocumented
+type MacOSLaunchItem struct {
+ // Object is the base model of MacOSLaunchItem
+ Object
+ // Path Path to the launch item.
+ Path *string `json:"path,omitempty"`
+ // Hide Whether or not to hide the item from the Users and Groups List.
+ Hide *bool `json:"hide,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSLobAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSLobAppModel.go
new file mode 100644
index 00000000..f15ed8db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSLobAppModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSLobApp Contains properties and inherited properties for the MacOS LOB App.
+type MacOSLobApp struct {
+ // MobileLobApp is the base model of MacOSLobApp
+ MobileLobApp
+ // BundleID The bundle id.
+ BundleID *string `json:"bundleId,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *MacOSMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+ // BuildNumber The build number of MacOS Line of Business (LoB) app.
+ BuildNumber *string `json:"buildNumber,omitempty"`
+ // VersionNumber The version number of MacOS Line of Business (LoB) app.
+ VersionNumber *string `json:"versionNumber,omitempty"`
+ // ChildApps The app list in this bundle package
+ ChildApps []MacOSLobChildApp `json:"childApps,omitempty"`
+ // IdentityVersion The identity version.
+ IdentityVersion *string `json:"identityVersion,omitempty"`
+ // Md5HashChunkSize The chunk size for MD5 hash
+ Md5HashChunkSize *int `json:"md5HashChunkSize,omitempty"`
+ // Md5Hash The MD5 hash codes
+ Md5Hash []string `json:"md5Hash,omitempty"`
+ // IgnoreVersionDetection A boolean to control whether the app's version will be used to detect the app after it is installed on a device. Set this to true for macOS Line of Business (LoB) apps that use a self update feature.
+ IgnoreVersionDetection *bool `json:"ignoreVersionDetection,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSLobChildAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSLobChildAppModel.go
new file mode 100644
index 00000000..8d44cb6f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSLobChildAppModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSLobChildApp undocumented
+type MacOSLobChildApp struct {
+ // Object is the base model of MacOSLobChildApp
+ Object
+ // BundleID The Identity Name.
+ BundleID *string `json:"bundleId,omitempty"`
+ // BuildNumber The build number of MacOS Line of Business (LoB) app.
+ BuildNumber *string `json:"buildNumber,omitempty"`
+ // VersionNumber The version number of MacOS Line of Business (LoB) app.
+ VersionNumber *string `json:"versionNumber,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSMicrosoftEdgeAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSMicrosoftEdgeAppModel.go
new file mode 100644
index 00000000..b8976fc2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSMicrosoftEdgeAppModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSMicrosoftEdgeApp Contains properties and inherited properties for the MacOS Microsoft Edge App.
+type MacOSMicrosoftEdgeApp struct {
+ // MobileApp is the base model of MacOSMicrosoftEdgeApp
+ MobileApp
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSMinimumOperatingSystemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSMinimumOperatingSystemModel.go
new file mode 100644
index 00000000..bcb593f5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSMinimumOperatingSystemModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSMinimumOperatingSystem undocumented
+type MacOSMinimumOperatingSystem struct {
+ // Object is the base model of MacOSMinimumOperatingSystem
+ Object
+ // V10_7 Mac OS 10.7 or later.
+ V10_7 *bool `json:"v10_7,omitempty"`
+ // V10_8 Mac OS 10.8 or later.
+ V10_8 *bool `json:"v10_8,omitempty"`
+ // V10_9 Mac OS 10.9 or later.
+ V10_9 *bool `json:"v10_9,omitempty"`
+ // V10_10 Mac OS 10.10 or later.
+ V10_10 *bool `json:"v10_10,omitempty"`
+ // V10_11 Mac OS 10.11 or later.
+ V10_11 *bool `json:"v10_11,omitempty"`
+ // V10_12 Mac OS 10.12 or later.
+ V10_12 *bool `json:"v10_12,omitempty"`
+ // V10_13 Mac OS 10.13 or later.
+ V10_13 *bool `json:"v10_13,omitempty"`
+ // V10_14 Mac OS 10.14 or later.
+ V10_14 *bool `json:"v10_14,omitempty"`
+ // V10_15 Mac OS 10.15 or later.
+ V10_15 *bool `json:"v10_15,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSOfficeSuiteAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSOfficeSuiteAppModel.go
new file mode 100644
index 00000000..ed43df5f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSOfficeSuiteAppModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSOfficeSuiteApp Contains properties and inherited properties for the MacOS Office Suite App.
+type MacOSOfficeSuiteApp struct {
+ // MobileApp is the base model of MacOSOfficeSuiteApp
+ MobileApp
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSPkcsCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSPkcsCertificateProfileModel.go
new file mode 100644
index 00000000..575630ab
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSPkcsCertificateProfileModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSPkcsCertificateProfile MacOS PKCS certificate profile.
+type MacOSPkcsCertificateProfile struct {
+ // MacOSCertificateProfileBase is the base model of MacOSPkcsCertificateProfile
+ MacOSCertificateProfileBase
+ // CertificationAuthority PKCS certification authority FQDN.
+ CertificationAuthority *string `json:"certificationAuthority,omitempty"`
+ // CertificationAuthorityName PKCS certification authority Name.
+ CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"`
+ // CertificateTemplateName PKCS certificate template name.
+ CertificateTemplateName *string `json:"certificateTemplateName,omitempty"`
+ // SubjectAlternativeNameFormatString Format string that defines the subject alternative name.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // SubjectNameFormatString Format string that defines the subject name. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
+ SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"`
+ // CertificateStore Target store certificate
+ CertificateStore *CertificateStore `json:"certificateStore,omitempty"`
+ // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.
+ CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"`
+ // AllowAllAppsAccess AllowAllAppsAccess setting
+ AllowAllAppsAccess *bool `json:"allowAllAppsAccess,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSPkcsCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSPkcsCertificateProfileRequest.go
new file mode 100644
index 00000000..d44cf00f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSPkcsCertificateProfileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MacOSPkcsCertificateProfileRequestBuilder is request builder for MacOSPkcsCertificateProfile
+type MacOSPkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSPkcsCertificateProfileRequest
+func (b *MacOSPkcsCertificateProfileRequestBuilder) Request() *MacOSPkcsCertificateProfileRequest {
+ return &MacOSPkcsCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSPkcsCertificateProfileRequest is request for MacOSPkcsCertificateProfile
+type MacOSPkcsCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSPkcsCertificateProfile
+func (r *MacOSPkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *MacOSPkcsCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSPkcsCertificateProfile
+func (r *MacOSPkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *MacOSPkcsCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSPkcsCertificateProfile
+func (r *MacOSPkcsCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *MacOSPkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSScepCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSScepCertificateProfileModel.go
new file mode 100644
index 00000000..587d56c9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSScepCertificateProfileModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSScepCertificateProfile Mac OS SCEP certificate profile.
+type MacOSScepCertificateProfile struct {
+ // MacOSCertificateProfileBase is the base model of MacOSScepCertificateProfile
+ MacOSCertificateProfileBase
+ // ScepServerUrls SCEP Server Url(s).
+ ScepServerUrls []string `json:"scepServerUrls,omitempty"`
+ // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
+ SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"`
+ // KeyUsage SCEP Key Usage.
+ KeyUsage *KeyUsages `json:"keyUsage,omitempty"`
+ // KeySize SCEP Key Size.
+ KeySize *KeySize `json:"keySize,omitempty"`
+ // HashAlgorithm SCEP Hash Algorithm.
+ HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"`
+ // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
+ ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // CertificateStore Target store certificate
+ CertificateStore *CertificateStore `json:"certificateStore,omitempty"`
+ // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.
+ CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"`
+ // RootCertificate undocumented
+ RootCertificate *MacOSTrustedRootCertificate `json:"rootCertificate,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSScepCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSScepCertificateProfileRequest.go
new file mode 100644
index 00000000..8ef1fcc0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSScepCertificateProfileRequest.go
@@ -0,0 +1,146 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MacOSScepCertificateProfileRequestBuilder is request builder for MacOSScepCertificateProfile
+type MacOSScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSScepCertificateProfileRequest
+func (b *MacOSScepCertificateProfileRequestBuilder) Request() *MacOSScepCertificateProfileRequest {
+ return &MacOSScepCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSScepCertificateProfileRequest is request for MacOSScepCertificateProfile
+type MacOSScepCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSScepCertificateProfile
+func (r *MacOSScepCertificateProfileRequest) Get(ctx context.Context) (resObj *MacOSScepCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSScepCertificateProfile
+func (r *MacOSScepCertificateProfileRequest) Update(ctx context.Context, reqObj *MacOSScepCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSScepCertificateProfile
+func (r *MacOSScepCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *MacOSScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RootCertificate is navigation property
+func (b *MacOSScepCertificateProfileRequestBuilder) RootCertificate() *MacOSTrustedRootCertificateRequestBuilder {
+ bb := &MacOSTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSTrustedRootCertificateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSTrustedRootCertificateModel.go
new file mode 100644
index 00000000..66c01832
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSTrustedRootCertificateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSTrustedRootCertificate OS X Trusted Root Certificate configuration profile.
+type MacOSTrustedRootCertificate struct {
+ // DeviceConfiguration is the base model of MacOSTrustedRootCertificate
+ DeviceConfiguration
+ // TrustedRootCertificate Trusted Root Certificate.
+ TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"`
+ // CertFileName File name to display in UI.
+ CertFileName *string `json:"certFileName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSTrustedRootCertificateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSTrustedRootCertificateRequest.go
new file mode 100644
index 00000000..14bb0f5f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSTrustedRootCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MacOSTrustedRootCertificateRequestBuilder is request builder for MacOSTrustedRootCertificate
+type MacOSTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSTrustedRootCertificateRequest
+func (b *MacOSTrustedRootCertificateRequestBuilder) Request() *MacOSTrustedRootCertificateRequest {
+ return &MacOSTrustedRootCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSTrustedRootCertificateRequest is request for MacOSTrustedRootCertificate
+type MacOSTrustedRootCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSTrustedRootCertificate
+func (r *MacOSTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *MacOSTrustedRootCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSTrustedRootCertificate
+func (r *MacOSTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *MacOSTrustedRootCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSTrustedRootCertificate
+func (r *MacOSTrustedRootCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSVpnConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSVpnConfigurationModel.go
new file mode 100644
index 00000000..6abf833c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSVpnConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSVpnConfiguration By providing the configurations in this profile you can instruct the Mac device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.
+type MacOSVpnConfiguration struct {
+ // AppleVpnConfiguration is the base model of MacOSVpnConfiguration
+ AppleVpnConfiguration
+ // IdentityCertificate undocumented
+ IdentityCertificate *MacOSCertificateProfileBase `json:"identityCertificate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSVpnConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSVpnConfigurationRequest.go
new file mode 100644
index 00000000..69374387
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSVpnConfigurationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MacOSVpnConfigurationRequestBuilder is request builder for MacOSVpnConfiguration
+type MacOSVpnConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSVpnConfigurationRequest
+func (b *MacOSVpnConfigurationRequestBuilder) Request() *MacOSVpnConfigurationRequest {
+ return &MacOSVpnConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSVpnConfigurationRequest is request for MacOSVpnConfiguration
+type MacOSVpnConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSVpnConfiguration
+func (r *MacOSVpnConfigurationRequest) Get(ctx context.Context) (resObj *MacOSVpnConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSVpnConfiguration
+func (r *MacOSVpnConfigurationRequest) Update(ctx context.Context, reqObj *MacOSVpnConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSVpnConfiguration
+func (r *MacOSVpnConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityCertificate is navigation property
+func (b *MacOSVpnConfigurationRequestBuilder) IdentityCertificate() *MacOSCertificateProfileBaseRequestBuilder {
+ bb := &MacOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSWiFiConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSWiFiConfigurationModel.go
new file mode 100644
index 00000000..9ef11a65
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSWiFiConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSWiFiConfiguration By providing the configurations in this profile you can instruct the macOS device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user.
+type MacOSWiFiConfiguration struct {
+ // DeviceConfiguration is the base model of MacOSWiFiConfiguration
+ DeviceConfiguration
+ // NetworkName Network Name
+ NetworkName *string `json:"networkName,omitempty"`
+ // Ssid This is the name of the Wi-Fi network that is broadcast to all devices.
+ Ssid *string `json:"ssid,omitempty"`
+ // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network.
+ ConnectAutomatically *bool `json:"connectAutomatically,omitempty"`
+ // ConnectWhenNetworkNameIsHidden Connect when the network is not broadcasting its name (SSID). When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices.
+ ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"`
+ // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type.
+ WiFiSecurityType *WiFiSecurityType `json:"wiFiSecurityType,omitempty"`
+ // ProxySettings Proxy Type for this Wi-Fi connection
+ ProxySettings *WiFiProxySetting `json:"proxySettings,omitempty"`
+ // ProxyManualAddress IP Address or DNS hostname of the proxy server when manual configuration is selected.
+ ProxyManualAddress *string `json:"proxyManualAddress,omitempty"`
+ // ProxyManualPort Port of the proxy server when manual configuration is selected.
+ ProxyManualPort *int `json:"proxyManualPort,omitempty"`
+ // ProxyAutomaticConfigurationURL URL of the proxy server automatic configuration script when automatic configuration is selected. This URL is typically the location of PAC (Proxy Auto Configuration) file.
+ ProxyAutomaticConfigurationURL *string `json:"proxyAutomaticConfigurationUrl,omitempty"`
+ // PreSharedKey This is the pre-shared key for WPA Personal Wi-Fi network.
+ PreSharedKey *string `json:"preSharedKey,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSWiredNetworkConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSWiredNetworkConfigurationModel.go
new file mode 100644
index 00000000..1622c7be
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSWiredNetworkConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSWiredNetworkConfiguration MacOS wired network configuration profile.
+type MacOSWiredNetworkConfiguration struct {
+ // DeviceConfiguration is the base model of MacOSWiredNetworkConfiguration
+ DeviceConfiguration
+ // NetworkName Network Name
+ NetworkName *string `json:"networkName,omitempty"`
+ // NetworkInterface Network interface.
+ NetworkInterface *WiredNetworkInterface `json:"networkInterface,omitempty"`
+ // EapType Extensible Authentication Protocol (EAP). Indicates the type of EAP protocol set on the wired network.
+ EapType *EapType `json:"eapType,omitempty"`
+ // EapFastConfiguration EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type.
+ EapFastConfiguration *EapFastConfiguration `json:"eapFastConfiguration,omitempty"`
+ // TrustedServerCertificateNames Trusted server certificate names when EAP Type is configured to EAP-TLS/TTLS/FAST or PEAP. This is the common name used in the certificates issued by your trusted certificate authority (CA). If you provide this information, you can bypass the dynamic trust dialog that is displayed on end users devices when they connect to this wired network.
+ TrustedServerCertificateNames []string `json:"trustedServerCertificateNames,omitempty"`
+ // AuthenticationMethod Authentication Method when EAP Type is configured to PEAP or EAP-TTLS.
+ AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // NonEapAuthenticationMethodForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password.
+ NonEapAuthenticationMethodForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"nonEapAuthenticationMethodForEapTtls,omitempty"`
+ // EnableOuterIdentityPrivacy Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS, EAP-FAST or PEAP. This property masks usernames with the text you enter. For example, if you use 'anonymous', each user that authenticates with this wired network using their real username is displayed as 'anonymous'.
+ EnableOuterIdentityPrivacy *string `json:"enableOuterIdentityPrivacy,omitempty"`
+ // RootCertificateForServerValidation undocumented
+ RootCertificateForServerValidation *MacOSTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"`
+ // IdentityCertificateForClientAuthentication undocumented
+ IdentityCertificateForClientAuthentication *MacOSCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOSWiredNetworkConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSWiredNetworkConfigurationRequest.go
new file mode 100644
index 00000000..8cd6b641
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOSWiredNetworkConfigurationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MacOSWiredNetworkConfigurationRequestBuilder is request builder for MacOSWiredNetworkConfiguration
+type MacOSWiredNetworkConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSWiredNetworkConfigurationRequest
+func (b *MacOSWiredNetworkConfigurationRequestBuilder) Request() *MacOSWiredNetworkConfigurationRequest {
+ return &MacOSWiredNetworkConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSWiredNetworkConfigurationRequest is request for MacOSWiredNetworkConfiguration
+type MacOSWiredNetworkConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSWiredNetworkConfiguration
+func (r *MacOSWiredNetworkConfigurationRequest) Get(ctx context.Context) (resObj *MacOSWiredNetworkConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSWiredNetworkConfiguration
+func (r *MacOSWiredNetworkConfigurationRequest) Update(ctx context.Context, reqObj *MacOSWiredNetworkConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSWiredNetworkConfiguration
+func (r *MacOSWiredNetworkConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityCertificateForClientAuthentication is navigation property
+func (b *MacOSWiredNetworkConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *MacOSCertificateProfileBaseRequestBuilder {
+ bb := &MacOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificateForClientAuthentication"
+ return bb
+}
+
+// RootCertificateForServerValidation is navigation property
+func (b *MacOSWiredNetworkConfigurationRequestBuilder) RootCertificateForServerValidation() *MacOSTrustedRootCertificateRequestBuilder {
+ bb := &MacOSTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificateForServerValidation"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppAssignedLicenseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppAssignedLicenseModel.go
new file mode 100644
index 00000000..b0f6e5fd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppAssignedLicenseModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOsVppAppAssignedLicense MacOS Volume Purchase Program license assignment. This class does not support Create, Delete, or Update.
+type MacOsVppAppAssignedLicense struct {
+ // Entity is the base model of MacOsVppAppAssignedLicense
+ Entity
+ // UserEmailAddress The user email address.
+ UserEmailAddress *string `json:"userEmailAddress,omitempty"`
+ // UserID The user ID.
+ UserID *string `json:"userId,omitempty"`
+ // UserName The user name.
+ UserName *string `json:"userName,omitempty"`
+ // UserPrincipalName The user principal name.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppAssignedLicenseRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppAssignedLicenseRequest.go
new file mode 100644
index 00000000..9596b4b6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppAssignedLicenseRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MacOsVppAppAssignedLicenseRequestBuilder is request builder for MacOsVppAppAssignedLicense
+type MacOsVppAppAssignedLicenseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOsVppAppAssignedLicenseRequest
+func (b *MacOsVppAppAssignedLicenseRequestBuilder) Request() *MacOsVppAppAssignedLicenseRequest {
+ return &MacOsVppAppAssignedLicenseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOsVppAppAssignedLicenseRequest is request for MacOsVppAppAssignedLicense
+type MacOsVppAppAssignedLicenseRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOsVppAppAssignedLicense
+func (r *MacOsVppAppAssignedLicenseRequest) Get(ctx context.Context) (resObj *MacOsVppAppAssignedLicense, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOsVppAppAssignedLicense
+func (r *MacOsVppAppAssignedLicenseRequest) Update(ctx context.Context, reqObj *MacOsVppAppAssignedLicense) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOsVppAppAssignedLicense
+func (r *MacOsVppAppAssignedLicenseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppAssignmentSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppAssignmentSettingsModel.go
new file mode 100644
index 00000000..00390557
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppAssignmentSettingsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOsVppAppAssignmentSettings undocumented
+type MacOsVppAppAssignmentSettings struct {
+ // MobileAppAssignmentSettings is the base model of MacOsVppAppAssignmentSettings
+ MobileAppAssignmentSettings
+ // UseDeviceLicensing Whether or not to use device licensing.
+ UseDeviceLicensing *bool `json:"useDeviceLicensing,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppModel.go
new file mode 100644
index 00000000..fcc4e6f5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MacOsVppApp Contains properties and inherited properties for MacOS Volume-Purchased Program (VPP) Apps.
+type MacOsVppApp struct {
+ // MobileApp is the base model of MacOsVppApp
+ MobileApp
+ // UsedLicenseCount The number of VPP licenses in use.
+ UsedLicenseCount *int `json:"usedLicenseCount,omitempty"`
+ // TotalLicenseCount The total number of VPP licenses.
+ TotalLicenseCount *int `json:"totalLicenseCount,omitempty"`
+ // ReleaseDateTime The VPP application release date and time.
+ ReleaseDateTime *time.Time `json:"releaseDateTime,omitempty"`
+ // AppStoreURL The store URL.
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+ // LicensingType The supported License Type.
+ LicensingType *VppLicensingType `json:"licensingType,omitempty"`
+ // VppTokenOrganizationName The organization associated with the Apple Volume Purchase Program Token
+ VppTokenOrganizationName *string `json:"vppTokenOrganizationName,omitempty"`
+ // VppTokenAccountType The type of volume purchase program which the given Apple Volume Purchase Program Token is associated with. Possible values are: `business`, `education`.
+ VppTokenAccountType *VppTokenAccountType `json:"vppTokenAccountType,omitempty"`
+ // VppTokenAppleID The Apple Id associated with the given Apple Volume Purchase Program Token.
+ VppTokenAppleID *string `json:"vppTokenAppleId,omitempty"`
+ // BundleID The Identity Name.
+ BundleID *string `json:"bundleId,omitempty"`
+ // VppTokenID Identifier of the VPP token associated with this app.
+ VppTokenID *string `json:"vppTokenId,omitempty"`
+ // RevokeLicenseActionResults Results of revoke license actions on this app.
+ RevokeLicenseActionResults []MacOsVppAppRevokeLicensesActionResult `json:"revokeLicenseActionResults,omitempty"`
+ // AssignedLicenses undocumented
+ AssignedLicenses []MacOsVppAppAssignedLicense `json:"assignedLicenses,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppRequest.go
new file mode 100644
index 00000000..4cbf92dd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MacOsVppAppRequestBuilder is request builder for MacOsVppApp
+type MacOsVppAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOsVppAppRequest
+func (b *MacOsVppAppRequestBuilder) Request() *MacOsVppAppRequest {
+ return &MacOsVppAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOsVppAppRequest is request for MacOsVppApp
+type MacOsVppAppRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOsVppApp
+func (r *MacOsVppAppRequest) Get(ctx context.Context) (resObj *MacOsVppApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOsVppApp
+func (r *MacOsVppAppRequest) Update(ctx context.Context, reqObj *MacOsVppApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOsVppApp
+func (r *MacOsVppAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AssignedLicenses returns request builder for MacOsVppAppAssignedLicense collection
+func (b *MacOsVppAppRequestBuilder) AssignedLicenses() *MacOsVppAppAssignedLicensesCollectionRequestBuilder {
+ bb := &MacOsVppAppAssignedLicensesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignedLicenses"
+ return bb
+}
+
+// MacOsVppAppAssignedLicensesCollectionRequestBuilder is request builder for MacOsVppAppAssignedLicense collection
+type MacOsVppAppAssignedLicensesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MacOsVppAppAssignedLicense collection
+func (b *MacOsVppAppAssignedLicensesCollectionRequestBuilder) Request() *MacOsVppAppAssignedLicensesCollectionRequest {
+ return &MacOsVppAppAssignedLicensesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MacOsVppAppAssignedLicense item
+func (b *MacOsVppAppAssignedLicensesCollectionRequestBuilder) ID(id string) *MacOsVppAppAssignedLicenseRequestBuilder {
+ bb := &MacOsVppAppAssignedLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MacOsVppAppAssignedLicensesCollectionRequest is request for MacOsVppAppAssignedLicense collection
+type MacOsVppAppAssignedLicensesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MacOsVppAppAssignedLicense collection
+func (r *MacOsVppAppAssignedLicensesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MacOsVppAppAssignedLicense, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MacOsVppAppAssignedLicense
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MacOsVppAppAssignedLicense
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MacOsVppAppAssignedLicense collection
+func (r *MacOsVppAppAssignedLicensesCollectionRequest) Get(ctx context.Context) ([]MacOsVppAppAssignedLicense, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MacOsVppAppAssignedLicense collection
+func (r *MacOsVppAppAssignedLicensesCollectionRequest) Add(ctx context.Context, reqObj *MacOsVppAppAssignedLicense) (resObj *MacOsVppAppAssignedLicense, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppRevokeLicensesActionResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppRevokeLicensesActionResultModel.go
new file mode 100644
index 00000000..2443b150
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MacOsVppAppRevokeLicensesActionResultModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MacOsVppAppRevokeLicensesActionResult undocumented
+type MacOsVppAppRevokeLicensesActionResult struct {
+ // Object is the base model of MacOsVppAppRevokeLicensesActionResult
+ Object
+ // UserID UserId associated with the action.
+ UserID *string `json:"userId,omitempty"`
+ // ManagedDeviceID DeviceId associated with the action.
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // TotalLicensesCount A count of the number of licenses for which revoke was attempted.
+ TotalLicensesCount *int `json:"totalLicensesCount,omitempty"`
+ // FailedLicensesCount A count of the number of licenses for which revoke failed.
+ FailedLicensesCount *int `json:"failedLicensesCount,omitempty"`
+ // ActionFailureReason The reason for the revoke licenses action failure.
+ ActionFailureReason *VppTokenActionFailureReason `json:"actionFailureReason,omitempty"`
+ // ActionName Action name
+ ActionName *string `json:"actionName,omitempty"`
+ // ActionState State of the action
+ ActionState *ActionState `json:"actionState,omitempty"`
+ // StartDateTime Time the action was initiated
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // LastUpdatedDateTime Time the action state was last updated
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MailAssessmentRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MailAssessmentRequestObjectModel.go
new file mode 100644
index 00000000..8891591f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MailAssessmentRequestObjectModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MailAssessmentRequestObject undocumented
+type MailAssessmentRequestObject struct {
+ // ThreatAssessmentRequestObject is the base model of MailAssessmentRequestObject
+ ThreatAssessmentRequestObject
+ // RecipientEmail undocumented
+ RecipientEmail *string `json:"recipientEmail,omitempty"`
+ // DestinationRoutingReason undocumented
+ DestinationRoutingReason *MailDestinationRoutingReason `json:"destinationRoutingReason,omitempty"`
+ // MessageURI undocumented
+ MessageURI *string `json:"messageUri,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MailDestinationRoutingReasonEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MailDestinationRoutingReasonEnum.go
new file mode 100644
index 00000000..13d40638
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MailDestinationRoutingReasonEnum.go
@@ -0,0 +1,137 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MailDestinationRoutingReason undocumented
+type MailDestinationRoutingReason int
+
+const (
+ // MailDestinationRoutingReasonVNone undocumented
+ MailDestinationRoutingReasonVNone MailDestinationRoutingReason = 0
+ // MailDestinationRoutingReasonVMailFlowRule undocumented
+ MailDestinationRoutingReasonVMailFlowRule MailDestinationRoutingReason = 1
+ // MailDestinationRoutingReasonVSafeSender undocumented
+ MailDestinationRoutingReasonVSafeSender MailDestinationRoutingReason = 2
+ // MailDestinationRoutingReasonVBlockedSender undocumented
+ MailDestinationRoutingReasonVBlockedSender MailDestinationRoutingReason = 3
+ // MailDestinationRoutingReasonVAdvancedSpamFiltering undocumented
+ MailDestinationRoutingReasonVAdvancedSpamFiltering MailDestinationRoutingReason = 4
+ // MailDestinationRoutingReasonVDomainAllowList undocumented
+ MailDestinationRoutingReasonVDomainAllowList MailDestinationRoutingReason = 5
+ // MailDestinationRoutingReasonVDomainBlockList undocumented
+ MailDestinationRoutingReasonVDomainBlockList MailDestinationRoutingReason = 6
+ // MailDestinationRoutingReasonVNotInAddressBook undocumented
+ MailDestinationRoutingReasonVNotInAddressBook MailDestinationRoutingReason = 7
+ // MailDestinationRoutingReasonVFirstTimeSender undocumented
+ MailDestinationRoutingReasonVFirstTimeSender MailDestinationRoutingReason = 8
+ // MailDestinationRoutingReasonVAutoPurgeToInbox undocumented
+ MailDestinationRoutingReasonVAutoPurgeToInbox MailDestinationRoutingReason = 9
+ // MailDestinationRoutingReasonVAutoPurgeToJunk undocumented
+ MailDestinationRoutingReasonVAutoPurgeToJunk MailDestinationRoutingReason = 10
+ // MailDestinationRoutingReasonVAutoPurgeToDeleted undocumented
+ MailDestinationRoutingReasonVAutoPurgeToDeleted MailDestinationRoutingReason = 11
+ // MailDestinationRoutingReasonVOutbound undocumented
+ MailDestinationRoutingReasonVOutbound MailDestinationRoutingReason = 12
+ // MailDestinationRoutingReasonVNotJunk undocumented
+ MailDestinationRoutingReasonVNotJunk MailDestinationRoutingReason = 13
+ // MailDestinationRoutingReasonVJunk undocumented
+ MailDestinationRoutingReasonVJunk MailDestinationRoutingReason = 14
+ // MailDestinationRoutingReasonVUnknownFutureValue undocumented
+ MailDestinationRoutingReasonVUnknownFutureValue MailDestinationRoutingReason = 15
+)
+
+// MailDestinationRoutingReasonPNone returns a pointer to MailDestinationRoutingReasonVNone
+func MailDestinationRoutingReasonPNone() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVNone
+ return &v
+}
+
+// MailDestinationRoutingReasonPMailFlowRule returns a pointer to MailDestinationRoutingReasonVMailFlowRule
+func MailDestinationRoutingReasonPMailFlowRule() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVMailFlowRule
+ return &v
+}
+
+// MailDestinationRoutingReasonPSafeSender returns a pointer to MailDestinationRoutingReasonVSafeSender
+func MailDestinationRoutingReasonPSafeSender() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVSafeSender
+ return &v
+}
+
+// MailDestinationRoutingReasonPBlockedSender returns a pointer to MailDestinationRoutingReasonVBlockedSender
+func MailDestinationRoutingReasonPBlockedSender() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVBlockedSender
+ return &v
+}
+
+// MailDestinationRoutingReasonPAdvancedSpamFiltering returns a pointer to MailDestinationRoutingReasonVAdvancedSpamFiltering
+func MailDestinationRoutingReasonPAdvancedSpamFiltering() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVAdvancedSpamFiltering
+ return &v
+}
+
+// MailDestinationRoutingReasonPDomainAllowList returns a pointer to MailDestinationRoutingReasonVDomainAllowList
+func MailDestinationRoutingReasonPDomainAllowList() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVDomainAllowList
+ return &v
+}
+
+// MailDestinationRoutingReasonPDomainBlockList returns a pointer to MailDestinationRoutingReasonVDomainBlockList
+func MailDestinationRoutingReasonPDomainBlockList() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVDomainBlockList
+ return &v
+}
+
+// MailDestinationRoutingReasonPNotInAddressBook returns a pointer to MailDestinationRoutingReasonVNotInAddressBook
+func MailDestinationRoutingReasonPNotInAddressBook() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVNotInAddressBook
+ return &v
+}
+
+// MailDestinationRoutingReasonPFirstTimeSender returns a pointer to MailDestinationRoutingReasonVFirstTimeSender
+func MailDestinationRoutingReasonPFirstTimeSender() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVFirstTimeSender
+ return &v
+}
+
+// MailDestinationRoutingReasonPAutoPurgeToInbox returns a pointer to MailDestinationRoutingReasonVAutoPurgeToInbox
+func MailDestinationRoutingReasonPAutoPurgeToInbox() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVAutoPurgeToInbox
+ return &v
+}
+
+// MailDestinationRoutingReasonPAutoPurgeToJunk returns a pointer to MailDestinationRoutingReasonVAutoPurgeToJunk
+func MailDestinationRoutingReasonPAutoPurgeToJunk() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVAutoPurgeToJunk
+ return &v
+}
+
+// MailDestinationRoutingReasonPAutoPurgeToDeleted returns a pointer to MailDestinationRoutingReasonVAutoPurgeToDeleted
+func MailDestinationRoutingReasonPAutoPurgeToDeleted() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVAutoPurgeToDeleted
+ return &v
+}
+
+// MailDestinationRoutingReasonPOutbound returns a pointer to MailDestinationRoutingReasonVOutbound
+func MailDestinationRoutingReasonPOutbound() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVOutbound
+ return &v
+}
+
+// MailDestinationRoutingReasonPNotJunk returns a pointer to MailDestinationRoutingReasonVNotJunk
+func MailDestinationRoutingReasonPNotJunk() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVNotJunk
+ return &v
+}
+
+// MailDestinationRoutingReasonPJunk returns a pointer to MailDestinationRoutingReasonVJunk
+func MailDestinationRoutingReasonPJunk() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVJunk
+ return &v
+}
+
+// MailDestinationRoutingReasonPUnknownFutureValue returns a pointer to MailDestinationRoutingReasonVUnknownFutureValue
+func MailDestinationRoutingReasonPUnknownFutureValue() *MailDestinationRoutingReason {
+ v := MailDestinationRoutingReasonVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MailFolderAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/MailFolderAction.go
new file mode 100644
index 00000000..ab74b5b5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MailFolderAction.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MailFolderCopyRequestParameter undocumented
+type MailFolderCopyRequestParameter struct {
+ // DestinationID undocumented
+ DestinationID *string `json:"DestinationId,omitempty"`
+}
+
+// MailFolderMoveRequestParameter undocumented
+type MailFolderMoveRequestParameter struct {
+ // DestinationID undocumented
+ DestinationID *string `json:"DestinationId,omitempty"`
+}
+
+//
+type MailFolderCopyRequestBuilder struct{ BaseRequestBuilder }
+
+// Copy action undocumented
+func (b *MailFolderRequestBuilder) Copy(reqObj *MailFolderCopyRequestParameter) *MailFolderCopyRequestBuilder {
+ bb := &MailFolderCopyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/copy"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MailFolderCopyRequest struct{ BaseRequest }
+
+//
+func (b *MailFolderCopyRequestBuilder) Request() *MailFolderCopyRequest {
+ return &MailFolderCopyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MailFolderCopyRequest) Post(ctx context.Context) (resObj *MailFolder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type MailFolderMoveRequestBuilder struct{ BaseRequestBuilder }
+
+// Move action undocumented
+func (b *MailFolderRequestBuilder) Move(reqObj *MailFolderMoveRequestParameter) *MailFolderMoveRequestBuilder {
+ bb := &MailFolderMoveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/move"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MailFolderMoveRequest struct{ BaseRequest }
+
+//
+func (b *MailFolderMoveRequestBuilder) Request() *MailFolderMoveRequest {
+ return &MailFolderMoveRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MailFolderMoveRequest) Post(ctx context.Context) (resObj *MailFolder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MailFolderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MailFolderModel.go
new file mode 100644
index 00000000..b02a988d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MailFolderModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MailFolder undocumented
+type MailFolder struct {
+ // Entity is the base model of MailFolder
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ParentFolderID undocumented
+ ParentFolderID *string `json:"parentFolderId,omitempty"`
+ // ChildFolderCount undocumented
+ ChildFolderCount *int `json:"childFolderCount,omitempty"`
+ // UnreadItemCount undocumented
+ UnreadItemCount *int `json:"unreadItemCount,omitempty"`
+ // TotalItemCount undocumented
+ TotalItemCount *int `json:"totalItemCount,omitempty"`
+ // WellKnownName undocumented
+ WellKnownName *string `json:"wellKnownName,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+ // Messages undocumented
+ Messages []Message `json:"messages,omitempty"`
+ // MessageRules undocumented
+ MessageRules []MessageRule `json:"messageRules,omitempty"`
+ // ChildFolders undocumented
+ ChildFolders []MailFolder `json:"childFolders,omitempty"`
+ // UserConfigurations undocumented
+ UserConfigurations []UserConfiguration `json:"userConfigurations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MailFolderRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MailFolderRequest.go
new file mode 100644
index 00000000..057c4663
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MailFolderRequest.go
@@ -0,0 +1,609 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MailFolderRequestBuilder is request builder for MailFolder
+type MailFolderRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MailFolderRequest
+func (b *MailFolderRequestBuilder) Request() *MailFolderRequest {
+ return &MailFolderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MailFolderRequest is request for MailFolder
+type MailFolderRequest struct{ BaseRequest }
+
+// Get performs GET request for MailFolder
+func (r *MailFolderRequest) Get(ctx context.Context) (resObj *MailFolder, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MailFolder
+func (r *MailFolderRequest) Update(ctx context.Context, reqObj *MailFolder) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MailFolder
+func (r *MailFolderRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ChildFolders returns request builder for MailFolder collection
+func (b *MailFolderRequestBuilder) ChildFolders() *MailFolderChildFoldersCollectionRequestBuilder {
+ bb := &MailFolderChildFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/childFolders"
+ return bb
+}
+
+// MailFolderChildFoldersCollectionRequestBuilder is request builder for MailFolder collection
+type MailFolderChildFoldersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MailFolder collection
+func (b *MailFolderChildFoldersCollectionRequestBuilder) Request() *MailFolderChildFoldersCollectionRequest {
+ return &MailFolderChildFoldersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MailFolder item
+func (b *MailFolderChildFoldersCollectionRequestBuilder) ID(id string) *MailFolderRequestBuilder {
+ bb := &MailFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MailFolderChildFoldersCollectionRequest is request for MailFolder collection
+type MailFolderChildFoldersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MailFolder collection
+func (r *MailFolderChildFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MailFolder, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MailFolder
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MailFolder
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MailFolder collection
+func (r *MailFolderChildFoldersCollectionRequest) Get(ctx context.Context) ([]MailFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MailFolder collection
+func (r *MailFolderChildFoldersCollectionRequest) Add(ctx context.Context, reqObj *MailFolder) (resObj *MailFolder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MessageRules returns request builder for MessageRule collection
+func (b *MailFolderRequestBuilder) MessageRules() *MailFolderMessageRulesCollectionRequestBuilder {
+ bb := &MailFolderMessageRulesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/messageRules"
+ return bb
+}
+
+// MailFolderMessageRulesCollectionRequestBuilder is request builder for MessageRule collection
+type MailFolderMessageRulesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MessageRule collection
+func (b *MailFolderMessageRulesCollectionRequestBuilder) Request() *MailFolderMessageRulesCollectionRequest {
+ return &MailFolderMessageRulesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MessageRule item
+func (b *MailFolderMessageRulesCollectionRequestBuilder) ID(id string) *MessageRuleRequestBuilder {
+ bb := &MessageRuleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MailFolderMessageRulesCollectionRequest is request for MessageRule collection
+type MailFolderMessageRulesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MessageRule collection
+func (r *MailFolderMessageRulesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MessageRule, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MessageRule
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MessageRule
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MessageRule collection
+func (r *MailFolderMessageRulesCollectionRequest) Get(ctx context.Context) ([]MessageRule, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MessageRule collection
+func (r *MailFolderMessageRulesCollectionRequest) Add(ctx context.Context, reqObj *MessageRule) (resObj *MessageRule, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Messages returns request builder for Message collection
+func (b *MailFolderRequestBuilder) Messages() *MailFolderMessagesCollectionRequestBuilder {
+ bb := &MailFolderMessagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/messages"
+ return bb
+}
+
+// MailFolderMessagesCollectionRequestBuilder is request builder for Message collection
+type MailFolderMessagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Message collection
+func (b *MailFolderMessagesCollectionRequestBuilder) Request() *MailFolderMessagesCollectionRequest {
+ return &MailFolderMessagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Message item
+func (b *MailFolderMessagesCollectionRequestBuilder) ID(id string) *MessageRequestBuilder {
+ bb := &MessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MailFolderMessagesCollectionRequest is request for Message collection
+type MailFolderMessagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Message collection
+func (r *MailFolderMessagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Message, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Message
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Message
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Message collection
+func (r *MailFolderMessagesCollectionRequest) Get(ctx context.Context) ([]Message, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Message collection
+func (r *MailFolderMessagesCollectionRequest) Add(ctx context.Context, reqObj *Message) (resObj *Message, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *MailFolderRequestBuilder) MultiValueExtendedProperties() *MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *MailFolderMultiValueExtendedPropertiesCollectionRequest {
+ return &MailFolderMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MailFolderMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type MailFolderMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *MailFolderMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *MailFolderMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *MailFolderMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *MailFolderRequestBuilder) SingleValueExtendedProperties() *MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *MailFolderSingleValueExtendedPropertiesCollectionRequest {
+ return &MailFolderSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MailFolderSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type MailFolderSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *MailFolderSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *MailFolderSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *MailFolderSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserConfigurations returns request builder for UserConfiguration collection
+func (b *MailFolderRequestBuilder) UserConfigurations() *MailFolderUserConfigurationsCollectionRequestBuilder {
+ bb := &MailFolderUserConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userConfigurations"
+ return bb
+}
+
+// MailFolderUserConfigurationsCollectionRequestBuilder is request builder for UserConfiguration collection
+type MailFolderUserConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserConfiguration collection
+func (b *MailFolderUserConfigurationsCollectionRequestBuilder) Request() *MailFolderUserConfigurationsCollectionRequest {
+ return &MailFolderUserConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserConfiguration item
+func (b *MailFolderUserConfigurationsCollectionRequestBuilder) ID(id string) *UserConfigurationRequestBuilder {
+ bb := &UserConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MailFolderUserConfigurationsCollectionRequest is request for UserConfiguration collection
+type MailFolderUserConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserConfiguration collection
+func (r *MailFolderUserConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UserConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserConfiguration collection
+func (r *MailFolderUserConfigurationsCollectionRequest) Get(ctx context.Context) ([]UserConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UserConfiguration collection
+func (r *MailFolderUserConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *UserConfiguration) (resObj *UserConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MailSearchFolderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MailSearchFolderModel.go
new file mode 100644
index 00000000..0d5518fb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MailSearchFolderModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MailSearchFolder undocumented
+type MailSearchFolder struct {
+ // MailFolder is the base model of MailSearchFolder
+ MailFolder
+ // IsSupported undocumented
+ IsSupported *bool `json:"isSupported,omitempty"`
+ // IncludeNestedFolders undocumented
+ IncludeNestedFolders *bool `json:"includeNestedFolders,omitempty"`
+ // SourceFolderIDs undocumented
+ SourceFolderIDs []string `json:"sourceFolderIds,omitempty"`
+ // FilterQuery undocumented
+ FilterQuery *string `json:"filterQuery,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MailTipsErrorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MailTipsErrorModel.go
new file mode 100644
index 00000000..23fa73c6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MailTipsErrorModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MailTipsError undocumented
+type MailTipsError struct {
+ // Object is the base model of MailTipsError
+ Object
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MailTipsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MailTipsModel.go
new file mode 100644
index 00000000..448b24cb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MailTipsModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MailTips undocumented
+type MailTips struct {
+ // Object is the base model of MailTips
+ Object
+ // EmailAddress undocumented
+ EmailAddress *EmailAddress `json:"emailAddress,omitempty"`
+ // AutomaticReplies undocumented
+ AutomaticReplies *AutomaticRepliesMailTips `json:"automaticReplies,omitempty"`
+ // MailboxFull undocumented
+ MailboxFull *bool `json:"mailboxFull,omitempty"`
+ // CustomMailTip undocumented
+ CustomMailTip *string `json:"customMailTip,omitempty"`
+ // ExternalMemberCount undocumented
+ ExternalMemberCount *int `json:"externalMemberCount,omitempty"`
+ // TotalMemberCount undocumented
+ TotalMemberCount *int `json:"totalMemberCount,omitempty"`
+ // DeliveryRestricted undocumented
+ DeliveryRestricted *bool `json:"deliveryRestricted,omitempty"`
+ // IsModerated undocumented
+ IsModerated *bool `json:"isModerated,omitempty"`
+ // RecipientScope undocumented
+ RecipientScope *RecipientScopeType `json:"recipientScope,omitempty"`
+ // RecipientSuggestions undocumented
+ RecipientSuggestions []Recipient `json:"recipientSuggestions,omitempty"`
+ // MaxMessageSize undocumented
+ MaxMessageSize *int `json:"maxMessageSize,omitempty"`
+ // Error undocumented
+ Error *MailTipsError `json:"error,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MailTipsTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MailTipsTypeEnum.go
new file mode 100644
index 00000000..6eab53bd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MailTipsTypeEnum.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MailTipsType undocumented
+type MailTipsType int
+
+const (
+ // MailTipsTypeVAutomaticReplies undocumented
+ MailTipsTypeVAutomaticReplies MailTipsType = 1
+ // MailTipsTypeVMailboxFullStatus undocumented
+ MailTipsTypeVMailboxFullStatus MailTipsType = 2
+ // MailTipsTypeVCustomMailTip undocumented
+ MailTipsTypeVCustomMailTip MailTipsType = 4
+ // MailTipsTypeVExternalMemberCount undocumented
+ MailTipsTypeVExternalMemberCount MailTipsType = 8
+ // MailTipsTypeVTotalMemberCount undocumented
+ MailTipsTypeVTotalMemberCount MailTipsType = 16
+ // MailTipsTypeVMaxMessageSize undocumented
+ MailTipsTypeVMaxMessageSize MailTipsType = 32
+ // MailTipsTypeVDeliveryRestriction undocumented
+ MailTipsTypeVDeliveryRestriction MailTipsType = 64
+ // MailTipsTypeVModerationStatus undocumented
+ MailTipsTypeVModerationStatus MailTipsType = 128
+ // MailTipsTypeVRecipientScope undocumented
+ MailTipsTypeVRecipientScope MailTipsType = 256
+ // MailTipsTypeVRecipientSuggestions undocumented
+ MailTipsTypeVRecipientSuggestions MailTipsType = 512
+)
+
+// MailTipsTypePAutomaticReplies returns a pointer to MailTipsTypeVAutomaticReplies
+func MailTipsTypePAutomaticReplies() *MailTipsType {
+ v := MailTipsTypeVAutomaticReplies
+ return &v
+}
+
+// MailTipsTypePMailboxFullStatus returns a pointer to MailTipsTypeVMailboxFullStatus
+func MailTipsTypePMailboxFullStatus() *MailTipsType {
+ v := MailTipsTypeVMailboxFullStatus
+ return &v
+}
+
+// MailTipsTypePCustomMailTip returns a pointer to MailTipsTypeVCustomMailTip
+func MailTipsTypePCustomMailTip() *MailTipsType {
+ v := MailTipsTypeVCustomMailTip
+ return &v
+}
+
+// MailTipsTypePExternalMemberCount returns a pointer to MailTipsTypeVExternalMemberCount
+func MailTipsTypePExternalMemberCount() *MailTipsType {
+ v := MailTipsTypeVExternalMemberCount
+ return &v
+}
+
+// MailTipsTypePTotalMemberCount returns a pointer to MailTipsTypeVTotalMemberCount
+func MailTipsTypePTotalMemberCount() *MailTipsType {
+ v := MailTipsTypeVTotalMemberCount
+ return &v
+}
+
+// MailTipsTypePMaxMessageSize returns a pointer to MailTipsTypeVMaxMessageSize
+func MailTipsTypePMaxMessageSize() *MailTipsType {
+ v := MailTipsTypeVMaxMessageSize
+ return &v
+}
+
+// MailTipsTypePDeliveryRestriction returns a pointer to MailTipsTypeVDeliveryRestriction
+func MailTipsTypePDeliveryRestriction() *MailTipsType {
+ v := MailTipsTypeVDeliveryRestriction
+ return &v
+}
+
+// MailTipsTypePModerationStatus returns a pointer to MailTipsTypeVModerationStatus
+func MailTipsTypePModerationStatus() *MailTipsType {
+ v := MailTipsTypeVModerationStatus
+ return &v
+}
+
+// MailTipsTypePRecipientScope returns a pointer to MailTipsTypeVRecipientScope
+func MailTipsTypePRecipientScope() *MailTipsType {
+ v := MailTipsTypeVRecipientScope
+ return &v
+}
+
+// MailTipsTypePRecipientSuggestions returns a pointer to MailTipsTypeVRecipientSuggestions
+func MailTipsTypePRecipientSuggestions() *MailTipsType {
+ v := MailTipsTypeVRecipientSuggestions
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MailboxSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MailboxSettingsModel.go
new file mode 100644
index 00000000..e0ac85a4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MailboxSettingsModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MailboxSettings undocumented
+type MailboxSettings struct {
+ // Object is the base model of MailboxSettings
+ Object
+ // AutomaticRepliesSetting undocumented
+ AutomaticRepliesSetting *AutomaticRepliesSetting `json:"automaticRepliesSetting,omitempty"`
+ // ArchiveFolder undocumented
+ ArchiveFolder *string `json:"archiveFolder,omitempty"`
+ // TimeZone undocumented
+ TimeZone *string `json:"timeZone,omitempty"`
+ // Language undocumented
+ Language *LocaleInfo `json:"language,omitempty"`
+ // DelegateMeetingMessageDeliveryOptions undocumented
+ DelegateMeetingMessageDeliveryOptions *DelegateMeetingMessageDeliveryOptions `json:"delegateMeetingMessageDeliveryOptions,omitempty"`
+ // WorkingHours undocumented
+ WorkingHours *WorkingHours `json:"workingHours,omitempty"`
+ // DateFormat undocumented
+ DateFormat *string `json:"dateFormat,omitempty"`
+ // TimeFormat undocumented
+ TimeFormat *string `json:"timeFormat,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MailboxUsageDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MailboxUsageDetailModel.go
new file mode 100644
index 00000000..91ada548
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MailboxUsageDetailModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MailboxUsageDetail undocumented
+type MailboxUsageDetail struct {
+ // Entity is the base model of MailboxUsageDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *time.Time `json:"deletedDate,omitempty"`
+ // CreatedDate undocumented
+ CreatedDate *time.Time `json:"createdDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `json:"lastActivityDate,omitempty"`
+ // ItemCount undocumented
+ ItemCount *int `json:"itemCount,omitempty"`
+ // StorageUsedInBytes undocumented
+ StorageUsedInBytes *int `json:"storageUsedInBytes,omitempty"`
+ // DeletedItemCount undocumented
+ DeletedItemCount *int `json:"deletedItemCount,omitempty"`
+ // DeletedItemSizeInBytes undocumented
+ DeletedItemSizeInBytes *int `json:"deletedItemSizeInBytes,omitempty"`
+ // IssueWarningQuotaInBytes undocumented
+ IssueWarningQuotaInBytes *int `json:"issueWarningQuotaInBytes,omitempty"`
+ // ProhibitSendQuotaInBytes undocumented
+ ProhibitSendQuotaInBytes *int `json:"prohibitSendQuotaInBytes,omitempty"`
+ // ProhibitSendReceiveQuotaInBytes undocumented
+ ProhibitSendReceiveQuotaInBytes *int `json:"prohibitSendReceiveQuotaInBytes,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MailboxUsageMailboxCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MailboxUsageMailboxCountsModel.go
new file mode 100644
index 00000000..bd5b7c26
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MailboxUsageMailboxCountsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MailboxUsageMailboxCounts undocumented
+type MailboxUsageMailboxCounts struct {
+ // Entity is the base model of MailboxUsageMailboxCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MailboxUsageQuotaStatusMailboxCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MailboxUsageQuotaStatusMailboxCountsModel.go
new file mode 100644
index 00000000..a3a47676
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MailboxUsageQuotaStatusMailboxCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MailboxUsageQuotaStatusMailboxCounts undocumented
+type MailboxUsageQuotaStatusMailboxCounts struct {
+ // Entity is the base model of MailboxUsageQuotaStatusMailboxCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UnderLimit undocumented
+ UnderLimit *int `json:"underLimit,omitempty"`
+ // WarningIssued undocumented
+ WarningIssued *int `json:"warningIssued,omitempty"`
+ // SendProhibited undocumented
+ SendProhibited *int `json:"sendProhibited,omitempty"`
+ // SendReceiveProhibited undocumented
+ SendReceiveProhibited *int `json:"sendReceiveProhibited,omitempty"`
+ // Indeterminate undocumented
+ Indeterminate *int `json:"indeterminate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MailboxUsageStorageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MailboxUsageStorageModel.go
new file mode 100644
index 00000000..6406afa9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MailboxUsageStorageModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MailboxUsageStorage undocumented
+type MailboxUsageStorage struct {
+ // Entity is the base model of MailboxUsageStorage
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // StorageUsedInBytes undocumented
+ StorageUsedInBytes *int `json:"storageUsedInBytes,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MalwareRiskEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MalwareRiskEventModel.go
new file mode 100644
index 00000000..6ee373f7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MalwareRiskEventModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MalwareRiskEvent undocumented
+type MalwareRiskEvent struct {
+ // LocatedRiskEvent is the base model of MalwareRiskEvent
+ LocatedRiskEvent
+ // DeviceInformation undocumented
+ DeviceInformation *string `json:"deviceInformation,omitempty"`
+ // MalwareName undocumented
+ MalwareName *string `json:"malwareName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MalwareRiskEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MalwareRiskEventRequest.go
new file mode 100644
index 00000000..52e0aa9c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MalwareRiskEventRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MalwareRiskEventRequestBuilder is request builder for MalwareRiskEvent
+type MalwareRiskEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MalwareRiskEventRequest
+func (b *MalwareRiskEventRequestBuilder) Request() *MalwareRiskEventRequest {
+ return &MalwareRiskEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MalwareRiskEventRequest is request for MalwareRiskEvent
+type MalwareRiskEventRequest struct{ BaseRequest }
+
+// Get performs GET request for MalwareRiskEvent
+func (r *MalwareRiskEventRequest) Get(ctx context.Context) (resObj *MalwareRiskEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MalwareRiskEvent
+func (r *MalwareRiskEventRequest) Update(ctx context.Context, reqObj *MalwareRiskEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MalwareRiskEvent
+func (r *MalwareRiskEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MalwareStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MalwareStateModel.go
new file mode 100644
index 00000000..e9622fe6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MalwareStateModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MalwareState undocumented
+type MalwareState struct {
+ // Object is the base model of MalwareState
+ Object
+ // Category undocumented
+ Category *string `json:"category,omitempty"`
+ // Family undocumented
+ Family *string `json:"family,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Severity undocumented
+ Severity *string `json:"severity,omitempty"`
+ // WasRunning undocumented
+ WasRunning *bool `json:"wasRunning,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAllDeviceCertificateStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAllDeviceCertificateStateModel.go
new file mode 100644
index 00000000..b521470e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAllDeviceCertificateStateModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagedAllDeviceCertificateState undocumented
+type ManagedAllDeviceCertificateState struct {
+ // Entity is the base model of ManagedAllDeviceCertificateState
+ Entity
+ // CertificateRevokeStatus Revoke status
+ CertificateRevokeStatus *CertificateRevocationStatus `json:"certificateRevokeStatus,omitempty"`
+ // ManagedDeviceDisplayName Device display name
+ ManagedDeviceDisplayName *string `json:"managedDeviceDisplayName,omitempty"`
+ // UserPrincipalName User principal name
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // CertificateExpirationDateTime Certificate expiry date
+ CertificateExpirationDateTime *time.Time `json:"certificateExpirationDateTime,omitempty"`
+ // CertificateIssuerName Issuer
+ CertificateIssuerName *string `json:"certificateIssuerName,omitempty"`
+ // CertificateThumbprint Thumbprint
+ CertificateThumbprint *string `json:"certificateThumbprint,omitempty"`
+ // CertificateSerialNumber Serial number
+ CertificateSerialNumber *string `json:"certificateSerialNumber,omitempty"`
+ // CertificateSubjectName Certificate subject name
+ CertificateSubjectName *string `json:"certificateSubjectName,omitempty"`
+ // CertificateKeyUsages Key Usage
+ CertificateKeyUsages *int `json:"certificateKeyUsages,omitempty"`
+ // CertificateExtendedKeyUsages Enhanced Key Usage
+ CertificateExtendedKeyUsages *string `json:"certificateExtendedKeyUsages,omitempty"`
+ // CertificateIssuanceDateTime Issuance date
+ CertificateIssuanceDateTime *time.Time `json:"certificateIssuanceDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAllDeviceCertificateStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAllDeviceCertificateStateRequest.go
new file mode 100644
index 00000000..274d0ae9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAllDeviceCertificateStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedAllDeviceCertificateStateRequestBuilder is request builder for ManagedAllDeviceCertificateState
+type ManagedAllDeviceCertificateStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedAllDeviceCertificateStateRequest
+func (b *ManagedAllDeviceCertificateStateRequestBuilder) Request() *ManagedAllDeviceCertificateStateRequest {
+ return &ManagedAllDeviceCertificateStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedAllDeviceCertificateStateRequest is request for ManagedAllDeviceCertificateState
+type ManagedAllDeviceCertificateStateRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedAllDeviceCertificateState
+func (r *ManagedAllDeviceCertificateStateRequest) Get(ctx context.Context) (resObj *ManagedAllDeviceCertificateState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedAllDeviceCertificateState
+func (r *ManagedAllDeviceCertificateStateRequest) Update(ctx context.Context, reqObj *ManagedAllDeviceCertificateState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedAllDeviceCertificateState
+func (r *ManagedAllDeviceCertificateStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAndroidLobAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAndroidLobAppModel.go
new file mode 100644
index 00000000..1016dc01
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAndroidLobAppModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAndroidLobApp Contains properties and inherited properties for Managed Android Line Of Business apps.
+type ManagedAndroidLobApp struct {
+ // ManagedMobileLobApp is the base model of ManagedAndroidLobApp
+ ManagedMobileLobApp
+ // PackageID The package identifier.
+ PackageID *string `json:"packageId,omitempty"`
+ // IdentityName The Identity Name.
+ IdentityName *string `json:"identityName,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *AndroidMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+ // VersionName The version name of managed Android Line of Business (LoB) app.
+ VersionName *string `json:"versionName,omitempty"`
+ // VersionCode The version code of managed Android Line of Business (LoB) app.
+ VersionCode *string `json:"versionCode,omitempty"`
+ // IdentityVersion The identity version.
+ IdentityVersion *string `json:"identityVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAndroidStoreAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAndroidStoreAppModel.go
new file mode 100644
index 00000000..f461f96f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAndroidStoreAppModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAndroidStoreApp Contains properties and inherited properties for Android store apps that you can manage with an Intune app protection policy.
+type ManagedAndroidStoreApp struct {
+ // ManagedApp is the base model of ManagedAndroidStoreApp
+ ManagedApp
+ // PackageID The app's package ID.
+ PackageID *string `json:"packageId,omitempty"`
+ // AppStoreURL The Android AppStoreUrl.
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum supported operating system.
+ MinimumSupportedOperatingSystem *AndroidMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppAvailabilityEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppAvailabilityEnum.go
new file mode 100644
index 00000000..59a3ff20
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppAvailabilityEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppAvailability undocumented
+type ManagedAppAvailability int
+
+const (
+ // ManagedAppAvailabilityVGlobal undocumented
+ ManagedAppAvailabilityVGlobal ManagedAppAvailability = 0
+ // ManagedAppAvailabilityVLineOfBusiness undocumented
+ ManagedAppAvailabilityVLineOfBusiness ManagedAppAvailability = 1
+)
+
+// ManagedAppAvailabilityPGlobal returns a pointer to ManagedAppAvailabilityVGlobal
+func ManagedAppAvailabilityPGlobal() *ManagedAppAvailability {
+ v := ManagedAppAvailabilityVGlobal
+ return &v
+}
+
+// ManagedAppAvailabilityPLineOfBusiness returns a pointer to ManagedAppAvailabilityVLineOfBusiness
+func ManagedAppAvailabilityPLineOfBusiness() *ManagedAppAvailability {
+ v := ManagedAppAvailabilityVLineOfBusiness
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppClipboardSharingLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppClipboardSharingLevelEnum.go
new file mode 100644
index 00000000..980adf65
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppClipboardSharingLevelEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppClipboardSharingLevel undocumented
+type ManagedAppClipboardSharingLevel int
+
+const (
+ // ManagedAppClipboardSharingLevelVAllApps undocumented
+ ManagedAppClipboardSharingLevelVAllApps ManagedAppClipboardSharingLevel = 0
+ // ManagedAppClipboardSharingLevelVManagedAppsWithPasteIn undocumented
+ ManagedAppClipboardSharingLevelVManagedAppsWithPasteIn ManagedAppClipboardSharingLevel = 1
+ // ManagedAppClipboardSharingLevelVManagedApps undocumented
+ ManagedAppClipboardSharingLevelVManagedApps ManagedAppClipboardSharingLevel = 2
+ // ManagedAppClipboardSharingLevelVBlocked undocumented
+ ManagedAppClipboardSharingLevelVBlocked ManagedAppClipboardSharingLevel = 3
+)
+
+// ManagedAppClipboardSharingLevelPAllApps returns a pointer to ManagedAppClipboardSharingLevelVAllApps
+func ManagedAppClipboardSharingLevelPAllApps() *ManagedAppClipboardSharingLevel {
+ v := ManagedAppClipboardSharingLevelVAllApps
+ return &v
+}
+
+// ManagedAppClipboardSharingLevelPManagedAppsWithPasteIn returns a pointer to ManagedAppClipboardSharingLevelVManagedAppsWithPasteIn
+func ManagedAppClipboardSharingLevelPManagedAppsWithPasteIn() *ManagedAppClipboardSharingLevel {
+ v := ManagedAppClipboardSharingLevelVManagedAppsWithPasteIn
+ return &v
+}
+
+// ManagedAppClipboardSharingLevelPManagedApps returns a pointer to ManagedAppClipboardSharingLevelVManagedApps
+func ManagedAppClipboardSharingLevelPManagedApps() *ManagedAppClipboardSharingLevel {
+ v := ManagedAppClipboardSharingLevelVManagedApps
+ return &v
+}
+
+// ManagedAppClipboardSharingLevelPBlocked returns a pointer to ManagedAppClipboardSharingLevelVBlocked
+func ManagedAppClipboardSharingLevelPBlocked() *ManagedAppClipboardSharingLevel {
+ v := ManagedAppClipboardSharingLevelVBlocked
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppConfigurationModel.go
new file mode 100644
index 00000000..12762061
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppConfiguration Configuration used to deliver a set of custom settings as-is to apps for users to whom the configuration is scoped
+type ManagedAppConfiguration struct {
+ // ManagedAppPolicy is the base model of ManagedAppConfiguration
+ ManagedAppPolicy
+ // CustomSettings A set of string key and string value pairs to be sent to apps for users to whom the configuration is scoped, unalterned by this service
+ CustomSettings []KeyValuePair `json:"customSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppDataEncryptionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppDataEncryptionTypeEnum.go
new file mode 100644
index 00000000..1c25ac40
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppDataEncryptionTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppDataEncryptionType undocumented
+type ManagedAppDataEncryptionType int
+
+const (
+ // ManagedAppDataEncryptionTypeVUseDeviceSettings undocumented
+ ManagedAppDataEncryptionTypeVUseDeviceSettings ManagedAppDataEncryptionType = 0
+ // ManagedAppDataEncryptionTypeVAfterDeviceRestart undocumented
+ ManagedAppDataEncryptionTypeVAfterDeviceRestart ManagedAppDataEncryptionType = 1
+ // ManagedAppDataEncryptionTypeVWhenDeviceLockedExceptOpenFiles undocumented
+ ManagedAppDataEncryptionTypeVWhenDeviceLockedExceptOpenFiles ManagedAppDataEncryptionType = 2
+ // ManagedAppDataEncryptionTypeVWhenDeviceLocked undocumented
+ ManagedAppDataEncryptionTypeVWhenDeviceLocked ManagedAppDataEncryptionType = 3
+)
+
+// ManagedAppDataEncryptionTypePUseDeviceSettings returns a pointer to ManagedAppDataEncryptionTypeVUseDeviceSettings
+func ManagedAppDataEncryptionTypePUseDeviceSettings() *ManagedAppDataEncryptionType {
+ v := ManagedAppDataEncryptionTypeVUseDeviceSettings
+ return &v
+}
+
+// ManagedAppDataEncryptionTypePAfterDeviceRestart returns a pointer to ManagedAppDataEncryptionTypeVAfterDeviceRestart
+func ManagedAppDataEncryptionTypePAfterDeviceRestart() *ManagedAppDataEncryptionType {
+ v := ManagedAppDataEncryptionTypeVAfterDeviceRestart
+ return &v
+}
+
+// ManagedAppDataEncryptionTypePWhenDeviceLockedExceptOpenFiles returns a pointer to ManagedAppDataEncryptionTypeVWhenDeviceLockedExceptOpenFiles
+func ManagedAppDataEncryptionTypePWhenDeviceLockedExceptOpenFiles() *ManagedAppDataEncryptionType {
+ v := ManagedAppDataEncryptionTypeVWhenDeviceLockedExceptOpenFiles
+ return &v
+}
+
+// ManagedAppDataEncryptionTypePWhenDeviceLocked returns a pointer to ManagedAppDataEncryptionTypeVWhenDeviceLocked
+func ManagedAppDataEncryptionTypePWhenDeviceLocked() *ManagedAppDataEncryptionType {
+ v := ManagedAppDataEncryptionTypeVWhenDeviceLocked
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppDataStorageLocationEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppDataStorageLocationEnum.go
new file mode 100644
index 00000000..622e068c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppDataStorageLocationEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppDataStorageLocation undocumented
+type ManagedAppDataStorageLocation int
+
+const (
+ // ManagedAppDataStorageLocationVOneDriveForBusiness undocumented
+ ManagedAppDataStorageLocationVOneDriveForBusiness ManagedAppDataStorageLocation = 1
+ // ManagedAppDataStorageLocationVSharePoint undocumented
+ ManagedAppDataStorageLocationVSharePoint ManagedAppDataStorageLocation = 2
+ // ManagedAppDataStorageLocationVLocalStorage undocumented
+ ManagedAppDataStorageLocationVLocalStorage ManagedAppDataStorageLocation = 6
+)
+
+// ManagedAppDataStorageLocationPOneDriveForBusiness returns a pointer to ManagedAppDataStorageLocationVOneDriveForBusiness
+func ManagedAppDataStorageLocationPOneDriveForBusiness() *ManagedAppDataStorageLocation {
+ v := ManagedAppDataStorageLocationVOneDriveForBusiness
+ return &v
+}
+
+// ManagedAppDataStorageLocationPSharePoint returns a pointer to ManagedAppDataStorageLocationVSharePoint
+func ManagedAppDataStorageLocationPSharePoint() *ManagedAppDataStorageLocation {
+ v := ManagedAppDataStorageLocationVSharePoint
+ return &v
+}
+
+// ManagedAppDataStorageLocationPLocalStorage returns a pointer to ManagedAppDataStorageLocationVLocalStorage
+func ManagedAppDataStorageLocationPLocalStorage() *ManagedAppDataStorageLocation {
+ v := ManagedAppDataStorageLocationVLocalStorage
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppDataTransferLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppDataTransferLevelEnum.go
new file mode 100644
index 00000000..fc03c9d0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppDataTransferLevelEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppDataTransferLevel undocumented
+type ManagedAppDataTransferLevel int
+
+const (
+ // ManagedAppDataTransferLevelVAllApps undocumented
+ ManagedAppDataTransferLevelVAllApps ManagedAppDataTransferLevel = 0
+ // ManagedAppDataTransferLevelVManagedApps undocumented
+ ManagedAppDataTransferLevelVManagedApps ManagedAppDataTransferLevel = 1
+ // ManagedAppDataTransferLevelVNone undocumented
+ ManagedAppDataTransferLevelVNone ManagedAppDataTransferLevel = 2
+)
+
+// ManagedAppDataTransferLevelPAllApps returns a pointer to ManagedAppDataTransferLevelVAllApps
+func ManagedAppDataTransferLevelPAllApps() *ManagedAppDataTransferLevel {
+ v := ManagedAppDataTransferLevelVAllApps
+ return &v
+}
+
+// ManagedAppDataTransferLevelPManagedApps returns a pointer to ManagedAppDataTransferLevelVManagedApps
+func ManagedAppDataTransferLevelPManagedApps() *ManagedAppDataTransferLevel {
+ v := ManagedAppDataTransferLevelVManagedApps
+ return &v
+}
+
+// ManagedAppDataTransferLevelPNone returns a pointer to ManagedAppDataTransferLevelVNone
+func ManagedAppDataTransferLevelPNone() *ManagedAppDataTransferLevel {
+ v := ManagedAppDataTransferLevelVNone
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppDeviceThreatLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppDeviceThreatLevelEnum.go
new file mode 100644
index 00000000..eeb6799a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppDeviceThreatLevelEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppDeviceThreatLevel undocumented
+type ManagedAppDeviceThreatLevel int
+
+const (
+ // ManagedAppDeviceThreatLevelVNotConfigured undocumented
+ ManagedAppDeviceThreatLevelVNotConfigured ManagedAppDeviceThreatLevel = 0
+ // ManagedAppDeviceThreatLevelVSecured undocumented
+ ManagedAppDeviceThreatLevelVSecured ManagedAppDeviceThreatLevel = 1
+ // ManagedAppDeviceThreatLevelVLow undocumented
+ ManagedAppDeviceThreatLevelVLow ManagedAppDeviceThreatLevel = 2
+ // ManagedAppDeviceThreatLevelVMedium undocumented
+ ManagedAppDeviceThreatLevelVMedium ManagedAppDeviceThreatLevel = 3
+ // ManagedAppDeviceThreatLevelVHigh undocumented
+ ManagedAppDeviceThreatLevelVHigh ManagedAppDeviceThreatLevel = 4
+)
+
+// ManagedAppDeviceThreatLevelPNotConfigured returns a pointer to ManagedAppDeviceThreatLevelVNotConfigured
+func ManagedAppDeviceThreatLevelPNotConfigured() *ManagedAppDeviceThreatLevel {
+ v := ManagedAppDeviceThreatLevelVNotConfigured
+ return &v
+}
+
+// ManagedAppDeviceThreatLevelPSecured returns a pointer to ManagedAppDeviceThreatLevelVSecured
+func ManagedAppDeviceThreatLevelPSecured() *ManagedAppDeviceThreatLevel {
+ v := ManagedAppDeviceThreatLevelVSecured
+ return &v
+}
+
+// ManagedAppDeviceThreatLevelPLow returns a pointer to ManagedAppDeviceThreatLevelVLow
+func ManagedAppDeviceThreatLevelPLow() *ManagedAppDeviceThreatLevel {
+ v := ManagedAppDeviceThreatLevelVLow
+ return &v
+}
+
+// ManagedAppDeviceThreatLevelPMedium returns a pointer to ManagedAppDeviceThreatLevelVMedium
+func ManagedAppDeviceThreatLevelPMedium() *ManagedAppDeviceThreatLevel {
+ v := ManagedAppDeviceThreatLevelVMedium
+ return &v
+}
+
+// ManagedAppDeviceThreatLevelPHigh returns a pointer to ManagedAppDeviceThreatLevelVHigh
+func ManagedAppDeviceThreatLevelPHigh() *ManagedAppDeviceThreatLevel {
+ v := ManagedAppDeviceThreatLevelVHigh
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppDiagnosticStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppDiagnosticStatusModel.go
new file mode 100644
index 00000000..fb5ef645
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppDiagnosticStatusModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppDiagnosticStatus undocumented
+type ManagedAppDiagnosticStatus struct {
+ // Object is the base model of ManagedAppDiagnosticStatus
+ Object
+ // ValidationName The validation friendly name
+ ValidationName *string `json:"validationName,omitempty"`
+ // State The state of the operation
+ State *string `json:"state,omitempty"`
+ // MitigationInstruction Instruction on how to mitigate a failed validation
+ MitigationInstruction *string `json:"mitigationInstruction,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppFlaggedReasonEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppFlaggedReasonEnum.go
new file mode 100644
index 00000000..720d2d1a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppFlaggedReasonEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppFlaggedReason undocumented
+type ManagedAppFlaggedReason int
+
+const (
+ // ManagedAppFlaggedReasonVNone undocumented
+ ManagedAppFlaggedReasonVNone ManagedAppFlaggedReason = 0
+ // ManagedAppFlaggedReasonVRootedDevice undocumented
+ ManagedAppFlaggedReasonVRootedDevice ManagedAppFlaggedReason = 1
+ // ManagedAppFlaggedReasonVAndroidBootloaderUnlocked undocumented
+ ManagedAppFlaggedReasonVAndroidBootloaderUnlocked ManagedAppFlaggedReason = 2
+ // ManagedAppFlaggedReasonVAndroidFactoryRomModified undocumented
+ ManagedAppFlaggedReasonVAndroidFactoryRomModified ManagedAppFlaggedReason = 3
+)
+
+// ManagedAppFlaggedReasonPNone returns a pointer to ManagedAppFlaggedReasonVNone
+func ManagedAppFlaggedReasonPNone() *ManagedAppFlaggedReason {
+ v := ManagedAppFlaggedReasonVNone
+ return &v
+}
+
+// ManagedAppFlaggedReasonPRootedDevice returns a pointer to ManagedAppFlaggedReasonVRootedDevice
+func ManagedAppFlaggedReasonPRootedDevice() *ManagedAppFlaggedReason {
+ v := ManagedAppFlaggedReasonVRootedDevice
+ return &v
+}
+
+// ManagedAppFlaggedReasonPAndroidBootloaderUnlocked returns a pointer to ManagedAppFlaggedReasonVAndroidBootloaderUnlocked
+func ManagedAppFlaggedReasonPAndroidBootloaderUnlocked() *ManagedAppFlaggedReason {
+ v := ManagedAppFlaggedReasonVAndroidBootloaderUnlocked
+ return &v
+}
+
+// ManagedAppFlaggedReasonPAndroidFactoryRomModified returns a pointer to ManagedAppFlaggedReasonVAndroidFactoryRomModified
+func ManagedAppFlaggedReasonPAndroidFactoryRomModified() *ManagedAppFlaggedReason {
+ v := ManagedAppFlaggedReasonVAndroidFactoryRomModified
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppModel.go
new file mode 100644
index 00000000..934b49e4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedApp Abstract class that contains properties and inherited properties for apps that you can manage with an Intune app protection policy.
+type ManagedApp struct {
+ // MobileApp is the base model of ManagedApp
+ MobileApp
+ // AppAvailability The Application's availability.
+ AppAvailability *ManagedAppAvailability `json:"appAvailability,omitempty"`
+ // Version The Application's version.
+ Version *string `json:"version,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppNotificationRestrictionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppNotificationRestrictionEnum.go
new file mode 100644
index 00000000..7791a0d5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppNotificationRestrictionEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppNotificationRestriction undocumented
+type ManagedAppNotificationRestriction int
+
+const (
+ // ManagedAppNotificationRestrictionVAllow undocumented
+ ManagedAppNotificationRestrictionVAllow ManagedAppNotificationRestriction = 0
+ // ManagedAppNotificationRestrictionVBlockOrganizationalData undocumented
+ ManagedAppNotificationRestrictionVBlockOrganizationalData ManagedAppNotificationRestriction = 1
+ // ManagedAppNotificationRestrictionVBlock undocumented
+ ManagedAppNotificationRestrictionVBlock ManagedAppNotificationRestriction = 2
+)
+
+// ManagedAppNotificationRestrictionPAllow returns a pointer to ManagedAppNotificationRestrictionVAllow
+func ManagedAppNotificationRestrictionPAllow() *ManagedAppNotificationRestriction {
+ v := ManagedAppNotificationRestrictionVAllow
+ return &v
+}
+
+// ManagedAppNotificationRestrictionPBlockOrganizationalData returns a pointer to ManagedAppNotificationRestrictionVBlockOrganizationalData
+func ManagedAppNotificationRestrictionPBlockOrganizationalData() *ManagedAppNotificationRestriction {
+ v := ManagedAppNotificationRestrictionVBlockOrganizationalData
+ return &v
+}
+
+// ManagedAppNotificationRestrictionPBlock returns a pointer to ManagedAppNotificationRestrictionVBlock
+func ManagedAppNotificationRestrictionPBlock() *ManagedAppNotificationRestriction {
+ v := ManagedAppNotificationRestrictionVBlock
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppOperationModel.go
new file mode 100644
index 00000000..a57401a3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppOperationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagedAppOperation Represents an operation applied against an app registration.
+type ManagedAppOperation struct {
+ // Entity is the base model of ManagedAppOperation
+ Entity
+ // DisplayName The operation name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime The last time the app operation was modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // State The current state of the operation
+ State *string `json:"state,omitempty"`
+ // Version Version of the entity.
+ Version *string `json:"version,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppOperationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppOperationRequest.go
new file mode 100644
index 00000000..b473cc1f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppOperationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedAppOperationRequestBuilder is request builder for ManagedAppOperation
+type ManagedAppOperationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedAppOperationRequest
+func (b *ManagedAppOperationRequestBuilder) Request() *ManagedAppOperationRequest {
+ return &ManagedAppOperationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedAppOperationRequest is request for ManagedAppOperation
+type ManagedAppOperationRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedAppOperation
+func (r *ManagedAppOperationRequest) Get(ctx context.Context) (resObj *ManagedAppOperation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedAppOperation
+func (r *ManagedAppOperationRequest) Update(ctx context.Context, reqObj *ManagedAppOperation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedAppOperation
+func (r *ManagedAppOperationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPinCharacterSetEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPinCharacterSetEnum.go
new file mode 100644
index 00000000..922c8e7e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPinCharacterSetEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppPinCharacterSet undocumented
+type ManagedAppPinCharacterSet int
+
+const (
+ // ManagedAppPinCharacterSetVNumeric undocumented
+ ManagedAppPinCharacterSetVNumeric ManagedAppPinCharacterSet = 0
+ // ManagedAppPinCharacterSetVAlphanumericAndSymbol undocumented
+ ManagedAppPinCharacterSetVAlphanumericAndSymbol ManagedAppPinCharacterSet = 1
+)
+
+// ManagedAppPinCharacterSetPNumeric returns a pointer to ManagedAppPinCharacterSetVNumeric
+func ManagedAppPinCharacterSetPNumeric() *ManagedAppPinCharacterSet {
+ v := ManagedAppPinCharacterSetVNumeric
+ return &v
+}
+
+// ManagedAppPinCharacterSetPAlphanumericAndSymbol returns a pointer to ManagedAppPinCharacterSetVAlphanumericAndSymbol
+func ManagedAppPinCharacterSetPAlphanumericAndSymbol() *ManagedAppPinCharacterSet {
+ v := ManagedAppPinCharacterSetVAlphanumericAndSymbol
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyAction.go
new file mode 100644
index 00000000..a42f9623
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedAppPolicyTargetAppsRequestParameter undocumented
+type ManagedAppPolicyTargetAppsRequestParameter struct {
+ // Apps undocumented
+ Apps []ManagedMobileApp `json:"apps,omitempty"`
+}
+
+//
+type ManagedAppPolicyTargetAppsRequestBuilder struct{ BaseRequestBuilder }
+
+// TargetApps action undocumented
+func (b *ManagedAppPolicyRequestBuilder) TargetApps(reqObj *ManagedAppPolicyTargetAppsRequestParameter) *ManagedAppPolicyTargetAppsRequestBuilder {
+ bb := &ManagedAppPolicyTargetAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/targetApps"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedAppPolicyTargetAppsRequest struct{ BaseRequest }
+
+//
+func (b *ManagedAppPolicyTargetAppsRequestBuilder) Request() *ManagedAppPolicyTargetAppsRequest {
+ return &ManagedAppPolicyTargetAppsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedAppPolicyTargetAppsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryModel.go
new file mode 100644
index 00000000..cf66ff07
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagedAppPolicyDeploymentSummary The ManagedAppEntity is the base entity type for all other entity types under app management workflow.
+type ManagedAppPolicyDeploymentSummary struct {
+ // Entity is the base model of ManagedAppPolicyDeploymentSummary
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ConfigurationDeployedUserCount undocumented
+ ConfigurationDeployedUserCount *int `json:"configurationDeployedUserCount,omitempty"`
+ // LastRefreshTime undocumented
+ LastRefreshTime *time.Time `json:"lastRefreshTime,omitempty"`
+ // ConfigurationDeploymentSummaryPerApp undocumented
+ ConfigurationDeploymentSummaryPerApp []ManagedAppPolicyDeploymentSummaryPerApp `json:"configurationDeploymentSummaryPerApp,omitempty"`
+ // Version Version of the entity.
+ Version *string `json:"version,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryPerAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryPerAppModel.go
new file mode 100644
index 00000000..3117fc87
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryPerAppModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppPolicyDeploymentSummaryPerApp undocumented
+type ManagedAppPolicyDeploymentSummaryPerApp struct {
+ // Object is the base model of ManagedAppPolicyDeploymentSummaryPerApp
+ Object
+ // MobileAppIdentifier Deployment of an app.
+ MobileAppIdentifier *MobileAppIdentifier `json:"mobileAppIdentifier,omitempty"`
+ // ConfigurationAppliedUserCount Number of users the policy is applied.
+ ConfigurationAppliedUserCount *int `json:"configurationAppliedUserCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryRequest.go
new file mode 100644
index 00000000..45e22395
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyDeploymentSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedAppPolicyDeploymentSummaryRequestBuilder is request builder for ManagedAppPolicyDeploymentSummary
+type ManagedAppPolicyDeploymentSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedAppPolicyDeploymentSummaryRequest
+func (b *ManagedAppPolicyDeploymentSummaryRequestBuilder) Request() *ManagedAppPolicyDeploymentSummaryRequest {
+ return &ManagedAppPolicyDeploymentSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedAppPolicyDeploymentSummaryRequest is request for ManagedAppPolicyDeploymentSummary
+type ManagedAppPolicyDeploymentSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedAppPolicyDeploymentSummary
+func (r *ManagedAppPolicyDeploymentSummaryRequest) Get(ctx context.Context) (resObj *ManagedAppPolicyDeploymentSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedAppPolicyDeploymentSummary
+func (r *ManagedAppPolicyDeploymentSummaryRequest) Update(ctx context.Context, reqObj *ManagedAppPolicyDeploymentSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedAppPolicyDeploymentSummary
+func (r *ManagedAppPolicyDeploymentSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyModel.go
new file mode 100644
index 00000000..61c75b2a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagedAppPolicy The ManagedAppPolicy resource represents a base type for platform specific policies.
+type ManagedAppPolicy struct {
+ // Entity is the base model of ManagedAppPolicy
+ Entity
+ // DisplayName Policy display name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The policy's description.
+ Description *string `json:"description,omitempty"`
+ // CreatedDateTime The date and time the policy was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Last time the policy was modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // Version Version of the entity.
+ Version *string `json:"version,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyRequest.go
new file mode 100644
index 00000000..ba349bd1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppPolicyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedAppPolicyRequestBuilder is request builder for ManagedAppPolicy
+type ManagedAppPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedAppPolicyRequest
+func (b *ManagedAppPolicyRequestBuilder) Request() *ManagedAppPolicyRequest {
+ return &ManagedAppPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedAppPolicyRequest is request for ManagedAppPolicy
+type ManagedAppPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedAppPolicy
+func (r *ManagedAppPolicyRequest) Get(ctx context.Context) (resObj *ManagedAppPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedAppPolicy
+func (r *ManagedAppPolicyRequest) Update(ctx context.Context, reqObj *ManagedAppPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedAppPolicy
+func (r *ManagedAppPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppProtectionAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppProtectionAction.go
new file mode 100644
index 00000000..a04aef21
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppProtectionAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedAppProtectionTargetAppsRequestParameter undocumented
+type ManagedAppProtectionTargetAppsRequestParameter struct {
+ // Apps undocumented
+ Apps []ManagedMobileApp `json:"apps,omitempty"`
+}
+
+//
+type ManagedAppProtectionTargetAppsRequestBuilder struct{ BaseRequestBuilder }
+
+// TargetApps action undocumented
+func (b *ManagedAppProtectionRequestBuilder) TargetApps(reqObj *ManagedAppProtectionTargetAppsRequestParameter) *ManagedAppProtectionTargetAppsRequestBuilder {
+ bb := &ManagedAppProtectionTargetAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/targetApps"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedAppProtectionTargetAppsRequest struct{ BaseRequest }
+
+//
+func (b *ManagedAppProtectionTargetAppsRequestBuilder) Request() *ManagedAppProtectionTargetAppsRequest {
+ return &ManagedAppProtectionTargetAppsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedAppProtectionTargetAppsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppProtectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppProtectionModel.go
new file mode 100644
index 00000000..daffa6c5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppProtectionModel.go
@@ -0,0 +1,85 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagedAppProtection Policy used to configure detailed management settings for a specified set of apps
+type ManagedAppProtection struct {
+ // ManagedAppPolicy is the base model of ManagedAppProtection
+ ManagedAppPolicy
+ // PeriodOfflineBeforeAccessCheck The period after which access is checked when the device is not connected to the internet.
+ PeriodOfflineBeforeAccessCheck *time.Duration `json:"periodOfflineBeforeAccessCheck,omitempty"`
+ // PeriodOnlineBeforeAccessCheck The period after which access is checked when the device is connected to the internet.
+ PeriodOnlineBeforeAccessCheck *time.Duration `json:"periodOnlineBeforeAccessCheck,omitempty"`
+ // AllowedInboundDataTransferSources Sources from which data is allowed to be transferred.
+ AllowedInboundDataTransferSources *ManagedAppDataTransferLevel `json:"allowedInboundDataTransferSources,omitempty"`
+ // AllowedOutboundDataTransferDestinations Destinations to which data is allowed to be transferred.
+ AllowedOutboundDataTransferDestinations *ManagedAppDataTransferLevel `json:"allowedOutboundDataTransferDestinations,omitempty"`
+ // OrganizationalCredentialsRequired Indicates whether organizational credentials are required for app use.
+ OrganizationalCredentialsRequired *bool `json:"organizationalCredentialsRequired,omitempty"`
+ // AllowedOutboundClipboardSharingLevel The level to which the clipboard may be shared between apps on the managed device.
+ AllowedOutboundClipboardSharingLevel *ManagedAppClipboardSharingLevel `json:"allowedOutboundClipboardSharingLevel,omitempty"`
+ // DataBackupBlocked Indicates whether the backup of a managed app's data is blocked.
+ DataBackupBlocked *bool `json:"dataBackupBlocked,omitempty"`
+ // DeviceComplianceRequired Indicates whether device compliance is required.
+ DeviceComplianceRequired *bool `json:"deviceComplianceRequired,omitempty"`
+ // ManagedBrowserToOpenLinksRequired Indicates whether internet links should be opened in the managed browser app.
+ ManagedBrowserToOpenLinksRequired *bool `json:"managedBrowserToOpenLinksRequired,omitempty"`
+ // SaveAsBlocked Indicates whether users may use the "Save As" menu item to save a copy of protected files.
+ SaveAsBlocked *bool `json:"saveAsBlocked,omitempty"`
+ // PeriodOfflineBeforeWipeIsEnforced The amount of time an app is allowed to remain disconnected from the internet before all managed data it is wiped.
+ PeriodOfflineBeforeWipeIsEnforced *time.Duration `json:"periodOfflineBeforeWipeIsEnforced,omitempty"`
+ // PinRequired Indicates whether an app-level pin is required.
+ PinRequired *bool `json:"pinRequired,omitempty"`
+ // MaximumPinRetries Maximum number of incorrect pin retry attempts before the managed app is either blocked or wiped.
+ MaximumPinRetries *int `json:"maximumPinRetries,omitempty"`
+ // SimplePinBlocked Indicates whether simplePin is blocked.
+ SimplePinBlocked *bool `json:"simplePinBlocked,omitempty"`
+ // MinimumPinLength Minimum pin length required for an app-level pin if PinRequired is set to True
+ MinimumPinLength *int `json:"minimumPinLength,omitempty"`
+ // PinCharacterSet Character set which may be used for an app-level pin if PinRequired is set to True.
+ PinCharacterSet *ManagedAppPinCharacterSet `json:"pinCharacterSet,omitempty"`
+ // PeriodBeforePinReset TimePeriod before the all-level pin must be reset if PinRequired is set to True.
+ PeriodBeforePinReset *time.Duration `json:"periodBeforePinReset,omitempty"`
+ // AllowedDataStorageLocations Data storage locations where a user may store managed data.
+ AllowedDataStorageLocations []ManagedAppDataStorageLocation `json:"allowedDataStorageLocations,omitempty"`
+ // ContactSyncBlocked Indicates whether contacts can be synced to the user's device.
+ ContactSyncBlocked *bool `json:"contactSyncBlocked,omitempty"`
+ // PrintBlocked Indicates whether printing is allowed from managed apps.
+ PrintBlocked *bool `json:"printBlocked,omitempty"`
+ // FingerprintBlocked Indicates whether use of the fingerprint reader is allowed in place of a pin if PinRequired is set to True.
+ FingerprintBlocked *bool `json:"fingerprintBlocked,omitempty"`
+ // DisableAppPinIfDevicePinIsSet Indicates whether use of the app pin is required if the device pin is set.
+ DisableAppPinIfDevicePinIsSet *bool `json:"disableAppPinIfDevicePinIsSet,omitempty"`
+ // MinimumRequiredOsVersion Versions less than the specified version will block the managed app from accessing company data.
+ MinimumRequiredOsVersion *string `json:"minimumRequiredOsVersion,omitempty"`
+ // MinimumWarningOsVersion Versions less than the specified version will result in warning message on the managed app from accessing company data.
+ MinimumWarningOsVersion *string `json:"minimumWarningOsVersion,omitempty"`
+ // MinimumRequiredAppVersion Versions less than the specified version will block the managed app from accessing company data.
+ MinimumRequiredAppVersion *string `json:"minimumRequiredAppVersion,omitempty"`
+ // MinimumWarningAppVersion Versions less than the specified version will result in warning message on the managed app.
+ MinimumWarningAppVersion *string `json:"minimumWarningAppVersion,omitempty"`
+ // MinimumWipeOsVersion Versions less than or equal to the specified version will wipe the managed app and the associated company data.
+ MinimumWipeOsVersion *string `json:"minimumWipeOsVersion,omitempty"`
+ // MinimumWipeAppVersion Versions less than or equal to the specified version will wipe the managed app and the associated company data.
+ MinimumWipeAppVersion *string `json:"minimumWipeAppVersion,omitempty"`
+ // AppActionIfDeviceComplianceRequired Defines a managed app behavior, either block or wipe, when the device is either rooted or jailbroken, if DeviceComplianceRequired is set to true.
+ AppActionIfDeviceComplianceRequired *ManagedAppRemediationAction `json:"appActionIfDeviceComplianceRequired,omitempty"`
+ // AppActionIfMaximumPinRetriesExceeded Defines a managed app behavior, either block or wipe, based on maximum number of incorrect pin retry attempts.
+ AppActionIfMaximumPinRetriesExceeded *ManagedAppRemediationAction `json:"appActionIfMaximumPinRetriesExceeded,omitempty"`
+ // PinRequiredInsteadOfBiometricTimeout Timeout in minutes for an app pin instead of non biometrics passcode
+ PinRequiredInsteadOfBiometricTimeout *time.Duration `json:"pinRequiredInsteadOfBiometricTimeout,omitempty"`
+ // AllowedOutboundClipboardSharingExceptionLength Specify the number of characters that may be cut or copied from Org data and accounts to any application. This setting overrides the AllowedOutboundClipboardSharingLevel restriction. Default value of '0' means no exception is allowed.
+ AllowedOutboundClipboardSharingExceptionLength *int `json:"allowedOutboundClipboardSharingExceptionLength,omitempty"`
+ // NotificationRestriction Specify app notification restriction
+ NotificationRestriction *ManagedAppNotificationRestriction `json:"notificationRestriction,omitempty"`
+ // PreviousPinBlockCount Requires a pin to be unique from the number specified in this property.
+ PreviousPinBlockCount *int `json:"previousPinBlockCount,omitempty"`
+ // ManagedBrowser Indicates in which managed browser(s) that internet links should be opened.
+ ManagedBrowser *ManagedBrowserType `json:"managedBrowser,omitempty"`
+ // MaximumAllowedDeviceThreatLevel Maximum allowed device threat level, as reported by the MTD app
+ MaximumAllowedDeviceThreatLevel *ManagedAppDeviceThreatLevel `json:"maximumAllowedDeviceThreatLevel,omitempty"`
+ // MobileThreatDefenseRemediationAction Determines what action to take if the mobile threat defense threat threshold isn't met. Warn isn't a supported value for this property
+ MobileThreatDefenseRemediationAction *ManagedAppRemediationAction `json:"mobileThreatDefenseRemediationAction,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppProtectionPolicySetItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppProtectionPolicySetItemModel.go
new file mode 100644
index 00000000..cd3b7d35
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppProtectionPolicySetItemModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppProtectionPolicySetItem A class containing the properties used for managed app protection PolicySetItem.
+type ManagedAppProtectionPolicySetItem struct {
+ // PolicySetItem is the base model of ManagedAppProtectionPolicySetItem
+ PolicySetItem
+ // TargetedAppManagementLevels TargetedAppManagementLevels of the ManagedAppPolicySetItem.
+ TargetedAppManagementLevels *string `json:"targetedAppManagementLevels,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppProtectionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppProtectionRequest.go
new file mode 100644
index 00000000..7d92d6e0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppProtectionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedAppProtectionRequestBuilder is request builder for ManagedAppProtection
+type ManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedAppProtectionRequest
+func (b *ManagedAppProtectionRequestBuilder) Request() *ManagedAppProtectionRequest {
+ return &ManagedAppProtectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedAppProtectionRequest is request for ManagedAppProtection
+type ManagedAppProtectionRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedAppProtection
+func (r *ManagedAppProtectionRequest) Get(ctx context.Context) (resObj *ManagedAppProtection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedAppProtection
+func (r *ManagedAppProtectionRequest) Update(ctx context.Context, reqObj *ManagedAppProtection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedAppProtection
+func (r *ManagedAppProtectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppRegistrationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppRegistrationModel.go
new file mode 100644
index 00000000..3016f093
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppRegistrationModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagedAppRegistration The ManagedAppEntity is the base entity type for all other entity types under app management workflow.
+type ManagedAppRegistration struct {
+ // Entity is the base model of ManagedAppRegistration
+ Entity
+ // CreatedDateTime Date and time of creation
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastSyncDateTime Date and time of last the app synced with management service.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // ApplicationVersion App version
+ ApplicationVersion *string `json:"applicationVersion,omitempty"`
+ // ManagementSdkVersion App management SDK version
+ ManagementSdkVersion *string `json:"managementSdkVersion,omitempty"`
+ // PlatformVersion Operating System version
+ PlatformVersion *string `json:"platformVersion,omitempty"`
+ // DeviceType Host device type
+ DeviceType *string `json:"deviceType,omitempty"`
+ // DeviceTag App management SDK generated tag, which helps relate apps hosted on the same device. Not guaranteed to relate apps in all conditions.
+ DeviceTag *string `json:"deviceTag,omitempty"`
+ // DeviceName Host device name
+ DeviceName *string `json:"deviceName,omitempty"`
+ // ManagedDeviceID The Managed Device identifier of the host device. Value could be empty even when the host device is managed.
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // AzureADDeviceID The Azure Active Directory Device identifier of the host device. Value could be empty even when the host device is Azure Active Directory registered.
+ AzureADDeviceID *string `json:"azureADDeviceId,omitempty"`
+ // DeviceModel The device model for the current app registration
+ DeviceModel *string `json:"deviceModel,omitempty"`
+ // DeviceManufacturer The device manufacturer for the current app registration
+ DeviceManufacturer *string `json:"deviceManufacturer,omitempty"`
+ // FlaggedReasons Zero or more reasons an app registration is flagged. E.g. app running on rooted device
+ FlaggedReasons []ManagedAppFlaggedReason `json:"flaggedReasons,omitempty"`
+ // UserID The user Id to who this app registration belongs.
+ UserID *string `json:"userId,omitempty"`
+ // AppIdentifier The app package Identifier
+ AppIdentifier *MobileAppIdentifier `json:"appIdentifier,omitempty"`
+ // Version Version of the entity.
+ Version *string `json:"version,omitempty"`
+ // AppliedPolicies undocumented
+ AppliedPolicies []ManagedAppPolicy `json:"appliedPolicies,omitempty"`
+ // IntendedPolicies undocumented
+ IntendedPolicies []ManagedAppPolicy `json:"intendedPolicies,omitempty"`
+ // Operations undocumented
+ Operations []ManagedAppOperation `json:"operations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppRegistrationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppRegistrationRequest.go
new file mode 100644
index 00000000..6a7894c6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppRegistrationRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ManagedAppRegistrationRequestBuilder is request builder for ManagedAppRegistration
+type ManagedAppRegistrationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedAppRegistrationRequest
+func (b *ManagedAppRegistrationRequestBuilder) Request() *ManagedAppRegistrationRequest {
+ return &ManagedAppRegistrationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedAppRegistrationRequest is request for ManagedAppRegistration
+type ManagedAppRegistrationRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedAppRegistration
+func (r *ManagedAppRegistrationRequest) Get(ctx context.Context) (resObj *ManagedAppRegistration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedAppRegistration
+func (r *ManagedAppRegistrationRequest) Update(ctx context.Context, reqObj *ManagedAppRegistration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedAppRegistration
+func (r *ManagedAppRegistrationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AppliedPolicies returns request builder for ManagedAppPolicy collection
+func (b *ManagedAppRegistrationRequestBuilder) AppliedPolicies() *ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder {
+ bb := &ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appliedPolicies"
+ return bb
+}
+
+// ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder is request builder for ManagedAppPolicy collection
+type ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedAppPolicy collection
+func (b *ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder) Request() *ManagedAppRegistrationAppliedPoliciesCollectionRequest {
+ return &ManagedAppRegistrationAppliedPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedAppPolicy item
+func (b *ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder) ID(id string) *ManagedAppPolicyRequestBuilder {
+ bb := &ManagedAppPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedAppRegistrationAppliedPoliciesCollectionRequest is request for ManagedAppPolicy collection
+type ManagedAppRegistrationAppliedPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedAppPolicy collection
+func (r *ManagedAppRegistrationAppliedPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedAppPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedAppPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedAppPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedAppPolicy collection
+func (r *ManagedAppRegistrationAppliedPoliciesCollectionRequest) Get(ctx context.Context) ([]ManagedAppPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedAppPolicy collection
+func (r *ManagedAppRegistrationAppliedPoliciesCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppPolicy) (resObj *ManagedAppPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IntendedPolicies returns request builder for ManagedAppPolicy collection
+func (b *ManagedAppRegistrationRequestBuilder) IntendedPolicies() *ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder {
+ bb := &ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/intendedPolicies"
+ return bb
+}
+
+// ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder is request builder for ManagedAppPolicy collection
+type ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedAppPolicy collection
+func (b *ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder) Request() *ManagedAppRegistrationIntendedPoliciesCollectionRequest {
+ return &ManagedAppRegistrationIntendedPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedAppPolicy item
+func (b *ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder) ID(id string) *ManagedAppPolicyRequestBuilder {
+ bb := &ManagedAppPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedAppRegistrationIntendedPoliciesCollectionRequest is request for ManagedAppPolicy collection
+type ManagedAppRegistrationIntendedPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedAppPolicy collection
+func (r *ManagedAppRegistrationIntendedPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedAppPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedAppPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedAppPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedAppPolicy collection
+func (r *ManagedAppRegistrationIntendedPoliciesCollectionRequest) Get(ctx context.Context) ([]ManagedAppPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedAppPolicy collection
+func (r *ManagedAppRegistrationIntendedPoliciesCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppPolicy) (resObj *ManagedAppPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Operations returns request builder for ManagedAppOperation collection
+func (b *ManagedAppRegistrationRequestBuilder) Operations() *ManagedAppRegistrationOperationsCollectionRequestBuilder {
+ bb := &ManagedAppRegistrationOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/operations"
+ return bb
+}
+
+// ManagedAppRegistrationOperationsCollectionRequestBuilder is request builder for ManagedAppOperation collection
+type ManagedAppRegistrationOperationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedAppOperation collection
+func (b *ManagedAppRegistrationOperationsCollectionRequestBuilder) Request() *ManagedAppRegistrationOperationsCollectionRequest {
+ return &ManagedAppRegistrationOperationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedAppOperation item
+func (b *ManagedAppRegistrationOperationsCollectionRequestBuilder) ID(id string) *ManagedAppOperationRequestBuilder {
+ bb := &ManagedAppOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedAppRegistrationOperationsCollectionRequest is request for ManagedAppOperation collection
+type ManagedAppRegistrationOperationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedAppOperation collection
+func (r *ManagedAppRegistrationOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedAppOperation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedAppOperation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedAppOperation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedAppOperation collection
+func (r *ManagedAppRegistrationOperationsCollectionRequest) Get(ctx context.Context) ([]ManagedAppOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedAppOperation collection
+func (r *ManagedAppRegistrationOperationsCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppOperation) (resObj *ManagedAppOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppRemediationActionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppRemediationActionEnum.go
new file mode 100644
index 00000000..68350c36
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppRemediationActionEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppRemediationAction undocumented
+type ManagedAppRemediationAction int
+
+const (
+ // ManagedAppRemediationActionVBlock undocumented
+ ManagedAppRemediationActionVBlock ManagedAppRemediationAction = 0
+ // ManagedAppRemediationActionVWipe undocumented
+ ManagedAppRemediationActionVWipe ManagedAppRemediationAction = 1
+ // ManagedAppRemediationActionVWarn undocumented
+ ManagedAppRemediationActionVWarn ManagedAppRemediationAction = 2
+)
+
+// ManagedAppRemediationActionPBlock returns a pointer to ManagedAppRemediationActionVBlock
+func ManagedAppRemediationActionPBlock() *ManagedAppRemediationAction {
+ v := ManagedAppRemediationActionVBlock
+ return &v
+}
+
+// ManagedAppRemediationActionPWipe returns a pointer to ManagedAppRemediationActionVWipe
+func ManagedAppRemediationActionPWipe() *ManagedAppRemediationAction {
+ v := ManagedAppRemediationActionVWipe
+ return &v
+}
+
+// ManagedAppRemediationActionPWarn returns a pointer to ManagedAppRemediationActionVWarn
+func ManagedAppRemediationActionPWarn() *ManagedAppRemediationAction {
+ v := ManagedAppRemediationActionVWarn
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppStatusModel.go
new file mode 100644
index 00000000..42c10204
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppStatusModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppStatus Represents app protection and configuration status for the organization.
+type ManagedAppStatus struct {
+ // Entity is the base model of ManagedAppStatus
+ Entity
+ // DisplayName Friendly name of the status report.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version Version of the entity.
+ Version *string `json:"version,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppStatusRawModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppStatusRawModel.go
new file mode 100644
index 00000000..b0c46afe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppStatusRawModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "encoding/json"
+
+// ManagedAppStatusRaw Represents an un-typed status report about organizations app protection and configuration.
+type ManagedAppStatusRaw struct {
+ // ManagedAppStatus is the base model of ManagedAppStatusRaw
+ ManagedAppStatus
+ // Content Status report content.
+ Content json.RawMessage `json:"content,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppStatusRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppStatusRequest.go
new file mode 100644
index 00000000..c354fa50
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedAppStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedAppStatusRequestBuilder is request builder for ManagedAppStatus
+type ManagedAppStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedAppStatusRequest
+func (b *ManagedAppStatusRequestBuilder) Request() *ManagedAppStatusRequest {
+ return &ManagedAppStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedAppStatusRequest is request for ManagedAppStatus
+type ManagedAppStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedAppStatus
+func (r *ManagedAppStatusRequest) Get(ctx context.Context) (resObj *ManagedAppStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedAppStatus
+func (r *ManagedAppStatusRequest) Update(ctx context.Context, reqObj *ManagedAppStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedAppStatus
+func (r *ManagedAppStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedBrowserTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedBrowserTypeEnum.go
new file mode 100644
index 00000000..bc8b5946
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedBrowserTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedBrowserType undocumented
+type ManagedBrowserType int
+
+const (
+ // ManagedBrowserTypeVNotConfigured undocumented
+ ManagedBrowserTypeVNotConfigured ManagedBrowserType = 0
+ // ManagedBrowserTypeVMicrosoftEdge undocumented
+ ManagedBrowserTypeVMicrosoftEdge ManagedBrowserType = 1
+)
+
+// ManagedBrowserTypePNotConfigured returns a pointer to ManagedBrowserTypeVNotConfigured
+func ManagedBrowserTypePNotConfigured() *ManagedBrowserType {
+ v := ManagedBrowserTypeVNotConfigured
+ return &v
+}
+
+// ManagedBrowserTypePMicrosoftEdge returns a pointer to ManagedBrowserTypeVMicrosoftEdge
+func ManagedBrowserTypePMicrosoftEdge() *ManagedBrowserType {
+ v := ManagedBrowserTypeVMicrosoftEdge
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceAction.go
new file mode 100644
index 00000000..1aa646b4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceAction.go
@@ -0,0 +1,908 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedDeviceCollectionExecuteActionRequestParameter undocumented
+type ManagedDeviceCollectionExecuteActionRequestParameter struct {
+ // ActionName undocumented
+ ActionName *ManagedDeviceRemoteAction `json:"actionName,omitempty"`
+ // KeepEnrollmentData undocumented
+ KeepEnrollmentData *bool `json:"keepEnrollmentData,omitempty"`
+ // KeepUserData undocumented
+ KeepUserData *bool `json:"keepUserData,omitempty"`
+ // DeviceIDs undocumented
+ DeviceIDs []string `json:"deviceIds,omitempty"`
+ // NotificationTitle undocumented
+ NotificationTitle *string `json:"notificationTitle,omitempty"`
+ // NotificationBody undocumented
+ NotificationBody *string `json:"notificationBody,omitempty"`
+ // DeviceName undocumented
+ DeviceName *string `json:"deviceName,omitempty"`
+}
+
+// ManagedDeviceOverrideComplianceStateRequestParameter undocumented
+type ManagedDeviceOverrideComplianceStateRequestParameter struct {
+ // ComplianceState undocumented
+ ComplianceState *AdministratorConfiguredDeviceComplianceState `json:"complianceState,omitempty"`
+ // RemediationURL undocumented
+ RemediationURL *string `json:"remediationUrl,omitempty"`
+}
+
+// ManagedDeviceEnableLostModeRequestParameter undocumented
+type ManagedDeviceEnableLostModeRequestParameter struct {
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // Footer undocumented
+ Footer *string `json:"footer,omitempty"`
+}
+
+// ManagedDevicePlayLostModeSoundRequestParameter undocumented
+type ManagedDevicePlayLostModeSoundRequestParameter struct {
+}
+
+// ManagedDeviceSetDeviceNameRequestParameter undocumented
+type ManagedDeviceSetDeviceNameRequestParameter struct {
+ // DeviceName undocumented
+ DeviceName *string `json:"deviceName,omitempty"`
+}
+
+// ManagedDeviceRotateFileVaultKeyRequestParameter undocumented
+type ManagedDeviceRotateFileVaultKeyRequestParameter struct {
+}
+
+// ManagedDeviceRetireRequestParameter undocumented
+type ManagedDeviceRetireRequestParameter struct {
+}
+
+// ManagedDeviceWipeRequestParameter undocumented
+type ManagedDeviceWipeRequestParameter struct {
+ // KeepEnrollmentData undocumented
+ KeepEnrollmentData *bool `json:"keepEnrollmentData,omitempty"`
+ // KeepUserData undocumented
+ KeepUserData *bool `json:"keepUserData,omitempty"`
+ // MacOsUnlockCode undocumented
+ MacOsUnlockCode *string `json:"macOsUnlockCode,omitempty"`
+}
+
+// ManagedDeviceResetPasscodeRequestParameter undocumented
+type ManagedDeviceResetPasscodeRequestParameter struct {
+}
+
+// ManagedDeviceRemoteLockRequestParameter undocumented
+type ManagedDeviceRemoteLockRequestParameter struct {
+}
+
+// ManagedDeviceRequestRemoteAssistanceRequestParameter undocumented
+type ManagedDeviceRequestRemoteAssistanceRequestParameter struct {
+}
+
+// ManagedDeviceDisableLostModeRequestParameter undocumented
+type ManagedDeviceDisableLostModeRequestParameter struct {
+}
+
+// ManagedDeviceLocateDeviceRequestParameter undocumented
+type ManagedDeviceLocateDeviceRequestParameter struct {
+}
+
+// ManagedDeviceBypassActivationLockRequestParameter undocumented
+type ManagedDeviceBypassActivationLockRequestParameter struct {
+}
+
+// ManagedDeviceRebootNowRequestParameter undocumented
+type ManagedDeviceRebootNowRequestParameter struct {
+}
+
+// ManagedDeviceShutDownRequestParameter undocumented
+type ManagedDeviceShutDownRequestParameter struct {
+}
+
+// ManagedDeviceRecoverPasscodeRequestParameter undocumented
+type ManagedDeviceRecoverPasscodeRequestParameter struct {
+}
+
+// ManagedDeviceCleanWindowsDeviceRequestParameter undocumented
+type ManagedDeviceCleanWindowsDeviceRequestParameter struct {
+ // KeepUserData undocumented
+ KeepUserData *bool `json:"keepUserData,omitempty"`
+}
+
+// ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestParameter undocumented
+type ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestParameter struct {
+}
+
+// ManagedDeviceDeleteUserFromSharedAppleDeviceRequestParameter undocumented
+type ManagedDeviceDeleteUserFromSharedAppleDeviceRequestParameter struct {
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// ManagedDeviceSyncDeviceRequestParameter undocumented
+type ManagedDeviceSyncDeviceRequestParameter struct {
+}
+
+// ManagedDeviceWindowsDefenderScanRequestParameter undocumented
+type ManagedDeviceWindowsDefenderScanRequestParameter struct {
+ // QuickScan undocumented
+ QuickScan *bool `json:"quickScan,omitempty"`
+}
+
+// ManagedDeviceWindowsDefenderUpdateSignaturesRequestParameter undocumented
+type ManagedDeviceWindowsDefenderUpdateSignaturesRequestParameter struct {
+}
+
+// ManagedDeviceUpdateWindowsDeviceAccountRequestParameter undocumented
+type ManagedDeviceUpdateWindowsDeviceAccountRequestParameter struct {
+ // UpdateWindowsDeviceAccountActionParameter undocumented
+ UpdateWindowsDeviceAccountActionParameter *UpdateWindowsDeviceAccountActionParameter `json:"updateWindowsDeviceAccountActionParameter,omitempty"`
+}
+
+// ManagedDeviceRevokeAppleVppLicensesRequestParameter undocumented
+type ManagedDeviceRevokeAppleVppLicensesRequestParameter struct {
+}
+
+// ManagedDeviceRotateBitLockerKeysRequestParameter undocumented
+type ManagedDeviceRotateBitLockerKeysRequestParameter struct {
+}
+
+// ManagedDeviceSendCustomNotificationToCompanyPortalRequestParameter undocumented
+type ManagedDeviceSendCustomNotificationToCompanyPortalRequestParameter struct {
+ // NotificationTitle undocumented
+ NotificationTitle *string `json:"notificationTitle,omitempty"`
+ // NotificationBody undocumented
+ NotificationBody *string `json:"notificationBody,omitempty"`
+}
+
+// ManagedDeviceTriggerConfigurationManagerActionRequestParameter undocumented
+type ManagedDeviceTriggerConfigurationManagerActionRequestParameter struct {
+ // ConfigurationManagerAction undocumented
+ ConfigurationManagerAction *ConfigurationManagerAction `json:"configurationManagerAction,omitempty"`
+}
+
+//
+type ManagedDeviceCollectionExecuteActionRequestBuilder struct{ BaseRequestBuilder }
+
+// ExecuteAction action undocumented
+func (b *DetectedAppManagedDevicesCollectionRequestBuilder) ExecuteAction(reqObj *ManagedDeviceCollectionExecuteActionRequestParameter) *ManagedDeviceCollectionExecuteActionRequestBuilder {
+ bb := &ManagedDeviceCollectionExecuteActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/executeAction"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ExecuteAction action undocumented
+func (b *DeviceManagementManagedDevicesCollectionRequestBuilder) ExecuteAction(reqObj *ManagedDeviceCollectionExecuteActionRequestParameter) *ManagedDeviceCollectionExecuteActionRequestBuilder {
+ bb := &ManagedDeviceCollectionExecuteActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/executeAction"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ExecuteAction action undocumented
+func (b *UserManagedDevicesCollectionRequestBuilder) ExecuteAction(reqObj *ManagedDeviceCollectionExecuteActionRequestParameter) *ManagedDeviceCollectionExecuteActionRequestBuilder {
+ bb := &ManagedDeviceCollectionExecuteActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/executeAction"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceCollectionExecuteActionRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceCollectionExecuteActionRequestBuilder) Request() *ManagedDeviceCollectionExecuteActionRequest {
+ return &ManagedDeviceCollectionExecuteActionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceCollectionExecuteActionRequest) Post(ctx context.Context) (resObj *BulkManagedDeviceActionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type ManagedDeviceOverrideComplianceStateRequestBuilder struct{ BaseRequestBuilder }
+
+// OverrideComplianceState action undocumented
+func (b *ManagedDeviceRequestBuilder) OverrideComplianceState(reqObj *ManagedDeviceOverrideComplianceStateRequestParameter) *ManagedDeviceOverrideComplianceStateRequestBuilder {
+ bb := &ManagedDeviceOverrideComplianceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/overrideComplianceState"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceOverrideComplianceStateRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceOverrideComplianceStateRequestBuilder) Request() *ManagedDeviceOverrideComplianceStateRequest {
+ return &ManagedDeviceOverrideComplianceStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceOverrideComplianceStateRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceEnableLostModeRequestBuilder struct{ BaseRequestBuilder }
+
+// EnableLostMode action undocumented
+func (b *ManagedDeviceRequestBuilder) EnableLostMode(reqObj *ManagedDeviceEnableLostModeRequestParameter) *ManagedDeviceEnableLostModeRequestBuilder {
+ bb := &ManagedDeviceEnableLostModeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/enableLostMode"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceEnableLostModeRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceEnableLostModeRequestBuilder) Request() *ManagedDeviceEnableLostModeRequest {
+ return &ManagedDeviceEnableLostModeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceEnableLostModeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDevicePlayLostModeSoundRequestBuilder struct{ BaseRequestBuilder }
+
+// PlayLostModeSound action undocumented
+func (b *ManagedDeviceRequestBuilder) PlayLostModeSound(reqObj *ManagedDevicePlayLostModeSoundRequestParameter) *ManagedDevicePlayLostModeSoundRequestBuilder {
+ bb := &ManagedDevicePlayLostModeSoundRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/playLostModeSound"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDevicePlayLostModeSoundRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDevicePlayLostModeSoundRequestBuilder) Request() *ManagedDevicePlayLostModeSoundRequest {
+ return &ManagedDevicePlayLostModeSoundRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDevicePlayLostModeSoundRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceSetDeviceNameRequestBuilder struct{ BaseRequestBuilder }
+
+// SetDeviceName action undocumented
+func (b *ManagedDeviceRequestBuilder) SetDeviceName(reqObj *ManagedDeviceSetDeviceNameRequestParameter) *ManagedDeviceSetDeviceNameRequestBuilder {
+ bb := &ManagedDeviceSetDeviceNameRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/setDeviceName"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceSetDeviceNameRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceSetDeviceNameRequestBuilder) Request() *ManagedDeviceSetDeviceNameRequest {
+ return &ManagedDeviceSetDeviceNameRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceSetDeviceNameRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceRotateFileVaultKeyRequestBuilder struct{ BaseRequestBuilder }
+
+// RotateFileVaultKey action undocumented
+func (b *ManagedDeviceRequestBuilder) RotateFileVaultKey(reqObj *ManagedDeviceRotateFileVaultKeyRequestParameter) *ManagedDeviceRotateFileVaultKeyRequestBuilder {
+ bb := &ManagedDeviceRotateFileVaultKeyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/rotateFileVaultKey"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceRotateFileVaultKeyRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceRotateFileVaultKeyRequestBuilder) Request() *ManagedDeviceRotateFileVaultKeyRequest {
+ return &ManagedDeviceRotateFileVaultKeyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceRotateFileVaultKeyRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceRetireRequestBuilder struct{ BaseRequestBuilder }
+
+// Retire action undocumented
+func (b *ManagedDeviceRequestBuilder) Retire(reqObj *ManagedDeviceRetireRequestParameter) *ManagedDeviceRetireRequestBuilder {
+ bb := &ManagedDeviceRetireRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/retire"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceRetireRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceRetireRequestBuilder) Request() *ManagedDeviceRetireRequest {
+ return &ManagedDeviceRetireRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceRetireRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceWipeRequestBuilder struct{ BaseRequestBuilder }
+
+// Wipe action undocumented
+func (b *ManagedDeviceRequestBuilder) Wipe(reqObj *ManagedDeviceWipeRequestParameter) *ManagedDeviceWipeRequestBuilder {
+ bb := &ManagedDeviceWipeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/wipe"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceWipeRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceWipeRequestBuilder) Request() *ManagedDeviceWipeRequest {
+ return &ManagedDeviceWipeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceWipeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceResetPasscodeRequestBuilder struct{ BaseRequestBuilder }
+
+// ResetPasscode action undocumented
+func (b *ManagedDeviceRequestBuilder) ResetPasscode(reqObj *ManagedDeviceResetPasscodeRequestParameter) *ManagedDeviceResetPasscodeRequestBuilder {
+ bb := &ManagedDeviceResetPasscodeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/resetPasscode"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceResetPasscodeRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceResetPasscodeRequestBuilder) Request() *ManagedDeviceResetPasscodeRequest {
+ return &ManagedDeviceResetPasscodeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceResetPasscodeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceRemoteLockRequestBuilder struct{ BaseRequestBuilder }
+
+// RemoteLock action undocumented
+func (b *ManagedDeviceRequestBuilder) RemoteLock(reqObj *ManagedDeviceRemoteLockRequestParameter) *ManagedDeviceRemoteLockRequestBuilder {
+ bb := &ManagedDeviceRemoteLockRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/remoteLock"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceRemoteLockRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceRemoteLockRequestBuilder) Request() *ManagedDeviceRemoteLockRequest {
+ return &ManagedDeviceRemoteLockRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceRemoteLockRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceRequestRemoteAssistanceRequestBuilder struct{ BaseRequestBuilder }
+
+// RequestRemoteAssistance action undocumented
+func (b *ManagedDeviceRequestBuilder) RequestRemoteAssistance(reqObj *ManagedDeviceRequestRemoteAssistanceRequestParameter) *ManagedDeviceRequestRemoteAssistanceRequestBuilder {
+ bb := &ManagedDeviceRequestRemoteAssistanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/requestRemoteAssistance"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceRequestRemoteAssistanceRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceRequestRemoteAssistanceRequestBuilder) Request() *ManagedDeviceRequestRemoteAssistanceRequest {
+ return &ManagedDeviceRequestRemoteAssistanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceRequestRemoteAssistanceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceDisableLostModeRequestBuilder struct{ BaseRequestBuilder }
+
+// DisableLostMode action undocumented
+func (b *ManagedDeviceRequestBuilder) DisableLostMode(reqObj *ManagedDeviceDisableLostModeRequestParameter) *ManagedDeviceDisableLostModeRequestBuilder {
+ bb := &ManagedDeviceDisableLostModeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/disableLostMode"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceDisableLostModeRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceDisableLostModeRequestBuilder) Request() *ManagedDeviceDisableLostModeRequest {
+ return &ManagedDeviceDisableLostModeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceDisableLostModeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceLocateDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// LocateDevice action undocumented
+func (b *ManagedDeviceRequestBuilder) LocateDevice(reqObj *ManagedDeviceLocateDeviceRequestParameter) *ManagedDeviceLocateDeviceRequestBuilder {
+ bb := &ManagedDeviceLocateDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/locateDevice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceLocateDeviceRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceLocateDeviceRequestBuilder) Request() *ManagedDeviceLocateDeviceRequest {
+ return &ManagedDeviceLocateDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceLocateDeviceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceBypassActivationLockRequestBuilder struct{ BaseRequestBuilder }
+
+// BypassActivationLock action undocumented
+func (b *ManagedDeviceRequestBuilder) BypassActivationLock(reqObj *ManagedDeviceBypassActivationLockRequestParameter) *ManagedDeviceBypassActivationLockRequestBuilder {
+ bb := &ManagedDeviceBypassActivationLockRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/bypassActivationLock"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceBypassActivationLockRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceBypassActivationLockRequestBuilder) Request() *ManagedDeviceBypassActivationLockRequest {
+ return &ManagedDeviceBypassActivationLockRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceBypassActivationLockRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceRebootNowRequestBuilder struct{ BaseRequestBuilder }
+
+// RebootNow action undocumented
+func (b *ManagedDeviceRequestBuilder) RebootNow(reqObj *ManagedDeviceRebootNowRequestParameter) *ManagedDeviceRebootNowRequestBuilder {
+ bb := &ManagedDeviceRebootNowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/rebootNow"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceRebootNowRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceRebootNowRequestBuilder) Request() *ManagedDeviceRebootNowRequest {
+ return &ManagedDeviceRebootNowRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceRebootNowRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceShutDownRequestBuilder struct{ BaseRequestBuilder }
+
+// ShutDown action undocumented
+func (b *ManagedDeviceRequestBuilder) ShutDown(reqObj *ManagedDeviceShutDownRequestParameter) *ManagedDeviceShutDownRequestBuilder {
+ bb := &ManagedDeviceShutDownRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/shutDown"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceShutDownRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceShutDownRequestBuilder) Request() *ManagedDeviceShutDownRequest {
+ return &ManagedDeviceShutDownRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceShutDownRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceRecoverPasscodeRequestBuilder struct{ BaseRequestBuilder }
+
+// RecoverPasscode action undocumented
+func (b *ManagedDeviceRequestBuilder) RecoverPasscode(reqObj *ManagedDeviceRecoverPasscodeRequestParameter) *ManagedDeviceRecoverPasscodeRequestBuilder {
+ bb := &ManagedDeviceRecoverPasscodeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/recoverPasscode"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceRecoverPasscodeRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceRecoverPasscodeRequestBuilder) Request() *ManagedDeviceRecoverPasscodeRequest {
+ return &ManagedDeviceRecoverPasscodeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceRecoverPasscodeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceCleanWindowsDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// CleanWindowsDevice action undocumented
+func (b *ManagedDeviceRequestBuilder) CleanWindowsDevice(reqObj *ManagedDeviceCleanWindowsDeviceRequestParameter) *ManagedDeviceCleanWindowsDeviceRequestBuilder {
+ bb := &ManagedDeviceCleanWindowsDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cleanWindowsDevice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceCleanWindowsDeviceRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceCleanWindowsDeviceRequestBuilder) Request() *ManagedDeviceCleanWindowsDeviceRequest {
+ return &ManagedDeviceCleanWindowsDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceCleanWindowsDeviceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestBuilder struct{ BaseRequestBuilder }
+
+// LogoutSharedAppleDeviceActiveUser action undocumented
+func (b *ManagedDeviceRequestBuilder) LogoutSharedAppleDeviceActiveUser(reqObj *ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestParameter) *ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestBuilder {
+ bb := &ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/logoutSharedAppleDeviceActiveUser"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceLogoutSharedAppleDeviceActiveUserRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestBuilder) Request() *ManagedDeviceLogoutSharedAppleDeviceActiveUserRequest {
+ return &ManagedDeviceLogoutSharedAppleDeviceActiveUserRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceLogoutSharedAppleDeviceActiveUserRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceDeleteUserFromSharedAppleDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// DeleteUserFromSharedAppleDevice action undocumented
+func (b *ManagedDeviceRequestBuilder) DeleteUserFromSharedAppleDevice(reqObj *ManagedDeviceDeleteUserFromSharedAppleDeviceRequestParameter) *ManagedDeviceDeleteUserFromSharedAppleDeviceRequestBuilder {
+ bb := &ManagedDeviceDeleteUserFromSharedAppleDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/deleteUserFromSharedAppleDevice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceDeleteUserFromSharedAppleDeviceRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceDeleteUserFromSharedAppleDeviceRequestBuilder) Request() *ManagedDeviceDeleteUserFromSharedAppleDeviceRequest {
+ return &ManagedDeviceDeleteUserFromSharedAppleDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceDeleteUserFromSharedAppleDeviceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceSyncDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// SyncDevice action undocumented
+func (b *ManagedDeviceRequestBuilder) SyncDevice(reqObj *ManagedDeviceSyncDeviceRequestParameter) *ManagedDeviceSyncDeviceRequestBuilder {
+ bb := &ManagedDeviceSyncDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/syncDevice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceSyncDeviceRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceSyncDeviceRequestBuilder) Request() *ManagedDeviceSyncDeviceRequest {
+ return &ManagedDeviceSyncDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceSyncDeviceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceWindowsDefenderScanRequestBuilder struct{ BaseRequestBuilder }
+
+// WindowsDefenderScan action undocumented
+func (b *ManagedDeviceRequestBuilder) WindowsDefenderScan(reqObj *ManagedDeviceWindowsDefenderScanRequestParameter) *ManagedDeviceWindowsDefenderScanRequestBuilder {
+ bb := &ManagedDeviceWindowsDefenderScanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/windowsDefenderScan"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceWindowsDefenderScanRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceWindowsDefenderScanRequestBuilder) Request() *ManagedDeviceWindowsDefenderScanRequest {
+ return &ManagedDeviceWindowsDefenderScanRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceWindowsDefenderScanRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceWindowsDefenderUpdateSignaturesRequestBuilder struct{ BaseRequestBuilder }
+
+// WindowsDefenderUpdateSignatures action undocumented
+func (b *ManagedDeviceRequestBuilder) WindowsDefenderUpdateSignatures(reqObj *ManagedDeviceWindowsDefenderUpdateSignaturesRequestParameter) *ManagedDeviceWindowsDefenderUpdateSignaturesRequestBuilder {
+ bb := &ManagedDeviceWindowsDefenderUpdateSignaturesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/windowsDefenderUpdateSignatures"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceWindowsDefenderUpdateSignaturesRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceWindowsDefenderUpdateSignaturesRequestBuilder) Request() *ManagedDeviceWindowsDefenderUpdateSignaturesRequest {
+ return &ManagedDeviceWindowsDefenderUpdateSignaturesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceWindowsDefenderUpdateSignaturesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceUpdateWindowsDeviceAccountRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateWindowsDeviceAccount action undocumented
+func (b *ManagedDeviceRequestBuilder) UpdateWindowsDeviceAccount(reqObj *ManagedDeviceUpdateWindowsDeviceAccountRequestParameter) *ManagedDeviceUpdateWindowsDeviceAccountRequestBuilder {
+ bb := &ManagedDeviceUpdateWindowsDeviceAccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateWindowsDeviceAccount"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceUpdateWindowsDeviceAccountRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceUpdateWindowsDeviceAccountRequestBuilder) Request() *ManagedDeviceUpdateWindowsDeviceAccountRequest {
+ return &ManagedDeviceUpdateWindowsDeviceAccountRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceUpdateWindowsDeviceAccountRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceRevokeAppleVppLicensesRequestBuilder struct{ BaseRequestBuilder }
+
+// RevokeAppleVppLicenses action undocumented
+func (b *ManagedDeviceRequestBuilder) RevokeAppleVppLicenses(reqObj *ManagedDeviceRevokeAppleVppLicensesRequestParameter) *ManagedDeviceRevokeAppleVppLicensesRequestBuilder {
+ bb := &ManagedDeviceRevokeAppleVppLicensesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/revokeAppleVppLicenses"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceRevokeAppleVppLicensesRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceRevokeAppleVppLicensesRequestBuilder) Request() *ManagedDeviceRevokeAppleVppLicensesRequest {
+ return &ManagedDeviceRevokeAppleVppLicensesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceRevokeAppleVppLicensesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceRotateBitLockerKeysRequestBuilder struct{ BaseRequestBuilder }
+
+// RotateBitLockerKeys action undocumented
+func (b *ManagedDeviceRequestBuilder) RotateBitLockerKeys(reqObj *ManagedDeviceRotateBitLockerKeysRequestParameter) *ManagedDeviceRotateBitLockerKeysRequestBuilder {
+ bb := &ManagedDeviceRotateBitLockerKeysRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/rotateBitLockerKeys"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceRotateBitLockerKeysRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceRotateBitLockerKeysRequestBuilder) Request() *ManagedDeviceRotateBitLockerKeysRequest {
+ return &ManagedDeviceRotateBitLockerKeysRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceRotateBitLockerKeysRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceSendCustomNotificationToCompanyPortalRequestBuilder struct{ BaseRequestBuilder }
+
+// SendCustomNotificationToCompanyPortal action undocumented
+func (b *ManagedDeviceRequestBuilder) SendCustomNotificationToCompanyPortal(reqObj *ManagedDeviceSendCustomNotificationToCompanyPortalRequestParameter) *ManagedDeviceSendCustomNotificationToCompanyPortalRequestBuilder {
+ bb := &ManagedDeviceSendCustomNotificationToCompanyPortalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sendCustomNotificationToCompanyPortal"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceSendCustomNotificationToCompanyPortalRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceSendCustomNotificationToCompanyPortalRequestBuilder) Request() *ManagedDeviceSendCustomNotificationToCompanyPortalRequest {
+ return &ManagedDeviceSendCustomNotificationToCompanyPortalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceSendCustomNotificationToCompanyPortalRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceTriggerConfigurationManagerActionRequestBuilder struct{ BaseRequestBuilder }
+
+// TriggerConfigurationManagerAction action undocumented
+func (b *ManagedDeviceRequestBuilder) TriggerConfigurationManagerAction(reqObj *ManagedDeviceTriggerConfigurationManagerActionRequestParameter) *ManagedDeviceTriggerConfigurationManagerActionRequestBuilder {
+ bb := &ManagedDeviceTriggerConfigurationManagerActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/triggerConfigurationManagerAction"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceTriggerConfigurationManagerActionRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceTriggerConfigurationManagerActionRequestBuilder) Request() *ManagedDeviceTriggerConfigurationManagerActionRequest {
+ return &ManagedDeviceTriggerConfigurationManagerActionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceTriggerConfigurationManagerActionRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceCertificateStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceCertificateStateModel.go
new file mode 100644
index 00000000..c7190529
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceCertificateStateModel.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagedDeviceCertificateState undocumented
+type ManagedDeviceCertificateState struct {
+ // Entity is the base model of ManagedDeviceCertificateState
+ Entity
+ // DevicePlatform Device platform
+ DevicePlatform *DevicePlatformType `json:"devicePlatform,omitempty"`
+ // CertificateKeyUsage Key usage
+ CertificateKeyUsage *KeyUsages `json:"certificateKeyUsage,omitempty"`
+ // CertificateValidityPeriodUnits Validity period units
+ CertificateValidityPeriodUnits *CertificateValidityPeriodScale `json:"certificateValidityPeriodUnits,omitempty"`
+ // CertificateIssuanceState Issuance State
+ CertificateIssuanceState *CertificateIssuanceStates `json:"certificateIssuanceState,omitempty"`
+ // CertificateKeyStorageProvider Key Storage Provider
+ CertificateKeyStorageProvider *KeyStorageProviderOption `json:"certificateKeyStorageProvider,omitempty"`
+ // CertificateSubjectNameFormat Subject name format
+ CertificateSubjectNameFormat *SubjectNameFormat `json:"certificateSubjectNameFormat,omitempty"`
+ // CertificateSubjectAlternativeNameFormat Subject alternative name format
+ CertificateSubjectAlternativeNameFormat *SubjectAlternativeNameType `json:"certificateSubjectAlternativeNameFormat,omitempty"`
+ // CertificateRevokeStatus Revoke status
+ CertificateRevokeStatus *CertificateRevocationStatus `json:"certificateRevokeStatus,omitempty"`
+ // CertificateProfileDisplayName Certificate profile display name
+ CertificateProfileDisplayName *string `json:"certificateProfileDisplayName,omitempty"`
+ // DeviceDisplayName Device display name
+ DeviceDisplayName *string `json:"deviceDisplayName,omitempty"`
+ // UserDisplayName User display name
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // CertificateExpirationDateTime Certificate expiry date
+ CertificateExpirationDateTime *time.Time `json:"certificateExpirationDateTime,omitempty"`
+ // CertificateLastIssuanceStateChangedDateTime Last certificate issuance state change
+ CertificateLastIssuanceStateChangedDateTime *time.Time `json:"certificateLastIssuanceStateChangedDateTime,omitempty"`
+ // LastCertificateStateChangeDateTime Last certificate issuance state change
+ LastCertificateStateChangeDateTime *time.Time `json:"lastCertificateStateChangeDateTime,omitempty"`
+ // CertificateIssuer Issuer
+ CertificateIssuer *string `json:"certificateIssuer,omitempty"`
+ // CertificateThumbprint Thumbprint
+ CertificateThumbprint *string `json:"certificateThumbprint,omitempty"`
+ // CertificateSerialNumber Serial number
+ CertificateSerialNumber *string `json:"certificateSerialNumber,omitempty"`
+ // CertificateKeyLength Key length
+ CertificateKeyLength *int `json:"certificateKeyLength,omitempty"`
+ // CertificateEnhancedKeyUsage Extended key usage
+ CertificateEnhancedKeyUsage *string `json:"certificateEnhancedKeyUsage,omitempty"`
+ // CertificateValidityPeriod Validity period
+ CertificateValidityPeriod *int `json:"certificateValidityPeriod,omitempty"`
+ // CertificateSubjectNameFormatString Subject name format string for custom subject name formats
+ CertificateSubjectNameFormatString *string `json:"certificateSubjectNameFormatString,omitempty"`
+ // CertificateSubjectAlternativeNameFormatString Subject alternative name format string for custom formats
+ CertificateSubjectAlternativeNameFormatString *string `json:"certificateSubjectAlternativeNameFormatString,omitempty"`
+ // CertificateIssuanceDateTime Issuance date
+ CertificateIssuanceDateTime *time.Time `json:"certificateIssuanceDateTime,omitempty"`
+ // CertificateErrorCode Error code
+ CertificateErrorCode *int `json:"certificateErrorCode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceCertificateStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceCertificateStateRequest.go
new file mode 100644
index 00000000..331bd7a0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceCertificateStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedDeviceCertificateStateRequestBuilder is request builder for ManagedDeviceCertificateState
+type ManagedDeviceCertificateStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceCertificateStateRequest
+func (b *ManagedDeviceCertificateStateRequestBuilder) Request() *ManagedDeviceCertificateStateRequest {
+ return &ManagedDeviceCertificateStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceCertificateStateRequest is request for ManagedDeviceCertificateState
+type ManagedDeviceCertificateStateRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceCertificateState
+func (r *ManagedDeviceCertificateStateRequest) Get(ctx context.Context) (resObj *ManagedDeviceCertificateState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceCertificateState
+func (r *ManagedDeviceCertificateStateRequest) Update(ctx context.Context, reqObj *ManagedDeviceCertificateState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceCertificateState
+func (r *ManagedDeviceCertificateStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceCleanupSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceCleanupSettingsModel.go
new file mode 100644
index 00000000..f5cfe666
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceCleanupSettingsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedDeviceCleanupSettings undocumented
+type ManagedDeviceCleanupSettings struct {
+ // Object is the base model of ManagedDeviceCleanupSettings
+ Object
+ // DeviceInactivityBeforeRetirementInDays Number of days when the device has not contacted Intune.
+ DeviceInactivityBeforeRetirementInDays *string `json:"deviceInactivityBeforeRetirementInDays,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceEncryptionStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceEncryptionStateModel.go
new file mode 100644
index 00000000..9084c352
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceEncryptionStateModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedDeviceEncryptionState Encryption report per device
+type ManagedDeviceEncryptionState struct {
+ // Entity is the base model of ManagedDeviceEncryptionState
+ Entity
+ // UserPrincipalName User name
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DeviceType Platform of the device.
+ DeviceType *DeviceTypes `json:"deviceType,omitempty"`
+ // OsVersion Operating system version of the device
+ OsVersion *string `json:"osVersion,omitempty"`
+ // TpmSpecificationVersion Device TPM Version
+ TpmSpecificationVersion *string `json:"tpmSpecificationVersion,omitempty"`
+ // DeviceName Device name
+ DeviceName *string `json:"deviceName,omitempty"`
+ // EncryptionReadinessState Encryption readiness state
+ EncryptionReadinessState *EncryptionReadinessState `json:"encryptionReadinessState,omitempty"`
+ // EncryptionState Device encryption state
+ EncryptionState *EncryptionState `json:"encryptionState,omitempty"`
+ // EncryptionPolicySettingState Encryption policy setting state
+ EncryptionPolicySettingState *ComplianceStatus `json:"encryptionPolicySettingState,omitempty"`
+ // AdvancedBitLockerStates Advanced BitLocker State
+ AdvancedBitLockerStates *AdvancedBitLockerState `json:"advancedBitLockerStates,omitempty"`
+ // FileVaultStates FileVault State
+ FileVaultStates *FileVaultState `json:"fileVaultStates,omitempty"`
+ // PolicyDetails Policy Details
+ PolicyDetails []EncryptionReportPolicyDetails `json:"policyDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceEncryptionStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceEncryptionStateRequest.go
new file mode 100644
index 00000000..be96ae50
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceEncryptionStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedDeviceEncryptionStateRequestBuilder is request builder for ManagedDeviceEncryptionState
+type ManagedDeviceEncryptionStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceEncryptionStateRequest
+func (b *ManagedDeviceEncryptionStateRequestBuilder) Request() *ManagedDeviceEncryptionStateRequest {
+ return &ManagedDeviceEncryptionStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceEncryptionStateRequest is request for ManagedDeviceEncryptionState
+type ManagedDeviceEncryptionStateRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceEncryptionState
+func (r *ManagedDeviceEncryptionStateRequest) Get(ctx context.Context) (resObj *ManagedDeviceEncryptionState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceEncryptionState
+func (r *ManagedDeviceEncryptionStateRequest) Update(ctx context.Context, reqObj *ManagedDeviceEncryptionState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceEncryptionState
+func (r *ManagedDeviceEncryptionStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAction.go
new file mode 100644
index 00000000..b7eba7c3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedDeviceMobileAppConfigurationAssignRequestParameter undocumented
+type ManagedDeviceMobileAppConfigurationAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []ManagedDeviceMobileAppConfigurationAssignment `json:"assignments,omitempty"`
+}
+
+//
+type ManagedDeviceMobileAppConfigurationAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) Assign(reqObj *ManagedDeviceMobileAppConfigurationAssignRequestParameter) *ManagedDeviceMobileAppConfigurationAssignRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceMobileAppConfigurationAssignRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceMobileAppConfigurationAssignRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationAssignRequest {
+ return &ManagedDeviceMobileAppConfigurationAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceMobileAppConfigurationAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentModel.go
new file mode 100644
index 00000000..8e8c873f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedDeviceMobileAppConfigurationAssignment Contains the properties used to assign an MDM app configuration to a group.
+type ManagedDeviceMobileAppConfigurationAssignment struct {
+ // Entity is the base model of ManagedDeviceMobileAppConfigurationAssignment
+ Entity
+ // Target Assignment target that the T&C policy is assigned to.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentRequest.go
new file mode 100644
index 00000000..5dc907df
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedDeviceMobileAppConfigurationAssignmentRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationAssignment
+type ManagedDeviceMobileAppConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceMobileAppConfigurationAssignmentRequest
+func (b *ManagedDeviceMobileAppConfigurationAssignmentRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationAssignmentRequest {
+ return &ManagedDeviceMobileAppConfigurationAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceMobileAppConfigurationAssignmentRequest is request for ManagedDeviceMobileAppConfigurationAssignment
+type ManagedDeviceMobileAppConfigurationAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationAssignment
+func (r *ManagedDeviceMobileAppConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceMobileAppConfigurationAssignment
+func (r *ManagedDeviceMobileAppConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationAssignment
+func (r *ManagedDeviceMobileAppConfigurationAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusModel.go
new file mode 100644
index 00000000..9b6eb017
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagedDeviceMobileAppConfigurationDeviceStatus Contains properties, inherited properties and actions for an MDM mobile app configuration status for a device.
+type ManagedDeviceMobileAppConfigurationDeviceStatus struct {
+ // Entity is the base model of ManagedDeviceMobileAppConfigurationDeviceStatus
+ Entity
+ // DeviceDisplayName Device name of the DevicePolicyStatus.
+ DeviceDisplayName *string `json:"deviceDisplayName,omitempty"`
+ // UserName The User Name that is being reported
+ UserName *string `json:"userName,omitempty"`
+ // DeviceModel The device model that is being reported
+ DeviceModel *string `json:"deviceModel,omitempty"`
+ // Platform Platform of the device that is being reported
+ Platform *int `json:"platform,omitempty"`
+ // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires
+ ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"`
+ // Status Compliance status of the policy report.
+ Status *ComplianceStatus `json:"status,omitempty"`
+ // LastReportedDateTime Last modified date time of the policy report.
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusRequest.go
new file mode 100644
index 00000000..cb559c3b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationDeviceStatus
+type ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceMobileAppConfigurationDeviceStatusRequest
+func (b *ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationDeviceStatusRequest {
+ return &ManagedDeviceMobileAppConfigurationDeviceStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceMobileAppConfigurationDeviceStatusRequest is request for ManagedDeviceMobileAppConfigurationDeviceStatus
+type ManagedDeviceMobileAppConfigurationDeviceStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationDeviceStatus
+func (r *ManagedDeviceMobileAppConfigurationDeviceStatusRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationDeviceStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceMobileAppConfigurationDeviceStatus
+func (r *ManagedDeviceMobileAppConfigurationDeviceStatusRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationDeviceStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationDeviceStatus
+func (r *ManagedDeviceMobileAppConfigurationDeviceStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryModel.go
new file mode 100644
index 00000000..6c0c19b1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagedDeviceMobileAppConfigurationDeviceSummary Contains properties, inherited properties and actions for an MDM mobile app configuration device status summary.
+type ManagedDeviceMobileAppConfigurationDeviceSummary struct {
+ // Entity is the base model of ManagedDeviceMobileAppConfigurationDeviceSummary
+ Entity
+ // PendingCount Number of pending devices
+ PendingCount *int `json:"pendingCount,omitempty"`
+ // NotApplicableCount Number of not applicable devices
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // NotApplicablePlatformCount Number of not applicable devices due to mismatch platform and policy
+ NotApplicablePlatformCount *int `json:"notApplicablePlatformCount,omitempty"`
+ // SuccessCount Number of succeeded devices
+ SuccessCount *int `json:"successCount,omitempty"`
+ // ErrorCount Number of error devices
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // FailedCount Number of failed devices
+ FailedCount *int `json:"failedCount,omitempty"`
+ // ConflictCount Number of devices in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // LastUpdateDateTime Last update time
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+ // ConfigurationVersion Version of the policy for that overview
+ ConfigurationVersion *int `json:"configurationVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryRequest.go
new file mode 100644
index 00000000..45472974
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationDeviceSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedDeviceMobileAppConfigurationDeviceSummaryRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationDeviceSummary
+type ManagedDeviceMobileAppConfigurationDeviceSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceMobileAppConfigurationDeviceSummaryRequest
+func (b *ManagedDeviceMobileAppConfigurationDeviceSummaryRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationDeviceSummaryRequest {
+ return &ManagedDeviceMobileAppConfigurationDeviceSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceMobileAppConfigurationDeviceSummaryRequest is request for ManagedDeviceMobileAppConfigurationDeviceSummary
+type ManagedDeviceMobileAppConfigurationDeviceSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationDeviceSummary
+func (r *ManagedDeviceMobileAppConfigurationDeviceSummaryRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationDeviceSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceMobileAppConfigurationDeviceSummary
+func (r *ManagedDeviceMobileAppConfigurationDeviceSummaryRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationDeviceSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationDeviceSummary
+func (r *ManagedDeviceMobileAppConfigurationDeviceSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationModel.go
new file mode 100644
index 00000000..d3597eb4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagedDeviceMobileAppConfiguration An abstract class for Mobile app configuration for enrolled devices.
+type ManagedDeviceMobileAppConfiguration struct {
+ // Entity is the base model of ManagedDeviceMobileAppConfiguration
+ Entity
+ // TargetedMobileApps the associated app.
+ TargetedMobileApps []string `json:"targetedMobileApps,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this App configuration entity.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // CreatedDateTime DateTime the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Description Admin provided description of the Device Configuration.
+ Description *string `json:"description,omitempty"`
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DisplayName Admin provided name of the device configuration.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version Version of the device configuration.
+ Version *int `json:"version,omitempty"`
+ // Assignments undocumented
+ Assignments []ManagedDeviceMobileAppConfigurationAssignment `json:"assignments,omitempty"`
+ // DeviceStatuses undocumented
+ DeviceStatuses []ManagedDeviceMobileAppConfigurationDeviceStatus `json:"deviceStatuses,omitempty"`
+ // UserStatuses undocumented
+ UserStatuses []ManagedDeviceMobileAppConfigurationUserStatus `json:"userStatuses,omitempty"`
+ // DeviceStatusSummary undocumented
+ DeviceStatusSummary *ManagedDeviceMobileAppConfigurationDeviceSummary `json:"deviceStatusSummary,omitempty"`
+ // UserStatusSummary undocumented
+ UserStatusSummary *ManagedDeviceMobileAppConfigurationUserSummary `json:"userStatusSummary,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationPolicySetItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationPolicySetItemModel.go
new file mode 100644
index 00000000..052821cd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationPolicySetItemModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedDeviceMobileAppConfigurationPolicySetItem A class containing the properties used for managed device mobile app configuration PolicySetItem.
+type ManagedDeviceMobileAppConfigurationPolicySetItem struct {
+ // PolicySetItem is the base model of ManagedDeviceMobileAppConfigurationPolicySetItem
+ PolicySetItem
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationRequest.go
new file mode 100644
index 00000000..93c594e4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationRequest.go
@@ -0,0 +1,341 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ManagedDeviceMobileAppConfigurationRequestBuilder is request builder for ManagedDeviceMobileAppConfiguration
+type ManagedDeviceMobileAppConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceMobileAppConfigurationRequest
+func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationRequest {
+ return &ManagedDeviceMobileAppConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceMobileAppConfigurationRequest is request for ManagedDeviceMobileAppConfiguration
+type ManagedDeviceMobileAppConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceMobileAppConfiguration
+func (r *ManagedDeviceMobileAppConfigurationRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceMobileAppConfiguration
+func (r *ManagedDeviceMobileAppConfigurationRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceMobileAppConfiguration
+func (r *ManagedDeviceMobileAppConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for ManagedDeviceMobileAppConfigurationAssignment collection
+func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) Assignments() *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationAssignment collection
+type ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceMobileAppConfigurationAssignment collection
+func (b *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest {
+ return &ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceMobileAppConfigurationAssignment item
+func (b *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationAssignmentRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest is request for ManagedDeviceMobileAppConfigurationAssignment collection
+type ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationAssignment collection
+func (r *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceMobileAppConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceMobileAppConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceMobileAppConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationAssignment collection
+func (r *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceMobileAppConfigurationAssignment collection
+func (r *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationAssignment) (resObj *ManagedDeviceMobileAppConfigurationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStatusSummary is navigation property
+func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) DeviceStatusSummary() *ManagedDeviceMobileAppConfigurationDeviceSummaryRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationDeviceSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatusSummary"
+ return bb
+}
+
+// DeviceStatuses returns request builder for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) DeviceStatuses() *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatuses"
+ return bb
+}
+
+// ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+type ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (b *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest {
+ return &ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceMobileAppConfigurationDeviceStatus item
+func (b *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest is request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+type ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (r *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceMobileAppConfigurationDeviceStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceMobileAppConfigurationDeviceStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (r *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (r *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationDeviceStatus) (resObj *ManagedDeviceMobileAppConfigurationDeviceStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserStatusSummary is navigation property
+func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) UserStatusSummary() *ManagedDeviceMobileAppConfigurationUserSummaryRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationUserSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStatusSummary"
+ return bb
+}
+
+// UserStatuses returns request builder for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) UserStatuses() *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStatuses"
+ return bb
+}
+
+// ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationUserStatus collection
+type ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (b *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest {
+ return &ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceMobileAppConfigurationUserStatus item
+func (b *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest is request for ManagedDeviceMobileAppConfigurationUserStatus collection
+type ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (r *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceMobileAppConfigurationUserStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceMobileAppConfigurationUserStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (r *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (r *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationUserStatus) (resObj *ManagedDeviceMobileAppConfigurationUserStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateModel.go
new file mode 100644
index 00000000..151ad6ec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedDeviceMobileAppConfigurationState Managed Device Mobile App Configuration State for a given device.
+type ManagedDeviceMobileAppConfigurationState struct {
+ // Entity is the base model of ManagedDeviceMobileAppConfigurationState
+ Entity
+ // DisplayName The name of the policy for this policyBase
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version The version of the policy
+ Version *int `json:"version,omitempty"`
+ // PlatformType Platform type that the policy applies to
+ PlatformType *PolicyPlatformType `json:"platformType,omitempty"`
+ // State The compliance state of the policy
+ State *ComplianceStatus `json:"state,omitempty"`
+ // SettingCount Count of how many setting a policy holds
+ SettingCount *int `json:"settingCount,omitempty"`
+ // UserID User unique identifier, must be Guid
+ UserID *string `json:"userId,omitempty"`
+ // UserPrincipalName User Principal Name
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateRequest.go
new file mode 100644
index 00000000..3f082ec3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedDeviceMobileAppConfigurationStateRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationState
+type ManagedDeviceMobileAppConfigurationStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceMobileAppConfigurationStateRequest
+func (b *ManagedDeviceMobileAppConfigurationStateRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationStateRequest {
+ return &ManagedDeviceMobileAppConfigurationStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceMobileAppConfigurationStateRequest is request for ManagedDeviceMobileAppConfigurationState
+type ManagedDeviceMobileAppConfigurationStateRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationState
+func (r *ManagedDeviceMobileAppConfigurationStateRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceMobileAppConfigurationState
+func (r *ManagedDeviceMobileAppConfigurationStateRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationState
+func (r *ManagedDeviceMobileAppConfigurationStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusModel.go
new file mode 100644
index 00000000..5f57355d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagedDeviceMobileAppConfigurationUserStatus Contains properties, inherited properties and actions for an MDM mobile app configuration status for a user.
+type ManagedDeviceMobileAppConfigurationUserStatus struct {
+ // Entity is the base model of ManagedDeviceMobileAppConfigurationUserStatus
+ Entity
+ // UserDisplayName User name of the DevicePolicyStatus.
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // DevicesCount Devices count for that user.
+ DevicesCount *int `json:"devicesCount,omitempty"`
+ // Status Compliance status of the policy report.
+ Status *ComplianceStatus `json:"status,omitempty"`
+ // LastReportedDateTime Last modified date time of the policy report.
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusRequest.go
new file mode 100644
index 00000000..17081be5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationUserStatus
+type ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceMobileAppConfigurationUserStatusRequest
+func (b *ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationUserStatusRequest {
+ return &ManagedDeviceMobileAppConfigurationUserStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceMobileAppConfigurationUserStatusRequest is request for ManagedDeviceMobileAppConfigurationUserStatus
+type ManagedDeviceMobileAppConfigurationUserStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationUserStatus
+func (r *ManagedDeviceMobileAppConfigurationUserStatusRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationUserStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceMobileAppConfigurationUserStatus
+func (r *ManagedDeviceMobileAppConfigurationUserStatusRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationUserStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationUserStatus
+func (r *ManagedDeviceMobileAppConfigurationUserStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryModel.go
new file mode 100644
index 00000000..b9b82deb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagedDeviceMobileAppConfigurationUserSummary Contains properties, inherited properties and actions for an MDM mobile app configuration user status summary.
+type ManagedDeviceMobileAppConfigurationUserSummary struct {
+ // Entity is the base model of ManagedDeviceMobileAppConfigurationUserSummary
+ Entity
+ // PendingCount Number of pending Users
+ PendingCount *int `json:"pendingCount,omitempty"`
+ // NotApplicableCount Number of not applicable users
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // SuccessCount Number of succeeded Users
+ SuccessCount *int `json:"successCount,omitempty"`
+ // ErrorCount Number of error Users
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // FailedCount Number of failed Users
+ FailedCount *int `json:"failedCount,omitempty"`
+ // ConflictCount Number of users in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // LastUpdateDateTime Last update time
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+ // ConfigurationVersion Version of the policy for that overview
+ ConfigurationVersion *int `json:"configurationVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryRequest.go
new file mode 100644
index 00000000..90d256ff
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceMobileAppConfigurationUserSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedDeviceMobileAppConfigurationUserSummaryRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationUserSummary
+type ManagedDeviceMobileAppConfigurationUserSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceMobileAppConfigurationUserSummaryRequest
+func (b *ManagedDeviceMobileAppConfigurationUserSummaryRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationUserSummaryRequest {
+ return &ManagedDeviceMobileAppConfigurationUserSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceMobileAppConfigurationUserSummaryRequest is request for ManagedDeviceMobileAppConfigurationUserSummary
+type ManagedDeviceMobileAppConfigurationUserSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationUserSummary
+func (r *ManagedDeviceMobileAppConfigurationUserSummaryRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationUserSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceMobileAppConfigurationUserSummary
+func (r *ManagedDeviceMobileAppConfigurationUserSummaryRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationUserSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationUserSummary
+func (r *ManagedDeviceMobileAppConfigurationUserSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceModel.go
new file mode 100644
index 00000000..d75b6161
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceModel.go
@@ -0,0 +1,165 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagedDevice Devices that are managed or pre-enrolled through Intune
+type ManagedDevice struct {
+ // Entity is the base model of ManagedDevice
+ Entity
+ // UserID Unique Identifier for the user associated with the device. This property is read-only.
+ UserID *string `json:"userId,omitempty"`
+ // DeviceName Name of the device. This property is read-only.
+ DeviceName *string `json:"deviceName,omitempty"`
+ // HardwareInformation The hardward details for the device. Includes information such as storage space, manufacturer, serial number, etc. This property is read-only.
+ HardwareInformation *HardwareInformation `json:"hardwareInformation,omitempty"`
+ // OwnerType Ownership of the device. Can be 'company' or 'personal'
+ OwnerType *OwnerType `json:"ownerType,omitempty"`
+ // ManagedDeviceOwnerType Ownership of the device. Can be 'company' or 'personal'
+ ManagedDeviceOwnerType *ManagedDeviceOwnerType `json:"managedDeviceOwnerType,omitempty"`
+ // DeviceActionResults List of ComplexType deviceActionResult objects. This property is read-only.
+ DeviceActionResults []DeviceActionResult `json:"deviceActionResults,omitempty"`
+ // ManagementState Management state of the device. This property is read-only.
+ ManagementState *ManagementState `json:"managementState,omitempty"`
+ // EnrolledDateTime Enrollment time of the device. This property is read-only.
+ EnrolledDateTime *time.Time `json:"enrolledDateTime,omitempty"`
+ // LastSyncDateTime The date and time that the device last completed a successful sync with Intune. This property is read-only.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // ChassisType Chassis type of the device. This property is read-only.
+ ChassisType *ChassisType `json:"chassisType,omitempty"`
+ // OperatingSystem Operating system of the device. Windows, iOS, etc. This property is read-only.
+ OperatingSystem *string `json:"operatingSystem,omitempty"`
+ // DeviceType Platform of the device. This property is read-only.
+ DeviceType *DeviceType `json:"deviceType,omitempty"`
+ // ComplianceState Compliance state of the device. This property is read-only.
+ ComplianceState *ComplianceState `json:"complianceState,omitempty"`
+ // JailBroken whether the device is jail broken or rooted. This property is read-only.
+ JailBroken *string `json:"jailBroken,omitempty"`
+ // ManagementAgent Management channel of the device. Intune, EAS, etc. This property is read-only.
+ ManagementAgent *ManagementAgentType `json:"managementAgent,omitempty"`
+ // OsVersion Operating system version of the device. This property is read-only.
+ OsVersion *string `json:"osVersion,omitempty"`
+ // EasActivated Whether the device is Exchange ActiveSync activated. This property is read-only.
+ EasActivated *bool `json:"easActivated,omitempty"`
+ // EasDeviceID Exchange ActiveSync Id of the device. This property is read-only.
+ EasDeviceID *string `json:"easDeviceId,omitempty"`
+ // EasActivationDateTime Exchange ActivationSync activation time of the device. This property is read-only.
+ EasActivationDateTime *time.Time `json:"easActivationDateTime,omitempty"`
+ // AadRegistered Whether the device is Azure Active Directory registered. This property is read-only.
+ AadRegistered *bool `json:"aadRegistered,omitempty"`
+ // AzureADRegistered Whether the device is Azure Active Directory registered. This property is read-only.
+ AzureADRegistered *bool `json:"azureADRegistered,omitempty"`
+ // DeviceEnrollmentType Enrollment type of the device. This property is read-only.
+ DeviceEnrollmentType *DeviceEnrollmentType `json:"deviceEnrollmentType,omitempty"`
+ // LostModeState Indicates if Lost mode is enabled or disabled. This property is read-only.
+ LostModeState *LostModeState `json:"lostModeState,omitempty"`
+ // ActivationLockBypassCode Code that allows the Activation Lock on a device to be bypassed. This property is read-only.
+ ActivationLockBypassCode *string `json:"activationLockBypassCode,omitempty"`
+ // EmailAddress Email(s) for the user associated with the device. This property is read-only.
+ EmailAddress *string `json:"emailAddress,omitempty"`
+ // AzureActiveDirectoryDeviceID The unique identifier for the Azure Active Directory device. Read only. This property is read-only.
+ AzureActiveDirectoryDeviceID *string `json:"azureActiveDirectoryDeviceId,omitempty"`
+ // AzureADDeviceID The unique identifier for the Azure Active Directory device. Read only. This property is read-only.
+ AzureADDeviceID *string `json:"azureADDeviceId,omitempty"`
+ // DeviceRegistrationState Device registration state. This property is read-only.
+ DeviceRegistrationState *DeviceRegistrationState `json:"deviceRegistrationState,omitempty"`
+ // DeviceCategoryDisplayName Device category display name. This property is read-only.
+ DeviceCategoryDisplayName *string `json:"deviceCategoryDisplayName,omitempty"`
+ // IsSupervised Device supervised status. This property is read-only.
+ IsSupervised *bool `json:"isSupervised,omitempty"`
+ // ExchangeLastSuccessfulSyncDateTime Last time the device contacted Exchange. This property is read-only.
+ ExchangeLastSuccessfulSyncDateTime *time.Time `json:"exchangeLastSuccessfulSyncDateTime,omitempty"`
+ // ExchangeAccessState The Access State of the device in Exchange. This property is read-only.
+ ExchangeAccessState *DeviceManagementExchangeAccessState `json:"exchangeAccessState,omitempty"`
+ // ExchangeAccessStateReason The reason for the device's access state in Exchange. This property is read-only.
+ ExchangeAccessStateReason *DeviceManagementExchangeAccessStateReason `json:"exchangeAccessStateReason,omitempty"`
+ // RemoteAssistanceSessionURL Url that allows a Remote Assistance session to be established with the device. This property is read-only.
+ RemoteAssistanceSessionURL *string `json:"remoteAssistanceSessionUrl,omitempty"`
+ // RemoteAssistanceSessionErrorDetails An error string that identifies issues when creating Remote Assistance session objects. This property is read-only.
+ RemoteAssistanceSessionErrorDetails *string `json:"remoteAssistanceSessionErrorDetails,omitempty"`
+ // IsEncrypted Device encryption status. This property is read-only.
+ IsEncrypted *bool `json:"isEncrypted,omitempty"`
+ // UserPrincipalName Device user principal name. This property is read-only.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // Model Model of the device. This property is read-only.
+ Model *string `json:"model,omitempty"`
+ // Manufacturer Manufacturer of the device. This property is read-only.
+ Manufacturer *string `json:"manufacturer,omitempty"`
+ // Imei IMEI. This property is read-only.
+ Imei *string `json:"imei,omitempty"`
+ // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires. This property is read-only.
+ ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"`
+ // SerialNumber SerialNumber. This property is read-only.
+ SerialNumber *string `json:"serialNumber,omitempty"`
+ // PhoneNumber Phone number of the device. This property is read-only.
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // AndroidSecurityPatchLevel Android security patch level. This property is read-only.
+ AndroidSecurityPatchLevel *string `json:"androidSecurityPatchLevel,omitempty"`
+ // UserDisplayName User display name. This property is read-only.
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // ConfigurationManagerClientEnabledFeatures ConfigrMgr client enabled features. This property is read-only.
+ ConfigurationManagerClientEnabledFeatures *ConfigurationManagerClientEnabledFeatures `json:"configurationManagerClientEnabledFeatures,omitempty"`
+ // WiFiMacAddress Wi-Fi MAC. This property is read-only.
+ WiFiMacAddress *string `json:"wiFiMacAddress,omitempty"`
+ // DeviceHealthAttestationState The device health attestation state. This property is read-only.
+ DeviceHealthAttestationState *DeviceHealthAttestationState `json:"deviceHealthAttestationState,omitempty"`
+ // SubscriberCarrier Subscriber Carrier. This property is read-only.
+ SubscriberCarrier *string `json:"subscriberCarrier,omitempty"`
+ // Meid MEID. This property is read-only.
+ Meid *string `json:"meid,omitempty"`
+ // TotalStorageSpaceInBytes Total Storage in Bytes. This property is read-only.
+ TotalStorageSpaceInBytes *int `json:"totalStorageSpaceInBytes,omitempty"`
+ // FreeStorageSpaceInBytes Free Storage in Bytes. This property is read-only.
+ FreeStorageSpaceInBytes *int `json:"freeStorageSpaceInBytes,omitempty"`
+ // ManagedDeviceName Automatically generated name to identify a device. Can be overwritten to a user friendly name.
+ ManagedDeviceName *string `json:"managedDeviceName,omitempty"`
+ // PartnerReportedThreatState Indicates the threat state of a device when a Mobile Threat Defense partner is in use by the account and device. Read Only. This property is read-only.
+ PartnerReportedThreatState *ManagedDevicePartnerReportedHealthState `json:"partnerReportedThreatState,omitempty"`
+ // RetireAfterDateTime Indicates the time after when a device will be auto retired because of scheduled action. This property is read-only.
+ RetireAfterDateTime *time.Time `json:"retireAfterDateTime,omitempty"`
+ // UsersLoggedOn Indicates the last logged on users of a device. This property is read-only.
+ UsersLoggedOn []LoggedOnUser `json:"usersLoggedOn,omitempty"`
+ // PreferMdmOverGroupPolicyAppliedDateTime Reports the DateTime the preferMdmOverGroupPolicy setting was set. When set, the Intune MDM settings will override Group Policy settings if there is a conflict. Read Only. This property is read-only.
+ PreferMdmOverGroupPolicyAppliedDateTime *time.Time `json:"preferMdmOverGroupPolicyAppliedDateTime,omitempty"`
+ // AutopilotEnrolled Reports if the managed device is enrolled via auto-pilot. This property is read-only.
+ AutopilotEnrolled *bool `json:"autopilotEnrolled,omitempty"`
+ // RequireUserEnrollmentApproval Reports if the managed iOS device is user approval enrollment. This property is read-only.
+ RequireUserEnrollmentApproval *bool `json:"requireUserEnrollmentApproval,omitempty"`
+ // ManagementCertificateExpirationDate Reports device management certificate expiration date. This property is read-only.
+ ManagementCertificateExpirationDate *time.Time `json:"managementCertificateExpirationDate,omitempty"`
+ // Iccid Integrated Circuit Card Identifier, it is A SIM card's unique identification number. This property is read-only.
+ Iccid *string `json:"iccid,omitempty"`
+ // Udid Unique Device Identifier for iOS and macOS devices. This property is read-only.
+ Udid *string `json:"udid,omitempty"`
+ // RoleScopeTagIDs List of Scope Tag IDs for this Device instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // WindowsActiveMalwareCount Count of active malware for this windows device. This property is read-only.
+ WindowsActiveMalwareCount *int `json:"windowsActiveMalwareCount,omitempty"`
+ // WindowsRemediatedMalwareCount Count of remediated malware for this windows device. This property is read-only.
+ WindowsRemediatedMalwareCount *int `json:"windowsRemediatedMalwareCount,omitempty"`
+ // Notes Notes on the device created by IT Admin
+ Notes *string `json:"notes,omitempty"`
+ // ConfigurationManagerClientHealthState Configuration manager client health state, valid only for devices managed by MDM/ConfigMgr Agent
+ ConfigurationManagerClientHealthState *ConfigurationManagerClientHealthState `json:"configurationManagerClientHealthState,omitempty"`
+ // ConfigurationManagerClientInformation Configuration manager client information, valid only for devices managed, duel-managed or tri-managed by ConfigMgr Agent
+ ConfigurationManagerClientInformation *ConfigurationManagerClientInformation `json:"configurationManagerClientInformation,omitempty"`
+ // EthernetMacAddress Ethernet MAC. This property is read-only.
+ EthernetMacAddress *string `json:"ethernetMacAddress,omitempty"`
+ // SecurityBaselineStates undocumented
+ SecurityBaselineStates []SecurityBaselineState `json:"securityBaselineStates,omitempty"`
+ // DeviceConfigurationStates undocumented
+ DeviceConfigurationStates []DeviceConfigurationState `json:"deviceConfigurationStates,omitempty"`
+ // DeviceCompliancePolicyStates undocumented
+ DeviceCompliancePolicyStates []DeviceCompliancePolicyState `json:"deviceCompliancePolicyStates,omitempty"`
+ // ManagedDeviceMobileAppConfigurationStates undocumented
+ ManagedDeviceMobileAppConfigurationStates []ManagedDeviceMobileAppConfigurationState `json:"managedDeviceMobileAppConfigurationStates,omitempty"`
+ // DetectedApps undocumented
+ DetectedApps []DetectedApp `json:"detectedApps,omitempty"`
+ // DeviceCategory undocumented
+ DeviceCategory *DeviceCategory `json:"deviceCategory,omitempty"`
+ // WindowsProtectionState undocumented
+ WindowsProtectionState *WindowsProtectionState `json:"windowsProtectionState,omitempty"`
+ // Users undocumented
+ Users []User `json:"users,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceModelsAndManufacturersModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceModelsAndManufacturersModel.go
new file mode 100644
index 00000000..66dea095
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceModelsAndManufacturersModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedDeviceModelsAndManufacturers undocumented
+type ManagedDeviceModelsAndManufacturers struct {
+ // Object is the base model of ManagedDeviceModelsAndManufacturers
+ Object
+ // DeviceModels List of Models for managed devices in the account
+ DeviceModels []string `json:"deviceModels,omitempty"`
+ // DeviceManufacturers List of Manufactures for managed devices in the account
+ DeviceManufacturers []string `json:"deviceManufacturers,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceOverviewModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceOverviewModel.go
new file mode 100644
index 00000000..1845bf0d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceOverviewModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagedDeviceOverview Summary data for managed devices
+type ManagedDeviceOverview struct {
+ // Entity is the base model of ManagedDeviceOverview
+ Entity
+ // EnrolledDeviceCount Total enrolled device count. Does not include PC devices managed via Intune PC Agent
+ EnrolledDeviceCount *int `json:"enrolledDeviceCount,omitempty"`
+ // MdmEnrolledCount The number of devices enrolled in MDM
+ MdmEnrolledCount *int `json:"mdmEnrolledCount,omitempty"`
+ // DualEnrolledDeviceCount The number of devices enrolled in both MDM and EAS
+ DualEnrolledDeviceCount *int `json:"dualEnrolledDeviceCount,omitempty"`
+ // DeviceOperatingSystemSummary Device operating system summary.
+ DeviceOperatingSystemSummary *DeviceOperatingSystemSummary `json:"deviceOperatingSystemSummary,omitempty"`
+ // DeviceExchangeAccessStateSummary Distribution of Exchange Access State in Intune
+ DeviceExchangeAccessStateSummary *DeviceExchangeAccessStateSummary `json:"deviceExchangeAccessStateSummary,omitempty"`
+ // ManagedDeviceModelsAndManufacturers Models and Manufactures meatadata for managed devices in the account
+ ManagedDeviceModelsAndManufacturers *ManagedDeviceModelsAndManufacturers `json:"managedDeviceModelsAndManufacturers,omitempty"`
+ // LastModifiedDateTime Last modified date time of device overview
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceOverviewRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceOverviewRequest.go
new file mode 100644
index 00000000..6fe32df3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceOverviewRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedDeviceOverviewRequestBuilder is request builder for ManagedDeviceOverview
+type ManagedDeviceOverviewRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceOverviewRequest
+func (b *ManagedDeviceOverviewRequestBuilder) Request() *ManagedDeviceOverviewRequest {
+ return &ManagedDeviceOverviewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceOverviewRequest is request for ManagedDeviceOverview
+type ManagedDeviceOverviewRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceOverview
+func (r *ManagedDeviceOverviewRequest) Get(ctx context.Context) (resObj *ManagedDeviceOverview, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceOverview
+func (r *ManagedDeviceOverviewRequest) Update(ctx context.Context, reqObj *ManagedDeviceOverview) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceOverview
+func (r *ManagedDeviceOverviewRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceOwnerTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceOwnerTypeEnum.go
new file mode 100644
index 00000000..18014278
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceOwnerTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedDeviceOwnerType undocumented
+type ManagedDeviceOwnerType int
+
+const (
+ // ManagedDeviceOwnerTypeVUnknown undocumented
+ ManagedDeviceOwnerTypeVUnknown ManagedDeviceOwnerType = 0
+ // ManagedDeviceOwnerTypeVCompany undocumented
+ ManagedDeviceOwnerTypeVCompany ManagedDeviceOwnerType = 1
+ // ManagedDeviceOwnerTypeVPersonal undocumented
+ ManagedDeviceOwnerTypeVPersonal ManagedDeviceOwnerType = 2
+)
+
+// ManagedDeviceOwnerTypePUnknown returns a pointer to ManagedDeviceOwnerTypeVUnknown
+func ManagedDeviceOwnerTypePUnknown() *ManagedDeviceOwnerType {
+ v := ManagedDeviceOwnerTypeVUnknown
+ return &v
+}
+
+// ManagedDeviceOwnerTypePCompany returns a pointer to ManagedDeviceOwnerTypeVCompany
+func ManagedDeviceOwnerTypePCompany() *ManagedDeviceOwnerType {
+ v := ManagedDeviceOwnerTypeVCompany
+ return &v
+}
+
+// ManagedDeviceOwnerTypePPersonal returns a pointer to ManagedDeviceOwnerTypeVPersonal
+func ManagedDeviceOwnerTypePPersonal() *ManagedDeviceOwnerType {
+ v := ManagedDeviceOwnerTypeVPersonal
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDevicePartnerReportedHealthStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDevicePartnerReportedHealthStateEnum.go
new file mode 100644
index 00000000..eeb258d4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDevicePartnerReportedHealthStateEnum.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedDevicePartnerReportedHealthState undocumented
+type ManagedDevicePartnerReportedHealthState int
+
+const (
+ // ManagedDevicePartnerReportedHealthStateVUnknown undocumented
+ ManagedDevicePartnerReportedHealthStateVUnknown ManagedDevicePartnerReportedHealthState = 0
+ // ManagedDevicePartnerReportedHealthStateVActivated undocumented
+ ManagedDevicePartnerReportedHealthStateVActivated ManagedDevicePartnerReportedHealthState = 1
+ // ManagedDevicePartnerReportedHealthStateVDeactivated undocumented
+ ManagedDevicePartnerReportedHealthStateVDeactivated ManagedDevicePartnerReportedHealthState = 2
+ // ManagedDevicePartnerReportedHealthStateVSecured undocumented
+ ManagedDevicePartnerReportedHealthStateVSecured ManagedDevicePartnerReportedHealthState = 3
+ // ManagedDevicePartnerReportedHealthStateVLowSeverity undocumented
+ ManagedDevicePartnerReportedHealthStateVLowSeverity ManagedDevicePartnerReportedHealthState = 4
+ // ManagedDevicePartnerReportedHealthStateVMediumSeverity undocumented
+ ManagedDevicePartnerReportedHealthStateVMediumSeverity ManagedDevicePartnerReportedHealthState = 5
+ // ManagedDevicePartnerReportedHealthStateVHighSeverity undocumented
+ ManagedDevicePartnerReportedHealthStateVHighSeverity ManagedDevicePartnerReportedHealthState = 6
+ // ManagedDevicePartnerReportedHealthStateVUnresponsive undocumented
+ ManagedDevicePartnerReportedHealthStateVUnresponsive ManagedDevicePartnerReportedHealthState = 7
+ // ManagedDevicePartnerReportedHealthStateVCompromised undocumented
+ ManagedDevicePartnerReportedHealthStateVCompromised ManagedDevicePartnerReportedHealthState = 8
+ // ManagedDevicePartnerReportedHealthStateVMisconfigured undocumented
+ ManagedDevicePartnerReportedHealthStateVMisconfigured ManagedDevicePartnerReportedHealthState = 9
+)
+
+// ManagedDevicePartnerReportedHealthStatePUnknown returns a pointer to ManagedDevicePartnerReportedHealthStateVUnknown
+func ManagedDevicePartnerReportedHealthStatePUnknown() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVUnknown
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePActivated returns a pointer to ManagedDevicePartnerReportedHealthStateVActivated
+func ManagedDevicePartnerReportedHealthStatePActivated() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVActivated
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePDeactivated returns a pointer to ManagedDevicePartnerReportedHealthStateVDeactivated
+func ManagedDevicePartnerReportedHealthStatePDeactivated() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVDeactivated
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePSecured returns a pointer to ManagedDevicePartnerReportedHealthStateVSecured
+func ManagedDevicePartnerReportedHealthStatePSecured() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVSecured
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePLowSeverity returns a pointer to ManagedDevicePartnerReportedHealthStateVLowSeverity
+func ManagedDevicePartnerReportedHealthStatePLowSeverity() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVLowSeverity
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePMediumSeverity returns a pointer to ManagedDevicePartnerReportedHealthStateVMediumSeverity
+func ManagedDevicePartnerReportedHealthStatePMediumSeverity() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVMediumSeverity
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePHighSeverity returns a pointer to ManagedDevicePartnerReportedHealthStateVHighSeverity
+func ManagedDevicePartnerReportedHealthStatePHighSeverity() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVHighSeverity
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePUnresponsive returns a pointer to ManagedDevicePartnerReportedHealthStateVUnresponsive
+func ManagedDevicePartnerReportedHealthStatePUnresponsive() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVUnresponsive
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePCompromised returns a pointer to ManagedDevicePartnerReportedHealthStateVCompromised
+func ManagedDevicePartnerReportedHealthStatePCompromised() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVCompromised
+ return &v
+}
+
+// ManagedDevicePartnerReportedHealthStatePMisconfigured returns a pointer to ManagedDevicePartnerReportedHealthStateVMisconfigured
+func ManagedDevicePartnerReportedHealthStatePMisconfigured() *ManagedDevicePartnerReportedHealthState {
+ v := ManagedDevicePartnerReportedHealthStateVMisconfigured
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceRemoteActionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceRemoteActionEnum.go
new file mode 100644
index 00000000..9b0d5955
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceRemoteActionEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedDeviceRemoteAction undocumented
+type ManagedDeviceRemoteAction int
+
+const (
+ // ManagedDeviceRemoteActionVRetire undocumented
+ ManagedDeviceRemoteActionVRetire ManagedDeviceRemoteAction = 0
+ // ManagedDeviceRemoteActionVDelete undocumented
+ ManagedDeviceRemoteActionVDelete ManagedDeviceRemoteAction = 1
+ // ManagedDeviceRemoteActionVFullScan undocumented
+ ManagedDeviceRemoteActionVFullScan ManagedDeviceRemoteAction = 2
+ // ManagedDeviceRemoteActionVQuickScan undocumented
+ ManagedDeviceRemoteActionVQuickScan ManagedDeviceRemoteAction = 3
+ // ManagedDeviceRemoteActionVSignatureUpdate undocumented
+ ManagedDeviceRemoteActionVSignatureUpdate ManagedDeviceRemoteAction = 4
+ // ManagedDeviceRemoteActionVWipe undocumented
+ ManagedDeviceRemoteActionVWipe ManagedDeviceRemoteAction = 5
+ // ManagedDeviceRemoteActionVCustomTextNotification undocumented
+ ManagedDeviceRemoteActionVCustomTextNotification ManagedDeviceRemoteAction = 6
+ // ManagedDeviceRemoteActionVRebootNow undocumented
+ ManagedDeviceRemoteActionVRebootNow ManagedDeviceRemoteAction = 7
+ // ManagedDeviceRemoteActionVSetDeviceName undocumented
+ ManagedDeviceRemoteActionVSetDeviceName ManagedDeviceRemoteAction = 8
+)
+
+// ManagedDeviceRemoteActionPRetire returns a pointer to ManagedDeviceRemoteActionVRetire
+func ManagedDeviceRemoteActionPRetire() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVRetire
+ return &v
+}
+
+// ManagedDeviceRemoteActionPDelete returns a pointer to ManagedDeviceRemoteActionVDelete
+func ManagedDeviceRemoteActionPDelete() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVDelete
+ return &v
+}
+
+// ManagedDeviceRemoteActionPFullScan returns a pointer to ManagedDeviceRemoteActionVFullScan
+func ManagedDeviceRemoteActionPFullScan() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVFullScan
+ return &v
+}
+
+// ManagedDeviceRemoteActionPQuickScan returns a pointer to ManagedDeviceRemoteActionVQuickScan
+func ManagedDeviceRemoteActionPQuickScan() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVQuickScan
+ return &v
+}
+
+// ManagedDeviceRemoteActionPSignatureUpdate returns a pointer to ManagedDeviceRemoteActionVSignatureUpdate
+func ManagedDeviceRemoteActionPSignatureUpdate() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVSignatureUpdate
+ return &v
+}
+
+// ManagedDeviceRemoteActionPWipe returns a pointer to ManagedDeviceRemoteActionVWipe
+func ManagedDeviceRemoteActionPWipe() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVWipe
+ return &v
+}
+
+// ManagedDeviceRemoteActionPCustomTextNotification returns a pointer to ManagedDeviceRemoteActionVCustomTextNotification
+func ManagedDeviceRemoteActionPCustomTextNotification() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVCustomTextNotification
+ return &v
+}
+
+// ManagedDeviceRemoteActionPRebootNow returns a pointer to ManagedDeviceRemoteActionVRebootNow
+func ManagedDeviceRemoteActionPRebootNow() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVRebootNow
+ return &v
+}
+
+// ManagedDeviceRemoteActionPSetDeviceName returns a pointer to ManagedDeviceRemoteActionVSetDeviceName
+func ManagedDeviceRemoteActionPSetDeviceName() *ManagedDeviceRemoteAction {
+ v := ManagedDeviceRemoteActionVSetDeviceName
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceReportedAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceReportedAppModel.go
new file mode 100644
index 00000000..0847ea79
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceReportedAppModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedDeviceReportedApp undocumented
+type ManagedDeviceReportedApp struct {
+ // Object is the base model of ManagedDeviceReportedApp
+ Object
+ // AppID The application or bundle identifier of the application
+ AppID *string `json:"appId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceRequest.go
new file mode 100644
index 00000000..6dcc3a86
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedDeviceRequest.go
@@ -0,0 +1,623 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ManagedDeviceRequestBuilder is request builder for ManagedDevice
+type ManagedDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceRequest
+func (b *ManagedDeviceRequestBuilder) Request() *ManagedDeviceRequest {
+ return &ManagedDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceRequest is request for ManagedDevice
+type ManagedDeviceRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDevice
+func (r *ManagedDeviceRequest) Get(ctx context.Context) (resObj *ManagedDevice, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDevice
+func (r *ManagedDeviceRequest) Update(ctx context.Context, reqObj *ManagedDevice) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDevice
+func (r *ManagedDeviceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DetectedApps returns request builder for DetectedApp collection
+func (b *ManagedDeviceRequestBuilder) DetectedApps() *ManagedDeviceDetectedAppsCollectionRequestBuilder {
+ bb := &ManagedDeviceDetectedAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/detectedApps"
+ return bb
+}
+
+// ManagedDeviceDetectedAppsCollectionRequestBuilder is request builder for DetectedApp collection
+type ManagedDeviceDetectedAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DetectedApp collection
+func (b *ManagedDeviceDetectedAppsCollectionRequestBuilder) Request() *ManagedDeviceDetectedAppsCollectionRequest {
+ return &ManagedDeviceDetectedAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DetectedApp item
+func (b *ManagedDeviceDetectedAppsCollectionRequestBuilder) ID(id string) *DetectedAppRequestBuilder {
+ bb := &DetectedAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceDetectedAppsCollectionRequest is request for DetectedApp collection
+type ManagedDeviceDetectedAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DetectedApp collection
+func (r *ManagedDeviceDetectedAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DetectedApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DetectedApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DetectedApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DetectedApp collection
+func (r *ManagedDeviceDetectedAppsCollectionRequest) Get(ctx context.Context) ([]DetectedApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DetectedApp collection
+func (r *ManagedDeviceDetectedAppsCollectionRequest) Add(ctx context.Context, reqObj *DetectedApp) (resObj *DetectedApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceCategory is navigation property
+func (b *ManagedDeviceRequestBuilder) DeviceCategory() *DeviceCategoryRequestBuilder {
+ bb := &DeviceCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceCategory"
+ return bb
+}
+
+// DeviceCompliancePolicyStates returns request builder for DeviceCompliancePolicyState collection
+func (b *ManagedDeviceRequestBuilder) DeviceCompliancePolicyStates() *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder {
+ bb := &ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceCompliancePolicyStates"
+ return bb
+}
+
+// ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder is request builder for DeviceCompliancePolicyState collection
+type ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceCompliancePolicyState collection
+func (b *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder) Request() *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest {
+ return &ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceCompliancePolicyState item
+func (b *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder) ID(id string) *DeviceCompliancePolicyStateRequestBuilder {
+ bb := &DeviceCompliancePolicyStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest is request for DeviceCompliancePolicyState collection
+type ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceCompliancePolicyState collection
+func (r *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceCompliancePolicyState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceCompliancePolicyState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceCompliancePolicyState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceCompliancePolicyState collection
+func (r *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest) Get(ctx context.Context) ([]DeviceCompliancePolicyState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceCompliancePolicyState collection
+func (r *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceCompliancePolicyState) (resObj *DeviceCompliancePolicyState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceConfigurationStates returns request builder for DeviceConfigurationState collection
+func (b *ManagedDeviceRequestBuilder) DeviceConfigurationStates() *ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder {
+ bb := &ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceConfigurationStates"
+ return bb
+}
+
+// ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder is request builder for DeviceConfigurationState collection
+type ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceConfigurationState collection
+func (b *ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder) Request() *ManagedDeviceDeviceConfigurationStatesCollectionRequest {
+ return &ManagedDeviceDeviceConfigurationStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceConfigurationState item
+func (b *ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder) ID(id string) *DeviceConfigurationStateRequestBuilder {
+ bb := &DeviceConfigurationStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceDeviceConfigurationStatesCollectionRequest is request for DeviceConfigurationState collection
+type ManagedDeviceDeviceConfigurationStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceConfigurationState collection
+func (r *ManagedDeviceDeviceConfigurationStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceConfigurationState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfigurationState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfigurationState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceConfigurationState collection
+func (r *ManagedDeviceDeviceConfigurationStatesCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceConfigurationState collection
+func (r *ManagedDeviceDeviceConfigurationStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationState) (resObj *DeviceConfigurationState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceMobileAppConfigurationStates returns request builder for ManagedDeviceMobileAppConfigurationState collection
+func (b *ManagedDeviceRequestBuilder) ManagedDeviceMobileAppConfigurationStates() *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder {
+ bb := &ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceMobileAppConfigurationStates"
+ return bb
+}
+
+// ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationState collection
+type ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceMobileAppConfigurationState collection
+func (b *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder) Request() *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest {
+ return &ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceMobileAppConfigurationState item
+func (b *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationStateRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest is request for ManagedDeviceMobileAppConfigurationState collection
+type ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationState collection
+func (r *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceMobileAppConfigurationState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceMobileAppConfigurationState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceMobileAppConfigurationState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationState collection
+func (r *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceMobileAppConfigurationState collection
+func (r *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationState) (resObj *ManagedDeviceMobileAppConfigurationState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SecurityBaselineStates returns request builder for SecurityBaselineState collection
+func (b *ManagedDeviceRequestBuilder) SecurityBaselineStates() *ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder {
+ bb := &ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/securityBaselineStates"
+ return bb
+}
+
+// ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder is request builder for SecurityBaselineState collection
+type ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SecurityBaselineState collection
+func (b *ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder) Request() *ManagedDeviceSecurityBaselineStatesCollectionRequest {
+ return &ManagedDeviceSecurityBaselineStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SecurityBaselineState item
+func (b *ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder) ID(id string) *SecurityBaselineStateRequestBuilder {
+ bb := &SecurityBaselineStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceSecurityBaselineStatesCollectionRequest is request for SecurityBaselineState collection
+type ManagedDeviceSecurityBaselineStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SecurityBaselineState collection
+func (r *ManagedDeviceSecurityBaselineStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SecurityBaselineState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SecurityBaselineState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SecurityBaselineState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SecurityBaselineState collection
+func (r *ManagedDeviceSecurityBaselineStatesCollectionRequest) Get(ctx context.Context) ([]SecurityBaselineState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SecurityBaselineState collection
+func (r *ManagedDeviceSecurityBaselineStatesCollectionRequest) Add(ctx context.Context, reqObj *SecurityBaselineState) (resObj *SecurityBaselineState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Users returns request builder for User collection
+func (b *ManagedDeviceRequestBuilder) Users() *ManagedDeviceUsersCollectionRequestBuilder {
+ bb := &ManagedDeviceUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/users"
+ return bb
+}
+
+// ManagedDeviceUsersCollectionRequestBuilder is request builder for User collection
+type ManagedDeviceUsersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for User collection
+func (b *ManagedDeviceUsersCollectionRequestBuilder) Request() *ManagedDeviceUsersCollectionRequest {
+ return &ManagedDeviceUsersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for User item
+func (b *ManagedDeviceUsersCollectionRequestBuilder) ID(id string) *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceUsersCollectionRequest is request for User collection
+type ManagedDeviceUsersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for User collection
+func (r *ManagedDeviceUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]User, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []User
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []User
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for User collection
+func (r *ManagedDeviceUsersCollectionRequest) Get(ctx context.Context) ([]User, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for User collection
+func (r *ManagedDeviceUsersCollectionRequest) Add(ctx context.Context, reqObj *User) (resObj *User, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsProtectionState is navigation property
+func (b *ManagedDeviceRequestBuilder) WindowsProtectionState() *WindowsProtectionStateRequestBuilder {
+ bb := &WindowsProtectionStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsProtectionState"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookAction.go
new file mode 100644
index 00000000..fa697c02
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedEBookAssignRequestParameter undocumented
+type ManagedEBookAssignRequestParameter struct {
+ // ManagedEBookAssignments undocumented
+ ManagedEBookAssignments []ManagedEBookAssignment `json:"managedEBookAssignments,omitempty"`
+}
+
+//
+type ManagedEBookAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *ManagedEBookRequestBuilder) Assign(reqObj *ManagedEBookAssignRequestParameter) *ManagedEBookAssignRequestBuilder {
+ bb := &ManagedEBookAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedEBookAssignRequest struct{ BaseRequest }
+
+//
+func (b *ManagedEBookAssignRequestBuilder) Request() *ManagedEBookAssignRequest {
+ return &ManagedEBookAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedEBookAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookAssignmentModel.go
new file mode 100644
index 00000000..70531260
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookAssignmentModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedEBookAssignment Contains properties used to assign a eBook to a group.
+type ManagedEBookAssignment struct {
+ // Entity is the base model of ManagedEBookAssignment
+ Entity
+ // Target The assignment target for eBook.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+ // InstallIntent The install intent for eBook.
+ InstallIntent *InstallIntent `json:"installIntent,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookAssignmentRequest.go
new file mode 100644
index 00000000..357bcedc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedEBookAssignmentRequestBuilder is request builder for ManagedEBookAssignment
+type ManagedEBookAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedEBookAssignmentRequest
+func (b *ManagedEBookAssignmentRequestBuilder) Request() *ManagedEBookAssignmentRequest {
+ return &ManagedEBookAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedEBookAssignmentRequest is request for ManagedEBookAssignment
+type ManagedEBookAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedEBookAssignment
+func (r *ManagedEBookAssignmentRequest) Get(ctx context.Context) (resObj *ManagedEBookAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedEBookAssignment
+func (r *ManagedEBookAssignmentRequest) Update(ctx context.Context, reqObj *ManagedEBookAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedEBookAssignment
+func (r *ManagedEBookAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookCategoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookCategoryModel.go
new file mode 100644
index 00000000..454df9b0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookCategoryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagedEBookCategory Contains properties for a single Intune eBook category.
+type ManagedEBookCategory struct {
+ // Entity is the base model of ManagedEBookCategory
+ Entity
+ // DisplayName The name of the eBook category.
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime The date and time the ManagedEBookCategory was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookCategoryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookCategoryRequest.go
new file mode 100644
index 00000000..bb76969c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookCategoryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedEBookCategoryRequestBuilder is request builder for ManagedEBookCategory
+type ManagedEBookCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedEBookCategoryRequest
+func (b *ManagedEBookCategoryRequestBuilder) Request() *ManagedEBookCategoryRequest {
+ return &ManagedEBookCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedEBookCategoryRequest is request for ManagedEBookCategory
+type ManagedEBookCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedEBookCategory
+func (r *ManagedEBookCategoryRequest) Get(ctx context.Context) (resObj *ManagedEBookCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedEBookCategory
+func (r *ManagedEBookCategoryRequest) Update(ctx context.Context, reqObj *ManagedEBookCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedEBookCategory
+func (r *ManagedEBookCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookModel.go
new file mode 100644
index 00000000..eb1a2aa4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagedEBook An abstract class containing the base properties for Managed eBook.
+type ManagedEBook struct {
+ // Entity is the base model of ManagedEBook
+ Entity
+ // DisplayName Name of the eBook.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description.
+ Description *string `json:"description,omitempty"`
+ // Publisher Publisher.
+ Publisher *string `json:"publisher,omitempty"`
+ // PublishedDateTime The date and time when the eBook was published.
+ PublishedDateTime *time.Time `json:"publishedDateTime,omitempty"`
+ // LargeCover Book cover.
+ LargeCover *MimeContent `json:"largeCover,omitempty"`
+ // CreatedDateTime The date and time when the eBook file was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime The date and time when the eBook was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // InformationURL The more information Url.
+ InformationURL *string `json:"informationUrl,omitempty"`
+ // PrivacyInformationURL The privacy statement Url.
+ PrivacyInformationURL *string `json:"privacyInformationUrl,omitempty"`
+ // Categories undocumented
+ Categories []ManagedEBookCategory `json:"categories,omitempty"`
+ // Assignments undocumented
+ Assignments []ManagedEBookAssignment `json:"assignments,omitempty"`
+ // InstallSummary undocumented
+ InstallSummary *EBookInstallSummary `json:"installSummary,omitempty"`
+ // DeviceStates undocumented
+ DeviceStates []DeviceInstallState `json:"deviceStates,omitempty"`
+ // UserStateSummary undocumented
+ UserStateSummary []UserInstallStateSummary `json:"userStateSummary,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookRequest.go
new file mode 100644
index 00000000..440d968c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedEBookRequest.go
@@ -0,0 +1,428 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ManagedEBookRequestBuilder is request builder for ManagedEBook
+type ManagedEBookRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedEBookRequest
+func (b *ManagedEBookRequestBuilder) Request() *ManagedEBookRequest {
+ return &ManagedEBookRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedEBookRequest is request for ManagedEBook
+type ManagedEBookRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedEBook
+func (r *ManagedEBookRequest) Get(ctx context.Context) (resObj *ManagedEBook, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedEBook
+func (r *ManagedEBookRequest) Update(ctx context.Context, reqObj *ManagedEBook) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedEBook
+func (r *ManagedEBookRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for ManagedEBookAssignment collection
+func (b *ManagedEBookRequestBuilder) Assignments() *ManagedEBookAssignmentsCollectionRequestBuilder {
+ bb := &ManagedEBookAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// ManagedEBookAssignmentsCollectionRequestBuilder is request builder for ManagedEBookAssignment collection
+type ManagedEBookAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedEBookAssignment collection
+func (b *ManagedEBookAssignmentsCollectionRequestBuilder) Request() *ManagedEBookAssignmentsCollectionRequest {
+ return &ManagedEBookAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedEBookAssignment item
+func (b *ManagedEBookAssignmentsCollectionRequestBuilder) ID(id string) *ManagedEBookAssignmentRequestBuilder {
+ bb := &ManagedEBookAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedEBookAssignmentsCollectionRequest is request for ManagedEBookAssignment collection
+type ManagedEBookAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedEBookAssignment collection
+func (r *ManagedEBookAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedEBookAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedEBookAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedEBookAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedEBookAssignment collection
+func (r *ManagedEBookAssignmentsCollectionRequest) Get(ctx context.Context) ([]ManagedEBookAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedEBookAssignment collection
+func (r *ManagedEBookAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *ManagedEBookAssignment) (resObj *ManagedEBookAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Categories returns request builder for ManagedEBookCategory collection
+func (b *ManagedEBookRequestBuilder) Categories() *ManagedEBookCategoriesCollectionRequestBuilder {
+ bb := &ManagedEBookCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/categories"
+ return bb
+}
+
+// ManagedEBookCategoriesCollectionRequestBuilder is request builder for ManagedEBookCategory collection
+type ManagedEBookCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedEBookCategory collection
+func (b *ManagedEBookCategoriesCollectionRequestBuilder) Request() *ManagedEBookCategoriesCollectionRequest {
+ return &ManagedEBookCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedEBookCategory item
+func (b *ManagedEBookCategoriesCollectionRequestBuilder) ID(id string) *ManagedEBookCategoryRequestBuilder {
+ bb := &ManagedEBookCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedEBookCategoriesCollectionRequest is request for ManagedEBookCategory collection
+type ManagedEBookCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedEBookCategory collection
+func (r *ManagedEBookCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedEBookCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedEBookCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedEBookCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedEBookCategory collection
+func (r *ManagedEBookCategoriesCollectionRequest) Get(ctx context.Context) ([]ManagedEBookCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedEBookCategory collection
+func (r *ManagedEBookCategoriesCollectionRequest) Add(ctx context.Context, reqObj *ManagedEBookCategory) (resObj *ManagedEBookCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStates returns request builder for DeviceInstallState collection
+func (b *ManagedEBookRequestBuilder) DeviceStates() *ManagedEBookDeviceStatesCollectionRequestBuilder {
+ bb := &ManagedEBookDeviceStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStates"
+ return bb
+}
+
+// ManagedEBookDeviceStatesCollectionRequestBuilder is request builder for DeviceInstallState collection
+type ManagedEBookDeviceStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceInstallState collection
+func (b *ManagedEBookDeviceStatesCollectionRequestBuilder) Request() *ManagedEBookDeviceStatesCollectionRequest {
+ return &ManagedEBookDeviceStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceInstallState item
+func (b *ManagedEBookDeviceStatesCollectionRequestBuilder) ID(id string) *DeviceInstallStateRequestBuilder {
+ bb := &DeviceInstallStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedEBookDeviceStatesCollectionRequest is request for DeviceInstallState collection
+type ManagedEBookDeviceStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceInstallState collection
+func (r *ManagedEBookDeviceStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceInstallState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceInstallState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceInstallState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceInstallState collection
+func (r *ManagedEBookDeviceStatesCollectionRequest) Get(ctx context.Context) ([]DeviceInstallState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceInstallState collection
+func (r *ManagedEBookDeviceStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceInstallState) (resObj *DeviceInstallState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// InstallSummary is navigation property
+func (b *ManagedEBookRequestBuilder) InstallSummary() *EBookInstallSummaryRequestBuilder {
+ bb := &EBookInstallSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/installSummary"
+ return bb
+}
+
+// UserStateSummary returns request builder for UserInstallStateSummary collection
+func (b *ManagedEBookRequestBuilder) UserStateSummary() *ManagedEBookUserStateSummaryCollectionRequestBuilder {
+ bb := &ManagedEBookUserStateSummaryCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStateSummary"
+ return bb
+}
+
+// ManagedEBookUserStateSummaryCollectionRequestBuilder is request builder for UserInstallStateSummary collection
+type ManagedEBookUserStateSummaryCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserInstallStateSummary collection
+func (b *ManagedEBookUserStateSummaryCollectionRequestBuilder) Request() *ManagedEBookUserStateSummaryCollectionRequest {
+ return &ManagedEBookUserStateSummaryCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserInstallStateSummary item
+func (b *ManagedEBookUserStateSummaryCollectionRequestBuilder) ID(id string) *UserInstallStateSummaryRequestBuilder {
+ bb := &UserInstallStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedEBookUserStateSummaryCollectionRequest is request for UserInstallStateSummary collection
+type ManagedEBookUserStateSummaryCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserInstallStateSummary collection
+func (r *ManagedEBookUserStateSummaryCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UserInstallStateSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserInstallStateSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserInstallStateSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserInstallStateSummary collection
+func (r *ManagedEBookUserStateSummaryCollectionRequest) Get(ctx context.Context) ([]UserInstallStateSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UserInstallStateSummary collection
+func (r *ManagedEBookUserStateSummaryCollectionRequest) Add(ctx context.Context, reqObj *UserInstallStateSummary) (resObj *UserInstallStateSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedIOSLobAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedIOSLobAppModel.go
new file mode 100644
index 00000000..efc08398
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedIOSLobAppModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagedIOSLobApp Contains properties and inherited properties for Managed iOS Line Of Business apps.
+type ManagedIOSLobApp struct {
+ // ManagedMobileLobApp is the base model of ManagedIOSLobApp
+ ManagedMobileLobApp
+ // BundleID The Identity Name.
+ BundleID *string `json:"bundleId,omitempty"`
+ // ApplicableDeviceType The iOS architecture for which this app can run on.
+ ApplicableDeviceType *IOSDeviceType `json:"applicableDeviceType,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *IOSMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+ // ExpirationDateTime The expiration time.
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // VersionNumber The version number of managed iOS Line of Business (LoB) app.
+ VersionNumber *string `json:"versionNumber,omitempty"`
+ // BuildNumber The build number of managed iOS Line of Business (LoB) app.
+ BuildNumber *string `json:"buildNumber,omitempty"`
+ // IdentityVersion The identity version.
+ IdentityVersion *string `json:"identityVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedIOSStoreAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedIOSStoreAppModel.go
new file mode 100644
index 00000000..83a5f9ec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedIOSStoreAppModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedIOSStoreApp Contains properties and inherited properties for an iOS store app that you can manage with an Intune app protection policy.
+type ManagedIOSStoreApp struct {
+ // ManagedApp is the base model of ManagedIOSStoreApp
+ ManagedApp
+ // BundleID The app's Bundle ID.
+ BundleID *string `json:"bundleId,omitempty"`
+ // AppStoreURL The Apple AppStoreUrl.
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+ // ApplicableDeviceType The iOS architecture for which this app can run on.
+ ApplicableDeviceType *IOSDeviceType `json:"applicableDeviceType,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum supported operating system.
+ MinimumSupportedOperatingSystem *IOSMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedMobileAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedMobileAppModel.go
new file mode 100644
index 00000000..b1e63219
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedMobileAppModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedMobileApp The identifier for the deployment an app.
+type ManagedMobileApp struct {
+ // Entity is the base model of ManagedMobileApp
+ Entity
+ // MobileAppIdentifier The identifier for an app with it's operating system type.
+ MobileAppIdentifier *MobileAppIdentifier `json:"mobileAppIdentifier,omitempty"`
+ // Version Version of the entity.
+ Version *string `json:"version,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedMobileAppRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedMobileAppRequest.go
new file mode 100644
index 00000000..ae65085f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedMobileAppRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedMobileAppRequestBuilder is request builder for ManagedMobileApp
+type ManagedMobileAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedMobileAppRequest
+func (b *ManagedMobileAppRequestBuilder) Request() *ManagedMobileAppRequest {
+ return &ManagedMobileAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedMobileAppRequest is request for ManagedMobileApp
+type ManagedMobileAppRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedMobileApp
+func (r *ManagedMobileAppRequest) Get(ctx context.Context) (resObj *ManagedMobileApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedMobileApp
+func (r *ManagedMobileAppRequest) Update(ctx context.Context, reqObj *ManagedMobileApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedMobileApp
+func (r *ManagedMobileAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedMobileLobAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedMobileLobAppModel.go
new file mode 100644
index 00000000..db7f55b7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedMobileLobAppModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedMobileLobApp An abstract base class containing properties for all managed mobile line of business apps.
+type ManagedMobileLobApp struct {
+ // ManagedApp is the base model of ManagedMobileLobApp
+ ManagedApp
+ // CommittedContentVersion The internal committed content version.
+ CommittedContentVersion *string `json:"committedContentVersion,omitempty"`
+ // FileName The name of the main Lob application file.
+ FileName *string `json:"fileName,omitempty"`
+ // Size The total size, including all uploaded files.
+ Size *int `json:"size,omitempty"`
+ // ContentVersions undocumented
+ ContentVersions []MobileAppContent `json:"contentVersions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagedMobileLobAppRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedMobileLobAppRequest.go
new file mode 100644
index 00000000..9294eb92
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagedMobileLobAppRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ManagedMobileLobAppRequestBuilder is request builder for ManagedMobileLobApp
+type ManagedMobileLobAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedMobileLobAppRequest
+func (b *ManagedMobileLobAppRequestBuilder) Request() *ManagedMobileLobAppRequest {
+ return &ManagedMobileLobAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedMobileLobAppRequest is request for ManagedMobileLobApp
+type ManagedMobileLobAppRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedMobileLobApp
+func (r *ManagedMobileLobAppRequest) Get(ctx context.Context) (resObj *ManagedMobileLobApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedMobileLobApp
+func (r *ManagedMobileLobAppRequest) Update(ctx context.Context, reqObj *ManagedMobileLobApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedMobileLobApp
+func (r *ManagedMobileLobAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ContentVersions returns request builder for MobileAppContent collection
+func (b *ManagedMobileLobAppRequestBuilder) ContentVersions() *ManagedMobileLobAppContentVersionsCollectionRequestBuilder {
+ bb := &ManagedMobileLobAppContentVersionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contentVersions"
+ return bb
+}
+
+// ManagedMobileLobAppContentVersionsCollectionRequestBuilder is request builder for MobileAppContent collection
+type ManagedMobileLobAppContentVersionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppContent collection
+func (b *ManagedMobileLobAppContentVersionsCollectionRequestBuilder) Request() *ManagedMobileLobAppContentVersionsCollectionRequest {
+ return &ManagedMobileLobAppContentVersionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppContent item
+func (b *ManagedMobileLobAppContentVersionsCollectionRequestBuilder) ID(id string) *MobileAppContentRequestBuilder {
+ bb := &MobileAppContentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedMobileLobAppContentVersionsCollectionRequest is request for MobileAppContent collection
+type ManagedMobileLobAppContentVersionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppContent collection
+func (r *ManagedMobileLobAppContentVersionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MobileAppContent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppContent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppContent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppContent collection
+func (r *ManagedMobileLobAppContentVersionsCollectionRequest) Get(ctx context.Context) ([]MobileAppContent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MobileAppContent collection
+func (r *ManagedMobileLobAppContentVersionsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppContent) (resObj *MobileAppContent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagementAgentTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementAgentTypeEnum.go
new file mode 100644
index 00000000..1adbaeb9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementAgentTypeEnum.go
@@ -0,0 +1,105 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagementAgentType undocumented
+type ManagementAgentType int
+
+const (
+ // ManagementAgentTypeVEas undocumented
+ ManagementAgentTypeVEas ManagementAgentType = 1
+ // ManagementAgentTypeVMdm undocumented
+ ManagementAgentTypeVMdm ManagementAgentType = 2
+ // ManagementAgentTypeVEasMdm undocumented
+ ManagementAgentTypeVEasMdm ManagementAgentType = 3
+ // ManagementAgentTypeVIntuneClient undocumented
+ ManagementAgentTypeVIntuneClient ManagementAgentType = 4
+ // ManagementAgentTypeVEasIntuneClient undocumented
+ ManagementAgentTypeVEasIntuneClient ManagementAgentType = 5
+ // ManagementAgentTypeVConfigurationManagerClient undocumented
+ ManagementAgentTypeVConfigurationManagerClient ManagementAgentType = 8
+ // ManagementAgentTypeVConfigurationManagerClientMdm undocumented
+ ManagementAgentTypeVConfigurationManagerClientMdm ManagementAgentType = 10
+ // ManagementAgentTypeVConfigurationManagerClientMdmEas undocumented
+ ManagementAgentTypeVConfigurationManagerClientMdmEas ManagementAgentType = 11
+ // ManagementAgentTypeVUnknown undocumented
+ ManagementAgentTypeVUnknown ManagementAgentType = 16
+ // ManagementAgentTypeVJamf undocumented
+ ManagementAgentTypeVJamf ManagementAgentType = 32
+ // ManagementAgentTypeVGoogleCloudDevicePolicyController undocumented
+ ManagementAgentTypeVGoogleCloudDevicePolicyController ManagementAgentType = 64
+ // ManagementAgentTypeVMicrosoft365ManagedMdm undocumented
+ ManagementAgentTypeVMicrosoft365ManagedMdm ManagementAgentType = 258
+)
+
+// ManagementAgentTypePEas returns a pointer to ManagementAgentTypeVEas
+func ManagementAgentTypePEas() *ManagementAgentType {
+ v := ManagementAgentTypeVEas
+ return &v
+}
+
+// ManagementAgentTypePMdm returns a pointer to ManagementAgentTypeVMdm
+func ManagementAgentTypePMdm() *ManagementAgentType {
+ v := ManagementAgentTypeVMdm
+ return &v
+}
+
+// ManagementAgentTypePEasMdm returns a pointer to ManagementAgentTypeVEasMdm
+func ManagementAgentTypePEasMdm() *ManagementAgentType {
+ v := ManagementAgentTypeVEasMdm
+ return &v
+}
+
+// ManagementAgentTypePIntuneClient returns a pointer to ManagementAgentTypeVIntuneClient
+func ManagementAgentTypePIntuneClient() *ManagementAgentType {
+ v := ManagementAgentTypeVIntuneClient
+ return &v
+}
+
+// ManagementAgentTypePEasIntuneClient returns a pointer to ManagementAgentTypeVEasIntuneClient
+func ManagementAgentTypePEasIntuneClient() *ManagementAgentType {
+ v := ManagementAgentTypeVEasIntuneClient
+ return &v
+}
+
+// ManagementAgentTypePConfigurationManagerClient returns a pointer to ManagementAgentTypeVConfigurationManagerClient
+func ManagementAgentTypePConfigurationManagerClient() *ManagementAgentType {
+ v := ManagementAgentTypeVConfigurationManagerClient
+ return &v
+}
+
+// ManagementAgentTypePConfigurationManagerClientMdm returns a pointer to ManagementAgentTypeVConfigurationManagerClientMdm
+func ManagementAgentTypePConfigurationManagerClientMdm() *ManagementAgentType {
+ v := ManagementAgentTypeVConfigurationManagerClientMdm
+ return &v
+}
+
+// ManagementAgentTypePConfigurationManagerClientMdmEas returns a pointer to ManagementAgentTypeVConfigurationManagerClientMdmEas
+func ManagementAgentTypePConfigurationManagerClientMdmEas() *ManagementAgentType {
+ v := ManagementAgentTypeVConfigurationManagerClientMdmEas
+ return &v
+}
+
+// ManagementAgentTypePUnknown returns a pointer to ManagementAgentTypeVUnknown
+func ManagementAgentTypePUnknown() *ManagementAgentType {
+ v := ManagementAgentTypeVUnknown
+ return &v
+}
+
+// ManagementAgentTypePJamf returns a pointer to ManagementAgentTypeVJamf
+func ManagementAgentTypePJamf() *ManagementAgentType {
+ v := ManagementAgentTypeVJamf
+ return &v
+}
+
+// ManagementAgentTypePGoogleCloudDevicePolicyController returns a pointer to ManagementAgentTypeVGoogleCloudDevicePolicyController
+func ManagementAgentTypePGoogleCloudDevicePolicyController() *ManagementAgentType {
+ v := ManagementAgentTypeVGoogleCloudDevicePolicyController
+ return &v
+}
+
+// ManagementAgentTypePMicrosoft365ManagedMdm returns a pointer to ManagementAgentTypeVMicrosoft365ManagedMdm
+func ManagementAgentTypePMicrosoft365ManagedMdm() *ManagementAgentType {
+ v := ManagementAgentTypeVMicrosoft365ManagedMdm
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagementCertificateWithThumbprintModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementCertificateWithThumbprintModel.go
new file mode 100644
index 00000000..c9ff838d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementCertificateWithThumbprintModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagementCertificateWithThumbprint undocumented
+type ManagementCertificateWithThumbprint struct {
+ // Object is the base model of ManagementCertificateWithThumbprint
+ Object
+ // Thumbprint The thumbprint of the management certificate
+ Thumbprint *string `json:"thumbprint,omitempty"`
+ // Certificate The Base 64 encoded management certificate
+ Certificate *string `json:"certificate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionExpressionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionExpressionModel.go
new file mode 100644
index 00000000..5e858b72
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionExpressionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagementConditionExpression undocumented
+type ManagementConditionExpression struct {
+ // Object is the base model of ManagementConditionExpression
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionExpressionModelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionExpressionModelModel.go
new file mode 100644
index 00000000..6021abe8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionExpressionModelModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagementConditionExpressionModel undocumented
+type ManagementConditionExpressionModel struct {
+ // ManagementConditionExpression is the base model of ManagementConditionExpressionModel
+ ManagementConditionExpression
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionExpressionStringModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionExpressionStringModel.go
new file mode 100644
index 00000000..064ca641
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionExpressionStringModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagementConditionExpressionString undocumented
+type ManagementConditionExpressionString struct {
+ // ManagementConditionExpression is the base model of ManagementConditionExpressionString
+ ManagementConditionExpression
+ // Value The management condition statement expression string value.
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionModel.go
new file mode 100644
index 00000000..16ae23f6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagementCondition Management conditions are events that can be triggered dynamically such as geo-fences, time-fences, and network-fences.
+type ManagementCondition struct {
+ // Entity is the base model of ManagementCondition
+ Entity
+ // UniqueName Unique name for the management condition. Used in management condition expressions.
+ UniqueName *string `json:"uniqueName,omitempty"`
+ // DisplayName The admin defined name of the management condition.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The admin defined description of the management condition.
+ Description *string `json:"description,omitempty"`
+ // CreatedDateTime The time the management condition was created. Generated service side.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedDateTime The time the management condition was last modified. Updated service side.
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // ETag ETag of the management condition. Updated service side.
+ ETag *string `json:"eTag,omitempty"`
+ // ApplicablePlatforms The applicable platforms for this management condition.
+ ApplicablePlatforms []DevicePlatformType `json:"applicablePlatforms,omitempty"`
+ // ManagementConditionStatements undocumented
+ ManagementConditionStatements []ManagementConditionStatement `json:"managementConditionStatements,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionRequest.go
new file mode 100644
index 00000000..653a4b19
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ManagementConditionRequestBuilder is request builder for ManagementCondition
+type ManagementConditionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagementConditionRequest
+func (b *ManagementConditionRequestBuilder) Request() *ManagementConditionRequest {
+ return &ManagementConditionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagementConditionRequest is request for ManagementCondition
+type ManagementConditionRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagementCondition
+func (r *ManagementConditionRequest) Get(ctx context.Context) (resObj *ManagementCondition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagementCondition
+func (r *ManagementConditionRequest) Update(ctx context.Context, reqObj *ManagementCondition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagementCondition
+func (r *ManagementConditionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagementConditionStatements returns request builder for ManagementConditionStatement collection
+func (b *ManagementConditionRequestBuilder) ManagementConditionStatements() *ManagementConditionManagementConditionStatementsCollectionRequestBuilder {
+ bb := &ManagementConditionManagementConditionStatementsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managementConditionStatements"
+ return bb
+}
+
+// ManagementConditionManagementConditionStatementsCollectionRequestBuilder is request builder for ManagementConditionStatement collection
+type ManagementConditionManagementConditionStatementsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagementConditionStatement collection
+func (b *ManagementConditionManagementConditionStatementsCollectionRequestBuilder) Request() *ManagementConditionManagementConditionStatementsCollectionRequest {
+ return &ManagementConditionManagementConditionStatementsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagementConditionStatement item
+func (b *ManagementConditionManagementConditionStatementsCollectionRequestBuilder) ID(id string) *ManagementConditionStatementRequestBuilder {
+ bb := &ManagementConditionStatementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagementConditionManagementConditionStatementsCollectionRequest is request for ManagementConditionStatement collection
+type ManagementConditionManagementConditionStatementsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagementConditionStatement collection
+func (r *ManagementConditionManagementConditionStatementsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagementConditionStatement, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagementConditionStatement
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagementConditionStatement
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagementConditionStatement collection
+func (r *ManagementConditionManagementConditionStatementsCollectionRequest) Get(ctx context.Context) ([]ManagementConditionStatement, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagementConditionStatement collection
+func (r *ManagementConditionManagementConditionStatementsCollectionRequest) Add(ctx context.Context, reqObj *ManagementConditionStatement) (resObj *ManagementConditionStatement, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionStatementModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionStatementModel.go
new file mode 100644
index 00000000..cf690943
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionStatementModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagementConditionStatement A management condition statement is a group of management conditions that enable/disable device/application configurations when all contained management conditions are met.
+type ManagementConditionStatement struct {
+ // Entity is the base model of ManagementConditionStatement
+ Entity
+ // DisplayName The admin defined name of the management condition statement.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The admin defined description of the management condition statement.
+ Description *string `json:"description,omitempty"`
+ // CreatedDateTime The time the management condition statement was created. Generated service side.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedDateTime The time the management condition statement was last modified. Updated service side.
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // Expression The management condition statement expression used to evaluate if a management condition statement was activated/deactivated.
+ Expression *ManagementConditionExpression `json:"expression,omitempty"`
+ // ETag ETag of the management condition statement. Updated service side.
+ ETag *string `json:"eTag,omitempty"`
+ // ApplicablePlatforms The applicable platforms for this management condition statement.
+ ApplicablePlatforms []DevicePlatformType `json:"applicablePlatforms,omitempty"`
+ // ManagementConditions undocumented
+ ManagementConditions []ManagementCondition `json:"managementConditions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionStatementRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionStatementRequest.go
new file mode 100644
index 00000000..c932549a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementConditionStatementRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ManagementConditionStatementRequestBuilder is request builder for ManagementConditionStatement
+type ManagementConditionStatementRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagementConditionStatementRequest
+func (b *ManagementConditionStatementRequestBuilder) Request() *ManagementConditionStatementRequest {
+ return &ManagementConditionStatementRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagementConditionStatementRequest is request for ManagementConditionStatement
+type ManagementConditionStatementRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagementConditionStatement
+func (r *ManagementConditionStatementRequest) Get(ctx context.Context) (resObj *ManagementConditionStatement, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagementConditionStatement
+func (r *ManagementConditionStatementRequest) Update(ctx context.Context, reqObj *ManagementConditionStatement) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagementConditionStatement
+func (r *ManagementConditionStatementRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagementConditions returns request builder for ManagementCondition collection
+func (b *ManagementConditionStatementRequestBuilder) ManagementConditions() *ManagementConditionStatementManagementConditionsCollectionRequestBuilder {
+ bb := &ManagementConditionStatementManagementConditionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managementConditions"
+ return bb
+}
+
+// ManagementConditionStatementManagementConditionsCollectionRequestBuilder is request builder for ManagementCondition collection
+type ManagementConditionStatementManagementConditionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagementCondition collection
+func (b *ManagementConditionStatementManagementConditionsCollectionRequestBuilder) Request() *ManagementConditionStatementManagementConditionsCollectionRequest {
+ return &ManagementConditionStatementManagementConditionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagementCondition item
+func (b *ManagementConditionStatementManagementConditionsCollectionRequestBuilder) ID(id string) *ManagementConditionRequestBuilder {
+ bb := &ManagementConditionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagementConditionStatementManagementConditionsCollectionRequest is request for ManagementCondition collection
+type ManagementConditionStatementManagementConditionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagementCondition collection
+func (r *ManagementConditionStatementManagementConditionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagementCondition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagementCondition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagementCondition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagementCondition collection
+func (r *ManagementConditionStatementManagementConditionsCollectionRequest) Get(ctx context.Context) ([]ManagementCondition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagementCondition collection
+func (r *ManagementConditionStatementManagementConditionsCollectionRequest) Add(ctx context.Context, reqObj *ManagementCondition) (resObj *ManagementCondition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ManagementStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementStateEnum.go
new file mode 100644
index 00000000..42424f8a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ManagementStateEnum.go
@@ -0,0 +1,105 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagementState undocumented
+type ManagementState int
+
+const (
+ // ManagementStateVManaged undocumented
+ ManagementStateVManaged ManagementState = 0
+ // ManagementStateVRetirePending undocumented
+ ManagementStateVRetirePending ManagementState = 1
+ // ManagementStateVRetireFailed undocumented
+ ManagementStateVRetireFailed ManagementState = 2
+ // ManagementStateVWipePending undocumented
+ ManagementStateVWipePending ManagementState = 3
+ // ManagementStateVWipeFailed undocumented
+ ManagementStateVWipeFailed ManagementState = 4
+ // ManagementStateVUnhealthy undocumented
+ ManagementStateVUnhealthy ManagementState = 5
+ // ManagementStateVDeletePending undocumented
+ ManagementStateVDeletePending ManagementState = 6
+ // ManagementStateVRetireIssued undocumented
+ ManagementStateVRetireIssued ManagementState = 7
+ // ManagementStateVWipeIssued undocumented
+ ManagementStateVWipeIssued ManagementState = 8
+ // ManagementStateVWipeCanceled undocumented
+ ManagementStateVWipeCanceled ManagementState = 9
+ // ManagementStateVRetireCanceled undocumented
+ ManagementStateVRetireCanceled ManagementState = 10
+ // ManagementStateVDiscovered undocumented
+ ManagementStateVDiscovered ManagementState = 11
+)
+
+// ManagementStatePManaged returns a pointer to ManagementStateVManaged
+func ManagementStatePManaged() *ManagementState {
+ v := ManagementStateVManaged
+ return &v
+}
+
+// ManagementStatePRetirePending returns a pointer to ManagementStateVRetirePending
+func ManagementStatePRetirePending() *ManagementState {
+ v := ManagementStateVRetirePending
+ return &v
+}
+
+// ManagementStatePRetireFailed returns a pointer to ManagementStateVRetireFailed
+func ManagementStatePRetireFailed() *ManagementState {
+ v := ManagementStateVRetireFailed
+ return &v
+}
+
+// ManagementStatePWipePending returns a pointer to ManagementStateVWipePending
+func ManagementStatePWipePending() *ManagementState {
+ v := ManagementStateVWipePending
+ return &v
+}
+
+// ManagementStatePWipeFailed returns a pointer to ManagementStateVWipeFailed
+func ManagementStatePWipeFailed() *ManagementState {
+ v := ManagementStateVWipeFailed
+ return &v
+}
+
+// ManagementStatePUnhealthy returns a pointer to ManagementStateVUnhealthy
+func ManagementStatePUnhealthy() *ManagementState {
+ v := ManagementStateVUnhealthy
+ return &v
+}
+
+// ManagementStatePDeletePending returns a pointer to ManagementStateVDeletePending
+func ManagementStatePDeletePending() *ManagementState {
+ v := ManagementStateVDeletePending
+ return &v
+}
+
+// ManagementStatePRetireIssued returns a pointer to ManagementStateVRetireIssued
+func ManagementStatePRetireIssued() *ManagementState {
+ v := ManagementStateVRetireIssued
+ return &v
+}
+
+// ManagementStatePWipeIssued returns a pointer to ManagementStateVWipeIssued
+func ManagementStatePWipeIssued() *ManagementState {
+ v := ManagementStateVWipeIssued
+ return &v
+}
+
+// ManagementStatePWipeCanceled returns a pointer to ManagementStateVWipeCanceled
+func ManagementStatePWipeCanceled() *ManagementState {
+ v := ManagementStateVWipeCanceled
+ return &v
+}
+
+// ManagementStatePRetireCanceled returns a pointer to ManagementStateVRetireCanceled
+func ManagementStatePRetireCanceled() *ManagementState {
+ v := ManagementStateVRetireCanceled
+ return &v
+}
+
+// ManagementStatePDiscovered returns a pointer to ManagementStateVDiscovered
+func ManagementStatePDiscovered() *ManagementState {
+ v := ManagementStateVDiscovered
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MarkContentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MarkContentModel.go
new file mode 100644
index 00000000..52adcc86
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MarkContentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MarkContent undocumented
+type MarkContent struct {
+ // LabelActionBase is the base model of MarkContent
+ LabelActionBase
+ // FontSize undocumented
+ FontSize *int `json:"fontSize,omitempty"`
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+ // FontColor undocumented
+ FontColor *string `json:"fontColor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MatchLocationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MatchLocationModel.go
new file mode 100644
index 00000000..1399ee58
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MatchLocationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MatchLocation undocumented
+type MatchLocation struct {
+ // Object is the base model of MatchLocation
+ Object
+ // Length undocumented
+ Length *int `json:"length,omitempty"`
+ // Offset undocumented
+ Offset *int `json:"offset,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MatchingDlpRuleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MatchingDlpRuleModel.go
new file mode 100644
index 00000000..7f17dd43
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MatchingDlpRuleModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MatchingDlpRule undocumented
+type MatchingDlpRule struct {
+ // Object is the base model of MatchingDlpRule
+ Object
+ // RuleID undocumented
+ RuleID *string `json:"ruleId,omitempty"`
+ // RuleName undocumented
+ RuleName *string `json:"ruleName,omitempty"`
+ // PolicyID undocumented
+ PolicyID *string `json:"policyId,omitempty"`
+ // PolicyName undocumented
+ PolicyName *string `json:"policyName,omitempty"`
+ // IsMostRestrictive undocumented
+ IsMostRestrictive *bool `json:"isMostRestrictive,omitempty"`
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+ // Actions undocumented
+ Actions []DlpActionInfo `json:"actions,omitempty"`
+ // RuleMode undocumented
+ RuleMode *RuleMode `json:"ruleMode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MatchingLabelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MatchingLabelModel.go
new file mode 100644
index 00000000..b87362e0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MatchingLabelModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MatchingLabel undocumented
+type MatchingLabel struct {
+ // Object is the base model of MatchingLabel
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // ToolTip undocumented
+ ToolTip *string `json:"toolTip,omitempty"`
+ // PolicyTip undocumented
+ PolicyTip *string `json:"policyTip,omitempty"`
+ // IsEndpointProtectionEnabled undocumented
+ IsEndpointProtectionEnabled *bool `json:"isEndpointProtectionEnabled,omitempty"`
+ // ApplicationMode undocumented
+ ApplicationMode *ApplicationMode `json:"applicationMode,omitempty"`
+ // LabelActions undocumented
+ LabelActions []LabelActionBase `json:"labelActions,omitempty"`
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MdmAppConfigKeyTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MdmAppConfigKeyTypeEnum.go
new file mode 100644
index 00000000..f26f202c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MdmAppConfigKeyTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MdmAppConfigKeyType undocumented
+type MdmAppConfigKeyType int
+
+const (
+ // MdmAppConfigKeyTypeVStringType undocumented
+ MdmAppConfigKeyTypeVStringType MdmAppConfigKeyType = 0
+ // MdmAppConfigKeyTypeVIntegerType undocumented
+ MdmAppConfigKeyTypeVIntegerType MdmAppConfigKeyType = 1
+ // MdmAppConfigKeyTypeVRealType undocumented
+ MdmAppConfigKeyTypeVRealType MdmAppConfigKeyType = 2
+ // MdmAppConfigKeyTypeVBooleanType undocumented
+ MdmAppConfigKeyTypeVBooleanType MdmAppConfigKeyType = 3
+ // MdmAppConfigKeyTypeVTokenType undocumented
+ MdmAppConfigKeyTypeVTokenType MdmAppConfigKeyType = 4
+)
+
+// MdmAppConfigKeyTypePStringType returns a pointer to MdmAppConfigKeyTypeVStringType
+func MdmAppConfigKeyTypePStringType() *MdmAppConfigKeyType {
+ v := MdmAppConfigKeyTypeVStringType
+ return &v
+}
+
+// MdmAppConfigKeyTypePIntegerType returns a pointer to MdmAppConfigKeyTypeVIntegerType
+func MdmAppConfigKeyTypePIntegerType() *MdmAppConfigKeyType {
+ v := MdmAppConfigKeyTypeVIntegerType
+ return &v
+}
+
+// MdmAppConfigKeyTypePRealType returns a pointer to MdmAppConfigKeyTypeVRealType
+func MdmAppConfigKeyTypePRealType() *MdmAppConfigKeyType {
+ v := MdmAppConfigKeyTypeVRealType
+ return &v
+}
+
+// MdmAppConfigKeyTypePBooleanType returns a pointer to MdmAppConfigKeyTypeVBooleanType
+func MdmAppConfigKeyTypePBooleanType() *MdmAppConfigKeyType {
+ v := MdmAppConfigKeyTypeVBooleanType
+ return &v
+}
+
+// MdmAppConfigKeyTypePTokenType returns a pointer to MdmAppConfigKeyTypeVTokenType
+func MdmAppConfigKeyTypePTokenType() *MdmAppConfigKeyType {
+ v := MdmAppConfigKeyTypeVTokenType
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MdmAuthorityEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MdmAuthorityEnum.go
new file mode 100644
index 00000000..aca7d147
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MdmAuthorityEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MdmAuthority undocumented
+type MdmAuthority int
+
+const (
+ // MdmAuthorityVUnknown undocumented
+ MdmAuthorityVUnknown MdmAuthority = 0
+ // MdmAuthorityVIntune undocumented
+ MdmAuthorityVIntune MdmAuthority = 1
+ // MdmAuthorityVSccm undocumented
+ MdmAuthorityVSccm MdmAuthority = 2
+ // MdmAuthorityVOffice365 undocumented
+ MdmAuthorityVOffice365 MdmAuthority = 3
+)
+
+// MdmAuthorityPUnknown returns a pointer to MdmAuthorityVUnknown
+func MdmAuthorityPUnknown() *MdmAuthority {
+ v := MdmAuthorityVUnknown
+ return &v
+}
+
+// MdmAuthorityPIntune returns a pointer to MdmAuthorityVIntune
+func MdmAuthorityPIntune() *MdmAuthority {
+ v := MdmAuthorityVIntune
+ return &v
+}
+
+// MdmAuthorityPSccm returns a pointer to MdmAuthorityVSccm
+func MdmAuthorityPSccm() *MdmAuthority {
+ v := MdmAuthorityVSccm
+ return &v
+}
+
+// MdmAuthorityPOffice365 returns a pointer to MdmAuthorityVOffice365
+func MdmAuthorityPOffice365() *MdmAuthority {
+ v := MdmAuthorityVOffice365
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MdmWindowsInformationProtectionPolicyAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/MdmWindowsInformationProtectionPolicyAction.go
new file mode 100644
index 00000000..540c160d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MdmWindowsInformationProtectionPolicyAction.go
@@ -0,0 +1,100 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MdmWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestParameter undocumented
+type MdmWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+//
+type MdmWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceAppManagementMdmWindowsInformationProtectionPoliciesCollectionRequestBuilder) HasPayloadLinks(reqObj *MdmWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestParameter) *MdmWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestBuilder {
+ bb := &MdmWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MdmWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *MdmWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestBuilder) Request() *MdmWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequest {
+ return &MdmWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MdmWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *MdmWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequest) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MdmWindowsInformationProtectionPolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MdmWindowsInformationProtectionPolicyModel.go
new file mode 100644
index 00000000..ba7e213f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MdmWindowsInformationProtectionPolicyModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MdmWindowsInformationProtectionPolicy Policy for Windows information protection with MDM
+type MdmWindowsInformationProtectionPolicy struct {
+ // WindowsInformationProtection is the base model of MdmWindowsInformationProtectionPolicy
+ WindowsInformationProtection
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MdmWindowsInformationProtectionPolicyPolicySetItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MdmWindowsInformationProtectionPolicyPolicySetItemModel.go
new file mode 100644
index 00000000..9c01deee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MdmWindowsInformationProtectionPolicyPolicySetItemModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MdmWindowsInformationProtectionPolicyPolicySetItem A class containing the properties used for mdm windows information protection policy PolicySetItem.
+type MdmWindowsInformationProtectionPolicyPolicySetItem struct {
+ // PolicySetItem is the base model of MdmWindowsInformationProtectionPolicyPolicySetItem
+ PolicySetItem
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MdmWindowsInformationProtectionPolicyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MdmWindowsInformationProtectionPolicyRequest.go
new file mode 100644
index 00000000..71a08ec6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MdmWindowsInformationProtectionPolicyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MdmWindowsInformationProtectionPolicyRequestBuilder is request builder for MdmWindowsInformationProtectionPolicy
+type MdmWindowsInformationProtectionPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MdmWindowsInformationProtectionPolicyRequest
+func (b *MdmWindowsInformationProtectionPolicyRequestBuilder) Request() *MdmWindowsInformationProtectionPolicyRequest {
+ return &MdmWindowsInformationProtectionPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MdmWindowsInformationProtectionPolicyRequest is request for MdmWindowsInformationProtectionPolicy
+type MdmWindowsInformationProtectionPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for MdmWindowsInformationProtectionPolicy
+func (r *MdmWindowsInformationProtectionPolicyRequest) Get(ctx context.Context) (resObj *MdmWindowsInformationProtectionPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MdmWindowsInformationProtectionPolicy
+func (r *MdmWindowsInformationProtectionPolicyRequest) Update(ctx context.Context, reqObj *MdmWindowsInformationProtectionPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MdmWindowsInformationProtectionPolicy
+func (r *MdmWindowsInformationProtectionPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MediaConfigModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MediaConfigModel.go
new file mode 100644
index 00000000..aa9c4057
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MediaConfigModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaConfig undocumented
+type MediaConfig struct {
+ // Object is the base model of MediaConfig
+ Object
+ // RemoveFromDefaultAudioGroup undocumented
+ RemoveFromDefaultAudioGroup *bool `json:"removeFromDefaultAudioGroup,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingAustraliaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingAustraliaModel.go
new file mode 100644
index 00000000..b10a87d4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingAustraliaModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaContentRatingAustralia undocumented
+type MediaContentRatingAustralia struct {
+ // Object is the base model of MediaContentRatingAustralia
+ Object
+ // MovieRating Movies rating selected for Australia
+ MovieRating *RatingAustraliaMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for Australia
+ TvRating *RatingAustraliaTelevisionType `json:"tvRating,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingCanadaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingCanadaModel.go
new file mode 100644
index 00000000..db661dfc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingCanadaModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaContentRatingCanada undocumented
+type MediaContentRatingCanada struct {
+ // Object is the base model of MediaContentRatingCanada
+ Object
+ // MovieRating Movies rating selected for Canada
+ MovieRating *RatingCanadaMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for Canada
+ TvRating *RatingCanadaTelevisionType `json:"tvRating,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingFranceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingFranceModel.go
new file mode 100644
index 00000000..d6dc5629
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingFranceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaContentRatingFrance undocumented
+type MediaContentRatingFrance struct {
+ // Object is the base model of MediaContentRatingFrance
+ Object
+ // MovieRating Movies rating selected for France
+ MovieRating *RatingFranceMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for France
+ TvRating *RatingFranceTelevisionType `json:"tvRating,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingGermanyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingGermanyModel.go
new file mode 100644
index 00000000..5a90266f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingGermanyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaContentRatingGermany undocumented
+type MediaContentRatingGermany struct {
+ // Object is the base model of MediaContentRatingGermany
+ Object
+ // MovieRating Movies rating selected for Germany
+ MovieRating *RatingGermanyMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for Germany
+ TvRating *RatingGermanyTelevisionType `json:"tvRating,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingIrelandModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingIrelandModel.go
new file mode 100644
index 00000000..fdb504e2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingIrelandModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaContentRatingIreland undocumented
+type MediaContentRatingIreland struct {
+ // Object is the base model of MediaContentRatingIreland
+ Object
+ // MovieRating Movies rating selected for Ireland
+ MovieRating *RatingIrelandMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for Ireland
+ TvRating *RatingIrelandTelevisionType `json:"tvRating,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingJapanModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingJapanModel.go
new file mode 100644
index 00000000..f136dec7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingJapanModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaContentRatingJapan undocumented
+type MediaContentRatingJapan struct {
+ // Object is the base model of MediaContentRatingJapan
+ Object
+ // MovieRating Movies rating selected for Japan
+ MovieRating *RatingJapanMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for Japan
+ TvRating *RatingJapanTelevisionType `json:"tvRating,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingNewZealandModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingNewZealandModel.go
new file mode 100644
index 00000000..b2094488
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingNewZealandModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaContentRatingNewZealand undocumented
+type MediaContentRatingNewZealand struct {
+ // Object is the base model of MediaContentRatingNewZealand
+ Object
+ // MovieRating Movies rating selected for New Zealand
+ MovieRating *RatingNewZealandMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for New Zealand
+ TvRating *RatingNewZealandTelevisionType `json:"tvRating,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingUnitedKingdomModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingUnitedKingdomModel.go
new file mode 100644
index 00000000..b781a89d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingUnitedKingdomModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaContentRatingUnitedKingdom undocumented
+type MediaContentRatingUnitedKingdom struct {
+ // Object is the base model of MediaContentRatingUnitedKingdom
+ Object
+ // MovieRating Movies rating selected for United Kingdom
+ MovieRating *RatingUnitedKingdomMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for United Kingdom
+ TvRating *RatingUnitedKingdomTelevisionType `json:"tvRating,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingUnitedStatesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingUnitedStatesModel.go
new file mode 100644
index 00000000..870fd089
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MediaContentRatingUnitedStatesModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaContentRatingUnitedStates undocumented
+type MediaContentRatingUnitedStates struct {
+ // Object is the base model of MediaContentRatingUnitedStates
+ Object
+ // MovieRating Movies rating selected for United States
+ MovieRating *RatingUnitedStatesMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for United States
+ TvRating *RatingUnitedStatesTelevisionType `json:"tvRating,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MediaDirectionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MediaDirectionEnum.go
new file mode 100644
index 00000000..79569acf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MediaDirectionEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaDirection undocumented
+type MediaDirection int
+
+const (
+ // MediaDirectionVInactive undocumented
+ MediaDirectionVInactive MediaDirection = 0
+ // MediaDirectionVSendOnly undocumented
+ MediaDirectionVSendOnly MediaDirection = 1
+ // MediaDirectionVReceiveOnly undocumented
+ MediaDirectionVReceiveOnly MediaDirection = 2
+ // MediaDirectionVSendReceive undocumented
+ MediaDirectionVSendReceive MediaDirection = 3
+)
+
+// MediaDirectionPInactive returns a pointer to MediaDirectionVInactive
+func MediaDirectionPInactive() *MediaDirection {
+ v := MediaDirectionVInactive
+ return &v
+}
+
+// MediaDirectionPSendOnly returns a pointer to MediaDirectionVSendOnly
+func MediaDirectionPSendOnly() *MediaDirection {
+ v := MediaDirectionVSendOnly
+ return &v
+}
+
+// MediaDirectionPReceiveOnly returns a pointer to MediaDirectionVReceiveOnly
+func MediaDirectionPReceiveOnly() *MediaDirection {
+ v := MediaDirectionVReceiveOnly
+ return &v
+}
+
+// MediaDirectionPSendReceive returns a pointer to MediaDirectionVSendReceive
+func MediaDirectionPSendReceive() *MediaDirection {
+ v := MediaDirectionVSendReceive
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MediaInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MediaInfoModel.go
new file mode 100644
index 00000000..c062bd6b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MediaInfoModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaInfo undocumented
+type MediaInfo struct {
+ // Object is the base model of MediaInfo
+ Object
+ // URI undocumented
+ URI *string `json:"uri,omitempty"`
+ // ResourceID undocumented
+ ResourceID *string `json:"resourceId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MediaPromptModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MediaPromptModel.go
new file mode 100644
index 00000000..2c3b3411
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MediaPromptModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaPrompt undocumented
+type MediaPrompt struct {
+ // Prompt is the base model of MediaPrompt
+ Prompt
+ // MediaInfo undocumented
+ MediaInfo *MediaInfo `json:"mediaInfo,omitempty"`
+ // Loop undocumented
+ Loop *int `json:"loop,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MediaStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MediaStateEnum.go
new file mode 100644
index 00000000..d8251a21
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MediaStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaState undocumented
+type MediaState int
+
+const (
+ // MediaStateVActive undocumented
+ MediaStateVActive MediaState = 0
+ // MediaStateVInactive undocumented
+ MediaStateVInactive MediaState = 1
+ // MediaStateVUnknownFutureValue undocumented
+ MediaStateVUnknownFutureValue MediaState = 2
+)
+
+// MediaStatePActive returns a pointer to MediaStateVActive
+func MediaStatePActive() *MediaState {
+ v := MediaStateVActive
+ return &v
+}
+
+// MediaStatePInactive returns a pointer to MediaStateVInactive
+func MediaStatePInactive() *MediaState {
+ v := MediaStateVInactive
+ return &v
+}
+
+// MediaStatePUnknownFutureValue returns a pointer to MediaStateVUnknownFutureValue
+func MediaStatePUnknownFutureValue() *MediaState {
+ v := MediaStateVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MediaStreamModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MediaStreamModel.go
new file mode 100644
index 00000000..9a8a9da9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MediaStreamModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaStream undocumented
+type MediaStream struct {
+ // Object is the base model of MediaStream
+ Object
+ // MediaType undocumented
+ MediaType *Modality `json:"mediaType,omitempty"`
+ // Label undocumented
+ Label *string `json:"label,omitempty"`
+ // SourceID undocumented
+ SourceID *string `json:"sourceId,omitempty"`
+ // Direction undocumented
+ Direction *MediaDirection `json:"direction,omitempty"`
+ // ServerMuted undocumented
+ ServerMuted *bool `json:"serverMuted,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MeetingActivityStatisticsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingActivityStatisticsModel.go
new file mode 100644
index 00000000..6954334a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingActivityStatisticsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MeetingActivityStatistics undocumented
+type MeetingActivityStatistics struct {
+ // ActivityStatistics is the base model of MeetingActivityStatistics
+ ActivityStatistics
+ // AfterHours undocumented
+ AfterHours *time.Duration `json:"afterHours,omitempty"`
+ // Organized undocumented
+ Organized *time.Duration `json:"organized,omitempty"`
+ // Recurring undocumented
+ Recurring *time.Duration `json:"recurring,omitempty"`
+ // Long undocumented
+ Long *time.Duration `json:"long,omitempty"`
+ // Conflicting undocumented
+ Conflicting *time.Duration `json:"conflicting,omitempty"`
+ // Multitasking undocumented
+ Multitasking *time.Duration `json:"multitasking,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MeetingCapabilitiesEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingCapabilitiesEnum.go
new file mode 100644
index 00000000..4fbc9bee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingCapabilitiesEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MeetingCapabilities undocumented
+type MeetingCapabilities int
+
+const (
+ // MeetingCapabilitiesVQuestionAndAnswer undocumented
+ MeetingCapabilitiesVQuestionAndAnswer MeetingCapabilities = 0
+ // MeetingCapabilitiesVUnknownFutureValue undocumented
+ MeetingCapabilitiesVUnknownFutureValue MeetingCapabilities = 1
+)
+
+// MeetingCapabilitiesPQuestionAndAnswer returns a pointer to MeetingCapabilitiesVQuestionAndAnswer
+func MeetingCapabilitiesPQuestionAndAnswer() *MeetingCapabilities {
+ v := MeetingCapabilitiesVQuestionAndAnswer
+ return &v
+}
+
+// MeetingCapabilitiesPUnknownFutureValue returns a pointer to MeetingCapabilitiesVUnknownFutureValue
+func MeetingCapabilitiesPUnknownFutureValue() *MeetingCapabilities {
+ v := MeetingCapabilitiesVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MeetingCapabilityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingCapabilityModel.go
new file mode 100644
index 00000000..40950558
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingCapabilityModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MeetingCapability undocumented
+type MeetingCapability struct {
+ // Object is the base model of MeetingCapability
+ Object
+ // AllowAnonymousUsersToDialOut undocumented
+ AllowAnonymousUsersToDialOut *bool `json:"allowAnonymousUsersToDialOut,omitempty"`
+ // AutoAdmittedUsers undocumented
+ AutoAdmittedUsers *AutoAdmittedUsersType `json:"autoAdmittedUsers,omitempty"`
+ // AllowAnonymousUsersToStartMeeting undocumented
+ AllowAnonymousUsersToStartMeeting *bool `json:"allowAnonymousUsersToStartMeeting,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MeetingInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingInfoModel.go
new file mode 100644
index 00000000..b08732e1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingInfoModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MeetingInfo undocumented
+type MeetingInfo struct {
+ // Object is the base model of MeetingInfo
+ Object
+ // AllowConversationWithoutHost undocumented
+ AllowConversationWithoutHost *bool `json:"allowConversationWithoutHost,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MeetingMessageTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingMessageTypeEnum.go
new file mode 100644
index 00000000..1ccc71dc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingMessageTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MeetingMessageType undocumented
+type MeetingMessageType int
+
+const (
+ // MeetingMessageTypeVNone undocumented
+ MeetingMessageTypeVNone MeetingMessageType = 0
+ // MeetingMessageTypeVMeetingRequest undocumented
+ MeetingMessageTypeVMeetingRequest MeetingMessageType = 1
+ // MeetingMessageTypeVMeetingCancelled undocumented
+ MeetingMessageTypeVMeetingCancelled MeetingMessageType = 2
+ // MeetingMessageTypeVMeetingAccepted undocumented
+ MeetingMessageTypeVMeetingAccepted MeetingMessageType = 3
+ // MeetingMessageTypeVMeetingTentativelyAccepted undocumented
+ MeetingMessageTypeVMeetingTentativelyAccepted MeetingMessageType = 4
+ // MeetingMessageTypeVMeetingDeclined undocumented
+ MeetingMessageTypeVMeetingDeclined MeetingMessageType = 5
+)
+
+// MeetingMessageTypePNone returns a pointer to MeetingMessageTypeVNone
+func MeetingMessageTypePNone() *MeetingMessageType {
+ v := MeetingMessageTypeVNone
+ return &v
+}
+
+// MeetingMessageTypePMeetingRequest returns a pointer to MeetingMessageTypeVMeetingRequest
+func MeetingMessageTypePMeetingRequest() *MeetingMessageType {
+ v := MeetingMessageTypeVMeetingRequest
+ return &v
+}
+
+// MeetingMessageTypePMeetingCancelled returns a pointer to MeetingMessageTypeVMeetingCancelled
+func MeetingMessageTypePMeetingCancelled() *MeetingMessageType {
+ v := MeetingMessageTypeVMeetingCancelled
+ return &v
+}
+
+// MeetingMessageTypePMeetingAccepted returns a pointer to MeetingMessageTypeVMeetingAccepted
+func MeetingMessageTypePMeetingAccepted() *MeetingMessageType {
+ v := MeetingMessageTypeVMeetingAccepted
+ return &v
+}
+
+// MeetingMessageTypePMeetingTentativelyAccepted returns a pointer to MeetingMessageTypeVMeetingTentativelyAccepted
+func MeetingMessageTypePMeetingTentativelyAccepted() *MeetingMessageType {
+ v := MeetingMessageTypeVMeetingTentativelyAccepted
+ return &v
+}
+
+// MeetingMessageTypePMeetingDeclined returns a pointer to MeetingMessageTypeVMeetingDeclined
+func MeetingMessageTypePMeetingDeclined() *MeetingMessageType {
+ v := MeetingMessageTypeVMeetingDeclined
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MeetingParticipantInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingParticipantInfoModel.go
new file mode 100644
index 00000000..8357e5cd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingParticipantInfoModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MeetingParticipantInfo undocumented
+type MeetingParticipantInfo struct {
+ // Object is the base model of MeetingParticipantInfo
+ Object
+ // Identity undocumented
+ Identity *IdentitySet `json:"identity,omitempty"`
+ // Upn undocumented
+ Upn *string `json:"upn,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MeetingParticipantsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingParticipantsModel.go
new file mode 100644
index 00000000..ef9698b5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingParticipantsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MeetingParticipants undocumented
+type MeetingParticipants struct {
+ // Object is the base model of MeetingParticipants
+ Object
+ // Organizer undocumented
+ Organizer *MeetingParticipantInfo `json:"organizer,omitempty"`
+ // Attendees undocumented
+ Attendees []MeetingParticipantInfo `json:"attendees,omitempty"`
+ // Producers undocumented
+ Producers []MeetingParticipantInfo `json:"producers,omitempty"`
+ // Contributors undocumented
+ Contributors []MeetingParticipantInfo `json:"contributors,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MeetingTimeSuggestionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingTimeSuggestionModel.go
new file mode 100644
index 00000000..69a35a0c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingTimeSuggestionModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MeetingTimeSuggestion undocumented
+type MeetingTimeSuggestion struct {
+ // Object is the base model of MeetingTimeSuggestion
+ Object
+ // Confidence undocumented
+ Confidence *float64 `json:"confidence,omitempty"`
+ // Order undocumented
+ Order *int `json:"order,omitempty"`
+ // OrganizerAvailability undocumented
+ OrganizerAvailability *FreeBusyStatus `json:"organizerAvailability,omitempty"`
+ // AttendeeAvailability undocumented
+ AttendeeAvailability []AttendeeAvailability `json:"attendeeAvailability,omitempty"`
+ // Locations undocumented
+ Locations []Location `json:"locations,omitempty"`
+ // SuggestionReason undocumented
+ SuggestionReason *string `json:"suggestionReason,omitempty"`
+ // MeetingTimeSlot undocumented
+ MeetingTimeSlot *TimeSlot `json:"meetingTimeSlot,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MeetingTimeSuggestionsResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingTimeSuggestionsResultModel.go
new file mode 100644
index 00000000..acdc1791
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MeetingTimeSuggestionsResultModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MeetingTimeSuggestionsResult undocumented
+type MeetingTimeSuggestionsResult struct {
+ // Object is the base model of MeetingTimeSuggestionsResult
+ Object
+ // MeetingTimeSuggestions undocumented
+ MeetingTimeSuggestions []MeetingTimeSuggestion `json:"meetingTimeSuggestions,omitempty"`
+ // EmptySuggestionsReason undocumented
+ EmptySuggestionsReason *string `json:"emptySuggestionsReason,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MembershipRuleEvaluationDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MembershipRuleEvaluationDetailsModel.go
new file mode 100644
index 00000000..dd67f2b9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MembershipRuleEvaluationDetailsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MembershipRuleEvaluationDetails undocumented
+type MembershipRuleEvaluationDetails struct {
+ // Object is the base model of MembershipRuleEvaluationDetails
+ Object
+ // MembershipRuleEvaluationDetails undocumented
+ MembershipRuleEvaluationDetails *ExpressionEvaluationDetails `json:"membershipRuleEvaluationDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MentionActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MentionActionModel.go
new file mode 100644
index 00000000..f9936958
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MentionActionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MentionAction undocumented
+type MentionAction struct {
+ // Object is the base model of MentionAction
+ Object
+ // Mentionees undocumented
+ Mentionees []IdentitySet `json:"mentionees,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MentionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MentionModel.go
new file mode 100644
index 00000000..5089df3c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MentionModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Mention undocumented
+type Mention struct {
+ // Entity is the base model of Mention
+ Entity
+ // Mentioned undocumented
+ Mentioned *EmailAddress `json:"mentioned,omitempty"`
+ // MentionText undocumented
+ MentionText *string `json:"mentionText,omitempty"`
+ // ClientReference undocumented
+ ClientReference *string `json:"clientReference,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *EmailAddress `json:"createdBy,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ServerCreatedDateTime undocumented
+ ServerCreatedDateTime *time.Time `json:"serverCreatedDateTime,omitempty"`
+ // DeepLink undocumented
+ DeepLink *string `json:"deepLink,omitempty"`
+ // Application undocumented
+ Application *string `json:"application,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MentionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MentionRequest.go
new file mode 100644
index 00000000..c29b2084
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MentionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MentionRequestBuilder is request builder for Mention
+type MentionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MentionRequest
+func (b *MentionRequestBuilder) Request() *MentionRequest {
+ return &MentionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MentionRequest is request for Mention
+type MentionRequest struct{ BaseRequest }
+
+// Get performs GET request for Mention
+func (r *MentionRequest) Get(ctx context.Context) (resObj *Mention, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Mention
+func (r *MentionRequest) Update(ctx context.Context, reqObj *Mention) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Mention
+func (r *MentionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MentionsPreviewModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MentionsPreviewModel.go
new file mode 100644
index 00000000..2e950ba1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MentionsPreviewModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MentionsPreview undocumented
+type MentionsPreview struct {
+ // Object is the base model of MentionsPreview
+ Object
+ // IsMentioned undocumented
+ IsMentioned *bool `json:"isMentioned,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MessageAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/MessageAction.go
new file mode 100644
index 00000000..d3d12a39
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MessageAction.go
@@ -0,0 +1,342 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MessageCreateReplyRequestParameter undocumented
+type MessageCreateReplyRequestParameter struct {
+ // Message undocumented
+ Message *Message `json:"Message,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// MessageCreateReplyAllRequestParameter undocumented
+type MessageCreateReplyAllRequestParameter struct {
+ // Message undocumented
+ Message *Message `json:"Message,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// MessageCreateForwardRequestParameter undocumented
+type MessageCreateForwardRequestParameter struct {
+ // ToRecipients undocumented
+ ToRecipients []Recipient `json:"ToRecipients,omitempty"`
+ // Message undocumented
+ Message *Message `json:"Message,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// MessageSendRequestParameter undocumented
+type MessageSendRequestParameter struct {
+}
+
+// MessageCopyRequestParameter undocumented
+type MessageCopyRequestParameter struct {
+ // DestinationID undocumented
+ DestinationID *string `json:"DestinationId,omitempty"`
+}
+
+// MessageMoveRequestParameter undocumented
+type MessageMoveRequestParameter struct {
+ // DestinationID undocumented
+ DestinationID *string `json:"DestinationId,omitempty"`
+}
+
+// MessageReplyRequestParameter undocumented
+type MessageReplyRequestParameter struct {
+ // Message undocumented
+ Message *Message `json:"Message,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// MessageReplyAllRequestParameter undocumented
+type MessageReplyAllRequestParameter struct {
+ // Message undocumented
+ Message *Message `json:"Message,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// MessageForwardRequestParameter undocumented
+type MessageForwardRequestParameter struct {
+ // ToRecipients undocumented
+ ToRecipients []Recipient `json:"ToRecipients,omitempty"`
+ // Message undocumented
+ Message *Message `json:"Message,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// MessageUnsubscribeRequestParameter undocumented
+type MessageUnsubscribeRequestParameter struct {
+}
+
+//
+type MessageCreateReplyRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateReply action undocumented
+func (b *MessageRequestBuilder) CreateReply(reqObj *MessageCreateReplyRequestParameter) *MessageCreateReplyRequestBuilder {
+ bb := &MessageCreateReplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createReply"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageCreateReplyRequest struct{ BaseRequest }
+
+//
+func (b *MessageCreateReplyRequestBuilder) Request() *MessageCreateReplyRequest {
+ return &MessageCreateReplyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageCreateReplyRequest) Post(ctx context.Context) (resObj *Message, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type MessageCreateReplyAllRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateReplyAll action undocumented
+func (b *MessageRequestBuilder) CreateReplyAll(reqObj *MessageCreateReplyAllRequestParameter) *MessageCreateReplyAllRequestBuilder {
+ bb := &MessageCreateReplyAllRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createReplyAll"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageCreateReplyAllRequest struct{ BaseRequest }
+
+//
+func (b *MessageCreateReplyAllRequestBuilder) Request() *MessageCreateReplyAllRequest {
+ return &MessageCreateReplyAllRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageCreateReplyAllRequest) Post(ctx context.Context) (resObj *Message, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type MessageCreateForwardRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateForward action undocumented
+func (b *MessageRequestBuilder) CreateForward(reqObj *MessageCreateForwardRequestParameter) *MessageCreateForwardRequestBuilder {
+ bb := &MessageCreateForwardRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createForward"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageCreateForwardRequest struct{ BaseRequest }
+
+//
+func (b *MessageCreateForwardRequestBuilder) Request() *MessageCreateForwardRequest {
+ return &MessageCreateForwardRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageCreateForwardRequest) Post(ctx context.Context) (resObj *Message, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type MessageSendRequestBuilder struct{ BaseRequestBuilder }
+
+// Send action undocumented
+func (b *MessageRequestBuilder) Send(reqObj *MessageSendRequestParameter) *MessageSendRequestBuilder {
+ bb := &MessageSendRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/send"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageSendRequest struct{ BaseRequest }
+
+//
+func (b *MessageSendRequestBuilder) Request() *MessageSendRequest {
+ return &MessageSendRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageSendRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type MessageCopyRequestBuilder struct{ BaseRequestBuilder }
+
+// Copy action undocumented
+func (b *MessageRequestBuilder) Copy(reqObj *MessageCopyRequestParameter) *MessageCopyRequestBuilder {
+ bb := &MessageCopyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/copy"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageCopyRequest struct{ BaseRequest }
+
+//
+func (b *MessageCopyRequestBuilder) Request() *MessageCopyRequest {
+ return &MessageCopyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageCopyRequest) Post(ctx context.Context) (resObj *Message, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type MessageMoveRequestBuilder struct{ BaseRequestBuilder }
+
+// Move action undocumented
+func (b *MessageRequestBuilder) Move(reqObj *MessageMoveRequestParameter) *MessageMoveRequestBuilder {
+ bb := &MessageMoveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/move"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageMoveRequest struct{ BaseRequest }
+
+//
+func (b *MessageMoveRequestBuilder) Request() *MessageMoveRequest {
+ return &MessageMoveRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageMoveRequest) Post(ctx context.Context) (resObj *Message, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type MessageReplyRequestBuilder struct{ BaseRequestBuilder }
+
+// Reply action undocumented
+func (b *MessageRequestBuilder) Reply(reqObj *MessageReplyRequestParameter) *MessageReplyRequestBuilder {
+ bb := &MessageReplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/reply"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageReplyRequest struct{ BaseRequest }
+
+//
+func (b *MessageReplyRequestBuilder) Request() *MessageReplyRequest {
+ return &MessageReplyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageReplyRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type MessageReplyAllRequestBuilder struct{ BaseRequestBuilder }
+
+// ReplyAll action undocumented
+func (b *MessageRequestBuilder) ReplyAll(reqObj *MessageReplyAllRequestParameter) *MessageReplyAllRequestBuilder {
+ bb := &MessageReplyAllRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/replyAll"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageReplyAllRequest struct{ BaseRequest }
+
+//
+func (b *MessageReplyAllRequestBuilder) Request() *MessageReplyAllRequest {
+ return &MessageReplyAllRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageReplyAllRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type MessageForwardRequestBuilder struct{ BaseRequestBuilder }
+
+// Forward action undocumented
+func (b *MessageRequestBuilder) Forward(reqObj *MessageForwardRequestParameter) *MessageForwardRequestBuilder {
+ bb := &MessageForwardRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/forward"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageForwardRequest struct{ BaseRequest }
+
+//
+func (b *MessageForwardRequestBuilder) Request() *MessageForwardRequest {
+ return &MessageForwardRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageForwardRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type MessageUnsubscribeRequestBuilder struct{ BaseRequestBuilder }
+
+// Unsubscribe action undocumented
+func (b *MessageRequestBuilder) Unsubscribe(reqObj *MessageUnsubscribeRequestParameter) *MessageUnsubscribeRequestBuilder {
+ bb := &MessageUnsubscribeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unsubscribe"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageUnsubscribeRequest struct{ BaseRequest }
+
+//
+func (b *MessageUnsubscribeRequestBuilder) Request() *MessageUnsubscribeRequest {
+ return &MessageUnsubscribeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageUnsubscribeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MessageActionFlagEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MessageActionFlagEnum.go
new file mode 100644
index 00000000..3206d744
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MessageActionFlagEnum.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MessageActionFlag undocumented
+type MessageActionFlag int
+
+const (
+ // MessageActionFlagVAny undocumented
+ MessageActionFlagVAny MessageActionFlag = 0
+ // MessageActionFlagVCall undocumented
+ MessageActionFlagVCall MessageActionFlag = 1
+ // MessageActionFlagVDoNotForward undocumented
+ MessageActionFlagVDoNotForward MessageActionFlag = 2
+ // MessageActionFlagVFollowUp undocumented
+ MessageActionFlagVFollowUp MessageActionFlag = 3
+ // MessageActionFlagVFyi undocumented
+ MessageActionFlagVFyi MessageActionFlag = 4
+ // MessageActionFlagVForward undocumented
+ MessageActionFlagVForward MessageActionFlag = 5
+ // MessageActionFlagVNoResponseNecessary undocumented
+ MessageActionFlagVNoResponseNecessary MessageActionFlag = 6
+ // MessageActionFlagVRead undocumented
+ MessageActionFlagVRead MessageActionFlag = 7
+ // MessageActionFlagVReply undocumented
+ MessageActionFlagVReply MessageActionFlag = 8
+ // MessageActionFlagVReplyToAll undocumented
+ MessageActionFlagVReplyToAll MessageActionFlag = 9
+ // MessageActionFlagVReview undocumented
+ MessageActionFlagVReview MessageActionFlag = 10
+)
+
+// MessageActionFlagPAny returns a pointer to MessageActionFlagVAny
+func MessageActionFlagPAny() *MessageActionFlag {
+ v := MessageActionFlagVAny
+ return &v
+}
+
+// MessageActionFlagPCall returns a pointer to MessageActionFlagVCall
+func MessageActionFlagPCall() *MessageActionFlag {
+ v := MessageActionFlagVCall
+ return &v
+}
+
+// MessageActionFlagPDoNotForward returns a pointer to MessageActionFlagVDoNotForward
+func MessageActionFlagPDoNotForward() *MessageActionFlag {
+ v := MessageActionFlagVDoNotForward
+ return &v
+}
+
+// MessageActionFlagPFollowUp returns a pointer to MessageActionFlagVFollowUp
+func MessageActionFlagPFollowUp() *MessageActionFlag {
+ v := MessageActionFlagVFollowUp
+ return &v
+}
+
+// MessageActionFlagPFyi returns a pointer to MessageActionFlagVFyi
+func MessageActionFlagPFyi() *MessageActionFlag {
+ v := MessageActionFlagVFyi
+ return &v
+}
+
+// MessageActionFlagPForward returns a pointer to MessageActionFlagVForward
+func MessageActionFlagPForward() *MessageActionFlag {
+ v := MessageActionFlagVForward
+ return &v
+}
+
+// MessageActionFlagPNoResponseNecessary returns a pointer to MessageActionFlagVNoResponseNecessary
+func MessageActionFlagPNoResponseNecessary() *MessageActionFlag {
+ v := MessageActionFlagVNoResponseNecessary
+ return &v
+}
+
+// MessageActionFlagPRead returns a pointer to MessageActionFlagVRead
+func MessageActionFlagPRead() *MessageActionFlag {
+ v := MessageActionFlagVRead
+ return &v
+}
+
+// MessageActionFlagPReply returns a pointer to MessageActionFlagVReply
+func MessageActionFlagPReply() *MessageActionFlag {
+ v := MessageActionFlagVReply
+ return &v
+}
+
+// MessageActionFlagPReplyToAll returns a pointer to MessageActionFlagVReplyToAll
+func MessageActionFlagPReplyToAll() *MessageActionFlag {
+ v := MessageActionFlagVReplyToAll
+ return &v
+}
+
+// MessageActionFlagPReview returns a pointer to MessageActionFlagVReview
+func MessageActionFlagPReview() *MessageActionFlag {
+ v := MessageActionFlagVReview
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MessageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MessageModel.go
new file mode 100644
index 00000000..ac00292c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MessageModel.go
@@ -0,0 +1,79 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Message undocumented
+type Message struct {
+ // OutlookItem is the base model of Message
+ OutlookItem
+ // ReceivedDateTime undocumented
+ ReceivedDateTime *time.Time `json:"receivedDateTime,omitempty"`
+ // SentDateTime undocumented
+ SentDateTime *time.Time `json:"sentDateTime,omitempty"`
+ // HasAttachments undocumented
+ HasAttachments *bool `json:"hasAttachments,omitempty"`
+ // InternetMessageID undocumented
+ InternetMessageID *string `json:"internetMessageId,omitempty"`
+ // InternetMessageHeaders undocumented
+ InternetMessageHeaders []InternetMessageHeader `json:"internetMessageHeaders,omitempty"`
+ // Subject undocumented
+ Subject *string `json:"subject,omitempty"`
+ // Body undocumented
+ Body *ItemBody `json:"body,omitempty"`
+ // BodyPreview undocumented
+ BodyPreview *string `json:"bodyPreview,omitempty"`
+ // Importance undocumented
+ Importance *Importance `json:"importance,omitempty"`
+ // ParentFolderID undocumented
+ ParentFolderID *string `json:"parentFolderId,omitempty"`
+ // Sender undocumented
+ Sender *Recipient `json:"sender,omitempty"`
+ // From undocumented
+ From *Recipient `json:"from,omitempty"`
+ // ToRecipients undocumented
+ ToRecipients []Recipient `json:"toRecipients,omitempty"`
+ // CcRecipients undocumented
+ CcRecipients []Recipient `json:"ccRecipients,omitempty"`
+ // BccRecipients undocumented
+ BccRecipients []Recipient `json:"bccRecipients,omitempty"`
+ // ReplyTo undocumented
+ ReplyTo []Recipient `json:"replyTo,omitempty"`
+ // ConversationID undocumented
+ ConversationID *string `json:"conversationId,omitempty"`
+ // ConversationIndex undocumented
+ ConversationIndex *Binary `json:"conversationIndex,omitempty"`
+ // UniqueBody undocumented
+ UniqueBody *ItemBody `json:"uniqueBody,omitempty"`
+ // IsDeliveryReceiptRequested undocumented
+ IsDeliveryReceiptRequested *bool `json:"isDeliveryReceiptRequested,omitempty"`
+ // IsReadReceiptRequested undocumented
+ IsReadReceiptRequested *bool `json:"isReadReceiptRequested,omitempty"`
+ // IsRead undocumented
+ IsRead *bool `json:"isRead,omitempty"`
+ // IsDraft undocumented
+ IsDraft *bool `json:"isDraft,omitempty"`
+ // WebLink undocumented
+ WebLink *string `json:"webLink,omitempty"`
+ // MentionsPreview undocumented
+ MentionsPreview *MentionsPreview `json:"mentionsPreview,omitempty"`
+ // InferenceClassification undocumented
+ InferenceClassification *InferenceClassificationType `json:"inferenceClassification,omitempty"`
+ // UnsubscribeData undocumented
+ UnsubscribeData []string `json:"unsubscribeData,omitempty"`
+ // UnsubscribeEnabled undocumented
+ UnsubscribeEnabled *bool `json:"unsubscribeEnabled,omitempty"`
+ // Flag undocumented
+ Flag *FollowupFlag `json:"flag,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+ // Attachments undocumented
+ Attachments []Attachment `json:"attachments,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+ // Mentions undocumented
+ Mentions []Mention `json:"mentions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MessageRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MessageRequest.go
new file mode 100644
index 00000000..4ff3332c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MessageRequest.go
@@ -0,0 +1,515 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MessageRequestBuilder is request builder for Message
+type MessageRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MessageRequest
+func (b *MessageRequestBuilder) Request() *MessageRequest {
+ return &MessageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MessageRequest is request for Message
+type MessageRequest struct{ BaseRequest }
+
+// Get performs GET request for Message
+func (r *MessageRequest) Get(ctx context.Context) (resObj *Message, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Message
+func (r *MessageRequest) Update(ctx context.Context, reqObj *Message) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Message
+func (r *MessageRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Attachments returns request builder for Attachment collection
+func (b *MessageRequestBuilder) Attachments() *MessageAttachmentsCollectionRequestBuilder {
+ bb := &MessageAttachmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/attachments"
+ return bb
+}
+
+// MessageAttachmentsCollectionRequestBuilder is request builder for Attachment collection
+type MessageAttachmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Attachment collection
+func (b *MessageAttachmentsCollectionRequestBuilder) Request() *MessageAttachmentsCollectionRequest {
+ return &MessageAttachmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Attachment item
+func (b *MessageAttachmentsCollectionRequestBuilder) ID(id string) *AttachmentRequestBuilder {
+ bb := &AttachmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MessageAttachmentsCollectionRequest is request for Attachment collection
+type MessageAttachmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Attachment collection
+func (r *MessageAttachmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Attachment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Attachment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Attachment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Attachment collection
+func (r *MessageAttachmentsCollectionRequest) Get(ctx context.Context) ([]Attachment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Attachment collection
+func (r *MessageAttachmentsCollectionRequest) Add(ctx context.Context, reqObj *Attachment) (resObj *Attachment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Extensions returns request builder for Extension collection
+func (b *MessageRequestBuilder) Extensions() *MessageExtensionsCollectionRequestBuilder {
+ bb := &MessageExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// MessageExtensionsCollectionRequestBuilder is request builder for Extension collection
+type MessageExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *MessageExtensionsCollectionRequestBuilder) Request() *MessageExtensionsCollectionRequest {
+ return &MessageExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *MessageExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MessageExtensionsCollectionRequest is request for Extension collection
+type MessageExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *MessageExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *MessageExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Extension collection
+func (r *MessageExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Mentions returns request builder for Mention collection
+func (b *MessageRequestBuilder) Mentions() *MessageMentionsCollectionRequestBuilder {
+ bb := &MessageMentionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mentions"
+ return bb
+}
+
+// MessageMentionsCollectionRequestBuilder is request builder for Mention collection
+type MessageMentionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Mention collection
+func (b *MessageMentionsCollectionRequestBuilder) Request() *MessageMentionsCollectionRequest {
+ return &MessageMentionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Mention item
+func (b *MessageMentionsCollectionRequestBuilder) ID(id string) *MentionRequestBuilder {
+ bb := &MentionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MessageMentionsCollectionRequest is request for Mention collection
+type MessageMentionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Mention collection
+func (r *MessageMentionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Mention, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Mention
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Mention
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Mention collection
+func (r *MessageMentionsCollectionRequest) Get(ctx context.Context) ([]Mention, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Mention collection
+func (r *MessageMentionsCollectionRequest) Add(ctx context.Context, reqObj *Mention) (resObj *Mention, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *MessageRequestBuilder) MultiValueExtendedProperties() *MessageMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &MessageMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// MessageMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type MessageMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *MessageMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *MessageMultiValueExtendedPropertiesCollectionRequest {
+ return &MessageMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *MessageMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MessageMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type MessageMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *MessageMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *MessageMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *MessageMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *MessageRequestBuilder) SingleValueExtendedProperties() *MessageSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &MessageSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// MessageSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type MessageSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *MessageSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *MessageSingleValueExtendedPropertiesCollectionRequest {
+ return &MessageSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *MessageSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MessageSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type MessageSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *MessageSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *MessageSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *MessageSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MessageRuleActionsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MessageRuleActionsModel.go
new file mode 100644
index 00000000..150ce2b6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MessageRuleActionsModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MessageRuleActions undocumented
+type MessageRuleActions struct {
+ // Object is the base model of MessageRuleActions
+ Object
+ // MoveToFolder undocumented
+ MoveToFolder *string `json:"moveToFolder,omitempty"`
+ // CopyToFolder undocumented
+ CopyToFolder *string `json:"copyToFolder,omitempty"`
+ // Delete undocumented
+ Delete *bool `json:"delete,omitempty"`
+ // PermanentDelete undocumented
+ PermanentDelete *bool `json:"permanentDelete,omitempty"`
+ // MarkAsRead undocumented
+ MarkAsRead *bool `json:"markAsRead,omitempty"`
+ // MarkImportance undocumented
+ MarkImportance *Importance `json:"markImportance,omitempty"`
+ // ForwardTo undocumented
+ ForwardTo []Recipient `json:"forwardTo,omitempty"`
+ // ForwardAsAttachmentTo undocumented
+ ForwardAsAttachmentTo []Recipient `json:"forwardAsAttachmentTo,omitempty"`
+ // RedirectTo undocumented
+ RedirectTo []Recipient `json:"redirectTo,omitempty"`
+ // AssignCategories undocumented
+ AssignCategories []string `json:"assignCategories,omitempty"`
+ // StopProcessingRules undocumented
+ StopProcessingRules *bool `json:"stopProcessingRules,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MessageRuleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MessageRuleModel.go
new file mode 100644
index 00000000..5392f037
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MessageRuleModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MessageRule undocumented
+type MessageRule struct {
+ // Entity is the base model of MessageRule
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Sequence undocumented
+ Sequence *int `json:"sequence,omitempty"`
+ // Conditions undocumented
+ Conditions *MessageRulePredicates `json:"conditions,omitempty"`
+ // Actions undocumented
+ Actions *MessageRuleActions `json:"actions,omitempty"`
+ // Exceptions undocumented
+ Exceptions *MessageRulePredicates `json:"exceptions,omitempty"`
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // HasError undocumented
+ HasError *bool `json:"hasError,omitempty"`
+ // IsReadOnly undocumented
+ IsReadOnly *bool `json:"isReadOnly,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MessageRulePredicatesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MessageRulePredicatesModel.go
new file mode 100644
index 00000000..c5cae7b4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MessageRulePredicatesModel.go
@@ -0,0 +1,69 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MessageRulePredicates undocumented
+type MessageRulePredicates struct {
+ // Object is the base model of MessageRulePredicates
+ Object
+ // Categories undocumented
+ Categories []string `json:"categories,omitempty"`
+ // SubjectContains undocumented
+ SubjectContains []string `json:"subjectContains,omitempty"`
+ // BodyContains undocumented
+ BodyContains []string `json:"bodyContains,omitempty"`
+ // BodyOrSubjectContains undocumented
+ BodyOrSubjectContains []string `json:"bodyOrSubjectContains,omitempty"`
+ // SenderContains undocumented
+ SenderContains []string `json:"senderContains,omitempty"`
+ // RecipientContains undocumented
+ RecipientContains []string `json:"recipientContains,omitempty"`
+ // HeaderContains undocumented
+ HeaderContains []string `json:"headerContains,omitempty"`
+ // MessageActionFlag undocumented
+ MessageActionFlag *MessageActionFlag `json:"messageActionFlag,omitempty"`
+ // Importance undocumented
+ Importance *Importance `json:"importance,omitempty"`
+ // Sensitivity undocumented
+ Sensitivity *Sensitivity `json:"sensitivity,omitempty"`
+ // FromAddresses undocumented
+ FromAddresses []Recipient `json:"fromAddresses,omitempty"`
+ // SentToAddresses undocumented
+ SentToAddresses []Recipient `json:"sentToAddresses,omitempty"`
+ // SentToMe undocumented
+ SentToMe *bool `json:"sentToMe,omitempty"`
+ // SentOnlyToMe undocumented
+ SentOnlyToMe *bool `json:"sentOnlyToMe,omitempty"`
+ // SentCcMe undocumented
+ SentCcMe *bool `json:"sentCcMe,omitempty"`
+ // SentToOrCcMe undocumented
+ SentToOrCcMe *bool `json:"sentToOrCcMe,omitempty"`
+ // NotSentToMe undocumented
+ NotSentToMe *bool `json:"notSentToMe,omitempty"`
+ // HasAttachments undocumented
+ HasAttachments *bool `json:"hasAttachments,omitempty"`
+ // IsApprovalRequest undocumented
+ IsApprovalRequest *bool `json:"isApprovalRequest,omitempty"`
+ // IsAutomaticForward undocumented
+ IsAutomaticForward *bool `json:"isAutomaticForward,omitempty"`
+ // IsAutomaticReply undocumented
+ IsAutomaticReply *bool `json:"isAutomaticReply,omitempty"`
+ // IsEncrypted undocumented
+ IsEncrypted *bool `json:"isEncrypted,omitempty"`
+ // IsMeetingRequest undocumented
+ IsMeetingRequest *bool `json:"isMeetingRequest,omitempty"`
+ // IsMeetingResponse undocumented
+ IsMeetingResponse *bool `json:"isMeetingResponse,omitempty"`
+ // IsNonDeliveryReport undocumented
+ IsNonDeliveryReport *bool `json:"isNonDeliveryReport,omitempty"`
+ // IsPermissionControlled undocumented
+ IsPermissionControlled *bool `json:"isPermissionControlled,omitempty"`
+ // IsReadReceipt undocumented
+ IsReadReceipt *bool `json:"isReadReceipt,omitempty"`
+ // IsSigned undocumented
+ IsSigned *bool `json:"isSigned,omitempty"`
+ // IsVoicemail undocumented
+ IsVoicemail *bool `json:"isVoicemail,omitempty"`
+ // WithinSizeRange undocumented
+ WithinSizeRange *SizeRange `json:"withinSizeRange,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MessageRuleRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MessageRuleRequest.go
new file mode 100644
index 00000000..f0f1066a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MessageRuleRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MessageRuleRequestBuilder is request builder for MessageRule
+type MessageRuleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MessageRuleRequest
+func (b *MessageRuleRequestBuilder) Request() *MessageRuleRequest {
+ return &MessageRuleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MessageRuleRequest is request for MessageRule
+type MessageRuleRequest struct{ BaseRequest }
+
+// Get performs GET request for MessageRule
+func (r *MessageRuleRequest) Get(ctx context.Context) (resObj *MessageRule, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MessageRule
+func (r *MessageRuleRequest) Update(ctx context.Context, reqObj *MessageRule) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MessageRule
+func (r *MessageRuleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MetadataActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MetadataActionModel.go
new file mode 100644
index 00000000..36858178
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MetadataActionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MetadataAction undocumented
+type MetadataAction struct {
+ // InformationProtectionAction is the base model of MetadataAction
+ InformationProtectionAction
+ // MetadataToRemove undocumented
+ MetadataToRemove []string `json:"metadataToRemove,omitempty"`
+ // MetadataToAdd undocumented
+ MetadataToAdd []KeyValuePair `json:"metadataToAdd,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MetadataEntryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MetadataEntryModel.go
new file mode 100644
index 00000000..b6e80e0b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MetadataEntryModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MetadataEntry undocumented
+type MetadataEntry struct {
+ // Object is the base model of MetadataEntry
+ Object
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MeteredConnectionLimitTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MeteredConnectionLimitTypeEnum.go
new file mode 100644
index 00000000..c0587e2b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MeteredConnectionLimitTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MeteredConnectionLimitType undocumented
+type MeteredConnectionLimitType int
+
+const (
+ // MeteredConnectionLimitTypeVUnrestricted undocumented
+ MeteredConnectionLimitTypeVUnrestricted MeteredConnectionLimitType = 0
+ // MeteredConnectionLimitTypeVFixed undocumented
+ MeteredConnectionLimitTypeVFixed MeteredConnectionLimitType = 1
+ // MeteredConnectionLimitTypeVVariable undocumented
+ MeteredConnectionLimitTypeVVariable MeteredConnectionLimitType = 2
+)
+
+// MeteredConnectionLimitTypePUnrestricted returns a pointer to MeteredConnectionLimitTypeVUnrestricted
+func MeteredConnectionLimitTypePUnrestricted() *MeteredConnectionLimitType {
+ v := MeteredConnectionLimitTypeVUnrestricted
+ return &v
+}
+
+// MeteredConnectionLimitTypePFixed returns a pointer to MeteredConnectionLimitTypeVFixed
+func MeteredConnectionLimitTypePFixed() *MeteredConnectionLimitType {
+ v := MeteredConnectionLimitTypeVFixed
+ return &v
+}
+
+// MeteredConnectionLimitTypePVariable returns a pointer to MeteredConnectionLimitTypeVVariable
+func MeteredConnectionLimitTypePVariable() *MeteredConnectionLimitType {
+ v := MeteredConnectionLimitTypeVVariable
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MfaDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MfaDetailModel.go
new file mode 100644
index 00000000..12efcdc9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MfaDetailModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MFADetail undocumented
+type MFADetail struct {
+ // Object is the base model of MFADetail
+ Object
+ // AuthMethod undocumented
+ AuthMethod *string `json:"authMethod,omitempty"`
+ // AuthDetail undocumented
+ AuthDetail *string `json:"authDetail,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftEdgeChannelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftEdgeChannelEnum.go
new file mode 100644
index 00000000..5c46695f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftEdgeChannelEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MicrosoftEdgeChannel undocumented
+type MicrosoftEdgeChannel int
+
+const (
+ // MicrosoftEdgeChannelVDev undocumented
+ MicrosoftEdgeChannelVDev MicrosoftEdgeChannel = 0
+ // MicrosoftEdgeChannelVBeta undocumented
+ MicrosoftEdgeChannelVBeta MicrosoftEdgeChannel = 1
+ // MicrosoftEdgeChannelVStable undocumented
+ MicrosoftEdgeChannelVStable MicrosoftEdgeChannel = 2
+)
+
+// MicrosoftEdgeChannelPDev returns a pointer to MicrosoftEdgeChannelVDev
+func MicrosoftEdgeChannelPDev() *MicrosoftEdgeChannel {
+ v := MicrosoftEdgeChannelVDev
+ return &v
+}
+
+// MicrosoftEdgeChannelPBeta returns a pointer to MicrosoftEdgeChannelVBeta
+func MicrosoftEdgeChannelPBeta() *MicrosoftEdgeChannel {
+ v := MicrosoftEdgeChannelVBeta
+ return &v
+}
+
+// MicrosoftEdgeChannelPStable returns a pointer to MicrosoftEdgeChannelVStable
+func MicrosoftEdgeChannelPStable() *MicrosoftEdgeChannel {
+ v := MicrosoftEdgeChannelVStable
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessAppAssignmentSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessAppAssignmentSettingsModel.go
new file mode 100644
index 00000000..860eb4e6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessAppAssignmentSettingsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MicrosoftStoreForBusinessAppAssignmentSettings undocumented
+type MicrosoftStoreForBusinessAppAssignmentSettings struct {
+ // MobileAppAssignmentSettings is the base model of MicrosoftStoreForBusinessAppAssignmentSettings
+ MobileAppAssignmentSettings
+ // UseDeviceContext Whether or not to use device execution context for Microsoft Store for Business mobile app.
+ UseDeviceContext *bool `json:"useDeviceContext,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessAppModel.go
new file mode 100644
index 00000000..f3b2db9a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessAppModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MicrosoftStoreForBusinessApp Microsoft Store for Business Apps. This class does not support Create, Delete, or Update.
+type MicrosoftStoreForBusinessApp struct {
+ // MobileApp is the base model of MicrosoftStoreForBusinessApp
+ MobileApp
+ // UsedLicenseCount The number of Microsoft Store for Business licenses in use.
+ UsedLicenseCount *int `json:"usedLicenseCount,omitempty"`
+ // TotalLicenseCount The total number of Microsoft Store for Business licenses.
+ TotalLicenseCount *int `json:"totalLicenseCount,omitempty"`
+ // ProductKey The app product key
+ ProductKey *string `json:"productKey,omitempty"`
+ // LicenseType The app license type
+ LicenseType *MicrosoftStoreForBusinessLicenseType `json:"licenseType,omitempty"`
+ // PackageIdentityName The app package identifier
+ PackageIdentityName *string `json:"packageIdentityName,omitempty"`
+ // LicensingType The supported License Type.
+ LicensingType *VppLicensingType `json:"licensingType,omitempty"`
+ // ContainedApps undocumented
+ ContainedApps []MobileContainedApp `json:"containedApps,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessAppRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessAppRequest.go
new file mode 100644
index 00000000..5a899f0e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessAppRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MicrosoftStoreForBusinessAppRequestBuilder is request builder for MicrosoftStoreForBusinessApp
+type MicrosoftStoreForBusinessAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MicrosoftStoreForBusinessAppRequest
+func (b *MicrosoftStoreForBusinessAppRequestBuilder) Request() *MicrosoftStoreForBusinessAppRequest {
+ return &MicrosoftStoreForBusinessAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MicrosoftStoreForBusinessAppRequest is request for MicrosoftStoreForBusinessApp
+type MicrosoftStoreForBusinessAppRequest struct{ BaseRequest }
+
+// Get performs GET request for MicrosoftStoreForBusinessApp
+func (r *MicrosoftStoreForBusinessAppRequest) Get(ctx context.Context) (resObj *MicrosoftStoreForBusinessApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MicrosoftStoreForBusinessApp
+func (r *MicrosoftStoreForBusinessAppRequest) Update(ctx context.Context, reqObj *MicrosoftStoreForBusinessApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MicrosoftStoreForBusinessApp
+func (r *MicrosoftStoreForBusinessAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ContainedApps returns request builder for MobileContainedApp collection
+func (b *MicrosoftStoreForBusinessAppRequestBuilder) ContainedApps() *MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder {
+ bb := &MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/containedApps"
+ return bb
+}
+
+// MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder is request builder for MobileContainedApp collection
+type MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileContainedApp collection
+func (b *MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder) Request() *MicrosoftStoreForBusinessAppContainedAppsCollectionRequest {
+ return &MicrosoftStoreForBusinessAppContainedAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileContainedApp item
+func (b *MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder) ID(id string) *MobileContainedAppRequestBuilder {
+ bb := &MobileContainedAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MicrosoftStoreForBusinessAppContainedAppsCollectionRequest is request for MobileContainedApp collection
+type MicrosoftStoreForBusinessAppContainedAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileContainedApp collection
+func (r *MicrosoftStoreForBusinessAppContainedAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MobileContainedApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileContainedApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileContainedApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileContainedApp collection
+func (r *MicrosoftStoreForBusinessAppContainedAppsCollectionRequest) Get(ctx context.Context) ([]MobileContainedApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MobileContainedApp collection
+func (r *MicrosoftStoreForBusinessAppContainedAppsCollectionRequest) Add(ctx context.Context, reqObj *MobileContainedApp) (resObj *MobileContainedApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessContainedAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessContainedAppModel.go
new file mode 100644
index 00000000..74faf3a9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessContainedAppModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MicrosoftStoreForBusinessContainedApp A class that represents a contained app of a MicrosoftStoreForBusinessApp.
+type MicrosoftStoreForBusinessContainedApp struct {
+ // MobileContainedApp is the base model of MicrosoftStoreForBusinessContainedApp
+ MobileContainedApp
+ // AppUserModelID The app user model ID of the contained app of a MicrosoftStoreForBusinessApp.
+ AppUserModelID *string `json:"appUserModelId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessLicenseTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessLicenseTypeEnum.go
new file mode 100644
index 00000000..1920ad84
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessLicenseTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MicrosoftStoreForBusinessLicenseType undocumented
+type MicrosoftStoreForBusinessLicenseType int
+
+const (
+ // MicrosoftStoreForBusinessLicenseTypeVOffline undocumented
+ MicrosoftStoreForBusinessLicenseTypeVOffline MicrosoftStoreForBusinessLicenseType = 0
+ // MicrosoftStoreForBusinessLicenseTypeVOnline undocumented
+ MicrosoftStoreForBusinessLicenseTypeVOnline MicrosoftStoreForBusinessLicenseType = 1
+)
+
+// MicrosoftStoreForBusinessLicenseTypePOffline returns a pointer to MicrosoftStoreForBusinessLicenseTypeVOffline
+func MicrosoftStoreForBusinessLicenseTypePOffline() *MicrosoftStoreForBusinessLicenseType {
+ v := MicrosoftStoreForBusinessLicenseTypeVOffline
+ return &v
+}
+
+// MicrosoftStoreForBusinessLicenseTypePOnline returns a pointer to MicrosoftStoreForBusinessLicenseTypeVOnline
+func MicrosoftStoreForBusinessLicenseTypePOnline() *MicrosoftStoreForBusinessLicenseType {
+ v := MicrosoftStoreForBusinessLicenseTypeVOnline
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessPortalSelectionOptionsEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessPortalSelectionOptionsEnum.go
new file mode 100644
index 00000000..c328c2d0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MicrosoftStoreForBusinessPortalSelectionOptionsEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MicrosoftStoreForBusinessPortalSelectionOptions undocumented
+type MicrosoftStoreForBusinessPortalSelectionOptions int
+
+const (
+ // MicrosoftStoreForBusinessPortalSelectionOptionsVNone undocumented
+ MicrosoftStoreForBusinessPortalSelectionOptionsVNone MicrosoftStoreForBusinessPortalSelectionOptions = 0
+ // MicrosoftStoreForBusinessPortalSelectionOptionsVCompanyPortal undocumented
+ MicrosoftStoreForBusinessPortalSelectionOptionsVCompanyPortal MicrosoftStoreForBusinessPortalSelectionOptions = 1
+ // MicrosoftStoreForBusinessPortalSelectionOptionsVPrivateStore undocumented
+ MicrosoftStoreForBusinessPortalSelectionOptionsVPrivateStore MicrosoftStoreForBusinessPortalSelectionOptions = 2
+)
+
+// MicrosoftStoreForBusinessPortalSelectionOptionsPNone returns a pointer to MicrosoftStoreForBusinessPortalSelectionOptionsVNone
+func MicrosoftStoreForBusinessPortalSelectionOptionsPNone() *MicrosoftStoreForBusinessPortalSelectionOptions {
+ v := MicrosoftStoreForBusinessPortalSelectionOptionsVNone
+ return &v
+}
+
+// MicrosoftStoreForBusinessPortalSelectionOptionsPCompanyPortal returns a pointer to MicrosoftStoreForBusinessPortalSelectionOptionsVCompanyPortal
+func MicrosoftStoreForBusinessPortalSelectionOptionsPCompanyPortal() *MicrosoftStoreForBusinessPortalSelectionOptions {
+ v := MicrosoftStoreForBusinessPortalSelectionOptionsVCompanyPortal
+ return &v
+}
+
+// MicrosoftStoreForBusinessPortalSelectionOptionsPPrivateStore returns a pointer to MicrosoftStoreForBusinessPortalSelectionOptionsVPrivateStore
+func MicrosoftStoreForBusinessPortalSelectionOptionsPPrivateStore() *MicrosoftStoreForBusinessPortalSelectionOptions {
+ v := MicrosoftStoreForBusinessPortalSelectionOptionsVPrivateStore
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MigrationStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MigrationStatusEnum.go
new file mode 100644
index 00000000..02b2a8a1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MigrationStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MigrationStatus undocumented
+type MigrationStatus int
+
+const (
+ // MigrationStatusVReady undocumented
+ MigrationStatusVReady MigrationStatus = 0
+ // MigrationStatusVNeedsReview undocumented
+ MigrationStatusVNeedsReview MigrationStatus = 1
+ // MigrationStatusVAdditionalStepsRequired undocumented
+ MigrationStatusVAdditionalStepsRequired MigrationStatus = 2
+ // MigrationStatusVUnknownFutureValue undocumented
+ MigrationStatusVUnknownFutureValue MigrationStatus = 3
+)
+
+// MigrationStatusPReady returns a pointer to MigrationStatusVReady
+func MigrationStatusPReady() *MigrationStatus {
+ v := MigrationStatusVReady
+ return &v
+}
+
+// MigrationStatusPNeedsReview returns a pointer to MigrationStatusVNeedsReview
+func MigrationStatusPNeedsReview() *MigrationStatus {
+ v := MigrationStatusVNeedsReview
+ return &v
+}
+
+// MigrationStatusPAdditionalStepsRequired returns a pointer to MigrationStatusVAdditionalStepsRequired
+func MigrationStatusPAdditionalStepsRequired() *MigrationStatus {
+ v := MigrationStatusVAdditionalStepsRequired
+ return &v
+}
+
+// MigrationStatusPUnknownFutureValue returns a pointer to MigrationStatusVUnknownFutureValue
+func MigrationStatusPUnknownFutureValue() *MigrationStatus {
+ v := MigrationStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MimeContentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MimeContentModel.go
new file mode 100644
index 00000000..3742495a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MimeContentModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MimeContent undocumented
+type MimeContent struct {
+ // Object is the base model of MimeContent
+ Object
+ // Type Indicates the content mime type.
+ Type *string `json:"type,omitempty"`
+ // Value The byte array that contains the actual content.
+ Value *Binary `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MiracastChannelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MiracastChannelEnum.go
new file mode 100644
index 00000000..04bc2286
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MiracastChannelEnum.go
@@ -0,0 +1,177 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MiracastChannel undocumented
+type MiracastChannel int
+
+const (
+ // MiracastChannelVUserDefined undocumented
+ MiracastChannelVUserDefined MiracastChannel = 0
+ // MiracastChannelVOne undocumented
+ MiracastChannelVOne MiracastChannel = 1
+ // MiracastChannelVTwo undocumented
+ MiracastChannelVTwo MiracastChannel = 2
+ // MiracastChannelVThree undocumented
+ MiracastChannelVThree MiracastChannel = 3
+ // MiracastChannelVFour undocumented
+ MiracastChannelVFour MiracastChannel = 4
+ // MiracastChannelVFive undocumented
+ MiracastChannelVFive MiracastChannel = 5
+ // MiracastChannelVSix undocumented
+ MiracastChannelVSix MiracastChannel = 6
+ // MiracastChannelVSeven undocumented
+ MiracastChannelVSeven MiracastChannel = 7
+ // MiracastChannelVEight undocumented
+ MiracastChannelVEight MiracastChannel = 8
+ // MiracastChannelVNine undocumented
+ MiracastChannelVNine MiracastChannel = 9
+ // MiracastChannelVTen undocumented
+ MiracastChannelVTen MiracastChannel = 10
+ // MiracastChannelVEleven undocumented
+ MiracastChannelVEleven MiracastChannel = 11
+ // MiracastChannelVThirtySix undocumented
+ MiracastChannelVThirtySix MiracastChannel = 36
+ // MiracastChannelVForty undocumented
+ MiracastChannelVForty MiracastChannel = 40
+ // MiracastChannelVFortyFour undocumented
+ MiracastChannelVFortyFour MiracastChannel = 44
+ // MiracastChannelVFortyEight undocumented
+ MiracastChannelVFortyEight MiracastChannel = 48
+ // MiracastChannelVOneHundredFortyNine undocumented
+ MiracastChannelVOneHundredFortyNine MiracastChannel = 149
+ // MiracastChannelVOneHundredFiftyThree undocumented
+ MiracastChannelVOneHundredFiftyThree MiracastChannel = 153
+ // MiracastChannelVOneHundredFiftySeven undocumented
+ MiracastChannelVOneHundredFiftySeven MiracastChannel = 157
+ // MiracastChannelVOneHundredSixtyOne undocumented
+ MiracastChannelVOneHundredSixtyOne MiracastChannel = 161
+ // MiracastChannelVOneHundredSixtyFive undocumented
+ MiracastChannelVOneHundredSixtyFive MiracastChannel = 165
+)
+
+// MiracastChannelPUserDefined returns a pointer to MiracastChannelVUserDefined
+func MiracastChannelPUserDefined() *MiracastChannel {
+ v := MiracastChannelVUserDefined
+ return &v
+}
+
+// MiracastChannelPOne returns a pointer to MiracastChannelVOne
+func MiracastChannelPOne() *MiracastChannel {
+ v := MiracastChannelVOne
+ return &v
+}
+
+// MiracastChannelPTwo returns a pointer to MiracastChannelVTwo
+func MiracastChannelPTwo() *MiracastChannel {
+ v := MiracastChannelVTwo
+ return &v
+}
+
+// MiracastChannelPThree returns a pointer to MiracastChannelVThree
+func MiracastChannelPThree() *MiracastChannel {
+ v := MiracastChannelVThree
+ return &v
+}
+
+// MiracastChannelPFour returns a pointer to MiracastChannelVFour
+func MiracastChannelPFour() *MiracastChannel {
+ v := MiracastChannelVFour
+ return &v
+}
+
+// MiracastChannelPFive returns a pointer to MiracastChannelVFive
+func MiracastChannelPFive() *MiracastChannel {
+ v := MiracastChannelVFive
+ return &v
+}
+
+// MiracastChannelPSix returns a pointer to MiracastChannelVSix
+func MiracastChannelPSix() *MiracastChannel {
+ v := MiracastChannelVSix
+ return &v
+}
+
+// MiracastChannelPSeven returns a pointer to MiracastChannelVSeven
+func MiracastChannelPSeven() *MiracastChannel {
+ v := MiracastChannelVSeven
+ return &v
+}
+
+// MiracastChannelPEight returns a pointer to MiracastChannelVEight
+func MiracastChannelPEight() *MiracastChannel {
+ v := MiracastChannelVEight
+ return &v
+}
+
+// MiracastChannelPNine returns a pointer to MiracastChannelVNine
+func MiracastChannelPNine() *MiracastChannel {
+ v := MiracastChannelVNine
+ return &v
+}
+
+// MiracastChannelPTen returns a pointer to MiracastChannelVTen
+func MiracastChannelPTen() *MiracastChannel {
+ v := MiracastChannelVTen
+ return &v
+}
+
+// MiracastChannelPEleven returns a pointer to MiracastChannelVEleven
+func MiracastChannelPEleven() *MiracastChannel {
+ v := MiracastChannelVEleven
+ return &v
+}
+
+// MiracastChannelPThirtySix returns a pointer to MiracastChannelVThirtySix
+func MiracastChannelPThirtySix() *MiracastChannel {
+ v := MiracastChannelVThirtySix
+ return &v
+}
+
+// MiracastChannelPForty returns a pointer to MiracastChannelVForty
+func MiracastChannelPForty() *MiracastChannel {
+ v := MiracastChannelVForty
+ return &v
+}
+
+// MiracastChannelPFortyFour returns a pointer to MiracastChannelVFortyFour
+func MiracastChannelPFortyFour() *MiracastChannel {
+ v := MiracastChannelVFortyFour
+ return &v
+}
+
+// MiracastChannelPFortyEight returns a pointer to MiracastChannelVFortyEight
+func MiracastChannelPFortyEight() *MiracastChannel {
+ v := MiracastChannelVFortyEight
+ return &v
+}
+
+// MiracastChannelPOneHundredFortyNine returns a pointer to MiracastChannelVOneHundredFortyNine
+func MiracastChannelPOneHundredFortyNine() *MiracastChannel {
+ v := MiracastChannelVOneHundredFortyNine
+ return &v
+}
+
+// MiracastChannelPOneHundredFiftyThree returns a pointer to MiracastChannelVOneHundredFiftyThree
+func MiracastChannelPOneHundredFiftyThree() *MiracastChannel {
+ v := MiracastChannelVOneHundredFiftyThree
+ return &v
+}
+
+// MiracastChannelPOneHundredFiftySeven returns a pointer to MiracastChannelVOneHundredFiftySeven
+func MiracastChannelPOneHundredFiftySeven() *MiracastChannel {
+ v := MiracastChannelVOneHundredFiftySeven
+ return &v
+}
+
+// MiracastChannelPOneHundredSixtyOne returns a pointer to MiracastChannelVOneHundredSixtyOne
+func MiracastChannelPOneHundredSixtyOne() *MiracastChannel {
+ v := MiracastChannelVOneHundredSixtyOne
+ return &v
+}
+
+// MiracastChannelPOneHundredSixtyFive returns a pointer to MiracastChannelVOneHundredSixtyFive
+func MiracastChannelPOneHundredSixtyFive() *MiracastChannel {
+ v := MiracastChannelVOneHundredSixtyFive
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppAction.go
new file mode 100644
index 00000000..50dd490f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppAction.go
@@ -0,0 +1,164 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MobileAppCollectionHasPayloadLinksRequestParameter undocumented
+type MobileAppCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// MobileAppAssignRequestParameter undocumented
+type MobileAppAssignRequestParameter struct {
+ // MobileAppAssignments undocumented
+ MobileAppAssignments []MobileAppAssignment `json:"mobileAppAssignments,omitempty"`
+}
+
+// MobileAppUpdateRelationshipsRequestParameter undocumented
+type MobileAppUpdateRelationshipsRequestParameter struct {
+ // Relationships undocumented
+ Relationships []MobileAppRelationship `json:"relationships,omitempty"`
+}
+
+//
+type MobileAppCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceAppManagementMobileAppsCollectionRequestBuilder) HasPayloadLinks(reqObj *MobileAppCollectionHasPayloadLinksRequestParameter) *MobileAppCollectionHasPayloadLinksRequestBuilder {
+ bb := &MobileAppCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MobileAppCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *MobileAppCollectionHasPayloadLinksRequestBuilder) Request() *MobileAppCollectionHasPayloadLinksRequest {
+ return &MobileAppCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MobileAppCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *MobileAppCollectionHasPayloadLinksRequest) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type MobileAppAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *MobileAppRequestBuilder) Assign(reqObj *MobileAppAssignRequestParameter) *MobileAppAssignRequestBuilder {
+ bb := &MobileAppAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MobileAppAssignRequest struct{ BaseRequest }
+
+//
+func (b *MobileAppAssignRequestBuilder) Request() *MobileAppAssignRequest {
+ return &MobileAppAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MobileAppAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type MobileAppUpdateRelationshipsRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateRelationships action undocumented
+func (b *MobileAppRequestBuilder) UpdateRelationships(reqObj *MobileAppUpdateRelationshipsRequestParameter) *MobileAppUpdateRelationshipsRequestBuilder {
+ bb := &MobileAppUpdateRelationshipsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateRelationships"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MobileAppUpdateRelationshipsRequest struct{ BaseRequest }
+
+//
+func (b *MobileAppUpdateRelationshipsRequestBuilder) Request() *MobileAppUpdateRelationshipsRequest {
+ return &MobileAppUpdateRelationshipsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MobileAppUpdateRelationshipsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppActionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppActionTypeEnum.go
new file mode 100644
index 00000000..03637b97
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppActionTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppActionType undocumented
+type MobileAppActionType int
+
+const (
+ // MobileAppActionTypeVUnknown undocumented
+ MobileAppActionTypeVUnknown MobileAppActionType = 0
+ // MobileAppActionTypeVInstallCommandSent undocumented
+ MobileAppActionTypeVInstallCommandSent MobileAppActionType = 1
+ // MobileAppActionTypeVInstalled undocumented
+ MobileAppActionTypeVInstalled MobileAppActionType = 3
+ // MobileAppActionTypeVUninstalled undocumented
+ MobileAppActionTypeVUninstalled MobileAppActionType = 4
+ // MobileAppActionTypeVUserRequestedInstall undocumented
+ MobileAppActionTypeVUserRequestedInstall MobileAppActionType = 5
+)
+
+// MobileAppActionTypePUnknown returns a pointer to MobileAppActionTypeVUnknown
+func MobileAppActionTypePUnknown() *MobileAppActionType {
+ v := MobileAppActionTypeVUnknown
+ return &v
+}
+
+// MobileAppActionTypePInstallCommandSent returns a pointer to MobileAppActionTypeVInstallCommandSent
+func MobileAppActionTypePInstallCommandSent() *MobileAppActionType {
+ v := MobileAppActionTypeVInstallCommandSent
+ return &v
+}
+
+// MobileAppActionTypePInstalled returns a pointer to MobileAppActionTypeVInstalled
+func MobileAppActionTypePInstalled() *MobileAppActionType {
+ v := MobileAppActionTypeVInstalled
+ return &v
+}
+
+// MobileAppActionTypePUninstalled returns a pointer to MobileAppActionTypeVUninstalled
+func MobileAppActionTypePUninstalled() *MobileAppActionType {
+ v := MobileAppActionTypeVUninstalled
+ return &v
+}
+
+// MobileAppActionTypePUserRequestedInstall returns a pointer to MobileAppActionTypeVUserRequestedInstall
+func MobileAppActionTypePUserRequestedInstall() *MobileAppActionType {
+ v := MobileAppActionTypeVUserRequestedInstall
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppAssignmentModel.go
new file mode 100644
index 00000000..99823aca
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppAssignmentModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppAssignment A class containing the properties used for Group Assignment of a Mobile App.
+type MobileAppAssignment struct {
+ // Entity is the base model of MobileAppAssignment
+ Entity
+ // Intent The install intent defined by the admin.
+ Intent *InstallIntent `json:"intent,omitempty"`
+ // Target The target group assignment defined by the admin.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+ // Settings The settings for target assignment defined by the admin.
+ Settings *MobileAppAssignmentSettings `json:"settings,omitempty"`
+ // Source The resource type which is the source for the assignment.
+ Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"`
+ // SourceID The identifier of the source of the assignment.
+ SourceID *string `json:"sourceId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppAssignmentRequest.go
new file mode 100644
index 00000000..64071c5a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MobileAppAssignmentRequestBuilder is request builder for MobileAppAssignment
+type MobileAppAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppAssignmentRequest
+func (b *MobileAppAssignmentRequestBuilder) Request() *MobileAppAssignmentRequest {
+ return &MobileAppAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppAssignmentRequest is request for MobileAppAssignment
+type MobileAppAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppAssignment
+func (r *MobileAppAssignmentRequest) Get(ctx context.Context) (resObj *MobileAppAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppAssignment
+func (r *MobileAppAssignmentRequest) Update(ctx context.Context, reqObj *MobileAppAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppAssignment
+func (r *MobileAppAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppAssignmentSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppAssignmentSettingsModel.go
new file mode 100644
index 00000000..b6136a13
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppAssignmentSettingsModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppAssignmentSettings undocumented
+type MobileAppAssignmentSettings struct {
+ // Object is the base model of MobileAppAssignmentSettings
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppCategoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppCategoryModel.go
new file mode 100644
index 00000000..df61056d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppCategoryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MobileAppCategory Contains properties for a single Intune app category.
+type MobileAppCategory struct {
+ // Entity is the base model of MobileAppCategory
+ Entity
+ // DisplayName The name of the app category.
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime The date and time the mobileAppCategory was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppCategoryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppCategoryRequest.go
new file mode 100644
index 00000000..e52d4d8a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppCategoryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MobileAppCategoryRequestBuilder is request builder for MobileAppCategory
+type MobileAppCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppCategoryRequest
+func (b *MobileAppCategoryRequestBuilder) Request() *MobileAppCategoryRequest {
+ return &MobileAppCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppCategoryRequest is request for MobileAppCategory
+type MobileAppCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppCategory
+func (r *MobileAppCategoryRequest) Get(ctx context.Context) (resObj *MobileAppCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppCategory
+func (r *MobileAppCategoryRequest) Update(ctx context.Context, reqObj *MobileAppCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppCategory
+func (r *MobileAppCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentFileAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentFileAction.go
new file mode 100644
index 00000000..a0e29592
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentFileAction.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MobileAppContentFileCommitRequestParameter undocumented
+type MobileAppContentFileCommitRequestParameter struct {
+ // FileEncryptionInfo undocumented
+ FileEncryptionInfo *FileEncryptionInfo `json:"fileEncryptionInfo,omitempty"`
+}
+
+// MobileAppContentFileRenewUploadRequestParameter undocumented
+type MobileAppContentFileRenewUploadRequestParameter struct {
+}
+
+//
+type MobileAppContentFileCommitRequestBuilder struct{ BaseRequestBuilder }
+
+// Commit action undocumented
+func (b *MobileAppContentFileRequestBuilder) Commit(reqObj *MobileAppContentFileCommitRequestParameter) *MobileAppContentFileCommitRequestBuilder {
+ bb := &MobileAppContentFileCommitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/commit"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MobileAppContentFileCommitRequest struct{ BaseRequest }
+
+//
+func (b *MobileAppContentFileCommitRequestBuilder) Request() *MobileAppContentFileCommitRequest {
+ return &MobileAppContentFileCommitRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MobileAppContentFileCommitRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type MobileAppContentFileRenewUploadRequestBuilder struct{ BaseRequestBuilder }
+
+// RenewUpload action undocumented
+func (b *MobileAppContentFileRequestBuilder) RenewUpload(reqObj *MobileAppContentFileRenewUploadRequestParameter) *MobileAppContentFileRenewUploadRequestBuilder {
+ bb := &MobileAppContentFileRenewUploadRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/renewUpload"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MobileAppContentFileRenewUploadRequest struct{ BaseRequest }
+
+//
+func (b *MobileAppContentFileRenewUploadRequestBuilder) Request() *MobileAppContentFileRenewUploadRequest {
+ return &MobileAppContentFileRenewUploadRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MobileAppContentFileRenewUploadRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentFileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentFileModel.go
new file mode 100644
index 00000000..e1cb4fe4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentFileModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MobileAppContentFile Contains properties for a single installer file that is associated with a given mobileAppContent version.
+type MobileAppContentFile struct {
+ // Entity is the base model of MobileAppContentFile
+ Entity
+ // AzureStorageURI The Azure Storage URI.
+ AzureStorageURI *string `json:"azureStorageUri,omitempty"`
+ // IsCommitted A value indicating whether the file is committed.
+ IsCommitted *bool `json:"isCommitted,omitempty"`
+ // CreatedDateTime The time the file was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Name the file name.
+ Name *string `json:"name,omitempty"`
+ // Size The size of the file prior to encryption.
+ Size *int `json:"size,omitempty"`
+ // SizeEncrypted The size of the file after encryption.
+ SizeEncrypted *int `json:"sizeEncrypted,omitempty"`
+ // AzureStorageURIExpirationDateTime The time the Azure storage Uri expires.
+ AzureStorageURIExpirationDateTime *time.Time `json:"azureStorageUriExpirationDateTime,omitempty"`
+ // Manifest The manifest information.
+ Manifest *Binary `json:"manifest,omitempty"`
+ // UploadState The state of the current upload request.
+ UploadState *MobileAppContentFileUploadState `json:"uploadState,omitempty"`
+ // IsFrameworkFile A value indicating whether the file is a framework file.
+ IsFrameworkFile *bool `json:"isFrameworkFile,omitempty"`
+ // IsDependency Whether the content file is a dependency for the main content file.
+ IsDependency *bool `json:"isDependency,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentFileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentFileRequest.go
new file mode 100644
index 00000000..403b5edd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentFileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MobileAppContentFileRequestBuilder is request builder for MobileAppContentFile
+type MobileAppContentFileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppContentFileRequest
+func (b *MobileAppContentFileRequestBuilder) Request() *MobileAppContentFileRequest {
+ return &MobileAppContentFileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppContentFileRequest is request for MobileAppContentFile
+type MobileAppContentFileRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppContentFile
+func (r *MobileAppContentFileRequest) Get(ctx context.Context) (resObj *MobileAppContentFile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppContentFile
+func (r *MobileAppContentFileRequest) Update(ctx context.Context, reqObj *MobileAppContentFile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppContentFile
+func (r *MobileAppContentFileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentFileUploadStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentFileUploadStateEnum.go
new file mode 100644
index 00000000..75828707
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentFileUploadStateEnum.go
@@ -0,0 +1,137 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppContentFileUploadState undocumented
+type MobileAppContentFileUploadState int
+
+const (
+ // MobileAppContentFileUploadStateVSuccess undocumented
+ MobileAppContentFileUploadStateVSuccess MobileAppContentFileUploadState = 0
+ // MobileAppContentFileUploadStateVTransientError undocumented
+ MobileAppContentFileUploadStateVTransientError MobileAppContentFileUploadState = 1
+ // MobileAppContentFileUploadStateVError undocumented
+ MobileAppContentFileUploadStateVError MobileAppContentFileUploadState = 2
+ // MobileAppContentFileUploadStateVUnknown undocumented
+ MobileAppContentFileUploadStateVUnknown MobileAppContentFileUploadState = 3
+ // MobileAppContentFileUploadStateVAzureStorageURIRequestSuccess undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRequestSuccess MobileAppContentFileUploadState = 100
+ // MobileAppContentFileUploadStateVAzureStorageURIRequestPending undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRequestPending MobileAppContentFileUploadState = 101
+ // MobileAppContentFileUploadStateVAzureStorageURIRequestFailed undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRequestFailed MobileAppContentFileUploadState = 102
+ // MobileAppContentFileUploadStateVAzureStorageURIRequestTimedOut undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRequestTimedOut MobileAppContentFileUploadState = 103
+ // MobileAppContentFileUploadStateVAzureStorageURIRenewalSuccess undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRenewalSuccess MobileAppContentFileUploadState = 200
+ // MobileAppContentFileUploadStateVAzureStorageURIRenewalPending undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRenewalPending MobileAppContentFileUploadState = 201
+ // MobileAppContentFileUploadStateVAzureStorageURIRenewalFailed undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRenewalFailed MobileAppContentFileUploadState = 202
+ // MobileAppContentFileUploadStateVAzureStorageURIRenewalTimedOut undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRenewalTimedOut MobileAppContentFileUploadState = 203
+ // MobileAppContentFileUploadStateVCommitFileSuccess undocumented
+ MobileAppContentFileUploadStateVCommitFileSuccess MobileAppContentFileUploadState = 300
+ // MobileAppContentFileUploadStateVCommitFilePending undocumented
+ MobileAppContentFileUploadStateVCommitFilePending MobileAppContentFileUploadState = 301
+ // MobileAppContentFileUploadStateVCommitFileFailed undocumented
+ MobileAppContentFileUploadStateVCommitFileFailed MobileAppContentFileUploadState = 302
+ // MobileAppContentFileUploadStateVCommitFileTimedOut undocumented
+ MobileAppContentFileUploadStateVCommitFileTimedOut MobileAppContentFileUploadState = 303
+)
+
+// MobileAppContentFileUploadStatePSuccess returns a pointer to MobileAppContentFileUploadStateVSuccess
+func MobileAppContentFileUploadStatePSuccess() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVSuccess
+ return &v
+}
+
+// MobileAppContentFileUploadStatePTransientError returns a pointer to MobileAppContentFileUploadStateVTransientError
+func MobileAppContentFileUploadStatePTransientError() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVTransientError
+ return &v
+}
+
+// MobileAppContentFileUploadStatePError returns a pointer to MobileAppContentFileUploadStateVError
+func MobileAppContentFileUploadStatePError() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVError
+ return &v
+}
+
+// MobileAppContentFileUploadStatePUnknown returns a pointer to MobileAppContentFileUploadStateVUnknown
+func MobileAppContentFileUploadStatePUnknown() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVUnknown
+ return &v
+}
+
+// MobileAppContentFileUploadStatePAzureStorageURIRequestSuccess returns a pointer to MobileAppContentFileUploadStateVAzureStorageURIRequestSuccess
+func MobileAppContentFileUploadStatePAzureStorageURIRequestSuccess() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVAzureStorageURIRequestSuccess
+ return &v
+}
+
+// MobileAppContentFileUploadStatePAzureStorageURIRequestPending returns a pointer to MobileAppContentFileUploadStateVAzureStorageURIRequestPending
+func MobileAppContentFileUploadStatePAzureStorageURIRequestPending() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVAzureStorageURIRequestPending
+ return &v
+}
+
+// MobileAppContentFileUploadStatePAzureStorageURIRequestFailed returns a pointer to MobileAppContentFileUploadStateVAzureStorageURIRequestFailed
+func MobileAppContentFileUploadStatePAzureStorageURIRequestFailed() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVAzureStorageURIRequestFailed
+ return &v
+}
+
+// MobileAppContentFileUploadStatePAzureStorageURIRequestTimedOut returns a pointer to MobileAppContentFileUploadStateVAzureStorageURIRequestTimedOut
+func MobileAppContentFileUploadStatePAzureStorageURIRequestTimedOut() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVAzureStorageURIRequestTimedOut
+ return &v
+}
+
+// MobileAppContentFileUploadStatePAzureStorageURIRenewalSuccess returns a pointer to MobileAppContentFileUploadStateVAzureStorageURIRenewalSuccess
+func MobileAppContentFileUploadStatePAzureStorageURIRenewalSuccess() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVAzureStorageURIRenewalSuccess
+ return &v
+}
+
+// MobileAppContentFileUploadStatePAzureStorageURIRenewalPending returns a pointer to MobileAppContentFileUploadStateVAzureStorageURIRenewalPending
+func MobileAppContentFileUploadStatePAzureStorageURIRenewalPending() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVAzureStorageURIRenewalPending
+ return &v
+}
+
+// MobileAppContentFileUploadStatePAzureStorageURIRenewalFailed returns a pointer to MobileAppContentFileUploadStateVAzureStorageURIRenewalFailed
+func MobileAppContentFileUploadStatePAzureStorageURIRenewalFailed() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVAzureStorageURIRenewalFailed
+ return &v
+}
+
+// MobileAppContentFileUploadStatePAzureStorageURIRenewalTimedOut returns a pointer to MobileAppContentFileUploadStateVAzureStorageURIRenewalTimedOut
+func MobileAppContentFileUploadStatePAzureStorageURIRenewalTimedOut() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVAzureStorageURIRenewalTimedOut
+ return &v
+}
+
+// MobileAppContentFileUploadStatePCommitFileSuccess returns a pointer to MobileAppContentFileUploadStateVCommitFileSuccess
+func MobileAppContentFileUploadStatePCommitFileSuccess() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVCommitFileSuccess
+ return &v
+}
+
+// MobileAppContentFileUploadStatePCommitFilePending returns a pointer to MobileAppContentFileUploadStateVCommitFilePending
+func MobileAppContentFileUploadStatePCommitFilePending() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVCommitFilePending
+ return &v
+}
+
+// MobileAppContentFileUploadStatePCommitFileFailed returns a pointer to MobileAppContentFileUploadStateVCommitFileFailed
+func MobileAppContentFileUploadStatePCommitFileFailed() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVCommitFileFailed
+ return &v
+}
+
+// MobileAppContentFileUploadStatePCommitFileTimedOut returns a pointer to MobileAppContentFileUploadStateVCommitFileTimedOut
+func MobileAppContentFileUploadStatePCommitFileTimedOut() *MobileAppContentFileUploadState {
+ v := MobileAppContentFileUploadStateVCommitFileTimedOut
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentModel.go
new file mode 100644
index 00000000..dfd26d0e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppContent Contains content properties for a specific app version. Each mobileAppContent can have multiple mobileAppContentFile.
+type MobileAppContent struct {
+ // Entity is the base model of MobileAppContent
+ Entity
+ // Files undocumented
+ Files []MobileAppContentFile `json:"files,omitempty"`
+ // ContainedApps undocumented
+ ContainedApps []MobileContainedApp `json:"containedApps,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentRequest.go
new file mode 100644
index 00000000..a8aff6a9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppContentRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MobileAppContentRequestBuilder is request builder for MobileAppContent
+type MobileAppContentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppContentRequest
+func (b *MobileAppContentRequestBuilder) Request() *MobileAppContentRequest {
+ return &MobileAppContentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppContentRequest is request for MobileAppContent
+type MobileAppContentRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppContent
+func (r *MobileAppContentRequest) Get(ctx context.Context) (resObj *MobileAppContent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppContent
+func (r *MobileAppContentRequest) Update(ctx context.Context, reqObj *MobileAppContent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppContent
+func (r *MobileAppContentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ContainedApps returns request builder for MobileContainedApp collection
+func (b *MobileAppContentRequestBuilder) ContainedApps() *MobileAppContentContainedAppsCollectionRequestBuilder {
+ bb := &MobileAppContentContainedAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/containedApps"
+ return bb
+}
+
+// MobileAppContentContainedAppsCollectionRequestBuilder is request builder for MobileContainedApp collection
+type MobileAppContentContainedAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileContainedApp collection
+func (b *MobileAppContentContainedAppsCollectionRequestBuilder) Request() *MobileAppContentContainedAppsCollectionRequest {
+ return &MobileAppContentContainedAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileContainedApp item
+func (b *MobileAppContentContainedAppsCollectionRequestBuilder) ID(id string) *MobileContainedAppRequestBuilder {
+ bb := &MobileContainedAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileAppContentContainedAppsCollectionRequest is request for MobileContainedApp collection
+type MobileAppContentContainedAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileContainedApp collection
+func (r *MobileAppContentContainedAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MobileContainedApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileContainedApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileContainedApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileContainedApp collection
+func (r *MobileAppContentContainedAppsCollectionRequest) Get(ctx context.Context) ([]MobileContainedApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MobileContainedApp collection
+func (r *MobileAppContentContainedAppsCollectionRequest) Add(ctx context.Context, reqObj *MobileContainedApp) (resObj *MobileContainedApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Files returns request builder for MobileAppContentFile collection
+func (b *MobileAppContentRequestBuilder) Files() *MobileAppContentFilesCollectionRequestBuilder {
+ bb := &MobileAppContentFilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/files"
+ return bb
+}
+
+// MobileAppContentFilesCollectionRequestBuilder is request builder for MobileAppContentFile collection
+type MobileAppContentFilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppContentFile collection
+func (b *MobileAppContentFilesCollectionRequestBuilder) Request() *MobileAppContentFilesCollectionRequest {
+ return &MobileAppContentFilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppContentFile item
+func (b *MobileAppContentFilesCollectionRequestBuilder) ID(id string) *MobileAppContentFileRequestBuilder {
+ bb := &MobileAppContentFileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileAppContentFilesCollectionRequest is request for MobileAppContentFile collection
+type MobileAppContentFilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppContentFile collection
+func (r *MobileAppContentFilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MobileAppContentFile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppContentFile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppContentFile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppContentFile collection
+func (r *MobileAppContentFilesCollectionRequest) Get(ctx context.Context) ([]MobileAppContentFile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MobileAppContentFile collection
+func (r *MobileAppContentFilesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppContentFile) (resObj *MobileAppContentFile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppDependencyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppDependencyModel.go
new file mode 100644
index 00000000..62becc1d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppDependencyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppDependency Describes a dependency type between two mobile apps.
+type MobileAppDependency struct {
+ // MobileAppRelationship is the base model of MobileAppDependency
+ MobileAppRelationship
+ // DependencyType The type of dependency relationship between the parent and child apps.
+ DependencyType *MobileAppDependencyType `json:"dependencyType,omitempty"`
+ // DependentAppCount The total number of dependencies the child app has.
+ DependentAppCount *int `json:"dependentAppCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppDependencyTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppDependencyTypeEnum.go
new file mode 100644
index 00000000..8edc8ea0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppDependencyTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppDependencyType undocumented
+type MobileAppDependencyType int
+
+const (
+ // MobileAppDependencyTypeVDetect undocumented
+ MobileAppDependencyTypeVDetect MobileAppDependencyType = 0
+ // MobileAppDependencyTypeVAutoInstall undocumented
+ MobileAppDependencyTypeVAutoInstall MobileAppDependencyType = 1
+)
+
+// MobileAppDependencyTypePDetect returns a pointer to MobileAppDependencyTypeVDetect
+func MobileAppDependencyTypePDetect() *MobileAppDependencyType {
+ v := MobileAppDependencyTypeVDetect
+ return &v
+}
+
+// MobileAppDependencyTypePAutoInstall returns a pointer to MobileAppDependencyTypeVAutoInstall
+func MobileAppDependencyTypePAutoInstall() *MobileAppDependencyType {
+ v := MobileAppDependencyTypeVAutoInstall
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppIdentifierModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppIdentifierModel.go
new file mode 100644
index 00000000..197486ca
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppIdentifierModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppIdentifier undocumented
+type MobileAppIdentifier struct {
+ // Object is the base model of MobileAppIdentifier
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppInstallStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppInstallStatusModel.go
new file mode 100644
index 00000000..295aa5b7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppInstallStatusModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MobileAppInstallStatus Contains properties for the installation state of a mobile app for a device.
+type MobileAppInstallStatus struct {
+ // Entity is the base model of MobileAppInstallStatus
+ Entity
+ // DeviceName Device name
+ DeviceName *string `json:"deviceName,omitempty"`
+ // DeviceID Device ID
+ DeviceID *string `json:"deviceId,omitempty"`
+ // LastSyncDateTime Last sync date time
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // MobileAppInstallStatusValue The install state of the app.
+ MobileAppInstallStatusValue *ResultantAppState `json:"mobileAppInstallStatusValue,omitempty"`
+ // InstallState The install state of the app.
+ InstallState *ResultantAppState `json:"installState,omitempty"`
+ // InstallStateDetail The install state detail of the app.
+ InstallStateDetail *ResultantAppStateDetail `json:"installStateDetail,omitempty"`
+ // ErrorCode The error code for install or uninstall failures.
+ ErrorCode *int `json:"errorCode,omitempty"`
+ // OsVersion OS Version
+ OsVersion *string `json:"osVersion,omitempty"`
+ // OsDescription OS Description
+ OsDescription *string `json:"osDescription,omitempty"`
+ // UserName Device User Name
+ UserName *string `json:"userName,omitempty"`
+ // UserPrincipalName User Principal Name
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DisplayVersion Human readable version of the application
+ DisplayVersion *string `json:"displayVersion,omitempty"`
+ // App undocumented
+ App *MobileApp `json:"app,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppInstallStatusRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppInstallStatusRequest.go
new file mode 100644
index 00000000..a9915de4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppInstallStatusRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MobileAppInstallStatusRequestBuilder is request builder for MobileAppInstallStatus
+type MobileAppInstallStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppInstallStatusRequest
+func (b *MobileAppInstallStatusRequestBuilder) Request() *MobileAppInstallStatusRequest {
+ return &MobileAppInstallStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppInstallStatusRequest is request for MobileAppInstallStatus
+type MobileAppInstallStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppInstallStatus
+func (r *MobileAppInstallStatusRequest) Get(ctx context.Context) (resObj *MobileAppInstallStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppInstallStatus
+func (r *MobileAppInstallStatusRequest) Update(ctx context.Context, reqObj *MobileAppInstallStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppInstallStatus
+func (r *MobileAppInstallStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// App is navigation property
+func (b *MobileAppInstallStatusRequestBuilder) App() *MobileAppRequestBuilder {
+ bb := &MobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/app"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppInstallSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppInstallSummaryModel.go
new file mode 100644
index 00000000..c3b7b319
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppInstallSummaryModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppInstallSummary Contains properties for the installation summary of a mobile app.
+type MobileAppInstallSummary struct {
+ // Entity is the base model of MobileAppInstallSummary
+ Entity
+ // InstalledDeviceCount Number of Devices that have successfully installed this app.
+ InstalledDeviceCount *int `json:"installedDeviceCount,omitempty"`
+ // FailedDeviceCount Number of Devices that have failed to install this app.
+ FailedDeviceCount *int `json:"failedDeviceCount,omitempty"`
+ // NotApplicableDeviceCount Number of Devices that are not applicable for this app.
+ NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"`
+ // NotInstalledDeviceCount Number of Devices that does not have this app installed.
+ NotInstalledDeviceCount *int `json:"notInstalledDeviceCount,omitempty"`
+ // PendingInstallDeviceCount Number of Devices that have been notified to install this app.
+ PendingInstallDeviceCount *int `json:"pendingInstallDeviceCount,omitempty"`
+ // InstalledUserCount Number of Users whose devices have all succeeded to install this app.
+ InstalledUserCount *int `json:"installedUserCount,omitempty"`
+ // FailedUserCount Number of Users that have 1 or more device that failed to install this app.
+ FailedUserCount *int `json:"failedUserCount,omitempty"`
+ // NotApplicableUserCount Number of Users whose devices were all not applicable for this app.
+ NotApplicableUserCount *int `json:"notApplicableUserCount,omitempty"`
+ // NotInstalledUserCount Number of Users that have 1 or more devices that did not install this app.
+ NotInstalledUserCount *int `json:"notInstalledUserCount,omitempty"`
+ // PendingInstallUserCount Number of Users that have 1 or more device that have been notified to install this app and have 0 devices with failures.
+ PendingInstallUserCount *int `json:"pendingInstallUserCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppInstallSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppInstallSummaryRequest.go
new file mode 100644
index 00000000..ea9b33f3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppInstallSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MobileAppInstallSummaryRequestBuilder is request builder for MobileAppInstallSummary
+type MobileAppInstallSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppInstallSummaryRequest
+func (b *MobileAppInstallSummaryRequestBuilder) Request() *MobileAppInstallSummaryRequest {
+ return &MobileAppInstallSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppInstallSummaryRequest is request for MobileAppInstallSummary
+type MobileAppInstallSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppInstallSummary
+func (r *MobileAppInstallSummaryRequest) Get(ctx context.Context) (resObj *MobileAppInstallSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppInstallSummary
+func (r *MobileAppInstallSummaryRequest) Update(ctx context.Context, reqObj *MobileAppInstallSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppInstallSummary
+func (r *MobileAppInstallSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppInstallTimeSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppInstallTimeSettingsModel.go
new file mode 100644
index 00000000..9fd877ae
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppInstallTimeSettingsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MobileAppInstallTimeSettings undocumented
+type MobileAppInstallTimeSettings struct {
+ // Object is the base model of MobileAppInstallTimeSettings
+ Object
+ // UseLocalTime Whether the local device time or UTC time should be used when determining the available and deadline times.
+ UseLocalTime *bool `json:"useLocalTime,omitempty"`
+ // StartDateTime The time at which the app should be available for installation.
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // DeadlineDateTime The time at which the app should be installed.
+ DeadlineDateTime *time.Time `json:"deadlineDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppIntentAndStateDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppIntentAndStateDetailModel.go
new file mode 100644
index 00000000..414167b1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppIntentAndStateDetailModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppIntentAndStateDetail undocumented
+type MobileAppIntentAndStateDetail struct {
+ // Object is the base model of MobileAppIntentAndStateDetail
+ Object
+ // ApplicationID MobieApp identifier.
+ ApplicationID *string `json:"applicationId,omitempty"`
+ // DisplayName The admin provided or imported title of the app.
+ DisplayName *string `json:"displayName,omitempty"`
+ // MobileAppIntent Mobile App Intent.
+ MobileAppIntent *MobileAppIntent `json:"mobileAppIntent,omitempty"`
+ // DisplayVersion Human readable version of the application
+ DisplayVersion *string `json:"displayVersion,omitempty"`
+ // InstallState The install state of the app.
+ InstallState *ResultantAppState `json:"installState,omitempty"`
+ // SupportedDeviceTypes The supported platforms for the app.
+ SupportedDeviceTypes []MobileAppSupportedDeviceType `json:"supportedDeviceTypes,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppIntentAndStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppIntentAndStateModel.go
new file mode 100644
index 00000000..6aa47356
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppIntentAndStateModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppIntentAndState MobileApp Intent and Install State for a given device.
+type MobileAppIntentAndState struct {
+ // Entity is the base model of MobileAppIntentAndState
+ Entity
+ // ManagedDeviceIdentifier Device identifier created or collected by Intune.
+ ManagedDeviceIdentifier *string `json:"managedDeviceIdentifier,omitempty"`
+ // UserID Identifier for the user that tried to enroll the device.
+ UserID *string `json:"userId,omitempty"`
+ // MobileAppList The list of payload intents and states for the tenant.
+ MobileAppList []MobileAppIntentAndStateDetail `json:"mobileAppList,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppIntentAndStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppIntentAndStateRequest.go
new file mode 100644
index 00000000..b097833b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppIntentAndStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MobileAppIntentAndStateRequestBuilder is request builder for MobileAppIntentAndState
+type MobileAppIntentAndStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppIntentAndStateRequest
+func (b *MobileAppIntentAndStateRequestBuilder) Request() *MobileAppIntentAndStateRequest {
+ return &MobileAppIntentAndStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppIntentAndStateRequest is request for MobileAppIntentAndState
+type MobileAppIntentAndStateRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppIntentAndState
+func (r *MobileAppIntentAndStateRequest) Get(ctx context.Context) (resObj *MobileAppIntentAndState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppIntentAndState
+func (r *MobileAppIntentAndStateRequest) Update(ctx context.Context, reqObj *MobileAppIntentAndState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppIntentAndState
+func (r *MobileAppIntentAndStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppIntentEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppIntentEnum.go
new file mode 100644
index 00000000..27cc5e4b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppIntentEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppIntent undocumented
+type MobileAppIntent int
+
+const (
+ // MobileAppIntentVAvailable undocumented
+ MobileAppIntentVAvailable MobileAppIntent = 0
+ // MobileAppIntentVNotAvailable undocumented
+ MobileAppIntentVNotAvailable MobileAppIntent = 1
+ // MobileAppIntentVRequiredInstall undocumented
+ MobileAppIntentVRequiredInstall MobileAppIntent = 2
+ // MobileAppIntentVRequiredUninstall undocumented
+ MobileAppIntentVRequiredUninstall MobileAppIntent = 3
+ // MobileAppIntentVRequiredAndAvailableInstall undocumented
+ MobileAppIntentVRequiredAndAvailableInstall MobileAppIntent = 4
+ // MobileAppIntentVAvailableInstallWithoutEnrollment undocumented
+ MobileAppIntentVAvailableInstallWithoutEnrollment MobileAppIntent = 5
+ // MobileAppIntentVExclude undocumented
+ MobileAppIntentVExclude MobileAppIntent = 6
+)
+
+// MobileAppIntentPAvailable returns a pointer to MobileAppIntentVAvailable
+func MobileAppIntentPAvailable() *MobileAppIntent {
+ v := MobileAppIntentVAvailable
+ return &v
+}
+
+// MobileAppIntentPNotAvailable returns a pointer to MobileAppIntentVNotAvailable
+func MobileAppIntentPNotAvailable() *MobileAppIntent {
+ v := MobileAppIntentVNotAvailable
+ return &v
+}
+
+// MobileAppIntentPRequiredInstall returns a pointer to MobileAppIntentVRequiredInstall
+func MobileAppIntentPRequiredInstall() *MobileAppIntent {
+ v := MobileAppIntentVRequiredInstall
+ return &v
+}
+
+// MobileAppIntentPRequiredUninstall returns a pointer to MobileAppIntentVRequiredUninstall
+func MobileAppIntentPRequiredUninstall() *MobileAppIntent {
+ v := MobileAppIntentVRequiredUninstall
+ return &v
+}
+
+// MobileAppIntentPRequiredAndAvailableInstall returns a pointer to MobileAppIntentVRequiredAndAvailableInstall
+func MobileAppIntentPRequiredAndAvailableInstall() *MobileAppIntent {
+ v := MobileAppIntentVRequiredAndAvailableInstall
+ return &v
+}
+
+// MobileAppIntentPAvailableInstallWithoutEnrollment returns a pointer to MobileAppIntentVAvailableInstallWithoutEnrollment
+func MobileAppIntentPAvailableInstallWithoutEnrollment() *MobileAppIntent {
+ v := MobileAppIntentVAvailableInstallWithoutEnrollment
+ return &v
+}
+
+// MobileAppIntentPExclude returns a pointer to MobileAppIntentVExclude
+func MobileAppIntentPExclude() *MobileAppIntent {
+ v := MobileAppIntentVExclude
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppModel.go
new file mode 100644
index 00000000..88e267a9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppModel.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MobileApp An abstract class containing the base properties for Intune mobile apps.
+type MobileApp struct {
+ // Entity is the base model of MobileApp
+ Entity
+ // DisplayName The admin provided or imported title of the app.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The description of the app.
+ Description *string `json:"description,omitempty"`
+ // Publisher The publisher of the app.
+ Publisher *string `json:"publisher,omitempty"`
+ // LargeIcon The large icon, to be displayed in the app details and used for upload of the icon.
+ LargeIcon *MimeContent `json:"largeIcon,omitempty"`
+ // CreatedDateTime The date and time the app was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime The date and time the app was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // IsFeatured The value indicating whether the app is marked as featured by the admin.
+ IsFeatured *bool `json:"isFeatured,omitempty"`
+ // PrivacyInformationURL The privacy statement Url.
+ PrivacyInformationURL *string `json:"privacyInformationUrl,omitempty"`
+ // InformationURL The more information Url.
+ InformationURL *string `json:"informationUrl,omitempty"`
+ // Owner The owner of the app.
+ Owner *string `json:"owner,omitempty"`
+ // Developer The developer of the app.
+ Developer *string `json:"developer,omitempty"`
+ // Notes Notes for the app.
+ Notes *string `json:"notes,omitempty"`
+ // UploadState The upload state.
+ UploadState *int `json:"uploadState,omitempty"`
+ // PublishingState The publishing state for the app. The app cannot be assigned unless the app is published.
+ PublishingState *MobileAppPublishingState `json:"publishingState,omitempty"`
+ // IsAssigned The value indicating whether the app is assigned to at least one group.
+ IsAssigned *bool `json:"isAssigned,omitempty"`
+ // RoleScopeTagIDs List of scope tag ids for this mobile app.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // DependentAppCount The total number of dependencies the child app has.
+ DependentAppCount *int `json:"dependentAppCount,omitempty"`
+ // Categories undocumented
+ Categories []MobileAppCategory `json:"categories,omitempty"`
+ // Assignments undocumented
+ Assignments []MobileAppAssignment `json:"assignments,omitempty"`
+ // InstallSummary undocumented
+ InstallSummary *MobileAppInstallSummary `json:"installSummary,omitempty"`
+ // DeviceStatuses undocumented
+ DeviceStatuses []MobileAppInstallStatus `json:"deviceStatuses,omitempty"`
+ // UserStatuses undocumented
+ UserStatuses []UserAppInstallStatus `json:"userStatuses,omitempty"`
+ // Relationships undocumented
+ Relationships []MobileAppRelationship `json:"relationships,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppPolicySetItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppPolicySetItemModel.go
new file mode 100644
index 00000000..c1acb183
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppPolicySetItemModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppPolicySetItem A class containing the properties used for mobile app PolicySetItem.
+type MobileAppPolicySetItem struct {
+ // PolicySetItem is the base model of MobileAppPolicySetItem
+ PolicySetItem
+ // Intent Install intent of the MobileAppPolicySetItem.
+ Intent *InstallIntent `json:"intent,omitempty"`
+ // Settings Settings of the MobileAppPolicySetItem.
+ Settings *MobileAppAssignmentSettings `json:"settings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentModel.go
new file mode 100644
index 00000000..e014fa9e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppProvisioningConfigGroupAssignment Contains the properties used to assign an App provisioning configuration to a group.
+type MobileAppProvisioningConfigGroupAssignment struct {
+ // Entity is the base model of MobileAppProvisioningConfigGroupAssignment
+ Entity
+ // TargetGroupID The ID of the AAD group in which the app provisioning configuration is being targeted.
+ TargetGroupID *string `json:"targetGroupId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentRequest.go
new file mode 100644
index 00000000..ab3ec2eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppProvisioningConfigGroupAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MobileAppProvisioningConfigGroupAssignmentRequestBuilder is request builder for MobileAppProvisioningConfigGroupAssignment
+type MobileAppProvisioningConfigGroupAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppProvisioningConfigGroupAssignmentRequest
+func (b *MobileAppProvisioningConfigGroupAssignmentRequestBuilder) Request() *MobileAppProvisioningConfigGroupAssignmentRequest {
+ return &MobileAppProvisioningConfigGroupAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppProvisioningConfigGroupAssignmentRequest is request for MobileAppProvisioningConfigGroupAssignment
+type MobileAppProvisioningConfigGroupAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppProvisioningConfigGroupAssignment
+func (r *MobileAppProvisioningConfigGroupAssignmentRequest) Get(ctx context.Context) (resObj *MobileAppProvisioningConfigGroupAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppProvisioningConfigGroupAssignment
+func (r *MobileAppProvisioningConfigGroupAssignmentRequest) Update(ctx context.Context, reqObj *MobileAppProvisioningConfigGroupAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppProvisioningConfigGroupAssignment
+func (r *MobileAppProvisioningConfigGroupAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppPublishingStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppPublishingStateEnum.go
new file mode 100644
index 00000000..10dda2a5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppPublishingStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppPublishingState undocumented
+type MobileAppPublishingState int
+
+const (
+ // MobileAppPublishingStateVNotPublished undocumented
+ MobileAppPublishingStateVNotPublished MobileAppPublishingState = 0
+ // MobileAppPublishingStateVProcessing undocumented
+ MobileAppPublishingStateVProcessing MobileAppPublishingState = 1
+ // MobileAppPublishingStateVPublished undocumented
+ MobileAppPublishingStateVPublished MobileAppPublishingState = 2
+)
+
+// MobileAppPublishingStatePNotPublished returns a pointer to MobileAppPublishingStateVNotPublished
+func MobileAppPublishingStatePNotPublished() *MobileAppPublishingState {
+ v := MobileAppPublishingStateVNotPublished
+ return &v
+}
+
+// MobileAppPublishingStatePProcessing returns a pointer to MobileAppPublishingStateVProcessing
+func MobileAppPublishingStatePProcessing() *MobileAppPublishingState {
+ v := MobileAppPublishingStateVProcessing
+ return &v
+}
+
+// MobileAppPublishingStatePPublished returns a pointer to MobileAppPublishingStateVPublished
+func MobileAppPublishingStatePPublished() *MobileAppPublishingState {
+ v := MobileAppPublishingStateVPublished
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppRelationshipModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppRelationshipModel.go
new file mode 100644
index 00000000..c1c5c4c1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppRelationshipModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppRelationship Describes the relationship for a child mobile app to its parent mobile app.
+type MobileAppRelationship struct {
+ // Entity is the base model of MobileAppRelationship
+ Entity
+ // TargetID The target child mobile app's app id.
+ TargetID *string `json:"targetId,omitempty"`
+ // TargetDisplayName The target child mobile app's display name.
+ TargetDisplayName *string `json:"targetDisplayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppRelationshipRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppRelationshipRequest.go
new file mode 100644
index 00000000..9ca737bb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppRelationshipRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MobileAppRelationshipRequestBuilder is request builder for MobileAppRelationship
+type MobileAppRelationshipRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppRelationshipRequest
+func (b *MobileAppRelationshipRequestBuilder) Request() *MobileAppRelationshipRequest {
+ return &MobileAppRelationshipRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppRelationshipRequest is request for MobileAppRelationship
+type MobileAppRelationshipRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppRelationship
+func (r *MobileAppRelationshipRequest) Get(ctx context.Context) (resObj *MobileAppRelationship, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppRelationship
+func (r *MobileAppRelationshipRequest) Update(ctx context.Context, reqObj *MobileAppRelationship) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppRelationship
+func (r *MobileAppRelationshipRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppRelationshipStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppRelationshipStateModel.go
new file mode 100644
index 00000000..171cd83f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppRelationshipStateModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MobileAppRelationshipState undocumented
+type MobileAppRelationshipState struct {
+ // Object is the base model of MobileAppRelationshipState
+ Object
+ // SourceIDs The collection of source mobile app's ids.
+ SourceIDs []string `json:"sourceIds,omitempty"`
+ // TargetID The related target app's id.
+ TargetID *string `json:"targetId,omitempty"`
+ // TargetDisplayName The related target app's display name.
+ TargetDisplayName *string `json:"targetDisplayName,omitempty"`
+ // DeviceID The corresponding device id.
+ DeviceID *string `json:"deviceId,omitempty"`
+ // InstallState The install state of the app of target app.
+ InstallState *ResultantAppState `json:"installState,omitempty"`
+ // InstallStateDetail The install state detail of the app.
+ InstallStateDetail *ResultantAppStateDetail `json:"installStateDetail,omitempty"`
+ // ErrorCode The error code for install or uninstall failures of target app.
+ ErrorCode *int `json:"errorCode,omitempty"`
+ // TargetLastSyncDateTime The last sync time of the target app.
+ TargetLastSyncDateTime *time.Time `json:"targetLastSyncDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppRequest.go
new file mode 100644
index 00000000..cb2544c9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppRequest.go
@@ -0,0 +1,522 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MobileAppRequestBuilder is request builder for MobileApp
+type MobileAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppRequest
+func (b *MobileAppRequestBuilder) Request() *MobileAppRequest {
+ return &MobileAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppRequest is request for MobileApp
+type MobileAppRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileApp
+func (r *MobileAppRequest) Get(ctx context.Context) (resObj *MobileApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileApp
+func (r *MobileAppRequest) Update(ctx context.Context, reqObj *MobileApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileApp
+func (r *MobileAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for MobileAppAssignment collection
+func (b *MobileAppRequestBuilder) Assignments() *MobileAppAssignmentsCollectionRequestBuilder {
+ bb := &MobileAppAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// MobileAppAssignmentsCollectionRequestBuilder is request builder for MobileAppAssignment collection
+type MobileAppAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppAssignment collection
+func (b *MobileAppAssignmentsCollectionRequestBuilder) Request() *MobileAppAssignmentsCollectionRequest {
+ return &MobileAppAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppAssignment item
+func (b *MobileAppAssignmentsCollectionRequestBuilder) ID(id string) *MobileAppAssignmentRequestBuilder {
+ bb := &MobileAppAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileAppAssignmentsCollectionRequest is request for MobileAppAssignment collection
+type MobileAppAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppAssignment collection
+func (r *MobileAppAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MobileAppAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppAssignment collection
+func (r *MobileAppAssignmentsCollectionRequest) Get(ctx context.Context) ([]MobileAppAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MobileAppAssignment collection
+func (r *MobileAppAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppAssignment) (resObj *MobileAppAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Categories returns request builder for MobileAppCategory collection
+func (b *MobileAppRequestBuilder) Categories() *MobileAppCategoriesCollectionRequestBuilder {
+ bb := &MobileAppCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/categories"
+ return bb
+}
+
+// MobileAppCategoriesCollectionRequestBuilder is request builder for MobileAppCategory collection
+type MobileAppCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppCategory collection
+func (b *MobileAppCategoriesCollectionRequestBuilder) Request() *MobileAppCategoriesCollectionRequest {
+ return &MobileAppCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppCategory item
+func (b *MobileAppCategoriesCollectionRequestBuilder) ID(id string) *MobileAppCategoryRequestBuilder {
+ bb := &MobileAppCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileAppCategoriesCollectionRequest is request for MobileAppCategory collection
+type MobileAppCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppCategory collection
+func (r *MobileAppCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MobileAppCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppCategory collection
+func (r *MobileAppCategoriesCollectionRequest) Get(ctx context.Context) ([]MobileAppCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MobileAppCategory collection
+func (r *MobileAppCategoriesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppCategory) (resObj *MobileAppCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStatuses returns request builder for MobileAppInstallStatus collection
+func (b *MobileAppRequestBuilder) DeviceStatuses() *MobileAppDeviceStatusesCollectionRequestBuilder {
+ bb := &MobileAppDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatuses"
+ return bb
+}
+
+// MobileAppDeviceStatusesCollectionRequestBuilder is request builder for MobileAppInstallStatus collection
+type MobileAppDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppInstallStatus collection
+func (b *MobileAppDeviceStatusesCollectionRequestBuilder) Request() *MobileAppDeviceStatusesCollectionRequest {
+ return &MobileAppDeviceStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppInstallStatus item
+func (b *MobileAppDeviceStatusesCollectionRequestBuilder) ID(id string) *MobileAppInstallStatusRequestBuilder {
+ bb := &MobileAppInstallStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileAppDeviceStatusesCollectionRequest is request for MobileAppInstallStatus collection
+type MobileAppDeviceStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppInstallStatus collection
+func (r *MobileAppDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MobileAppInstallStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppInstallStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppInstallStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppInstallStatus collection
+func (r *MobileAppDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]MobileAppInstallStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MobileAppInstallStatus collection
+func (r *MobileAppDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppInstallStatus) (resObj *MobileAppInstallStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// InstallSummary is navigation property
+func (b *MobileAppRequestBuilder) InstallSummary() *MobileAppInstallSummaryRequestBuilder {
+ bb := &MobileAppInstallSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/installSummary"
+ return bb
+}
+
+// Relationships returns request builder for MobileAppRelationship collection
+func (b *MobileAppRequestBuilder) Relationships() *MobileAppRelationshipsCollectionRequestBuilder {
+ bb := &MobileAppRelationshipsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/relationships"
+ return bb
+}
+
+// MobileAppRelationshipsCollectionRequestBuilder is request builder for MobileAppRelationship collection
+type MobileAppRelationshipsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppRelationship collection
+func (b *MobileAppRelationshipsCollectionRequestBuilder) Request() *MobileAppRelationshipsCollectionRequest {
+ return &MobileAppRelationshipsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppRelationship item
+func (b *MobileAppRelationshipsCollectionRequestBuilder) ID(id string) *MobileAppRelationshipRequestBuilder {
+ bb := &MobileAppRelationshipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileAppRelationshipsCollectionRequest is request for MobileAppRelationship collection
+type MobileAppRelationshipsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppRelationship collection
+func (r *MobileAppRelationshipsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MobileAppRelationship, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppRelationship
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppRelationship
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppRelationship collection
+func (r *MobileAppRelationshipsCollectionRequest) Get(ctx context.Context) ([]MobileAppRelationship, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MobileAppRelationship collection
+func (r *MobileAppRelationshipsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppRelationship) (resObj *MobileAppRelationship, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserStatuses returns request builder for UserAppInstallStatus collection
+func (b *MobileAppRequestBuilder) UserStatuses() *MobileAppUserStatusesCollectionRequestBuilder {
+ bb := &MobileAppUserStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStatuses"
+ return bb
+}
+
+// MobileAppUserStatusesCollectionRequestBuilder is request builder for UserAppInstallStatus collection
+type MobileAppUserStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserAppInstallStatus collection
+func (b *MobileAppUserStatusesCollectionRequestBuilder) Request() *MobileAppUserStatusesCollectionRequest {
+ return &MobileAppUserStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserAppInstallStatus item
+func (b *MobileAppUserStatusesCollectionRequestBuilder) ID(id string) *UserAppInstallStatusRequestBuilder {
+ bb := &UserAppInstallStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileAppUserStatusesCollectionRequest is request for UserAppInstallStatus collection
+type MobileAppUserStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserAppInstallStatus collection
+func (r *MobileAppUserStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UserAppInstallStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserAppInstallStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserAppInstallStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserAppInstallStatus collection
+func (r *MobileAppUserStatusesCollectionRequest) Get(ctx context.Context) ([]UserAppInstallStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UserAppInstallStatus collection
+func (r *MobileAppUserStatusesCollectionRequest) Add(ctx context.Context, reqObj *UserAppInstallStatus) (resObj *UserAppInstallStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppSupportedDeviceTypeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppSupportedDeviceTypeModel.go
new file mode 100644
index 00000000..54e7e740
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppSupportedDeviceTypeModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppSupportedDeviceType undocumented
+type MobileAppSupportedDeviceType struct {
+ // Object is the base model of MobileAppSupportedDeviceType
+ Object
+ // Type Device type
+ Type *DeviceType `json:"type,omitempty"`
+ // MinimumOperatingSystemVersion Minimum OS version
+ MinimumOperatingSystemVersion *string `json:"minimumOperatingSystemVersion,omitempty"`
+ // MaximumOperatingSystemVersion Maximum OS version
+ MaximumOperatingSystemVersion *string `json:"maximumOperatingSystemVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingAppPolicyCreationHistoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingAppPolicyCreationHistoryModel.go
new file mode 100644
index 00000000..79aeb038
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingAppPolicyCreationHistoryModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppTroubleshootingAppPolicyCreationHistory undocumented
+type MobileAppTroubleshootingAppPolicyCreationHistory struct {
+ // MobileAppTroubleshootingHistoryItem is the base model of MobileAppTroubleshootingAppPolicyCreationHistory
+ MobileAppTroubleshootingHistoryItem
+ // RunState Status of the item.
+ RunState *RunState `json:"runState,omitempty"`
+ // ErrorCode Error code for the failure, empty if no failure.
+ ErrorCode *string `json:"errorCode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingAppStateHistoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingAppStateHistoryModel.go
new file mode 100644
index 00000000..673c1c0e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingAppStateHistoryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppTroubleshootingAppStateHistory undocumented
+type MobileAppTroubleshootingAppStateHistory struct {
+ // MobileAppTroubleshootingHistoryItem is the base model of MobileAppTroubleshootingAppStateHistory
+ MobileAppTroubleshootingHistoryItem
+ // ActionType AAD security group id to which it was targeted.
+ ActionType *MobileAppActionType `json:"actionType,omitempty"`
+ // RunState Status of the item.
+ RunState *RunState `json:"runState,omitempty"`
+ // ErrorCode Error code for the failure, empty if no failure.
+ ErrorCode *string `json:"errorCode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingAppTargetHistoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingAppTargetHistoryModel.go
new file mode 100644
index 00000000..2651534a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingAppTargetHistoryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppTroubleshootingAppTargetHistory undocumented
+type MobileAppTroubleshootingAppTargetHistory struct {
+ // MobileAppTroubleshootingHistoryItem is the base model of MobileAppTroubleshootingAppTargetHistory
+ MobileAppTroubleshootingHistoryItem
+ // SecurityGroupID AAD security group id to which it was targeted.
+ SecurityGroupID *string `json:"securityGroupId,omitempty"`
+ // RunState Status of the item.
+ RunState *RunState `json:"runState,omitempty"`
+ // ErrorCode Error code for the failure, empty if no failure.
+ ErrorCode *string `json:"errorCode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingAppUpdateHistoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingAppUpdateHistoryModel.go
new file mode 100644
index 00000000..32f4933e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingAppUpdateHistoryModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppTroubleshootingAppUpdateHistory undocumented
+type MobileAppTroubleshootingAppUpdateHistory struct {
+ // MobileAppTroubleshootingHistoryItem is the base model of MobileAppTroubleshootingAppUpdateHistory
+ MobileAppTroubleshootingHistoryItem
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingDeviceCheckinHistoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingDeviceCheckinHistoryModel.go
new file mode 100644
index 00000000..6aced494
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingDeviceCheckinHistoryModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppTroubleshootingDeviceCheckinHistory undocumented
+type MobileAppTroubleshootingDeviceCheckinHistory struct {
+ // MobileAppTroubleshootingHistoryItem is the base model of MobileAppTroubleshootingDeviceCheckinHistory
+ MobileAppTroubleshootingHistoryItem
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingEventModel.go
new file mode 100644
index 00000000..954c97c8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingEventModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppTroubleshootingEvent Event representing a users device application install status.
+type MobileAppTroubleshootingEvent struct {
+ // DeviceManagementTroubleshootingEvent is the base model of MobileAppTroubleshootingEvent
+ DeviceManagementTroubleshootingEvent
+ // ManagedDeviceIdentifier Device identifier created or collected by Intune.
+ ManagedDeviceIdentifier *string `json:"managedDeviceIdentifier,omitempty"`
+ // UserID Identifier for the user that tried to enroll the device.
+ UserID *string `json:"userId,omitempty"`
+ // ApplicationID Intune application identifier.
+ ApplicationID *string `json:"applicationId,omitempty"`
+ // History Intune Mobile Application Troubleshooting History Item
+ History []MobileAppTroubleshootingHistoryItem `json:"history,omitempty"`
+ // AppLogCollectionRequests undocumented
+ AppLogCollectionRequests []AppLogCollectionRequestObject `json:"appLogCollectionRequests,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingEventRequest.go
new file mode 100644
index 00000000..ed4549e7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingEventRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MobileAppTroubleshootingEventRequestBuilder is request builder for MobileAppTroubleshootingEvent
+type MobileAppTroubleshootingEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppTroubleshootingEventRequest
+func (b *MobileAppTroubleshootingEventRequestBuilder) Request() *MobileAppTroubleshootingEventRequest {
+ return &MobileAppTroubleshootingEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppTroubleshootingEventRequest is request for MobileAppTroubleshootingEvent
+type MobileAppTroubleshootingEventRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppTroubleshootingEvent
+func (r *MobileAppTroubleshootingEventRequest) Get(ctx context.Context) (resObj *MobileAppTroubleshootingEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppTroubleshootingEvent
+func (r *MobileAppTroubleshootingEventRequest) Update(ctx context.Context, reqObj *MobileAppTroubleshootingEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppTroubleshootingEvent
+func (r *MobileAppTroubleshootingEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AppLogCollectionRequests returns request builder for AppLogCollectionRequestObject collection
+func (b *MobileAppTroubleshootingEventRequestBuilder) AppLogCollectionRequests() *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder {
+ bb := &MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appLogCollectionRequests"
+ return bb
+}
+
+// MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder is request builder for AppLogCollectionRequestObject collection
+type MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppLogCollectionRequestObject collection
+func (b *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder) Request() *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest {
+ return &MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppLogCollectionRequestObject item
+func (b *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder) ID(id string) *AppLogCollectionRequestObjectRequestBuilder {
+ bb := &AppLogCollectionRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest is request for AppLogCollectionRequestObject collection
+type MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppLogCollectionRequestObject collection
+func (r *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AppLogCollectionRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppLogCollectionRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppLogCollectionRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppLogCollectionRequestObject collection
+func (r *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest) Get(ctx context.Context) ([]AppLogCollectionRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AppLogCollectionRequestObject collection
+func (r *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest) Add(ctx context.Context, reqObj *AppLogCollectionRequestObject) (resObj *AppLogCollectionRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingHistoryItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingHistoryItemModel.go
new file mode 100644
index 00000000..54bb3b96
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileAppTroubleshootingHistoryItemModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MobileAppTroubleshootingHistoryItem undocumented
+type MobileAppTroubleshootingHistoryItem struct {
+ // Object is the base model of MobileAppTroubleshootingHistoryItem
+ Object
+ // OccurrenceDateTime Time when the history item occurred.
+ OccurrenceDateTime *time.Time `json:"occurrenceDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileContainedAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileContainedAppModel.go
new file mode 100644
index 00000000..b4576b33
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileContainedAppModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileContainedApp An abstract class that represents a contained app in a mobileApp acting as a package.
+type MobileContainedApp struct {
+ // Entity is the base model of MobileContainedApp
+ Entity
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileContainedAppRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileContainedAppRequest.go
new file mode 100644
index 00000000..bb7b3c68
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileContainedAppRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MobileContainedAppRequestBuilder is request builder for MobileContainedApp
+type MobileContainedAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileContainedAppRequest
+func (b *MobileContainedAppRequestBuilder) Request() *MobileContainedAppRequest {
+ return &MobileContainedAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileContainedAppRequest is request for MobileContainedApp
+type MobileContainedAppRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileContainedApp
+func (r *MobileContainedAppRequest) Get(ctx context.Context) (resObj *MobileContainedApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileContainedApp
+func (r *MobileContainedAppRequest) Update(ctx context.Context, reqObj *MobileContainedApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileContainedApp
+func (r *MobileContainedAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileLobAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileLobAppModel.go
new file mode 100644
index 00000000..db3c45ea
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileLobAppModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileLobApp An abstract base class containing properties for all mobile line of business apps.
+type MobileLobApp struct {
+ // MobileApp is the base model of MobileLobApp
+ MobileApp
+ // CommittedContentVersion The internal committed content version.
+ CommittedContentVersion *string `json:"committedContentVersion,omitempty"`
+ // FileName The name of the main Lob application file.
+ FileName *string `json:"fileName,omitempty"`
+ // Size The total size, including all uploaded files.
+ Size *int `json:"size,omitempty"`
+ // ContentVersions undocumented
+ ContentVersions []MobileAppContent `json:"contentVersions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileLobAppRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileLobAppRequest.go
new file mode 100644
index 00000000..739a9a93
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileLobAppRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MobileLobAppRequestBuilder is request builder for MobileLobApp
+type MobileLobAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileLobAppRequest
+func (b *MobileLobAppRequestBuilder) Request() *MobileLobAppRequest {
+ return &MobileLobAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileLobAppRequest is request for MobileLobApp
+type MobileLobAppRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileLobApp
+func (r *MobileLobAppRequest) Get(ctx context.Context) (resObj *MobileLobApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileLobApp
+func (r *MobileLobAppRequest) Update(ctx context.Context, reqObj *MobileLobApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileLobApp
+func (r *MobileLobAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ContentVersions returns request builder for MobileAppContent collection
+func (b *MobileLobAppRequestBuilder) ContentVersions() *MobileLobAppContentVersionsCollectionRequestBuilder {
+ bb := &MobileLobAppContentVersionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contentVersions"
+ return bb
+}
+
+// MobileLobAppContentVersionsCollectionRequestBuilder is request builder for MobileAppContent collection
+type MobileLobAppContentVersionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppContent collection
+func (b *MobileLobAppContentVersionsCollectionRequestBuilder) Request() *MobileLobAppContentVersionsCollectionRequest {
+ return &MobileLobAppContentVersionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppContent item
+func (b *MobileLobAppContentVersionsCollectionRequestBuilder) ID(id string) *MobileAppContentRequestBuilder {
+ bb := &MobileAppContentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileLobAppContentVersionsCollectionRequest is request for MobileAppContent collection
+type MobileLobAppContentVersionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppContent collection
+func (r *MobileLobAppContentVersionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MobileAppContent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppContent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppContent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppContent collection
+func (r *MobileLobAppContentVersionsCollectionRequest) Get(ctx context.Context) ([]MobileAppContent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MobileAppContent collection
+func (r *MobileLobAppContentVersionsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppContent) (resObj *MobileAppContent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileThreatDefenseConnectorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileThreatDefenseConnectorModel.go
new file mode 100644
index 00000000..e2adddb9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileThreatDefenseConnectorModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MobileThreatDefenseConnector Entity which represents a connection to Mobile threat defense partner.
+type MobileThreatDefenseConnector struct {
+ // Entity is the base model of MobileThreatDefenseConnector
+ Entity
+ // LastHeartbeatDateTime DateTime of last Heartbeat recieved from the Data Sync Partner
+ LastHeartbeatDateTime *time.Time `json:"lastHeartbeatDateTime,omitempty"`
+ // PartnerState Data Sync Partner state for this account
+ PartnerState *MobileThreatPartnerTenantState `json:"partnerState,omitempty"`
+ // AndroidMobileApplicationManagementEnabled For Android, set whether data from the data sync partner should be used during Mobile Application Management (MAM) evaluations. Only one partner per platform may be enabled for Mobile Application Management (MAM) evaluation.
+ AndroidMobileApplicationManagementEnabled *bool `json:"androidMobileApplicationManagementEnabled,omitempty"`
+ // IOSMobileApplicationManagementEnabled For IOS, get or set whether data from the data sync partner should be used during Mobile Application Management (MAM) evaluations. Only one partner per platform may be enabled for Mobile Application Management (MAM) evaluation.
+ IOSMobileApplicationManagementEnabled *bool `json:"iosMobileApplicationManagementEnabled,omitempty"`
+ // AndroidEnabled For Android, set whether data from the data sync partner should be used during compliance evaluations
+ AndroidEnabled *bool `json:"androidEnabled,omitempty"`
+ // IOSEnabled For IOS, get or set whether data from the data sync partner should be used during compliance evaluations
+ IOSEnabled *bool `json:"iosEnabled,omitempty"`
+ // WindowsEnabled For Windows, get or set whether data from the data sync partner should be used during compliance evaluations
+ WindowsEnabled *bool `json:"windowsEnabled,omitempty"`
+ // MacEnabled For Mac, get or set whether data from the data sync partner should be used during compliance evaluations
+ MacEnabled *bool `json:"macEnabled,omitempty"`
+ // AndroidDeviceBlockedOnMissingPartnerData For Android, set whether Intune must receive data from the data sync partner prior to marking a device compliant
+ AndroidDeviceBlockedOnMissingPartnerData *bool `json:"androidDeviceBlockedOnMissingPartnerData,omitempty"`
+ // IOSDeviceBlockedOnMissingPartnerData For IOS, set whether Intune must receive data from the data sync partner prior to marking a device compliant
+ IOSDeviceBlockedOnMissingPartnerData *bool `json:"iosDeviceBlockedOnMissingPartnerData,omitempty"`
+ // WindowsDeviceBlockedOnMissingPartnerData For Windows, set whether Intune must receive data from the data sync partner prior to marking a device compliant
+ WindowsDeviceBlockedOnMissingPartnerData *bool `json:"windowsDeviceBlockedOnMissingPartnerData,omitempty"`
+ // MacDeviceBlockedOnMissingPartnerData For Mac, get or set whether Intune must receive data from the data sync partner prior to marking a device compliant
+ MacDeviceBlockedOnMissingPartnerData *bool `json:"macDeviceBlockedOnMissingPartnerData,omitempty"`
+ // PartnerUnsupportedOsVersionBlocked Get or set whether to block devices on the enabled platforms that do not meet the minimum version requirements of the Data Sync Partner
+ PartnerUnsupportedOsVersionBlocked *bool `json:"partnerUnsupportedOsVersionBlocked,omitempty"`
+ // PartnerUnresponsivenessThresholdInDays Get or Set days the per tenant tolerance to unresponsiveness for this partner integration
+ PartnerUnresponsivenessThresholdInDays *int `json:"partnerUnresponsivenessThresholdInDays,omitempty"`
+ // AllowPartnerToCollectIOSApplicationMetadata For IOS devices, allows the admin to configure whether the data sync partner may also collect metadata about installed applications from Intune
+ AllowPartnerToCollectIOSApplicationMetadata *bool `json:"allowPartnerToCollectIOSApplicationMetadata,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileThreatDefenseConnectorRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileThreatDefenseConnectorRequest.go
new file mode 100644
index 00000000..3eb27afd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileThreatDefenseConnectorRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MobileThreatDefenseConnectorRequestBuilder is request builder for MobileThreatDefenseConnector
+type MobileThreatDefenseConnectorRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileThreatDefenseConnectorRequest
+func (b *MobileThreatDefenseConnectorRequestBuilder) Request() *MobileThreatDefenseConnectorRequest {
+ return &MobileThreatDefenseConnectorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileThreatDefenseConnectorRequest is request for MobileThreatDefenseConnector
+type MobileThreatDefenseConnectorRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileThreatDefenseConnector
+func (r *MobileThreatDefenseConnectorRequest) Get(ctx context.Context) (resObj *MobileThreatDefenseConnector, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileThreatDefenseConnector
+func (r *MobileThreatDefenseConnectorRequest) Update(ctx context.Context, reqObj *MobileThreatDefenseConnector) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileThreatDefenseConnector
+func (r *MobileThreatDefenseConnectorRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MobileThreatPartnerTenantStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MobileThreatPartnerTenantStateEnum.go
new file mode 100644
index 00000000..3d2fcd27
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MobileThreatPartnerTenantStateEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileThreatPartnerTenantState undocumented
+type MobileThreatPartnerTenantState int
+
+const (
+ // MobileThreatPartnerTenantStateVUnavailable undocumented
+ MobileThreatPartnerTenantStateVUnavailable MobileThreatPartnerTenantState = 0
+ // MobileThreatPartnerTenantStateVAvailable undocumented
+ MobileThreatPartnerTenantStateVAvailable MobileThreatPartnerTenantState = 1
+ // MobileThreatPartnerTenantStateVEnabled undocumented
+ MobileThreatPartnerTenantStateVEnabled MobileThreatPartnerTenantState = 2
+ // MobileThreatPartnerTenantStateVUnresponsive undocumented
+ MobileThreatPartnerTenantStateVUnresponsive MobileThreatPartnerTenantState = 3
+)
+
+// MobileThreatPartnerTenantStatePUnavailable returns a pointer to MobileThreatPartnerTenantStateVUnavailable
+func MobileThreatPartnerTenantStatePUnavailable() *MobileThreatPartnerTenantState {
+ v := MobileThreatPartnerTenantStateVUnavailable
+ return &v
+}
+
+// MobileThreatPartnerTenantStatePAvailable returns a pointer to MobileThreatPartnerTenantStateVAvailable
+func MobileThreatPartnerTenantStatePAvailable() *MobileThreatPartnerTenantState {
+ v := MobileThreatPartnerTenantStateVAvailable
+ return &v
+}
+
+// MobileThreatPartnerTenantStatePEnabled returns a pointer to MobileThreatPartnerTenantStateVEnabled
+func MobileThreatPartnerTenantStatePEnabled() *MobileThreatPartnerTenantState {
+ v := MobileThreatPartnerTenantStateVEnabled
+ return &v
+}
+
+// MobileThreatPartnerTenantStatePUnresponsive returns a pointer to MobileThreatPartnerTenantStateVUnresponsive
+func MobileThreatPartnerTenantStatePUnresponsive() *MobileThreatPartnerTenantState {
+ v := MobileThreatPartnerTenantStateVUnresponsive
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModalityEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModalityEnum.go
new file mode 100644
index 00000000..0f900e25
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModalityEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Modality undocumented
+type Modality int
+
+const (
+ // ModalityVUnknown undocumented
+ ModalityVUnknown Modality = 0
+ // ModalityVAudio undocumented
+ ModalityVAudio Modality = 1
+ // ModalityVVideo undocumented
+ ModalityVVideo Modality = 2
+ // ModalityVVideoBasedScreenSharing undocumented
+ ModalityVVideoBasedScreenSharing Modality = 3
+ // ModalityVData undocumented
+ ModalityVData Modality = 4
+ // ModalityVUnknownFutureValue undocumented
+ ModalityVUnknownFutureValue Modality = 5
+)
+
+// ModalityPUnknown returns a pointer to ModalityVUnknown
+func ModalityPUnknown() *Modality {
+ v := ModalityVUnknown
+ return &v
+}
+
+// ModalityPAudio returns a pointer to ModalityVAudio
+func ModalityPAudio() *Modality {
+ v := ModalityVAudio
+ return &v
+}
+
+// ModalityPVideo returns a pointer to ModalityVVideo
+func ModalityPVideo() *Modality {
+ v := ModalityVVideo
+ return &v
+}
+
+// ModalityPVideoBasedScreenSharing returns a pointer to ModalityVVideoBasedScreenSharing
+func ModalityPVideoBasedScreenSharing() *Modality {
+ v := ModalityVVideoBasedScreenSharing
+ return &v
+}
+
+// ModalityPData returns a pointer to ModalityVData
+func ModalityPData() *Modality {
+ v := ModalityVData
+ return &v
+}
+
+// ModalityPUnknownFutureValue returns a pointer to ModalityVUnknownFutureValue
+func ModalityPUnknownFutureValue() *Modality {
+ v := ModalityVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModifiedPropertyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModifiedPropertyModel.go
new file mode 100644
index 00000000..f99cedb8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModifiedPropertyModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ModifiedProperty undocumented
+type ModifiedProperty struct {
+ // Object is the base model of ModifiedProperty
+ Object
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // OldValue undocumented
+ OldValue *string `json:"oldValue,omitempty"`
+ // NewValue undocumented
+ NewValue *string `json:"newValue,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MoveActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MoveActionModel.go
new file mode 100644
index 00000000..5ce40c03
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MoveActionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MoveAction undocumented
+type MoveAction struct {
+ // Object is the base model of MoveAction
+ Object
+ // From undocumented
+ From *string `json:"from,omitempty"`
+ // To undocumented
+ To *string `json:"to,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MultiValueLegacyExtendedPropertyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MultiValueLegacyExtendedPropertyModel.go
new file mode 100644
index 00000000..3e56ba05
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MultiValueLegacyExtendedPropertyModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MultiValueLegacyExtendedProperty undocumented
+type MultiValueLegacyExtendedProperty struct {
+ // Entity is the base model of MultiValueLegacyExtendedProperty
+ Entity
+ // Value undocumented
+ Value []string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MultiValueLegacyExtendedPropertyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/MultiValueLegacyExtendedPropertyRequest.go
new file mode 100644
index 00000000..e5adca48
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MultiValueLegacyExtendedPropertyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MultiValueLegacyExtendedPropertyRequestBuilder is request builder for MultiValueLegacyExtendedProperty
+type MultiValueLegacyExtendedPropertyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MultiValueLegacyExtendedPropertyRequest
+func (b *MultiValueLegacyExtendedPropertyRequestBuilder) Request() *MultiValueLegacyExtendedPropertyRequest {
+ return &MultiValueLegacyExtendedPropertyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MultiValueLegacyExtendedPropertyRequest is request for MultiValueLegacyExtendedProperty
+type MultiValueLegacyExtendedPropertyRequest struct{ BaseRequest }
+
+// Get performs GET request for MultiValueLegacyExtendedProperty
+func (r *MultiValueLegacyExtendedPropertyRequest) Get(ctx context.Context) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MultiValueLegacyExtendedProperty
+func (r *MultiValueLegacyExtendedPropertyRequest) Update(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MultiValueLegacyExtendedProperty
+func (r *MultiValueLegacyExtendedPropertyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MutabilityEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/MutabilityEnum.go
new file mode 100644
index 00000000..0875fde0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MutabilityEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Mutability undocumented
+type Mutability int
+
+const (
+ // MutabilityVReadWrite undocumented
+ MutabilityVReadWrite Mutability = 0
+ // MutabilityVReadOnly undocumented
+ MutabilityVReadOnly Mutability = 1
+ // MutabilityVImmutable undocumented
+ MutabilityVImmutable Mutability = 2
+ // MutabilityVWriteOnly undocumented
+ MutabilityVWriteOnly Mutability = 3
+)
+
+// MutabilityPReadWrite returns a pointer to MutabilityVReadWrite
+func MutabilityPReadWrite() *Mutability {
+ v := MutabilityVReadWrite
+ return &v
+}
+
+// MutabilityPReadOnly returns a pointer to MutabilityVReadOnly
+func MutabilityPReadOnly() *Mutability {
+ v := MutabilityVReadOnly
+ return &v
+}
+
+// MutabilityPImmutable returns a pointer to MutabilityVImmutable
+func MutabilityPImmutable() *Mutability {
+ v := MutabilityVImmutable
+ return &v
+}
+
+// MutabilityPWriteOnly returns a pointer to MutabilityVWriteOnly
+func MutabilityPWriteOnly() *Mutability {
+ v := MutabilityVWriteOnly
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MuteParticipantOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MuteParticipantOperationModel.go
new file mode 100644
index 00000000..1448c723
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MuteParticipantOperationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MuteParticipantOperation undocumented
+type MuteParticipantOperation struct {
+ // CommsOperation is the base model of MuteParticipantOperation
+ CommsOperation
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/MuteParticipantsOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/MuteParticipantsOperationModel.go
new file mode 100644
index 00000000..8dc6677d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/MuteParticipantsOperationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MuteParticipantsOperation undocumented
+type MuteParticipantsOperation struct {
+ // CommsOperation is the base model of MuteParticipantsOperation
+ CommsOperation
+ // Participants undocumented
+ Participants []string `json:"participants,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NamedLocationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/NamedLocationModel.go
new file mode 100644
index 00000000..75c1f627
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NamedLocationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// NamedLocation undocumented
+type NamedLocation struct {
+ // Entity is the base model of NamedLocation
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedDateTime undocumented
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NamedLocationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/NamedLocationRequest.go
new file mode 100644
index 00000000..1028c430
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NamedLocationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// NamedLocationRequestBuilder is request builder for NamedLocation
+type NamedLocationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns NamedLocationRequest
+func (b *NamedLocationRequestBuilder) Request() *NamedLocationRequest {
+ return &NamedLocationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// NamedLocationRequest is request for NamedLocation
+type NamedLocationRequest struct{ BaseRequest }
+
+// Get performs GET request for NamedLocation
+func (r *NamedLocationRequest) Get(ctx context.Context) (resObj *NamedLocation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for NamedLocation
+func (r *NamedLocationRequest) Update(ctx context.Context, reqObj *NamedLocation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for NamedLocation
+func (r *NamedLocationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NdesConnectorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/NdesConnectorModel.go
new file mode 100644
index 00000000..50ce1f3e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NdesConnectorModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// NdesConnector Entity which represents an OnPrem Ndes connector.
+type NdesConnector struct {
+ // Entity is the base model of NdesConnector
+ Entity
+ // LastConnectionDateTime Last connection time for the Ndes Connector
+ LastConnectionDateTime *time.Time `json:"lastConnectionDateTime,omitempty"`
+ // State Ndes Connector Status
+ State *NdesConnectorState `json:"state,omitempty"`
+ // DisplayName The friendly name of the Ndes Connector.
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NdesConnectorRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/NdesConnectorRequest.go
new file mode 100644
index 00000000..adee5745
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NdesConnectorRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// NdesConnectorRequestBuilder is request builder for NdesConnector
+type NdesConnectorRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns NdesConnectorRequest
+func (b *NdesConnectorRequestBuilder) Request() *NdesConnectorRequest {
+ return &NdesConnectorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// NdesConnectorRequest is request for NdesConnector
+type NdesConnectorRequest struct{ BaseRequest }
+
+// Get performs GET request for NdesConnector
+func (r *NdesConnectorRequest) Get(ctx context.Context) (resObj *NdesConnector, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for NdesConnector
+func (r *NdesConnectorRequest) Update(ctx context.Context, reqObj *NdesConnector) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for NdesConnector
+func (r *NdesConnectorRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NdesConnectorStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/NdesConnectorStateEnum.go
new file mode 100644
index 00000000..dca41a2a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NdesConnectorStateEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NdesConnectorState undocumented
+type NdesConnectorState int
+
+const (
+ // NdesConnectorStateVNone undocumented
+ NdesConnectorStateVNone NdesConnectorState = 0
+ // NdesConnectorStateVActive undocumented
+ NdesConnectorStateVActive NdesConnectorState = 1
+ // NdesConnectorStateVInactive undocumented
+ NdesConnectorStateVInactive NdesConnectorState = 2
+)
+
+// NdesConnectorStatePNone returns a pointer to NdesConnectorStateVNone
+func NdesConnectorStatePNone() *NdesConnectorState {
+ v := NdesConnectorStateVNone
+ return &v
+}
+
+// NdesConnectorStatePActive returns a pointer to NdesConnectorStateVActive
+func NdesConnectorStatePActive() *NdesConnectorState {
+ v := NdesConnectorStateVActive
+ return &v
+}
+
+// NdesConnectorStatePInactive returns a pointer to NdesConnectorStateVInactive
+func NdesConnectorStatePInactive() *NdesConnectorState {
+ v := NdesConnectorStateVInactive
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NetworkConnectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/NetworkConnectionModel.go
new file mode 100644
index 00000000..96f69349
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NetworkConnectionModel.go
@@ -0,0 +1,47 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// NetworkConnection undocumented
+type NetworkConnection struct {
+ // Object is the base model of NetworkConnection
+ Object
+ // ApplicationName undocumented
+ ApplicationName *string `json:"applicationName,omitempty"`
+ // DestinationAddress undocumented
+ DestinationAddress *string `json:"destinationAddress,omitempty"`
+ // DestinationDomain undocumented
+ DestinationDomain *string `json:"destinationDomain,omitempty"`
+ // DestinationPort undocumented
+ DestinationPort *string `json:"destinationPort,omitempty"`
+ // DestinationURL undocumented
+ DestinationURL *string `json:"destinationUrl,omitempty"`
+ // Direction undocumented
+ Direction *ConnectionDirection `json:"direction,omitempty"`
+ // DomainRegisteredDateTime undocumented
+ DomainRegisteredDateTime *time.Time `json:"domainRegisteredDateTime,omitempty"`
+ // LocalDNSName undocumented
+ LocalDNSName *string `json:"localDnsName,omitempty"`
+ // NatDestinationAddress undocumented
+ NatDestinationAddress *string `json:"natDestinationAddress,omitempty"`
+ // NatDestinationPort undocumented
+ NatDestinationPort *string `json:"natDestinationPort,omitempty"`
+ // NatSourceAddress undocumented
+ NatSourceAddress *string `json:"natSourceAddress,omitempty"`
+ // NatSourcePort undocumented
+ NatSourcePort *string `json:"natSourcePort,omitempty"`
+ // Protocol undocumented
+ Protocol *SecurityNetworkProtocol `json:"protocol,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // SourceAddress undocumented
+ SourceAddress *string `json:"sourceAddress,omitempty"`
+ // SourcePort undocumented
+ SourcePort *string `json:"sourcePort,omitempty"`
+ // Status undocumented
+ Status *ConnectionStatus `json:"status,omitempty"`
+ // URLParameters undocumented
+ URLParameters *string `json:"urlParameters,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NetworkIPv4ConfigurationManagementConditionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/NetworkIPv4ConfigurationManagementConditionModel.go
new file mode 100644
index 00000000..2ff7d472
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NetworkIPv4ConfigurationManagementConditionModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NetworkIPv4ConfigurationManagementCondition IPv4 configuration-based management conditions may be defined that will trigger when a device detects certain IP network settings. An IP config management conditions will only be considered TRUE when the network connection is active.
+type NetworkIPv4ConfigurationManagementCondition struct {
+ // NetworkManagementCondition is the base model of NetworkIPv4ConfigurationManagementCondition
+ NetworkManagementCondition
+ // IPV4Prefix The IPv4 subnet to be connected to. e.g. 10.0.0.0/8
+ IPV4Prefix *string `json:"ipV4Prefix,omitempty"`
+ // IPV4Gateway The IPv4 gateway address. e.g. 10.0.0.0
+ IPV4Gateway *string `json:"ipV4Gateway,omitempty"`
+ // IPV4DHCPServer The IPv4 address of the DHCP server for the adapter.
+ IPV4DHCPServer *string `json:"ipV4DHCPServer,omitempty"`
+ // IPV4DNSServerList The IPv4 DNS servers configured for the adapter.
+ IPV4DNSServerList []string `json:"ipV4DNSServerList,omitempty"`
+ // DNSSuffixList Valid DNS suffixes for the current network. e.g. seattle.contoso.com
+ DNSSuffixList []string `json:"dnsSuffixList,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NetworkIPv6ConfigurationManagementConditionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/NetworkIPv6ConfigurationManagementConditionModel.go
new file mode 100644
index 00000000..19a63c9a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NetworkIPv6ConfigurationManagementConditionModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NetworkIPv6ConfigurationManagementCondition IPv6 configuration-based management conditions may be defined that will trigger when a device detects certain IP network settings. An IP config management condition will only be considered TRUE when the network connection is active.
+type NetworkIPv6ConfigurationManagementCondition struct {
+ // NetworkManagementCondition is the base model of NetworkIPv6ConfigurationManagementCondition
+ NetworkManagementCondition
+ // IPV6Prefix The IPv6 subnet to be connected to. e.g. 2001:db8::/32
+ IPV6Prefix *string `json:"ipV6Prefix,omitempty"`
+ // IPV6Gateway The IPv6 gateway address to. e.g 2001:db8::1
+ IPV6Gateway *string `json:"ipV6Gateway,omitempty"`
+ // IPV6DNSServerList An IPv6 DNS servers configured for the adapter.
+ IPV6DNSServerList []string `json:"ipV6DNSServerList,omitempty"`
+ // DNSSuffixList Valid DNS suffixes for the current network. e.g. seattle.contoso.com
+ DNSSuffixList []string `json:"dnsSuffixList,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NetworkInterfaceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/NetworkInterfaceModel.go
new file mode 100644
index 00000000..a583932a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NetworkInterfaceModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NetworkInterface undocumented
+type NetworkInterface struct {
+ // Object is the base model of NetworkInterface
+ Object
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // IPV4Address undocumented
+ IPV4Address *string `json:"ipV4Address,omitempty"`
+ // IPV6Address undocumented
+ IPV6Address *string `json:"ipV6Address,omitempty"`
+ // LocalIPV6Address undocumented
+ LocalIPV6Address *string `json:"localIpV6Address,omitempty"`
+ // MacAddress undocumented
+ MacAddress *string `json:"macAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NetworkLocationDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/NetworkLocationDetailModel.go
new file mode 100644
index 00000000..8348e6dd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NetworkLocationDetailModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NetworkLocationDetail undocumented
+type NetworkLocationDetail struct {
+ // Object is the base model of NetworkLocationDetail
+ Object
+ // NetworkType undocumented
+ NetworkType *NetworkType `json:"networkType,omitempty"`
+ // NetworkNames undocumented
+ NetworkNames []string `json:"networkNames,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NetworkManagementConditionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/NetworkManagementConditionModel.go
new file mode 100644
index 00000000..f3012138
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NetworkManagementConditionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NetworkManagementCondition Contains the information to define a network management condition.
+type NetworkManagementCondition struct {
+ // ManagementCondition is the base model of NetworkManagementCondition
+ ManagementCondition
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NetworkSingleSignOnTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/NetworkSingleSignOnTypeEnum.go
new file mode 100644
index 00000000..9de28fd7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NetworkSingleSignOnTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NetworkSingleSignOnType undocumented
+type NetworkSingleSignOnType int
+
+const (
+ // NetworkSingleSignOnTypeVDisabled undocumented
+ NetworkSingleSignOnTypeVDisabled NetworkSingleSignOnType = 0
+ // NetworkSingleSignOnTypeVPrelogon undocumented
+ NetworkSingleSignOnTypeVPrelogon NetworkSingleSignOnType = 1
+ // NetworkSingleSignOnTypeVPostlogon undocumented
+ NetworkSingleSignOnTypeVPostlogon NetworkSingleSignOnType = 2
+)
+
+// NetworkSingleSignOnTypePDisabled returns a pointer to NetworkSingleSignOnTypeVDisabled
+func NetworkSingleSignOnTypePDisabled() *NetworkSingleSignOnType {
+ v := NetworkSingleSignOnTypeVDisabled
+ return &v
+}
+
+// NetworkSingleSignOnTypePPrelogon returns a pointer to NetworkSingleSignOnTypeVPrelogon
+func NetworkSingleSignOnTypePPrelogon() *NetworkSingleSignOnType {
+ v := NetworkSingleSignOnTypeVPrelogon
+ return &v
+}
+
+// NetworkSingleSignOnTypePPostlogon returns a pointer to NetworkSingleSignOnTypeVPostlogon
+func NetworkSingleSignOnTypePPostlogon() *NetworkSingleSignOnType {
+ v := NetworkSingleSignOnTypeVPostlogon
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NetworkTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/NetworkTypeEnum.go
new file mode 100644
index 00000000..0a37715b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NetworkTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NetworkType undocumented
+type NetworkType int
+
+const (
+ // NetworkTypeVIntranet undocumented
+ NetworkTypeVIntranet NetworkType = 0
+ // NetworkTypeVExtranet undocumented
+ NetworkTypeVExtranet NetworkType = 1
+ // NetworkTypeVNamedNetwork undocumented
+ NetworkTypeVNamedNetwork NetworkType = 2
+ // NetworkTypeVTrusted undocumented
+ NetworkTypeVTrusted NetworkType = 3
+ // NetworkTypeVUnknownFutureValue undocumented
+ NetworkTypeVUnknownFutureValue NetworkType = 4
+)
+
+// NetworkTypePIntranet returns a pointer to NetworkTypeVIntranet
+func NetworkTypePIntranet() *NetworkType {
+ v := NetworkTypeVIntranet
+ return &v
+}
+
+// NetworkTypePExtranet returns a pointer to NetworkTypeVExtranet
+func NetworkTypePExtranet() *NetworkType {
+ v := NetworkTypeVExtranet
+ return &v
+}
+
+// NetworkTypePNamedNetwork returns a pointer to NetworkTypeVNamedNetwork
+func NetworkTypePNamedNetwork() *NetworkType {
+ v := NetworkTypeVNamedNetwork
+ return &v
+}
+
+// NetworkTypePTrusted returns a pointer to NetworkTypeVTrusted
+func NetworkTypePTrusted() *NetworkType {
+ v := NetworkTypeVTrusted
+ return &v
+}
+
+// NetworkTypePUnknownFutureValue returns a pointer to NetworkTypeVUnknownFutureValue
+func NetworkTypePUnknownFutureValue() *NetworkType {
+ v := NetworkTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NonEapAuthenticationMethodForEapTtlsTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/NonEapAuthenticationMethodForEapTtlsTypeEnum.go
new file mode 100644
index 00000000..6cbdb43f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NonEapAuthenticationMethodForEapTtlsTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NonEapAuthenticationMethodForEapTtlsType undocumented
+type NonEapAuthenticationMethodForEapTtlsType int
+
+const (
+ // NonEapAuthenticationMethodForEapTtlsTypeVUnencryptedPassword undocumented
+ NonEapAuthenticationMethodForEapTtlsTypeVUnencryptedPassword NonEapAuthenticationMethodForEapTtlsType = 0
+ // NonEapAuthenticationMethodForEapTtlsTypeVChallengeHandshakeAuthenticationProtocol undocumented
+ NonEapAuthenticationMethodForEapTtlsTypeVChallengeHandshakeAuthenticationProtocol NonEapAuthenticationMethodForEapTtlsType = 1
+ // NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChap undocumented
+ NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChap NonEapAuthenticationMethodForEapTtlsType = 2
+ // NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChapVersionTwo undocumented
+ NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChapVersionTwo NonEapAuthenticationMethodForEapTtlsType = 3
+)
+
+// NonEapAuthenticationMethodForEapTtlsTypePUnencryptedPassword returns a pointer to NonEapAuthenticationMethodForEapTtlsTypeVUnencryptedPassword
+func NonEapAuthenticationMethodForEapTtlsTypePUnencryptedPassword() *NonEapAuthenticationMethodForEapTtlsType {
+ v := NonEapAuthenticationMethodForEapTtlsTypeVUnencryptedPassword
+ return &v
+}
+
+// NonEapAuthenticationMethodForEapTtlsTypePChallengeHandshakeAuthenticationProtocol returns a pointer to NonEapAuthenticationMethodForEapTtlsTypeVChallengeHandshakeAuthenticationProtocol
+func NonEapAuthenticationMethodForEapTtlsTypePChallengeHandshakeAuthenticationProtocol() *NonEapAuthenticationMethodForEapTtlsType {
+ v := NonEapAuthenticationMethodForEapTtlsTypeVChallengeHandshakeAuthenticationProtocol
+ return &v
+}
+
+// NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChap returns a pointer to NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChap
+func NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChap() *NonEapAuthenticationMethodForEapTtlsType {
+ v := NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChap
+ return &v
+}
+
+// NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChapVersionTwo returns a pointer to NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChapVersionTwo
+func NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChapVersionTwo() *NonEapAuthenticationMethodForEapTtlsType {
+ v := NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChapVersionTwo
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NonEapAuthenticationMethodForPeapEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/NonEapAuthenticationMethodForPeapEnum.go
new file mode 100644
index 00000000..4ba6ab99
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NonEapAuthenticationMethodForPeapEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NonEapAuthenticationMethodForPeap undocumented
+type NonEapAuthenticationMethodForPeap int
+
+const (
+ // NonEapAuthenticationMethodForPeapVNone undocumented
+ NonEapAuthenticationMethodForPeapVNone NonEapAuthenticationMethodForPeap = 0
+ // NonEapAuthenticationMethodForPeapVMicrosoftChapVersionTwo undocumented
+ NonEapAuthenticationMethodForPeapVMicrosoftChapVersionTwo NonEapAuthenticationMethodForPeap = 1
+)
+
+// NonEapAuthenticationMethodForPeapPNone returns a pointer to NonEapAuthenticationMethodForPeapVNone
+func NonEapAuthenticationMethodForPeapPNone() *NonEapAuthenticationMethodForPeap {
+ v := NonEapAuthenticationMethodForPeapVNone
+ return &v
+}
+
+// NonEapAuthenticationMethodForPeapPMicrosoftChapVersionTwo returns a pointer to NonEapAuthenticationMethodForPeapVMicrosoftChapVersionTwo
+func NonEapAuthenticationMethodForPeapPMicrosoftChapVersionTwo() *NonEapAuthenticationMethodForPeap {
+ v := NonEapAuthenticationMethodForPeapVMicrosoftChapVersionTwo
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NotebookAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/NotebookAction.go
new file mode 100644
index 00000000..9180ec2a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NotebookAction.go
@@ -0,0 +1,79 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// NotebookCollectionGetNotebookFromWebURLRequestParameter undocumented
+type NotebookCollectionGetNotebookFromWebURLRequestParameter struct {
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
+
+// NotebookCopyNotebookRequestParameter undocumented
+type NotebookCopyNotebookRequestParameter struct {
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+ // RenameAs undocumented
+ RenameAs *string `json:"renameAs,omitempty"`
+ // NotebookFolder undocumented
+ NotebookFolder *string `json:"notebookFolder,omitempty"`
+ // SiteCollectionID undocumented
+ SiteCollectionID *string `json:"siteCollectionId,omitempty"`
+ // SiteID undocumented
+ SiteID *string `json:"siteId,omitempty"`
+}
+
+//
+type NotebookCollectionGetNotebookFromWebURLRequestBuilder struct{ BaseRequestBuilder }
+
+// GetNotebookFromWebURL action undocumented
+func (b *OnenoteNotebooksCollectionRequestBuilder) GetNotebookFromWebURL(reqObj *NotebookCollectionGetNotebookFromWebURLRequestParameter) *NotebookCollectionGetNotebookFromWebURLRequestBuilder {
+ bb := &NotebookCollectionGetNotebookFromWebURLRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getNotebookFromWebUrl"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type NotebookCollectionGetNotebookFromWebURLRequest struct{ BaseRequest }
+
+//
+func (b *NotebookCollectionGetNotebookFromWebURLRequestBuilder) Request() *NotebookCollectionGetNotebookFromWebURLRequest {
+ return &NotebookCollectionGetNotebookFromWebURLRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *NotebookCollectionGetNotebookFromWebURLRequest) Post(ctx context.Context) (resObj *CopyNotebookModel, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type NotebookCopyNotebookRequestBuilder struct{ BaseRequestBuilder }
+
+// CopyNotebook action undocumented
+func (b *NotebookRequestBuilder) CopyNotebook(reqObj *NotebookCopyNotebookRequestParameter) *NotebookCopyNotebookRequestBuilder {
+ bb := &NotebookCopyNotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/copyNotebook"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type NotebookCopyNotebookRequest struct{ BaseRequest }
+
+//
+func (b *NotebookCopyNotebookRequestBuilder) Request() *NotebookCopyNotebookRequest {
+ return &NotebookCopyNotebookRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *NotebookCopyNotebookRequest) Post(ctx context.Context) (resObj *OnenoteOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NotebookLinksModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/NotebookLinksModel.go
new file mode 100644
index 00000000..8ede3482
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NotebookLinksModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NotebookLinks undocumented
+type NotebookLinks struct {
+ // Object is the base model of NotebookLinks
+ Object
+ // OneNoteClientURL undocumented
+ OneNoteClientURL *ExternalLink `json:"oneNoteClientUrl,omitempty"`
+ // OneNoteWebURL undocumented
+ OneNoteWebURL *ExternalLink `json:"oneNoteWebUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NotebookModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/NotebookModel.go
new file mode 100644
index 00000000..22aabd6a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NotebookModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Notebook undocumented
+type Notebook struct {
+ // OnenoteEntityHierarchyModel is the base model of Notebook
+ OnenoteEntityHierarchyModel
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // UserRole undocumented
+ UserRole *OnenoteUserRole `json:"userRole,omitempty"`
+ // IsShared undocumented
+ IsShared *bool `json:"isShared,omitempty"`
+ // SectionsURL undocumented
+ SectionsURL *string `json:"sectionsUrl,omitempty"`
+ // SectionGroupsURL undocumented
+ SectionGroupsURL *string `json:"sectionGroupsUrl,omitempty"`
+ // Links undocumented
+ Links *NotebookLinks `json:"links,omitempty"`
+ // Sections undocumented
+ Sections []OnenoteSection `json:"sections,omitempty"`
+ // SectionGroups undocumented
+ SectionGroups []SectionGroup `json:"sectionGroups,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NotebookRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/NotebookRequest.go
new file mode 100644
index 00000000..ab2c6ea9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NotebookRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// NotebookRequestBuilder is request builder for Notebook
+type NotebookRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns NotebookRequest
+func (b *NotebookRequestBuilder) Request() *NotebookRequest {
+ return &NotebookRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// NotebookRequest is request for Notebook
+type NotebookRequest struct{ BaseRequest }
+
+// Get performs GET request for Notebook
+func (r *NotebookRequest) Get(ctx context.Context) (resObj *Notebook, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Notebook
+func (r *NotebookRequest) Update(ctx context.Context, reqObj *Notebook) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Notebook
+func (r *NotebookRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SectionGroups returns request builder for SectionGroup collection
+func (b *NotebookRequestBuilder) SectionGroups() *NotebookSectionGroupsCollectionRequestBuilder {
+ bb := &NotebookSectionGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sectionGroups"
+ return bb
+}
+
+// NotebookSectionGroupsCollectionRequestBuilder is request builder for SectionGroup collection
+type NotebookSectionGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SectionGroup collection
+func (b *NotebookSectionGroupsCollectionRequestBuilder) Request() *NotebookSectionGroupsCollectionRequest {
+ return &NotebookSectionGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SectionGroup item
+func (b *NotebookSectionGroupsCollectionRequestBuilder) ID(id string) *SectionGroupRequestBuilder {
+ bb := &SectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// NotebookSectionGroupsCollectionRequest is request for SectionGroup collection
+type NotebookSectionGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SectionGroup collection
+func (r *NotebookSectionGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SectionGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SectionGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SectionGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SectionGroup collection
+func (r *NotebookSectionGroupsCollectionRequest) Get(ctx context.Context) ([]SectionGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SectionGroup collection
+func (r *NotebookSectionGroupsCollectionRequest) Add(ctx context.Context, reqObj *SectionGroup) (resObj *SectionGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Sections returns request builder for OnenoteSection collection
+func (b *NotebookRequestBuilder) Sections() *NotebookSectionsCollectionRequestBuilder {
+ bb := &NotebookSectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sections"
+ return bb
+}
+
+// NotebookSectionsCollectionRequestBuilder is request builder for OnenoteSection collection
+type NotebookSectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnenoteSection collection
+func (b *NotebookSectionsCollectionRequestBuilder) Request() *NotebookSectionsCollectionRequest {
+ return &NotebookSectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnenoteSection item
+func (b *NotebookSectionsCollectionRequestBuilder) ID(id string) *OnenoteSectionRequestBuilder {
+ bb := &OnenoteSectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// NotebookSectionsCollectionRequest is request for OnenoteSection collection
+type NotebookSectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnenoteSection collection
+func (r *NotebookSectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OnenoteSection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnenoteSection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnenoteSection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnenoteSection collection
+func (r *NotebookSectionsCollectionRequest) Get(ctx context.Context) ([]OnenoteSection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OnenoteSection collection
+func (r *NotebookSectionsCollectionRequest) Add(ctx context.Context, reqObj *OnenoteSection) (resObj *OnenoteSection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NotificationMessageTemplateAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/NotificationMessageTemplateAction.go
new file mode 100644
index 00000000..639588cd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NotificationMessageTemplateAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// NotificationMessageTemplateSendTestMessageRequestParameter undocumented
+type NotificationMessageTemplateSendTestMessageRequestParameter struct {
+}
+
+//
+type NotificationMessageTemplateSendTestMessageRequestBuilder struct{ BaseRequestBuilder }
+
+// SendTestMessage action undocumented
+func (b *NotificationMessageTemplateRequestBuilder) SendTestMessage(reqObj *NotificationMessageTemplateSendTestMessageRequestParameter) *NotificationMessageTemplateSendTestMessageRequestBuilder {
+ bb := &NotificationMessageTemplateSendTestMessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sendTestMessage"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type NotificationMessageTemplateSendTestMessageRequest struct{ BaseRequest }
+
+//
+func (b *NotificationMessageTemplateSendTestMessageRequestBuilder) Request() *NotificationMessageTemplateSendTestMessageRequest {
+ return &NotificationMessageTemplateSendTestMessageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *NotificationMessageTemplateSendTestMessageRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NotificationMessageTemplateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/NotificationMessageTemplateModel.go
new file mode 100644
index 00000000..e2b4a374
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NotificationMessageTemplateModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// NotificationMessageTemplate Notification messages are messages that are sent to end users who are determined to be not-compliant with the compliance policies defined by the administrator. Administrators choose notifications and configure them in the Intune Admin Console using the compliance policy creation page under the “Actions for non-compliance” section. Use the notificationMessageTemplate object to create your own custom notifications for administrators to choose while configuring actions for non-compliance.
+type NotificationMessageTemplate struct {
+ // Entity is the base model of NotificationMessageTemplate
+ Entity
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DisplayName Display name for the Notification Message Template.
+ DisplayName *string `json:"displayName,omitempty"`
+ // DefaultLocale The default locale to fallback onto when the requested locale is not available.
+ DefaultLocale *string `json:"defaultLocale,omitempty"`
+ // BrandingOptions The Message Template Branding Options. Branding is defined in the Intune Admin Console.
+ BrandingOptions *NotificationTemplateBrandingOptions `json:"brandingOptions,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // LocalizedNotificationMessages undocumented
+ LocalizedNotificationMessages []LocalizedNotificationMessage `json:"localizedNotificationMessages,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NotificationMessageTemplateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/NotificationMessageTemplateRequest.go
new file mode 100644
index 00000000..3132ea51
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NotificationMessageTemplateRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// NotificationMessageTemplateRequestBuilder is request builder for NotificationMessageTemplate
+type NotificationMessageTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns NotificationMessageTemplateRequest
+func (b *NotificationMessageTemplateRequestBuilder) Request() *NotificationMessageTemplateRequest {
+ return &NotificationMessageTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// NotificationMessageTemplateRequest is request for NotificationMessageTemplate
+type NotificationMessageTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for NotificationMessageTemplate
+func (r *NotificationMessageTemplateRequest) Get(ctx context.Context) (resObj *NotificationMessageTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for NotificationMessageTemplate
+func (r *NotificationMessageTemplateRequest) Update(ctx context.Context, reqObj *NotificationMessageTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for NotificationMessageTemplate
+func (r *NotificationMessageTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// LocalizedNotificationMessages returns request builder for LocalizedNotificationMessage collection
+func (b *NotificationMessageTemplateRequestBuilder) LocalizedNotificationMessages() *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder {
+ bb := &NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/localizedNotificationMessages"
+ return bb
+}
+
+// NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder is request builder for LocalizedNotificationMessage collection
+type NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for LocalizedNotificationMessage collection
+func (b *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder) Request() *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest {
+ return &NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for LocalizedNotificationMessage item
+func (b *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder) ID(id string) *LocalizedNotificationMessageRequestBuilder {
+ bb := &LocalizedNotificationMessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest is request for LocalizedNotificationMessage collection
+type NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for LocalizedNotificationMessage collection
+func (r *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]LocalizedNotificationMessage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []LocalizedNotificationMessage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []LocalizedNotificationMessage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for LocalizedNotificationMessage collection
+func (r *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest) Get(ctx context.Context) ([]LocalizedNotificationMessage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for LocalizedNotificationMessage collection
+func (r *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest) Add(ctx context.Context, reqObj *LocalizedNotificationMessage) (resObj *LocalizedNotificationMessage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NotificationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/NotificationModel.go
new file mode 100644
index 00000000..9166da7d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NotificationModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Notification undocumented
+type Notification struct {
+ // Entity is the base model of Notification
+ Entity
+ // TargetHostName undocumented
+ TargetHostName *string `json:"targetHostName,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // Payload undocumented
+ Payload *PayloadTypes `json:"payload,omitempty"`
+ // DisplayTimeToLive undocumented
+ DisplayTimeToLive *int `json:"displayTimeToLive,omitempty"`
+ // Priority undocumented
+ Priority *Priority `json:"priority,omitempty"`
+ // GroupName undocumented
+ GroupName *string `json:"groupName,omitempty"`
+ // TargetPolicy undocumented
+ TargetPolicy *TargetPolicyEndpoints `json:"targetPolicy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NotificationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/NotificationRequest.go
new file mode 100644
index 00000000..cebf668f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NotificationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// NotificationRequestBuilder is request builder for Notification
+type NotificationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns NotificationRequest
+func (b *NotificationRequestBuilder) Request() *NotificationRequest {
+ return &NotificationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// NotificationRequest is request for Notification
+type NotificationRequest struct{ BaseRequest }
+
+// Get performs GET request for Notification
+func (r *NotificationRequest) Get(ctx context.Context) (resObj *Notification, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Notification
+func (r *NotificationRequest) Update(ctx context.Context, reqObj *Notification) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Notification
+func (r *NotificationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NotificationTemplateBrandingOptionsEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/NotificationTemplateBrandingOptionsEnum.go
new file mode 100644
index 00000000..1921d035
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NotificationTemplateBrandingOptionsEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NotificationTemplateBrandingOptions undocumented
+type NotificationTemplateBrandingOptions int
+
+const (
+ // NotificationTemplateBrandingOptionsVNone undocumented
+ NotificationTemplateBrandingOptionsVNone NotificationTemplateBrandingOptions = 0
+ // NotificationTemplateBrandingOptionsVIncludeCompanyLogo undocumented
+ NotificationTemplateBrandingOptionsVIncludeCompanyLogo NotificationTemplateBrandingOptions = 1
+ // NotificationTemplateBrandingOptionsVIncludeCompanyName undocumented
+ NotificationTemplateBrandingOptionsVIncludeCompanyName NotificationTemplateBrandingOptions = 2
+ // NotificationTemplateBrandingOptionsVIncludeContactInformation undocumented
+ NotificationTemplateBrandingOptionsVIncludeContactInformation NotificationTemplateBrandingOptions = 4
+)
+
+// NotificationTemplateBrandingOptionsPNone returns a pointer to NotificationTemplateBrandingOptionsVNone
+func NotificationTemplateBrandingOptionsPNone() *NotificationTemplateBrandingOptions {
+ v := NotificationTemplateBrandingOptionsVNone
+ return &v
+}
+
+// NotificationTemplateBrandingOptionsPIncludeCompanyLogo returns a pointer to NotificationTemplateBrandingOptionsVIncludeCompanyLogo
+func NotificationTemplateBrandingOptionsPIncludeCompanyLogo() *NotificationTemplateBrandingOptions {
+ v := NotificationTemplateBrandingOptionsVIncludeCompanyLogo
+ return &v
+}
+
+// NotificationTemplateBrandingOptionsPIncludeCompanyName returns a pointer to NotificationTemplateBrandingOptionsVIncludeCompanyName
+func NotificationTemplateBrandingOptionsPIncludeCompanyName() *NotificationTemplateBrandingOptions {
+ v := NotificationTemplateBrandingOptionsVIncludeCompanyName
+ return &v
+}
+
+// NotificationTemplateBrandingOptionsPIncludeContactInformation returns a pointer to NotificationTemplateBrandingOptionsVIncludeContactInformation
+func NotificationTemplateBrandingOptionsPIncludeContactInformation() *NotificationTemplateBrandingOptions {
+ v := NotificationTemplateBrandingOptionsVIncludeContactInformation
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NotifyUserActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/NotifyUserActionModel.go
new file mode 100644
index 00000000..d64add7f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NotifyUserActionModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// NotifyUserAction undocumented
+type NotifyUserAction struct {
+ // DlpActionInfo is the base model of NotifyUserAction
+ DlpActionInfo
+ // Recipients undocumented
+ Recipients []string `json:"recipients,omitempty"`
+ // ActionLastModifiedDateTime undocumented
+ ActionLastModifiedDateTime *time.Time `json:"actionLastModifiedDateTime,omitempty"`
+ // OverrideOption undocumented
+ OverrideOption *OverrideOption `json:"overrideOption,omitempty"`
+ // EmailText undocumented
+ EmailText *string `json:"emailText,omitempty"`
+ // PolicyTip undocumented
+ PolicyTip *string `json:"policyTip,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NumberColumnModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/NumberColumnModel.go
new file mode 100644
index 00000000..a7d4864b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NumberColumnModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NumberColumn undocumented
+type NumberColumn struct {
+ // Object is the base model of NumberColumn
+ Object
+ // DecimalPlaces undocumented
+ DecimalPlaces *string `json:"decimalPlaces,omitempty"`
+ // DisplayAs undocumented
+ DisplayAs *string `json:"displayAs,omitempty"`
+ // Maximum undocumented
+ Maximum *float64 `json:"maximum,omitempty"`
+ // Minimum undocumented
+ Minimum *float64 `json:"minimum,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/NumberRangeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/NumberRangeModel.go
new file mode 100644
index 00000000..37d7c412
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/NumberRangeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NumberRange undocumented
+type NumberRange struct {
+ // Object is the base model of NumberRange
+ Object
+ // LowerNumber Lower number.
+ LowerNumber *int `json:"lowerNumber,omitempty"`
+ // UpperNumber Upper number.
+ UpperNumber *int `json:"upperNumber,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OAuth2PermissionGrantModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OAuth2PermissionGrantModel.go
new file mode 100644
index 00000000..aab9aaaf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OAuth2PermissionGrantModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OAuth2PermissionGrant undocumented
+type OAuth2PermissionGrant struct {
+ // Entity is the base model of OAuth2PermissionGrant
+ Entity
+ // ClientID undocumented
+ ClientID *string `json:"clientId,omitempty"`
+ // ConsentType undocumented
+ ConsentType *string `json:"consentType,omitempty"`
+ // ExpiryTime undocumented
+ ExpiryTime *time.Time `json:"expiryTime,omitempty"`
+ // PrincipalID undocumented
+ PrincipalID *string `json:"principalId,omitempty"`
+ // ResourceID undocumented
+ ResourceID *string `json:"resourceId,omitempty"`
+ // Scope undocumented
+ Scope *string `json:"scope,omitempty"`
+ // StartTime undocumented
+ StartTime *time.Time `json:"startTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OAuth2PermissionGrantRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OAuth2PermissionGrantRequest.go
new file mode 100644
index 00000000..26aeaae2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OAuth2PermissionGrantRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OAuth2PermissionGrantRequestBuilder is request builder for OAuth2PermissionGrant
+type OAuth2PermissionGrantRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OAuth2PermissionGrantRequest
+func (b *OAuth2PermissionGrantRequestBuilder) Request() *OAuth2PermissionGrantRequest {
+ return &OAuth2PermissionGrantRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OAuth2PermissionGrantRequest is request for OAuth2PermissionGrant
+type OAuth2PermissionGrantRequest struct{ BaseRequest }
+
+// Get performs GET request for OAuth2PermissionGrant
+func (r *OAuth2PermissionGrantRequest) Get(ctx context.Context) (resObj *OAuth2PermissionGrant, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OAuth2PermissionGrant
+func (r *OAuth2PermissionGrantRequest) Update(ctx context.Context, reqObj *OAuth2PermissionGrant) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OAuth2PermissionGrant
+func (r *OAuth2PermissionGrantRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingBase64Model.go b/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingBase64Model.go
new file mode 100644
index 00000000..196562a7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingBase64Model.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OMASettingBase64 undocumented
+type OMASettingBase64 struct {
+ // OMASetting is the base model of OMASettingBase64
+ OMASetting
+ // FileName File name associated with the Value property (*.cer | *.crt | *.p7b | *.bin).
+ FileName *string `json:"fileName,omitempty"`
+ // Value Value. (Base64 encoded string)
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingBooleanModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingBooleanModel.go
new file mode 100644
index 00000000..a54d6b10
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingBooleanModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OMASettingBoolean undocumented
+type OMASettingBoolean struct {
+ // OMASetting is the base model of OMASettingBoolean
+ OMASetting
+ // Value Value.
+ Value *bool `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingDateTimeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingDateTimeModel.go
new file mode 100644
index 00000000..69d5e171
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingDateTimeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OMASettingDateTime undocumented
+type OMASettingDateTime struct {
+ // OMASetting is the base model of OMASettingDateTime
+ OMASetting
+ // Value Value.
+ Value *time.Time `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingFloatingPointModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingFloatingPointModel.go
new file mode 100644
index 00000000..a90a8abe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingFloatingPointModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OMASettingFloatingPoint undocumented
+type OMASettingFloatingPoint struct {
+ // OMASetting is the base model of OMASettingFloatingPoint
+ OMASetting
+ // Value Value.
+ Value *float64 `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingIntegerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingIntegerModel.go
new file mode 100644
index 00000000..5fe6ef58
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingIntegerModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OMASettingInteger undocumented
+type OMASettingInteger struct {
+ // OMASetting is the base model of OMASettingInteger
+ OMASetting
+ // Value Value.
+ Value *int `json:"value,omitempty"`
+ // IsReadOnly By setting to true, the CSP (configuration service provider) specified in the OMA-URI will perform a get, instead of set
+ IsReadOnly *bool `json:"isReadOnly,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingModel.go
new file mode 100644
index 00000000..59ae0d25
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OMASetting undocumented
+type OMASetting struct {
+ // Object is the base model of OMASetting
+ Object
+ // DisplayName Display Name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description.
+ Description *string `json:"description,omitempty"`
+ // OMAURI OMA.
+ OMAURI *string `json:"omaUri,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingStringModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingStringModel.go
new file mode 100644
index 00000000..03f929bc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingStringModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OMASettingString undocumented
+type OMASettingString struct {
+ // OMASetting is the base model of OMASettingString
+ OMASetting
+ // Value Value.
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingStringXMLModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingStringXMLModel.go
new file mode 100644
index 00000000..50b44465
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OMASettingStringXMLModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OMASettingStringXML undocumented
+type OMASettingStringXML struct {
+ // OMASetting is the base model of OMASettingStringXML
+ OMASetting
+ // FileName File name associated with the Value property (*.xml).
+ FileName *string `json:"fileName,omitempty"`
+ // Value Value. (UTF8 encoded byte array)
+ Value *Binary `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ObjectDefinitionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ObjectDefinitionModel.go
new file mode 100644
index 00000000..5a6bc8ec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ObjectDefinitionModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ObjectDefinition undocumented
+type ObjectDefinition struct {
+ // Object is the base model of ObjectDefinition
+ Object
+ // Attributes undocumented
+ Attributes []AttributeDefinition `json:"attributes,omitempty"`
+ // Metadata undocumented
+ Metadata []MetadataEntry `json:"metadata,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // SupportedApis undocumented
+ SupportedApis []string `json:"supportedApis,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ObjectFlowTypesEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ObjectFlowTypesEnum.go
new file mode 100644
index 00000000..ce1f0ed2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ObjectFlowTypesEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ObjectFlowTypes undocumented
+type ObjectFlowTypes int
+
+const (
+ // ObjectFlowTypesVNone undocumented
+ ObjectFlowTypesVNone ObjectFlowTypes = 0
+ // ObjectFlowTypesVAdd undocumented
+ ObjectFlowTypesVAdd ObjectFlowTypes = 1
+ // ObjectFlowTypesVUpdate undocumented
+ ObjectFlowTypesVUpdate ObjectFlowTypes = 2
+ // ObjectFlowTypesVDelete undocumented
+ ObjectFlowTypesVDelete ObjectFlowTypes = 4
+)
+
+// ObjectFlowTypesPNone returns a pointer to ObjectFlowTypesVNone
+func ObjectFlowTypesPNone() *ObjectFlowTypes {
+ v := ObjectFlowTypesVNone
+ return &v
+}
+
+// ObjectFlowTypesPAdd returns a pointer to ObjectFlowTypesVAdd
+func ObjectFlowTypesPAdd() *ObjectFlowTypes {
+ v := ObjectFlowTypesVAdd
+ return &v
+}
+
+// ObjectFlowTypesPUpdate returns a pointer to ObjectFlowTypesVUpdate
+func ObjectFlowTypesPUpdate() *ObjectFlowTypes {
+ v := ObjectFlowTypesVUpdate
+ return &v
+}
+
+// ObjectFlowTypesPDelete returns a pointer to ObjectFlowTypesVDelete
+func ObjectFlowTypesPDelete() *ObjectFlowTypes {
+ v := ObjectFlowTypesVDelete
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ObjectIdentityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ObjectIdentityModel.go
new file mode 100644
index 00000000..ef82a2e0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ObjectIdentityModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ObjectIdentity undocumented
+type ObjectIdentity struct {
+ // Object is the base model of ObjectIdentity
+ Object
+ // SignInType undocumented
+ SignInType *string `json:"signInType,omitempty"`
+ // Issuer undocumented
+ Issuer *string `json:"issuer,omitempty"`
+ // IssuerAssignedID undocumented
+ IssuerAssignedID *string `json:"issuerAssignedId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ObjectMappingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ObjectMappingModel.go
new file mode 100644
index 00000000..a24b831a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ObjectMappingModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ObjectMapping undocumented
+type ObjectMapping struct {
+ // Object is the base model of ObjectMapping
+ Object
+ // AttributeMappings undocumented
+ AttributeMappings []AttributeMapping `json:"attributeMappings,omitempty"`
+ // Enabled undocumented
+ Enabled *bool `json:"enabled,omitempty"`
+ // FlowTypes undocumented
+ FlowTypes *ObjectFlowTypes `json:"flowTypes,omitempty"`
+ // Metadata undocumented
+ Metadata []MetadataEntry `json:"metadata,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Scope undocumented
+ Scope *Filter `json:"scope,omitempty"`
+ // SourceObjectName undocumented
+ SourceObjectName *string `json:"sourceObjectName,omitempty"`
+ // TargetObjectName undocumented
+ TargetObjectName *string `json:"targetObjectName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Office365ActivationCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Office365ActivationCountsModel.go
new file mode 100644
index 00000000..a7ec259a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Office365ActivationCountsModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365ActivationCounts undocumented
+type Office365ActivationCounts struct {
+ // Entity is the base model of Office365ActivationCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ProductType undocumented
+ ProductType *string `json:"productType,omitempty"`
+ // Windows undocumented
+ Windows *int `json:"windows,omitempty"`
+ // Mac undocumented
+ Mac *int `json:"mac,omitempty"`
+ // Android undocumented
+ Android *int `json:"android,omitempty"`
+ // IOS undocumented
+ IOS *int `json:"ios,omitempty"`
+ // Windows10Mobile undocumented
+ Windows10Mobile *int `json:"windows10Mobile,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Office365ActivationsUserCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Office365ActivationsUserCountsModel.go
new file mode 100644
index 00000000..60a1d0a4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Office365ActivationsUserCountsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365ActivationsUserCounts undocumented
+type Office365ActivationsUserCounts struct {
+ // Entity is the base model of Office365ActivationsUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ProductType undocumented
+ ProductType *string `json:"productType,omitempty"`
+ // Assigned undocumented
+ Assigned *int `json:"assigned,omitempty"`
+ // Activated undocumented
+ Activated *int `json:"activated,omitempty"`
+ // SharedComputerActivation undocumented
+ SharedComputerActivation *int `json:"sharedComputerActivation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Office365ActivationsUserDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Office365ActivationsUserDetailModel.go
new file mode 100644
index 00000000..ebf4b23c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Office365ActivationsUserDetailModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365ActivationsUserDetail undocumented
+type Office365ActivationsUserDetail struct {
+ // Entity is the base model of Office365ActivationsUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // UserActivationCounts undocumented
+ UserActivationCounts []UserActivationCounts `json:"userActivationCounts,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Office365ActiveUserCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Office365ActiveUserCountsModel.go
new file mode 100644
index 00000000..8d9a2a92
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Office365ActiveUserCountsModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365ActiveUserCounts undocumented
+type Office365ActiveUserCounts struct {
+ // Entity is the base model of Office365ActiveUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // Office365 undocumented
+ Office365 *int `json:"office365,omitempty"`
+ // Exchange undocumented
+ Exchange *int `json:"exchange,omitempty"`
+ // OneDrive undocumented
+ OneDrive *int `json:"oneDrive,omitempty"`
+ // SharePoint undocumented
+ SharePoint *int `json:"sharePoint,omitempty"`
+ // SkypeForBusiness undocumented
+ SkypeForBusiness *int `json:"skypeForBusiness,omitempty"`
+ // Yammer undocumented
+ Yammer *int `json:"yammer,omitempty"`
+ // Teams undocumented
+ Teams *int `json:"teams,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Office365ActiveUserDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Office365ActiveUserDetailModel.go
new file mode 100644
index 00000000..c8ed2238
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Office365ActiveUserDetailModel.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365ActiveUserDetail undocumented
+type Office365ActiveUserDetail struct {
+ // Entity is the base model of Office365ActiveUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *time.Time `json:"deletedDate,omitempty"`
+ // HasExchangeLicense undocumented
+ HasExchangeLicense *bool `json:"hasExchangeLicense,omitempty"`
+ // HasOneDriveLicense undocumented
+ HasOneDriveLicense *bool `json:"hasOneDriveLicense,omitempty"`
+ // HasSharePointLicense undocumented
+ HasSharePointLicense *bool `json:"hasSharePointLicense,omitempty"`
+ // HasSkypeForBusinessLicense undocumented
+ HasSkypeForBusinessLicense *bool `json:"hasSkypeForBusinessLicense,omitempty"`
+ // HasYammerLicense undocumented
+ HasYammerLicense *bool `json:"hasYammerLicense,omitempty"`
+ // HasTeamsLicense undocumented
+ HasTeamsLicense *bool `json:"hasTeamsLicense,omitempty"`
+ // ExchangeLastActivityDate undocumented
+ ExchangeLastActivityDate *time.Time `json:"exchangeLastActivityDate,omitempty"`
+ // OneDriveLastActivityDate undocumented
+ OneDriveLastActivityDate *time.Time `json:"oneDriveLastActivityDate,omitempty"`
+ // SharePointLastActivityDate undocumented
+ SharePointLastActivityDate *time.Time `json:"sharePointLastActivityDate,omitempty"`
+ // SkypeForBusinessLastActivityDate undocumented
+ SkypeForBusinessLastActivityDate *time.Time `json:"skypeForBusinessLastActivityDate,omitempty"`
+ // YammerLastActivityDate undocumented
+ YammerLastActivityDate *time.Time `json:"yammerLastActivityDate,omitempty"`
+ // TeamsLastActivityDate undocumented
+ TeamsLastActivityDate *time.Time `json:"teamsLastActivityDate,omitempty"`
+ // ExchangeLicenseAssignDate undocumented
+ ExchangeLicenseAssignDate *time.Time `json:"exchangeLicenseAssignDate,omitempty"`
+ // OneDriveLicenseAssignDate undocumented
+ OneDriveLicenseAssignDate *time.Time `json:"oneDriveLicenseAssignDate,omitempty"`
+ // SharePointLicenseAssignDate undocumented
+ SharePointLicenseAssignDate *time.Time `json:"sharePointLicenseAssignDate,omitempty"`
+ // SkypeForBusinessLicenseAssignDate undocumented
+ SkypeForBusinessLicenseAssignDate *time.Time `json:"skypeForBusinessLicenseAssignDate,omitempty"`
+ // YammerLicenseAssignDate undocumented
+ YammerLicenseAssignDate *time.Time `json:"yammerLicenseAssignDate,omitempty"`
+ // TeamsLicenseAssignDate undocumented
+ TeamsLicenseAssignDate *time.Time `json:"teamsLicenseAssignDate,omitempty"`
+ // AssignedProducts undocumented
+ AssignedProducts []string `json:"assignedProducts,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Office365GroupsActivityCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Office365GroupsActivityCountsModel.go
new file mode 100644
index 00000000..ffd5dd0c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Office365GroupsActivityCountsModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365GroupsActivityCounts undocumented
+type Office365GroupsActivityCounts struct {
+ // Entity is the base model of Office365GroupsActivityCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ExchangeEmailsReceived undocumented
+ ExchangeEmailsReceived *int `json:"exchangeEmailsReceived,omitempty"`
+ // YammerMessagesPosted undocumented
+ YammerMessagesPosted *int `json:"yammerMessagesPosted,omitempty"`
+ // YammerMessagesRead undocumented
+ YammerMessagesRead *int `json:"yammerMessagesRead,omitempty"`
+ // YammerMessagesLiked undocumented
+ YammerMessagesLiked *int `json:"yammerMessagesLiked,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Office365GroupsActivityDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Office365GroupsActivityDetailModel.go
new file mode 100644
index 00000000..667682c1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Office365GroupsActivityDetailModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365GroupsActivityDetail undocumented
+type Office365GroupsActivityDetail struct {
+ // Entity is the base model of Office365GroupsActivityDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+ // GroupDisplayName undocumented
+ GroupDisplayName *string `json:"groupDisplayName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // OwnerPrincipalName undocumented
+ OwnerPrincipalName *string `json:"ownerPrincipalName,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `json:"lastActivityDate,omitempty"`
+ // GroupType undocumented
+ GroupType *string `json:"groupType,omitempty"`
+ // MemberCount undocumented
+ MemberCount *int `json:"memberCount,omitempty"`
+ // ExternalMemberCount undocumented
+ ExternalMemberCount *int `json:"externalMemberCount,omitempty"`
+ // ExchangeReceivedEmailCount undocumented
+ ExchangeReceivedEmailCount *int `json:"exchangeReceivedEmailCount,omitempty"`
+ // SharePointActiveFileCount undocumented
+ SharePointActiveFileCount *int `json:"sharePointActiveFileCount,omitempty"`
+ // YammerPostedMessageCount undocumented
+ YammerPostedMessageCount *int `json:"yammerPostedMessageCount,omitempty"`
+ // YammerReadMessageCount undocumented
+ YammerReadMessageCount *int `json:"yammerReadMessageCount,omitempty"`
+ // YammerLikedMessageCount undocumented
+ YammerLikedMessageCount *int `json:"yammerLikedMessageCount,omitempty"`
+ // ExchangeMailboxTotalItemCount undocumented
+ ExchangeMailboxTotalItemCount *int `json:"exchangeMailboxTotalItemCount,omitempty"`
+ // ExchangeMailboxStorageUsedInBytes undocumented
+ ExchangeMailboxStorageUsedInBytes *int `json:"exchangeMailboxStorageUsedInBytes,omitempty"`
+ // SharePointTotalFileCount undocumented
+ SharePointTotalFileCount *int `json:"sharePointTotalFileCount,omitempty"`
+ // SharePointSiteStorageUsedInBytes undocumented
+ SharePointSiteStorageUsedInBytes *int `json:"sharePointSiteStorageUsedInBytes,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Office365GroupsActivityFileCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Office365GroupsActivityFileCountsModel.go
new file mode 100644
index 00000000..7993931f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Office365GroupsActivityFileCountsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365GroupsActivityFileCounts undocumented
+type Office365GroupsActivityFileCounts struct {
+ // Entity is the base model of Office365GroupsActivityFileCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Office365GroupsActivityGroupCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Office365GroupsActivityGroupCountsModel.go
new file mode 100644
index 00000000..3178f6f3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Office365GroupsActivityGroupCountsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365GroupsActivityGroupCounts undocumented
+type Office365GroupsActivityGroupCounts struct {
+ // Entity is the base model of Office365GroupsActivityGroupCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Office365GroupsActivityStorageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Office365GroupsActivityStorageModel.go
new file mode 100644
index 00000000..0d7c8c02
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Office365GroupsActivityStorageModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365GroupsActivityStorage undocumented
+type Office365GroupsActivityStorage struct {
+ // Entity is the base model of Office365GroupsActivityStorage
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // MailboxStorageUsedInBytes undocumented
+ MailboxStorageUsedInBytes *int `json:"mailboxStorageUsedInBytes,omitempty"`
+ // SiteStorageUsedInBytes undocumented
+ SiteStorageUsedInBytes *int `json:"siteStorageUsedInBytes,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Office365ServicesUserCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Office365ServicesUserCountsModel.go
new file mode 100644
index 00000000..61094ea7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Office365ServicesUserCountsModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Office365ServicesUserCounts undocumented
+type Office365ServicesUserCounts struct {
+ // Entity is the base model of Office365ServicesUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ExchangeActive undocumented
+ ExchangeActive *int `json:"exchangeActive,omitempty"`
+ // ExchangeInactive undocumented
+ ExchangeInactive *int `json:"exchangeInactive,omitempty"`
+ // OneDriveActive undocumented
+ OneDriveActive *int `json:"oneDriveActive,omitempty"`
+ // OneDriveInactive undocumented
+ OneDriveInactive *int `json:"oneDriveInactive,omitempty"`
+ // SharePointActive undocumented
+ SharePointActive *int `json:"sharePointActive,omitempty"`
+ // SharePointInactive undocumented
+ SharePointInactive *int `json:"sharePointInactive,omitempty"`
+ // SkypeForBusinessActive undocumented
+ SkypeForBusinessActive *int `json:"skypeForBusinessActive,omitempty"`
+ // SkypeForBusinessInactive undocumented
+ SkypeForBusinessInactive *int `json:"skypeForBusinessInactive,omitempty"`
+ // YammerActive undocumented
+ YammerActive *int `json:"yammerActive,omitempty"`
+ // YammerInactive undocumented
+ YammerInactive *int `json:"yammerInactive,omitempty"`
+ // TeamsActive undocumented
+ TeamsActive *int `json:"teamsActive,omitempty"`
+ // TeamsInactive undocumented
+ TeamsInactive *int `json:"teamsInactive,omitempty"`
+ // Office365Active undocumented
+ Office365Active *int `json:"office365Active,omitempty"`
+ // Office365Inactive undocumented
+ Office365Inactive *int `json:"office365Inactive,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientCheckinStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientCheckinStatusModel.go
new file mode 100644
index 00000000..a1153529
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientCheckinStatusModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OfficeClientCheckinStatus undocumented
+type OfficeClientCheckinStatus struct {
+ // Object is the base model of OfficeClientCheckinStatus
+ Object
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DeviceName undocumented
+ DeviceName *string `json:"deviceName,omitempty"`
+ // DevicePlatform undocumented
+ DevicePlatform *string `json:"devicePlatform,omitempty"`
+ // DevicePlatformVersion undocumented
+ DevicePlatformVersion *string `json:"devicePlatformVersion,omitempty"`
+ // WasSuccessful undocumented
+ WasSuccessful *bool `json:"wasSuccessful,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // CheckinDateTime undocumented
+ CheckinDateTime *time.Time `json:"checkinDateTime,omitempty"`
+ // ErrorMessage undocumented
+ ErrorMessage *string `json:"errorMessage,omitempty"`
+ // AppliedPolicies undocumented
+ AppliedPolicies []string `json:"appliedPolicies,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientConfigurationAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientConfigurationAction.go
new file mode 100644
index 00000000..e156c4b9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientConfigurationAction.go
@@ -0,0 +1,134 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OfficeClientConfigurationCollectionUpdatePrioritiesRequestParameter undocumented
+type OfficeClientConfigurationCollectionUpdatePrioritiesRequestParameter struct {
+ // OfficeConfigurationPolicyIDs undocumented
+ OfficeConfigurationPolicyIDs []string `json:"officeConfigurationPolicyIds,omitempty"`
+ // OfficeConfigurationPriorities undocumented
+ OfficeConfigurationPriorities []int `json:"officeConfigurationPriorities,omitempty"`
+}
+
+// OfficeClientConfigurationAssignRequestParameter undocumented
+type OfficeClientConfigurationAssignRequestParameter struct {
+ // OfficeConfigurationAssignments undocumented
+ OfficeConfigurationAssignments []OfficeClientConfigurationAssignment `json:"officeConfigurationAssignments,omitempty"`
+}
+
+//
+type OfficeClientConfigurationCollectionUpdatePrioritiesRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdatePriorities action undocumented
+func (b *OfficeConfigurationClientConfigurationsCollectionRequestBuilder) UpdatePriorities(reqObj *OfficeClientConfigurationCollectionUpdatePrioritiesRequestParameter) *OfficeClientConfigurationCollectionUpdatePrioritiesRequestBuilder {
+ bb := &OfficeClientConfigurationCollectionUpdatePrioritiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updatePriorities"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type OfficeClientConfigurationCollectionUpdatePrioritiesRequest struct{ BaseRequest }
+
+//
+func (b *OfficeClientConfigurationCollectionUpdatePrioritiesRequestBuilder) Request() *OfficeClientConfigurationCollectionUpdatePrioritiesRequest {
+ return &OfficeClientConfigurationCollectionUpdatePrioritiesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *OfficeClientConfigurationCollectionUpdatePrioritiesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type OfficeClientConfigurationAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *OfficeClientConfigurationRequestBuilder) Assign(reqObj *OfficeClientConfigurationAssignRequestParameter) *OfficeClientConfigurationAssignRequestBuilder {
+ bb := &OfficeClientConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type OfficeClientConfigurationAssignRequest struct{ BaseRequest }
+
+//
+func (b *OfficeClientConfigurationAssignRequestBuilder) Request() *OfficeClientConfigurationAssignRequest {
+ return &OfficeClientConfigurationAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *OfficeClientConfigurationAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]OfficeClientConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]OfficeClientConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]OfficeClientConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *OfficeClientConfigurationAssignRequest) Get(ctx context.Context) ([][]OfficeClientConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientConfigurationAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientConfigurationAssignmentModel.go
new file mode 100644
index 00000000..61627d56
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientConfigurationAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeClientConfigurationAssignment undocumented
+type OfficeClientConfigurationAssignment struct {
+ // Entity is the base model of OfficeClientConfigurationAssignment
+ Entity
+ // Target undocumented
+ Target *OfficeConfigurationAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientConfigurationAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientConfigurationAssignmentRequest.go
new file mode 100644
index 00000000..543b10ba
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientConfigurationAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OfficeClientConfigurationAssignmentRequestBuilder is request builder for OfficeClientConfigurationAssignment
+type OfficeClientConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OfficeClientConfigurationAssignmentRequest
+func (b *OfficeClientConfigurationAssignmentRequestBuilder) Request() *OfficeClientConfigurationAssignmentRequest {
+ return &OfficeClientConfigurationAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OfficeClientConfigurationAssignmentRequest is request for OfficeClientConfigurationAssignment
+type OfficeClientConfigurationAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for OfficeClientConfigurationAssignment
+func (r *OfficeClientConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *OfficeClientConfigurationAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OfficeClientConfigurationAssignment
+func (r *OfficeClientConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *OfficeClientConfigurationAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OfficeClientConfigurationAssignment
+func (r *OfficeClientConfigurationAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientConfigurationModel.go
new file mode 100644
index 00000000..60bfc4f1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientConfigurationModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeClientConfiguration undocumented
+type OfficeClientConfiguration struct {
+ // Entity is the base model of OfficeClientConfiguration
+ Entity
+ // UserPreferencePayload undocumented
+ UserPreferencePayload *Stream `json:"userPreferencePayload,omitempty"`
+ // PolicyPayload undocumented
+ PolicyPayload *Stream `json:"policyPayload,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+ // UserCheckinSummary undocumented
+ UserCheckinSummary *OfficeUserCheckinSummary `json:"userCheckinSummary,omitempty"`
+ // CheckinStatuses undocumented
+ CheckinStatuses []OfficeClientCheckinStatus `json:"checkinStatuses,omitempty"`
+ // Assignments undocumented
+ Assignments []OfficeClientConfigurationAssignment `json:"assignments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientConfigurationRequest.go
new file mode 100644
index 00000000..339a87ca
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeClientConfigurationRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OfficeClientConfigurationRequestBuilder is request builder for OfficeClientConfiguration
+type OfficeClientConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OfficeClientConfigurationRequest
+func (b *OfficeClientConfigurationRequestBuilder) Request() *OfficeClientConfigurationRequest {
+ return &OfficeClientConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OfficeClientConfigurationRequest is request for OfficeClientConfiguration
+type OfficeClientConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for OfficeClientConfiguration
+func (r *OfficeClientConfigurationRequest) Get(ctx context.Context) (resObj *OfficeClientConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OfficeClientConfiguration
+func (r *OfficeClientConfigurationRequest) Update(ctx context.Context, reqObj *OfficeClientConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OfficeClientConfiguration
+func (r *OfficeClientConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for OfficeClientConfigurationAssignment collection
+func (b *OfficeClientConfigurationRequestBuilder) Assignments() *OfficeClientConfigurationAssignmentsCollectionRequestBuilder {
+ bb := &OfficeClientConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// OfficeClientConfigurationAssignmentsCollectionRequestBuilder is request builder for OfficeClientConfigurationAssignment collection
+type OfficeClientConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OfficeClientConfigurationAssignment collection
+func (b *OfficeClientConfigurationAssignmentsCollectionRequestBuilder) Request() *OfficeClientConfigurationAssignmentsCollectionRequest {
+ return &OfficeClientConfigurationAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OfficeClientConfigurationAssignment item
+func (b *OfficeClientConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *OfficeClientConfigurationAssignmentRequestBuilder {
+ bb := &OfficeClientConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OfficeClientConfigurationAssignmentsCollectionRequest is request for OfficeClientConfigurationAssignment collection
+type OfficeClientConfigurationAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OfficeClientConfigurationAssignment collection
+func (r *OfficeClientConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OfficeClientConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OfficeClientConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OfficeClientConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OfficeClientConfigurationAssignment collection
+func (r *OfficeClientConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]OfficeClientConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OfficeClientConfigurationAssignment collection
+func (r *OfficeClientConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *OfficeClientConfigurationAssignment) (resObj *OfficeClientConfigurationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OfficeConfigurationAssignmentTargetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeConfigurationAssignmentTargetModel.go
new file mode 100644
index 00000000..298d3705
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeConfigurationAssignmentTargetModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeConfigurationAssignmentTarget undocumented
+type OfficeConfigurationAssignmentTarget struct {
+ // Object is the base model of OfficeConfigurationAssignmentTarget
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OfficeConfigurationGroupAssignmentTargetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeConfigurationGroupAssignmentTargetModel.go
new file mode 100644
index 00000000..30c8b6e9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeConfigurationGroupAssignmentTargetModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeConfigurationGroupAssignmentTarget undocumented
+type OfficeConfigurationGroupAssignmentTarget struct {
+ // OfficeConfigurationAssignmentTarget is the base model of OfficeConfigurationGroupAssignmentTarget
+ OfficeConfigurationAssignmentTarget
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OfficeConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeConfigurationModel.go
new file mode 100644
index 00000000..0ad9e2f1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeConfiguration undocumented
+type OfficeConfiguration struct {
+ // Entity is the base model of OfficeConfiguration
+ Entity
+ // TenantCheckinStatuses undocumented
+ TenantCheckinStatuses []OfficeClientCheckinStatus `json:"tenantCheckinStatuses,omitempty"`
+ // TenantUserCheckinSummary undocumented
+ TenantUserCheckinSummary *OfficeUserCheckinSummary `json:"tenantUserCheckinSummary,omitempty"`
+ // ClientConfigurations undocumented
+ ClientConfigurations []OfficeClientConfiguration `json:"clientConfigurations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OfficeConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeConfigurationRequest.go
new file mode 100644
index 00000000..deffe47b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeConfigurationRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OfficeConfigurationRequestBuilder is request builder for OfficeConfiguration
+type OfficeConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OfficeConfigurationRequest
+func (b *OfficeConfigurationRequestBuilder) Request() *OfficeConfigurationRequest {
+ return &OfficeConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OfficeConfigurationRequest is request for OfficeConfiguration
+type OfficeConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for OfficeConfiguration
+func (r *OfficeConfigurationRequest) Get(ctx context.Context) (resObj *OfficeConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OfficeConfiguration
+func (r *OfficeConfigurationRequest) Update(ctx context.Context, reqObj *OfficeConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OfficeConfiguration
+func (r *OfficeConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ClientConfigurations returns request builder for OfficeClientConfiguration collection
+func (b *OfficeConfigurationRequestBuilder) ClientConfigurations() *OfficeConfigurationClientConfigurationsCollectionRequestBuilder {
+ bb := &OfficeConfigurationClientConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/clientConfigurations"
+ return bb
+}
+
+// OfficeConfigurationClientConfigurationsCollectionRequestBuilder is request builder for OfficeClientConfiguration collection
+type OfficeConfigurationClientConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OfficeClientConfiguration collection
+func (b *OfficeConfigurationClientConfigurationsCollectionRequestBuilder) Request() *OfficeConfigurationClientConfigurationsCollectionRequest {
+ return &OfficeConfigurationClientConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OfficeClientConfiguration item
+func (b *OfficeConfigurationClientConfigurationsCollectionRequestBuilder) ID(id string) *OfficeClientConfigurationRequestBuilder {
+ bb := &OfficeClientConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OfficeConfigurationClientConfigurationsCollectionRequest is request for OfficeClientConfiguration collection
+type OfficeConfigurationClientConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OfficeClientConfiguration collection
+func (r *OfficeConfigurationClientConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OfficeClientConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OfficeClientConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OfficeClientConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OfficeClientConfiguration collection
+func (r *OfficeConfigurationClientConfigurationsCollectionRequest) Get(ctx context.Context) ([]OfficeClientConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OfficeClientConfiguration collection
+func (r *OfficeConfigurationClientConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *OfficeClientConfiguration) (resObj *OfficeClientConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OfficeGraphInsightsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeGraphInsightsModel.go
new file mode 100644
index 00000000..f6aa9491
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeGraphInsightsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeGraphInsights undocumented
+type OfficeGraphInsights struct {
+ // Entity is the base model of OfficeGraphInsights
+ Entity
+ // Trending undocumented
+ Trending []Trending `json:"trending,omitempty"`
+ // Shared undocumented
+ Shared []SharedInsight `json:"shared,omitempty"`
+ // Used undocumented
+ Used []UsedInsight `json:"used,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OfficeGraphInsightsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeGraphInsightsRequest.go
new file mode 100644
index 00000000..ac9310aa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeGraphInsightsRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OfficeGraphInsightsRequestBuilder is request builder for OfficeGraphInsights
+type OfficeGraphInsightsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OfficeGraphInsightsRequest
+func (b *OfficeGraphInsightsRequestBuilder) Request() *OfficeGraphInsightsRequest {
+ return &OfficeGraphInsightsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OfficeGraphInsightsRequest is request for OfficeGraphInsights
+type OfficeGraphInsightsRequest struct{ BaseRequest }
+
+// Get performs GET request for OfficeGraphInsights
+func (r *OfficeGraphInsightsRequest) Get(ctx context.Context) (resObj *OfficeGraphInsights, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OfficeGraphInsights
+func (r *OfficeGraphInsightsRequest) Update(ctx context.Context, reqObj *OfficeGraphInsights) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OfficeGraphInsights
+func (r *OfficeGraphInsightsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Shared returns request builder for SharedInsight collection
+func (b *OfficeGraphInsightsRequestBuilder) Shared() *OfficeGraphInsightsSharedCollectionRequestBuilder {
+ bb := &OfficeGraphInsightsSharedCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/shared"
+ return bb
+}
+
+// OfficeGraphInsightsSharedCollectionRequestBuilder is request builder for SharedInsight collection
+type OfficeGraphInsightsSharedCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SharedInsight collection
+func (b *OfficeGraphInsightsSharedCollectionRequestBuilder) Request() *OfficeGraphInsightsSharedCollectionRequest {
+ return &OfficeGraphInsightsSharedCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SharedInsight item
+func (b *OfficeGraphInsightsSharedCollectionRequestBuilder) ID(id string) *SharedInsightRequestBuilder {
+ bb := &SharedInsightRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OfficeGraphInsightsSharedCollectionRequest is request for SharedInsight collection
+type OfficeGraphInsightsSharedCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SharedInsight collection
+func (r *OfficeGraphInsightsSharedCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SharedInsight, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SharedInsight
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SharedInsight
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SharedInsight collection
+func (r *OfficeGraphInsightsSharedCollectionRequest) Get(ctx context.Context) ([]SharedInsight, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SharedInsight collection
+func (r *OfficeGraphInsightsSharedCollectionRequest) Add(ctx context.Context, reqObj *SharedInsight) (resObj *SharedInsight, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Trending returns request builder for Trending collection
+func (b *OfficeGraphInsightsRequestBuilder) Trending() *OfficeGraphInsightsTrendingCollectionRequestBuilder {
+ bb := &OfficeGraphInsightsTrendingCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/trending"
+ return bb
+}
+
+// OfficeGraphInsightsTrendingCollectionRequestBuilder is request builder for Trending collection
+type OfficeGraphInsightsTrendingCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Trending collection
+func (b *OfficeGraphInsightsTrendingCollectionRequestBuilder) Request() *OfficeGraphInsightsTrendingCollectionRequest {
+ return &OfficeGraphInsightsTrendingCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Trending item
+func (b *OfficeGraphInsightsTrendingCollectionRequestBuilder) ID(id string) *TrendingRequestBuilder {
+ bb := &TrendingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OfficeGraphInsightsTrendingCollectionRequest is request for Trending collection
+type OfficeGraphInsightsTrendingCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Trending collection
+func (r *OfficeGraphInsightsTrendingCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Trending, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Trending
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Trending
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Trending collection
+func (r *OfficeGraphInsightsTrendingCollectionRequest) Get(ctx context.Context) ([]Trending, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Trending collection
+func (r *OfficeGraphInsightsTrendingCollectionRequest) Add(ctx context.Context, reqObj *Trending) (resObj *Trending, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Used returns request builder for UsedInsight collection
+func (b *OfficeGraphInsightsRequestBuilder) Used() *OfficeGraphInsightsUsedCollectionRequestBuilder {
+ bb := &OfficeGraphInsightsUsedCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/used"
+ return bb
+}
+
+// OfficeGraphInsightsUsedCollectionRequestBuilder is request builder for UsedInsight collection
+type OfficeGraphInsightsUsedCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UsedInsight collection
+func (b *OfficeGraphInsightsUsedCollectionRequestBuilder) Request() *OfficeGraphInsightsUsedCollectionRequest {
+ return &OfficeGraphInsightsUsedCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UsedInsight item
+func (b *OfficeGraphInsightsUsedCollectionRequestBuilder) ID(id string) *UsedInsightRequestBuilder {
+ bb := &UsedInsightRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OfficeGraphInsightsUsedCollectionRequest is request for UsedInsight collection
+type OfficeGraphInsightsUsedCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UsedInsight collection
+func (r *OfficeGraphInsightsUsedCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UsedInsight, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UsedInsight
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UsedInsight
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UsedInsight collection
+func (r *OfficeGraphInsightsUsedCollectionRequest) Get(ctx context.Context) ([]UsedInsight, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UsedInsight collection
+func (r *OfficeGraphInsightsUsedCollectionRequest) Add(ctx context.Context, reqObj *UsedInsight) (resObj *UsedInsight, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OfficeProductIDEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeProductIDEnum.go
new file mode 100644
index 00000000..99110963
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeProductIDEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeProductID undocumented
+type OfficeProductID int
+
+const (
+ // OfficeProductIDVO365ProPlusRetail undocumented
+ OfficeProductIDVO365ProPlusRetail OfficeProductID = 0
+ // OfficeProductIDVO365BusinessRetail undocumented
+ OfficeProductIDVO365BusinessRetail OfficeProductID = 1
+ // OfficeProductIDVVisioProRetail undocumented
+ OfficeProductIDVVisioProRetail OfficeProductID = 2
+ // OfficeProductIDVProjectProRetail undocumented
+ OfficeProductIDVProjectProRetail OfficeProductID = 3
+)
+
+// OfficeProductIDPO365ProPlusRetail returns a pointer to OfficeProductIDVO365ProPlusRetail
+func OfficeProductIDPO365ProPlusRetail() *OfficeProductID {
+ v := OfficeProductIDVO365ProPlusRetail
+ return &v
+}
+
+// OfficeProductIDPO365BusinessRetail returns a pointer to OfficeProductIDVO365BusinessRetail
+func OfficeProductIDPO365BusinessRetail() *OfficeProductID {
+ v := OfficeProductIDVO365BusinessRetail
+ return &v
+}
+
+// OfficeProductIDPVisioProRetail returns a pointer to OfficeProductIDVVisioProRetail
+func OfficeProductIDPVisioProRetail() *OfficeProductID {
+ v := OfficeProductIDVVisioProRetail
+ return &v
+}
+
+// OfficeProductIDPProjectProRetail returns a pointer to OfficeProductIDVProjectProRetail
+func OfficeProductIDPProjectProRetail() *OfficeProductID {
+ v := OfficeProductIDVProjectProRetail
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OfficeSuiteAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeSuiteAppModel.go
new file mode 100644
index 00000000..2c1899ba
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeSuiteAppModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeSuiteApp Contains properties and inherited properties for the Office365 Suite App.
+type OfficeSuiteApp struct {
+ // MobileApp is the base model of OfficeSuiteApp
+ MobileApp
+ // AutoAcceptEula The value to accept the EULA automatically on the enduser's device.
+ AutoAcceptEula *bool `json:"autoAcceptEula,omitempty"`
+ // ProductIDs The Product Ids that represent the Office365 Suite SKU.
+ ProductIDs []OfficeProductID `json:"productIds,omitempty"`
+ // ExcludedApps The property to represent the apps which are excluded from the selected Office365 Product Id.
+ ExcludedApps *ExcludedApps `json:"excludedApps,omitempty"`
+ // UseSharedComputerActivation The property to represent that whether the shared computer activation is used not for Office365 app suite.
+ UseSharedComputerActivation *bool `json:"useSharedComputerActivation,omitempty"`
+ // UpdateChannel The property to represent the Office365 Update Channel.
+ UpdateChannel *OfficeUpdateChannel `json:"updateChannel,omitempty"`
+ // OfficePlatformArchitecture The property to represent the Office365 app suite version.
+ OfficePlatformArchitecture *WindowsArchitecture `json:"officePlatformArchitecture,omitempty"`
+ // LocalesToInstall The property to represent the locales which are installed when the apps from Office365 is installed. It uses standard RFC 6033. Ref: https://technet.microsoft.com/en-us/library/cc179219(v=office.16).aspx
+ LocalesToInstall []string `json:"localesToInstall,omitempty"`
+ // InstallProgressDisplayLevel To specify the level of display for the Installation Progress Setup UI on the Device.
+ InstallProgressDisplayLevel *OfficeSuiteInstallProgressDisplayLevel `json:"installProgressDisplayLevel,omitempty"`
+ // ShouldUninstallOlderVersionsOfOffice The property to determine whether to uninstall existing Office MSI if an Office365 app suite is deployed to the device or not.
+ ShouldUninstallOlderVersionsOfOffice *bool `json:"shouldUninstallOlderVersionsOfOffice,omitempty"`
+ // TargetVersion The property to represent the specific target version for the Office365 app suite that should be remained deployed on the devices.
+ TargetVersion *string `json:"targetVersion,omitempty"`
+ // UpdateVersion The property to represent the update version in which the specific target version is available for the Office365 app suite.
+ UpdateVersion *string `json:"updateVersion,omitempty"`
+ // OfficeConfigurationXML The property to represent the XML configuration file that can be specified for Office ProPlus Apps. Takes precedence over all other properties. When present, the XML configuration file will be used to create the app.
+ OfficeConfigurationXML *Binary `json:"officeConfigurationXml,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OfficeSuiteInstallProgressDisplayLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeSuiteInstallProgressDisplayLevelEnum.go
new file mode 100644
index 00000000..141caf32
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeSuiteInstallProgressDisplayLevelEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeSuiteInstallProgressDisplayLevel undocumented
+type OfficeSuiteInstallProgressDisplayLevel int
+
+const (
+ // OfficeSuiteInstallProgressDisplayLevelVNone undocumented
+ OfficeSuiteInstallProgressDisplayLevelVNone OfficeSuiteInstallProgressDisplayLevel = 0
+ // OfficeSuiteInstallProgressDisplayLevelVFull undocumented
+ OfficeSuiteInstallProgressDisplayLevelVFull OfficeSuiteInstallProgressDisplayLevel = 1
+)
+
+// OfficeSuiteInstallProgressDisplayLevelPNone returns a pointer to OfficeSuiteInstallProgressDisplayLevelVNone
+func OfficeSuiteInstallProgressDisplayLevelPNone() *OfficeSuiteInstallProgressDisplayLevel {
+ v := OfficeSuiteInstallProgressDisplayLevelVNone
+ return &v
+}
+
+// OfficeSuiteInstallProgressDisplayLevelPFull returns a pointer to OfficeSuiteInstallProgressDisplayLevelVFull
+func OfficeSuiteInstallProgressDisplayLevelPFull() *OfficeSuiteInstallProgressDisplayLevel {
+ v := OfficeSuiteInstallProgressDisplayLevelVFull
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OfficeUpdateChannelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeUpdateChannelEnum.go
new file mode 100644
index 00000000..997e27e0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeUpdateChannelEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeUpdateChannel undocumented
+type OfficeUpdateChannel int
+
+const (
+ // OfficeUpdateChannelVNone undocumented
+ OfficeUpdateChannelVNone OfficeUpdateChannel = 0
+ // OfficeUpdateChannelVCurrent undocumented
+ OfficeUpdateChannelVCurrent OfficeUpdateChannel = 1
+ // OfficeUpdateChannelVDeferred undocumented
+ OfficeUpdateChannelVDeferred OfficeUpdateChannel = 2
+ // OfficeUpdateChannelVFirstReleaseCurrent undocumented
+ OfficeUpdateChannelVFirstReleaseCurrent OfficeUpdateChannel = 3
+ // OfficeUpdateChannelVFirstReleaseDeferred undocumented
+ OfficeUpdateChannelVFirstReleaseDeferred OfficeUpdateChannel = 4
+)
+
+// OfficeUpdateChannelPNone returns a pointer to OfficeUpdateChannelVNone
+func OfficeUpdateChannelPNone() *OfficeUpdateChannel {
+ v := OfficeUpdateChannelVNone
+ return &v
+}
+
+// OfficeUpdateChannelPCurrent returns a pointer to OfficeUpdateChannelVCurrent
+func OfficeUpdateChannelPCurrent() *OfficeUpdateChannel {
+ v := OfficeUpdateChannelVCurrent
+ return &v
+}
+
+// OfficeUpdateChannelPDeferred returns a pointer to OfficeUpdateChannelVDeferred
+func OfficeUpdateChannelPDeferred() *OfficeUpdateChannel {
+ v := OfficeUpdateChannelVDeferred
+ return &v
+}
+
+// OfficeUpdateChannelPFirstReleaseCurrent returns a pointer to OfficeUpdateChannelVFirstReleaseCurrent
+func OfficeUpdateChannelPFirstReleaseCurrent() *OfficeUpdateChannel {
+ v := OfficeUpdateChannelVFirstReleaseCurrent
+ return &v
+}
+
+// OfficeUpdateChannelPFirstReleaseDeferred returns a pointer to OfficeUpdateChannelVFirstReleaseDeferred
+func OfficeUpdateChannelPFirstReleaseDeferred() *OfficeUpdateChannel {
+ v := OfficeUpdateChannelVFirstReleaseDeferred
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OfficeUserCheckinSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeUserCheckinSummaryModel.go
new file mode 100644
index 00000000..3d8b71e7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OfficeUserCheckinSummaryModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeUserCheckinSummary undocumented
+type OfficeUserCheckinSummary struct {
+ // Object is the base model of OfficeUserCheckinSummary
+ Object
+ // SucceededUserCount undocumented
+ SucceededUserCount *int `json:"succeededUserCount,omitempty"`
+ // FailedUserCount undocumented
+ FailedUserCount *int `json:"failedUserCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesAgentGroupModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesAgentGroupModel.go
new file mode 100644
index 00000000..d9b606f4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesAgentGroupModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnPremisesAgentGroup undocumented
+type OnPremisesAgentGroup struct {
+ // Entity is the base model of OnPremisesAgentGroup
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // PublishingType undocumented
+ PublishingType *OnPremisesPublishingType `json:"publishingType,omitempty"`
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // Agents undocumented
+ Agents []OnPremisesAgent `json:"agents,omitempty"`
+ // PublishedResources undocumented
+ PublishedResources []PublishedResource `json:"publishedResources,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesAgentGroupRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesAgentGroupRequest.go
new file mode 100644
index 00000000..2a7cce86
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesAgentGroupRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OnPremisesAgentGroupRequestBuilder is request builder for OnPremisesAgentGroup
+type OnPremisesAgentGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnPremisesAgentGroupRequest
+func (b *OnPremisesAgentGroupRequestBuilder) Request() *OnPremisesAgentGroupRequest {
+ return &OnPremisesAgentGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnPremisesAgentGroupRequest is request for OnPremisesAgentGroup
+type OnPremisesAgentGroupRequest struct{ BaseRequest }
+
+// Get performs GET request for OnPremisesAgentGroup
+func (r *OnPremisesAgentGroupRequest) Get(ctx context.Context) (resObj *OnPremisesAgentGroup, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnPremisesAgentGroup
+func (r *OnPremisesAgentGroupRequest) Update(ctx context.Context, reqObj *OnPremisesAgentGroup) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnPremisesAgentGroup
+func (r *OnPremisesAgentGroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Agents returns request builder for OnPremisesAgent collection
+func (b *OnPremisesAgentGroupRequestBuilder) Agents() *OnPremisesAgentGroupAgentsCollectionRequestBuilder {
+ bb := &OnPremisesAgentGroupAgentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agents"
+ return bb
+}
+
+// OnPremisesAgentGroupAgentsCollectionRequestBuilder is request builder for OnPremisesAgent collection
+type OnPremisesAgentGroupAgentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnPremisesAgent collection
+func (b *OnPremisesAgentGroupAgentsCollectionRequestBuilder) Request() *OnPremisesAgentGroupAgentsCollectionRequest {
+ return &OnPremisesAgentGroupAgentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnPremisesAgent item
+func (b *OnPremisesAgentGroupAgentsCollectionRequestBuilder) ID(id string) *OnPremisesAgentRequestBuilder {
+ bb := &OnPremisesAgentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnPremisesAgentGroupAgentsCollectionRequest is request for OnPremisesAgent collection
+type OnPremisesAgentGroupAgentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnPremisesAgent collection
+func (r *OnPremisesAgentGroupAgentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OnPremisesAgent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnPremisesAgent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnPremisesAgent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnPremisesAgent collection
+func (r *OnPremisesAgentGroupAgentsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OnPremisesAgent collection
+func (r *OnPremisesAgentGroupAgentsCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesAgent) (resObj *OnPremisesAgent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PublishedResources returns request builder for PublishedResource collection
+func (b *OnPremisesAgentGroupRequestBuilder) PublishedResources() *OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder {
+ bb := &OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/publishedResources"
+ return bb
+}
+
+// OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder is request builder for PublishedResource collection
+type OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PublishedResource collection
+func (b *OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder) Request() *OnPremisesAgentGroupPublishedResourcesCollectionRequest {
+ return &OnPremisesAgentGroupPublishedResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PublishedResource item
+func (b *OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder) ID(id string) *PublishedResourceRequestBuilder {
+ bb := &PublishedResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnPremisesAgentGroupPublishedResourcesCollectionRequest is request for PublishedResource collection
+type OnPremisesAgentGroupPublishedResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PublishedResource collection
+func (r *OnPremisesAgentGroupPublishedResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PublishedResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PublishedResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PublishedResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PublishedResource collection
+func (r *OnPremisesAgentGroupPublishedResourcesCollectionRequest) Get(ctx context.Context) ([]PublishedResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PublishedResource collection
+func (r *OnPremisesAgentGroupPublishedResourcesCollectionRequest) Add(ctx context.Context, reqObj *PublishedResource) (resObj *PublishedResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesAgentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesAgentModel.go
new file mode 100644
index 00000000..6831ec96
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesAgentModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnPremisesAgent undocumented
+type OnPremisesAgent struct {
+ // Entity is the base model of OnPremisesAgent
+ Entity
+ // MachineName undocumented
+ MachineName *string `json:"machineName,omitempty"`
+ // ExternalIP undocumented
+ ExternalIP *string `json:"externalIp,omitempty"`
+ // Status undocumented
+ Status *AgentStatus `json:"status,omitempty"`
+ // SupportedPublishingTypes undocumented
+ SupportedPublishingTypes []OnPremisesPublishingType `json:"supportedPublishingTypes,omitempty"`
+ // AgentGroups undocumented
+ AgentGroups []OnPremisesAgentGroup `json:"agentGroups,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesAgentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesAgentRequest.go
new file mode 100644
index 00000000..d7b42645
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesAgentRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OnPremisesAgentRequestBuilder is request builder for OnPremisesAgent
+type OnPremisesAgentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnPremisesAgentRequest
+func (b *OnPremisesAgentRequestBuilder) Request() *OnPremisesAgentRequest {
+ return &OnPremisesAgentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnPremisesAgentRequest is request for OnPremisesAgent
+type OnPremisesAgentRequest struct{ BaseRequest }
+
+// Get performs GET request for OnPremisesAgent
+func (r *OnPremisesAgentRequest) Get(ctx context.Context) (resObj *OnPremisesAgent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnPremisesAgent
+func (r *OnPremisesAgentRequest) Update(ctx context.Context, reqObj *OnPremisesAgent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnPremisesAgent
+func (r *OnPremisesAgentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AgentGroups returns request builder for OnPremisesAgentGroup collection
+func (b *OnPremisesAgentRequestBuilder) AgentGroups() *OnPremisesAgentAgentGroupsCollectionRequestBuilder {
+ bb := &OnPremisesAgentAgentGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agentGroups"
+ return bb
+}
+
+// OnPremisesAgentAgentGroupsCollectionRequestBuilder is request builder for OnPremisesAgentGroup collection
+type OnPremisesAgentAgentGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnPremisesAgentGroup collection
+func (b *OnPremisesAgentAgentGroupsCollectionRequestBuilder) Request() *OnPremisesAgentAgentGroupsCollectionRequest {
+ return &OnPremisesAgentAgentGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnPremisesAgentGroup item
+func (b *OnPremisesAgentAgentGroupsCollectionRequestBuilder) ID(id string) *OnPremisesAgentGroupRequestBuilder {
+ bb := &OnPremisesAgentGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnPremisesAgentAgentGroupsCollectionRequest is request for OnPremisesAgentGroup collection
+type OnPremisesAgentAgentGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnPremisesAgentGroup collection
+func (r *OnPremisesAgentAgentGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OnPremisesAgentGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnPremisesAgentGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnPremisesAgentGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnPremisesAgentGroup collection
+func (r *OnPremisesAgentAgentGroupsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgentGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OnPremisesAgentGroup collection
+func (r *OnPremisesAgentAgentGroupsCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesAgentGroup) (resObj *OnPremisesAgentGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesConditionalAccessSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesConditionalAccessSettingsModel.go
new file mode 100644
index 00000000..39879372
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesConditionalAccessSettingsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnPremisesConditionalAccessSettings Singleton entity which represents the Exchange OnPremises Conditional Access Settings for a tenant.
+type OnPremisesConditionalAccessSettings struct {
+ // Entity is the base model of OnPremisesConditionalAccessSettings
+ Entity
+ // Enabled Indicates if on premises conditional access is enabled for this organization
+ Enabled *bool `json:"enabled,omitempty"`
+ // IncludedGroups User groups that will be targeted by on premises conditional access. All users in these groups will be required to have mobile device managed and compliant for mail access.
+ IncludedGroups []UUID `json:"includedGroups,omitempty"`
+ // ExcludedGroups User groups that will be exempt by on premises conditional access. All users in these groups will be exempt from the conditional access policy.
+ ExcludedGroups []UUID `json:"excludedGroups,omitempty"`
+ // OverrideDefaultRule Override the default access rule when allowing a device to ensure access is granted.
+ OverrideDefaultRule *bool `json:"overrideDefaultRule,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesConditionalAccessSettingsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesConditionalAccessSettingsRequest.go
new file mode 100644
index 00000000..b53c337a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesConditionalAccessSettingsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OnPremisesConditionalAccessSettingsRequestBuilder is request builder for OnPremisesConditionalAccessSettings
+type OnPremisesConditionalAccessSettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnPremisesConditionalAccessSettingsRequest
+func (b *OnPremisesConditionalAccessSettingsRequestBuilder) Request() *OnPremisesConditionalAccessSettingsRequest {
+ return &OnPremisesConditionalAccessSettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnPremisesConditionalAccessSettingsRequest is request for OnPremisesConditionalAccessSettings
+type OnPremisesConditionalAccessSettingsRequest struct{ BaseRequest }
+
+// Get performs GET request for OnPremisesConditionalAccessSettings
+func (r *OnPremisesConditionalAccessSettingsRequest) Get(ctx context.Context) (resObj *OnPremisesConditionalAccessSettings, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnPremisesConditionalAccessSettings
+func (r *OnPremisesConditionalAccessSettingsRequest) Update(ctx context.Context, reqObj *OnPremisesConditionalAccessSettings) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnPremisesConditionalAccessSettings
+func (r *OnPremisesConditionalAccessSettingsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesExtensionAttributesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesExtensionAttributesModel.go
new file mode 100644
index 00000000..110b8f4c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesExtensionAttributesModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnPremisesExtensionAttributes undocumented
+type OnPremisesExtensionAttributes struct {
+ // Object is the base model of OnPremisesExtensionAttributes
+ Object
+ // ExtensionAttribute1 undocumented
+ ExtensionAttribute1 *string `json:"extensionAttribute1,omitempty"`
+ // ExtensionAttribute2 undocumented
+ ExtensionAttribute2 *string `json:"extensionAttribute2,omitempty"`
+ // ExtensionAttribute3 undocumented
+ ExtensionAttribute3 *string `json:"extensionAttribute3,omitempty"`
+ // ExtensionAttribute4 undocumented
+ ExtensionAttribute4 *string `json:"extensionAttribute4,omitempty"`
+ // ExtensionAttribute5 undocumented
+ ExtensionAttribute5 *string `json:"extensionAttribute5,omitempty"`
+ // ExtensionAttribute6 undocumented
+ ExtensionAttribute6 *string `json:"extensionAttribute6,omitempty"`
+ // ExtensionAttribute7 undocumented
+ ExtensionAttribute7 *string `json:"extensionAttribute7,omitempty"`
+ // ExtensionAttribute8 undocumented
+ ExtensionAttribute8 *string `json:"extensionAttribute8,omitempty"`
+ // ExtensionAttribute9 undocumented
+ ExtensionAttribute9 *string `json:"extensionAttribute9,omitempty"`
+ // ExtensionAttribute10 undocumented
+ ExtensionAttribute10 *string `json:"extensionAttribute10,omitempty"`
+ // ExtensionAttribute11 undocumented
+ ExtensionAttribute11 *string `json:"extensionAttribute11,omitempty"`
+ // ExtensionAttribute12 undocumented
+ ExtensionAttribute12 *string `json:"extensionAttribute12,omitempty"`
+ // ExtensionAttribute13 undocumented
+ ExtensionAttribute13 *string `json:"extensionAttribute13,omitempty"`
+ // ExtensionAttribute14 undocumented
+ ExtensionAttribute14 *string `json:"extensionAttribute14,omitempty"`
+ // ExtensionAttribute15 undocumented
+ ExtensionAttribute15 *string `json:"extensionAttribute15,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesProvisioningErrorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesProvisioningErrorModel.go
new file mode 100644
index 00000000..2cc609ea
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesProvisioningErrorModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OnPremisesProvisioningError undocumented
+type OnPremisesProvisioningError struct {
+ // Object is the base model of OnPremisesProvisioningError
+ Object
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+ // Category undocumented
+ Category *string `json:"category,omitempty"`
+ // PropertyCausingError undocumented
+ PropertyCausingError *string `json:"propertyCausingError,omitempty"`
+ // OccurredDateTime undocumented
+ OccurredDateTime *time.Time `json:"occurredDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesPublishingProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesPublishingProfileModel.go
new file mode 100644
index 00000000..9bcde847
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesPublishingProfileModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnPremisesPublishingProfile undocumented
+type OnPremisesPublishingProfile struct {
+ // Entity is the base model of OnPremisesPublishingProfile
+ Entity
+ // HybridAgentUpdaterConfiguration undocumented
+ HybridAgentUpdaterConfiguration *HybridAgentUpdaterConfiguration `json:"hybridAgentUpdaterConfiguration,omitempty"`
+ // Agents undocumented
+ Agents []OnPremisesAgent `json:"agents,omitempty"`
+ // AgentGroups undocumented
+ AgentGroups []OnPremisesAgentGroup `json:"agentGroups,omitempty"`
+ // PublishedResources undocumented
+ PublishedResources []PublishedResource `json:"publishedResources,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesPublishingProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesPublishingProfileRequest.go
new file mode 100644
index 00000000..a7818ba7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesPublishingProfileRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OnPremisesPublishingProfileRequestBuilder is request builder for OnPremisesPublishingProfile
+type OnPremisesPublishingProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnPremisesPublishingProfileRequest
+func (b *OnPremisesPublishingProfileRequestBuilder) Request() *OnPremisesPublishingProfileRequest {
+ return &OnPremisesPublishingProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnPremisesPublishingProfileRequest is request for OnPremisesPublishingProfile
+type OnPremisesPublishingProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for OnPremisesPublishingProfile
+func (r *OnPremisesPublishingProfileRequest) Get(ctx context.Context) (resObj *OnPremisesPublishingProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnPremisesPublishingProfile
+func (r *OnPremisesPublishingProfileRequest) Update(ctx context.Context, reqObj *OnPremisesPublishingProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnPremisesPublishingProfile
+func (r *OnPremisesPublishingProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AgentGroups returns request builder for OnPremisesAgentGroup collection
+func (b *OnPremisesPublishingProfileRequestBuilder) AgentGroups() *OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder {
+ bb := &OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agentGroups"
+ return bb
+}
+
+// OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder is request builder for OnPremisesAgentGroup collection
+type OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnPremisesAgentGroup collection
+func (b *OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder) Request() *OnPremisesPublishingProfileAgentGroupsCollectionRequest {
+ return &OnPremisesPublishingProfileAgentGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnPremisesAgentGroup item
+func (b *OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder) ID(id string) *OnPremisesAgentGroupRequestBuilder {
+ bb := &OnPremisesAgentGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnPremisesPublishingProfileAgentGroupsCollectionRequest is request for OnPremisesAgentGroup collection
+type OnPremisesPublishingProfileAgentGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnPremisesAgentGroup collection
+func (r *OnPremisesPublishingProfileAgentGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OnPremisesAgentGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnPremisesAgentGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnPremisesAgentGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnPremisesAgentGroup collection
+func (r *OnPremisesPublishingProfileAgentGroupsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgentGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OnPremisesAgentGroup collection
+func (r *OnPremisesPublishingProfileAgentGroupsCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesAgentGroup) (resObj *OnPremisesAgentGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Agents returns request builder for OnPremisesAgent collection
+func (b *OnPremisesPublishingProfileRequestBuilder) Agents() *OnPremisesPublishingProfileAgentsCollectionRequestBuilder {
+ bb := &OnPremisesPublishingProfileAgentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agents"
+ return bb
+}
+
+// OnPremisesPublishingProfileAgentsCollectionRequestBuilder is request builder for OnPremisesAgent collection
+type OnPremisesPublishingProfileAgentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnPremisesAgent collection
+func (b *OnPremisesPublishingProfileAgentsCollectionRequestBuilder) Request() *OnPremisesPublishingProfileAgentsCollectionRequest {
+ return &OnPremisesPublishingProfileAgentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnPremisesAgent item
+func (b *OnPremisesPublishingProfileAgentsCollectionRequestBuilder) ID(id string) *OnPremisesAgentRequestBuilder {
+ bb := &OnPremisesAgentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnPremisesPublishingProfileAgentsCollectionRequest is request for OnPremisesAgent collection
+type OnPremisesPublishingProfileAgentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnPremisesAgent collection
+func (r *OnPremisesPublishingProfileAgentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OnPremisesAgent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnPremisesAgent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnPremisesAgent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnPremisesAgent collection
+func (r *OnPremisesPublishingProfileAgentsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OnPremisesAgent collection
+func (r *OnPremisesPublishingProfileAgentsCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesAgent) (resObj *OnPremisesAgent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PublishedResources returns request builder for PublishedResource collection
+func (b *OnPremisesPublishingProfileRequestBuilder) PublishedResources() *OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder {
+ bb := &OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/publishedResources"
+ return bb
+}
+
+// OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder is request builder for PublishedResource collection
+type OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PublishedResource collection
+func (b *OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder) Request() *OnPremisesPublishingProfilePublishedResourcesCollectionRequest {
+ return &OnPremisesPublishingProfilePublishedResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PublishedResource item
+func (b *OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder) ID(id string) *PublishedResourceRequestBuilder {
+ bb := &PublishedResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnPremisesPublishingProfilePublishedResourcesCollectionRequest is request for PublishedResource collection
+type OnPremisesPublishingProfilePublishedResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PublishedResource collection
+func (r *OnPremisesPublishingProfilePublishedResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PublishedResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PublishedResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PublishedResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PublishedResource collection
+func (r *OnPremisesPublishingProfilePublishedResourcesCollectionRequest) Get(ctx context.Context) ([]PublishedResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PublishedResource collection
+func (r *OnPremisesPublishingProfilePublishedResourcesCollectionRequest) Add(ctx context.Context, reqObj *PublishedResource) (resObj *PublishedResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesPublishingTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesPublishingTypeEnum.go
new file mode 100644
index 00000000..c7705826
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnPremisesPublishingTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnPremisesPublishingType undocumented
+type OnPremisesPublishingType int
+
+const (
+ // OnPremisesPublishingTypeVAppProxy undocumented
+ OnPremisesPublishingTypeVAppProxy OnPremisesPublishingType = 0
+ // OnPremisesPublishingTypeVExchangeOnline undocumented
+ OnPremisesPublishingTypeVExchangeOnline OnPremisesPublishingType = 1
+ // OnPremisesPublishingTypeVAuthentication undocumented
+ OnPremisesPublishingTypeVAuthentication OnPremisesPublishingType = 2
+ // OnPremisesPublishingTypeVProvisioning undocumented
+ OnPremisesPublishingTypeVProvisioning OnPremisesPublishingType = 3
+ // OnPremisesPublishingTypeVIntunePfx undocumented
+ OnPremisesPublishingTypeVIntunePfx OnPremisesPublishingType = 4
+ // OnPremisesPublishingTypeVOflineDomainJoin undocumented
+ OnPremisesPublishingTypeVOflineDomainJoin OnPremisesPublishingType = 5
+ // OnPremisesPublishingTypeVUnknownFutureValue undocumented
+ OnPremisesPublishingTypeVUnknownFutureValue OnPremisesPublishingType = 6
+)
+
+// OnPremisesPublishingTypePAppProxy returns a pointer to OnPremisesPublishingTypeVAppProxy
+func OnPremisesPublishingTypePAppProxy() *OnPremisesPublishingType {
+ v := OnPremisesPublishingTypeVAppProxy
+ return &v
+}
+
+// OnPremisesPublishingTypePExchangeOnline returns a pointer to OnPremisesPublishingTypeVExchangeOnline
+func OnPremisesPublishingTypePExchangeOnline() *OnPremisesPublishingType {
+ v := OnPremisesPublishingTypeVExchangeOnline
+ return &v
+}
+
+// OnPremisesPublishingTypePAuthentication returns a pointer to OnPremisesPublishingTypeVAuthentication
+func OnPremisesPublishingTypePAuthentication() *OnPremisesPublishingType {
+ v := OnPremisesPublishingTypeVAuthentication
+ return &v
+}
+
+// OnPremisesPublishingTypePProvisioning returns a pointer to OnPremisesPublishingTypeVProvisioning
+func OnPremisesPublishingTypePProvisioning() *OnPremisesPublishingType {
+ v := OnPremisesPublishingTypeVProvisioning
+ return &v
+}
+
+// OnPremisesPublishingTypePIntunePfx returns a pointer to OnPremisesPublishingTypeVIntunePfx
+func OnPremisesPublishingTypePIntunePfx() *OnPremisesPublishingType {
+ v := OnPremisesPublishingTypeVIntunePfx
+ return &v
+}
+
+// OnPremisesPublishingTypePOflineDomainJoin returns a pointer to OnPremisesPublishingTypeVOflineDomainJoin
+func OnPremisesPublishingTypePOflineDomainJoin() *OnPremisesPublishingType {
+ v := OnPremisesPublishingTypeVOflineDomainJoin
+ return &v
+}
+
+// OnPremisesPublishingTypePUnknownFutureValue returns a pointer to OnPremisesPublishingTypeVUnknownFutureValue
+func OnPremisesPublishingTypePUnknownFutureValue() *OnPremisesPublishingType {
+ v := OnPremisesPublishingTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OneDriveActivityUserDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OneDriveActivityUserDetailModel.go
new file mode 100644
index 00000000..2708a3c1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OneDriveActivityUserDetailModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OneDriveActivityUserDetail undocumented
+type OneDriveActivityUserDetail struct {
+ // Entity is the base model of OneDriveActivityUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *time.Time `json:"deletedDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `json:"lastActivityDate,omitempty"`
+ // ViewedOrEditedFileCount undocumented
+ ViewedOrEditedFileCount *int `json:"viewedOrEditedFileCount,omitempty"`
+ // SyncedFileCount undocumented
+ SyncedFileCount *int `json:"syncedFileCount,omitempty"`
+ // SharedInternallyFileCount undocumented
+ SharedInternallyFileCount *int `json:"sharedInternallyFileCount,omitempty"`
+ // SharedExternallyFileCount undocumented
+ SharedExternallyFileCount *int `json:"sharedExternallyFileCount,omitempty"`
+ // AssignedProducts undocumented
+ AssignedProducts []string `json:"assignedProducts,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OneDriveUsageAccountCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OneDriveUsageAccountCountsModel.go
new file mode 100644
index 00000000..2effd899
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OneDriveUsageAccountCountsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OneDriveUsageAccountCounts undocumented
+type OneDriveUsageAccountCounts struct {
+ // Entity is the base model of OneDriveUsageAccountCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // SiteType undocumented
+ SiteType *string `json:"siteType,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OneDriveUsageAccountDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OneDriveUsageAccountDetailModel.go
new file mode 100644
index 00000000..9df759c4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OneDriveUsageAccountDetailModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OneDriveUsageAccountDetail undocumented
+type OneDriveUsageAccountDetail struct {
+ // Entity is the base model of OneDriveUsageAccountDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // SiteURL undocumented
+ SiteURL *string `json:"siteUrl,omitempty"`
+ // OwnerDisplayName undocumented
+ OwnerDisplayName *string `json:"ownerDisplayName,omitempty"`
+ // OwnerPrincipalName undocumented
+ OwnerPrincipalName *string `json:"ownerPrincipalName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `json:"lastActivityDate,omitempty"`
+ // FileCount undocumented
+ FileCount *int `json:"fileCount,omitempty"`
+ // ActiveFileCount undocumented
+ ActiveFileCount *int `json:"activeFileCount,omitempty"`
+ // StorageUsedInBytes undocumented
+ StorageUsedInBytes *int `json:"storageUsedInBytes,omitempty"`
+ // StorageAllocatedInBytes undocumented
+ StorageAllocatedInBytes *int `json:"storageAllocatedInBytes,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OneDriveUsageFileCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OneDriveUsageFileCountsModel.go
new file mode 100644
index 00000000..267ff2c6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OneDriveUsageFileCountsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OneDriveUsageFileCounts undocumented
+type OneDriveUsageFileCounts struct {
+ // Entity is the base model of OneDriveUsageFileCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // SiteType undocumented
+ SiteType *string `json:"siteType,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteEntityBaseModelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteEntityBaseModelModel.go
new file mode 100644
index 00000000..14ec4e9e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteEntityBaseModelModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenoteEntityBaseModel undocumented
+type OnenoteEntityBaseModel struct {
+ // Entity is the base model of OnenoteEntityBaseModel
+ Entity
+ // Self undocumented
+ Self *string `json:"self,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteEntityHierarchyModelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteEntityHierarchyModelModel.go
new file mode 100644
index 00000000..a7757077
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteEntityHierarchyModelModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OnenoteEntityHierarchyModel undocumented
+type OnenoteEntityHierarchyModel struct {
+ // OnenoteEntitySchemaObjectModel is the base model of OnenoteEntityHierarchyModel
+ OnenoteEntitySchemaObjectModel
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteEntitySchemaObjectModelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteEntitySchemaObjectModelModel.go
new file mode 100644
index 00000000..709f88e3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteEntitySchemaObjectModelModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OnenoteEntitySchemaObjectModel undocumented
+type OnenoteEntitySchemaObjectModel struct {
+ // OnenoteEntityBaseModel is the base model of OnenoteEntitySchemaObjectModel
+ OnenoteEntityBaseModel
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteModel.go
new file mode 100644
index 00000000..8a044979
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Onenote undocumented
+type Onenote struct {
+ // Entity is the base model of Onenote
+ Entity
+ // Notebooks undocumented
+ Notebooks []Notebook `json:"notebooks,omitempty"`
+ // Sections undocumented
+ Sections []OnenoteSection `json:"sections,omitempty"`
+ // SectionGroups undocumented
+ SectionGroups []SectionGroup `json:"sectionGroups,omitempty"`
+ // Pages undocumented
+ Pages []OnenotePage `json:"pages,omitempty"`
+ // Resources undocumented
+ Resources []OnenoteResource `json:"resources,omitempty"`
+ // Operations undocumented
+ Operations []OnenoteOperation `json:"operations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteOperationErrorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteOperationErrorModel.go
new file mode 100644
index 00000000..cf90c382
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteOperationErrorModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenoteOperationError undocumented
+type OnenoteOperationError struct {
+ // Object is the base model of OnenoteOperationError
+ Object
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteOperationModel.go
new file mode 100644
index 00000000..c303c06d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteOperationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenoteOperation undocumented
+type OnenoteOperation struct {
+ // Operation is the base model of OnenoteOperation
+ Operation
+ // ResourceLocation undocumented
+ ResourceLocation *string `json:"resourceLocation,omitempty"`
+ // ResourceID undocumented
+ ResourceID *string `json:"resourceId,omitempty"`
+ // Error undocumented
+ Error *OnenoteOperationError `json:"error,omitempty"`
+ // PercentComplete undocumented
+ PercentComplete *string `json:"percentComplete,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteOperationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteOperationRequest.go
new file mode 100644
index 00000000..3d1ef286
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteOperationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OnenoteOperationRequestBuilder is request builder for OnenoteOperation
+type OnenoteOperationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnenoteOperationRequest
+func (b *OnenoteOperationRequestBuilder) Request() *OnenoteOperationRequest {
+ return &OnenoteOperationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnenoteOperationRequest is request for OnenoteOperation
+type OnenoteOperationRequest struct{ BaseRequest }
+
+// Get performs GET request for OnenoteOperation
+func (r *OnenoteOperationRequest) Get(ctx context.Context) (resObj *OnenoteOperation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnenoteOperation
+func (r *OnenoteOperationRequest) Update(ctx context.Context, reqObj *OnenoteOperation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnenoteOperation
+func (r *OnenoteOperationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePageAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePageAction.go
new file mode 100644
index 00000000..ff8a78a9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePageAction.go
@@ -0,0 +1,76 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OnenotePageOnenotePatchContentRequestParameter undocumented
+type OnenotePageOnenotePatchContentRequestParameter struct {
+ // Commands undocumented
+ Commands []OnenotePatchContentCommand `json:"commands,omitempty"`
+}
+
+// OnenotePageCopyToSectionRequestParameter undocumented
+type OnenotePageCopyToSectionRequestParameter struct {
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+ // SiteCollectionID undocumented
+ SiteCollectionID *string `json:"siteCollectionId,omitempty"`
+ // SiteID undocumented
+ SiteID *string `json:"siteId,omitempty"`
+}
+
+//
+type OnenotePageOnenotePatchContentRequestBuilder struct{ BaseRequestBuilder }
+
+// OnenotePatchContent action undocumented
+func (b *OnenotePageRequestBuilder) OnenotePatchContent(reqObj *OnenotePageOnenotePatchContentRequestParameter) *OnenotePageOnenotePatchContentRequestBuilder {
+ bb := &OnenotePageOnenotePatchContentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/onenotePatchContent"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type OnenotePageOnenotePatchContentRequest struct{ BaseRequest }
+
+//
+func (b *OnenotePageOnenotePatchContentRequestBuilder) Request() *OnenotePageOnenotePatchContentRequest {
+ return &OnenotePageOnenotePatchContentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *OnenotePageOnenotePatchContentRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type OnenotePageCopyToSectionRequestBuilder struct{ BaseRequestBuilder }
+
+// CopyToSection action undocumented
+func (b *OnenotePageRequestBuilder) CopyToSection(reqObj *OnenotePageCopyToSectionRequestParameter) *OnenotePageCopyToSectionRequestBuilder {
+ bb := &OnenotePageCopyToSectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/copyToSection"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type OnenotePageCopyToSectionRequest struct{ BaseRequest }
+
+//
+func (b *OnenotePageCopyToSectionRequestBuilder) Request() *OnenotePageCopyToSectionRequest {
+ return &OnenotePageCopyToSectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *OnenotePageCopyToSectionRequest) Post(ctx context.Context) (resObj *OnenoteOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePageModel.go
new file mode 100644
index 00000000..1e169e6b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePageModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OnenotePage undocumented
+type OnenotePage struct {
+ // OnenoteEntitySchemaObjectModel is the base model of OnenotePage
+ OnenoteEntitySchemaObjectModel
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // CreatedByAppID undocumented
+ CreatedByAppID *string `json:"createdByAppId,omitempty"`
+ // Links undocumented
+ Links *PageLinks `json:"links,omitempty"`
+ // ContentURL undocumented
+ ContentURL *string `json:"contentUrl,omitempty"`
+ // Content undocumented
+ Content *Stream `json:"content,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Level undocumented
+ Level *int `json:"level,omitempty"`
+ // Order undocumented
+ Order *int `json:"order,omitempty"`
+ // UserTags undocumented
+ UserTags []string `json:"userTags,omitempty"`
+ // ParentSection undocumented
+ ParentSection *OnenoteSection `json:"parentSection,omitempty"`
+ // ParentNotebook undocumented
+ ParentNotebook *Notebook `json:"parentNotebook,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePagePreviewLinksModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePagePreviewLinksModel.go
new file mode 100644
index 00000000..f5ad2e30
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePagePreviewLinksModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenotePagePreviewLinks undocumented
+type OnenotePagePreviewLinks struct {
+ // Object is the base model of OnenotePagePreviewLinks
+ Object
+ // PreviewImageURL undocumented
+ PreviewImageURL *ExternalLink `json:"previewImageUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePagePreviewModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePagePreviewModel.go
new file mode 100644
index 00000000..8012f495
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePagePreviewModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenotePagePreview undocumented
+type OnenotePagePreview struct {
+ // Object is the base model of OnenotePagePreview
+ Object
+ // PreviewText undocumented
+ PreviewText *string `json:"previewText,omitempty"`
+ // Links undocumented
+ Links *OnenotePagePreviewLinks `json:"links,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePageRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePageRequest.go
new file mode 100644
index 00000000..6157d771
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePageRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OnenotePageRequestBuilder is request builder for OnenotePage
+type OnenotePageRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnenotePageRequest
+func (b *OnenotePageRequestBuilder) Request() *OnenotePageRequest {
+ return &OnenotePageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnenotePageRequest is request for OnenotePage
+type OnenotePageRequest struct{ BaseRequest }
+
+// Get performs GET request for OnenotePage
+func (r *OnenotePageRequest) Get(ctx context.Context) (resObj *OnenotePage, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnenotePage
+func (r *OnenotePageRequest) Update(ctx context.Context, reqObj *OnenotePage) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnenotePage
+func (r *OnenotePageRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ParentNotebook is navigation property
+func (b *OnenotePageRequestBuilder) ParentNotebook() *NotebookRequestBuilder {
+ bb := &NotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/parentNotebook"
+ return bb
+}
+
+// ParentSection is navigation property
+func (b *OnenotePageRequestBuilder) ParentSection() *OnenoteSectionRequestBuilder {
+ bb := &OnenoteSectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/parentSection"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePatchActionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePatchActionTypeEnum.go
new file mode 100644
index 00000000..1e5b9253
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePatchActionTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenotePatchActionType undocumented
+type OnenotePatchActionType int
+
+const (
+ // OnenotePatchActionTypeVReplace undocumented
+ OnenotePatchActionTypeVReplace OnenotePatchActionType = 0
+ // OnenotePatchActionTypeVAppend undocumented
+ OnenotePatchActionTypeVAppend OnenotePatchActionType = 1
+ // OnenotePatchActionTypeVDelete undocumented
+ OnenotePatchActionTypeVDelete OnenotePatchActionType = 2
+ // OnenotePatchActionTypeVInsert undocumented
+ OnenotePatchActionTypeVInsert OnenotePatchActionType = 3
+ // OnenotePatchActionTypeVPrepend undocumented
+ OnenotePatchActionTypeVPrepend OnenotePatchActionType = 4
+)
+
+// OnenotePatchActionTypePReplace returns a pointer to OnenotePatchActionTypeVReplace
+func OnenotePatchActionTypePReplace() *OnenotePatchActionType {
+ v := OnenotePatchActionTypeVReplace
+ return &v
+}
+
+// OnenotePatchActionTypePAppend returns a pointer to OnenotePatchActionTypeVAppend
+func OnenotePatchActionTypePAppend() *OnenotePatchActionType {
+ v := OnenotePatchActionTypeVAppend
+ return &v
+}
+
+// OnenotePatchActionTypePDelete returns a pointer to OnenotePatchActionTypeVDelete
+func OnenotePatchActionTypePDelete() *OnenotePatchActionType {
+ v := OnenotePatchActionTypeVDelete
+ return &v
+}
+
+// OnenotePatchActionTypePInsert returns a pointer to OnenotePatchActionTypeVInsert
+func OnenotePatchActionTypePInsert() *OnenotePatchActionType {
+ v := OnenotePatchActionTypeVInsert
+ return &v
+}
+
+// OnenotePatchActionTypePPrepend returns a pointer to OnenotePatchActionTypeVPrepend
+func OnenotePatchActionTypePPrepend() *OnenotePatchActionType {
+ v := OnenotePatchActionTypeVPrepend
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePatchContentCommandModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePatchContentCommandModel.go
new file mode 100644
index 00000000..1adddd1a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePatchContentCommandModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenotePatchContentCommand undocumented
+type OnenotePatchContentCommand struct {
+ // Object is the base model of OnenotePatchContentCommand
+ Object
+ // Action undocumented
+ Action *OnenotePatchActionType `json:"action,omitempty"`
+ // Target undocumented
+ Target *string `json:"target,omitempty"`
+ // Content undocumented
+ Content *string `json:"content,omitempty"`
+ // Position undocumented
+ Position *OnenotePatchInsertPosition `json:"position,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePatchInsertPositionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePatchInsertPositionEnum.go
new file mode 100644
index 00000000..de5c3c08
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenotePatchInsertPositionEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenotePatchInsertPosition undocumented
+type OnenotePatchInsertPosition int
+
+const (
+ // OnenotePatchInsertPositionVAfter undocumented
+ OnenotePatchInsertPositionVAfter OnenotePatchInsertPosition = 0
+ // OnenotePatchInsertPositionVBefore undocumented
+ OnenotePatchInsertPositionVBefore OnenotePatchInsertPosition = 1
+)
+
+// OnenotePatchInsertPositionPAfter returns a pointer to OnenotePatchInsertPositionVAfter
+func OnenotePatchInsertPositionPAfter() *OnenotePatchInsertPosition {
+ v := OnenotePatchInsertPositionVAfter
+ return &v
+}
+
+// OnenotePatchInsertPositionPBefore returns a pointer to OnenotePatchInsertPositionVBefore
+func OnenotePatchInsertPositionPBefore() *OnenotePatchInsertPosition {
+ v := OnenotePatchInsertPositionVBefore
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteRequest.go
new file mode 100644
index 00000000..5100612c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteRequest.go
@@ -0,0 +1,609 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OnenoteRequestBuilder is request builder for Onenote
+type OnenoteRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnenoteRequest
+func (b *OnenoteRequestBuilder) Request() *OnenoteRequest {
+ return &OnenoteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnenoteRequest is request for Onenote
+type OnenoteRequest struct{ BaseRequest }
+
+// Get performs GET request for Onenote
+func (r *OnenoteRequest) Get(ctx context.Context) (resObj *Onenote, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Onenote
+func (r *OnenoteRequest) Update(ctx context.Context, reqObj *Onenote) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Onenote
+func (r *OnenoteRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Notebooks returns request builder for Notebook collection
+func (b *OnenoteRequestBuilder) Notebooks() *OnenoteNotebooksCollectionRequestBuilder {
+ bb := &OnenoteNotebooksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/notebooks"
+ return bb
+}
+
+// OnenoteNotebooksCollectionRequestBuilder is request builder for Notebook collection
+type OnenoteNotebooksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Notebook collection
+func (b *OnenoteNotebooksCollectionRequestBuilder) Request() *OnenoteNotebooksCollectionRequest {
+ return &OnenoteNotebooksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Notebook item
+func (b *OnenoteNotebooksCollectionRequestBuilder) ID(id string) *NotebookRequestBuilder {
+ bb := &NotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnenoteNotebooksCollectionRequest is request for Notebook collection
+type OnenoteNotebooksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Notebook collection
+func (r *OnenoteNotebooksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Notebook, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Notebook
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Notebook
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Notebook collection
+func (r *OnenoteNotebooksCollectionRequest) Get(ctx context.Context) ([]Notebook, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Notebook collection
+func (r *OnenoteNotebooksCollectionRequest) Add(ctx context.Context, reqObj *Notebook) (resObj *Notebook, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Operations returns request builder for OnenoteOperation collection
+func (b *OnenoteRequestBuilder) Operations() *OnenoteOperationsCollectionRequestBuilder {
+ bb := &OnenoteOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/operations"
+ return bb
+}
+
+// OnenoteOperationsCollectionRequestBuilder is request builder for OnenoteOperation collection
+type OnenoteOperationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnenoteOperation collection
+func (b *OnenoteOperationsCollectionRequestBuilder) Request() *OnenoteOperationsCollectionRequest {
+ return &OnenoteOperationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnenoteOperation item
+func (b *OnenoteOperationsCollectionRequestBuilder) ID(id string) *OnenoteOperationRequestBuilder {
+ bb := &OnenoteOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnenoteOperationsCollectionRequest is request for OnenoteOperation collection
+type OnenoteOperationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnenoteOperation collection
+func (r *OnenoteOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OnenoteOperation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnenoteOperation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnenoteOperation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnenoteOperation collection
+func (r *OnenoteOperationsCollectionRequest) Get(ctx context.Context) ([]OnenoteOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OnenoteOperation collection
+func (r *OnenoteOperationsCollectionRequest) Add(ctx context.Context, reqObj *OnenoteOperation) (resObj *OnenoteOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Pages returns request builder for OnenotePage collection
+func (b *OnenoteRequestBuilder) Pages() *OnenotePagesCollectionRequestBuilder {
+ bb := &OnenotePagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/pages"
+ return bb
+}
+
+// OnenotePagesCollectionRequestBuilder is request builder for OnenotePage collection
+type OnenotePagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnenotePage collection
+func (b *OnenotePagesCollectionRequestBuilder) Request() *OnenotePagesCollectionRequest {
+ return &OnenotePagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnenotePage item
+func (b *OnenotePagesCollectionRequestBuilder) ID(id string) *OnenotePageRequestBuilder {
+ bb := &OnenotePageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnenotePagesCollectionRequest is request for OnenotePage collection
+type OnenotePagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnenotePage collection
+func (r *OnenotePagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OnenotePage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnenotePage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnenotePage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnenotePage collection
+func (r *OnenotePagesCollectionRequest) Get(ctx context.Context) ([]OnenotePage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OnenotePage collection
+func (r *OnenotePagesCollectionRequest) Add(ctx context.Context, reqObj *OnenotePage) (resObj *OnenotePage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Resources returns request builder for OnenoteResource collection
+func (b *OnenoteRequestBuilder) Resources() *OnenoteResourcesCollectionRequestBuilder {
+ bb := &OnenoteResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resources"
+ return bb
+}
+
+// OnenoteResourcesCollectionRequestBuilder is request builder for OnenoteResource collection
+type OnenoteResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnenoteResource collection
+func (b *OnenoteResourcesCollectionRequestBuilder) Request() *OnenoteResourcesCollectionRequest {
+ return &OnenoteResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnenoteResource item
+func (b *OnenoteResourcesCollectionRequestBuilder) ID(id string) *OnenoteResourceRequestBuilder {
+ bb := &OnenoteResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnenoteResourcesCollectionRequest is request for OnenoteResource collection
+type OnenoteResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnenoteResource collection
+func (r *OnenoteResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OnenoteResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnenoteResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnenoteResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnenoteResource collection
+func (r *OnenoteResourcesCollectionRequest) Get(ctx context.Context) ([]OnenoteResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OnenoteResource collection
+func (r *OnenoteResourcesCollectionRequest) Add(ctx context.Context, reqObj *OnenoteResource) (resObj *OnenoteResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SectionGroups returns request builder for SectionGroup collection
+func (b *OnenoteRequestBuilder) SectionGroups() *OnenoteSectionGroupsCollectionRequestBuilder {
+ bb := &OnenoteSectionGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sectionGroups"
+ return bb
+}
+
+// OnenoteSectionGroupsCollectionRequestBuilder is request builder for SectionGroup collection
+type OnenoteSectionGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SectionGroup collection
+func (b *OnenoteSectionGroupsCollectionRequestBuilder) Request() *OnenoteSectionGroupsCollectionRequest {
+ return &OnenoteSectionGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SectionGroup item
+func (b *OnenoteSectionGroupsCollectionRequestBuilder) ID(id string) *SectionGroupRequestBuilder {
+ bb := &SectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnenoteSectionGroupsCollectionRequest is request for SectionGroup collection
+type OnenoteSectionGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SectionGroup collection
+func (r *OnenoteSectionGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SectionGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SectionGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SectionGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SectionGroup collection
+func (r *OnenoteSectionGroupsCollectionRequest) Get(ctx context.Context) ([]SectionGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SectionGroup collection
+func (r *OnenoteSectionGroupsCollectionRequest) Add(ctx context.Context, reqObj *SectionGroup) (resObj *SectionGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Sections returns request builder for OnenoteSection collection
+func (b *OnenoteRequestBuilder) Sections() *OnenoteSectionsCollectionRequestBuilder {
+ bb := &OnenoteSectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sections"
+ return bb
+}
+
+// OnenoteSectionsCollectionRequestBuilder is request builder for OnenoteSection collection
+type OnenoteSectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnenoteSection collection
+func (b *OnenoteSectionsCollectionRequestBuilder) Request() *OnenoteSectionsCollectionRequest {
+ return &OnenoteSectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnenoteSection item
+func (b *OnenoteSectionsCollectionRequestBuilder) ID(id string) *OnenoteSectionRequestBuilder {
+ bb := &OnenoteSectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnenoteSectionsCollectionRequest is request for OnenoteSection collection
+type OnenoteSectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnenoteSection collection
+func (r *OnenoteSectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OnenoteSection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnenoteSection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnenoteSection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnenoteSection collection
+func (r *OnenoteSectionsCollectionRequest) Get(ctx context.Context) ([]OnenoteSection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OnenoteSection collection
+func (r *OnenoteSectionsCollectionRequest) Add(ctx context.Context, reqObj *OnenoteSection) (resObj *OnenoteSection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteResourceModel.go
new file mode 100644
index 00000000..9d4f1cd8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteResourceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenoteResource undocumented
+type OnenoteResource struct {
+ // OnenoteEntityBaseModel is the base model of OnenoteResource
+ OnenoteEntityBaseModel
+ // Content undocumented
+ Content *Stream `json:"content,omitempty"`
+ // ContentURL undocumented
+ ContentURL *string `json:"contentUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteResourceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteResourceRequest.go
new file mode 100644
index 00000000..613d19b3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteResourceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OnenoteResourceRequestBuilder is request builder for OnenoteResource
+type OnenoteResourceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnenoteResourceRequest
+func (b *OnenoteResourceRequestBuilder) Request() *OnenoteResourceRequest {
+ return &OnenoteResourceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnenoteResourceRequest is request for OnenoteResource
+type OnenoteResourceRequest struct{ BaseRequest }
+
+// Get performs GET request for OnenoteResource
+func (r *OnenoteResourceRequest) Get(ctx context.Context) (resObj *OnenoteResource, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnenoteResource
+func (r *OnenoteResourceRequest) Update(ctx context.Context, reqObj *OnenoteResource) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnenoteResource
+func (r *OnenoteResourceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteSectionAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteSectionAction.go
new file mode 100644
index 00000000..3e7237cf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteSectionAction.go
@@ -0,0 +1,87 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OnenoteSectionCopyToNotebookRequestParameter undocumented
+type OnenoteSectionCopyToNotebookRequestParameter struct {
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+ // RenameAs undocumented
+ RenameAs *string `json:"renameAs,omitempty"`
+ // SiteCollectionID undocumented
+ SiteCollectionID *string `json:"siteCollectionId,omitempty"`
+ // SiteID undocumented
+ SiteID *string `json:"siteId,omitempty"`
+}
+
+// OnenoteSectionCopyToSectionGroupRequestParameter undocumented
+type OnenoteSectionCopyToSectionGroupRequestParameter struct {
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+ // RenameAs undocumented
+ RenameAs *string `json:"renameAs,omitempty"`
+ // SiteCollectionID undocumented
+ SiteCollectionID *string `json:"siteCollectionId,omitempty"`
+ // SiteID undocumented
+ SiteID *string `json:"siteId,omitempty"`
+}
+
+//
+type OnenoteSectionCopyToNotebookRequestBuilder struct{ BaseRequestBuilder }
+
+// CopyToNotebook action undocumented
+func (b *OnenoteSectionRequestBuilder) CopyToNotebook(reqObj *OnenoteSectionCopyToNotebookRequestParameter) *OnenoteSectionCopyToNotebookRequestBuilder {
+ bb := &OnenoteSectionCopyToNotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/copyToNotebook"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type OnenoteSectionCopyToNotebookRequest struct{ BaseRequest }
+
+//
+func (b *OnenoteSectionCopyToNotebookRequestBuilder) Request() *OnenoteSectionCopyToNotebookRequest {
+ return &OnenoteSectionCopyToNotebookRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *OnenoteSectionCopyToNotebookRequest) Post(ctx context.Context) (resObj *OnenoteOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type OnenoteSectionCopyToSectionGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// CopyToSectionGroup action undocumented
+func (b *OnenoteSectionRequestBuilder) CopyToSectionGroup(reqObj *OnenoteSectionCopyToSectionGroupRequestParameter) *OnenoteSectionCopyToSectionGroupRequestBuilder {
+ bb := &OnenoteSectionCopyToSectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/copyToSectionGroup"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type OnenoteSectionCopyToSectionGroupRequest struct{ BaseRequest }
+
+//
+func (b *OnenoteSectionCopyToSectionGroupRequestBuilder) Request() *OnenoteSectionCopyToSectionGroupRequest {
+ return &OnenoteSectionCopyToSectionGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *OnenoteSectionCopyToSectionGroupRequest) Post(ctx context.Context) (resObj *OnenoteOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteSectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteSectionModel.go
new file mode 100644
index 00000000..18faeb7e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteSectionModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenoteSection undocumented
+type OnenoteSection struct {
+ // OnenoteEntityHierarchyModel is the base model of OnenoteSection
+ OnenoteEntityHierarchyModel
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // Links undocumented
+ Links *SectionLinks `json:"links,omitempty"`
+ // PagesURL undocumented
+ PagesURL *string `json:"pagesUrl,omitempty"`
+ // ParentNotebook undocumented
+ ParentNotebook *Notebook `json:"parentNotebook,omitempty"`
+ // ParentSectionGroup undocumented
+ ParentSectionGroup *SectionGroup `json:"parentSectionGroup,omitempty"`
+ // Pages undocumented
+ Pages []OnenotePage `json:"pages,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteSectionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteSectionRequest.go
new file mode 100644
index 00000000..e533b590
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteSectionRequest.go
@@ -0,0 +1,153 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OnenoteSectionRequestBuilder is request builder for OnenoteSection
+type OnenoteSectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnenoteSectionRequest
+func (b *OnenoteSectionRequestBuilder) Request() *OnenoteSectionRequest {
+ return &OnenoteSectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnenoteSectionRequest is request for OnenoteSection
+type OnenoteSectionRequest struct{ BaseRequest }
+
+// Get performs GET request for OnenoteSection
+func (r *OnenoteSectionRequest) Get(ctx context.Context) (resObj *OnenoteSection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnenoteSection
+func (r *OnenoteSectionRequest) Update(ctx context.Context, reqObj *OnenoteSection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnenoteSection
+func (r *OnenoteSectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Pages returns request builder for OnenotePage collection
+func (b *OnenoteSectionRequestBuilder) Pages() *OnenoteSectionPagesCollectionRequestBuilder {
+ bb := &OnenoteSectionPagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/pages"
+ return bb
+}
+
+// OnenoteSectionPagesCollectionRequestBuilder is request builder for OnenotePage collection
+type OnenoteSectionPagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnenotePage collection
+func (b *OnenoteSectionPagesCollectionRequestBuilder) Request() *OnenoteSectionPagesCollectionRequest {
+ return &OnenoteSectionPagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnenotePage item
+func (b *OnenoteSectionPagesCollectionRequestBuilder) ID(id string) *OnenotePageRequestBuilder {
+ bb := &OnenotePageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnenoteSectionPagesCollectionRequest is request for OnenotePage collection
+type OnenoteSectionPagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnenotePage collection
+func (r *OnenoteSectionPagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OnenotePage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnenotePage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnenotePage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnenotePage collection
+func (r *OnenoteSectionPagesCollectionRequest) Get(ctx context.Context) ([]OnenotePage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OnenotePage collection
+func (r *OnenoteSectionPagesCollectionRequest) Add(ctx context.Context, reqObj *OnenotePage) (resObj *OnenotePage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ParentNotebook is navigation property
+func (b *OnenoteSectionRequestBuilder) ParentNotebook() *NotebookRequestBuilder {
+ bb := &NotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/parentNotebook"
+ return bb
+}
+
+// ParentSectionGroup is navigation property
+func (b *OnenoteSectionRequestBuilder) ParentSectionGroup() *SectionGroupRequestBuilder {
+ bb := &SectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/parentSectionGroup"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteSourceServiceEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteSourceServiceEnum.go
new file mode 100644
index 00000000..accbaa26
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteSourceServiceEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenoteSourceService undocumented
+type OnenoteSourceService int
+
+const (
+ // OnenoteSourceServiceVUnknown undocumented
+ OnenoteSourceServiceVUnknown OnenoteSourceService = 0
+ // OnenoteSourceServiceVOneDrive undocumented
+ OnenoteSourceServiceVOneDrive OnenoteSourceService = 1
+ // OnenoteSourceServiceVOneDriveForBusiness undocumented
+ OnenoteSourceServiceVOneDriveForBusiness OnenoteSourceService = 2
+ // OnenoteSourceServiceVOnPremOneDriveForBusiness undocumented
+ OnenoteSourceServiceVOnPremOneDriveForBusiness OnenoteSourceService = 3
+)
+
+// OnenoteSourceServicePUnknown returns a pointer to OnenoteSourceServiceVUnknown
+func OnenoteSourceServicePUnknown() *OnenoteSourceService {
+ v := OnenoteSourceServiceVUnknown
+ return &v
+}
+
+// OnenoteSourceServicePOneDrive returns a pointer to OnenoteSourceServiceVOneDrive
+func OnenoteSourceServicePOneDrive() *OnenoteSourceService {
+ v := OnenoteSourceServiceVOneDrive
+ return &v
+}
+
+// OnenoteSourceServicePOneDriveForBusiness returns a pointer to OnenoteSourceServiceVOneDriveForBusiness
+func OnenoteSourceServicePOneDriveForBusiness() *OnenoteSourceService {
+ v := OnenoteSourceServiceVOneDriveForBusiness
+ return &v
+}
+
+// OnenoteSourceServicePOnPremOneDriveForBusiness returns a pointer to OnenoteSourceServiceVOnPremOneDriveForBusiness
+func OnenoteSourceServicePOnPremOneDriveForBusiness() *OnenoteSourceService {
+ v := OnenoteSourceServiceVOnPremOneDriveForBusiness
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteUserRoleEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteUserRoleEnum.go
new file mode 100644
index 00000000..66fdde82
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnenoteUserRoleEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenoteUserRole undocumented
+type OnenoteUserRole int
+
+const (
+ // OnenoteUserRoleVOwner undocumented
+ OnenoteUserRoleVOwner OnenoteUserRole = 0
+ // OnenoteUserRoleVContributor undocumented
+ OnenoteUserRoleVContributor OnenoteUserRole = 1
+ // OnenoteUserRoleVReader undocumented
+ OnenoteUserRoleVReader OnenoteUserRole = 2
+ // OnenoteUserRoleVNone undocumented
+ OnenoteUserRoleVNone OnenoteUserRole = -1
+)
+
+// OnenoteUserRolePOwner returns a pointer to OnenoteUserRoleVOwner
+func OnenoteUserRolePOwner() *OnenoteUserRole {
+ v := OnenoteUserRoleVOwner
+ return &v
+}
+
+// OnenoteUserRolePContributor returns a pointer to OnenoteUserRoleVContributor
+func OnenoteUserRolePContributor() *OnenoteUserRole {
+ v := OnenoteUserRoleVContributor
+ return &v
+}
+
+// OnenoteUserRolePReader returns a pointer to OnenoteUserRoleVReader
+func OnenoteUserRolePReader() *OnenoteUserRole {
+ v := OnenoteUserRoleVReader
+ return &v
+}
+
+// OnenoteUserRolePNone returns a pointer to OnenoteUserRoleVNone
+func OnenoteUserRolePNone() *OnenoteUserRole {
+ v := OnenoteUserRoleVNone
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnlineMeetingInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnlineMeetingInfoModel.go
new file mode 100644
index 00000000..a5e41448
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnlineMeetingInfoModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnlineMeetingInfo undocumented
+type OnlineMeetingInfo struct {
+ // Object is the base model of OnlineMeetingInfo
+ Object
+ // JoinURL undocumented
+ JoinURL *string `json:"joinUrl,omitempty"`
+ // ConferenceID undocumented
+ ConferenceID *string `json:"conferenceId,omitempty"`
+ // TollNumber undocumented
+ TollNumber *string `json:"tollNumber,omitempty"`
+ // TollFreeNumbers undocumented
+ TollFreeNumbers []string `json:"tollFreeNumbers,omitempty"`
+ // QuickDial undocumented
+ QuickDial *string `json:"quickDial,omitempty"`
+ // Phones undocumented
+ Phones []Phone `json:"phones,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnlineMeetingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnlineMeetingModel.go
new file mode 100644
index 00000000..09e0a0c8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnlineMeetingModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OnlineMeeting undocumented
+type OnlineMeeting struct {
+ // Entity is the base model of OnlineMeeting
+ Entity
+ // CreationDateTime undocumented
+ CreationDateTime *time.Time `json:"creationDateTime,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // CanceledDateTime undocumented
+ CanceledDateTime *time.Time `json:"canceledDateTime,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // EntryExitAnnouncement undocumented
+ EntryExitAnnouncement *bool `json:"entryExitAnnouncement,omitempty"`
+ // JoinURL undocumented
+ JoinURL *string `json:"joinUrl,omitempty"`
+ // Subject undocumented
+ Subject *string `json:"subject,omitempty"`
+ // IsCancelled undocumented
+ IsCancelled *bool `json:"isCancelled,omitempty"`
+ // Participants undocumented
+ Participants *MeetingParticipants `json:"participants,omitempty"`
+ // IsBroadcast undocumented
+ IsBroadcast *bool `json:"isBroadcast,omitempty"`
+ // AccessLevel undocumented
+ AccessLevel *AccessLevel `json:"accessLevel,omitempty"`
+ // Capabilities undocumented
+ Capabilities []MeetingCapabilities `json:"capabilities,omitempty"`
+ // AudioConferencing undocumented
+ AudioConferencing *AudioConferencing `json:"audioConferencing,omitempty"`
+ // ChatInfo undocumented
+ ChatInfo *ChatInfo `json:"chatInfo,omitempty"`
+ // VideoTeleconferenceID undocumented
+ VideoTeleconferenceID *string `json:"videoTeleconferenceId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnlineMeetingProviderTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnlineMeetingProviderTypeEnum.go
new file mode 100644
index 00000000..0736597d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnlineMeetingProviderTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnlineMeetingProviderType undocumented
+type OnlineMeetingProviderType int
+
+const (
+ // OnlineMeetingProviderTypeVUnknown undocumented
+ OnlineMeetingProviderTypeVUnknown OnlineMeetingProviderType = 0
+ // OnlineMeetingProviderTypeVSkypeForBusiness undocumented
+ OnlineMeetingProviderTypeVSkypeForBusiness OnlineMeetingProviderType = 1
+ // OnlineMeetingProviderTypeVSkypeForConsumer undocumented
+ OnlineMeetingProviderTypeVSkypeForConsumer OnlineMeetingProviderType = 2
+ // OnlineMeetingProviderTypeVTeamsForBusiness undocumented
+ OnlineMeetingProviderTypeVTeamsForBusiness OnlineMeetingProviderType = 3
+)
+
+// OnlineMeetingProviderTypePUnknown returns a pointer to OnlineMeetingProviderTypeVUnknown
+func OnlineMeetingProviderTypePUnknown() *OnlineMeetingProviderType {
+ v := OnlineMeetingProviderTypeVUnknown
+ return &v
+}
+
+// OnlineMeetingProviderTypePSkypeForBusiness returns a pointer to OnlineMeetingProviderTypeVSkypeForBusiness
+func OnlineMeetingProviderTypePSkypeForBusiness() *OnlineMeetingProviderType {
+ v := OnlineMeetingProviderTypeVSkypeForBusiness
+ return &v
+}
+
+// OnlineMeetingProviderTypePSkypeForConsumer returns a pointer to OnlineMeetingProviderTypeVSkypeForConsumer
+func OnlineMeetingProviderTypePSkypeForConsumer() *OnlineMeetingProviderType {
+ v := OnlineMeetingProviderTypeVSkypeForConsumer
+ return &v
+}
+
+// OnlineMeetingProviderTypePTeamsForBusiness returns a pointer to OnlineMeetingProviderTypeVTeamsForBusiness
+func OnlineMeetingProviderTypePTeamsForBusiness() *OnlineMeetingProviderType {
+ v := OnlineMeetingProviderTypeVTeamsForBusiness
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OnlineMeetingRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OnlineMeetingRequest.go
new file mode 100644
index 00000000..badf6bff
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OnlineMeetingRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OnlineMeetingRequestBuilder is request builder for OnlineMeeting
+type OnlineMeetingRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnlineMeetingRequest
+func (b *OnlineMeetingRequestBuilder) Request() *OnlineMeetingRequest {
+ return &OnlineMeetingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnlineMeetingRequest is request for OnlineMeeting
+type OnlineMeetingRequest struct{ BaseRequest }
+
+// Get performs GET request for OnlineMeeting
+func (r *OnlineMeetingRequest) Get(ctx context.Context) (resObj *OnlineMeeting, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnlineMeeting
+func (r *OnlineMeetingRequest) Update(ctx context.Context, reqObj *OnlineMeeting) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnlineMeeting
+func (r *OnlineMeetingRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OpenShiftChangeRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OpenShiftChangeRequestObjectModel.go
new file mode 100644
index 00000000..895955b3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OpenShiftChangeRequestObjectModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OpenShiftChangeRequestObject undocumented
+type OpenShiftChangeRequestObject struct {
+ // ScheduleChangeRequestObject is the base model of OpenShiftChangeRequestObject
+ ScheduleChangeRequestObject
+ // OpenShiftID undocumented
+ OpenShiftID *string `json:"openShiftId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OpenShiftChangeRequestObjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OpenShiftChangeRequestObjectRequest.go
new file mode 100644
index 00000000..1cd46c63
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OpenShiftChangeRequestObjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OpenShiftChangeRequestObjectRequestBuilder is request builder for OpenShiftChangeRequestObject
+type OpenShiftChangeRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OpenShiftChangeRequestObjectRequest
+func (b *OpenShiftChangeRequestObjectRequestBuilder) Request() *OpenShiftChangeRequestObjectRequest {
+ return &OpenShiftChangeRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OpenShiftChangeRequestObjectRequest is request for OpenShiftChangeRequestObject
+type OpenShiftChangeRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for OpenShiftChangeRequestObject
+func (r *OpenShiftChangeRequestObjectRequest) Get(ctx context.Context) (resObj *OpenShiftChangeRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OpenShiftChangeRequestObject
+func (r *OpenShiftChangeRequestObjectRequest) Update(ctx context.Context, reqObj *OpenShiftChangeRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OpenShiftChangeRequestObject
+func (r *OpenShiftChangeRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OpenShiftItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OpenShiftItemModel.go
new file mode 100644
index 00000000..8af612c4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OpenShiftItemModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OpenShiftItem undocumented
+type OpenShiftItem struct {
+ // ShiftItem is the base model of OpenShiftItem
+ ShiftItem
+ // OpenSlotCount undocumented
+ OpenSlotCount *int `json:"openSlotCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OpenShiftModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OpenShiftModel.go
new file mode 100644
index 00000000..458f061a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OpenShiftModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OpenShift undocumented
+type OpenShift struct {
+ // ChangeTrackedEntity is the base model of OpenShift
+ ChangeTrackedEntity
+ // SharedOpenShift undocumented
+ SharedOpenShift *OpenShiftItem `json:"sharedOpenShift,omitempty"`
+ // DraftOpenShift undocumented
+ DraftOpenShift *OpenShiftItem `json:"draftOpenShift,omitempty"`
+ // SchedulingGroupID undocumented
+ SchedulingGroupID *string `json:"schedulingGroupId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OpenShiftRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OpenShiftRequest.go
new file mode 100644
index 00000000..e926c5d8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OpenShiftRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OpenShiftRequestBuilder is request builder for OpenShift
+type OpenShiftRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OpenShiftRequest
+func (b *OpenShiftRequestBuilder) Request() *OpenShiftRequest {
+ return &OpenShiftRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OpenShiftRequest is request for OpenShift
+type OpenShiftRequest struct{ BaseRequest }
+
+// Get performs GET request for OpenShift
+func (r *OpenShiftRequest) Get(ctx context.Context) (resObj *OpenShift, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OpenShift
+func (r *OpenShiftRequest) Update(ctx context.Context, reqObj *OpenShift) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OpenShift
+func (r *OpenShiftRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OpenTypeExtensionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OpenTypeExtensionModel.go
new file mode 100644
index 00000000..5c765c03
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OpenTypeExtensionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OpenTypeExtension undocumented
+type OpenTypeExtension struct {
+ // Extension is the base model of OpenTypeExtension
+ Extension
+ // ExtensionName undocumented
+ ExtensionName *string `json:"extensionName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OpeningHoursSpecificationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OpeningHoursSpecificationModel.go
new file mode 100644
index 00000000..e04a623c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OpeningHoursSpecificationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OpeningHoursSpecification undocumented
+type OpeningHoursSpecification struct {
+ // Object is the base model of OpeningHoursSpecification
+ Object
+ // DayOfWeek undocumented
+ DayOfWeek *string `json:"dayOfWeek,omitempty"`
+ // Opens undocumented
+ Opens *string `json:"opens,omitempty"`
+ // Closes undocumented
+ Closes *string `json:"closes,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OperatingSystemVersionRangeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OperatingSystemVersionRangeModel.go
new file mode 100644
index 00000000..5d4a77eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OperatingSystemVersionRangeModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OperatingSystemVersionRange undocumented
+type OperatingSystemVersionRange struct {
+ // Object is the base model of OperatingSystemVersionRange
+ Object
+ // Description The description of this range (e.g. Valid 1702 builds)
+ Description *string `json:"description,omitempty"`
+ // LowestVersion The lowest inclusive version that this range contains.
+ LowestVersion *string `json:"lowestVersion,omitempty"`
+ // HighestVersion The highest inclusive version that this range contains.
+ HighestVersion *string `json:"highestVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OperationErrorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OperationErrorModel.go
new file mode 100644
index 00000000..37b79fc0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OperationErrorModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OperationError undocumented
+type OperationError struct {
+ // Object is the base model of OperationError
+ Object
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OperationModel.go
new file mode 100644
index 00000000..56282904
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OperationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Operation undocumented
+type Operation struct {
+ // Entity is the base model of Operation
+ Entity
+ // Status undocumented
+ Status *OperationStatus `json:"status,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastActionDateTime undocumented
+ LastActionDateTime *time.Time `json:"lastActionDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OperationResultEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/OperationResultEnum.go
new file mode 100644
index 00000000..650a35a5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OperationResultEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OperationResult undocumented
+type OperationResult int
+
+const (
+ // OperationResultVSuccess undocumented
+ OperationResultVSuccess OperationResult = 0
+ // OperationResultVFailure undocumented
+ OperationResultVFailure OperationResult = 1
+ // OperationResultVTimeout undocumented
+ OperationResultVTimeout OperationResult = 2
+ // OperationResultVUnknownFutureValue undocumented
+ OperationResultVUnknownFutureValue OperationResult = 3
+)
+
+// OperationResultPSuccess returns a pointer to OperationResultVSuccess
+func OperationResultPSuccess() *OperationResult {
+ v := OperationResultVSuccess
+ return &v
+}
+
+// OperationResultPFailure returns a pointer to OperationResultVFailure
+func OperationResultPFailure() *OperationResult {
+ v := OperationResultVFailure
+ return &v
+}
+
+// OperationResultPTimeout returns a pointer to OperationResultVTimeout
+func OperationResultPTimeout() *OperationResult {
+ v := OperationResultVTimeout
+ return &v
+}
+
+// OperationResultPUnknownFutureValue returns a pointer to OperationResultVUnknownFutureValue
+func OperationResultPUnknownFutureValue() *OperationResult {
+ v := OperationResultVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OperationStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/OperationStatusEnum.go
new file mode 100644
index 00000000..aa48d31c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OperationStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OperationStatus undocumented
+type OperationStatus int
+
+const (
+ // OperationStatusVNotStarted undocumented
+ OperationStatusVNotStarted OperationStatus = 0
+ // OperationStatusVRunning undocumented
+ OperationStatusVRunning OperationStatus = 1
+ // OperationStatusVCompleted undocumented
+ OperationStatusVCompleted OperationStatus = 2
+ // OperationStatusVFailed undocumented
+ OperationStatusVFailed OperationStatus = 3
+)
+
+// OperationStatusPNotStarted returns a pointer to OperationStatusVNotStarted
+func OperationStatusPNotStarted() *OperationStatus {
+ v := OperationStatusVNotStarted
+ return &v
+}
+
+// OperationStatusPRunning returns a pointer to OperationStatusVRunning
+func OperationStatusPRunning() *OperationStatus {
+ v := OperationStatusVRunning
+ return &v
+}
+
+// OperationStatusPCompleted returns a pointer to OperationStatusVCompleted
+func OperationStatusPCompleted() *OperationStatus {
+ v := OperationStatusVCompleted
+ return &v
+}
+
+// OperationStatusPFailed returns a pointer to OperationStatusVFailed
+func OperationStatusPFailed() *OperationStatus {
+ v := OperationStatusVFailed
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OptionalClaimModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OptionalClaimModel.go
new file mode 100644
index 00000000..732e45bf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OptionalClaimModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OptionalClaim undocumented
+type OptionalClaim struct {
+ // Object is the base model of OptionalClaim
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Source undocumented
+ Source *string `json:"source,omitempty"`
+ // Essential undocumented
+ Essential *bool `json:"essential,omitempty"`
+ // AdditionalProperties undocumented
+ AdditionalProperties []string `json:"additionalProperties,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OptionalClaimsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OptionalClaimsModel.go
new file mode 100644
index 00000000..da1c7c92
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OptionalClaimsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OptionalClaims undocumented
+type OptionalClaims struct {
+ // Object is the base model of OptionalClaims
+ Object
+ // IDToken undocumented
+ IDToken []OptionalClaim `json:"idToken,omitempty"`
+ // AccessToken undocumented
+ AccessToken []OptionalClaim `json:"accessToken,omitempty"`
+ // Saml2Token undocumented
+ Saml2Token []OptionalClaim `json:"saml2Token,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OrgContactModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OrgContactModel.go
new file mode 100644
index 00000000..4229b653
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OrgContactModel.go
@@ -0,0 +1,47 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OrgContact undocumented
+type OrgContact struct {
+ // DirectoryObject is the base model of OrgContact
+ DirectoryObject
+ // Addresses undocumented
+ Addresses []PhysicalOfficeAddress `json:"addresses,omitempty"`
+ // CompanyName undocumented
+ CompanyName *string `json:"companyName,omitempty"`
+ // Department undocumented
+ Department *string `json:"department,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // GivenName undocumented
+ GivenName *string `json:"givenName,omitempty"`
+ // JobTitle undocumented
+ JobTitle *string `json:"jobTitle,omitempty"`
+ // Mail undocumented
+ Mail *string `json:"mail,omitempty"`
+ // MailNickname undocumented
+ MailNickname *string `json:"mailNickname,omitempty"`
+ // OnPremisesSyncEnabled undocumented
+ OnPremisesSyncEnabled *bool `json:"onPremisesSyncEnabled,omitempty"`
+ // OnPremisesLastSyncDateTime undocumented
+ OnPremisesLastSyncDateTime *time.Time `json:"onPremisesLastSyncDateTime,omitempty"`
+ // OnPremisesProvisioningErrors undocumented
+ OnPremisesProvisioningErrors []OnPremisesProvisioningError `json:"onPremisesProvisioningErrors,omitempty"`
+ // Phones undocumented
+ Phones []Phone `json:"phones,omitempty"`
+ // ProxyAddresses undocumented
+ ProxyAddresses []string `json:"proxyAddresses,omitempty"`
+ // Surname undocumented
+ Surname *string `json:"surname,omitempty"`
+ // Manager undocumented
+ Manager *DirectoryObject `json:"manager,omitempty"`
+ // DirectReports undocumented
+ DirectReports []DirectoryObject `json:"directReports,omitempty"`
+ // MemberOf undocumented
+ MemberOf []DirectoryObject `json:"memberOf,omitempty"`
+ // TransitiveMemberOf undocumented
+ TransitiveMemberOf []DirectoryObject `json:"transitiveMemberOf,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OrgContactRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OrgContactRequest.go
new file mode 100644
index 00000000..8e27eefd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OrgContactRequest.go
@@ -0,0 +1,334 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OrgContactRequestBuilder is request builder for OrgContact
+type OrgContactRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OrgContactRequest
+func (b *OrgContactRequestBuilder) Request() *OrgContactRequest {
+ return &OrgContactRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OrgContactRequest is request for OrgContact
+type OrgContactRequest struct{ BaseRequest }
+
+// Get performs GET request for OrgContact
+func (r *OrgContactRequest) Get(ctx context.Context) (resObj *OrgContact, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OrgContact
+func (r *OrgContactRequest) Update(ctx context.Context, reqObj *OrgContact) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OrgContact
+func (r *OrgContactRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DirectReports returns request builder for DirectoryObject collection
+func (b *OrgContactRequestBuilder) DirectReports() *OrgContactDirectReportsCollectionRequestBuilder {
+ bb := &OrgContactDirectReportsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directReports"
+ return bb
+}
+
+// OrgContactDirectReportsCollectionRequestBuilder is request builder for DirectoryObject collection
+type OrgContactDirectReportsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *OrgContactDirectReportsCollectionRequestBuilder) Request() *OrgContactDirectReportsCollectionRequest {
+ return &OrgContactDirectReportsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *OrgContactDirectReportsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OrgContactDirectReportsCollectionRequest is request for DirectoryObject collection
+type OrgContactDirectReportsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *OrgContactDirectReportsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *OrgContactDirectReportsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *OrgContactDirectReportsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Manager is navigation property
+func (b *OrgContactRequestBuilder) Manager() *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/manager"
+ return bb
+}
+
+// MemberOf returns request builder for DirectoryObject collection
+func (b *OrgContactRequestBuilder) MemberOf() *OrgContactMemberOfCollectionRequestBuilder {
+ bb := &OrgContactMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/memberOf"
+ return bb
+}
+
+// OrgContactMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type OrgContactMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *OrgContactMemberOfCollectionRequestBuilder) Request() *OrgContactMemberOfCollectionRequest {
+ return &OrgContactMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *OrgContactMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OrgContactMemberOfCollectionRequest is request for DirectoryObject collection
+type OrgContactMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *OrgContactMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *OrgContactMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *OrgContactMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TransitiveMemberOf returns request builder for DirectoryObject collection
+func (b *OrgContactRequestBuilder) TransitiveMemberOf() *OrgContactTransitiveMemberOfCollectionRequestBuilder {
+ bb := &OrgContactTransitiveMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/transitiveMemberOf"
+ return bb
+}
+
+// OrgContactTransitiveMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type OrgContactTransitiveMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *OrgContactTransitiveMemberOfCollectionRequestBuilder) Request() *OrgContactTransitiveMemberOfCollectionRequest {
+ return &OrgContactTransitiveMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *OrgContactTransitiveMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OrgContactTransitiveMemberOfCollectionRequest is request for DirectoryObject collection
+type OrgContactTransitiveMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *OrgContactTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *OrgContactTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *OrgContactTransitiveMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OrganizationAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/OrganizationAction.go
new file mode 100644
index 00000000..956e56a0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OrganizationAction.go
@@ -0,0 +1,36 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OrganizationSetMobileDeviceManagementAuthorityRequestParameter undocumented
+type OrganizationSetMobileDeviceManagementAuthorityRequestParameter struct {
+}
+
+//
+type OrganizationSetMobileDeviceManagementAuthorityRequestBuilder struct{ BaseRequestBuilder }
+
+// SetMobileDeviceManagementAuthority action undocumented
+func (b *OrganizationRequestBuilder) SetMobileDeviceManagementAuthority(reqObj *OrganizationSetMobileDeviceManagementAuthorityRequestParameter) *OrganizationSetMobileDeviceManagementAuthorityRequestBuilder {
+ bb := &OrganizationSetMobileDeviceManagementAuthorityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/setMobileDeviceManagementAuthority"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type OrganizationSetMobileDeviceManagementAuthorityRequest struct{ BaseRequest }
+
+//
+func (b *OrganizationSetMobileDeviceManagementAuthorityRequestBuilder) Request() *OrganizationSetMobileDeviceManagementAuthorityRequest {
+ return &OrganizationSetMobileDeviceManagementAuthorityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *OrganizationSetMobileDeviceManagementAuthorityRequest) Post(ctx context.Context) (resObj *int, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OrganizationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OrganizationModel.go
new file mode 100644
index 00000000..b3ee988a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OrganizationModel.go
@@ -0,0 +1,63 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Organization The organization resource represents an instance of global settings and resources which operate and are provisioned at the tenant-level.
+type Organization struct {
+ // DirectoryObject is the base model of Organization
+ DirectoryObject
+ // AssignedPlans undocumented
+ AssignedPlans []AssignedPlan `json:"assignedPlans,omitempty"`
+ // BusinessPhones undocumented
+ BusinessPhones []string `json:"businessPhones,omitempty"`
+ // City undocumented
+ City *string `json:"city,omitempty"`
+ // Country undocumented
+ Country *string `json:"country,omitempty"`
+ // CountryLetterCode undocumented
+ CountryLetterCode *string `json:"countryLetterCode,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsMultipleDataLocationsForServicesEnabled undocumented
+ IsMultipleDataLocationsForServicesEnabled *bool `json:"isMultipleDataLocationsForServicesEnabled,omitempty"`
+ // MarketingNotificationEmails undocumented
+ MarketingNotificationEmails []string `json:"marketingNotificationEmails,omitempty"`
+ // OnPremisesLastSyncDateTime undocumented
+ OnPremisesLastSyncDateTime *time.Time `json:"onPremisesLastSyncDateTime,omitempty"`
+ // OnPremisesSyncEnabled undocumented
+ OnPremisesSyncEnabled *bool `json:"onPremisesSyncEnabled,omitempty"`
+ // PostalCode undocumented
+ PostalCode *string `json:"postalCode,omitempty"`
+ // PreferredLanguage undocumented
+ PreferredLanguage *string `json:"preferredLanguage,omitempty"`
+ // PrivacyProfile undocumented
+ PrivacyProfile *PrivacyProfile `json:"privacyProfile,omitempty"`
+ // ProvisionedPlans undocumented
+ ProvisionedPlans []ProvisionedPlan `json:"provisionedPlans,omitempty"`
+ // SecurityComplianceNotificationMails undocumented
+ SecurityComplianceNotificationMails []string `json:"securityComplianceNotificationMails,omitempty"`
+ // SecurityComplianceNotificationPhones undocumented
+ SecurityComplianceNotificationPhones []string `json:"securityComplianceNotificationPhones,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // Street undocumented
+ Street *string `json:"street,omitempty"`
+ // TechnicalNotificationMails undocumented
+ TechnicalNotificationMails []string `json:"technicalNotificationMails,omitempty"`
+ // VerifiedDomains undocumented
+ VerifiedDomains []VerifiedDomain `json:"verifiedDomains,omitempty"`
+ // MobileDeviceManagementAuthority Mobile device management authority.
+ MobileDeviceManagementAuthority *MdmAuthority `json:"mobileDeviceManagementAuthority,omitempty"`
+ // CertificateConnectorSetting Certificate connector setting.
+ CertificateConnectorSetting *CertificateConnectorSetting `json:"certificateConnectorSetting,omitempty"`
+ // Brandings undocumented
+ Brandings []OrganizationalBranding `json:"brandings,omitempty"`
+ // CertificateBasedAuthConfiguration undocumented
+ CertificateBasedAuthConfiguration []CertificateBasedAuthConfiguration `json:"certificateBasedAuthConfiguration,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OrganizationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OrganizationRequest.go
new file mode 100644
index 00000000..d342e5b5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OrganizationRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OrganizationRequestBuilder is request builder for Organization
+type OrganizationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OrganizationRequest
+func (b *OrganizationRequestBuilder) Request() *OrganizationRequest {
+ return &OrganizationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OrganizationRequest is request for Organization
+type OrganizationRequest struct{ BaseRequest }
+
+// Get performs GET request for Organization
+func (r *OrganizationRequest) Get(ctx context.Context) (resObj *Organization, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Organization
+func (r *OrganizationRequest) Update(ctx context.Context, reqObj *Organization) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Organization
+func (r *OrganizationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Brandings returns request builder for OrganizationalBranding collection
+func (b *OrganizationRequestBuilder) Brandings() *OrganizationBrandingsCollectionRequestBuilder {
+ bb := &OrganizationBrandingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/brandings"
+ return bb
+}
+
+// OrganizationBrandingsCollectionRequestBuilder is request builder for OrganizationalBranding collection
+type OrganizationBrandingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OrganizationalBranding collection
+func (b *OrganizationBrandingsCollectionRequestBuilder) Request() *OrganizationBrandingsCollectionRequest {
+ return &OrganizationBrandingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OrganizationalBranding item
+func (b *OrganizationBrandingsCollectionRequestBuilder) ID(id string) *OrganizationalBrandingRequestBuilder {
+ bb := &OrganizationalBrandingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OrganizationBrandingsCollectionRequest is request for OrganizationalBranding collection
+type OrganizationBrandingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OrganizationalBranding collection
+func (r *OrganizationBrandingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OrganizationalBranding, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OrganizationalBranding
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OrganizationalBranding
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OrganizationalBranding collection
+func (r *OrganizationBrandingsCollectionRequest) Get(ctx context.Context) ([]OrganizationalBranding, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OrganizationalBranding collection
+func (r *OrganizationBrandingsCollectionRequest) Add(ctx context.Context, reqObj *OrganizationalBranding) (resObj *OrganizationalBranding, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CertificateBasedAuthConfiguration returns request builder for CertificateBasedAuthConfiguration collection
+func (b *OrganizationRequestBuilder) CertificateBasedAuthConfiguration() *OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder {
+ bb := &OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/certificateBasedAuthConfiguration"
+ return bb
+}
+
+// OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder is request builder for CertificateBasedAuthConfiguration collection
+type OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CertificateBasedAuthConfiguration collection
+func (b *OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder) Request() *OrganizationCertificateBasedAuthConfigurationCollectionRequest {
+ return &OrganizationCertificateBasedAuthConfigurationCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CertificateBasedAuthConfiguration item
+func (b *OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder) ID(id string) *CertificateBasedAuthConfigurationRequestBuilder {
+ bb := &CertificateBasedAuthConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OrganizationCertificateBasedAuthConfigurationCollectionRequest is request for CertificateBasedAuthConfiguration collection
+type OrganizationCertificateBasedAuthConfigurationCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CertificateBasedAuthConfiguration collection
+func (r *OrganizationCertificateBasedAuthConfigurationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]CertificateBasedAuthConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CertificateBasedAuthConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CertificateBasedAuthConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CertificateBasedAuthConfiguration collection
+func (r *OrganizationCertificateBasedAuthConfigurationCollectionRequest) Get(ctx context.Context) ([]CertificateBasedAuthConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for CertificateBasedAuthConfiguration collection
+func (r *OrganizationCertificateBasedAuthConfigurationCollectionRequest) Add(ctx context.Context, reqObj *CertificateBasedAuthConfiguration) (resObj *CertificateBasedAuthConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Extensions returns request builder for Extension collection
+func (b *OrganizationRequestBuilder) Extensions() *OrganizationExtensionsCollectionRequestBuilder {
+ bb := &OrganizationExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// OrganizationExtensionsCollectionRequestBuilder is request builder for Extension collection
+type OrganizationExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *OrganizationExtensionsCollectionRequestBuilder) Request() *OrganizationExtensionsCollectionRequest {
+ return &OrganizationExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *OrganizationExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OrganizationExtensionsCollectionRequest is request for Extension collection
+type OrganizationExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *OrganizationExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *OrganizationExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Extension collection
+func (r *OrganizationExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OrganizationalBrandingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OrganizationalBrandingModel.go
new file mode 100644
index 00000000..3e2465c4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OrganizationalBrandingModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OrganizationalBranding undocumented
+type OrganizationalBranding struct {
+ // Entity is the base model of OrganizationalBranding
+ Entity
+ // BackgroundColor undocumented
+ BackgroundColor *string `json:"backgroundColor,omitempty"`
+ // BackgroundImage undocumented
+ BackgroundImage *Stream `json:"backgroundImage,omitempty"`
+ // BannerLogo undocumented
+ BannerLogo *Stream `json:"bannerLogo,omitempty"`
+ // Locale undocumented
+ Locale *string `json:"locale,omitempty"`
+ // SignInPageText undocumented
+ SignInPageText *string `json:"signInPageText,omitempty"`
+ // SquareLogo undocumented
+ SquareLogo *Stream `json:"squareLogo,omitempty"`
+ // UsernameHintText undocumented
+ UsernameHintText *string `json:"usernameHintText,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OrganizationalBrandingRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OrganizationalBrandingRequest.go
new file mode 100644
index 00000000..640fc926
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OrganizationalBrandingRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OrganizationalBrandingRequestBuilder is request builder for OrganizationalBranding
+type OrganizationalBrandingRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OrganizationalBrandingRequest
+func (b *OrganizationalBrandingRequestBuilder) Request() *OrganizationalBrandingRequest {
+ return &OrganizationalBrandingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OrganizationalBrandingRequest is request for OrganizationalBranding
+type OrganizationalBrandingRequest struct{ BaseRequest }
+
+// Get performs GET request for OrganizationalBranding
+func (r *OrganizationalBrandingRequest) Get(ctx context.Context) (resObj *OrganizationalBranding, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OrganizationalBranding
+func (r *OrganizationalBrandingRequest) Update(ctx context.Context, reqObj *OrganizationalBranding) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OrganizationalBranding
+func (r *OrganizationalBrandingRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OrganizerMeetingInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OrganizerMeetingInfoModel.go
new file mode 100644
index 00000000..5d375fc8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OrganizerMeetingInfoModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OrganizerMeetingInfo undocumented
+type OrganizerMeetingInfo struct {
+ // MeetingInfo is the base model of OrganizerMeetingInfo
+ MeetingInfo
+ // Organizer undocumented
+ Organizer *IdentitySet `json:"organizer,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OsVersionCountModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OsVersionCountModel.go
new file mode 100644
index 00000000..ddf69c89
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OsVersionCountModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OsVersionCount undocumented
+type OsVersionCount struct {
+ // Object is the base model of OsVersionCount
+ Object
+ // OsVersion OS version
+ OsVersion *string `json:"osVersion,omitempty"`
+ // DeviceCount Count of devices with malware for the OS version
+ DeviceCount *int `json:"deviceCount,omitempty"`
+ // LastUpdateDateTime The Timestamp of the last update for the device count in UTC
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OutOfBoxExperienceSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OutOfBoxExperienceSettingsModel.go
new file mode 100644
index 00000000..61d5785c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OutOfBoxExperienceSettingsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OutOfBoxExperienceSettings undocumented
+type OutOfBoxExperienceSettings struct {
+ // Object is the base model of OutOfBoxExperienceSettings
+ Object
+ // HidePrivacySettings Show or hide privacy settings to user
+ HidePrivacySettings *bool `json:"hidePrivacySettings,omitempty"`
+ // HideEULA Show or hide EULA to user
+ HideEULA *bool `json:"hideEULA,omitempty"`
+ // UserType Type of user
+ UserType *WindowsUserType `json:"userType,omitempty"`
+ // DeviceUsageType AAD join authentication type
+ DeviceUsageType *WindowsDeviceUsageType `json:"deviceUsageType,omitempty"`
+ // SkipKeyboardSelectionPage If set, then skip the keyboard selection page if Language and Region are set
+ SkipKeyboardSelectionPage *bool `json:"skipKeyboardSelectionPage,omitempty"`
+ // HideEscapeLink If set to true, then the user can't start over with different account, on company sign-in
+ HideEscapeLink *bool `json:"hideEscapeLink,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OutgoingCallOptionsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OutgoingCallOptionsModel.go
new file mode 100644
index 00000000..bda17fc7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OutgoingCallOptionsModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OutgoingCallOptions undocumented
+type OutgoingCallOptions struct {
+ // CallOptions is the base model of OutgoingCallOptions
+ CallOptions
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OutlookCategoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookCategoryModel.go
new file mode 100644
index 00000000..914b71bb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookCategoryModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OutlookCategory undocumented
+type OutlookCategory struct {
+ // Entity is the base model of OutlookCategory
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Color undocumented
+ Color *CategoryColor `json:"color,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OutlookCategoryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookCategoryRequest.go
new file mode 100644
index 00000000..a1686b7f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookCategoryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OutlookCategoryRequestBuilder is request builder for OutlookCategory
+type OutlookCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OutlookCategoryRequest
+func (b *OutlookCategoryRequestBuilder) Request() *OutlookCategoryRequest {
+ return &OutlookCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OutlookCategoryRequest is request for OutlookCategory
+type OutlookCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for OutlookCategory
+func (r *OutlookCategoryRequest) Get(ctx context.Context) (resObj *OutlookCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OutlookCategory
+func (r *OutlookCategoryRequest) Update(ctx context.Context, reqObj *OutlookCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OutlookCategory
+func (r *OutlookCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OutlookGeoCoordinatesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookGeoCoordinatesModel.go
new file mode 100644
index 00000000..c015db70
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookGeoCoordinatesModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OutlookGeoCoordinates undocumented
+type OutlookGeoCoordinates struct {
+ // Object is the base model of OutlookGeoCoordinates
+ Object
+ // Altitude undocumented
+ Altitude *float64 `json:"altitude,omitempty"`
+ // Latitude undocumented
+ Latitude *float64 `json:"latitude,omitempty"`
+ // Longitude undocumented
+ Longitude *float64 `json:"longitude,omitempty"`
+ // Accuracy undocumented
+ Accuracy *float64 `json:"accuracy,omitempty"`
+ // AltitudeAccuracy undocumented
+ AltitudeAccuracy *float64 `json:"altitudeAccuracy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OutlookItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookItemModel.go
new file mode 100644
index 00000000..121b9842
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookItemModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OutlookItem undocumented
+type OutlookItem struct {
+ // Entity is the base model of OutlookItem
+ Entity
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // ChangeKey undocumented
+ ChangeKey *string `json:"changeKey,omitempty"`
+ // Categories undocumented
+ Categories []string `json:"categories,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OutlookItemRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookItemRequest.go
new file mode 100644
index 00000000..0332d379
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookItemRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OutlookItemRequestBuilder is request builder for OutlookItem
+type OutlookItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OutlookItemRequest
+func (b *OutlookItemRequestBuilder) Request() *OutlookItemRequest {
+ return &OutlookItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OutlookItemRequest is request for OutlookItem
+type OutlookItemRequest struct{ BaseRequest }
+
+// Get performs GET request for OutlookItem
+func (r *OutlookItemRequest) Get(ctx context.Context) (resObj *OutlookItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OutlookItem
+func (r *OutlookItemRequest) Update(ctx context.Context, reqObj *OutlookItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OutlookItem
+func (r *OutlookItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskAction.go
new file mode 100644
index 00000000..f004a6a5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskAction.go
@@ -0,0 +1,98 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OutlookTaskCompleteRequestParameter undocumented
+type OutlookTaskCompleteRequestParameter struct {
+}
+
+//
+type OutlookTaskCompleteRequestBuilder struct{ BaseRequestBuilder }
+
+// Complete action undocumented
+func (b *OutlookTaskRequestBuilder) Complete(reqObj *OutlookTaskCompleteRequestParameter) *OutlookTaskCompleteRequestBuilder {
+ bb := &OutlookTaskCompleteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/complete"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type OutlookTaskCompleteRequest struct{ BaseRequest }
+
+//
+func (b *OutlookTaskCompleteRequestBuilder) Request() *OutlookTaskCompleteRequest {
+ return &OutlookTaskCompleteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *OutlookTaskCompleteRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]OutlookTask, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]OutlookTask
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]OutlookTask
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *OutlookTaskCompleteRequest) Get(ctx context.Context) ([][]OutlookTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskFolderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskFolderModel.go
new file mode 100644
index 00000000..c6188504
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskFolderModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OutlookTaskFolder undocumented
+type OutlookTaskFolder struct {
+ // Entity is the base model of OutlookTaskFolder
+ Entity
+ // ChangeKey undocumented
+ ChangeKey *string `json:"changeKey,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // IsDefaultFolder undocumented
+ IsDefaultFolder *bool `json:"isDefaultFolder,omitempty"`
+ // ParentGroupKey undocumented
+ ParentGroupKey *UUID `json:"parentGroupKey,omitempty"`
+ // Tasks undocumented
+ Tasks []OutlookTask `json:"tasks,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskFolderRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskFolderRequest.go
new file mode 100644
index 00000000..dc1151a6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskFolderRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OutlookTaskFolderRequestBuilder is request builder for OutlookTaskFolder
+type OutlookTaskFolderRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OutlookTaskFolderRequest
+func (b *OutlookTaskFolderRequestBuilder) Request() *OutlookTaskFolderRequest {
+ return &OutlookTaskFolderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OutlookTaskFolderRequest is request for OutlookTaskFolder
+type OutlookTaskFolderRequest struct{ BaseRequest }
+
+// Get performs GET request for OutlookTaskFolder
+func (r *OutlookTaskFolderRequest) Get(ctx context.Context) (resObj *OutlookTaskFolder, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OutlookTaskFolder
+func (r *OutlookTaskFolderRequest) Update(ctx context.Context, reqObj *OutlookTaskFolder) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OutlookTaskFolder
+func (r *OutlookTaskFolderRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *OutlookTaskFolderRequestBuilder) MultiValueExtendedProperties() *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest {
+ return &OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *OutlookTaskFolderRequestBuilder) SingleValueExtendedProperties() *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest {
+ return &OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Tasks returns request builder for OutlookTask collection
+func (b *OutlookTaskFolderRequestBuilder) Tasks() *OutlookTaskFolderTasksCollectionRequestBuilder {
+ bb := &OutlookTaskFolderTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tasks"
+ return bb
+}
+
+// OutlookTaskFolderTasksCollectionRequestBuilder is request builder for OutlookTask collection
+type OutlookTaskFolderTasksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OutlookTask collection
+func (b *OutlookTaskFolderTasksCollectionRequestBuilder) Request() *OutlookTaskFolderTasksCollectionRequest {
+ return &OutlookTaskFolderTasksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OutlookTask item
+func (b *OutlookTaskFolderTasksCollectionRequestBuilder) ID(id string) *OutlookTaskRequestBuilder {
+ bb := &OutlookTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookTaskFolderTasksCollectionRequest is request for OutlookTask collection
+type OutlookTaskFolderTasksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OutlookTask collection
+func (r *OutlookTaskFolderTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OutlookTask, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OutlookTask
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OutlookTask
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OutlookTask collection
+func (r *OutlookTaskFolderTasksCollectionRequest) Get(ctx context.Context) ([]OutlookTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OutlookTask collection
+func (r *OutlookTaskFolderTasksCollectionRequest) Add(ctx context.Context, reqObj *OutlookTask) (resObj *OutlookTask, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskGroupModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskGroupModel.go
new file mode 100644
index 00000000..c279ea99
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskGroupModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OutlookTaskGroup undocumented
+type OutlookTaskGroup struct {
+ // Entity is the base model of OutlookTaskGroup
+ Entity
+ // ChangeKey undocumented
+ ChangeKey *string `json:"changeKey,omitempty"`
+ // IsDefaultGroup undocumented
+ IsDefaultGroup *bool `json:"isDefaultGroup,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // GroupKey undocumented
+ GroupKey *UUID `json:"groupKey,omitempty"`
+ // TaskFolders undocumented
+ TaskFolders []OutlookTaskFolder `json:"taskFolders,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskGroupRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskGroupRequest.go
new file mode 100644
index 00000000..dcd0c17f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskGroupRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OutlookTaskGroupRequestBuilder is request builder for OutlookTaskGroup
+type OutlookTaskGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OutlookTaskGroupRequest
+func (b *OutlookTaskGroupRequestBuilder) Request() *OutlookTaskGroupRequest {
+ return &OutlookTaskGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OutlookTaskGroupRequest is request for OutlookTaskGroup
+type OutlookTaskGroupRequest struct{ BaseRequest }
+
+// Get performs GET request for OutlookTaskGroup
+func (r *OutlookTaskGroupRequest) Get(ctx context.Context) (resObj *OutlookTaskGroup, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OutlookTaskGroup
+func (r *OutlookTaskGroupRequest) Update(ctx context.Context, reqObj *OutlookTaskGroup) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OutlookTaskGroup
+func (r *OutlookTaskGroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TaskFolders returns request builder for OutlookTaskFolder collection
+func (b *OutlookTaskGroupRequestBuilder) TaskFolders() *OutlookTaskGroupTaskFoldersCollectionRequestBuilder {
+ bb := &OutlookTaskGroupTaskFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/taskFolders"
+ return bb
+}
+
+// OutlookTaskGroupTaskFoldersCollectionRequestBuilder is request builder for OutlookTaskFolder collection
+type OutlookTaskGroupTaskFoldersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OutlookTaskFolder collection
+func (b *OutlookTaskGroupTaskFoldersCollectionRequestBuilder) Request() *OutlookTaskGroupTaskFoldersCollectionRequest {
+ return &OutlookTaskGroupTaskFoldersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OutlookTaskFolder item
+func (b *OutlookTaskGroupTaskFoldersCollectionRequestBuilder) ID(id string) *OutlookTaskFolderRequestBuilder {
+ bb := &OutlookTaskFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookTaskGroupTaskFoldersCollectionRequest is request for OutlookTaskFolder collection
+type OutlookTaskGroupTaskFoldersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OutlookTaskFolder collection
+func (r *OutlookTaskGroupTaskFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OutlookTaskFolder, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OutlookTaskFolder
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OutlookTaskFolder
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OutlookTaskFolder collection
+func (r *OutlookTaskGroupTaskFoldersCollectionRequest) Get(ctx context.Context) ([]OutlookTaskFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OutlookTaskFolder collection
+func (r *OutlookTaskGroupTaskFoldersCollectionRequest) Add(ctx context.Context, reqObj *OutlookTaskFolder) (resObj *OutlookTaskFolder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskModel.go
new file mode 100644
index 00000000..c76ef6b4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskModel.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OutlookTask undocumented
+type OutlookTask struct {
+ // OutlookItem is the base model of OutlookTask
+ OutlookItem
+ // AssignedTo undocumented
+ AssignedTo *string `json:"assignedTo,omitempty"`
+ // Body undocumented
+ Body *ItemBody `json:"body,omitempty"`
+ // CompletedDateTime undocumented
+ CompletedDateTime *DateTimeTimeZone `json:"completedDateTime,omitempty"`
+ // DueDateTime undocumented
+ DueDateTime *DateTimeTimeZone `json:"dueDateTime,omitempty"`
+ // HasAttachments undocumented
+ HasAttachments *bool `json:"hasAttachments,omitempty"`
+ // Importance undocumented
+ Importance *Importance `json:"importance,omitempty"`
+ // IsReminderOn undocumented
+ IsReminderOn *bool `json:"isReminderOn,omitempty"`
+ // Owner undocumented
+ Owner *string `json:"owner,omitempty"`
+ // ParentFolderID undocumented
+ ParentFolderID *string `json:"parentFolderId,omitempty"`
+ // Recurrence undocumented
+ Recurrence *PatternedRecurrence `json:"recurrence,omitempty"`
+ // ReminderDateTime undocumented
+ ReminderDateTime *DateTimeTimeZone `json:"reminderDateTime,omitempty"`
+ // Sensitivity undocumented
+ Sensitivity *Sensitivity `json:"sensitivity,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *DateTimeTimeZone `json:"startDateTime,omitempty"`
+ // Status undocumented
+ Status *TaskStatus `json:"status,omitempty"`
+ // Subject undocumented
+ Subject *string `json:"subject,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+ // Attachments undocumented
+ Attachments []Attachment `json:"attachments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskRequest.go
new file mode 100644
index 00000000..f077cd6a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookTaskRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OutlookTaskRequestBuilder is request builder for OutlookTask
+type OutlookTaskRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OutlookTaskRequest
+func (b *OutlookTaskRequestBuilder) Request() *OutlookTaskRequest {
+ return &OutlookTaskRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OutlookTaskRequest is request for OutlookTask
+type OutlookTaskRequest struct{ BaseRequest }
+
+// Get performs GET request for OutlookTask
+func (r *OutlookTaskRequest) Get(ctx context.Context) (resObj *OutlookTask, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OutlookTask
+func (r *OutlookTaskRequest) Update(ctx context.Context, reqObj *OutlookTask) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OutlookTask
+func (r *OutlookTaskRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Attachments returns request builder for Attachment collection
+func (b *OutlookTaskRequestBuilder) Attachments() *OutlookTaskAttachmentsCollectionRequestBuilder {
+ bb := &OutlookTaskAttachmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/attachments"
+ return bb
+}
+
+// OutlookTaskAttachmentsCollectionRequestBuilder is request builder for Attachment collection
+type OutlookTaskAttachmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Attachment collection
+func (b *OutlookTaskAttachmentsCollectionRequestBuilder) Request() *OutlookTaskAttachmentsCollectionRequest {
+ return &OutlookTaskAttachmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Attachment item
+func (b *OutlookTaskAttachmentsCollectionRequestBuilder) ID(id string) *AttachmentRequestBuilder {
+ bb := &AttachmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookTaskAttachmentsCollectionRequest is request for Attachment collection
+type OutlookTaskAttachmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Attachment collection
+func (r *OutlookTaskAttachmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Attachment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Attachment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Attachment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Attachment collection
+func (r *OutlookTaskAttachmentsCollectionRequest) Get(ctx context.Context) ([]Attachment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Attachment collection
+func (r *OutlookTaskAttachmentsCollectionRequest) Add(ctx context.Context, reqObj *Attachment) (resObj *Attachment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *OutlookTaskRequestBuilder) MultiValueExtendedProperties() *OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *OutlookTaskMultiValueExtendedPropertiesCollectionRequest {
+ return &OutlookTaskMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookTaskMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type OutlookTaskMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *OutlookTaskMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *OutlookTaskMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *OutlookTaskMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *OutlookTaskRequestBuilder) SingleValueExtendedProperties() *OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *OutlookTaskSingleValueExtendedPropertiesCollectionRequest {
+ return &OutlookTaskSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookTaskSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type OutlookTaskSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *OutlookTaskSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *OutlookTaskSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *OutlookTaskSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OutlookUserModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookUserModel.go
new file mode 100644
index 00000000..eb6f6726
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookUserModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OutlookUser undocumented
+type OutlookUser struct {
+ // Entity is the base model of OutlookUser
+ Entity
+ // MasterCategories undocumented
+ MasterCategories []OutlookCategory `json:"masterCategories,omitempty"`
+ // TaskGroups undocumented
+ TaskGroups []OutlookTaskGroup `json:"taskGroups,omitempty"`
+ // TaskFolders undocumented
+ TaskFolders []OutlookTaskFolder `json:"taskFolders,omitempty"`
+ // Tasks undocumented
+ Tasks []OutlookTask `json:"tasks,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OutlookUserRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookUserRequest.go
new file mode 100644
index 00000000..44ee538f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OutlookUserRequest.go
@@ -0,0 +1,421 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OutlookUserRequestBuilder is request builder for OutlookUser
+type OutlookUserRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OutlookUserRequest
+func (b *OutlookUserRequestBuilder) Request() *OutlookUserRequest {
+ return &OutlookUserRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OutlookUserRequest is request for OutlookUser
+type OutlookUserRequest struct{ BaseRequest }
+
+// Get performs GET request for OutlookUser
+func (r *OutlookUserRequest) Get(ctx context.Context) (resObj *OutlookUser, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OutlookUser
+func (r *OutlookUserRequest) Update(ctx context.Context, reqObj *OutlookUser) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OutlookUser
+func (r *OutlookUserRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MasterCategories returns request builder for OutlookCategory collection
+func (b *OutlookUserRequestBuilder) MasterCategories() *OutlookUserMasterCategoriesCollectionRequestBuilder {
+ bb := &OutlookUserMasterCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/masterCategories"
+ return bb
+}
+
+// OutlookUserMasterCategoriesCollectionRequestBuilder is request builder for OutlookCategory collection
+type OutlookUserMasterCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OutlookCategory collection
+func (b *OutlookUserMasterCategoriesCollectionRequestBuilder) Request() *OutlookUserMasterCategoriesCollectionRequest {
+ return &OutlookUserMasterCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OutlookCategory item
+func (b *OutlookUserMasterCategoriesCollectionRequestBuilder) ID(id string) *OutlookCategoryRequestBuilder {
+ bb := &OutlookCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookUserMasterCategoriesCollectionRequest is request for OutlookCategory collection
+type OutlookUserMasterCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OutlookCategory collection
+func (r *OutlookUserMasterCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OutlookCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OutlookCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OutlookCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OutlookCategory collection
+func (r *OutlookUserMasterCategoriesCollectionRequest) Get(ctx context.Context) ([]OutlookCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OutlookCategory collection
+func (r *OutlookUserMasterCategoriesCollectionRequest) Add(ctx context.Context, reqObj *OutlookCategory) (resObj *OutlookCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TaskFolders returns request builder for OutlookTaskFolder collection
+func (b *OutlookUserRequestBuilder) TaskFolders() *OutlookUserTaskFoldersCollectionRequestBuilder {
+ bb := &OutlookUserTaskFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/taskFolders"
+ return bb
+}
+
+// OutlookUserTaskFoldersCollectionRequestBuilder is request builder for OutlookTaskFolder collection
+type OutlookUserTaskFoldersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OutlookTaskFolder collection
+func (b *OutlookUserTaskFoldersCollectionRequestBuilder) Request() *OutlookUserTaskFoldersCollectionRequest {
+ return &OutlookUserTaskFoldersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OutlookTaskFolder item
+func (b *OutlookUserTaskFoldersCollectionRequestBuilder) ID(id string) *OutlookTaskFolderRequestBuilder {
+ bb := &OutlookTaskFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookUserTaskFoldersCollectionRequest is request for OutlookTaskFolder collection
+type OutlookUserTaskFoldersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OutlookTaskFolder collection
+func (r *OutlookUserTaskFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OutlookTaskFolder, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OutlookTaskFolder
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OutlookTaskFolder
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OutlookTaskFolder collection
+func (r *OutlookUserTaskFoldersCollectionRequest) Get(ctx context.Context) ([]OutlookTaskFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OutlookTaskFolder collection
+func (r *OutlookUserTaskFoldersCollectionRequest) Add(ctx context.Context, reqObj *OutlookTaskFolder) (resObj *OutlookTaskFolder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TaskGroups returns request builder for OutlookTaskGroup collection
+func (b *OutlookUserRequestBuilder) TaskGroups() *OutlookUserTaskGroupsCollectionRequestBuilder {
+ bb := &OutlookUserTaskGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/taskGroups"
+ return bb
+}
+
+// OutlookUserTaskGroupsCollectionRequestBuilder is request builder for OutlookTaskGroup collection
+type OutlookUserTaskGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OutlookTaskGroup collection
+func (b *OutlookUserTaskGroupsCollectionRequestBuilder) Request() *OutlookUserTaskGroupsCollectionRequest {
+ return &OutlookUserTaskGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OutlookTaskGroup item
+func (b *OutlookUserTaskGroupsCollectionRequestBuilder) ID(id string) *OutlookTaskGroupRequestBuilder {
+ bb := &OutlookTaskGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookUserTaskGroupsCollectionRequest is request for OutlookTaskGroup collection
+type OutlookUserTaskGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OutlookTaskGroup collection
+func (r *OutlookUserTaskGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OutlookTaskGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OutlookTaskGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OutlookTaskGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OutlookTaskGroup collection
+func (r *OutlookUserTaskGroupsCollectionRequest) Get(ctx context.Context) ([]OutlookTaskGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OutlookTaskGroup collection
+func (r *OutlookUserTaskGroupsCollectionRequest) Add(ctx context.Context, reqObj *OutlookTaskGroup) (resObj *OutlookTaskGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Tasks returns request builder for OutlookTask collection
+func (b *OutlookUserRequestBuilder) Tasks() *OutlookUserTasksCollectionRequestBuilder {
+ bb := &OutlookUserTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tasks"
+ return bb
+}
+
+// OutlookUserTasksCollectionRequestBuilder is request builder for OutlookTask collection
+type OutlookUserTasksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OutlookTask collection
+func (b *OutlookUserTasksCollectionRequestBuilder) Request() *OutlookUserTasksCollectionRequest {
+ return &OutlookUserTasksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OutlookTask item
+func (b *OutlookUserTasksCollectionRequestBuilder) ID(id string) *OutlookTaskRequestBuilder {
+ bb := &OutlookTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookUserTasksCollectionRequest is request for OutlookTask collection
+type OutlookUserTasksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OutlookTask collection
+func (r *OutlookUserTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OutlookTask, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OutlookTask
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OutlookTask
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OutlookTask collection
+func (r *OutlookUserTasksCollectionRequest) Get(ctx context.Context) ([]OutlookTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OutlookTask collection
+func (r *OutlookUserTasksCollectionRequest) Add(ctx context.Context, reqObj *OutlookTask) (resObj *OutlookTask, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OverrideOptionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/OverrideOptionEnum.go
new file mode 100644
index 00000000..8ad214d9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OverrideOptionEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OverrideOption undocumented
+type OverrideOption int
+
+const (
+ // OverrideOptionVNotAllowed undocumented
+ OverrideOptionVNotAllowed OverrideOption = 0
+ // OverrideOptionVAllowFalsePositiveOverride undocumented
+ OverrideOptionVAllowFalsePositiveOverride OverrideOption = 1
+ // OverrideOptionVAllowWithJustification undocumented
+ OverrideOptionVAllowWithJustification OverrideOption = 2
+ // OverrideOptionVAllowWithoutJustification undocumented
+ OverrideOptionVAllowWithoutJustification OverrideOption = 4
+)
+
+// OverrideOptionPNotAllowed returns a pointer to OverrideOptionVNotAllowed
+func OverrideOptionPNotAllowed() *OverrideOption {
+ v := OverrideOptionVNotAllowed
+ return &v
+}
+
+// OverrideOptionPAllowFalsePositiveOverride returns a pointer to OverrideOptionVAllowFalsePositiveOverride
+func OverrideOptionPAllowFalsePositiveOverride() *OverrideOption {
+ v := OverrideOptionVAllowFalsePositiveOverride
+ return &v
+}
+
+// OverrideOptionPAllowWithJustification returns a pointer to OverrideOptionVAllowWithJustification
+func OverrideOptionPAllowWithJustification() *OverrideOption {
+ v := OverrideOptionVAllowWithJustification
+ return &v
+}
+
+// OverrideOptionPAllowWithoutJustification returns a pointer to OverrideOptionVAllowWithoutJustification
+func OverrideOptionPAllowWithoutJustification() *OverrideOption {
+ v := OverrideOptionVAllowWithoutJustification
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/OwnerTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/OwnerTypeEnum.go
new file mode 100644
index 00000000..ddd7639c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/OwnerTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OwnerType undocumented
+type OwnerType int
+
+const (
+ // OwnerTypeVUnknown undocumented
+ OwnerTypeVUnknown OwnerType = 0
+ // OwnerTypeVCompany undocumented
+ OwnerTypeVCompany OwnerType = 1
+ // OwnerTypeVPersonal undocumented
+ OwnerTypeVPersonal OwnerType = 2
+)
+
+// OwnerTypePUnknown returns a pointer to OwnerTypeVUnknown
+func OwnerTypePUnknown() *OwnerType {
+ v := OwnerTypeVUnknown
+ return &v
+}
+
+// OwnerTypePCompany returns a pointer to OwnerTypeVCompany
+func OwnerTypePCompany() *OwnerType {
+ v := OwnerTypeVCompany
+ return &v
+}
+
+// OwnerTypePPersonal returns a pointer to OwnerTypeVPersonal
+func OwnerTypePPersonal() *OwnerType {
+ v := OwnerTypeVPersonal
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PackageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PackageModel.go
new file mode 100644
index 00000000..3b57e1c4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PackageModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Package undocumented
+type Package struct {
+ // Object is the base model of Package
+ Object
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PageLinksModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PageLinksModel.go
new file mode 100644
index 00000000..ad243183
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PageLinksModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PageLinks undocumented
+type PageLinks struct {
+ // Object is the base model of PageLinks
+ Object
+ // OneNoteClientURL undocumented
+ OneNoteClientURL *ExternalLink `json:"oneNoteClientUrl,omitempty"`
+ // OneNoteWebURL undocumented
+ OneNoteWebURL *ExternalLink `json:"oneNoteWebUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PageOrientationEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/PageOrientationEnum.go
new file mode 100644
index 00000000..b5a15aa0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PageOrientationEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PageOrientation undocumented
+type PageOrientation int
+
+const (
+ // PageOrientationVHorizontal undocumented
+ PageOrientationVHorizontal PageOrientation = 0
+ // PageOrientationVDiagonal undocumented
+ PageOrientationVDiagonal PageOrientation = 1
+)
+
+// PageOrientationPHorizontal returns a pointer to PageOrientationVHorizontal
+func PageOrientationPHorizontal() *PageOrientation {
+ v := PageOrientationVHorizontal
+ return &v
+}
+
+// PageOrientationPDiagonal returns a pointer to PageOrientationVDiagonal
+func PageOrientationPDiagonal() *PageOrientation {
+ v := PageOrientationVDiagonal
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ParentalControlSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ParentalControlSettingsModel.go
new file mode 100644
index 00000000..8fc0e60b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ParentalControlSettingsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ParentalControlSettings undocumented
+type ParentalControlSettings struct {
+ // Object is the base model of ParentalControlSettings
+ Object
+ // CountriesBlockedForMinors undocumented
+ CountriesBlockedForMinors []string `json:"countriesBlockedForMinors,omitempty"`
+ // LegalAgeGroupRule undocumented
+ LegalAgeGroupRule *string `json:"legalAgeGroupRule,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ParseExpressionResponseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ParseExpressionResponseModel.go
new file mode 100644
index 00000000..cad8b8b2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ParseExpressionResponseModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ParseExpressionResponse undocumented
+type ParseExpressionResponse struct {
+ // Object is the base model of ParseExpressionResponse
+ Object
+ // Error undocumented
+ Error *PublicError `json:"error,omitempty"`
+ // EvaluationSucceeded undocumented
+ EvaluationSucceeded *bool `json:"evaluationSucceeded,omitempty"`
+ // EvaluationResult undocumented
+ EvaluationResult []string `json:"evaluationResult,omitempty"`
+ // ParsedExpression undocumented
+ ParsedExpression *AttributeMappingSource `json:"parsedExpression,omitempty"`
+ // ParsingSucceeded undocumented
+ ParsingSucceeded *bool `json:"parsingSucceeded,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ParticipantAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ParticipantAction.go
new file mode 100644
index 00000000..95eae611
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ParticipantAction.go
@@ -0,0 +1,108 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ParticipantCollectionInviteRequestParameter undocumented
+type ParticipantCollectionInviteRequestParameter struct {
+ // Participants undocumented
+ Participants []InvitationParticipantInfo `json:"participants,omitempty"`
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// ParticipantCollectionMuteAllRequestParameter undocumented
+type ParticipantCollectionMuteAllRequestParameter struct {
+ // Participants undocumented
+ Participants []string `json:"participants,omitempty"`
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// ParticipantMuteRequestParameter undocumented
+type ParticipantMuteRequestParameter struct {
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+//
+type ParticipantCollectionInviteRequestBuilder struct{ BaseRequestBuilder }
+
+// Invite action undocumented
+func (b *CallParticipantsCollectionRequestBuilder) Invite(reqObj *ParticipantCollectionInviteRequestParameter) *ParticipantCollectionInviteRequestBuilder {
+ bb := &ParticipantCollectionInviteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/invite"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ParticipantCollectionInviteRequest struct{ BaseRequest }
+
+//
+func (b *ParticipantCollectionInviteRequestBuilder) Request() *ParticipantCollectionInviteRequest {
+ return &ParticipantCollectionInviteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ParticipantCollectionInviteRequest) Post(ctx context.Context) (resObj *InviteParticipantsOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type ParticipantCollectionMuteAllRequestBuilder struct{ BaseRequestBuilder }
+
+// MuteAll action undocumented
+func (b *CallParticipantsCollectionRequestBuilder) MuteAll(reqObj *ParticipantCollectionMuteAllRequestParameter) *ParticipantCollectionMuteAllRequestBuilder {
+ bb := &ParticipantCollectionMuteAllRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/muteAll"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ParticipantCollectionMuteAllRequest struct{ BaseRequest }
+
+//
+func (b *ParticipantCollectionMuteAllRequestBuilder) Request() *ParticipantCollectionMuteAllRequest {
+ return &ParticipantCollectionMuteAllRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ParticipantCollectionMuteAllRequest) Post(ctx context.Context) (resObj *MuteParticipantsOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type ParticipantMuteRequestBuilder struct{ BaseRequestBuilder }
+
+// Mute action undocumented
+func (b *ParticipantRequestBuilder) Mute(reqObj *ParticipantMuteRequestParameter) *ParticipantMuteRequestBuilder {
+ bb := &ParticipantMuteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/mute"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ParticipantMuteRequest struct{ BaseRequest }
+
+//
+func (b *ParticipantMuteRequestBuilder) Request() *ParticipantMuteRequest {
+ return &ParticipantMuteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ParticipantMuteRequest) Post(ctx context.Context) (resObj *MuteParticipantOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ParticipantInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ParticipantInfoModel.go
new file mode 100644
index 00000000..37648f4f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ParticipantInfoModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ParticipantInfo undocumented
+type ParticipantInfo struct {
+ // Object is the base model of ParticipantInfo
+ Object
+ // Identity undocumented
+ Identity *IdentitySet `json:"identity,omitempty"`
+ // EndpointType undocumented
+ EndpointType *EndpointType `json:"endpointType,omitempty"`
+ // Region undocumented
+ Region *string `json:"region,omitempty"`
+ // LanguageID undocumented
+ LanguageID *string `json:"languageId,omitempty"`
+ // CountryCode undocumented
+ CountryCode *string `json:"countryCode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ParticipantModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ParticipantModel.go
new file mode 100644
index 00000000..35bf6ca7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ParticipantModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Participant undocumented
+type Participant struct {
+ // Entity is the base model of Participant
+ Entity
+ // Info undocumented
+ Info *ParticipantInfo `json:"info,omitempty"`
+ // RecordingInfo undocumented
+ RecordingInfo *RecordingInfo `json:"recordingInfo,omitempty"`
+ // MediaStreams undocumented
+ MediaStreams []MediaStream `json:"mediaStreams,omitempty"`
+ // Metadata undocumented
+ Metadata *string `json:"metadata,omitempty"`
+ // IsMuted undocumented
+ IsMuted *bool `json:"isMuted,omitempty"`
+ // IsInLobby undocumented
+ IsInLobby *bool `json:"isInLobby,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ParticipantRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ParticipantRequest.go
new file mode 100644
index 00000000..79f47844
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ParticipantRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ParticipantRequestBuilder is request builder for Participant
+type ParticipantRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ParticipantRequest
+func (b *ParticipantRequestBuilder) Request() *ParticipantRequest {
+ return &ParticipantRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ParticipantRequest is request for Participant
+type ParticipantRequest struct{ BaseRequest }
+
+// Get performs GET request for Participant
+func (r *ParticipantRequest) Get(ctx context.Context) (resObj *Participant, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Participant
+func (r *ParticipantRequest) Update(ctx context.Context, reqObj *Participant) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Participant
+func (r *ParticipantRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PasswordCredentialModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PasswordCredentialModel.go
new file mode 100644
index 00000000..afc69f01
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PasswordCredentialModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PasswordCredential undocumented
+type PasswordCredential struct {
+ // Object is the base model of PasswordCredential
+ Object
+ // CustomKeyIdentifier undocumented
+ CustomKeyIdentifier *Binary `json:"customKeyIdentifier,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // KeyID undocumented
+ KeyID *UUID `json:"keyId,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // SecretText undocumented
+ SecretText *string `json:"secretText,omitempty"`
+ // Hint undocumented
+ Hint *string `json:"hint,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PasswordProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PasswordProfileModel.go
new file mode 100644
index 00000000..e585397f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PasswordProfileModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PasswordProfile undocumented
+type PasswordProfile struct {
+ // Object is the base model of PasswordProfile
+ Object
+ // Password undocumented
+ Password *string `json:"password,omitempty"`
+ // ForceChangePasswordNextSignIn undocumented
+ ForceChangePasswordNextSignIn *bool `json:"forceChangePasswordNextSignIn,omitempty"`
+ // ForceChangePasswordNextSignInWithMFA undocumented
+ ForceChangePasswordNextSignInWithMFA *bool `json:"forceChangePasswordNextSignInWithMfa,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PasswordSingleSignOnCredentialSetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PasswordSingleSignOnCredentialSetModel.go
new file mode 100644
index 00000000..42f52d95
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PasswordSingleSignOnCredentialSetModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PasswordSingleSignOnCredentialSet undocumented
+type PasswordSingleSignOnCredentialSet struct {
+ // Object is the base model of PasswordSingleSignOnCredentialSet
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Credentials undocumented
+ Credentials []Credential `json:"credentials,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PatternedRecurrenceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PatternedRecurrenceModel.go
new file mode 100644
index 00000000..796403ed
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PatternedRecurrenceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PatternedRecurrence undocumented
+type PatternedRecurrence struct {
+ // Object is the base model of PatternedRecurrence
+ Object
+ // Pattern undocumented
+ Pattern *RecurrencePattern `json:"pattern,omitempty"`
+ // Range undocumented
+ Range *RecurrenceRange `json:"range,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PayloadRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PayloadRequestObjectModel.go
new file mode 100644
index 00000000..b6720106
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PayloadRequestObjectModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PayloadRequestObject undocumented
+type PayloadRequestObject struct {
+ // Object is the base model of PayloadRequestObject
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PayloadResponseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PayloadResponseModel.go
new file mode 100644
index 00000000..95115624
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PayloadResponseModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PayloadResponse undocumented
+type PayloadResponse struct {
+ // Entity is the base model of PayloadResponse
+ Entity
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PayloadResponseRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PayloadResponseRequest.go
new file mode 100644
index 00000000..e31fbddd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PayloadResponseRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PayloadResponseRequestBuilder is request builder for PayloadResponse
+type PayloadResponseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PayloadResponseRequest
+func (b *PayloadResponseRequestBuilder) Request() *PayloadResponseRequest {
+ return &PayloadResponseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PayloadResponseRequest is request for PayloadResponse
+type PayloadResponseRequest struct{ BaseRequest }
+
+// Get performs GET request for PayloadResponse
+func (r *PayloadResponseRequest) Get(ctx context.Context) (resObj *PayloadResponse, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PayloadResponse
+func (r *PayloadResponseRequest) Update(ctx context.Context, reqObj *PayloadResponse) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PayloadResponse
+func (r *PayloadResponseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PayloadTypesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PayloadTypesModel.go
new file mode 100644
index 00000000..9ed23d9b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PayloadTypesModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PayloadTypes undocumented
+type PayloadTypes struct {
+ // Object is the base model of PayloadTypes
+ Object
+ // RawContent undocumented
+ RawContent *string `json:"rawContent,omitempty"`
+ // VisualContent undocumented
+ VisualContent *VisualProperties `json:"visualContent,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PaymentMethodModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PaymentMethodModel.go
new file mode 100644
index 00000000..b6f587e0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PaymentMethodModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PaymentMethod undocumented
+type PaymentMethod struct {
+ // Entity is the base model of PaymentMethod
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PaymentMethodRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PaymentMethodRequest.go
new file mode 100644
index 00000000..f2a3c658
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PaymentMethodRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PaymentMethodRequestBuilder is request builder for PaymentMethod
+type PaymentMethodRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PaymentMethodRequest
+func (b *PaymentMethodRequestBuilder) Request() *PaymentMethodRequest {
+ return &PaymentMethodRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PaymentMethodRequest is request for PaymentMethod
+type PaymentMethodRequest struct{ BaseRequest }
+
+// Get performs GET request for PaymentMethod
+func (r *PaymentMethodRequest) Get(ctx context.Context) (resObj *PaymentMethod, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PaymentMethod
+func (r *PaymentMethodRequest) Update(ctx context.Context, reqObj *PaymentMethod) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PaymentMethod
+func (r *PaymentMethodRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PaymentTermModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PaymentTermModel.go
new file mode 100644
index 00000000..d3fd3af6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PaymentTermModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PaymentTerm undocumented
+type PaymentTerm struct {
+ // Entity is the base model of PaymentTerm
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // DueDateCalculation undocumented
+ DueDateCalculation *string `json:"dueDateCalculation,omitempty"`
+ // DiscountDateCalculation undocumented
+ DiscountDateCalculation *string `json:"discountDateCalculation,omitempty"`
+ // DiscountPercent undocumented
+ DiscountPercent *int `json:"discountPercent,omitempty"`
+ // CalculateDiscountOnCreditMemos undocumented
+ CalculateDiscountOnCreditMemos *bool `json:"calculateDiscountOnCreditMemos,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PaymentTermRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PaymentTermRequest.go
new file mode 100644
index 00000000..c3e8b4eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PaymentTermRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PaymentTermRequestBuilder is request builder for PaymentTerm
+type PaymentTermRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PaymentTermRequest
+func (b *PaymentTermRequestBuilder) Request() *PaymentTermRequest {
+ return &PaymentTermRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PaymentTermRequest is request for PaymentTerm
+type PaymentTermRequest struct{ BaseRequest }
+
+// Get performs GET request for PaymentTerm
+func (r *PaymentTermRequest) Get(ctx context.Context) (resObj *PaymentTerm, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PaymentTerm
+func (r *PaymentTermRequest) Update(ctx context.Context, reqObj *PaymentTerm) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PaymentTerm
+func (r *PaymentTermRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PendingContentUpdateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PendingContentUpdateModel.go
new file mode 100644
index 00000000..ee9f6f35
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PendingContentUpdateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PendingContentUpdate undocumented
+type PendingContentUpdate struct {
+ // Object is the base model of PendingContentUpdate
+ Object
+ // QueuedDateTime undocumented
+ QueuedDateTime *time.Time `json:"queuedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PendingOperationsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PendingOperationsModel.go
new file mode 100644
index 00000000..850315ee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PendingOperationsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PendingOperations undocumented
+type PendingOperations struct {
+ // Object is the base model of PendingOperations
+ Object
+ // PendingContentUpdate undocumented
+ PendingContentUpdate *PendingContentUpdate `json:"pendingContentUpdate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PermissionAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/PermissionAction.go
new file mode 100644
index 00000000..c65d4c6a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PermissionAction.go
@@ -0,0 +1,102 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PermissionGrantRequestParameter undocumented
+type PermissionGrantRequestParameter struct {
+ // Roles undocumented
+ Roles []string `json:"roles,omitempty"`
+ // Recipients undocumented
+ Recipients []DriveRecipient `json:"recipients,omitempty"`
+}
+
+//
+type PermissionGrantRequestBuilder struct{ BaseRequestBuilder }
+
+// Grant action undocumented
+func (b *PermissionRequestBuilder) Grant(reqObj *PermissionGrantRequestParameter) *PermissionGrantRequestBuilder {
+ bb := &PermissionGrantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/grant"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PermissionGrantRequest struct{ BaseRequest }
+
+//
+func (b *PermissionGrantRequestBuilder) Request() *PermissionGrantRequest {
+ return &PermissionGrantRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PermissionGrantRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]Permission, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]Permission
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]Permission
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *PermissionGrantRequest) Get(ctx context.Context) ([][]Permission, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PermissionClassificationTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/PermissionClassificationTypeEnum.go
new file mode 100644
index 00000000..bdcc8600
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PermissionClassificationTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PermissionClassificationType undocumented
+type PermissionClassificationType int
+
+const (
+ // PermissionClassificationTypeVLow undocumented
+ PermissionClassificationTypeVLow PermissionClassificationType = 1
+ // PermissionClassificationTypeVMedium undocumented
+ PermissionClassificationTypeVMedium PermissionClassificationType = 2
+ // PermissionClassificationTypeVHigh undocumented
+ PermissionClassificationTypeVHigh PermissionClassificationType = 3
+ // PermissionClassificationTypeVUnknownFutureValue undocumented
+ PermissionClassificationTypeVUnknownFutureValue PermissionClassificationType = 4
+)
+
+// PermissionClassificationTypePLow returns a pointer to PermissionClassificationTypeVLow
+func PermissionClassificationTypePLow() *PermissionClassificationType {
+ v := PermissionClassificationTypeVLow
+ return &v
+}
+
+// PermissionClassificationTypePMedium returns a pointer to PermissionClassificationTypeVMedium
+func PermissionClassificationTypePMedium() *PermissionClassificationType {
+ v := PermissionClassificationTypeVMedium
+ return &v
+}
+
+// PermissionClassificationTypePHigh returns a pointer to PermissionClassificationTypeVHigh
+func PermissionClassificationTypePHigh() *PermissionClassificationType {
+ v := PermissionClassificationTypeVHigh
+ return &v
+}
+
+// PermissionClassificationTypePUnknownFutureValue returns a pointer to PermissionClassificationTypeVUnknownFutureValue
+func PermissionClassificationTypePUnknownFutureValue() *PermissionClassificationType {
+ v := PermissionClassificationTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PermissionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PermissionModel.go
new file mode 100644
index 00000000..47b12ed6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PermissionModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Permission undocumented
+type Permission struct {
+ // Entity is the base model of Permission
+ Entity
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // GrantedTo undocumented
+ GrantedTo *IdentitySet `json:"grantedTo,omitempty"`
+ // GrantedToIdentities undocumented
+ GrantedToIdentities []IdentitySet `json:"grantedToIdentities,omitempty"`
+ // HasPassword undocumented
+ HasPassword *bool `json:"hasPassword,omitempty"`
+ // InheritedFrom undocumented
+ InheritedFrom *ItemReference `json:"inheritedFrom,omitempty"`
+ // Invitation undocumented
+ Invitation *SharingInvitation `json:"invitation,omitempty"`
+ // Link undocumented
+ Link *SharingLink `json:"link,omitempty"`
+ // Roles undocumented
+ Roles []string `json:"roles,omitempty"`
+ // ShareID undocumented
+ ShareID *string `json:"shareId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PermissionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PermissionRequest.go
new file mode 100644
index 00000000..38cba0fc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PermissionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PermissionRequestBuilder is request builder for Permission
+type PermissionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PermissionRequest
+func (b *PermissionRequestBuilder) Request() *PermissionRequest {
+ return &PermissionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PermissionRequest is request for Permission
+type PermissionRequest struct{ BaseRequest }
+
+// Get performs GET request for Permission
+func (r *PermissionRequest) Get(ctx context.Context) (resObj *Permission, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Permission
+func (r *PermissionRequest) Update(ctx context.Context, reqObj *Permission) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Permission
+func (r *PermissionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PermissionScopeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PermissionScopeModel.go
new file mode 100644
index 00000000..6d7eb2af
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PermissionScopeModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PermissionScope undocumented
+type PermissionScope struct {
+ // Object is the base model of PermissionScope
+ Object
+ // AdminConsentDescription undocumented
+ AdminConsentDescription *string `json:"adminConsentDescription,omitempty"`
+ // AdminConsentDisplayName undocumented
+ AdminConsentDisplayName *string `json:"adminConsentDisplayName,omitempty"`
+ // ID undocumented
+ ID *UUID `json:"id,omitempty"`
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // Origin undocumented
+ Origin *string `json:"origin,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // UserConsentDescription undocumented
+ UserConsentDescription *string `json:"userConsentDescription,omitempty"`
+ // UserConsentDisplayName undocumented
+ UserConsentDisplayName *string `json:"userConsentDisplayName,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PersistentBrowserSessionControlModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PersistentBrowserSessionControlModel.go
new file mode 100644
index 00000000..47ad1b7c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PersistentBrowserSessionControlModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PersistentBrowserSessionControl undocumented
+type PersistentBrowserSessionControl struct {
+ // ConditionalAccessSessionControl is the base model of PersistentBrowserSessionControl
+ ConditionalAccessSessionControl
+ // Mode undocumented
+ Mode *PersistentBrowserSessionMode `json:"mode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PersistentBrowserSessionModeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/PersistentBrowserSessionModeEnum.go
new file mode 100644
index 00000000..a05f1613
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PersistentBrowserSessionModeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PersistentBrowserSessionMode undocumented
+type PersistentBrowserSessionMode int
+
+const (
+ // PersistentBrowserSessionModeVAlways undocumented
+ PersistentBrowserSessionModeVAlways PersistentBrowserSessionMode = 0
+ // PersistentBrowserSessionModeVNever undocumented
+ PersistentBrowserSessionModeVNever PersistentBrowserSessionMode = 1
+)
+
+// PersistentBrowserSessionModePAlways returns a pointer to PersistentBrowserSessionModeVAlways
+func PersistentBrowserSessionModePAlways() *PersistentBrowserSessionMode {
+ v := PersistentBrowserSessionModeVAlways
+ return &v
+}
+
+// PersistentBrowserSessionModePNever returns a pointer to PersistentBrowserSessionModeVNever
+func PersistentBrowserSessionModePNever() *PersistentBrowserSessionMode {
+ v := PersistentBrowserSessionModeVNever
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PersonAnniversaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PersonAnniversaryModel.go
new file mode 100644
index 00000000..ff48dd8c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PersonAnniversaryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PersonAnniversary undocumented
+type PersonAnniversary struct {
+ // ItemFacet is the base model of PersonAnniversary
+ ItemFacet
+ // Type undocumented
+ Type *AnniversaryType `json:"type,omitempty"`
+ // Date undocumented
+ Date *time.Time `json:"date,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PersonAnniversaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PersonAnniversaryRequest.go
new file mode 100644
index 00000000..4595aa01
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PersonAnniversaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PersonAnniversaryRequestBuilder is request builder for PersonAnniversary
+type PersonAnniversaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PersonAnniversaryRequest
+func (b *PersonAnniversaryRequestBuilder) Request() *PersonAnniversaryRequest {
+ return &PersonAnniversaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PersonAnniversaryRequest is request for PersonAnniversary
+type PersonAnniversaryRequest struct{ BaseRequest }
+
+// Get performs GET request for PersonAnniversary
+func (r *PersonAnniversaryRequest) Get(ctx context.Context) (resObj *PersonAnniversary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PersonAnniversary
+func (r *PersonAnniversaryRequest) Update(ctx context.Context, reqObj *PersonAnniversary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PersonAnniversary
+func (r *PersonAnniversaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PersonDataSourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PersonDataSourceModel.go
new file mode 100644
index 00000000..1a8a40c1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PersonDataSourceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PersonDataSource undocumented
+type PersonDataSource struct {
+ // Object is the base model of PersonDataSource
+ Object
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PersonInterestModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PersonInterestModel.go
new file mode 100644
index 00000000..1f7c2ca9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PersonInterestModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PersonInterest undocumented
+type PersonInterest struct {
+ // ItemFacet is the base model of PersonInterest
+ ItemFacet
+ // Categories undocumented
+ Categories []string `json:"categories,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PersonInterestRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PersonInterestRequest.go
new file mode 100644
index 00000000..38b68cf5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PersonInterestRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PersonInterestRequestBuilder is request builder for PersonInterest
+type PersonInterestRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PersonInterestRequest
+func (b *PersonInterestRequestBuilder) Request() *PersonInterestRequest {
+ return &PersonInterestRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PersonInterestRequest is request for PersonInterest
+type PersonInterestRequest struct{ BaseRequest }
+
+// Get performs GET request for PersonInterest
+func (r *PersonInterestRequest) Get(ctx context.Context) (resObj *PersonInterest, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PersonInterest
+func (r *PersonInterestRequest) Update(ctx context.Context, reqObj *PersonInterest) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PersonInterest
+func (r *PersonInterestRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PersonModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PersonModel.go
new file mode 100644
index 00000000..9ecbc81f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PersonModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Person undocumented
+type Person struct {
+ // Entity is the base model of Person
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // GivenName undocumented
+ GivenName *string `json:"givenName,omitempty"`
+ // Surname undocumented
+ Surname *string `json:"surname,omitempty"`
+ // Birthday undocumented
+ Birthday *string `json:"birthday,omitempty"`
+ // PersonNotes undocumented
+ PersonNotes *string `json:"personNotes,omitempty"`
+ // IsFavorite undocumented
+ IsFavorite *bool `json:"isFavorite,omitempty"`
+ // EmailAddresses undocumented
+ EmailAddresses []RankedEmailAddress `json:"emailAddresses,omitempty"`
+ // Phones undocumented
+ Phones []Phone `json:"phones,omitempty"`
+ // PostalAddresses undocumented
+ PostalAddresses []Location `json:"postalAddresses,omitempty"`
+ // Websites undocumented
+ Websites []Website `json:"websites,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // CompanyName undocumented
+ CompanyName *string `json:"companyName,omitempty"`
+ // YomiCompany undocumented
+ YomiCompany *string `json:"yomiCompany,omitempty"`
+ // Department undocumented
+ Department *string `json:"department,omitempty"`
+ // OfficeLocation undocumented
+ OfficeLocation *string `json:"officeLocation,omitempty"`
+ // Profession undocumented
+ Profession *string `json:"profession,omitempty"`
+ // Sources undocumented
+ Sources []PersonDataSource `json:"sources,omitempty"`
+ // MailboxType undocumented
+ MailboxType *string `json:"mailboxType,omitempty"`
+ // PersonType undocumented
+ PersonType *string `json:"personType,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PersonNameModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PersonNameModel.go
new file mode 100644
index 00000000..7af3a9e2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PersonNameModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PersonName undocumented
+type PersonName struct {
+ // ItemFacet is the base model of PersonName
+ ItemFacet
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // First undocumented
+ First *string `json:"first,omitempty"`
+ // Initials undocumented
+ Initials *string `json:"initials,omitempty"`
+ // Last undocumented
+ Last *string `json:"last,omitempty"`
+ // LanguageTag undocumented
+ LanguageTag *string `json:"languageTag,omitempty"`
+ // Maiden undocumented
+ Maiden *string `json:"maiden,omitempty"`
+ // Middle undocumented
+ Middle *string `json:"middle,omitempty"`
+ // Nickname undocumented
+ Nickname *string `json:"nickname,omitempty"`
+ // Suffix undocumented
+ Suffix *string `json:"suffix,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // Pronunciation undocumented
+ Pronunciation *YomiPersonName `json:"pronunciation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PersonNameRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PersonNameRequest.go
new file mode 100644
index 00000000..8300540f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PersonNameRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PersonNameRequestBuilder is request builder for PersonName
+type PersonNameRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PersonNameRequest
+func (b *PersonNameRequestBuilder) Request() *PersonNameRequest {
+ return &PersonNameRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PersonNameRequest is request for PersonName
+type PersonNameRequest struct{ BaseRequest }
+
+// Get performs GET request for PersonName
+func (r *PersonNameRequest) Get(ctx context.Context) (resObj *PersonName, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PersonName
+func (r *PersonNameRequest) Update(ctx context.Context, reqObj *PersonName) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PersonName
+func (r *PersonNameRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PersonOrGroupColumnModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PersonOrGroupColumnModel.go
new file mode 100644
index 00000000..44243448
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PersonOrGroupColumnModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PersonOrGroupColumn undocumented
+type PersonOrGroupColumn struct {
+ // Object is the base model of PersonOrGroupColumn
+ Object
+ // AllowMultipleSelection undocumented
+ AllowMultipleSelection *bool `json:"allowMultipleSelection,omitempty"`
+ // ChooseFromType undocumented
+ ChooseFromType *string `json:"chooseFromType,omitempty"`
+ // DisplayAs undocumented
+ DisplayAs *string `json:"displayAs,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PersonRelationshipEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/PersonRelationshipEnum.go
new file mode 100644
index 00000000..d3a2cbc7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PersonRelationshipEnum.go
@@ -0,0 +1,137 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PersonRelationship undocumented
+type PersonRelationship int
+
+const (
+ // PersonRelationshipVManager undocumented
+ PersonRelationshipVManager PersonRelationship = 0
+ // PersonRelationshipVColleague undocumented
+ PersonRelationshipVColleague PersonRelationship = 1
+ // PersonRelationshipVDirectReport undocumented
+ PersonRelationshipVDirectReport PersonRelationship = 2
+ // PersonRelationshipVDotLineReport undocumented
+ PersonRelationshipVDotLineReport PersonRelationship = 3
+ // PersonRelationshipVAssistant undocumented
+ PersonRelationshipVAssistant PersonRelationship = 4
+ // PersonRelationshipVDotLineManager undocumented
+ PersonRelationshipVDotLineManager PersonRelationship = 5
+ // PersonRelationshipVAlternateContact undocumented
+ PersonRelationshipVAlternateContact PersonRelationship = 6
+ // PersonRelationshipVFriend undocumented
+ PersonRelationshipVFriend PersonRelationship = 7
+ // PersonRelationshipVSpouse undocumented
+ PersonRelationshipVSpouse PersonRelationship = 8
+ // PersonRelationshipVSibling undocumented
+ PersonRelationshipVSibling PersonRelationship = 9
+ // PersonRelationshipVChild undocumented
+ PersonRelationshipVChild PersonRelationship = 10
+ // PersonRelationshipVParent undocumented
+ PersonRelationshipVParent PersonRelationship = 11
+ // PersonRelationshipVSponsor undocumented
+ PersonRelationshipVSponsor PersonRelationship = 12
+ // PersonRelationshipVEmergencyContact undocumented
+ PersonRelationshipVEmergencyContact PersonRelationship = 13
+ // PersonRelationshipVOther undocumented
+ PersonRelationshipVOther PersonRelationship = 14
+ // PersonRelationshipVUnknownFutureValue undocumented
+ PersonRelationshipVUnknownFutureValue PersonRelationship = 15
+)
+
+// PersonRelationshipPManager returns a pointer to PersonRelationshipVManager
+func PersonRelationshipPManager() *PersonRelationship {
+ v := PersonRelationshipVManager
+ return &v
+}
+
+// PersonRelationshipPColleague returns a pointer to PersonRelationshipVColleague
+func PersonRelationshipPColleague() *PersonRelationship {
+ v := PersonRelationshipVColleague
+ return &v
+}
+
+// PersonRelationshipPDirectReport returns a pointer to PersonRelationshipVDirectReport
+func PersonRelationshipPDirectReport() *PersonRelationship {
+ v := PersonRelationshipVDirectReport
+ return &v
+}
+
+// PersonRelationshipPDotLineReport returns a pointer to PersonRelationshipVDotLineReport
+func PersonRelationshipPDotLineReport() *PersonRelationship {
+ v := PersonRelationshipVDotLineReport
+ return &v
+}
+
+// PersonRelationshipPAssistant returns a pointer to PersonRelationshipVAssistant
+func PersonRelationshipPAssistant() *PersonRelationship {
+ v := PersonRelationshipVAssistant
+ return &v
+}
+
+// PersonRelationshipPDotLineManager returns a pointer to PersonRelationshipVDotLineManager
+func PersonRelationshipPDotLineManager() *PersonRelationship {
+ v := PersonRelationshipVDotLineManager
+ return &v
+}
+
+// PersonRelationshipPAlternateContact returns a pointer to PersonRelationshipVAlternateContact
+func PersonRelationshipPAlternateContact() *PersonRelationship {
+ v := PersonRelationshipVAlternateContact
+ return &v
+}
+
+// PersonRelationshipPFriend returns a pointer to PersonRelationshipVFriend
+func PersonRelationshipPFriend() *PersonRelationship {
+ v := PersonRelationshipVFriend
+ return &v
+}
+
+// PersonRelationshipPSpouse returns a pointer to PersonRelationshipVSpouse
+func PersonRelationshipPSpouse() *PersonRelationship {
+ v := PersonRelationshipVSpouse
+ return &v
+}
+
+// PersonRelationshipPSibling returns a pointer to PersonRelationshipVSibling
+func PersonRelationshipPSibling() *PersonRelationship {
+ v := PersonRelationshipVSibling
+ return &v
+}
+
+// PersonRelationshipPChild returns a pointer to PersonRelationshipVChild
+func PersonRelationshipPChild() *PersonRelationship {
+ v := PersonRelationshipVChild
+ return &v
+}
+
+// PersonRelationshipPParent returns a pointer to PersonRelationshipVParent
+func PersonRelationshipPParent() *PersonRelationship {
+ v := PersonRelationshipVParent
+ return &v
+}
+
+// PersonRelationshipPSponsor returns a pointer to PersonRelationshipVSponsor
+func PersonRelationshipPSponsor() *PersonRelationship {
+ v := PersonRelationshipVSponsor
+ return &v
+}
+
+// PersonRelationshipPEmergencyContact returns a pointer to PersonRelationshipVEmergencyContact
+func PersonRelationshipPEmergencyContact() *PersonRelationship {
+ v := PersonRelationshipVEmergencyContact
+ return &v
+}
+
+// PersonRelationshipPOther returns a pointer to PersonRelationshipVOther
+func PersonRelationshipPOther() *PersonRelationship {
+ v := PersonRelationshipVOther
+ return &v
+}
+
+// PersonRelationshipPUnknownFutureValue returns a pointer to PersonRelationshipVUnknownFutureValue
+func PersonRelationshipPUnknownFutureValue() *PersonRelationship {
+ v := PersonRelationshipVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PersonRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PersonRequest.go
new file mode 100644
index 00000000..3125ebc7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PersonRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PersonRequestBuilder is request builder for Person
+type PersonRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PersonRequest
+func (b *PersonRequestBuilder) Request() *PersonRequest {
+ return &PersonRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PersonRequest is request for Person
+type PersonRequest struct{ BaseRequest }
+
+// Get performs GET request for Person
+func (r *PersonRequest) Get(ctx context.Context) (resObj *Person, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Person
+func (r *PersonRequest) Update(ctx context.Context, reqObj *Person) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Person
+func (r *PersonRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PersonWebsiteModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PersonWebsiteModel.go
new file mode 100644
index 00000000..b4493640
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PersonWebsiteModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PersonWebsite undocumented
+type PersonWebsite struct {
+ // ItemFacet is the base model of PersonWebsite
+ ItemFacet
+ // Categories undocumented
+ Categories []string `json:"categories,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PersonWebsiteRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PersonWebsiteRequest.go
new file mode 100644
index 00000000..e081ad3e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PersonWebsiteRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PersonWebsiteRequestBuilder is request builder for PersonWebsite
+type PersonWebsiteRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PersonWebsiteRequest
+func (b *PersonWebsiteRequestBuilder) Request() *PersonWebsiteRequest {
+ return &PersonWebsiteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PersonWebsiteRequest is request for PersonWebsite
+type PersonWebsiteRequest struct{ BaseRequest }
+
+// Get performs GET request for PersonWebsite
+func (r *PersonWebsiteRequest) Get(ctx context.Context) (resObj *PersonWebsite, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PersonWebsite
+func (r *PersonWebsiteRequest) Update(ctx context.Context, reqObj *PersonWebsite) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PersonWebsite
+func (r *PersonWebsiteRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PhoneModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PhoneModel.go
new file mode 100644
index 00000000..eee02a65
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PhoneModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Phone undocumented
+type Phone struct {
+ // Object is the base model of Phone
+ Object
+ // Type undocumented
+ Type *PhoneType `json:"type,omitempty"`
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PhoneTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/PhoneTypeEnum.go
new file mode 100644
index 00000000..735dbf38
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PhoneTypeEnum.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PhoneType undocumented
+type PhoneType int
+
+const (
+ // PhoneTypeVHome undocumented
+ PhoneTypeVHome PhoneType = 0
+ // PhoneTypeVBusiness undocumented
+ PhoneTypeVBusiness PhoneType = 1
+ // PhoneTypeVMobile undocumented
+ PhoneTypeVMobile PhoneType = 2
+ // PhoneTypeVOther undocumented
+ PhoneTypeVOther PhoneType = 3
+ // PhoneTypeVAssistant undocumented
+ PhoneTypeVAssistant PhoneType = 4
+ // PhoneTypeVHomeFax undocumented
+ PhoneTypeVHomeFax PhoneType = 5
+ // PhoneTypeVBusinessFax undocumented
+ PhoneTypeVBusinessFax PhoneType = 6
+ // PhoneTypeVOtherFax undocumented
+ PhoneTypeVOtherFax PhoneType = 7
+ // PhoneTypeVPager undocumented
+ PhoneTypeVPager PhoneType = 8
+ // PhoneTypeVRadio undocumented
+ PhoneTypeVRadio PhoneType = 9
+)
+
+// PhoneTypePHome returns a pointer to PhoneTypeVHome
+func PhoneTypePHome() *PhoneType {
+ v := PhoneTypeVHome
+ return &v
+}
+
+// PhoneTypePBusiness returns a pointer to PhoneTypeVBusiness
+func PhoneTypePBusiness() *PhoneType {
+ v := PhoneTypeVBusiness
+ return &v
+}
+
+// PhoneTypePMobile returns a pointer to PhoneTypeVMobile
+func PhoneTypePMobile() *PhoneType {
+ v := PhoneTypeVMobile
+ return &v
+}
+
+// PhoneTypePOther returns a pointer to PhoneTypeVOther
+func PhoneTypePOther() *PhoneType {
+ v := PhoneTypeVOther
+ return &v
+}
+
+// PhoneTypePAssistant returns a pointer to PhoneTypeVAssistant
+func PhoneTypePAssistant() *PhoneType {
+ v := PhoneTypeVAssistant
+ return &v
+}
+
+// PhoneTypePHomeFax returns a pointer to PhoneTypeVHomeFax
+func PhoneTypePHomeFax() *PhoneType {
+ v := PhoneTypeVHomeFax
+ return &v
+}
+
+// PhoneTypePBusinessFax returns a pointer to PhoneTypeVBusinessFax
+func PhoneTypePBusinessFax() *PhoneType {
+ v := PhoneTypeVBusinessFax
+ return &v
+}
+
+// PhoneTypePOtherFax returns a pointer to PhoneTypeVOtherFax
+func PhoneTypePOtherFax() *PhoneType {
+ v := PhoneTypeVOtherFax
+ return &v
+}
+
+// PhoneTypePPager returns a pointer to PhoneTypeVPager
+func PhoneTypePPager() *PhoneType {
+ v := PhoneTypeVPager
+ return &v
+}
+
+// PhoneTypePRadio returns a pointer to PhoneTypeVRadio
+func PhoneTypePRadio() *PhoneType {
+ v := PhoneTypeVRadio
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PhotoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PhotoModel.go
new file mode 100644
index 00000000..3c9c6efe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PhotoModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Photo undocumented
+type Photo struct {
+ // Object is the base model of Photo
+ Object
+ // CameraMake undocumented
+ CameraMake *string `json:"cameraMake,omitempty"`
+ // CameraModel undocumented
+ CameraModel *string `json:"cameraModel,omitempty"`
+ // ExposureDenominator undocumented
+ ExposureDenominator *float64 `json:"exposureDenominator,omitempty"`
+ // ExposureNumerator undocumented
+ ExposureNumerator *float64 `json:"exposureNumerator,omitempty"`
+ // FNumber undocumented
+ FNumber *float64 `json:"fNumber,omitempty"`
+ // FocalLength undocumented
+ FocalLength *float64 `json:"focalLength,omitempty"`
+ // Iso undocumented
+ Iso *int `json:"iso,omitempty"`
+ // Orientation undocumented
+ Orientation *int `json:"orientation,omitempty"`
+ // TakenDateTime undocumented
+ TakenDateTime *time.Time `json:"takenDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PhysicalAddressModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PhysicalAddressModel.go
new file mode 100644
index 00000000..a19e5276
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PhysicalAddressModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PhysicalAddress undocumented
+type PhysicalAddress struct {
+ // Object is the base model of PhysicalAddress
+ Object
+ // Type undocumented
+ Type *PhysicalAddressType `json:"type,omitempty"`
+ // PostOfficeBox undocumented
+ PostOfficeBox *string `json:"postOfficeBox,omitempty"`
+ // Street undocumented
+ Street *string `json:"street,omitempty"`
+ // City undocumented
+ City *string `json:"city,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // CountryOrRegion undocumented
+ CountryOrRegion *string `json:"countryOrRegion,omitempty"`
+ // PostalCode undocumented
+ PostalCode *string `json:"postalCode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PhysicalAddressTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/PhysicalAddressTypeEnum.go
new file mode 100644
index 00000000..7da1b037
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PhysicalAddressTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PhysicalAddressType undocumented
+type PhysicalAddressType int
+
+const (
+ // PhysicalAddressTypeVUnknown undocumented
+ PhysicalAddressTypeVUnknown PhysicalAddressType = 0
+ // PhysicalAddressTypeVHome undocumented
+ PhysicalAddressTypeVHome PhysicalAddressType = 1
+ // PhysicalAddressTypeVBusiness undocumented
+ PhysicalAddressTypeVBusiness PhysicalAddressType = 2
+ // PhysicalAddressTypeVOther undocumented
+ PhysicalAddressTypeVOther PhysicalAddressType = 3
+)
+
+// PhysicalAddressTypePUnknown returns a pointer to PhysicalAddressTypeVUnknown
+func PhysicalAddressTypePUnknown() *PhysicalAddressType {
+ v := PhysicalAddressTypeVUnknown
+ return &v
+}
+
+// PhysicalAddressTypePHome returns a pointer to PhysicalAddressTypeVHome
+func PhysicalAddressTypePHome() *PhysicalAddressType {
+ v := PhysicalAddressTypeVHome
+ return &v
+}
+
+// PhysicalAddressTypePBusiness returns a pointer to PhysicalAddressTypeVBusiness
+func PhysicalAddressTypePBusiness() *PhysicalAddressType {
+ v := PhysicalAddressTypeVBusiness
+ return &v
+}
+
+// PhysicalAddressTypePOther returns a pointer to PhysicalAddressTypeVOther
+func PhysicalAddressTypePOther() *PhysicalAddressType {
+ v := PhysicalAddressTypeVOther
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PhysicalOfficeAddressModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PhysicalOfficeAddressModel.go
new file mode 100644
index 00000000..88f745da
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PhysicalOfficeAddressModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PhysicalOfficeAddress undocumented
+type PhysicalOfficeAddress struct {
+ // Object is the base model of PhysicalOfficeAddress
+ Object
+ // City undocumented
+ City *string `json:"city,omitempty"`
+ // CountryOrRegion undocumented
+ CountryOrRegion *string `json:"countryOrRegion,omitempty"`
+ // OfficeLocation undocumented
+ OfficeLocation *string `json:"officeLocation,omitempty"`
+ // PostalCode undocumented
+ PostalCode *string `json:"postalCode,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // Street undocumented
+ Street *string `json:"street,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PictureModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PictureModel.go
new file mode 100644
index 00000000..b8a534b0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PictureModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Picture undocumented
+type Picture struct {
+ // Entity is the base model of Picture
+ Entity
+ // Width undocumented
+ Width *int `json:"width,omitempty"`
+ // Height undocumented
+ Height *int `json:"height,omitempty"`
+ // ContentType undocumented
+ ContentType *string `json:"contentType,omitempty"`
+ // Content undocumented
+ Content *Stream `json:"content,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PictureRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PictureRequest.go
new file mode 100644
index 00000000..c26f120f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PictureRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PictureRequestBuilder is request builder for Picture
+type PictureRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PictureRequest
+func (b *PictureRequestBuilder) Request() *PictureRequest {
+ return &PictureRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PictureRequest is request for Picture
+type PictureRequest struct{ BaseRequest }
+
+// Get performs GET request for Picture
+func (r *PictureRequest) Get(ctx context.Context) (resObj *Picture, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Picture
+func (r *PictureRequest) Update(ctx context.Context, reqObj *Picture) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Picture
+func (r *PictureRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlaceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlaceModel.go
new file mode 100644
index 00000000..7bc69643
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlaceModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Place undocumented
+type Place struct {
+ // Entity is the base model of Place
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // GeoCoordinates undocumented
+ GeoCoordinates *OutlookGeoCoordinates `json:"geoCoordinates,omitempty"`
+ // Phone undocumented
+ Phone *string `json:"phone,omitempty"`
+ // Address undocumented
+ Address *PhysicalAddress `json:"address,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlaceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlaceRequest.go
new file mode 100644
index 00000000..b69def77
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlaceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PlaceRequestBuilder is request builder for Place
+type PlaceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlaceRequest
+func (b *PlaceRequestBuilder) Request() *PlaceRequest {
+ return &PlaceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlaceRequest is request for Place
+type PlaceRequest struct{ BaseRequest }
+
+// Get performs GET request for Place
+func (r *PlaceRequest) Get(ctx context.Context) (resObj *Place, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Place
+func (r *PlaceRequest) Update(ctx context.Context, reqObj *Place) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Place
+func (r *PlaceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlaceTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlaceTypeEnum.go
new file mode 100644
index 00000000..9ab1c196
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlaceTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlaceType undocumented
+type PlaceType int
+
+const (
+ // PlaceTypeVUnknown undocumented
+ PlaceTypeVUnknown PlaceType = 0
+ // PlaceTypeVRoom undocumented
+ PlaceTypeVRoom PlaceType = 1
+ // PlaceTypeVRoomList undocumented
+ PlaceTypeVRoomList PlaceType = 2
+ // PlaceTypeVPublicPlace undocumented
+ PlaceTypeVPublicPlace PlaceType = 3
+ // PlaceTypeVPersonalPlace undocumented
+ PlaceTypeVPersonalPlace PlaceType = 4
+)
+
+// PlaceTypePUnknown returns a pointer to PlaceTypeVUnknown
+func PlaceTypePUnknown() *PlaceType {
+ v := PlaceTypeVUnknown
+ return &v
+}
+
+// PlaceTypePRoom returns a pointer to PlaceTypeVRoom
+func PlaceTypePRoom() *PlaceType {
+ v := PlaceTypeVRoom
+ return &v
+}
+
+// PlaceTypePRoomList returns a pointer to PlaceTypeVRoomList
+func PlaceTypePRoomList() *PlaceType {
+ v := PlaceTypeVRoomList
+ return &v
+}
+
+// PlaceTypePPublicPlace returns a pointer to PlaceTypeVPublicPlace
+func PlaceTypePPublicPlace() *PlaceType {
+ v := PlaceTypeVPublicPlace
+ return &v
+}
+
+// PlaceTypePPersonalPlace returns a pointer to PlaceTypeVPersonalPlace
+func PlaceTypePPersonalPlace() *PlaceType {
+ v := PlaceTypeVPersonalPlace
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerAppliedCategoriesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerAppliedCategoriesModel.go
new file mode 100644
index 00000000..ce466bd8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerAppliedCategoriesModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerAppliedCategories undocumented
+type PlannerAppliedCategories struct {
+ // Object is the base model of PlannerAppliedCategories
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatModel.go
new file mode 100644
index 00000000..0d5e3c5f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerAssignedToTaskBoardTaskFormat undocumented
+type PlannerAssignedToTaskBoardTaskFormat struct {
+ // PlannerDelta is the base model of PlannerAssignedToTaskBoardTaskFormat
+ PlannerDelta
+ // UnassignedOrderHint undocumented
+ UnassignedOrderHint *string `json:"unassignedOrderHint,omitempty"`
+ // OrderHintsByAssignee undocumented
+ OrderHintsByAssignee *PlannerOrderHintsByAssignee `json:"orderHintsByAssignee,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatRequest.go
new file mode 100644
index 00000000..9b13b0cf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerAssignedToTaskBoardTaskFormatRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PlannerAssignedToTaskBoardTaskFormatRequestBuilder is request builder for PlannerAssignedToTaskBoardTaskFormat
+type PlannerAssignedToTaskBoardTaskFormatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerAssignedToTaskBoardTaskFormatRequest
+func (b *PlannerAssignedToTaskBoardTaskFormatRequestBuilder) Request() *PlannerAssignedToTaskBoardTaskFormatRequest {
+ return &PlannerAssignedToTaskBoardTaskFormatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerAssignedToTaskBoardTaskFormatRequest is request for PlannerAssignedToTaskBoardTaskFormat
+type PlannerAssignedToTaskBoardTaskFormatRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerAssignedToTaskBoardTaskFormat
+func (r *PlannerAssignedToTaskBoardTaskFormatRequest) Get(ctx context.Context) (resObj *PlannerAssignedToTaskBoardTaskFormat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerAssignedToTaskBoardTaskFormat
+func (r *PlannerAssignedToTaskBoardTaskFormatRequest) Update(ctx context.Context, reqObj *PlannerAssignedToTaskBoardTaskFormat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerAssignedToTaskBoardTaskFormat
+func (r *PlannerAssignedToTaskBoardTaskFormatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerAssignmentModel.go
new file mode 100644
index 00000000..bc991c39
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerAssignmentModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PlannerAssignment undocumented
+type PlannerAssignment struct {
+ // Object is the base model of PlannerAssignment
+ Object
+ // AssignedBy undocumented
+ AssignedBy *IdentitySet `json:"assignedBy,omitempty"`
+ // AssignedDateTime undocumented
+ AssignedDateTime *time.Time `json:"assignedDateTime,omitempty"`
+ // OrderHint undocumented
+ OrderHint *string `json:"orderHint,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerAssignmentsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerAssignmentsModel.go
new file mode 100644
index 00000000..a8d80044
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerAssignmentsModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerAssignments undocumented
+type PlannerAssignments struct {
+ // Object is the base model of PlannerAssignments
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerBucketModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerBucketModel.go
new file mode 100644
index 00000000..66e099cf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerBucketModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerBucket undocumented
+type PlannerBucket struct {
+ // PlannerDelta is the base model of PlannerBucket
+ PlannerDelta
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // PlanID undocumented
+ PlanID *string `json:"planId,omitempty"`
+ // OrderHint undocumented
+ OrderHint *string `json:"orderHint,omitempty"`
+ // Tasks undocumented
+ Tasks []PlannerTask `json:"tasks,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerBucketRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerBucketRequest.go
new file mode 100644
index 00000000..b922e4b7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerBucketRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PlannerBucketRequestBuilder is request builder for PlannerBucket
+type PlannerBucketRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerBucketRequest
+func (b *PlannerBucketRequestBuilder) Request() *PlannerBucketRequest {
+ return &PlannerBucketRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerBucketRequest is request for PlannerBucket
+type PlannerBucketRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerBucket
+func (r *PlannerBucketRequest) Get(ctx context.Context) (resObj *PlannerBucket, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerBucket
+func (r *PlannerBucketRequest) Update(ctx context.Context, reqObj *PlannerBucket) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerBucket
+func (r *PlannerBucketRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Tasks returns request builder for PlannerTask collection
+func (b *PlannerBucketRequestBuilder) Tasks() *PlannerBucketTasksCollectionRequestBuilder {
+ bb := &PlannerBucketTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tasks"
+ return bb
+}
+
+// PlannerBucketTasksCollectionRequestBuilder is request builder for PlannerTask collection
+type PlannerBucketTasksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerTask collection
+func (b *PlannerBucketTasksCollectionRequestBuilder) Request() *PlannerBucketTasksCollectionRequest {
+ return &PlannerBucketTasksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerTask item
+func (b *PlannerBucketTasksCollectionRequestBuilder) ID(id string) *PlannerTaskRequestBuilder {
+ bb := &PlannerTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerBucketTasksCollectionRequest is request for PlannerTask collection
+type PlannerBucketTasksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerTask collection
+func (r *PlannerBucketTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PlannerTask, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerTask
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerTask
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerTask collection
+func (r *PlannerBucketTasksCollectionRequest) Get(ctx context.Context) ([]PlannerTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PlannerTask collection
+func (r *PlannerBucketTasksCollectionRequest) Add(ctx context.Context, reqObj *PlannerTask) (resObj *PlannerTask, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatModel.go
new file mode 100644
index 00000000..6b4f46ff
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerBucketTaskBoardTaskFormat undocumented
+type PlannerBucketTaskBoardTaskFormat struct {
+ // PlannerDelta is the base model of PlannerBucketTaskBoardTaskFormat
+ PlannerDelta
+ // OrderHint undocumented
+ OrderHint *string `json:"orderHint,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatRequest.go
new file mode 100644
index 00000000..497a3433
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerBucketTaskBoardTaskFormatRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PlannerBucketTaskBoardTaskFormatRequestBuilder is request builder for PlannerBucketTaskBoardTaskFormat
+type PlannerBucketTaskBoardTaskFormatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerBucketTaskBoardTaskFormatRequest
+func (b *PlannerBucketTaskBoardTaskFormatRequestBuilder) Request() *PlannerBucketTaskBoardTaskFormatRequest {
+ return &PlannerBucketTaskBoardTaskFormatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerBucketTaskBoardTaskFormatRequest is request for PlannerBucketTaskBoardTaskFormat
+type PlannerBucketTaskBoardTaskFormatRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerBucketTaskBoardTaskFormat
+func (r *PlannerBucketTaskBoardTaskFormatRequest) Get(ctx context.Context) (resObj *PlannerBucketTaskBoardTaskFormat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerBucketTaskBoardTaskFormat
+func (r *PlannerBucketTaskBoardTaskFormatRequest) Update(ctx context.Context, reqObj *PlannerBucketTaskBoardTaskFormat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerBucketTaskBoardTaskFormat
+func (r *PlannerBucketTaskBoardTaskFormatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerCategoryDescriptionsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerCategoryDescriptionsModel.go
new file mode 100644
index 00000000..bcef060c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerCategoryDescriptionsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerCategoryDescriptions undocumented
+type PlannerCategoryDescriptions struct {
+ // Object is the base model of PlannerCategoryDescriptions
+ Object
+ // Category1 undocumented
+ Category1 *string `json:"category1,omitempty"`
+ // Category2 undocumented
+ Category2 *string `json:"category2,omitempty"`
+ // Category3 undocumented
+ Category3 *string `json:"category3,omitempty"`
+ // Category4 undocumented
+ Category4 *string `json:"category4,omitempty"`
+ // Category5 undocumented
+ Category5 *string `json:"category5,omitempty"`
+ // Category6 undocumented
+ Category6 *string `json:"category6,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerChecklistItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerChecklistItemModel.go
new file mode 100644
index 00000000..6f371bc9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerChecklistItemModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PlannerChecklistItem undocumented
+type PlannerChecklistItem struct {
+ // Object is the base model of PlannerChecklistItem
+ Object
+ // IsChecked undocumented
+ IsChecked *bool `json:"isChecked,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // OrderHint undocumented
+ OrderHint *string `json:"orderHint,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerChecklistItemsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerChecklistItemsModel.go
new file mode 100644
index 00000000..fbdbb0d1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerChecklistItemsModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerChecklistItems undocumented
+type PlannerChecklistItems struct {
+ // Object is the base model of PlannerChecklistItems
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerDeltaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerDeltaModel.go
new file mode 100644
index 00000000..f038c164
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerDeltaModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerDelta undocumented
+type PlannerDelta struct {
+ // Entity is the base model of PlannerDelta
+ Entity
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerDeltaRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerDeltaRequest.go
new file mode 100644
index 00000000..e8a6b764
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerDeltaRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PlannerDeltaRequestBuilder is request builder for PlannerDelta
+type PlannerDeltaRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerDeltaRequest
+func (b *PlannerDeltaRequestBuilder) Request() *PlannerDeltaRequest {
+ return &PlannerDeltaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerDeltaRequest is request for PlannerDelta
+type PlannerDeltaRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerDelta
+func (r *PlannerDeltaRequest) Get(ctx context.Context) (resObj *PlannerDelta, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerDelta
+func (r *PlannerDeltaRequest) Update(ctx context.Context, reqObj *PlannerDelta) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerDelta
+func (r *PlannerDeltaRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerExternalReferenceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerExternalReferenceModel.go
new file mode 100644
index 00000000..4bcf51a2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerExternalReferenceModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PlannerExternalReference undocumented
+type PlannerExternalReference struct {
+ // Object is the base model of PlannerExternalReference
+ Object
+ // Alias undocumented
+ Alias *string `json:"alias,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // PreviewPriority undocumented
+ PreviewPriority *string `json:"previewPriority,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerExternalReferencesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerExternalReferencesModel.go
new file mode 100644
index 00000000..b61417fb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerExternalReferencesModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerExternalReferences undocumented
+type PlannerExternalReferences struct {
+ // Object is the base model of PlannerExternalReferences
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerFavoritePlanReferenceCollectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerFavoritePlanReferenceCollectionModel.go
new file mode 100644
index 00000000..92c682b4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerFavoritePlanReferenceCollectionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerFavoritePlanReferenceCollection undocumented
+type PlannerFavoritePlanReferenceCollection struct {
+ // Object is the base model of PlannerFavoritePlanReferenceCollection
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerFavoritePlanReferenceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerFavoritePlanReferenceModel.go
new file mode 100644
index 00000000..3e1d40c7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerFavoritePlanReferenceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerFavoritePlanReference undocumented
+type PlannerFavoritePlanReference struct {
+ // Object is the base model of PlannerFavoritePlanReference
+ Object
+ // OrderHint undocumented
+ OrderHint *string `json:"orderHint,omitempty"`
+ // PlanTitle undocumented
+ PlanTitle *string `json:"planTitle,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerGroupModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerGroupModel.go
new file mode 100644
index 00000000..408bb577
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerGroupModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerGroup undocumented
+type PlannerGroup struct {
+ // Entity is the base model of PlannerGroup
+ Entity
+ // Plans undocumented
+ Plans []PlannerPlan `json:"plans,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerGroupRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerGroupRequest.go
new file mode 100644
index 00000000..14e939c5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerGroupRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PlannerGroupRequestBuilder is request builder for PlannerGroup
+type PlannerGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerGroupRequest
+func (b *PlannerGroupRequestBuilder) Request() *PlannerGroupRequest {
+ return &PlannerGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerGroupRequest is request for PlannerGroup
+type PlannerGroupRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerGroup
+func (r *PlannerGroupRequest) Get(ctx context.Context) (resObj *PlannerGroup, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerGroup
+func (r *PlannerGroupRequest) Update(ctx context.Context, reqObj *PlannerGroup) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerGroup
+func (r *PlannerGroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Plans returns request builder for PlannerPlan collection
+func (b *PlannerGroupRequestBuilder) Plans() *PlannerGroupPlansCollectionRequestBuilder {
+ bb := &PlannerGroupPlansCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/plans"
+ return bb
+}
+
+// PlannerGroupPlansCollectionRequestBuilder is request builder for PlannerPlan collection
+type PlannerGroupPlansCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerPlan collection
+func (b *PlannerGroupPlansCollectionRequestBuilder) Request() *PlannerGroupPlansCollectionRequest {
+ return &PlannerGroupPlansCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerPlan item
+func (b *PlannerGroupPlansCollectionRequestBuilder) ID(id string) *PlannerPlanRequestBuilder {
+ bb := &PlannerPlanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerGroupPlansCollectionRequest is request for PlannerPlan collection
+type PlannerGroupPlansCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerPlan collection
+func (r *PlannerGroupPlansCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PlannerPlan, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerPlan
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerPlan
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerPlan collection
+func (r *PlannerGroupPlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PlannerPlan collection
+func (r *PlannerGroupPlansCollectionRequest) Add(ctx context.Context, reqObj *PlannerPlan) (resObj *PlannerPlan, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerModel.go
new file mode 100644
index 00000000..7e751989
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Planner undocumented
+type Planner struct {
+ // Entity is the base model of Planner
+ Entity
+ // Tasks undocumented
+ Tasks []PlannerTask `json:"tasks,omitempty"`
+ // Plans undocumented
+ Plans []PlannerPlan `json:"plans,omitempty"`
+ // Buckets undocumented
+ Buckets []PlannerBucket `json:"buckets,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerOrderHintsByAssigneeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerOrderHintsByAssigneeModel.go
new file mode 100644
index 00000000..9b389e97
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerOrderHintsByAssigneeModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerOrderHintsByAssignee undocumented
+type PlannerOrderHintsByAssignee struct {
+ // Object is the base model of PlannerOrderHintsByAssignee
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanContextCollectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanContextCollectionModel.go
new file mode 100644
index 00000000..a30ddcd0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanContextCollectionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerPlanContextCollection undocumented
+type PlannerPlanContextCollection struct {
+ // Object is the base model of PlannerPlanContextCollection
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanContextDetailsCollectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanContextDetailsCollectionModel.go
new file mode 100644
index 00000000..bde4cfed
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanContextDetailsCollectionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerPlanContextDetailsCollection undocumented
+type PlannerPlanContextDetailsCollection struct {
+ // Object is the base model of PlannerPlanContextDetailsCollection
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanContextDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanContextDetailsModel.go
new file mode 100644
index 00000000..f3601cb8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanContextDetailsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerPlanContextDetails undocumented
+type PlannerPlanContextDetails struct {
+ // Object is the base model of PlannerPlanContextDetails
+ Object
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanContextModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanContextModel.go
new file mode 100644
index 00000000..5fc6e1a0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanContextModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PlannerPlanContext undocumented
+type PlannerPlanContext struct {
+ // Object is the base model of PlannerPlanContext
+ Object
+ // AssociationType undocumented
+ AssociationType *string `json:"associationType,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DisplayNameSegments undocumented
+ DisplayNameSegments []string `json:"displayNameSegments,omitempty"`
+ // OwnerAppID undocumented
+ OwnerAppID *string `json:"ownerAppId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanDetailsModel.go
new file mode 100644
index 00000000..25d5936f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanDetailsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerPlanDetails undocumented
+type PlannerPlanDetails struct {
+ // PlannerDelta is the base model of PlannerPlanDetails
+ PlannerDelta
+ // SharedWith undocumented
+ SharedWith *PlannerUserIDs `json:"sharedWith,omitempty"`
+ // CategoryDescriptions undocumented
+ CategoryDescriptions *PlannerCategoryDescriptions `json:"categoryDescriptions,omitempty"`
+ // ContextDetails undocumented
+ ContextDetails *PlannerPlanContextDetailsCollection `json:"contextDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanDetailsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanDetailsRequest.go
new file mode 100644
index 00000000..f68bf289
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanDetailsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PlannerPlanDetailsRequestBuilder is request builder for PlannerPlanDetails
+type PlannerPlanDetailsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerPlanDetailsRequest
+func (b *PlannerPlanDetailsRequestBuilder) Request() *PlannerPlanDetailsRequest {
+ return &PlannerPlanDetailsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerPlanDetailsRequest is request for PlannerPlanDetails
+type PlannerPlanDetailsRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerPlanDetails
+func (r *PlannerPlanDetailsRequest) Get(ctx context.Context) (resObj *PlannerPlanDetails, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerPlanDetails
+func (r *PlannerPlanDetailsRequest) Update(ctx context.Context, reqObj *PlannerPlanDetails) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerPlanDetails
+func (r *PlannerPlanDetailsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanModel.go
new file mode 100644
index 00000000..9d1328da
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PlannerPlan undocumented
+type PlannerPlan struct {
+ // PlannerDelta is the base model of PlannerPlan
+ PlannerDelta
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Owner undocumented
+ Owner *string `json:"owner,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // Contexts undocumented
+ Contexts *PlannerPlanContextCollection `json:"contexts,omitempty"`
+ // Tasks undocumented
+ Tasks []PlannerTask `json:"tasks,omitempty"`
+ // Buckets undocumented
+ Buckets []PlannerBucket `json:"buckets,omitempty"`
+ // Details undocumented
+ Details *PlannerPlanDetails `json:"details,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanRequest.go
new file mode 100644
index 00000000..d174200e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPlanRequest.go
@@ -0,0 +1,240 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PlannerPlanRequestBuilder is request builder for PlannerPlan
+type PlannerPlanRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerPlanRequest
+func (b *PlannerPlanRequestBuilder) Request() *PlannerPlanRequest {
+ return &PlannerPlanRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerPlanRequest is request for PlannerPlan
+type PlannerPlanRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerPlan
+func (r *PlannerPlanRequest) Get(ctx context.Context) (resObj *PlannerPlan, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerPlan
+func (r *PlannerPlanRequest) Update(ctx context.Context, reqObj *PlannerPlan) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerPlan
+func (r *PlannerPlanRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Buckets returns request builder for PlannerBucket collection
+func (b *PlannerPlanRequestBuilder) Buckets() *PlannerPlanBucketsCollectionRequestBuilder {
+ bb := &PlannerPlanBucketsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/buckets"
+ return bb
+}
+
+// PlannerPlanBucketsCollectionRequestBuilder is request builder for PlannerBucket collection
+type PlannerPlanBucketsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerBucket collection
+func (b *PlannerPlanBucketsCollectionRequestBuilder) Request() *PlannerPlanBucketsCollectionRequest {
+ return &PlannerPlanBucketsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerBucket item
+func (b *PlannerPlanBucketsCollectionRequestBuilder) ID(id string) *PlannerBucketRequestBuilder {
+ bb := &PlannerBucketRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerPlanBucketsCollectionRequest is request for PlannerBucket collection
+type PlannerPlanBucketsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerBucket collection
+func (r *PlannerPlanBucketsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PlannerBucket, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerBucket
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerBucket
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerBucket collection
+func (r *PlannerPlanBucketsCollectionRequest) Get(ctx context.Context) ([]PlannerBucket, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PlannerBucket collection
+func (r *PlannerPlanBucketsCollectionRequest) Add(ctx context.Context, reqObj *PlannerBucket) (resObj *PlannerBucket, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Details is navigation property
+func (b *PlannerPlanRequestBuilder) Details() *PlannerPlanDetailsRequestBuilder {
+ bb := &PlannerPlanDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/details"
+ return bb
+}
+
+// Tasks returns request builder for PlannerTask collection
+func (b *PlannerPlanRequestBuilder) Tasks() *PlannerPlanTasksCollectionRequestBuilder {
+ bb := &PlannerPlanTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tasks"
+ return bb
+}
+
+// PlannerPlanTasksCollectionRequestBuilder is request builder for PlannerTask collection
+type PlannerPlanTasksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerTask collection
+func (b *PlannerPlanTasksCollectionRequestBuilder) Request() *PlannerPlanTasksCollectionRequest {
+ return &PlannerPlanTasksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerTask item
+func (b *PlannerPlanTasksCollectionRequestBuilder) ID(id string) *PlannerTaskRequestBuilder {
+ bb := &PlannerTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerPlanTasksCollectionRequest is request for PlannerTask collection
+type PlannerPlanTasksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerTask collection
+func (r *PlannerPlanTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PlannerTask, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerTask
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerTask
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerTask collection
+func (r *PlannerPlanTasksCollectionRequest) Get(ctx context.Context) ([]PlannerTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PlannerTask collection
+func (r *PlannerPlanTasksCollectionRequest) Add(ctx context.Context, reqObj *PlannerTask) (resObj *PlannerTask, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPreviewTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPreviewTypeEnum.go
new file mode 100644
index 00000000..4782c785
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerPreviewTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerPreviewType undocumented
+type PlannerPreviewType int
+
+const (
+ // PlannerPreviewTypeVAutomatic undocumented
+ PlannerPreviewTypeVAutomatic PlannerPreviewType = 0
+ // PlannerPreviewTypeVNoPreview undocumented
+ PlannerPreviewTypeVNoPreview PlannerPreviewType = 1
+ // PlannerPreviewTypeVChecklist undocumented
+ PlannerPreviewTypeVChecklist PlannerPreviewType = 2
+ // PlannerPreviewTypeVDescription undocumented
+ PlannerPreviewTypeVDescription PlannerPreviewType = 3
+ // PlannerPreviewTypeVReference undocumented
+ PlannerPreviewTypeVReference PlannerPreviewType = 4
+)
+
+// PlannerPreviewTypePAutomatic returns a pointer to PlannerPreviewTypeVAutomatic
+func PlannerPreviewTypePAutomatic() *PlannerPreviewType {
+ v := PlannerPreviewTypeVAutomatic
+ return &v
+}
+
+// PlannerPreviewTypePNoPreview returns a pointer to PlannerPreviewTypeVNoPreview
+func PlannerPreviewTypePNoPreview() *PlannerPreviewType {
+ v := PlannerPreviewTypeVNoPreview
+ return &v
+}
+
+// PlannerPreviewTypePChecklist returns a pointer to PlannerPreviewTypeVChecklist
+func PlannerPreviewTypePChecklist() *PlannerPreviewType {
+ v := PlannerPreviewTypeVChecklist
+ return &v
+}
+
+// PlannerPreviewTypePDescription returns a pointer to PlannerPreviewTypeVDescription
+func PlannerPreviewTypePDescription() *PlannerPreviewType {
+ v := PlannerPreviewTypeVDescription
+ return &v
+}
+
+// PlannerPreviewTypePReference returns a pointer to PlannerPreviewTypeVReference
+func PlannerPreviewTypePReference() *PlannerPreviewType {
+ v := PlannerPreviewTypeVReference
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatModel.go
new file mode 100644
index 00000000..254cfbd2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerProgressTaskBoardTaskFormat undocumented
+type PlannerProgressTaskBoardTaskFormat struct {
+ // PlannerDelta is the base model of PlannerProgressTaskBoardTaskFormat
+ PlannerDelta
+ // OrderHint undocumented
+ OrderHint *string `json:"orderHint,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatRequest.go
new file mode 100644
index 00000000..2f9b99a0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerProgressTaskBoardTaskFormatRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PlannerProgressTaskBoardTaskFormatRequestBuilder is request builder for PlannerProgressTaskBoardTaskFormat
+type PlannerProgressTaskBoardTaskFormatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerProgressTaskBoardTaskFormatRequest
+func (b *PlannerProgressTaskBoardTaskFormatRequestBuilder) Request() *PlannerProgressTaskBoardTaskFormatRequest {
+ return &PlannerProgressTaskBoardTaskFormatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerProgressTaskBoardTaskFormatRequest is request for PlannerProgressTaskBoardTaskFormat
+type PlannerProgressTaskBoardTaskFormatRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerProgressTaskBoardTaskFormat
+func (r *PlannerProgressTaskBoardTaskFormatRequest) Get(ctx context.Context) (resObj *PlannerProgressTaskBoardTaskFormat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerProgressTaskBoardTaskFormat
+func (r *PlannerProgressTaskBoardTaskFormatRequest) Update(ctx context.Context, reqObj *PlannerProgressTaskBoardTaskFormat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerProgressTaskBoardTaskFormat
+func (r *PlannerProgressTaskBoardTaskFormatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerRecentPlanReferenceCollectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerRecentPlanReferenceCollectionModel.go
new file mode 100644
index 00000000..6ee5a020
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerRecentPlanReferenceCollectionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerRecentPlanReferenceCollection undocumented
+type PlannerRecentPlanReferenceCollection struct {
+ // Object is the base model of PlannerRecentPlanReferenceCollection
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerRecentPlanReferenceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerRecentPlanReferenceModel.go
new file mode 100644
index 00000000..bf35ed91
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerRecentPlanReferenceModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PlannerRecentPlanReference undocumented
+type PlannerRecentPlanReference struct {
+ // Object is the base model of PlannerRecentPlanReference
+ Object
+ // LastAccessedDateTime undocumented
+ LastAccessedDateTime *time.Time `json:"lastAccessedDateTime,omitempty"`
+ // PlanTitle undocumented
+ PlanTitle *string `json:"planTitle,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerRequest.go
new file mode 100644
index 00000000..dd697fb7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PlannerRequestBuilder is request builder for Planner
+type PlannerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerRequest
+func (b *PlannerRequestBuilder) Request() *PlannerRequest {
+ return &PlannerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerRequest is request for Planner
+type PlannerRequest struct{ BaseRequest }
+
+// Get performs GET request for Planner
+func (r *PlannerRequest) Get(ctx context.Context) (resObj *Planner, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Planner
+func (r *PlannerRequest) Update(ctx context.Context, reqObj *Planner) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Planner
+func (r *PlannerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Buckets returns request builder for PlannerBucket collection
+func (b *PlannerRequestBuilder) Buckets() *PlannerBucketsCollectionRequestBuilder {
+ bb := &PlannerBucketsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/buckets"
+ return bb
+}
+
+// PlannerBucketsCollectionRequestBuilder is request builder for PlannerBucket collection
+type PlannerBucketsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerBucket collection
+func (b *PlannerBucketsCollectionRequestBuilder) Request() *PlannerBucketsCollectionRequest {
+ return &PlannerBucketsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerBucket item
+func (b *PlannerBucketsCollectionRequestBuilder) ID(id string) *PlannerBucketRequestBuilder {
+ bb := &PlannerBucketRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerBucketsCollectionRequest is request for PlannerBucket collection
+type PlannerBucketsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerBucket collection
+func (r *PlannerBucketsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PlannerBucket, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerBucket
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerBucket
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerBucket collection
+func (r *PlannerBucketsCollectionRequest) Get(ctx context.Context) ([]PlannerBucket, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PlannerBucket collection
+func (r *PlannerBucketsCollectionRequest) Add(ctx context.Context, reqObj *PlannerBucket) (resObj *PlannerBucket, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Plans returns request builder for PlannerPlan collection
+func (b *PlannerRequestBuilder) Plans() *PlannerPlansCollectionRequestBuilder {
+ bb := &PlannerPlansCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/plans"
+ return bb
+}
+
+// PlannerPlansCollectionRequestBuilder is request builder for PlannerPlan collection
+type PlannerPlansCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerPlan collection
+func (b *PlannerPlansCollectionRequestBuilder) Request() *PlannerPlansCollectionRequest {
+ return &PlannerPlansCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerPlan item
+func (b *PlannerPlansCollectionRequestBuilder) ID(id string) *PlannerPlanRequestBuilder {
+ bb := &PlannerPlanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerPlansCollectionRequest is request for PlannerPlan collection
+type PlannerPlansCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerPlan collection
+func (r *PlannerPlansCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PlannerPlan, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerPlan
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerPlan
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerPlan collection
+func (r *PlannerPlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PlannerPlan collection
+func (r *PlannerPlansCollectionRequest) Add(ctx context.Context, reqObj *PlannerPlan) (resObj *PlannerPlan, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Tasks returns request builder for PlannerTask collection
+func (b *PlannerRequestBuilder) Tasks() *PlannerTasksCollectionRequestBuilder {
+ bb := &PlannerTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tasks"
+ return bb
+}
+
+// PlannerTasksCollectionRequestBuilder is request builder for PlannerTask collection
+type PlannerTasksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerTask collection
+func (b *PlannerTasksCollectionRequestBuilder) Request() *PlannerTasksCollectionRequest {
+ return &PlannerTasksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerTask item
+func (b *PlannerTasksCollectionRequestBuilder) ID(id string) *PlannerTaskRequestBuilder {
+ bb := &PlannerTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerTasksCollectionRequest is request for PlannerTask collection
+type PlannerTasksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerTask collection
+func (r *PlannerTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PlannerTask, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerTask
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerTask
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerTask collection
+func (r *PlannerTasksCollectionRequest) Get(ctx context.Context) ([]PlannerTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PlannerTask collection
+func (r *PlannerTasksCollectionRequest) Add(ctx context.Context, reqObj *PlannerTask) (resObj *PlannerTask, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerTaskDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerTaskDetailsModel.go
new file mode 100644
index 00000000..bb8f8142
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerTaskDetailsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerTaskDetails undocumented
+type PlannerTaskDetails struct {
+ // PlannerDelta is the base model of PlannerTaskDetails
+ PlannerDelta
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // PreviewType undocumented
+ PreviewType *PlannerPreviewType `json:"previewType,omitempty"`
+ // References undocumented
+ References *PlannerExternalReferences `json:"references,omitempty"`
+ // Checklist undocumented
+ Checklist *PlannerChecklistItems `json:"checklist,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerTaskDetailsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerTaskDetailsRequest.go
new file mode 100644
index 00000000..0999a42f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerTaskDetailsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PlannerTaskDetailsRequestBuilder is request builder for PlannerTaskDetails
+type PlannerTaskDetailsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerTaskDetailsRequest
+func (b *PlannerTaskDetailsRequestBuilder) Request() *PlannerTaskDetailsRequest {
+ return &PlannerTaskDetailsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerTaskDetailsRequest is request for PlannerTaskDetails
+type PlannerTaskDetailsRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerTaskDetails
+func (r *PlannerTaskDetailsRequest) Get(ctx context.Context) (resObj *PlannerTaskDetails, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerTaskDetails
+func (r *PlannerTaskDetailsRequest) Update(ctx context.Context, reqObj *PlannerTaskDetails) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerTaskDetails
+func (r *PlannerTaskDetailsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerTaskModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerTaskModel.go
new file mode 100644
index 00000000..9fc16b19
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerTaskModel.go
@@ -0,0 +1,61 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PlannerTask undocumented
+type PlannerTask struct {
+ // PlannerDelta is the base model of PlannerTask
+ PlannerDelta
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // PlanID undocumented
+ PlanID *string `json:"planId,omitempty"`
+ // BucketID undocumented
+ BucketID *string `json:"bucketId,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // OrderHint undocumented
+ OrderHint *string `json:"orderHint,omitempty"`
+ // AssigneePriority undocumented
+ AssigneePriority *string `json:"assigneePriority,omitempty"`
+ // PercentComplete undocumented
+ PercentComplete *int `json:"percentComplete,omitempty"`
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DueDateTime undocumented
+ DueDateTime *time.Time `json:"dueDateTime,omitempty"`
+ // HasDescription undocumented
+ HasDescription *bool `json:"hasDescription,omitempty"`
+ // PreviewType undocumented
+ PreviewType *PlannerPreviewType `json:"previewType,omitempty"`
+ // CompletedDateTime undocumented
+ CompletedDateTime *time.Time `json:"completedDateTime,omitempty"`
+ // CompletedBy undocumented
+ CompletedBy *IdentitySet `json:"completedBy,omitempty"`
+ // ReferenceCount undocumented
+ ReferenceCount *int `json:"referenceCount,omitempty"`
+ // ChecklistItemCount undocumented
+ ChecklistItemCount *int `json:"checklistItemCount,omitempty"`
+ // ActiveChecklistItemCount undocumented
+ ActiveChecklistItemCount *int `json:"activeChecklistItemCount,omitempty"`
+ // AppliedCategories undocumented
+ AppliedCategories *PlannerAppliedCategories `json:"appliedCategories,omitempty"`
+ // Assignments undocumented
+ Assignments *PlannerAssignments `json:"assignments,omitempty"`
+ // ConversationThreadID undocumented
+ ConversationThreadID *string `json:"conversationThreadId,omitempty"`
+ // Details undocumented
+ Details *PlannerTaskDetails `json:"details,omitempty"`
+ // AssignedToTaskBoardFormat undocumented
+ AssignedToTaskBoardFormat *PlannerAssignedToTaskBoardTaskFormat `json:"assignedToTaskBoardFormat,omitempty"`
+ // ProgressTaskBoardFormat undocumented
+ ProgressTaskBoardFormat *PlannerProgressTaskBoardTaskFormat `json:"progressTaskBoardFormat,omitempty"`
+ // BucketTaskBoardFormat undocumented
+ BucketTaskBoardFormat *PlannerBucketTaskBoardTaskFormat `json:"bucketTaskBoardFormat,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerTaskRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerTaskRequest.go
new file mode 100644
index 00000000..fed430e8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerTaskRequest.go
@@ -0,0 +1,66 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PlannerTaskRequestBuilder is request builder for PlannerTask
+type PlannerTaskRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerTaskRequest
+func (b *PlannerTaskRequestBuilder) Request() *PlannerTaskRequest {
+ return &PlannerTaskRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerTaskRequest is request for PlannerTask
+type PlannerTaskRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerTask
+func (r *PlannerTaskRequest) Get(ctx context.Context) (resObj *PlannerTask, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerTask
+func (r *PlannerTaskRequest) Update(ctx context.Context, reqObj *PlannerTask) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerTask
+func (r *PlannerTaskRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AssignedToTaskBoardFormat is navigation property
+func (b *PlannerTaskRequestBuilder) AssignedToTaskBoardFormat() *PlannerAssignedToTaskBoardTaskFormatRequestBuilder {
+ bb := &PlannerAssignedToTaskBoardTaskFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignedToTaskBoardFormat"
+ return bb
+}
+
+// BucketTaskBoardFormat is navigation property
+func (b *PlannerTaskRequestBuilder) BucketTaskBoardFormat() *PlannerBucketTaskBoardTaskFormatRequestBuilder {
+ bb := &PlannerBucketTaskBoardTaskFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/bucketTaskBoardFormat"
+ return bb
+}
+
+// Details is navigation property
+func (b *PlannerTaskRequestBuilder) Details() *PlannerTaskDetailsRequestBuilder {
+ bb := &PlannerTaskDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/details"
+ return bb
+}
+
+// ProgressTaskBoardFormat is navigation property
+func (b *PlannerTaskRequestBuilder) ProgressTaskBoardFormat() *PlannerProgressTaskBoardTaskFormatRequestBuilder {
+ bb := &PlannerProgressTaskBoardTaskFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/progressTaskBoardFormat"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerUserIDsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerUserIDsModel.go
new file mode 100644
index 00000000..1853ce12
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerUserIDsModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerUserIDs undocumented
+type PlannerUserIDs struct {
+ // Object is the base model of PlannerUserIDs
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerUserModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerUserModel.go
new file mode 100644
index 00000000..0d7d79ac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerUserModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerUser undocumented
+type PlannerUser struct {
+ // PlannerDelta is the base model of PlannerUser
+ PlannerDelta
+ // FavoritePlanReferences undocumented
+ FavoritePlanReferences *PlannerFavoritePlanReferenceCollection `json:"favoritePlanReferences,omitempty"`
+ // RecentPlanReferences undocumented
+ RecentPlanReferences *PlannerRecentPlanReferenceCollection `json:"recentPlanReferences,omitempty"`
+ // Tasks undocumented
+ Tasks []PlannerTask `json:"tasks,omitempty"`
+ // Plans undocumented
+ Plans []PlannerPlan `json:"plans,omitempty"`
+ // FavoritePlans undocumented
+ FavoritePlans []PlannerPlan `json:"favoritePlans,omitempty"`
+ // RecentPlans undocumented
+ RecentPlans []PlannerPlan `json:"recentPlans,omitempty"`
+ // All undocumented
+ All []PlannerDelta `json:"all,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlannerUserRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerUserRequest.go
new file mode 100644
index 00000000..afe9165b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlannerUserRequest.go
@@ -0,0 +1,515 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PlannerUserRequestBuilder is request builder for PlannerUser
+type PlannerUserRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerUserRequest
+func (b *PlannerUserRequestBuilder) Request() *PlannerUserRequest {
+ return &PlannerUserRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerUserRequest is request for PlannerUser
+type PlannerUserRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerUser
+func (r *PlannerUserRequest) Get(ctx context.Context) (resObj *PlannerUser, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerUser
+func (r *PlannerUserRequest) Update(ctx context.Context, reqObj *PlannerUser) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerUser
+func (r *PlannerUserRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// All returns request builder for PlannerDelta collection
+func (b *PlannerUserRequestBuilder) All() *PlannerUserAllCollectionRequestBuilder {
+ bb := &PlannerUserAllCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/all"
+ return bb
+}
+
+// PlannerUserAllCollectionRequestBuilder is request builder for PlannerDelta collection
+type PlannerUserAllCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerDelta collection
+func (b *PlannerUserAllCollectionRequestBuilder) Request() *PlannerUserAllCollectionRequest {
+ return &PlannerUserAllCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerDelta item
+func (b *PlannerUserAllCollectionRequestBuilder) ID(id string) *PlannerDeltaRequestBuilder {
+ bb := &PlannerDeltaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerUserAllCollectionRequest is request for PlannerDelta collection
+type PlannerUserAllCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerDelta collection
+func (r *PlannerUserAllCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PlannerDelta, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerDelta
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerDelta
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerDelta collection
+func (r *PlannerUserAllCollectionRequest) Get(ctx context.Context) ([]PlannerDelta, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PlannerDelta collection
+func (r *PlannerUserAllCollectionRequest) Add(ctx context.Context, reqObj *PlannerDelta) (resObj *PlannerDelta, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// FavoritePlans returns request builder for PlannerPlan collection
+func (b *PlannerUserRequestBuilder) FavoritePlans() *PlannerUserFavoritePlansCollectionRequestBuilder {
+ bb := &PlannerUserFavoritePlansCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/favoritePlans"
+ return bb
+}
+
+// PlannerUserFavoritePlansCollectionRequestBuilder is request builder for PlannerPlan collection
+type PlannerUserFavoritePlansCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerPlan collection
+func (b *PlannerUserFavoritePlansCollectionRequestBuilder) Request() *PlannerUserFavoritePlansCollectionRequest {
+ return &PlannerUserFavoritePlansCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerPlan item
+func (b *PlannerUserFavoritePlansCollectionRequestBuilder) ID(id string) *PlannerPlanRequestBuilder {
+ bb := &PlannerPlanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerUserFavoritePlansCollectionRequest is request for PlannerPlan collection
+type PlannerUserFavoritePlansCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerPlan collection
+func (r *PlannerUserFavoritePlansCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PlannerPlan, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerPlan
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerPlan
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerPlan collection
+func (r *PlannerUserFavoritePlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PlannerPlan collection
+func (r *PlannerUserFavoritePlansCollectionRequest) Add(ctx context.Context, reqObj *PlannerPlan) (resObj *PlannerPlan, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Plans returns request builder for PlannerPlan collection
+func (b *PlannerUserRequestBuilder) Plans() *PlannerUserPlansCollectionRequestBuilder {
+ bb := &PlannerUserPlansCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/plans"
+ return bb
+}
+
+// PlannerUserPlansCollectionRequestBuilder is request builder for PlannerPlan collection
+type PlannerUserPlansCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerPlan collection
+func (b *PlannerUserPlansCollectionRequestBuilder) Request() *PlannerUserPlansCollectionRequest {
+ return &PlannerUserPlansCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerPlan item
+func (b *PlannerUserPlansCollectionRequestBuilder) ID(id string) *PlannerPlanRequestBuilder {
+ bb := &PlannerPlanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerUserPlansCollectionRequest is request for PlannerPlan collection
+type PlannerUserPlansCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerPlan collection
+func (r *PlannerUserPlansCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PlannerPlan, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerPlan
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerPlan
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerPlan collection
+func (r *PlannerUserPlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PlannerPlan collection
+func (r *PlannerUserPlansCollectionRequest) Add(ctx context.Context, reqObj *PlannerPlan) (resObj *PlannerPlan, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RecentPlans returns request builder for PlannerPlan collection
+func (b *PlannerUserRequestBuilder) RecentPlans() *PlannerUserRecentPlansCollectionRequestBuilder {
+ bb := &PlannerUserRecentPlansCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/recentPlans"
+ return bb
+}
+
+// PlannerUserRecentPlansCollectionRequestBuilder is request builder for PlannerPlan collection
+type PlannerUserRecentPlansCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerPlan collection
+func (b *PlannerUserRecentPlansCollectionRequestBuilder) Request() *PlannerUserRecentPlansCollectionRequest {
+ return &PlannerUserRecentPlansCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerPlan item
+func (b *PlannerUserRecentPlansCollectionRequestBuilder) ID(id string) *PlannerPlanRequestBuilder {
+ bb := &PlannerPlanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerUserRecentPlansCollectionRequest is request for PlannerPlan collection
+type PlannerUserRecentPlansCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerPlan collection
+func (r *PlannerUserRecentPlansCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PlannerPlan, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerPlan
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerPlan
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerPlan collection
+func (r *PlannerUserRecentPlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PlannerPlan collection
+func (r *PlannerUserRecentPlansCollectionRequest) Add(ctx context.Context, reqObj *PlannerPlan) (resObj *PlannerPlan, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Tasks returns request builder for PlannerTask collection
+func (b *PlannerUserRequestBuilder) Tasks() *PlannerUserTasksCollectionRequestBuilder {
+ bb := &PlannerUserTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tasks"
+ return bb
+}
+
+// PlannerUserTasksCollectionRequestBuilder is request builder for PlannerTask collection
+type PlannerUserTasksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerTask collection
+func (b *PlannerUserTasksCollectionRequestBuilder) Request() *PlannerUserTasksCollectionRequest {
+ return &PlannerUserTasksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerTask item
+func (b *PlannerUserTasksCollectionRequestBuilder) ID(id string) *PlannerTaskRequestBuilder {
+ bb := &PlannerTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerUserTasksCollectionRequest is request for PlannerTask collection
+type PlannerUserTasksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerTask collection
+func (r *PlannerUserTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PlannerTask, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerTask
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerTask
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PlannerTask collection
+func (r *PlannerUserTasksCollectionRequest) Get(ctx context.Context) ([]PlannerTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PlannerTask collection
+func (r *PlannerUserTasksCollectionRequest) Add(ctx context.Context, reqObj *PlannerTask) (resObj *PlannerTask, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlatformEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlatformEnum.go
new file mode 100644
index 00000000..72d725e2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlatformEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Platform undocumented
+type Platform int
+
+const (
+ // PlatformVUnknown undocumented
+ PlatformVUnknown Platform = 0
+ // PlatformVIOS undocumented
+ PlatformVIOS Platform = 1
+ // PlatformVAndroid undocumented
+ PlatformVAndroid Platform = 2
+ // PlatformVWindows undocumented
+ PlatformVWindows Platform = 3
+ // PlatformVWindowsMobile undocumented
+ PlatformVWindowsMobile Platform = 4
+ // PlatformVMacOS undocumented
+ PlatformVMacOS Platform = 5
+)
+
+// PlatformPUnknown returns a pointer to PlatformVUnknown
+func PlatformPUnknown() *Platform {
+ v := PlatformVUnknown
+ return &v
+}
+
+// PlatformPIOS returns a pointer to PlatformVIOS
+func PlatformPIOS() *Platform {
+ v := PlatformVIOS
+ return &v
+}
+
+// PlatformPAndroid returns a pointer to PlatformVAndroid
+func PlatformPAndroid() *Platform {
+ v := PlatformVAndroid
+ return &v
+}
+
+// PlatformPWindows returns a pointer to PlatformVWindows
+func PlatformPWindows() *Platform {
+ v := PlatformVWindows
+ return &v
+}
+
+// PlatformPWindowsMobile returns a pointer to PlatformVWindowsMobile
+func PlatformPWindowsMobile() *Platform {
+ v := PlatformVWindowsMobile
+ return &v
+}
+
+// PlatformPMacOS returns a pointer to PlatformVMacOS
+func PlatformPMacOS() *Platform {
+ v := PlatformVMacOS
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlayPromptCompletionReasonEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlayPromptCompletionReasonEnum.go
new file mode 100644
index 00000000..13762fe9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlayPromptCompletionReasonEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlayPromptCompletionReason undocumented
+type PlayPromptCompletionReason int
+
+const (
+ // PlayPromptCompletionReasonVUnknown undocumented
+ PlayPromptCompletionReasonVUnknown PlayPromptCompletionReason = 0
+ // PlayPromptCompletionReasonVCompletedSuccessfully undocumented
+ PlayPromptCompletionReasonVCompletedSuccessfully PlayPromptCompletionReason = 1
+ // PlayPromptCompletionReasonVMediaOperationCanceled undocumented
+ PlayPromptCompletionReasonVMediaOperationCanceled PlayPromptCompletionReason = 2
+ // PlayPromptCompletionReasonVUnknownFutureValue undocumented
+ PlayPromptCompletionReasonVUnknownFutureValue PlayPromptCompletionReason = 3
+)
+
+// PlayPromptCompletionReasonPUnknown returns a pointer to PlayPromptCompletionReasonVUnknown
+func PlayPromptCompletionReasonPUnknown() *PlayPromptCompletionReason {
+ v := PlayPromptCompletionReasonVUnknown
+ return &v
+}
+
+// PlayPromptCompletionReasonPCompletedSuccessfully returns a pointer to PlayPromptCompletionReasonVCompletedSuccessfully
+func PlayPromptCompletionReasonPCompletedSuccessfully() *PlayPromptCompletionReason {
+ v := PlayPromptCompletionReasonVCompletedSuccessfully
+ return &v
+}
+
+// PlayPromptCompletionReasonPMediaOperationCanceled returns a pointer to PlayPromptCompletionReasonVMediaOperationCanceled
+func PlayPromptCompletionReasonPMediaOperationCanceled() *PlayPromptCompletionReason {
+ v := PlayPromptCompletionReasonVMediaOperationCanceled
+ return &v
+}
+
+// PlayPromptCompletionReasonPUnknownFutureValue returns a pointer to PlayPromptCompletionReasonVUnknownFutureValue
+func PlayPromptCompletionReasonPUnknownFutureValue() *PlayPromptCompletionReason {
+ v := PlayPromptCompletionReasonVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PlayPromptOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PlayPromptOperationModel.go
new file mode 100644
index 00000000..146be3eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PlayPromptOperationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlayPromptOperation undocumented
+type PlayPromptOperation struct {
+ // CommsOperation is the base model of PlayPromptOperation
+ CommsOperation
+ // CompletionReason undocumented
+ CompletionReason *PlayPromptCompletionReason `json:"completionReason,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PolicyModel.go
new file mode 100644
index 00000000..ff972708
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PolicyModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Policy undocumented
+type Policy struct {
+ // DirectoryObject is the base model of Policy
+ DirectoryObject
+ // AlternativeIdentifier undocumented
+ AlternativeIdentifier *string `json:"alternativeIdentifier,omitempty"`
+ // Definition undocumented
+ Definition []string `json:"definition,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsOrganizationDefault undocumented
+ IsOrganizationDefault *bool `json:"isOrganizationDefault,omitempty"`
+ // KeyCredentials undocumented
+ KeyCredentials []KeyCredential `json:"keyCredentials,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // AppliesTo undocumented
+ AppliesTo []DirectoryObject `json:"appliesTo,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PolicyPlatformTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/PolicyPlatformTypeEnum.go
new file mode 100644
index 00000000..b5fde1bc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PolicyPlatformTypeEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PolicyPlatformType undocumented
+type PolicyPlatformType int
+
+const (
+ // PolicyPlatformTypeVAndroid undocumented
+ PolicyPlatformTypeVAndroid PolicyPlatformType = 0
+ // PolicyPlatformTypeVAndroidForWork undocumented
+ PolicyPlatformTypeVAndroidForWork PolicyPlatformType = 1
+ // PolicyPlatformTypeVIOS undocumented
+ PolicyPlatformTypeVIOS PolicyPlatformType = 2
+ // PolicyPlatformTypeVMacOS undocumented
+ PolicyPlatformTypeVMacOS PolicyPlatformType = 3
+ // PolicyPlatformTypeVWindowsPhone81 undocumented
+ PolicyPlatformTypeVWindowsPhone81 PolicyPlatformType = 4
+ // PolicyPlatformTypeVWindows81AndLater undocumented
+ PolicyPlatformTypeVWindows81AndLater PolicyPlatformType = 5
+ // PolicyPlatformTypeVWindows10AndLater undocumented
+ PolicyPlatformTypeVWindows10AndLater PolicyPlatformType = 6
+ // PolicyPlatformTypeVAndroidWorkProfile undocumented
+ PolicyPlatformTypeVAndroidWorkProfile PolicyPlatformType = 7
+ // PolicyPlatformTypeVAll undocumented
+ PolicyPlatformTypeVAll PolicyPlatformType = 100
+)
+
+// PolicyPlatformTypePAndroid returns a pointer to PolicyPlatformTypeVAndroid
+func PolicyPlatformTypePAndroid() *PolicyPlatformType {
+ v := PolicyPlatformTypeVAndroid
+ return &v
+}
+
+// PolicyPlatformTypePAndroidForWork returns a pointer to PolicyPlatformTypeVAndroidForWork
+func PolicyPlatformTypePAndroidForWork() *PolicyPlatformType {
+ v := PolicyPlatformTypeVAndroidForWork
+ return &v
+}
+
+// PolicyPlatformTypePIOS returns a pointer to PolicyPlatformTypeVIOS
+func PolicyPlatformTypePIOS() *PolicyPlatformType {
+ v := PolicyPlatformTypeVIOS
+ return &v
+}
+
+// PolicyPlatformTypePMacOS returns a pointer to PolicyPlatformTypeVMacOS
+func PolicyPlatformTypePMacOS() *PolicyPlatformType {
+ v := PolicyPlatformTypeVMacOS
+ return &v
+}
+
+// PolicyPlatformTypePWindowsPhone81 returns a pointer to PolicyPlatformTypeVWindowsPhone81
+func PolicyPlatformTypePWindowsPhone81() *PolicyPlatformType {
+ v := PolicyPlatformTypeVWindowsPhone81
+ return &v
+}
+
+// PolicyPlatformTypePWindows81AndLater returns a pointer to PolicyPlatformTypeVWindows81AndLater
+func PolicyPlatformTypePWindows81AndLater() *PolicyPlatformType {
+ v := PolicyPlatformTypeVWindows81AndLater
+ return &v
+}
+
+// PolicyPlatformTypePWindows10AndLater returns a pointer to PolicyPlatformTypeVWindows10AndLater
+func PolicyPlatformTypePWindows10AndLater() *PolicyPlatformType {
+ v := PolicyPlatformTypeVWindows10AndLater
+ return &v
+}
+
+// PolicyPlatformTypePAndroidWorkProfile returns a pointer to PolicyPlatformTypeVAndroidWorkProfile
+func PolicyPlatformTypePAndroidWorkProfile() *PolicyPlatformType {
+ v := PolicyPlatformTypeVAndroidWorkProfile
+ return &v
+}
+
+// PolicyPlatformTypePAll returns a pointer to PolicyPlatformTypeVAll
+func PolicyPlatformTypePAll() *PolicyPlatformType {
+ v := PolicyPlatformTypeVAll
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PolicyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PolicyRequest.go
new file mode 100644
index 00000000..eb0b2e3f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PolicyRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PolicyRequestBuilder is request builder for Policy
+type PolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PolicyRequest
+func (b *PolicyRequestBuilder) Request() *PolicyRequest {
+ return &PolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PolicyRequest is request for Policy
+type PolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for Policy
+func (r *PolicyRequest) Get(ctx context.Context) (resObj *Policy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Policy
+func (r *PolicyRequest) Update(ctx context.Context, reqObj *Policy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Policy
+func (r *PolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AppliesTo returns request builder for DirectoryObject collection
+func (b *PolicyRequestBuilder) AppliesTo() *PolicyAppliesToCollectionRequestBuilder {
+ bb := &PolicyAppliesToCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appliesTo"
+ return bb
+}
+
+// PolicyAppliesToCollectionRequestBuilder is request builder for DirectoryObject collection
+type PolicyAppliesToCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *PolicyAppliesToCollectionRequestBuilder) Request() *PolicyAppliesToCollectionRequest {
+ return &PolicyAppliesToCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *PolicyAppliesToCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PolicyAppliesToCollectionRequest is request for DirectoryObject collection
+type PolicyAppliesToCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *PolicyAppliesToCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *PolicyAppliesToCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *PolicyAppliesToCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetAction.go
new file mode 100644
index 00000000..dc1b0988
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetAction.go
@@ -0,0 +1,138 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PolicySetCollectionGetPolicySetsRequestParameter undocumented
+type PolicySetCollectionGetPolicySetsRequestParameter struct {
+ // PolicySetIDs undocumented
+ PolicySetIDs []string `json:"policySetIds,omitempty"`
+}
+
+// PolicySetUpdateRequestParameter undocumented
+type PolicySetUpdateRequestParameter struct {
+ // AddedPolicySetItems undocumented
+ AddedPolicySetItems []PolicySetItem `json:"addedPolicySetItems,omitempty"`
+ // UpdatedPolicySetItems undocumented
+ UpdatedPolicySetItems []PolicySetItem `json:"updatedPolicySetItems,omitempty"`
+ // DeletedPolicySetItems undocumented
+ DeletedPolicySetItems []string `json:"deletedPolicySetItems,omitempty"`
+ // Assignments undocumented
+ Assignments []PolicySetAssignment `json:"assignments,omitempty"`
+}
+
+//
+type PolicySetCollectionGetPolicySetsRequestBuilder struct{ BaseRequestBuilder }
+
+// GetPolicySets action undocumented
+func (b *DeviceAppManagementPolicySetsCollectionRequestBuilder) GetPolicySets(reqObj *PolicySetCollectionGetPolicySetsRequestParameter) *PolicySetCollectionGetPolicySetsRequestBuilder {
+ bb := &PolicySetCollectionGetPolicySetsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getPolicySets"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PolicySetCollectionGetPolicySetsRequest struct{ BaseRequest }
+
+//
+func (b *PolicySetCollectionGetPolicySetsRequestBuilder) Request() *PolicySetCollectionGetPolicySetsRequest {
+ return &PolicySetCollectionGetPolicySetsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PolicySetCollectionGetPolicySetsRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]PolicySet, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]PolicySet
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]PolicySet
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *PolicySetCollectionGetPolicySetsRequest) Get(ctx context.Context) ([][]PolicySet, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type PolicySetUpdateRequestBuilder struct{ BaseRequestBuilder }
+
+// Update action undocumented
+func (b *PolicySetRequestBuilder) Update(reqObj *PolicySetUpdateRequestParameter) *PolicySetUpdateRequestBuilder {
+ bb := &PolicySetUpdateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/update"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PolicySetUpdateRequest struct{ BaseRequest }
+
+//
+func (b *PolicySetUpdateRequestBuilder) Request() *PolicySetUpdateRequest {
+ return &PolicySetUpdateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PolicySetUpdateRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetAssignmentModel.go
new file mode 100644
index 00000000..f3b19e58
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PolicySetAssignment A class containing the properties used for PolicySet Assignment.
+type PolicySetAssignment struct {
+ // Entity is the base model of PolicySetAssignment
+ Entity
+ // LastModifiedDateTime Last modified time of the PolicySetAssignment.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Target The target group of PolicySetAssignment
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetAssignmentRequest.go
new file mode 100644
index 00000000..dcc5577a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PolicySetAssignmentRequestBuilder is request builder for PolicySetAssignment
+type PolicySetAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PolicySetAssignmentRequest
+func (b *PolicySetAssignmentRequestBuilder) Request() *PolicySetAssignmentRequest {
+ return &PolicySetAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PolicySetAssignmentRequest is request for PolicySetAssignment
+type PolicySetAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for PolicySetAssignment
+func (r *PolicySetAssignmentRequest) Get(ctx context.Context) (resObj *PolicySetAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PolicySetAssignment
+func (r *PolicySetAssignmentRequest) Update(ctx context.Context, reqObj *PolicySetAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PolicySetAssignment
+func (r *PolicySetAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetItemModel.go
new file mode 100644
index 00000000..c818df15
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetItemModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PolicySetItem A class containing the properties used for PolicySet Item.
+type PolicySetItem struct {
+ // Entity is the base model of PolicySetItem
+ Entity
+ // CreatedDateTime Creation time of the PolicySetItem.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Last modified time of the PolicySetItem.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // PayloadID PayloadId of the PolicySetItem.
+ PayloadID *string `json:"payloadId,omitempty"`
+ // ItemType policySetType of the PolicySetItem.
+ ItemType *string `json:"itemType,omitempty"`
+ // DisplayName DisplayName of the PolicySetItem.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Status Status of the PolicySetItem.
+ Status *PolicySetStatus `json:"status,omitempty"`
+ // ErrorCode Error code if any occured.
+ ErrorCode *ErrorCode `json:"errorCode,omitempty"`
+ // GuidedDeploymentTags Tags of the guided deployment
+ GuidedDeploymentTags []string `json:"guidedDeploymentTags,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetItemRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetItemRequest.go
new file mode 100644
index 00000000..2704a8e2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetItemRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PolicySetItemRequestBuilder is request builder for PolicySetItem
+type PolicySetItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PolicySetItemRequest
+func (b *PolicySetItemRequestBuilder) Request() *PolicySetItemRequest {
+ return &PolicySetItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PolicySetItemRequest is request for PolicySetItem
+type PolicySetItemRequest struct{ BaseRequest }
+
+// Get performs GET request for PolicySetItem
+func (r *PolicySetItemRequest) Get(ctx context.Context) (resObj *PolicySetItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PolicySetItem
+func (r *PolicySetItemRequest) Update(ctx context.Context, reqObj *PolicySetItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PolicySetItem
+func (r *PolicySetItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetModel.go
new file mode 100644
index 00000000..82ec4a69
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PolicySet A class containing the properties used for PolicySet.
+type PolicySet struct {
+ // Entity is the base model of PolicySet
+ Entity
+ // CreatedDateTime Creation time of the PolicySet.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Last modified time of the PolicySet.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DisplayName DisplayName of the PolicySet.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of the PolicySet.
+ Description *string `json:"description,omitempty"`
+ // Status Validation/assignment status of the PolicySet.
+ Status *PolicySetStatus `json:"status,omitempty"`
+ // ErrorCode Error code if any occured.
+ ErrorCode *ErrorCode `json:"errorCode,omitempty"`
+ // GuidedDeploymentTags Tags of the guided deployment
+ GuidedDeploymentTags []string `json:"guidedDeploymentTags,omitempty"`
+ // RoleScopeTags RoleScopeTags of the PolicySet
+ RoleScopeTags []string `json:"roleScopeTags,omitempty"`
+ // Assignments undocumented
+ Assignments []PolicySetAssignment `json:"assignments,omitempty"`
+ // Items undocumented
+ Items []PolicySetItem `json:"items,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetRequest.go
new file mode 100644
index 00000000..8b7d084d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PolicySetRequestBuilder is request builder for PolicySet
+type PolicySetRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PolicySetRequest
+func (b *PolicySetRequestBuilder) Request() *PolicySetRequest {
+ return &PolicySetRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PolicySetRequest is request for PolicySet
+type PolicySetRequest struct{ BaseRequest }
+
+// Get performs GET request for PolicySet
+func (r *PolicySetRequest) Get(ctx context.Context) (resObj *PolicySet, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PolicySet
+func (r *PolicySetRequest) Update(ctx context.Context, reqObj *PolicySet) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PolicySet
+func (r *PolicySetRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for PolicySetAssignment collection
+func (b *PolicySetRequestBuilder) Assignments() *PolicySetAssignmentsCollectionRequestBuilder {
+ bb := &PolicySetAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// PolicySetAssignmentsCollectionRequestBuilder is request builder for PolicySetAssignment collection
+type PolicySetAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PolicySetAssignment collection
+func (b *PolicySetAssignmentsCollectionRequestBuilder) Request() *PolicySetAssignmentsCollectionRequest {
+ return &PolicySetAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PolicySetAssignment item
+func (b *PolicySetAssignmentsCollectionRequestBuilder) ID(id string) *PolicySetAssignmentRequestBuilder {
+ bb := &PolicySetAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PolicySetAssignmentsCollectionRequest is request for PolicySetAssignment collection
+type PolicySetAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PolicySetAssignment collection
+func (r *PolicySetAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PolicySetAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PolicySetAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PolicySetAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PolicySetAssignment collection
+func (r *PolicySetAssignmentsCollectionRequest) Get(ctx context.Context) ([]PolicySetAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PolicySetAssignment collection
+func (r *PolicySetAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *PolicySetAssignment) (resObj *PolicySetAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Items returns request builder for PolicySetItem collection
+func (b *PolicySetRequestBuilder) Items() *PolicySetItemsCollectionRequestBuilder {
+ bb := &PolicySetItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/items"
+ return bb
+}
+
+// PolicySetItemsCollectionRequestBuilder is request builder for PolicySetItem collection
+type PolicySetItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PolicySetItem collection
+func (b *PolicySetItemsCollectionRequestBuilder) Request() *PolicySetItemsCollectionRequest {
+ return &PolicySetItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PolicySetItem item
+func (b *PolicySetItemsCollectionRequestBuilder) ID(id string) *PolicySetItemRequestBuilder {
+ bb := &PolicySetItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PolicySetItemsCollectionRequest is request for PolicySetItem collection
+type PolicySetItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PolicySetItem collection
+func (r *PolicySetItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PolicySetItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PolicySetItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PolicySetItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PolicySetItem collection
+func (r *PolicySetItemsCollectionRequest) Get(ctx context.Context) ([]PolicySetItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PolicySetItem collection
+func (r *PolicySetItemsCollectionRequest) Add(ctx context.Context, reqObj *PolicySetItem) (resObj *PolicySetItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetStatusEnum.go
new file mode 100644
index 00000000..02651e68
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PolicySetStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PolicySetStatus undocumented
+type PolicySetStatus int
+
+const (
+ // PolicySetStatusVUnknown undocumented
+ PolicySetStatusVUnknown PolicySetStatus = 0
+ // PolicySetStatusVValidating undocumented
+ PolicySetStatusVValidating PolicySetStatus = 1
+ // PolicySetStatusVPartialSuccess undocumented
+ PolicySetStatusVPartialSuccess PolicySetStatus = 2
+ // PolicySetStatusVSuccess undocumented
+ PolicySetStatusVSuccess PolicySetStatus = 3
+ // PolicySetStatusVError undocumented
+ PolicySetStatusVError PolicySetStatus = 4
+ // PolicySetStatusVNotAssigned undocumented
+ PolicySetStatusVNotAssigned PolicySetStatus = 5
+)
+
+// PolicySetStatusPUnknown returns a pointer to PolicySetStatusVUnknown
+func PolicySetStatusPUnknown() *PolicySetStatus {
+ v := PolicySetStatusVUnknown
+ return &v
+}
+
+// PolicySetStatusPValidating returns a pointer to PolicySetStatusVValidating
+func PolicySetStatusPValidating() *PolicySetStatus {
+ v := PolicySetStatusVValidating
+ return &v
+}
+
+// PolicySetStatusPPartialSuccess returns a pointer to PolicySetStatusVPartialSuccess
+func PolicySetStatusPPartialSuccess() *PolicySetStatus {
+ v := PolicySetStatusVPartialSuccess
+ return &v
+}
+
+// PolicySetStatusPSuccess returns a pointer to PolicySetStatusVSuccess
+func PolicySetStatusPSuccess() *PolicySetStatus {
+ v := PolicySetStatusVSuccess
+ return &v
+}
+
+// PolicySetStatusPError returns a pointer to PolicySetStatusVError
+func PolicySetStatusPError() *PolicySetStatus {
+ v := PolicySetStatusVError
+ return &v
+}
+
+// PolicySetStatusPNotAssigned returns a pointer to PolicySetStatusVNotAssigned
+func PolicySetStatusPNotAssigned() *PolicySetStatus {
+ v := PolicySetStatusVNotAssigned
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PositionDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PositionDetailModel.go
new file mode 100644
index 00000000..589658f7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PositionDetailModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PositionDetail undocumented
+type PositionDetail struct {
+ // Object is the base model of PositionDetail
+ Object
+ // Company undocumented
+ Company *CompanyDetail `json:"company,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // EndMonthYear undocumented
+ EndMonthYear *time.Time `json:"endMonthYear,omitempty"`
+ // JobTitle undocumented
+ JobTitle *string `json:"jobTitle,omitempty"`
+ // Role undocumented
+ Role *string `json:"role,omitempty"`
+ // StartMonthYear undocumented
+ StartMonthYear *time.Time `json:"startMonthYear,omitempty"`
+ // Summary undocumented
+ Summary *string `json:"summary,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PostAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/PostAction.go
new file mode 100644
index 00000000..125be755
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PostAction.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PostReplyRequestParameter undocumented
+type PostReplyRequestParameter struct {
+ // Post undocumented
+ Post *Post `json:"Post,omitempty"`
+}
+
+// PostForwardRequestParameter undocumented
+type PostForwardRequestParameter struct {
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+ // ToRecipients undocumented
+ ToRecipients []Recipient `json:"ToRecipients,omitempty"`
+}
+
+//
+type PostReplyRequestBuilder struct{ BaseRequestBuilder }
+
+// Reply action undocumented
+func (b *PostRequestBuilder) Reply(reqObj *PostReplyRequestParameter) *PostReplyRequestBuilder {
+ bb := &PostReplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/reply"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PostReplyRequest struct{ BaseRequest }
+
+//
+func (b *PostReplyRequestBuilder) Request() *PostReplyRequest {
+ return &PostReplyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PostReplyRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type PostForwardRequestBuilder struct{ BaseRequestBuilder }
+
+// Forward action undocumented
+func (b *PostRequestBuilder) Forward(reqObj *PostForwardRequestParameter) *PostForwardRequestBuilder {
+ bb := &PostForwardRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/forward"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PostForwardRequest struct{ BaseRequest }
+
+//
+func (b *PostForwardRequestBuilder) Request() *PostForwardRequest {
+ return &PostForwardRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PostForwardRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PostModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PostModel.go
new file mode 100644
index 00000000..b8910473
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PostModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Post undocumented
+type Post struct {
+ // OutlookItem is the base model of Post
+ OutlookItem
+ // Body undocumented
+ Body *ItemBody `json:"body,omitempty"`
+ // ReceivedDateTime undocumented
+ ReceivedDateTime *time.Time `json:"receivedDateTime,omitempty"`
+ // HasAttachments undocumented
+ HasAttachments *bool `json:"hasAttachments,omitempty"`
+ // From undocumented
+ From *Recipient `json:"from,omitempty"`
+ // Sender undocumented
+ Sender *Recipient `json:"sender,omitempty"`
+ // ConversationThreadID undocumented
+ ConversationThreadID *string `json:"conversationThreadId,omitempty"`
+ // NewParticipants undocumented
+ NewParticipants []Recipient `json:"newParticipants,omitempty"`
+ // ConversationID undocumented
+ ConversationID *string `json:"conversationId,omitempty"`
+ // Importance undocumented
+ Importance *Importance `json:"importance,omitempty"`
+ // InReplyTo undocumented
+ InReplyTo *Post `json:"inReplyTo,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+ // Attachments undocumented
+ Attachments []Attachment `json:"attachments,omitempty"`
+ // Mentions undocumented
+ Mentions []Mention `json:"mentions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PostRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PostRequest.go
new file mode 100644
index 00000000..1a8e815e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PostRequest.go
@@ -0,0 +1,522 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PostRequestBuilder is request builder for Post
+type PostRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PostRequest
+func (b *PostRequestBuilder) Request() *PostRequest {
+ return &PostRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PostRequest is request for Post
+type PostRequest struct{ BaseRequest }
+
+// Get performs GET request for Post
+func (r *PostRequest) Get(ctx context.Context) (resObj *Post, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Post
+func (r *PostRequest) Update(ctx context.Context, reqObj *Post) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Post
+func (r *PostRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Attachments returns request builder for Attachment collection
+func (b *PostRequestBuilder) Attachments() *PostAttachmentsCollectionRequestBuilder {
+ bb := &PostAttachmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/attachments"
+ return bb
+}
+
+// PostAttachmentsCollectionRequestBuilder is request builder for Attachment collection
+type PostAttachmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Attachment collection
+func (b *PostAttachmentsCollectionRequestBuilder) Request() *PostAttachmentsCollectionRequest {
+ return &PostAttachmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Attachment item
+func (b *PostAttachmentsCollectionRequestBuilder) ID(id string) *AttachmentRequestBuilder {
+ bb := &AttachmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PostAttachmentsCollectionRequest is request for Attachment collection
+type PostAttachmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Attachment collection
+func (r *PostAttachmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Attachment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Attachment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Attachment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Attachment collection
+func (r *PostAttachmentsCollectionRequest) Get(ctx context.Context) ([]Attachment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Attachment collection
+func (r *PostAttachmentsCollectionRequest) Add(ctx context.Context, reqObj *Attachment) (resObj *Attachment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Extensions returns request builder for Extension collection
+func (b *PostRequestBuilder) Extensions() *PostExtensionsCollectionRequestBuilder {
+ bb := &PostExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// PostExtensionsCollectionRequestBuilder is request builder for Extension collection
+type PostExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *PostExtensionsCollectionRequestBuilder) Request() *PostExtensionsCollectionRequest {
+ return &PostExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *PostExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PostExtensionsCollectionRequest is request for Extension collection
+type PostExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *PostExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *PostExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Extension collection
+func (r *PostExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// InReplyTo is navigation property
+func (b *PostRequestBuilder) InReplyTo() *PostRequestBuilder {
+ bb := &PostRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/inReplyTo"
+ return bb
+}
+
+// Mentions returns request builder for Mention collection
+func (b *PostRequestBuilder) Mentions() *PostMentionsCollectionRequestBuilder {
+ bb := &PostMentionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mentions"
+ return bb
+}
+
+// PostMentionsCollectionRequestBuilder is request builder for Mention collection
+type PostMentionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Mention collection
+func (b *PostMentionsCollectionRequestBuilder) Request() *PostMentionsCollectionRequest {
+ return &PostMentionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Mention item
+func (b *PostMentionsCollectionRequestBuilder) ID(id string) *MentionRequestBuilder {
+ bb := &MentionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PostMentionsCollectionRequest is request for Mention collection
+type PostMentionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Mention collection
+func (r *PostMentionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Mention, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Mention
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Mention
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Mention collection
+func (r *PostMentionsCollectionRequest) Get(ctx context.Context) ([]Mention, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Mention collection
+func (r *PostMentionsCollectionRequest) Add(ctx context.Context, reqObj *Mention) (resObj *Mention, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *PostRequestBuilder) MultiValueExtendedProperties() *PostMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &PostMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// PostMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type PostMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *PostMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *PostMultiValueExtendedPropertiesCollectionRequest {
+ return &PostMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *PostMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PostMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type PostMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *PostMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *PostMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *PostMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *PostRequestBuilder) SingleValueExtendedProperties() *PostSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &PostSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// PostSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type PostSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *PostSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *PostSingleValueExtendedPropertiesCollectionRequest {
+ return &PostSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *PostSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PostSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type PostSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *PostSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *PostSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *PostSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PostalAddressTypeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PostalAddressTypeModel.go
new file mode 100644
index 00000000..984c6aec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PostalAddressTypeModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PostalAddressType undocumented
+type PostalAddressType struct {
+ // Object is the base model of PostalAddressType
+ Object
+ // Street undocumented
+ Street *string `json:"street,omitempty"`
+ // City undocumented
+ City *string `json:"city,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // CountryLetterCode undocumented
+ CountryLetterCode *string `json:"countryLetterCode,omitempty"`
+ // PostalCode undocumented
+ PostalCode *string `json:"postalCode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PowerActionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/PowerActionTypeEnum.go
new file mode 100644
index 00000000..388fe658
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PowerActionTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PowerActionType undocumented
+type PowerActionType int
+
+const (
+ // PowerActionTypeVNotConfigured undocumented
+ PowerActionTypeVNotConfigured PowerActionType = 0
+ // PowerActionTypeVNoAction undocumented
+ PowerActionTypeVNoAction PowerActionType = 1
+ // PowerActionTypeVSleep undocumented
+ PowerActionTypeVSleep PowerActionType = 2
+ // PowerActionTypeVHibernate undocumented
+ PowerActionTypeVHibernate PowerActionType = 3
+ // PowerActionTypeVShutdown undocumented
+ PowerActionTypeVShutdown PowerActionType = 4
+)
+
+// PowerActionTypePNotConfigured returns a pointer to PowerActionTypeVNotConfigured
+func PowerActionTypePNotConfigured() *PowerActionType {
+ v := PowerActionTypeVNotConfigured
+ return &v
+}
+
+// PowerActionTypePNoAction returns a pointer to PowerActionTypeVNoAction
+func PowerActionTypePNoAction() *PowerActionType {
+ v := PowerActionTypeVNoAction
+ return &v
+}
+
+// PowerActionTypePSleep returns a pointer to PowerActionTypeVSleep
+func PowerActionTypePSleep() *PowerActionType {
+ v := PowerActionTypeVSleep
+ return &v
+}
+
+// PowerActionTypePHibernate returns a pointer to PowerActionTypeVHibernate
+func PowerActionTypePHibernate() *PowerActionType {
+ v := PowerActionTypeVHibernate
+ return &v
+}
+
+// PowerActionTypePShutdown returns a pointer to PowerActionTypeVShutdown
+func PowerActionTypePShutdown() *PowerActionType {
+ v := PowerActionTypeVShutdown
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PreAuthorizedApplicationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PreAuthorizedApplicationModel.go
new file mode 100644
index 00000000..57bfb8e4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PreAuthorizedApplicationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PreAuthorizedApplication undocumented
+type PreAuthorizedApplication struct {
+ // Object is the base model of PreAuthorizedApplication
+ Object
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // PermissionIDs undocumented
+ PermissionIDs []string `json:"permissionIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrereleaseFeaturesEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrereleaseFeaturesEnum.go
new file mode 100644
index 00000000..6f6baaae
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrereleaseFeaturesEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PrereleaseFeatures undocumented
+type PrereleaseFeatures int
+
+const (
+ // PrereleaseFeaturesVUserDefined undocumented
+ PrereleaseFeaturesVUserDefined PrereleaseFeatures = 0
+ // PrereleaseFeaturesVSettingsOnly undocumented
+ PrereleaseFeaturesVSettingsOnly PrereleaseFeatures = 1
+ // PrereleaseFeaturesVSettingsAndExperimentations undocumented
+ PrereleaseFeaturesVSettingsAndExperimentations PrereleaseFeatures = 2
+ // PrereleaseFeaturesVNotAllowed undocumented
+ PrereleaseFeaturesVNotAllowed PrereleaseFeatures = 3
+)
+
+// PrereleaseFeaturesPUserDefined returns a pointer to PrereleaseFeaturesVUserDefined
+func PrereleaseFeaturesPUserDefined() *PrereleaseFeatures {
+ v := PrereleaseFeaturesVUserDefined
+ return &v
+}
+
+// PrereleaseFeaturesPSettingsOnly returns a pointer to PrereleaseFeaturesVSettingsOnly
+func PrereleaseFeaturesPSettingsOnly() *PrereleaseFeatures {
+ v := PrereleaseFeaturesVSettingsOnly
+ return &v
+}
+
+// PrereleaseFeaturesPSettingsAndExperimentations returns a pointer to PrereleaseFeaturesVSettingsAndExperimentations
+func PrereleaseFeaturesPSettingsAndExperimentations() *PrereleaseFeatures {
+ v := PrereleaseFeaturesVSettingsAndExperimentations
+ return &v
+}
+
+// PrereleaseFeaturesPNotAllowed returns a pointer to PrereleaseFeaturesVNotAllowed
+func PrereleaseFeaturesPNotAllowed() *PrereleaseFeatures {
+ v := PrereleaseFeaturesVNotAllowed
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PresenceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PresenceModel.go
new file mode 100644
index 00000000..1d39d651
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PresenceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Presence undocumented
+type Presence struct {
+ // Entity is the base model of Presence
+ Entity
+ // Availability undocumented
+ Availability *string `json:"availability,omitempty"`
+ // Activity undocumented
+ Activity *string `json:"activity,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PresenceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PresenceRequest.go
new file mode 100644
index 00000000..5363317c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PresenceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PresenceRequestBuilder is request builder for Presence
+type PresenceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PresenceRequest
+func (b *PresenceRequestBuilder) Request() *PresenceRequest {
+ return &PresenceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PresenceRequest is request for Presence
+type PresenceRequest struct{ BaseRequest }
+
+// Get performs GET request for Presence
+func (r *PresenceRequest) Get(ctx context.Context) (resObj *Presence, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Presence
+func (r *PresenceRequest) Update(ctx context.Context, reqObj *Presence) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Presence
+func (r *PresenceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PriorityEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/PriorityEnum.go
new file mode 100644
index 00000000..5c323c9a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PriorityEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Priority undocumented
+type Priority int
+
+const (
+ // PriorityVNone undocumented
+ PriorityVNone Priority = 0
+ // PriorityVHigh undocumented
+ PriorityVHigh Priority = 1
+ // PriorityVLow undocumented
+ PriorityVLow Priority = 2
+)
+
+// PriorityPNone returns a pointer to PriorityVNone
+func PriorityPNone() *Priority {
+ v := PriorityVNone
+ return &v
+}
+
+// PriorityPHigh returns a pointer to PriorityVHigh
+func PriorityPHigh() *Priority {
+ v := PriorityVHigh
+ return &v
+}
+
+// PriorityPLow returns a pointer to PriorityVLow
+func PriorityPLow() *Priority {
+ v := PriorityVLow
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivacyProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivacyProfileModel.go
new file mode 100644
index 00000000..8450ffbd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivacyProfileModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PrivacyProfile undocumented
+type PrivacyProfile struct {
+ // Object is the base model of PrivacyProfile
+ Object
+ // ContactEmail undocumented
+ ContactEmail *string `json:"contactEmail,omitempty"`
+ // StatementURL undocumented
+ StatementURL *string `json:"statementUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedAccessModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedAccessModel.go
new file mode 100644
index 00000000..e82537ab
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedAccessModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PrivilegedAccess undocumented
+type PrivilegedAccess struct {
+ // Entity is the base model of PrivilegedAccess
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Resources undocumented
+ Resources []GovernanceResource `json:"resources,omitempty"`
+ // RoleDefinitions undocumented
+ RoleDefinitions []GovernanceRoleDefinition `json:"roleDefinitions,omitempty"`
+ // RoleAssignments undocumented
+ RoleAssignments []GovernanceRoleAssignment `json:"roleAssignments,omitempty"`
+ // RoleAssignmentRequests undocumented
+ RoleAssignmentRequests []GovernanceRoleAssignmentRequestObject `json:"roleAssignmentRequests,omitempty"`
+ // RoleSettings undocumented
+ RoleSettings []GovernanceRoleSetting `json:"roleSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedAccessRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedAccessRequest.go
new file mode 100644
index 00000000..c83cab11
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedAccessRequest.go
@@ -0,0 +1,515 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PrivilegedAccessRequestBuilder is request builder for PrivilegedAccess
+type PrivilegedAccessRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedAccessRequest
+func (b *PrivilegedAccessRequestBuilder) Request() *PrivilegedAccessRequest {
+ return &PrivilegedAccessRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedAccessRequest is request for PrivilegedAccess
+type PrivilegedAccessRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedAccess
+func (r *PrivilegedAccessRequest) Get(ctx context.Context) (resObj *PrivilegedAccess, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedAccess
+func (r *PrivilegedAccessRequest) Update(ctx context.Context, reqObj *PrivilegedAccess) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedAccess
+func (r *PrivilegedAccessRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Resources returns request builder for GovernanceResource collection
+func (b *PrivilegedAccessRequestBuilder) Resources() *PrivilegedAccessResourcesCollectionRequestBuilder {
+ bb := &PrivilegedAccessResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resources"
+ return bb
+}
+
+// PrivilegedAccessResourcesCollectionRequestBuilder is request builder for GovernanceResource collection
+type PrivilegedAccessResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceResource collection
+func (b *PrivilegedAccessResourcesCollectionRequestBuilder) Request() *PrivilegedAccessResourcesCollectionRequest {
+ return &PrivilegedAccessResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceResource item
+func (b *PrivilegedAccessResourcesCollectionRequestBuilder) ID(id string) *GovernanceResourceRequestBuilder {
+ bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PrivilegedAccessResourcesCollectionRequest is request for GovernanceResource collection
+type PrivilegedAccessResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceResource collection
+func (r *PrivilegedAccessResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GovernanceResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceResource collection
+func (r *PrivilegedAccessResourcesCollectionRequest) Get(ctx context.Context) ([]GovernanceResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GovernanceResource collection
+func (r *PrivilegedAccessResourcesCollectionRequest) Add(ctx context.Context, reqObj *GovernanceResource) (resObj *GovernanceResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleAssignmentRequests returns request builder for GovernanceRoleAssignmentRequestObject collection
+func (b *PrivilegedAccessRequestBuilder) RoleAssignmentRequests() *PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder {
+ bb := &PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleAssignmentRequests"
+ return bb
+}
+
+// PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder is request builder for GovernanceRoleAssignmentRequestObject collection
+type PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleAssignmentRequestObject collection
+func (b *PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder) Request() *PrivilegedAccessRoleAssignmentRequestsCollectionRequest {
+ return &PrivilegedAccessRoleAssignmentRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleAssignmentRequestObject item
+func (b *PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestObjectRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PrivilegedAccessRoleAssignmentRequestsCollectionRequest is request for GovernanceRoleAssignmentRequestObject collection
+type PrivilegedAccessRoleAssignmentRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleAssignmentRequestObject collection
+func (r *PrivilegedAccessRoleAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GovernanceRoleAssignmentRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleAssignmentRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleAssignmentRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleAssignmentRequestObject collection
+func (r *PrivilegedAccessRoleAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GovernanceRoleAssignmentRequestObject collection
+func (r *PrivilegedAccessRoleAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignmentRequestObject) (resObj *GovernanceRoleAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleAssignments returns request builder for GovernanceRoleAssignment collection
+func (b *PrivilegedAccessRequestBuilder) RoleAssignments() *PrivilegedAccessRoleAssignmentsCollectionRequestBuilder {
+ bb := &PrivilegedAccessRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleAssignments"
+ return bb
+}
+
+// PrivilegedAccessRoleAssignmentsCollectionRequestBuilder is request builder for GovernanceRoleAssignment collection
+type PrivilegedAccessRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleAssignment collection
+func (b *PrivilegedAccessRoleAssignmentsCollectionRequestBuilder) Request() *PrivilegedAccessRoleAssignmentsCollectionRequest {
+ return &PrivilegedAccessRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleAssignment item
+func (b *PrivilegedAccessRoleAssignmentsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PrivilegedAccessRoleAssignmentsCollectionRequest is request for GovernanceRoleAssignment collection
+type PrivilegedAccessRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleAssignment collection
+func (r *PrivilegedAccessRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GovernanceRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleAssignment collection
+func (r *PrivilegedAccessRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GovernanceRoleAssignment collection
+func (r *PrivilegedAccessRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignment) (resObj *GovernanceRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleDefinitions returns request builder for GovernanceRoleDefinition collection
+func (b *PrivilegedAccessRequestBuilder) RoleDefinitions() *PrivilegedAccessRoleDefinitionsCollectionRequestBuilder {
+ bb := &PrivilegedAccessRoleDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinitions"
+ return bb
+}
+
+// PrivilegedAccessRoleDefinitionsCollectionRequestBuilder is request builder for GovernanceRoleDefinition collection
+type PrivilegedAccessRoleDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleDefinition collection
+func (b *PrivilegedAccessRoleDefinitionsCollectionRequestBuilder) Request() *PrivilegedAccessRoleDefinitionsCollectionRequest {
+ return &PrivilegedAccessRoleDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleDefinition item
+func (b *PrivilegedAccessRoleDefinitionsCollectionRequestBuilder) ID(id string) *GovernanceRoleDefinitionRequestBuilder {
+ bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PrivilegedAccessRoleDefinitionsCollectionRequest is request for GovernanceRoleDefinition collection
+type PrivilegedAccessRoleDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleDefinition collection
+func (r *PrivilegedAccessRoleDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GovernanceRoleDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleDefinition collection
+func (r *PrivilegedAccessRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GovernanceRoleDefinition collection
+func (r *PrivilegedAccessRoleDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleDefinition) (resObj *GovernanceRoleDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleSettings returns request builder for GovernanceRoleSetting collection
+func (b *PrivilegedAccessRequestBuilder) RoleSettings() *PrivilegedAccessRoleSettingsCollectionRequestBuilder {
+ bb := &PrivilegedAccessRoleSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleSettings"
+ return bb
+}
+
+// PrivilegedAccessRoleSettingsCollectionRequestBuilder is request builder for GovernanceRoleSetting collection
+type PrivilegedAccessRoleSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleSetting collection
+func (b *PrivilegedAccessRoleSettingsCollectionRequestBuilder) Request() *PrivilegedAccessRoleSettingsCollectionRequest {
+ return &PrivilegedAccessRoleSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleSetting item
+func (b *PrivilegedAccessRoleSettingsCollectionRequestBuilder) ID(id string) *GovernanceRoleSettingRequestBuilder {
+ bb := &GovernanceRoleSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PrivilegedAccessRoleSettingsCollectionRequest is request for GovernanceRoleSetting collection
+type PrivilegedAccessRoleSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleSetting collection
+func (r *PrivilegedAccessRoleSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]GovernanceRoleSetting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleSetting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleSetting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for GovernanceRoleSetting collection
+func (r *PrivilegedAccessRoleSettingsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleSetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for GovernanceRoleSetting collection
+func (r *PrivilegedAccessRoleSettingsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleSetting) (resObj *GovernanceRoleSetting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedApprovalModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedApprovalModel.go
new file mode 100644
index 00000000..adc1038a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedApprovalModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PrivilegedApproval undocumented
+type PrivilegedApproval struct {
+ // Entity is the base model of PrivilegedApproval
+ Entity
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // RoleID undocumented
+ RoleID *string `json:"roleId,omitempty"`
+ // ApprovalType undocumented
+ ApprovalType *string `json:"approvalType,omitempty"`
+ // ApprovalState undocumented
+ ApprovalState *ApprovalState `json:"approvalState,omitempty"`
+ // ApprovalDuration undocumented
+ ApprovalDuration *time.Duration `json:"approvalDuration,omitempty"`
+ // RequestorReason undocumented
+ RequestorReason *string `json:"requestorReason,omitempty"`
+ // ApproverReason undocumented
+ ApproverReason *string `json:"approverReason,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // RequestNavigation undocumented
+ RequestNavigation *PrivilegedRoleAssignmentRequestObject `json:"request,omitempty"`
+ // RoleInfo undocumented
+ RoleInfo *PrivilegedRole `json:"roleInfo,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedApprovalRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedApprovalRequest.go
new file mode 100644
index 00000000..2a03bf1d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedApprovalRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PrivilegedApprovalRequestBuilder is request builder for PrivilegedApproval
+type PrivilegedApprovalRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedApprovalRequest
+func (b *PrivilegedApprovalRequestBuilder) Request() *PrivilegedApprovalRequest {
+ return &PrivilegedApprovalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedApprovalRequest is request for PrivilegedApproval
+type PrivilegedApprovalRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedApproval
+func (r *PrivilegedApprovalRequest) Get(ctx context.Context) (resObj *PrivilegedApproval, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedApproval
+func (r *PrivilegedApprovalRequest) Update(ctx context.Context, reqObj *PrivilegedApproval) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedApproval
+func (r *PrivilegedApprovalRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RequestNavigation is navigation property
+func (b *PrivilegedApprovalRequestBuilder) RequestNavigation() *PrivilegedRoleAssignmentRequestObjectRequestBuilder {
+ bb := &PrivilegedRoleAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/request"
+ return bb
+}
+
+// RoleInfo is navigation property
+func (b *PrivilegedApprovalRequestBuilder) RoleInfo() *PrivilegedRoleRequestBuilder {
+ bb := &PrivilegedRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleInfo"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedOperationEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedOperationEventModel.go
new file mode 100644
index 00000000..c4a80273
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedOperationEventModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PrivilegedOperationEvent undocumented
+type PrivilegedOperationEvent struct {
+ // Entity is the base model of PrivilegedOperationEvent
+ Entity
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // UserName undocumented
+ UserName *string `json:"userName,omitempty"`
+ // UserMail undocumented
+ UserMail *string `json:"userMail,omitempty"`
+ // RoleID undocumented
+ RoleID *string `json:"roleId,omitempty"`
+ // RoleName undocumented
+ RoleName *string `json:"roleName,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // CreationDateTime undocumented
+ CreationDateTime *time.Time `json:"creationDateTime,omitempty"`
+ // RequestorID undocumented
+ RequestorID *string `json:"requestorId,omitempty"`
+ // RequestorName undocumented
+ RequestorName *string `json:"requestorName,omitempty"`
+ // TenantID undocumented
+ TenantID *string `json:"tenantId,omitempty"`
+ // RequestType undocumented
+ RequestType *string `json:"requestType,omitempty"`
+ // AdditionalInformation undocumented
+ AdditionalInformation *string `json:"additionalInformation,omitempty"`
+ // ReferenceKey undocumented
+ ReferenceKey *string `json:"referenceKey,omitempty"`
+ // ReferenceSystem undocumented
+ ReferenceSystem *string `json:"referenceSystem,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedOperationEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedOperationEventRequest.go
new file mode 100644
index 00000000..2ff8fbbc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedOperationEventRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PrivilegedOperationEventRequestBuilder is request builder for PrivilegedOperationEvent
+type PrivilegedOperationEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedOperationEventRequest
+func (b *PrivilegedOperationEventRequestBuilder) Request() *PrivilegedOperationEventRequest {
+ return &PrivilegedOperationEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedOperationEventRequest is request for PrivilegedOperationEvent
+type PrivilegedOperationEventRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedOperationEvent
+func (r *PrivilegedOperationEventRequest) Get(ctx context.Context) (resObj *PrivilegedOperationEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedOperationEvent
+func (r *PrivilegedOperationEventRequest) Update(ctx context.Context, reqObj *PrivilegedOperationEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedOperationEvent
+func (r *PrivilegedOperationEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAction.go
new file mode 100644
index 00000000..c5c745fa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAction.go
@@ -0,0 +1,75 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PrivilegedRoleSelfActivateRequestParameter undocumented
+type PrivilegedRoleSelfActivateRequestParameter struct {
+ // Reason undocumented
+ Reason *string `json:"reason,omitempty"`
+ // Duration undocumented
+ Duration *string `json:"duration,omitempty"`
+ // TicketNumber undocumented
+ TicketNumber *string `json:"ticketNumber,omitempty"`
+ // TicketSystem undocumented
+ TicketSystem *string `json:"ticketSystem,omitempty"`
+}
+
+// PrivilegedRoleSelfDeactivateRequestParameter undocumented
+type PrivilegedRoleSelfDeactivateRequestParameter struct {
+}
+
+//
+type PrivilegedRoleSelfActivateRequestBuilder struct{ BaseRequestBuilder }
+
+// SelfActivate action undocumented
+func (b *PrivilegedRoleRequestBuilder) SelfActivate(reqObj *PrivilegedRoleSelfActivateRequestParameter) *PrivilegedRoleSelfActivateRequestBuilder {
+ bb := &PrivilegedRoleSelfActivateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/selfActivate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PrivilegedRoleSelfActivateRequest struct{ BaseRequest }
+
+//
+func (b *PrivilegedRoleSelfActivateRequestBuilder) Request() *PrivilegedRoleSelfActivateRequest {
+ return &PrivilegedRoleSelfActivateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PrivilegedRoleSelfActivateRequest) Post(ctx context.Context) (resObj *PrivilegedRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type PrivilegedRoleSelfDeactivateRequestBuilder struct{ BaseRequestBuilder }
+
+// SelfDeactivate action undocumented
+func (b *PrivilegedRoleRequestBuilder) SelfDeactivate(reqObj *PrivilegedRoleSelfDeactivateRequestParameter) *PrivilegedRoleSelfDeactivateRequestBuilder {
+ bb := &PrivilegedRoleSelfDeactivateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/selfDeactivate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PrivilegedRoleSelfDeactivateRequest struct{ BaseRequest }
+
+//
+func (b *PrivilegedRoleSelfDeactivateRequestBuilder) Request() *PrivilegedRoleSelfDeactivateRequest {
+ return &PrivilegedRoleSelfDeactivateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PrivilegedRoleSelfDeactivateRequest) Post(ctx context.Context) (resObj *PrivilegedRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentAction.go
new file mode 100644
index 00000000..662851b1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentAction.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PrivilegedRoleAssignmentMakePermanentRequestParameter undocumented
+type PrivilegedRoleAssignmentMakePermanentRequestParameter struct {
+ // Reason undocumented
+ Reason *string `json:"reason,omitempty"`
+ // TicketNumber undocumented
+ TicketNumber *string `json:"ticketNumber,omitempty"`
+ // TicketSystem undocumented
+ TicketSystem *string `json:"ticketSystem,omitempty"`
+}
+
+// PrivilegedRoleAssignmentMakeEligibleRequestParameter undocumented
+type PrivilegedRoleAssignmentMakeEligibleRequestParameter struct {
+}
+
+//
+type PrivilegedRoleAssignmentMakePermanentRequestBuilder struct{ BaseRequestBuilder }
+
+// MakePermanent action undocumented
+func (b *PrivilegedRoleAssignmentRequestBuilder) MakePermanent(reqObj *PrivilegedRoleAssignmentMakePermanentRequestParameter) *PrivilegedRoleAssignmentMakePermanentRequestBuilder {
+ bb := &PrivilegedRoleAssignmentMakePermanentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/makePermanent"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PrivilegedRoleAssignmentMakePermanentRequest struct{ BaseRequest }
+
+//
+func (b *PrivilegedRoleAssignmentMakePermanentRequestBuilder) Request() *PrivilegedRoleAssignmentMakePermanentRequest {
+ return &PrivilegedRoleAssignmentMakePermanentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PrivilegedRoleAssignmentMakePermanentRequest) Post(ctx context.Context) (resObj *PrivilegedRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type PrivilegedRoleAssignmentMakeEligibleRequestBuilder struct{ BaseRequestBuilder }
+
+// MakeEligible action undocumented
+func (b *PrivilegedRoleAssignmentRequestBuilder) MakeEligible(reqObj *PrivilegedRoleAssignmentMakeEligibleRequestParameter) *PrivilegedRoleAssignmentMakeEligibleRequestBuilder {
+ bb := &PrivilegedRoleAssignmentMakeEligibleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/makeEligible"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PrivilegedRoleAssignmentMakeEligibleRequest struct{ BaseRequest }
+
+//
+func (b *PrivilegedRoleAssignmentMakeEligibleRequestBuilder) Request() *PrivilegedRoleAssignmentMakeEligibleRequest {
+ return &PrivilegedRoleAssignmentMakeEligibleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PrivilegedRoleAssignmentMakeEligibleRequest) Post(ctx context.Context) (resObj *PrivilegedRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentModel.go
new file mode 100644
index 00000000..a151a71d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PrivilegedRoleAssignment undocumented
+type PrivilegedRoleAssignment struct {
+ // Entity is the base model of PrivilegedRoleAssignment
+ Entity
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // RoleID undocumented
+ RoleID *string `json:"roleId,omitempty"`
+ // IsElevated undocumented
+ IsElevated *bool `json:"isElevated,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // ResultMessage undocumented
+ ResultMessage *string `json:"resultMessage,omitempty"`
+ // RoleInfo undocumented
+ RoleInfo *PrivilegedRole `json:"roleInfo,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentRequest.go
new file mode 100644
index 00000000..a52f9513
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PrivilegedRoleAssignmentRequestBuilder is request builder for PrivilegedRoleAssignment
+type PrivilegedRoleAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedRoleAssignmentRequest
+func (b *PrivilegedRoleAssignmentRequestBuilder) Request() *PrivilegedRoleAssignmentRequest {
+ return &PrivilegedRoleAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedRoleAssignmentRequest is request for PrivilegedRoleAssignment
+type PrivilegedRoleAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedRoleAssignment
+func (r *PrivilegedRoleAssignmentRequest) Get(ctx context.Context) (resObj *PrivilegedRoleAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedRoleAssignment
+func (r *PrivilegedRoleAssignmentRequest) Update(ctx context.Context, reqObj *PrivilegedRoleAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedRoleAssignment
+func (r *PrivilegedRoleAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RoleInfo is navigation property
+func (b *PrivilegedRoleAssignmentRequestBuilder) RoleInfo() *PrivilegedRoleRequestBuilder {
+ bb := &PrivilegedRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleInfo"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectAction.go
new file mode 100644
index 00000000..c639566a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectAction.go
@@ -0,0 +1,36 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PrivilegedRoleAssignmentRequestObjectCancelRequestParameter undocumented
+type PrivilegedRoleAssignmentRequestObjectCancelRequestParameter struct {
+}
+
+//
+type PrivilegedRoleAssignmentRequestObjectCancelRequestBuilder struct{ BaseRequestBuilder }
+
+// Cancel action undocumented
+func (b *PrivilegedRoleAssignmentRequestObjectRequestBuilder) Cancel(reqObj *PrivilegedRoleAssignmentRequestObjectCancelRequestParameter) *PrivilegedRoleAssignmentRequestObjectCancelRequestBuilder {
+ bb := &PrivilegedRoleAssignmentRequestObjectCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancel"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PrivilegedRoleAssignmentRequestObjectCancelRequest struct{ BaseRequest }
+
+//
+func (b *PrivilegedRoleAssignmentRequestObjectCancelRequestBuilder) Request() *PrivilegedRoleAssignmentRequestObjectCancelRequest {
+ return &PrivilegedRoleAssignmentRequestObjectCancelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PrivilegedRoleAssignmentRequestObjectCancelRequest) Post(ctx context.Context) (resObj *PrivilegedRoleAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectModel.go
new file mode 100644
index 00000000..523be52b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PrivilegedRoleAssignmentRequestObject undocumented
+type PrivilegedRoleAssignmentRequestObject struct {
+ // Entity is the base model of PrivilegedRoleAssignmentRequestObject
+ Entity
+ // Schedule undocumented
+ Schedule *GovernanceSchedule `json:"schedule,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // RoleID undocumented
+ RoleID *string `json:"roleId,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // AssignmentState undocumented
+ AssignmentState *string `json:"assignmentState,omitempty"`
+ // RequestedDateTime undocumented
+ RequestedDateTime *time.Time `json:"requestedDateTime,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // Duration undocumented
+ Duration *string `json:"duration,omitempty"`
+ // Reason undocumented
+ Reason *string `json:"reason,omitempty"`
+ // TicketNumber undocumented
+ TicketNumber *string `json:"ticketNumber,omitempty"`
+ // TicketSystem undocumented
+ TicketSystem *string `json:"ticketSystem,omitempty"`
+ // RoleInfo undocumented
+ RoleInfo *PrivilegedRole `json:"roleInfo,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectRequest.go
new file mode 100644
index 00000000..5d27da07
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleAssignmentRequestObjectRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PrivilegedRoleAssignmentRequestObjectRequestBuilder is request builder for PrivilegedRoleAssignmentRequestObject
+type PrivilegedRoleAssignmentRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedRoleAssignmentRequestObjectRequest
+func (b *PrivilegedRoleAssignmentRequestObjectRequestBuilder) Request() *PrivilegedRoleAssignmentRequestObjectRequest {
+ return &PrivilegedRoleAssignmentRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedRoleAssignmentRequestObjectRequest is request for PrivilegedRoleAssignmentRequestObject
+type PrivilegedRoleAssignmentRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedRoleAssignmentRequestObject
+func (r *PrivilegedRoleAssignmentRequestObjectRequest) Get(ctx context.Context) (resObj *PrivilegedRoleAssignmentRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedRoleAssignmentRequestObject
+func (r *PrivilegedRoleAssignmentRequestObjectRequest) Update(ctx context.Context, reqObj *PrivilegedRoleAssignmentRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedRoleAssignmentRequestObject
+func (r *PrivilegedRoleAssignmentRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RoleInfo is navigation property
+func (b *PrivilegedRoleAssignmentRequestObjectRequestBuilder) RoleInfo() *PrivilegedRoleRequestBuilder {
+ bb := &PrivilegedRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleInfo"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleModel.go
new file mode 100644
index 00000000..fd66f0bd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PrivilegedRole undocumented
+type PrivilegedRole struct {
+ // Entity is the base model of PrivilegedRole
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Settings undocumented
+ Settings *PrivilegedRoleSettings `json:"settings,omitempty"`
+ // Assignments undocumented
+ Assignments []PrivilegedRoleAssignment `json:"assignments,omitempty"`
+ // Summary undocumented
+ Summary *PrivilegedRoleSummary `json:"summary,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleRequest.go
new file mode 100644
index 00000000..714e2b6e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleRequest.go
@@ -0,0 +1,153 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PrivilegedRoleRequestBuilder is request builder for PrivilegedRole
+type PrivilegedRoleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedRoleRequest
+func (b *PrivilegedRoleRequestBuilder) Request() *PrivilegedRoleRequest {
+ return &PrivilegedRoleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedRoleRequest is request for PrivilegedRole
+type PrivilegedRoleRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedRole
+func (r *PrivilegedRoleRequest) Get(ctx context.Context) (resObj *PrivilegedRole, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedRole
+func (r *PrivilegedRoleRequest) Update(ctx context.Context, reqObj *PrivilegedRole) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedRole
+func (r *PrivilegedRoleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for PrivilegedRoleAssignment collection
+func (b *PrivilegedRoleRequestBuilder) Assignments() *PrivilegedRoleAssignmentsCollectionRequestBuilder {
+ bb := &PrivilegedRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// PrivilegedRoleAssignmentsCollectionRequestBuilder is request builder for PrivilegedRoleAssignment collection
+type PrivilegedRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PrivilegedRoleAssignment collection
+func (b *PrivilegedRoleAssignmentsCollectionRequestBuilder) Request() *PrivilegedRoleAssignmentsCollectionRequest {
+ return &PrivilegedRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PrivilegedRoleAssignment item
+func (b *PrivilegedRoleAssignmentsCollectionRequestBuilder) ID(id string) *PrivilegedRoleAssignmentRequestBuilder {
+ bb := &PrivilegedRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PrivilegedRoleAssignmentsCollectionRequest is request for PrivilegedRoleAssignment collection
+type PrivilegedRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PrivilegedRoleAssignment collection
+func (r *PrivilegedRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PrivilegedRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PrivilegedRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PrivilegedRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PrivilegedRoleAssignment collection
+func (r *PrivilegedRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]PrivilegedRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PrivilegedRoleAssignment collection
+func (r *PrivilegedRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedRoleAssignment) (resObj *PrivilegedRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Settings is navigation property
+func (b *PrivilegedRoleRequestBuilder) Settings() *PrivilegedRoleSettingsRequestBuilder {
+ bb := &PrivilegedRoleSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settings"
+ return bb
+}
+
+// Summary is navigation property
+func (b *PrivilegedRoleRequestBuilder) Summary() *PrivilegedRoleSummaryRequestBuilder {
+ bb := &PrivilegedRoleSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/summary"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleSettingsModel.go
new file mode 100644
index 00000000..07aefeca
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleSettingsModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PrivilegedRoleSettings undocumented
+type PrivilegedRoleSettings struct {
+ // Entity is the base model of PrivilegedRoleSettings
+ Entity
+ // ApproverIDs undocumented
+ ApproverIDs []string `json:"approverIds,omitempty"`
+ // MinElevationDuration undocumented
+ MinElevationDuration *time.Duration `json:"minElevationDuration,omitempty"`
+ // MaxElavationDuration undocumented
+ MaxElavationDuration *time.Duration `json:"maxElavationDuration,omitempty"`
+ // ElevationDuration undocumented
+ ElevationDuration *time.Duration `json:"elevationDuration,omitempty"`
+ // NotificationToUserOnElevation undocumented
+ NotificationToUserOnElevation *bool `json:"notificationToUserOnElevation,omitempty"`
+ // TicketingInfoOnElevation undocumented
+ TicketingInfoOnElevation *bool `json:"ticketingInfoOnElevation,omitempty"`
+ // MFAOnElevation undocumented
+ MFAOnElevation *bool `json:"mfaOnElevation,omitempty"`
+ // LastGlobalAdmin undocumented
+ LastGlobalAdmin *bool `json:"lastGlobalAdmin,omitempty"`
+ // IsMFAOnElevationConfigurable undocumented
+ IsMFAOnElevationConfigurable *bool `json:"isMfaOnElevationConfigurable,omitempty"`
+ // ApprovalOnElevation undocumented
+ ApprovalOnElevation *bool `json:"approvalOnElevation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleSettingsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleSettingsRequest.go
new file mode 100644
index 00000000..a7f94aa1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleSettingsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PrivilegedRoleSettingsRequestBuilder is request builder for PrivilegedRoleSettings
+type PrivilegedRoleSettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedRoleSettingsRequest
+func (b *PrivilegedRoleSettingsRequestBuilder) Request() *PrivilegedRoleSettingsRequest {
+ return &PrivilegedRoleSettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedRoleSettingsRequest is request for PrivilegedRoleSettings
+type PrivilegedRoleSettingsRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedRoleSettings
+func (r *PrivilegedRoleSettingsRequest) Get(ctx context.Context) (resObj *PrivilegedRoleSettings, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedRoleSettings
+func (r *PrivilegedRoleSettingsRequest) Update(ctx context.Context, reqObj *PrivilegedRoleSettings) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedRoleSettings
+func (r *PrivilegedRoleSettingsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleSummaryModel.go
new file mode 100644
index 00000000..ea68d4ad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleSummaryModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PrivilegedRoleSummary undocumented
+type PrivilegedRoleSummary struct {
+ // Entity is the base model of PrivilegedRoleSummary
+ Entity
+ // Status undocumented
+ Status *RoleSummaryStatus `json:"status,omitempty"`
+ // UsersCount undocumented
+ UsersCount *int `json:"usersCount,omitempty"`
+ // ManagedCount undocumented
+ ManagedCount *int `json:"managedCount,omitempty"`
+ // ElevatedCount undocumented
+ ElevatedCount *int `json:"elevatedCount,omitempty"`
+ // MFAEnabled undocumented
+ MFAEnabled *bool `json:"mfaEnabled,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleSummaryRequest.go
new file mode 100644
index 00000000..bec977bc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedRoleSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PrivilegedRoleSummaryRequestBuilder is request builder for PrivilegedRoleSummary
+type PrivilegedRoleSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedRoleSummaryRequest
+func (b *PrivilegedRoleSummaryRequestBuilder) Request() *PrivilegedRoleSummaryRequest {
+ return &PrivilegedRoleSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedRoleSummaryRequest is request for PrivilegedRoleSummary
+type PrivilegedRoleSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedRoleSummary
+func (r *PrivilegedRoleSummaryRequest) Get(ctx context.Context) (resObj *PrivilegedRoleSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedRoleSummary
+func (r *PrivilegedRoleSummaryRequest) Update(ctx context.Context, reqObj *PrivilegedRoleSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedRoleSummary
+func (r *PrivilegedRoleSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedSignupStatusAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedSignupStatusAction.go
new file mode 100644
index 00000000..fa98ee35
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedSignupStatusAction.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PrivilegedSignupStatusCollectionSignUpRequestParameter undocumented
+type PrivilegedSignupStatusCollectionSignUpRequestParameter struct {
+}
+
+// PrivilegedSignupStatusCollectionCompleteSetupRequestParameter undocumented
+type PrivilegedSignupStatusCollectionCompleteSetupRequestParameter struct {
+ // TenantSetupInfo undocumented
+ TenantSetupInfo *TenantSetupInfo `json:"tenantSetupInfo,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedSignupStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedSignupStatusModel.go
new file mode 100644
index 00000000..476b1e06
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedSignupStatusModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PrivilegedSignupStatus undocumented
+type PrivilegedSignupStatus struct {
+ // Entity is the base model of PrivilegedSignupStatus
+ Entity
+ // IsRegistered undocumented
+ IsRegistered *bool `json:"isRegistered,omitempty"`
+ // Status undocumented
+ Status *SetupStatus `json:"status,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedSignupStatusRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedSignupStatusRequest.go
new file mode 100644
index 00000000..a5b283ee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PrivilegedSignupStatusRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PrivilegedSignupStatusRequestBuilder is request builder for PrivilegedSignupStatus
+type PrivilegedSignupStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedSignupStatusRequest
+func (b *PrivilegedSignupStatusRequestBuilder) Request() *PrivilegedSignupStatusRequest {
+ return &PrivilegedSignupStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedSignupStatusRequest is request for PrivilegedSignupStatus
+type PrivilegedSignupStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedSignupStatus
+func (r *PrivilegedSignupStatusRequest) Get(ctx context.Context) (resObj *PrivilegedSignupStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedSignupStatus
+func (r *PrivilegedSignupStatusRequest) Update(ctx context.Context, reqObj *PrivilegedSignupStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedSignupStatus
+func (r *PrivilegedSignupStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProcessIntegrityLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProcessIntegrityLevelEnum.go
new file mode 100644
index 00000000..a5aa8ba5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProcessIntegrityLevelEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProcessIntegrityLevel undocumented
+type ProcessIntegrityLevel int
+
+const (
+ // ProcessIntegrityLevelVUnknown undocumented
+ ProcessIntegrityLevelVUnknown ProcessIntegrityLevel = 0
+ // ProcessIntegrityLevelVUntrusted undocumented
+ ProcessIntegrityLevelVUntrusted ProcessIntegrityLevel = 1
+ // ProcessIntegrityLevelVLow undocumented
+ ProcessIntegrityLevelVLow ProcessIntegrityLevel = 2
+ // ProcessIntegrityLevelVMedium undocumented
+ ProcessIntegrityLevelVMedium ProcessIntegrityLevel = 3
+ // ProcessIntegrityLevelVHigh undocumented
+ ProcessIntegrityLevelVHigh ProcessIntegrityLevel = 4
+ // ProcessIntegrityLevelVSystem undocumented
+ ProcessIntegrityLevelVSystem ProcessIntegrityLevel = 5
+ // ProcessIntegrityLevelVUnknownFutureValue undocumented
+ ProcessIntegrityLevelVUnknownFutureValue ProcessIntegrityLevel = 127
+)
+
+// ProcessIntegrityLevelPUnknown returns a pointer to ProcessIntegrityLevelVUnknown
+func ProcessIntegrityLevelPUnknown() *ProcessIntegrityLevel {
+ v := ProcessIntegrityLevelVUnknown
+ return &v
+}
+
+// ProcessIntegrityLevelPUntrusted returns a pointer to ProcessIntegrityLevelVUntrusted
+func ProcessIntegrityLevelPUntrusted() *ProcessIntegrityLevel {
+ v := ProcessIntegrityLevelVUntrusted
+ return &v
+}
+
+// ProcessIntegrityLevelPLow returns a pointer to ProcessIntegrityLevelVLow
+func ProcessIntegrityLevelPLow() *ProcessIntegrityLevel {
+ v := ProcessIntegrityLevelVLow
+ return &v
+}
+
+// ProcessIntegrityLevelPMedium returns a pointer to ProcessIntegrityLevelVMedium
+func ProcessIntegrityLevelPMedium() *ProcessIntegrityLevel {
+ v := ProcessIntegrityLevelVMedium
+ return &v
+}
+
+// ProcessIntegrityLevelPHigh returns a pointer to ProcessIntegrityLevelVHigh
+func ProcessIntegrityLevelPHigh() *ProcessIntegrityLevel {
+ v := ProcessIntegrityLevelVHigh
+ return &v
+}
+
+// ProcessIntegrityLevelPSystem returns a pointer to ProcessIntegrityLevelVSystem
+func ProcessIntegrityLevelPSystem() *ProcessIntegrityLevel {
+ v := ProcessIntegrityLevelVSystem
+ return &v
+}
+
+// ProcessIntegrityLevelPUnknownFutureValue returns a pointer to ProcessIntegrityLevelVUnknownFutureValue
+func ProcessIntegrityLevelPUnknownFutureValue() *ProcessIntegrityLevel {
+ v := ProcessIntegrityLevelVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProcessModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProcessModel.go
new file mode 100644
index 00000000..9ce88c9d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProcessModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Process undocumented
+type Process struct {
+ // Object is the base model of Process
+ Object
+ // AccountName undocumented
+ AccountName *string `json:"accountName,omitempty"`
+ // CommandLine undocumented
+ CommandLine *string `json:"commandLine,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // FileHash undocumented
+ FileHash *FileHash `json:"fileHash,omitempty"`
+ // IntegrityLevel undocumented
+ IntegrityLevel *ProcessIntegrityLevel `json:"integrityLevel,omitempty"`
+ // IsElevated undocumented
+ IsElevated *bool `json:"isElevated,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ParentProcessCreatedDateTime undocumented
+ ParentProcessCreatedDateTime *time.Time `json:"parentProcessCreatedDateTime,omitempty"`
+ // ParentProcessID undocumented
+ ParentProcessID *int `json:"parentProcessId,omitempty"`
+ // ParentProcessName undocumented
+ ParentProcessName *string `json:"parentProcessName,omitempty"`
+ // Path undocumented
+ Path *string `json:"path,omitempty"`
+ // ProcessID undocumented
+ ProcessID *int `json:"processId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProfileModel.go
new file mode 100644
index 00000000..b621d95e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProfileModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Profile undocumented
+type Profile struct {
+ // Entity is the base model of Profile
+ Entity
+ // Account undocumented
+ Account []UserAccountInformation `json:"account,omitempty"`
+ // Anniversaries undocumented
+ Anniversaries []PersonAnniversary `json:"anniversaries,omitempty"`
+ // EducationalActivities undocumented
+ EducationalActivities []EducationalActivity `json:"educationalActivities,omitempty"`
+ // Emails undocumented
+ Emails []ItemEmail `json:"emails,omitempty"`
+ // Interests undocumented
+ Interests []PersonInterest `json:"interests,omitempty"`
+ // Languages undocumented
+ Languages []LanguageProficiency `json:"languages,omitempty"`
+ // Names undocumented
+ Names []PersonName `json:"names,omitempty"`
+ // Phones undocumented
+ Phones []ItemPhone `json:"phones,omitempty"`
+ // Positions undocumented
+ Positions []WorkPosition `json:"positions,omitempty"`
+ // Projects undocumented
+ Projects []ProjectParticipation `json:"projects,omitempty"`
+ // Skills undocumented
+ Skills []SkillProficiency `json:"skills,omitempty"`
+ // WebAccounts undocumented
+ WebAccounts []WebAccount `json:"webAccounts,omitempty"`
+ // Websites undocumented
+ Websites []PersonWebsite `json:"websites,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProfilePhotoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProfilePhotoModel.go
new file mode 100644
index 00000000..df22c7f5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProfilePhotoModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProfilePhoto undocumented
+type ProfilePhoto struct {
+ // Entity is the base model of ProfilePhoto
+ Entity
+ // Height undocumented
+ Height *int `json:"height,omitempty"`
+ // Width undocumented
+ Width *int `json:"width,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProfilePhotoRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProfilePhotoRequest.go
new file mode 100644
index 00000000..1ea4be6d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProfilePhotoRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ProfilePhotoRequestBuilder is request builder for ProfilePhoto
+type ProfilePhotoRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ProfilePhotoRequest
+func (b *ProfilePhotoRequestBuilder) Request() *ProfilePhotoRequest {
+ return &ProfilePhotoRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ProfilePhotoRequest is request for ProfilePhoto
+type ProfilePhotoRequest struct{ BaseRequest }
+
+// Get performs GET request for ProfilePhoto
+func (r *ProfilePhotoRequest) Get(ctx context.Context) (resObj *ProfilePhoto, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ProfilePhoto
+func (r *ProfilePhotoRequest) Update(ctx context.Context, reqObj *ProfilePhoto) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ProfilePhoto
+func (r *ProfilePhotoRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProfileRequest.go
new file mode 100644
index 00000000..6a92ad6a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProfileRequest.go
@@ -0,0 +1,1267 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ProfileRequestBuilder is request builder for Profile
+type ProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ProfileRequest
+func (b *ProfileRequestBuilder) Request() *ProfileRequest {
+ return &ProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ProfileRequest is request for Profile
+type ProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for Profile
+func (r *ProfileRequest) Get(ctx context.Context) (resObj *Profile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Profile
+func (r *ProfileRequest) Update(ctx context.Context, reqObj *Profile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Profile
+func (r *ProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Account returns request builder for UserAccountInformation collection
+func (b *ProfileRequestBuilder) Account() *ProfileAccountCollectionRequestBuilder {
+ bb := &ProfileAccountCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
+
+// ProfileAccountCollectionRequestBuilder is request builder for UserAccountInformation collection
+type ProfileAccountCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserAccountInformation collection
+func (b *ProfileAccountCollectionRequestBuilder) Request() *ProfileAccountCollectionRequest {
+ return &ProfileAccountCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserAccountInformation item
+func (b *ProfileAccountCollectionRequestBuilder) ID(id string) *UserAccountInformationRequestBuilder {
+ bb := &UserAccountInformationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileAccountCollectionRequest is request for UserAccountInformation collection
+type ProfileAccountCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserAccountInformation collection
+func (r *ProfileAccountCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UserAccountInformation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserAccountInformation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserAccountInformation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserAccountInformation collection
+func (r *ProfileAccountCollectionRequest) Get(ctx context.Context) ([]UserAccountInformation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UserAccountInformation collection
+func (r *ProfileAccountCollectionRequest) Add(ctx context.Context, reqObj *UserAccountInformation) (resObj *UserAccountInformation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Anniversaries returns request builder for PersonAnniversary collection
+func (b *ProfileRequestBuilder) Anniversaries() *ProfileAnniversariesCollectionRequestBuilder {
+ bb := &ProfileAnniversariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/anniversaries"
+ return bb
+}
+
+// ProfileAnniversariesCollectionRequestBuilder is request builder for PersonAnniversary collection
+type ProfileAnniversariesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PersonAnniversary collection
+func (b *ProfileAnniversariesCollectionRequestBuilder) Request() *ProfileAnniversariesCollectionRequest {
+ return &ProfileAnniversariesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PersonAnniversary item
+func (b *ProfileAnniversariesCollectionRequestBuilder) ID(id string) *PersonAnniversaryRequestBuilder {
+ bb := &PersonAnniversaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileAnniversariesCollectionRequest is request for PersonAnniversary collection
+type ProfileAnniversariesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PersonAnniversary collection
+func (r *ProfileAnniversariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PersonAnniversary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PersonAnniversary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PersonAnniversary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PersonAnniversary collection
+func (r *ProfileAnniversariesCollectionRequest) Get(ctx context.Context) ([]PersonAnniversary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PersonAnniversary collection
+func (r *ProfileAnniversariesCollectionRequest) Add(ctx context.Context, reqObj *PersonAnniversary) (resObj *PersonAnniversary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// EducationalActivities returns request builder for EducationalActivity collection
+func (b *ProfileRequestBuilder) EducationalActivities() *ProfileEducationalActivitiesCollectionRequestBuilder {
+ bb := &ProfileEducationalActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/educationalActivities"
+ return bb
+}
+
+// ProfileEducationalActivitiesCollectionRequestBuilder is request builder for EducationalActivity collection
+type ProfileEducationalActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationalActivity collection
+func (b *ProfileEducationalActivitiesCollectionRequestBuilder) Request() *ProfileEducationalActivitiesCollectionRequest {
+ return &ProfileEducationalActivitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationalActivity item
+func (b *ProfileEducationalActivitiesCollectionRequestBuilder) ID(id string) *EducationalActivityRequestBuilder {
+ bb := &EducationalActivityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileEducationalActivitiesCollectionRequest is request for EducationalActivity collection
+type ProfileEducationalActivitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationalActivity collection
+func (r *ProfileEducationalActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]EducationalActivity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationalActivity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationalActivity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for EducationalActivity collection
+func (r *ProfileEducationalActivitiesCollectionRequest) Get(ctx context.Context) ([]EducationalActivity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for EducationalActivity collection
+func (r *ProfileEducationalActivitiesCollectionRequest) Add(ctx context.Context, reqObj *EducationalActivity) (resObj *EducationalActivity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Emails returns request builder for ItemEmail collection
+func (b *ProfileRequestBuilder) Emails() *ProfileEmailsCollectionRequestBuilder {
+ bb := &ProfileEmailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/emails"
+ return bb
+}
+
+// ProfileEmailsCollectionRequestBuilder is request builder for ItemEmail collection
+type ProfileEmailsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemEmail collection
+func (b *ProfileEmailsCollectionRequestBuilder) Request() *ProfileEmailsCollectionRequest {
+ return &ProfileEmailsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemEmail item
+func (b *ProfileEmailsCollectionRequestBuilder) ID(id string) *ItemEmailRequestBuilder {
+ bb := &ItemEmailRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileEmailsCollectionRequest is request for ItemEmail collection
+type ProfileEmailsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemEmail collection
+func (r *ProfileEmailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ItemEmail, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemEmail
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemEmail
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemEmail collection
+func (r *ProfileEmailsCollectionRequest) Get(ctx context.Context) ([]ItemEmail, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ItemEmail collection
+func (r *ProfileEmailsCollectionRequest) Add(ctx context.Context, reqObj *ItemEmail) (resObj *ItemEmail, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Interests returns request builder for PersonInterest collection
+func (b *ProfileRequestBuilder) Interests() *ProfileInterestsCollectionRequestBuilder {
+ bb := &ProfileInterestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/interests"
+ return bb
+}
+
+// ProfileInterestsCollectionRequestBuilder is request builder for PersonInterest collection
+type ProfileInterestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PersonInterest collection
+func (b *ProfileInterestsCollectionRequestBuilder) Request() *ProfileInterestsCollectionRequest {
+ return &ProfileInterestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PersonInterest item
+func (b *ProfileInterestsCollectionRequestBuilder) ID(id string) *PersonInterestRequestBuilder {
+ bb := &PersonInterestRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileInterestsCollectionRequest is request for PersonInterest collection
+type ProfileInterestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PersonInterest collection
+func (r *ProfileInterestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PersonInterest, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PersonInterest
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PersonInterest
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PersonInterest collection
+func (r *ProfileInterestsCollectionRequest) Get(ctx context.Context) ([]PersonInterest, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PersonInterest collection
+func (r *ProfileInterestsCollectionRequest) Add(ctx context.Context, reqObj *PersonInterest) (resObj *PersonInterest, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Languages returns request builder for LanguageProficiency collection
+func (b *ProfileRequestBuilder) Languages() *ProfileLanguagesCollectionRequestBuilder {
+ bb := &ProfileLanguagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/languages"
+ return bb
+}
+
+// ProfileLanguagesCollectionRequestBuilder is request builder for LanguageProficiency collection
+type ProfileLanguagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for LanguageProficiency collection
+func (b *ProfileLanguagesCollectionRequestBuilder) Request() *ProfileLanguagesCollectionRequest {
+ return &ProfileLanguagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for LanguageProficiency item
+func (b *ProfileLanguagesCollectionRequestBuilder) ID(id string) *LanguageProficiencyRequestBuilder {
+ bb := &LanguageProficiencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileLanguagesCollectionRequest is request for LanguageProficiency collection
+type ProfileLanguagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for LanguageProficiency collection
+func (r *ProfileLanguagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]LanguageProficiency, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []LanguageProficiency
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []LanguageProficiency
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for LanguageProficiency collection
+func (r *ProfileLanguagesCollectionRequest) Get(ctx context.Context) ([]LanguageProficiency, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for LanguageProficiency collection
+func (r *ProfileLanguagesCollectionRequest) Add(ctx context.Context, reqObj *LanguageProficiency) (resObj *LanguageProficiency, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Names returns request builder for PersonName collection
+func (b *ProfileRequestBuilder) Names() *ProfileNamesCollectionRequestBuilder {
+ bb := &ProfileNamesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/names"
+ return bb
+}
+
+// ProfileNamesCollectionRequestBuilder is request builder for PersonName collection
+type ProfileNamesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PersonName collection
+func (b *ProfileNamesCollectionRequestBuilder) Request() *ProfileNamesCollectionRequest {
+ return &ProfileNamesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PersonName item
+func (b *ProfileNamesCollectionRequestBuilder) ID(id string) *PersonNameRequestBuilder {
+ bb := &PersonNameRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileNamesCollectionRequest is request for PersonName collection
+type ProfileNamesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PersonName collection
+func (r *ProfileNamesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PersonName, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PersonName
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PersonName
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PersonName collection
+func (r *ProfileNamesCollectionRequest) Get(ctx context.Context) ([]PersonName, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PersonName collection
+func (r *ProfileNamesCollectionRequest) Add(ctx context.Context, reqObj *PersonName) (resObj *PersonName, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Phones returns request builder for ItemPhone collection
+func (b *ProfileRequestBuilder) Phones() *ProfilePhonesCollectionRequestBuilder {
+ bb := &ProfilePhonesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/phones"
+ return bb
+}
+
+// ProfilePhonesCollectionRequestBuilder is request builder for ItemPhone collection
+type ProfilePhonesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemPhone collection
+func (b *ProfilePhonesCollectionRequestBuilder) Request() *ProfilePhonesCollectionRequest {
+ return &ProfilePhonesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemPhone item
+func (b *ProfilePhonesCollectionRequestBuilder) ID(id string) *ItemPhoneRequestBuilder {
+ bb := &ItemPhoneRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfilePhonesCollectionRequest is request for ItemPhone collection
+type ProfilePhonesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemPhone collection
+func (r *ProfilePhonesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ItemPhone, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemPhone
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemPhone
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ItemPhone collection
+func (r *ProfilePhonesCollectionRequest) Get(ctx context.Context) ([]ItemPhone, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ItemPhone collection
+func (r *ProfilePhonesCollectionRequest) Add(ctx context.Context, reqObj *ItemPhone) (resObj *ItemPhone, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Positions returns request builder for WorkPosition collection
+func (b *ProfileRequestBuilder) Positions() *ProfilePositionsCollectionRequestBuilder {
+ bb := &ProfilePositionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/positions"
+ return bb
+}
+
+// ProfilePositionsCollectionRequestBuilder is request builder for WorkPosition collection
+type ProfilePositionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkPosition collection
+func (b *ProfilePositionsCollectionRequestBuilder) Request() *ProfilePositionsCollectionRequest {
+ return &ProfilePositionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkPosition item
+func (b *ProfilePositionsCollectionRequestBuilder) ID(id string) *WorkPositionRequestBuilder {
+ bb := &WorkPositionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfilePositionsCollectionRequest is request for WorkPosition collection
+type ProfilePositionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkPosition collection
+func (r *ProfilePositionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WorkPosition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkPosition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkPosition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkPosition collection
+func (r *ProfilePositionsCollectionRequest) Get(ctx context.Context) ([]WorkPosition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WorkPosition collection
+func (r *ProfilePositionsCollectionRequest) Add(ctx context.Context, reqObj *WorkPosition) (resObj *WorkPosition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Projects returns request builder for ProjectParticipation collection
+func (b *ProfileRequestBuilder) Projects() *ProfileProjectsCollectionRequestBuilder {
+ bb := &ProfileProjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/projects"
+ return bb
+}
+
+// ProfileProjectsCollectionRequestBuilder is request builder for ProjectParticipation collection
+type ProfileProjectsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProjectParticipation collection
+func (b *ProfileProjectsCollectionRequestBuilder) Request() *ProfileProjectsCollectionRequest {
+ return &ProfileProjectsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProjectParticipation item
+func (b *ProfileProjectsCollectionRequestBuilder) ID(id string) *ProjectParticipationRequestBuilder {
+ bb := &ProjectParticipationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileProjectsCollectionRequest is request for ProjectParticipation collection
+type ProfileProjectsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProjectParticipation collection
+func (r *ProfileProjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ProjectParticipation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProjectParticipation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProjectParticipation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProjectParticipation collection
+func (r *ProfileProjectsCollectionRequest) Get(ctx context.Context) ([]ProjectParticipation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ProjectParticipation collection
+func (r *ProfileProjectsCollectionRequest) Add(ctx context.Context, reqObj *ProjectParticipation) (resObj *ProjectParticipation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Skills returns request builder for SkillProficiency collection
+func (b *ProfileRequestBuilder) Skills() *ProfileSkillsCollectionRequestBuilder {
+ bb := &ProfileSkillsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/skills"
+ return bb
+}
+
+// ProfileSkillsCollectionRequestBuilder is request builder for SkillProficiency collection
+type ProfileSkillsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SkillProficiency collection
+func (b *ProfileSkillsCollectionRequestBuilder) Request() *ProfileSkillsCollectionRequest {
+ return &ProfileSkillsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SkillProficiency item
+func (b *ProfileSkillsCollectionRequestBuilder) ID(id string) *SkillProficiencyRequestBuilder {
+ bb := &SkillProficiencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileSkillsCollectionRequest is request for SkillProficiency collection
+type ProfileSkillsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SkillProficiency collection
+func (r *ProfileSkillsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SkillProficiency, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SkillProficiency
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SkillProficiency
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SkillProficiency collection
+func (r *ProfileSkillsCollectionRequest) Get(ctx context.Context) ([]SkillProficiency, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SkillProficiency collection
+func (r *ProfileSkillsCollectionRequest) Add(ctx context.Context, reqObj *SkillProficiency) (resObj *SkillProficiency, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WebAccounts returns request builder for WebAccount collection
+func (b *ProfileRequestBuilder) WebAccounts() *ProfileWebAccountsCollectionRequestBuilder {
+ bb := &ProfileWebAccountsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/webAccounts"
+ return bb
+}
+
+// ProfileWebAccountsCollectionRequestBuilder is request builder for WebAccount collection
+type ProfileWebAccountsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WebAccount collection
+func (b *ProfileWebAccountsCollectionRequestBuilder) Request() *ProfileWebAccountsCollectionRequest {
+ return &ProfileWebAccountsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WebAccount item
+func (b *ProfileWebAccountsCollectionRequestBuilder) ID(id string) *WebAccountRequestBuilder {
+ bb := &WebAccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileWebAccountsCollectionRequest is request for WebAccount collection
+type ProfileWebAccountsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WebAccount collection
+func (r *ProfileWebAccountsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WebAccount, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WebAccount
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WebAccount
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WebAccount collection
+func (r *ProfileWebAccountsCollectionRequest) Get(ctx context.Context) ([]WebAccount, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WebAccount collection
+func (r *ProfileWebAccountsCollectionRequest) Add(ctx context.Context, reqObj *WebAccount) (resObj *WebAccount, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Websites returns request builder for PersonWebsite collection
+func (b *ProfileRequestBuilder) Websites() *ProfileWebsitesCollectionRequestBuilder {
+ bb := &ProfileWebsitesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/websites"
+ return bb
+}
+
+// ProfileWebsitesCollectionRequestBuilder is request builder for PersonWebsite collection
+type ProfileWebsitesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PersonWebsite collection
+func (b *ProfileWebsitesCollectionRequestBuilder) Request() *ProfileWebsitesCollectionRequest {
+ return &ProfileWebsitesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PersonWebsite item
+func (b *ProfileWebsitesCollectionRequestBuilder) ID(id string) *PersonWebsiteRequestBuilder {
+ bb := &PersonWebsiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileWebsitesCollectionRequest is request for PersonWebsite collection
+type ProfileWebsitesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PersonWebsite collection
+func (r *ProfileWebsitesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PersonWebsite, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PersonWebsite
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PersonWebsite
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PersonWebsite collection
+func (r *ProfileWebsitesCollectionRequest) Get(ctx context.Context) ([]PersonWebsite, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PersonWebsite collection
+func (r *ProfileWebsitesCollectionRequest) Add(ctx context.Context, reqObj *PersonWebsite) (resObj *PersonWebsite, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProgramControlModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProgramControlModel.go
new file mode 100644
index 00000000..d94bda89
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProgramControlModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ProgramControl undocumented
+type ProgramControl struct {
+ // Entity is the base model of ProgramControl
+ Entity
+ // ControlID undocumented
+ ControlID *string `json:"controlId,omitempty"`
+ // ProgramID undocumented
+ ProgramID *string `json:"programId,omitempty"`
+ // ControlTypeID undocumented
+ ControlTypeID *string `json:"controlTypeId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // Owner undocumented
+ Owner *UserIdentity `json:"owner,omitempty"`
+ // Resource undocumented
+ Resource *ProgramResource `json:"resource,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Program undocumented
+ Program *Program `json:"program,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProgramControlRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProgramControlRequest.go
new file mode 100644
index 00000000..a6683bbc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProgramControlRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ProgramControlRequestBuilder is request builder for ProgramControl
+type ProgramControlRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ProgramControlRequest
+func (b *ProgramControlRequestBuilder) Request() *ProgramControlRequest {
+ return &ProgramControlRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ProgramControlRequest is request for ProgramControl
+type ProgramControlRequest struct{ BaseRequest }
+
+// Get performs GET request for ProgramControl
+func (r *ProgramControlRequest) Get(ctx context.Context) (resObj *ProgramControl, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ProgramControl
+func (r *ProgramControlRequest) Update(ctx context.Context, reqObj *ProgramControl) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ProgramControl
+func (r *ProgramControlRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Program is navigation property
+func (b *ProgramControlRequestBuilder) Program() *ProgramRequestBuilder {
+ bb := &ProgramRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/program"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProgramControlTypeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProgramControlTypeModel.go
new file mode 100644
index 00000000..bfec5517
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProgramControlTypeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProgramControlType undocumented
+type ProgramControlType struct {
+ // Entity is the base model of ProgramControlType
+ Entity
+ // ControlTypeGroupID undocumented
+ ControlTypeGroupID *string `json:"controlTypeGroupId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProgramControlTypeRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProgramControlTypeRequest.go
new file mode 100644
index 00000000..a7c2704a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProgramControlTypeRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ProgramControlTypeRequestBuilder is request builder for ProgramControlType
+type ProgramControlTypeRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ProgramControlTypeRequest
+func (b *ProgramControlTypeRequestBuilder) Request() *ProgramControlTypeRequest {
+ return &ProgramControlTypeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ProgramControlTypeRequest is request for ProgramControlType
+type ProgramControlTypeRequest struct{ BaseRequest }
+
+// Get performs GET request for ProgramControlType
+func (r *ProgramControlTypeRequest) Get(ctx context.Context) (resObj *ProgramControlType, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ProgramControlType
+func (r *ProgramControlTypeRequest) Update(ctx context.Context, reqObj *ProgramControlType) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ProgramControlType
+func (r *ProgramControlTypeRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProgramModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProgramModel.go
new file mode 100644
index 00000000..bfc6f75c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProgramModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Program undocumented
+type Program struct {
+ // Entity is the base model of Program
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Controls undocumented
+ Controls []ProgramControl `json:"controls,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProgramRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProgramRequest.go
new file mode 100644
index 00000000..8dd16de8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProgramRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ProgramRequestBuilder is request builder for Program
+type ProgramRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ProgramRequest
+func (b *ProgramRequestBuilder) Request() *ProgramRequest {
+ return &ProgramRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ProgramRequest is request for Program
+type ProgramRequest struct{ BaseRequest }
+
+// Get performs GET request for Program
+func (r *ProgramRequest) Get(ctx context.Context) (resObj *Program, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Program
+func (r *ProgramRequest) Update(ctx context.Context, reqObj *Program) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Program
+func (r *ProgramRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Controls returns request builder for ProgramControl collection
+func (b *ProgramRequestBuilder) Controls() *ProgramControlsCollectionRequestBuilder {
+ bb := &ProgramControlsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/controls"
+ return bb
+}
+
+// ProgramControlsCollectionRequestBuilder is request builder for ProgramControl collection
+type ProgramControlsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProgramControl collection
+func (b *ProgramControlsCollectionRequestBuilder) Request() *ProgramControlsCollectionRequest {
+ return &ProgramControlsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProgramControl item
+func (b *ProgramControlsCollectionRequestBuilder) ID(id string) *ProgramControlRequestBuilder {
+ bb := &ProgramControlRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProgramControlsCollectionRequest is request for ProgramControl collection
+type ProgramControlsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProgramControl collection
+func (r *ProgramControlsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ProgramControl, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProgramControl
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProgramControl
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProgramControl collection
+func (r *ProgramControlsCollectionRequest) Get(ctx context.Context) ([]ProgramControl, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ProgramControl collection
+func (r *ProgramControlsCollectionRequest) Add(ctx context.Context, reqObj *ProgramControl) (resObj *ProgramControl, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProgramResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProgramResourceModel.go
new file mode 100644
index 00000000..f7948705
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProgramResourceModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProgramResource undocumented
+type ProgramResource struct {
+ // Identity is the base model of ProgramResource
+ Identity
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProjectParticipationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProjectParticipationModel.go
new file mode 100644
index 00000000..1bf4f4ff
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProjectParticipationModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProjectParticipation undocumented
+type ProjectParticipation struct {
+ // ItemFacet is the base model of ProjectParticipation
+ ItemFacet
+ // Categories undocumented
+ Categories []string `json:"categories,omitempty"`
+ // Client undocumented
+ Client *CompanyDetail `json:"client,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Detail undocumented
+ Detail *PositionDetail `json:"detail,omitempty"`
+ // Colleagues undocumented
+ Colleagues []RelatedPerson `json:"colleagues,omitempty"`
+ // Sponsors undocumented
+ Sponsors []RelatedPerson `json:"sponsors,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProjectParticipationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProjectParticipationRequest.go
new file mode 100644
index 00000000..ab6911bc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProjectParticipationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ProjectParticipationRequestBuilder is request builder for ProjectParticipation
+type ProjectParticipationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ProjectParticipationRequest
+func (b *ProjectParticipationRequestBuilder) Request() *ProjectParticipationRequest {
+ return &ProjectParticipationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ProjectParticipationRequest is request for ProjectParticipation
+type ProjectParticipationRequest struct{ BaseRequest }
+
+// Get performs GET request for ProjectParticipation
+func (r *ProjectParticipationRequest) Get(ctx context.Context) (resObj *ProjectParticipation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ProjectParticipation
+func (r *ProjectParticipationRequest) Update(ctx context.Context, reqObj *ProjectParticipation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ProjectParticipation
+func (r *ProjectParticipationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PromptModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PromptModel.go
new file mode 100644
index 00000000..6a6e9440
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PromptModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Prompt undocumented
+type Prompt struct {
+ // Object is the base model of Prompt
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PropertiesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PropertiesModel.go
new file mode 100644
index 00000000..3d6e6c6e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PropertiesModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Properties undocumented
+type Properties struct {
+ // Object is the base model of Properties
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PropertyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PropertyModel.go
new file mode 100644
index 00000000..d4ae2730
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PropertyModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Property undocumented
+type Property struct {
+ // Object is the base model of Property
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Type undocumented
+ Type *PropertyType `json:"type,omitempty"`
+ // IsSearchable undocumented
+ IsSearchable *bool `json:"isSearchable,omitempty"`
+ // IsRetrievable undocumented
+ IsRetrievable *bool `json:"isRetrievable,omitempty"`
+ // IsQueryable undocumented
+ IsQueryable *bool `json:"isQueryable,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PropertyToEvaluateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PropertyToEvaluateModel.go
new file mode 100644
index 00000000..f8906dca
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PropertyToEvaluateModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PropertyToEvaluate undocumented
+type PropertyToEvaluate struct {
+ // Object is the base model of PropertyToEvaluate
+ Object
+ // PropertyName undocumented
+ PropertyName *string `json:"propertyName,omitempty"`
+ // PropertyValue undocumented
+ PropertyValue *string `json:"propertyValue,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PropertyTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/PropertyTypeEnum.go
new file mode 100644
index 00000000..2707b260
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PropertyTypeEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PropertyType undocumented
+type PropertyType int
+
+const (
+ // PropertyTypeVString undocumented
+ PropertyTypeVString PropertyType = 0
+ // PropertyTypeVInt64 undocumented
+ PropertyTypeVInt64 PropertyType = 1
+ // PropertyTypeVDouble undocumented
+ PropertyTypeVDouble PropertyType = 2
+ // PropertyTypeVDateTime undocumented
+ PropertyTypeVDateTime PropertyType = 3
+ // PropertyTypeVBoolean undocumented
+ PropertyTypeVBoolean PropertyType = 4
+ // PropertyTypeVStringCollection undocumented
+ PropertyTypeVStringCollection PropertyType = 5
+ // PropertyTypeVInt64Collection undocumented
+ PropertyTypeVInt64Collection PropertyType = 6
+ // PropertyTypeVDoubleCollection undocumented
+ PropertyTypeVDoubleCollection PropertyType = 7
+ // PropertyTypeVDateTimeCollection undocumented
+ PropertyTypeVDateTimeCollection PropertyType = 8
+)
+
+// PropertyTypePString returns a pointer to PropertyTypeVString
+func PropertyTypePString() *PropertyType {
+ v := PropertyTypeVString
+ return &v
+}
+
+// PropertyTypePInt64 returns a pointer to PropertyTypeVInt64
+func PropertyTypePInt64() *PropertyType {
+ v := PropertyTypeVInt64
+ return &v
+}
+
+// PropertyTypePDouble returns a pointer to PropertyTypeVDouble
+func PropertyTypePDouble() *PropertyType {
+ v := PropertyTypeVDouble
+ return &v
+}
+
+// PropertyTypePDateTime returns a pointer to PropertyTypeVDateTime
+func PropertyTypePDateTime() *PropertyType {
+ v := PropertyTypeVDateTime
+ return &v
+}
+
+// PropertyTypePBoolean returns a pointer to PropertyTypeVBoolean
+func PropertyTypePBoolean() *PropertyType {
+ v := PropertyTypeVBoolean
+ return &v
+}
+
+// PropertyTypePStringCollection returns a pointer to PropertyTypeVStringCollection
+func PropertyTypePStringCollection() *PropertyType {
+ v := PropertyTypeVStringCollection
+ return &v
+}
+
+// PropertyTypePInt64Collection returns a pointer to PropertyTypeVInt64Collection
+func PropertyTypePInt64Collection() *PropertyType {
+ v := PropertyTypeVInt64Collection
+ return &v
+}
+
+// PropertyTypePDoubleCollection returns a pointer to PropertyTypeVDoubleCollection
+func PropertyTypePDoubleCollection() *PropertyType {
+ v := PropertyTypeVDoubleCollection
+ return &v
+}
+
+// PropertyTypePDateTimeCollection returns a pointer to PropertyTypeVDateTimeCollection
+func PropertyTypePDateTimeCollection() *PropertyType {
+ v := PropertyTypeVDateTimeCollection
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProtectAdhocActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProtectAdhocActionModel.go
new file mode 100644
index 00000000..bfc90339
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProtectAdhocActionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProtectAdhocAction undocumented
+type ProtectAdhocAction struct {
+ // InformationProtectionAction is the base model of ProtectAdhocAction
+ InformationProtectionAction
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProtectByTemplateActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProtectByTemplateActionModel.go
new file mode 100644
index 00000000..0299a417
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProtectByTemplateActionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProtectByTemplateAction undocumented
+type ProtectByTemplateAction struct {
+ // InformationProtectionAction is the base model of ProtectByTemplateAction
+ InformationProtectionAction
+ // TemplateID undocumented
+ TemplateID *string `json:"templateId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProtectDoNotForwardActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProtectDoNotForwardActionModel.go
new file mode 100644
index 00000000..f94f4057
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProtectDoNotForwardActionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProtectDoNotForwardAction undocumented
+type ProtectDoNotForwardAction struct {
+ // InformationProtectionAction is the base model of ProtectDoNotForwardAction
+ InformationProtectionAction
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProtectGroupModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProtectGroupModel.go
new file mode 100644
index 00000000..c4c7cb14
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProtectGroupModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProtectGroup undocumented
+type ProtectGroup struct {
+ // LabelActionBase is the base model of ProtectGroup
+ LabelActionBase
+ // AllowEmailFromGuestUsers undocumented
+ AllowEmailFromGuestUsers *bool `json:"allowEmailFromGuestUsers,omitempty"`
+ // AllowGuestUsers undocumented
+ AllowGuestUsers *bool `json:"allowGuestUsers,omitempty"`
+ // Privacy undocumented
+ Privacy *GroupPrivacy `json:"privacy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProtectSiteModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProtectSiteModel.go
new file mode 100644
index 00000000..42fd96b2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProtectSiteModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProtectSite undocumented
+type ProtectSite struct {
+ // LabelActionBase is the base model of ProtectSite
+ LabelActionBase
+ // AccessType undocumented
+ AccessType *SiteAccessType `json:"accessType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProviderTenantSettingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProviderTenantSettingModel.go
new file mode 100644
index 00000000..45e2d21c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProviderTenantSettingModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ProviderTenantSetting undocumented
+type ProviderTenantSetting struct {
+ // Entity is the base model of ProviderTenantSetting
+ Entity
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // Enabled undocumented
+ Enabled *bool `json:"enabled,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Provider undocumented
+ Provider *string `json:"provider,omitempty"`
+ // Vendor undocumented
+ Vendor *string `json:"vendor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProviderTenantSettingRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProviderTenantSettingRequest.go
new file mode 100644
index 00000000..0425dcbb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProviderTenantSettingRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ProviderTenantSettingRequestBuilder is request builder for ProviderTenantSetting
+type ProviderTenantSettingRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ProviderTenantSettingRequest
+func (b *ProviderTenantSettingRequestBuilder) Request() *ProviderTenantSettingRequest {
+ return &ProviderTenantSettingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ProviderTenantSettingRequest is request for ProviderTenantSetting
+type ProviderTenantSettingRequest struct{ BaseRequest }
+
+// Get performs GET request for ProviderTenantSetting
+func (r *ProviderTenantSettingRequest) Get(ctx context.Context) (resObj *ProviderTenantSetting, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ProviderTenantSetting
+func (r *ProviderTenantSettingRequest) Update(ctx context.Context, reqObj *ProviderTenantSetting) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ProviderTenantSetting
+func (r *ProviderTenantSettingRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProvisionedIdentityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProvisionedIdentityModel.go
new file mode 100644
index 00000000..dc97ccb8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProvisionedIdentityModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProvisionedIdentity undocumented
+type ProvisionedIdentity struct {
+ // Object is the base model of ProvisionedIdentity
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IdentityType undocumented
+ IdentityType *string `json:"identityType,omitempty"`
+ // Details undocumented
+ Details *DetailsInfo `json:"details,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProvisionedPlanModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProvisionedPlanModel.go
new file mode 100644
index 00000000..0faa7144
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProvisionedPlanModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProvisionedPlan undocumented
+type ProvisionedPlan struct {
+ // Object is the base model of ProvisionedPlan
+ Object
+ // CapabilityStatus undocumented
+ CapabilityStatus *string `json:"capabilityStatus,omitempty"`
+ // ProvisioningStatus undocumented
+ ProvisioningStatus *string `json:"provisioningStatus,omitempty"`
+ // Service undocumented
+ Service *string `json:"service,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningObjectSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningObjectSummaryModel.go
new file mode 100644
index 00000000..ffb46326
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningObjectSummaryModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ProvisioningObjectSummary undocumented
+type ProvisioningObjectSummary struct {
+ // Entity is the base model of ProvisioningObjectSummary
+ Entity
+ // ActivityDateTime undocumented
+ ActivityDateTime *time.Time `json:"activityDateTime,omitempty"`
+ // TenantID undocumented
+ TenantID *string `json:"tenantId,omitempty"`
+ // JobID undocumented
+ JobID *string `json:"jobId,omitempty"`
+ // CycleID undocumented
+ CycleID *string `json:"cycleId,omitempty"`
+ // ChangeID undocumented
+ ChangeID *string `json:"changeId,omitempty"`
+ // Action undocumented
+ Action *string `json:"action,omitempty"`
+ // DurationInMilliseconds undocumented
+ DurationInMilliseconds *int `json:"durationInMilliseconds,omitempty"`
+ // InitiatedBy undocumented
+ InitiatedBy *Initiator `json:"initiatedBy,omitempty"`
+ // SourceSystem undocumented
+ SourceSystem *ProvisioningSystemDetails `json:"sourceSystem,omitempty"`
+ // TargetSystem undocumented
+ TargetSystem *ProvisioningSystemDetails `json:"targetSystem,omitempty"`
+ // SourceIdentity undocumented
+ SourceIdentity *ProvisionedIdentity `json:"sourceIdentity,omitempty"`
+ // TargetIdentity undocumented
+ TargetIdentity *ProvisionedIdentity `json:"targetIdentity,omitempty"`
+ // StatusInfo undocumented
+ StatusInfo *StatusBase `json:"statusInfo,omitempty"`
+ // ProvisioningSteps undocumented
+ ProvisioningSteps []ProvisioningStep `json:"provisioningSteps,omitempty"`
+ // ModifiedProperties undocumented
+ ModifiedProperties []ModifiedProperty `json:"modifiedProperties,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningObjectSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningObjectSummaryRequest.go
new file mode 100644
index 00000000..e5bb5bde
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningObjectSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ProvisioningObjectSummaryRequestBuilder is request builder for ProvisioningObjectSummary
+type ProvisioningObjectSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ProvisioningObjectSummaryRequest
+func (b *ProvisioningObjectSummaryRequestBuilder) Request() *ProvisioningObjectSummaryRequest {
+ return &ProvisioningObjectSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ProvisioningObjectSummaryRequest is request for ProvisioningObjectSummary
+type ProvisioningObjectSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for ProvisioningObjectSummary
+func (r *ProvisioningObjectSummaryRequest) Get(ctx context.Context) (resObj *ProvisioningObjectSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ProvisioningObjectSummary
+func (r *ProvisioningObjectSummaryRequest) Update(ctx context.Context, reqObj *ProvisioningObjectSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ProvisioningObjectSummary
+func (r *ProvisioningObjectSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningResultEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningResultEnum.go
new file mode 100644
index 00000000..4a5be3c2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningResultEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProvisioningResult undocumented
+type ProvisioningResult int
+
+const (
+ // ProvisioningResultVSuccess undocumented
+ ProvisioningResultVSuccess ProvisioningResult = 0
+ // ProvisioningResultVFailure undocumented
+ ProvisioningResultVFailure ProvisioningResult = 1
+ // ProvisioningResultVSkipped undocumented
+ ProvisioningResultVSkipped ProvisioningResult = 2
+ // ProvisioningResultVUnknownFutureValue undocumented
+ ProvisioningResultVUnknownFutureValue ProvisioningResult = 3
+)
+
+// ProvisioningResultPSuccess returns a pointer to ProvisioningResultVSuccess
+func ProvisioningResultPSuccess() *ProvisioningResult {
+ v := ProvisioningResultVSuccess
+ return &v
+}
+
+// ProvisioningResultPFailure returns a pointer to ProvisioningResultVFailure
+func ProvisioningResultPFailure() *ProvisioningResult {
+ v := ProvisioningResultVFailure
+ return &v
+}
+
+// ProvisioningResultPSkipped returns a pointer to ProvisioningResultVSkipped
+func ProvisioningResultPSkipped() *ProvisioningResult {
+ v := ProvisioningResultVSkipped
+ return &v
+}
+
+// ProvisioningResultPUnknownFutureValue returns a pointer to ProvisioningResultVUnknownFutureValue
+func ProvisioningResultPUnknownFutureValue() *ProvisioningResult {
+ v := ProvisioningResultVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningStepModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningStepModel.go
new file mode 100644
index 00000000..1cc0429f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningStepModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProvisioningStep undocumented
+type ProvisioningStep struct {
+ // Object is the base model of ProvisioningStep
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Status undocumented
+ Status *ProvisioningResult `json:"status,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Details undocumented
+ Details *DetailsInfo `json:"details,omitempty"`
+ // ProvisioningStepType undocumented
+ ProvisioningStepType *ProvisioningStepType `json:"provisioningStepType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningStepTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningStepTypeEnum.go
new file mode 100644
index 00000000..2d6f7106
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningStepTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProvisioningStepType undocumented
+type ProvisioningStepType int
+
+const (
+ // ProvisioningStepTypeVImport undocumented
+ ProvisioningStepTypeVImport ProvisioningStepType = 0
+ // ProvisioningStepTypeVScoping undocumented
+ ProvisioningStepTypeVScoping ProvisioningStepType = 1
+ // ProvisioningStepTypeVMatching undocumented
+ ProvisioningStepTypeVMatching ProvisioningStepType = 2
+ // ProvisioningStepTypeVProcessing undocumented
+ ProvisioningStepTypeVProcessing ProvisioningStepType = 3
+ // ProvisioningStepTypeVReferenceResolution undocumented
+ ProvisioningStepTypeVReferenceResolution ProvisioningStepType = 4
+ // ProvisioningStepTypeVExport undocumented
+ ProvisioningStepTypeVExport ProvisioningStepType = 5
+ // ProvisioningStepTypeVUnknownFutureValue undocumented
+ ProvisioningStepTypeVUnknownFutureValue ProvisioningStepType = 6
+)
+
+// ProvisioningStepTypePImport returns a pointer to ProvisioningStepTypeVImport
+func ProvisioningStepTypePImport() *ProvisioningStepType {
+ v := ProvisioningStepTypeVImport
+ return &v
+}
+
+// ProvisioningStepTypePScoping returns a pointer to ProvisioningStepTypeVScoping
+func ProvisioningStepTypePScoping() *ProvisioningStepType {
+ v := ProvisioningStepTypeVScoping
+ return &v
+}
+
+// ProvisioningStepTypePMatching returns a pointer to ProvisioningStepTypeVMatching
+func ProvisioningStepTypePMatching() *ProvisioningStepType {
+ v := ProvisioningStepTypeVMatching
+ return &v
+}
+
+// ProvisioningStepTypePProcessing returns a pointer to ProvisioningStepTypeVProcessing
+func ProvisioningStepTypePProcessing() *ProvisioningStepType {
+ v := ProvisioningStepTypeVProcessing
+ return &v
+}
+
+// ProvisioningStepTypePReferenceResolution returns a pointer to ProvisioningStepTypeVReferenceResolution
+func ProvisioningStepTypePReferenceResolution() *ProvisioningStepType {
+ v := ProvisioningStepTypeVReferenceResolution
+ return &v
+}
+
+// ProvisioningStepTypePExport returns a pointer to ProvisioningStepTypeVExport
+func ProvisioningStepTypePExport() *ProvisioningStepType {
+ v := ProvisioningStepTypeVExport
+ return &v
+}
+
+// ProvisioningStepTypePUnknownFutureValue returns a pointer to ProvisioningStepTypeVUnknownFutureValue
+func ProvisioningStepTypePUnknownFutureValue() *ProvisioningStepType {
+ v := ProvisioningStepTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningSystemDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningSystemDetailsModel.go
new file mode 100644
index 00000000..4eb67341
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProvisioningSystemDetailsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProvisioningSystemDetails undocumented
+type ProvisioningSystemDetails struct {
+ // Object is the base model of ProvisioningSystemDetails
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Details undocumented
+ Details *DetailsInfo `json:"details,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ProxiedDomainModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ProxiedDomainModel.go
new file mode 100644
index 00000000..77b6eaa1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ProxiedDomainModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProxiedDomain undocumented
+type ProxiedDomain struct {
+ // Object is the base model of ProxiedDomain
+ Object
+ // IPAddressOrFQDN The IP address or FQDN
+ IPAddressOrFQDN *string `json:"ipAddressOrFQDN,omitempty"`
+ // Proxy Proxy IP or FQDN
+ Proxy *string `json:"proxy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PublicClientApplicationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PublicClientApplicationModel.go
new file mode 100644
index 00000000..6bd8a9ce
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PublicClientApplicationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PublicClientApplication undocumented
+type PublicClientApplication struct {
+ // Object is the base model of PublicClientApplication
+ Object
+ // RedirectUris undocumented
+ RedirectUris []string `json:"redirectUris,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PublicErrorDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PublicErrorDetailModel.go
new file mode 100644
index 00000000..8923c930
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PublicErrorDetailModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PublicErrorDetail undocumented
+type PublicErrorDetail struct {
+ // Object is the base model of PublicErrorDetail
+ Object
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Target undocumented
+ Target *string `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PublicErrorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PublicErrorModel.go
new file mode 100644
index 00000000..9262b433
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PublicErrorModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PublicError undocumented
+type PublicError struct {
+ // Object is the base model of PublicError
+ Object
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Target undocumented
+ Target *string `json:"target,omitempty"`
+ // Details undocumented
+ Details []PublicErrorDetail `json:"details,omitempty"`
+ // InnerError undocumented
+ InnerError *PublicInnerError `json:"innerError,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PublicErrorResponseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PublicErrorResponseModel.go
new file mode 100644
index 00000000..b7bd5c23
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PublicErrorResponseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PublicErrorResponse undocumented
+type PublicErrorResponse struct {
+ // Object is the base model of PublicErrorResponse
+ Object
+ // Error undocumented
+ Error *PublicError `json:"error,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PublicInnerErrorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PublicInnerErrorModel.go
new file mode 100644
index 00000000..16bce035
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PublicInnerErrorModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PublicInnerError undocumented
+type PublicInnerError struct {
+ // Object is the base model of PublicInnerError
+ Object
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // Details undocumented
+ Details []PublicErrorDetail `json:"details,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Target undocumented
+ Target *string `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PublicationFacetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PublicationFacetModel.go
new file mode 100644
index 00000000..706baf5e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PublicationFacetModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PublicationFacet undocumented
+type PublicationFacet struct {
+ // Object is the base model of PublicationFacet
+ Object
+ // Level undocumented
+ Level *string `json:"level,omitempty"`
+ // VersionID undocumented
+ VersionID *string `json:"versionId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PublishedResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PublishedResourceModel.go
new file mode 100644
index 00000000..50c36732
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PublishedResourceModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PublishedResource undocumented
+type PublishedResource struct {
+ // Entity is the base model of PublishedResource
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ResourceName undocumented
+ ResourceName *string `json:"resourceName,omitempty"`
+ // PublishingType undocumented
+ PublishingType *OnPremisesPublishingType `json:"publishingType,omitempty"`
+ // AgentGroups undocumented
+ AgentGroups []OnPremisesAgentGroup `json:"agentGroups,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PublishedResourceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PublishedResourceRequest.go
new file mode 100644
index 00000000..6c7c8a85
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PublishedResourceRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PublishedResourceRequestBuilder is request builder for PublishedResource
+type PublishedResourceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PublishedResourceRequest
+func (b *PublishedResourceRequestBuilder) Request() *PublishedResourceRequest {
+ return &PublishedResourceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PublishedResourceRequest is request for PublishedResource
+type PublishedResourceRequest struct{ BaseRequest }
+
+// Get performs GET request for PublishedResource
+func (r *PublishedResourceRequest) Get(ctx context.Context) (resObj *PublishedResource, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PublishedResource
+func (r *PublishedResourceRequest) Update(ctx context.Context, reqObj *PublishedResource) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PublishedResource
+func (r *PublishedResourceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AgentGroups returns request builder for OnPremisesAgentGroup collection
+func (b *PublishedResourceRequestBuilder) AgentGroups() *PublishedResourceAgentGroupsCollectionRequestBuilder {
+ bb := &PublishedResourceAgentGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agentGroups"
+ return bb
+}
+
+// PublishedResourceAgentGroupsCollectionRequestBuilder is request builder for OnPremisesAgentGroup collection
+type PublishedResourceAgentGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnPremisesAgentGroup collection
+func (b *PublishedResourceAgentGroupsCollectionRequestBuilder) Request() *PublishedResourceAgentGroupsCollectionRequest {
+ return &PublishedResourceAgentGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnPremisesAgentGroup item
+func (b *PublishedResourceAgentGroupsCollectionRequestBuilder) ID(id string) *OnPremisesAgentGroupRequestBuilder {
+ bb := &OnPremisesAgentGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PublishedResourceAgentGroupsCollectionRequest is request for OnPremisesAgentGroup collection
+type PublishedResourceAgentGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnPremisesAgentGroup collection
+func (r *PublishedResourceAgentGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OnPremisesAgentGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnPremisesAgentGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnPremisesAgentGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnPremisesAgentGroup collection
+func (r *PublishedResourceAgentGroupsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgentGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OnPremisesAgentGroup collection
+func (r *PublishedResourceAgentGroupsCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesAgentGroup) (resObj *OnPremisesAgentGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PurchaseInvoiceAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/PurchaseInvoiceAction.go
new file mode 100644
index 00000000..d1a67162
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PurchaseInvoiceAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PurchaseInvoicePostRequestParameter undocumented
+type PurchaseInvoicePostRequestParameter struct {
+}
+
+//
+type PurchaseInvoicePostRequestBuilder struct{ BaseRequestBuilder }
+
+// Post action undocumented
+func (b *PurchaseInvoiceRequestBuilder) Post(reqObj *PurchaseInvoicePostRequestParameter) *PurchaseInvoicePostRequestBuilder {
+ bb := &PurchaseInvoicePostRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/post"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PurchaseInvoicePostRequest struct{ BaseRequest }
+
+//
+func (b *PurchaseInvoicePostRequestBuilder) Request() *PurchaseInvoicePostRequest {
+ return &PurchaseInvoicePostRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PurchaseInvoicePostRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PurchaseInvoiceLineModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PurchaseInvoiceLineModel.go
new file mode 100644
index 00000000..d989cfab
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PurchaseInvoiceLineModel.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PurchaseInvoiceLine undocumented
+type PurchaseInvoiceLine struct {
+ // Entity is the base model of PurchaseInvoiceLine
+ Entity
+ // DocumentID undocumented
+ DocumentID *UUID `json:"documentId,omitempty"`
+ // Sequence undocumented
+ Sequence *int `json:"sequence,omitempty"`
+ // ItemID undocumented
+ ItemID *UUID `json:"itemId,omitempty"`
+ // AccountID undocumented
+ AccountID *UUID `json:"accountId,omitempty"`
+ // LineType undocumented
+ LineType *string `json:"lineType,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // UnitCost undocumented
+ UnitCost *int `json:"unitCost,omitempty"`
+ // Quantity undocumented
+ Quantity *int `json:"quantity,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountPercent undocumented
+ DiscountPercent *int `json:"discountPercent,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // AmountExcludingTax undocumented
+ AmountExcludingTax *int `json:"amountExcludingTax,omitempty"`
+ // TaxCode undocumented
+ TaxCode *string `json:"taxCode,omitempty"`
+ // TaxPercent undocumented
+ TaxPercent *int `json:"taxPercent,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // AmountIncludingTax undocumented
+ AmountIncludingTax *int `json:"amountIncludingTax,omitempty"`
+ // InvoiceDiscountAllocation undocumented
+ InvoiceDiscountAllocation *int `json:"invoiceDiscountAllocation,omitempty"`
+ // NetAmount undocumented
+ NetAmount *int `json:"netAmount,omitempty"`
+ // NetTaxAmount undocumented
+ NetTaxAmount *int `json:"netTaxAmount,omitempty"`
+ // NetAmountIncludingTax undocumented
+ NetAmountIncludingTax *int `json:"netAmountIncludingTax,omitempty"`
+ // ExpectedReceiptDate undocumented
+ ExpectedReceiptDate *time.Time `json:"expectedReceiptDate,omitempty"`
+ // Item undocumented
+ Item *Item `json:"item,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PurchaseInvoiceLineRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PurchaseInvoiceLineRequest.go
new file mode 100644
index 00000000..1b9002e4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PurchaseInvoiceLineRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PurchaseInvoiceLineRequestBuilder is request builder for PurchaseInvoiceLine
+type PurchaseInvoiceLineRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PurchaseInvoiceLineRequest
+func (b *PurchaseInvoiceLineRequestBuilder) Request() *PurchaseInvoiceLineRequest {
+ return &PurchaseInvoiceLineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PurchaseInvoiceLineRequest is request for PurchaseInvoiceLine
+type PurchaseInvoiceLineRequest struct{ BaseRequest }
+
+// Get performs GET request for PurchaseInvoiceLine
+func (r *PurchaseInvoiceLineRequest) Get(ctx context.Context) (resObj *PurchaseInvoiceLine, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PurchaseInvoiceLine
+func (r *PurchaseInvoiceLineRequest) Update(ctx context.Context, reqObj *PurchaseInvoiceLine) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PurchaseInvoiceLine
+func (r *PurchaseInvoiceLineRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Account is navigation property
+func (b *PurchaseInvoiceLineRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
+
+// Item is navigation property
+func (b *PurchaseInvoiceLineRequestBuilder) Item() *ItemRequestBuilder {
+ bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/item"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PurchaseInvoiceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/PurchaseInvoiceModel.go
new file mode 100644
index 00000000..9293da66
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PurchaseInvoiceModel.go
@@ -0,0 +1,69 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PurchaseInvoice undocumented
+type PurchaseInvoice struct {
+ // Entity is the base model of PurchaseInvoice
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // InvoiceDate undocumented
+ InvoiceDate *time.Time `json:"invoiceDate,omitempty"`
+ // DueDate undocumented
+ DueDate *time.Time `json:"dueDate,omitempty"`
+ // VendorInvoiceNumber undocumented
+ VendorInvoiceNumber *string `json:"vendorInvoiceNumber,omitempty"`
+ // VendorID undocumented
+ VendorID *UUID `json:"vendorId,omitempty"`
+ // VendorNumber undocumented
+ VendorNumber *string `json:"vendorNumber,omitempty"`
+ // VendorName undocumented
+ VendorName *string `json:"vendorName,omitempty"`
+ // PayToName undocumented
+ PayToName *string `json:"payToName,omitempty"`
+ // PayToContact undocumented
+ PayToContact *string `json:"payToContact,omitempty"`
+ // PayToVendorID undocumented
+ PayToVendorID *UUID `json:"payToVendorId,omitempty"`
+ // PayToVendorNumber undocumented
+ PayToVendorNumber *string `json:"payToVendorNumber,omitempty"`
+ // ShipToName undocumented
+ ShipToName *string `json:"shipToName,omitempty"`
+ // ShipToContact undocumented
+ ShipToContact *string `json:"shipToContact,omitempty"`
+ // BuyFromAddress undocumented
+ BuyFromAddress *PostalAddressType `json:"buyFromAddress,omitempty"`
+ // PayToAddress undocumented
+ PayToAddress *PostalAddressType `json:"payToAddress,omitempty"`
+ // ShipToAddress undocumented
+ ShipToAddress *PostalAddressType `json:"shipToAddress,omitempty"`
+ // CurrencyID undocumented
+ CurrencyID *UUID `json:"currencyId,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // PricesIncludeTax undocumented
+ PricesIncludeTax *bool `json:"pricesIncludeTax,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // TotalAmountExcludingTax undocumented
+ TotalAmountExcludingTax *int `json:"totalAmountExcludingTax,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // TotalAmountIncludingTax undocumented
+ TotalAmountIncludingTax *int `json:"totalAmountIncludingTax,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // PurchaseInvoiceLines undocumented
+ PurchaseInvoiceLines []PurchaseInvoiceLine `json:"purchaseInvoiceLines,omitempty"`
+ // Vendor undocumented
+ Vendor *Vendor `json:"vendor,omitempty"`
+ // Currency undocumented
+ Currency *Currency `json:"currency,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/PurchaseInvoiceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/PurchaseInvoiceRequest.go
new file mode 100644
index 00000000..f4dcef26
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/PurchaseInvoiceRequest.go
@@ -0,0 +1,153 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PurchaseInvoiceRequestBuilder is request builder for PurchaseInvoice
+type PurchaseInvoiceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PurchaseInvoiceRequest
+func (b *PurchaseInvoiceRequestBuilder) Request() *PurchaseInvoiceRequest {
+ return &PurchaseInvoiceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PurchaseInvoiceRequest is request for PurchaseInvoice
+type PurchaseInvoiceRequest struct{ BaseRequest }
+
+// Get performs GET request for PurchaseInvoice
+func (r *PurchaseInvoiceRequest) Get(ctx context.Context) (resObj *PurchaseInvoice, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PurchaseInvoice
+func (r *PurchaseInvoiceRequest) Update(ctx context.Context, reqObj *PurchaseInvoice) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PurchaseInvoice
+func (r *PurchaseInvoiceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Currency is navigation property
+func (b *PurchaseInvoiceRequestBuilder) Currency() *CurrencyRequestBuilder {
+ bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/currency"
+ return bb
+}
+
+// PurchaseInvoiceLines returns request builder for PurchaseInvoiceLine collection
+func (b *PurchaseInvoiceRequestBuilder) PurchaseInvoiceLines() *PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder {
+ bb := &PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/purchaseInvoiceLines"
+ return bb
+}
+
+// PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder is request builder for PurchaseInvoiceLine collection
+type PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PurchaseInvoiceLine collection
+func (b *PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder) Request() *PurchaseInvoicePurchaseInvoiceLinesCollectionRequest {
+ return &PurchaseInvoicePurchaseInvoiceLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PurchaseInvoiceLine item
+func (b *PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder) ID(id string) *PurchaseInvoiceLineRequestBuilder {
+ bb := &PurchaseInvoiceLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PurchaseInvoicePurchaseInvoiceLinesCollectionRequest is request for PurchaseInvoiceLine collection
+type PurchaseInvoicePurchaseInvoiceLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PurchaseInvoiceLine collection
+func (r *PurchaseInvoicePurchaseInvoiceLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]PurchaseInvoiceLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PurchaseInvoiceLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PurchaseInvoiceLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for PurchaseInvoiceLine collection
+func (r *PurchaseInvoicePurchaseInvoiceLinesCollectionRequest) Get(ctx context.Context) ([]PurchaseInvoiceLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for PurchaseInvoiceLine collection
+func (r *PurchaseInvoicePurchaseInvoiceLinesCollectionRequest) Add(ctx context.Context, reqObj *PurchaseInvoiceLine) (resObj *PurchaseInvoiceLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Vendor is navigation property
+func (b *PurchaseInvoiceRequestBuilder) Vendor() *VendorRequestBuilder {
+ bb := &VendorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/vendor"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/QuarantineReasonEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/QuarantineReasonEnum.go
new file mode 100644
index 00000000..da581a9c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/QuarantineReasonEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// QuarantineReason undocumented
+type QuarantineReason int
+
+const (
+ // QuarantineReasonVEncounteredBaseEscrowThreshold undocumented
+ QuarantineReasonVEncounteredBaseEscrowThreshold QuarantineReason = 0
+ // QuarantineReasonVEncounteredTotalEscrowThreshold undocumented
+ QuarantineReasonVEncounteredTotalEscrowThreshold QuarantineReason = 1
+ // QuarantineReasonVEncounteredEscrowProportionThreshold undocumented
+ QuarantineReasonVEncounteredEscrowProportionThreshold QuarantineReason = 2
+ // QuarantineReasonVEncounteredQuarantineException undocumented
+ QuarantineReasonVEncounteredQuarantineException QuarantineReason = 4
+ // QuarantineReasonVUnknown undocumented
+ QuarantineReasonVUnknown QuarantineReason = 8
+ // QuarantineReasonVQuarantinedOnDemand undocumented
+ QuarantineReasonVQuarantinedOnDemand QuarantineReason = 16
+ // QuarantineReasonVTooManyDeletes undocumented
+ QuarantineReasonVTooManyDeletes QuarantineReason = 32
+)
+
+// QuarantineReasonPEncounteredBaseEscrowThreshold returns a pointer to QuarantineReasonVEncounteredBaseEscrowThreshold
+func QuarantineReasonPEncounteredBaseEscrowThreshold() *QuarantineReason {
+ v := QuarantineReasonVEncounteredBaseEscrowThreshold
+ return &v
+}
+
+// QuarantineReasonPEncounteredTotalEscrowThreshold returns a pointer to QuarantineReasonVEncounteredTotalEscrowThreshold
+func QuarantineReasonPEncounteredTotalEscrowThreshold() *QuarantineReason {
+ v := QuarantineReasonVEncounteredTotalEscrowThreshold
+ return &v
+}
+
+// QuarantineReasonPEncounteredEscrowProportionThreshold returns a pointer to QuarantineReasonVEncounteredEscrowProportionThreshold
+func QuarantineReasonPEncounteredEscrowProportionThreshold() *QuarantineReason {
+ v := QuarantineReasonVEncounteredEscrowProportionThreshold
+ return &v
+}
+
+// QuarantineReasonPEncounteredQuarantineException returns a pointer to QuarantineReasonVEncounteredQuarantineException
+func QuarantineReasonPEncounteredQuarantineException() *QuarantineReason {
+ v := QuarantineReasonVEncounteredQuarantineException
+ return &v
+}
+
+// QuarantineReasonPUnknown returns a pointer to QuarantineReasonVUnknown
+func QuarantineReasonPUnknown() *QuarantineReason {
+ v := QuarantineReasonVUnknown
+ return &v
+}
+
+// QuarantineReasonPQuarantinedOnDemand returns a pointer to QuarantineReasonVQuarantinedOnDemand
+func QuarantineReasonPQuarantinedOnDemand() *QuarantineReason {
+ v := QuarantineReasonVQuarantinedOnDemand
+ return &v
+}
+
+// QuarantineReasonPTooManyDeletes returns a pointer to QuarantineReasonVTooManyDeletes
+func QuarantineReasonPTooManyDeletes() *QuarantineReason {
+ v := QuarantineReasonVTooManyDeletes
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/QuotaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/QuotaModel.go
new file mode 100644
index 00000000..a9f5c006
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/QuotaModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Quota undocumented
+type Quota struct {
+ // Object is the base model of Quota
+ Object
+ // Deleted undocumented
+ Deleted *int `json:"deleted,omitempty"`
+ // Remaining undocumented
+ Remaining *int `json:"remaining,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Used undocumented
+ Used *int `json:"used,omitempty"`
+ // StoragePlanInformation undocumented
+ StoragePlanInformation *StoragePlanInformation `json:"storagePlanInformation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RankedEmailAddressModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RankedEmailAddressModel.go
new file mode 100644
index 00000000..624afb6b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RankedEmailAddressModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RankedEmailAddress undocumented
+type RankedEmailAddress struct {
+ // Object is the base model of RankedEmailAddress
+ Object
+ // Address undocumented
+ Address *string `json:"address,omitempty"`
+ // Rank undocumented
+ Rank *float64 `json:"rank,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingAppsTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingAppsTypeEnum.go
new file mode 100644
index 00000000..b70954f8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingAppsTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingAppsType undocumented
+type RatingAppsType int
+
+const (
+ // RatingAppsTypeVAllAllowed undocumented
+ RatingAppsTypeVAllAllowed RatingAppsType = 0
+ // RatingAppsTypeVAllBlocked undocumented
+ RatingAppsTypeVAllBlocked RatingAppsType = 1
+ // RatingAppsTypeVAgesAbove4 undocumented
+ RatingAppsTypeVAgesAbove4 RatingAppsType = 2
+ // RatingAppsTypeVAgesAbove9 undocumented
+ RatingAppsTypeVAgesAbove9 RatingAppsType = 3
+ // RatingAppsTypeVAgesAbove12 undocumented
+ RatingAppsTypeVAgesAbove12 RatingAppsType = 4
+ // RatingAppsTypeVAgesAbove17 undocumented
+ RatingAppsTypeVAgesAbove17 RatingAppsType = 5
+)
+
+// RatingAppsTypePAllAllowed returns a pointer to RatingAppsTypeVAllAllowed
+func RatingAppsTypePAllAllowed() *RatingAppsType {
+ v := RatingAppsTypeVAllAllowed
+ return &v
+}
+
+// RatingAppsTypePAllBlocked returns a pointer to RatingAppsTypeVAllBlocked
+func RatingAppsTypePAllBlocked() *RatingAppsType {
+ v := RatingAppsTypeVAllBlocked
+ return &v
+}
+
+// RatingAppsTypePAgesAbove4 returns a pointer to RatingAppsTypeVAgesAbove4
+func RatingAppsTypePAgesAbove4() *RatingAppsType {
+ v := RatingAppsTypeVAgesAbove4
+ return &v
+}
+
+// RatingAppsTypePAgesAbove9 returns a pointer to RatingAppsTypeVAgesAbove9
+func RatingAppsTypePAgesAbove9() *RatingAppsType {
+ v := RatingAppsTypeVAgesAbove9
+ return &v
+}
+
+// RatingAppsTypePAgesAbove12 returns a pointer to RatingAppsTypeVAgesAbove12
+func RatingAppsTypePAgesAbove12() *RatingAppsType {
+ v := RatingAppsTypeVAgesAbove12
+ return &v
+}
+
+// RatingAppsTypePAgesAbove17 returns a pointer to RatingAppsTypeVAgesAbove17
+func RatingAppsTypePAgesAbove17() *RatingAppsType {
+ v := RatingAppsTypeVAgesAbove17
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingAustraliaMoviesTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingAustraliaMoviesTypeEnum.go
new file mode 100644
index 00000000..a7e39fb0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingAustraliaMoviesTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingAustraliaMoviesType undocumented
+type RatingAustraliaMoviesType int
+
+const (
+ // RatingAustraliaMoviesTypeVAllAllowed undocumented
+ RatingAustraliaMoviesTypeVAllAllowed RatingAustraliaMoviesType = 0
+ // RatingAustraliaMoviesTypeVAllBlocked undocumented
+ RatingAustraliaMoviesTypeVAllBlocked RatingAustraliaMoviesType = 1
+ // RatingAustraliaMoviesTypeVGeneral undocumented
+ RatingAustraliaMoviesTypeVGeneral RatingAustraliaMoviesType = 2
+ // RatingAustraliaMoviesTypeVParentalGuidance undocumented
+ RatingAustraliaMoviesTypeVParentalGuidance RatingAustraliaMoviesType = 3
+ // RatingAustraliaMoviesTypeVMature undocumented
+ RatingAustraliaMoviesTypeVMature RatingAustraliaMoviesType = 4
+ // RatingAustraliaMoviesTypeVAgesAbove15 undocumented
+ RatingAustraliaMoviesTypeVAgesAbove15 RatingAustraliaMoviesType = 5
+ // RatingAustraliaMoviesTypeVAgesAbove18 undocumented
+ RatingAustraliaMoviesTypeVAgesAbove18 RatingAustraliaMoviesType = 6
+)
+
+// RatingAustraliaMoviesTypePAllAllowed returns a pointer to RatingAustraliaMoviesTypeVAllAllowed
+func RatingAustraliaMoviesTypePAllAllowed() *RatingAustraliaMoviesType {
+ v := RatingAustraliaMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingAustraliaMoviesTypePAllBlocked returns a pointer to RatingAustraliaMoviesTypeVAllBlocked
+func RatingAustraliaMoviesTypePAllBlocked() *RatingAustraliaMoviesType {
+ v := RatingAustraliaMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingAustraliaMoviesTypePGeneral returns a pointer to RatingAustraliaMoviesTypeVGeneral
+func RatingAustraliaMoviesTypePGeneral() *RatingAustraliaMoviesType {
+ v := RatingAustraliaMoviesTypeVGeneral
+ return &v
+}
+
+// RatingAustraliaMoviesTypePParentalGuidance returns a pointer to RatingAustraliaMoviesTypeVParentalGuidance
+func RatingAustraliaMoviesTypePParentalGuidance() *RatingAustraliaMoviesType {
+ v := RatingAustraliaMoviesTypeVParentalGuidance
+ return &v
+}
+
+// RatingAustraliaMoviesTypePMature returns a pointer to RatingAustraliaMoviesTypeVMature
+func RatingAustraliaMoviesTypePMature() *RatingAustraliaMoviesType {
+ v := RatingAustraliaMoviesTypeVMature
+ return &v
+}
+
+// RatingAustraliaMoviesTypePAgesAbove15 returns a pointer to RatingAustraliaMoviesTypeVAgesAbove15
+func RatingAustraliaMoviesTypePAgesAbove15() *RatingAustraliaMoviesType {
+ v := RatingAustraliaMoviesTypeVAgesAbove15
+ return &v
+}
+
+// RatingAustraliaMoviesTypePAgesAbove18 returns a pointer to RatingAustraliaMoviesTypeVAgesAbove18
+func RatingAustraliaMoviesTypePAgesAbove18() *RatingAustraliaMoviesType {
+ v := RatingAustraliaMoviesTypeVAgesAbove18
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingAustraliaTelevisionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingAustraliaTelevisionTypeEnum.go
new file mode 100644
index 00000000..2823071a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingAustraliaTelevisionTypeEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingAustraliaTelevisionType undocumented
+type RatingAustraliaTelevisionType int
+
+const (
+ // RatingAustraliaTelevisionTypeVAllAllowed undocumented
+ RatingAustraliaTelevisionTypeVAllAllowed RatingAustraliaTelevisionType = 0
+ // RatingAustraliaTelevisionTypeVAllBlocked undocumented
+ RatingAustraliaTelevisionTypeVAllBlocked RatingAustraliaTelevisionType = 1
+ // RatingAustraliaTelevisionTypeVPreschoolers undocumented
+ RatingAustraliaTelevisionTypeVPreschoolers RatingAustraliaTelevisionType = 2
+ // RatingAustraliaTelevisionTypeVChildren undocumented
+ RatingAustraliaTelevisionTypeVChildren RatingAustraliaTelevisionType = 3
+ // RatingAustraliaTelevisionTypeVGeneral undocumented
+ RatingAustraliaTelevisionTypeVGeneral RatingAustraliaTelevisionType = 4
+ // RatingAustraliaTelevisionTypeVParentalGuidance undocumented
+ RatingAustraliaTelevisionTypeVParentalGuidance RatingAustraliaTelevisionType = 5
+ // RatingAustraliaTelevisionTypeVMature undocumented
+ RatingAustraliaTelevisionTypeVMature RatingAustraliaTelevisionType = 6
+ // RatingAustraliaTelevisionTypeVAgesAbove15 undocumented
+ RatingAustraliaTelevisionTypeVAgesAbove15 RatingAustraliaTelevisionType = 7
+ // RatingAustraliaTelevisionTypeVAgesAbove15AdultViolence undocumented
+ RatingAustraliaTelevisionTypeVAgesAbove15AdultViolence RatingAustraliaTelevisionType = 8
+)
+
+// RatingAustraliaTelevisionTypePAllAllowed returns a pointer to RatingAustraliaTelevisionTypeVAllAllowed
+func RatingAustraliaTelevisionTypePAllAllowed() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingAustraliaTelevisionTypePAllBlocked returns a pointer to RatingAustraliaTelevisionTypeVAllBlocked
+func RatingAustraliaTelevisionTypePAllBlocked() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingAustraliaTelevisionTypePPreschoolers returns a pointer to RatingAustraliaTelevisionTypeVPreschoolers
+func RatingAustraliaTelevisionTypePPreschoolers() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVPreschoolers
+ return &v
+}
+
+// RatingAustraliaTelevisionTypePChildren returns a pointer to RatingAustraliaTelevisionTypeVChildren
+func RatingAustraliaTelevisionTypePChildren() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVChildren
+ return &v
+}
+
+// RatingAustraliaTelevisionTypePGeneral returns a pointer to RatingAustraliaTelevisionTypeVGeneral
+func RatingAustraliaTelevisionTypePGeneral() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVGeneral
+ return &v
+}
+
+// RatingAustraliaTelevisionTypePParentalGuidance returns a pointer to RatingAustraliaTelevisionTypeVParentalGuidance
+func RatingAustraliaTelevisionTypePParentalGuidance() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVParentalGuidance
+ return &v
+}
+
+// RatingAustraliaTelevisionTypePMature returns a pointer to RatingAustraliaTelevisionTypeVMature
+func RatingAustraliaTelevisionTypePMature() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVMature
+ return &v
+}
+
+// RatingAustraliaTelevisionTypePAgesAbove15 returns a pointer to RatingAustraliaTelevisionTypeVAgesAbove15
+func RatingAustraliaTelevisionTypePAgesAbove15() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVAgesAbove15
+ return &v
+}
+
+// RatingAustraliaTelevisionTypePAgesAbove15AdultViolence returns a pointer to RatingAustraliaTelevisionTypeVAgesAbove15AdultViolence
+func RatingAustraliaTelevisionTypePAgesAbove15AdultViolence() *RatingAustraliaTelevisionType {
+ v := RatingAustraliaTelevisionTypeVAgesAbove15AdultViolence
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingCanadaMoviesTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingCanadaMoviesTypeEnum.go
new file mode 100644
index 00000000..4a001c6e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingCanadaMoviesTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingCanadaMoviesType undocumented
+type RatingCanadaMoviesType int
+
+const (
+ // RatingCanadaMoviesTypeVAllAllowed undocumented
+ RatingCanadaMoviesTypeVAllAllowed RatingCanadaMoviesType = 0
+ // RatingCanadaMoviesTypeVAllBlocked undocumented
+ RatingCanadaMoviesTypeVAllBlocked RatingCanadaMoviesType = 1
+ // RatingCanadaMoviesTypeVGeneral undocumented
+ RatingCanadaMoviesTypeVGeneral RatingCanadaMoviesType = 2
+ // RatingCanadaMoviesTypeVParentalGuidance undocumented
+ RatingCanadaMoviesTypeVParentalGuidance RatingCanadaMoviesType = 3
+ // RatingCanadaMoviesTypeVAgesAbove14 undocumented
+ RatingCanadaMoviesTypeVAgesAbove14 RatingCanadaMoviesType = 4
+ // RatingCanadaMoviesTypeVAgesAbove18 undocumented
+ RatingCanadaMoviesTypeVAgesAbove18 RatingCanadaMoviesType = 5
+ // RatingCanadaMoviesTypeVRestricted undocumented
+ RatingCanadaMoviesTypeVRestricted RatingCanadaMoviesType = 6
+)
+
+// RatingCanadaMoviesTypePAllAllowed returns a pointer to RatingCanadaMoviesTypeVAllAllowed
+func RatingCanadaMoviesTypePAllAllowed() *RatingCanadaMoviesType {
+ v := RatingCanadaMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingCanadaMoviesTypePAllBlocked returns a pointer to RatingCanadaMoviesTypeVAllBlocked
+func RatingCanadaMoviesTypePAllBlocked() *RatingCanadaMoviesType {
+ v := RatingCanadaMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingCanadaMoviesTypePGeneral returns a pointer to RatingCanadaMoviesTypeVGeneral
+func RatingCanadaMoviesTypePGeneral() *RatingCanadaMoviesType {
+ v := RatingCanadaMoviesTypeVGeneral
+ return &v
+}
+
+// RatingCanadaMoviesTypePParentalGuidance returns a pointer to RatingCanadaMoviesTypeVParentalGuidance
+func RatingCanadaMoviesTypePParentalGuidance() *RatingCanadaMoviesType {
+ v := RatingCanadaMoviesTypeVParentalGuidance
+ return &v
+}
+
+// RatingCanadaMoviesTypePAgesAbove14 returns a pointer to RatingCanadaMoviesTypeVAgesAbove14
+func RatingCanadaMoviesTypePAgesAbove14() *RatingCanadaMoviesType {
+ v := RatingCanadaMoviesTypeVAgesAbove14
+ return &v
+}
+
+// RatingCanadaMoviesTypePAgesAbove18 returns a pointer to RatingCanadaMoviesTypeVAgesAbove18
+func RatingCanadaMoviesTypePAgesAbove18() *RatingCanadaMoviesType {
+ v := RatingCanadaMoviesTypeVAgesAbove18
+ return &v
+}
+
+// RatingCanadaMoviesTypePRestricted returns a pointer to RatingCanadaMoviesTypeVRestricted
+func RatingCanadaMoviesTypePRestricted() *RatingCanadaMoviesType {
+ v := RatingCanadaMoviesTypeVRestricted
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingCanadaTelevisionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingCanadaTelevisionTypeEnum.go
new file mode 100644
index 00000000..3014ff9b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingCanadaTelevisionTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingCanadaTelevisionType undocumented
+type RatingCanadaTelevisionType int
+
+const (
+ // RatingCanadaTelevisionTypeVAllAllowed undocumented
+ RatingCanadaTelevisionTypeVAllAllowed RatingCanadaTelevisionType = 0
+ // RatingCanadaTelevisionTypeVAllBlocked undocumented
+ RatingCanadaTelevisionTypeVAllBlocked RatingCanadaTelevisionType = 1
+ // RatingCanadaTelevisionTypeVChildren undocumented
+ RatingCanadaTelevisionTypeVChildren RatingCanadaTelevisionType = 2
+ // RatingCanadaTelevisionTypeVChildrenAbove8 undocumented
+ RatingCanadaTelevisionTypeVChildrenAbove8 RatingCanadaTelevisionType = 3
+ // RatingCanadaTelevisionTypeVGeneral undocumented
+ RatingCanadaTelevisionTypeVGeneral RatingCanadaTelevisionType = 4
+ // RatingCanadaTelevisionTypeVParentalGuidance undocumented
+ RatingCanadaTelevisionTypeVParentalGuidance RatingCanadaTelevisionType = 5
+ // RatingCanadaTelevisionTypeVAgesAbove14 undocumented
+ RatingCanadaTelevisionTypeVAgesAbove14 RatingCanadaTelevisionType = 6
+ // RatingCanadaTelevisionTypeVAgesAbove18 undocumented
+ RatingCanadaTelevisionTypeVAgesAbove18 RatingCanadaTelevisionType = 7
+)
+
+// RatingCanadaTelevisionTypePAllAllowed returns a pointer to RatingCanadaTelevisionTypeVAllAllowed
+func RatingCanadaTelevisionTypePAllAllowed() *RatingCanadaTelevisionType {
+ v := RatingCanadaTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingCanadaTelevisionTypePAllBlocked returns a pointer to RatingCanadaTelevisionTypeVAllBlocked
+func RatingCanadaTelevisionTypePAllBlocked() *RatingCanadaTelevisionType {
+ v := RatingCanadaTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingCanadaTelevisionTypePChildren returns a pointer to RatingCanadaTelevisionTypeVChildren
+func RatingCanadaTelevisionTypePChildren() *RatingCanadaTelevisionType {
+ v := RatingCanadaTelevisionTypeVChildren
+ return &v
+}
+
+// RatingCanadaTelevisionTypePChildrenAbove8 returns a pointer to RatingCanadaTelevisionTypeVChildrenAbove8
+func RatingCanadaTelevisionTypePChildrenAbove8() *RatingCanadaTelevisionType {
+ v := RatingCanadaTelevisionTypeVChildrenAbove8
+ return &v
+}
+
+// RatingCanadaTelevisionTypePGeneral returns a pointer to RatingCanadaTelevisionTypeVGeneral
+func RatingCanadaTelevisionTypePGeneral() *RatingCanadaTelevisionType {
+ v := RatingCanadaTelevisionTypeVGeneral
+ return &v
+}
+
+// RatingCanadaTelevisionTypePParentalGuidance returns a pointer to RatingCanadaTelevisionTypeVParentalGuidance
+func RatingCanadaTelevisionTypePParentalGuidance() *RatingCanadaTelevisionType {
+ v := RatingCanadaTelevisionTypeVParentalGuidance
+ return &v
+}
+
+// RatingCanadaTelevisionTypePAgesAbove14 returns a pointer to RatingCanadaTelevisionTypeVAgesAbove14
+func RatingCanadaTelevisionTypePAgesAbove14() *RatingCanadaTelevisionType {
+ v := RatingCanadaTelevisionTypeVAgesAbove14
+ return &v
+}
+
+// RatingCanadaTelevisionTypePAgesAbove18 returns a pointer to RatingCanadaTelevisionTypeVAgesAbove18
+func RatingCanadaTelevisionTypePAgesAbove18() *RatingCanadaTelevisionType {
+ v := RatingCanadaTelevisionTypeVAgesAbove18
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingFranceMoviesTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingFranceMoviesTypeEnum.go
new file mode 100644
index 00000000..ac24c575
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingFranceMoviesTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingFranceMoviesType undocumented
+type RatingFranceMoviesType int
+
+const (
+ // RatingFranceMoviesTypeVAllAllowed undocumented
+ RatingFranceMoviesTypeVAllAllowed RatingFranceMoviesType = 0
+ // RatingFranceMoviesTypeVAllBlocked undocumented
+ RatingFranceMoviesTypeVAllBlocked RatingFranceMoviesType = 1
+ // RatingFranceMoviesTypeVAgesAbove10 undocumented
+ RatingFranceMoviesTypeVAgesAbove10 RatingFranceMoviesType = 2
+ // RatingFranceMoviesTypeVAgesAbove12 undocumented
+ RatingFranceMoviesTypeVAgesAbove12 RatingFranceMoviesType = 3
+ // RatingFranceMoviesTypeVAgesAbove16 undocumented
+ RatingFranceMoviesTypeVAgesAbove16 RatingFranceMoviesType = 4
+ // RatingFranceMoviesTypeVAgesAbove18 undocumented
+ RatingFranceMoviesTypeVAgesAbove18 RatingFranceMoviesType = 5
+)
+
+// RatingFranceMoviesTypePAllAllowed returns a pointer to RatingFranceMoviesTypeVAllAllowed
+func RatingFranceMoviesTypePAllAllowed() *RatingFranceMoviesType {
+ v := RatingFranceMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingFranceMoviesTypePAllBlocked returns a pointer to RatingFranceMoviesTypeVAllBlocked
+func RatingFranceMoviesTypePAllBlocked() *RatingFranceMoviesType {
+ v := RatingFranceMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingFranceMoviesTypePAgesAbove10 returns a pointer to RatingFranceMoviesTypeVAgesAbove10
+func RatingFranceMoviesTypePAgesAbove10() *RatingFranceMoviesType {
+ v := RatingFranceMoviesTypeVAgesAbove10
+ return &v
+}
+
+// RatingFranceMoviesTypePAgesAbove12 returns a pointer to RatingFranceMoviesTypeVAgesAbove12
+func RatingFranceMoviesTypePAgesAbove12() *RatingFranceMoviesType {
+ v := RatingFranceMoviesTypeVAgesAbove12
+ return &v
+}
+
+// RatingFranceMoviesTypePAgesAbove16 returns a pointer to RatingFranceMoviesTypeVAgesAbove16
+func RatingFranceMoviesTypePAgesAbove16() *RatingFranceMoviesType {
+ v := RatingFranceMoviesTypeVAgesAbove16
+ return &v
+}
+
+// RatingFranceMoviesTypePAgesAbove18 returns a pointer to RatingFranceMoviesTypeVAgesAbove18
+func RatingFranceMoviesTypePAgesAbove18() *RatingFranceMoviesType {
+ v := RatingFranceMoviesTypeVAgesAbove18
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingFranceTelevisionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingFranceTelevisionTypeEnum.go
new file mode 100644
index 00000000..bd2cfda2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingFranceTelevisionTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingFranceTelevisionType undocumented
+type RatingFranceTelevisionType int
+
+const (
+ // RatingFranceTelevisionTypeVAllAllowed undocumented
+ RatingFranceTelevisionTypeVAllAllowed RatingFranceTelevisionType = 0
+ // RatingFranceTelevisionTypeVAllBlocked undocumented
+ RatingFranceTelevisionTypeVAllBlocked RatingFranceTelevisionType = 1
+ // RatingFranceTelevisionTypeVAgesAbove10 undocumented
+ RatingFranceTelevisionTypeVAgesAbove10 RatingFranceTelevisionType = 2
+ // RatingFranceTelevisionTypeVAgesAbove12 undocumented
+ RatingFranceTelevisionTypeVAgesAbove12 RatingFranceTelevisionType = 3
+ // RatingFranceTelevisionTypeVAgesAbove16 undocumented
+ RatingFranceTelevisionTypeVAgesAbove16 RatingFranceTelevisionType = 4
+ // RatingFranceTelevisionTypeVAgesAbove18 undocumented
+ RatingFranceTelevisionTypeVAgesAbove18 RatingFranceTelevisionType = 5
+)
+
+// RatingFranceTelevisionTypePAllAllowed returns a pointer to RatingFranceTelevisionTypeVAllAllowed
+func RatingFranceTelevisionTypePAllAllowed() *RatingFranceTelevisionType {
+ v := RatingFranceTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingFranceTelevisionTypePAllBlocked returns a pointer to RatingFranceTelevisionTypeVAllBlocked
+func RatingFranceTelevisionTypePAllBlocked() *RatingFranceTelevisionType {
+ v := RatingFranceTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingFranceTelevisionTypePAgesAbove10 returns a pointer to RatingFranceTelevisionTypeVAgesAbove10
+func RatingFranceTelevisionTypePAgesAbove10() *RatingFranceTelevisionType {
+ v := RatingFranceTelevisionTypeVAgesAbove10
+ return &v
+}
+
+// RatingFranceTelevisionTypePAgesAbove12 returns a pointer to RatingFranceTelevisionTypeVAgesAbove12
+func RatingFranceTelevisionTypePAgesAbove12() *RatingFranceTelevisionType {
+ v := RatingFranceTelevisionTypeVAgesAbove12
+ return &v
+}
+
+// RatingFranceTelevisionTypePAgesAbove16 returns a pointer to RatingFranceTelevisionTypeVAgesAbove16
+func RatingFranceTelevisionTypePAgesAbove16() *RatingFranceTelevisionType {
+ v := RatingFranceTelevisionTypeVAgesAbove16
+ return &v
+}
+
+// RatingFranceTelevisionTypePAgesAbove18 returns a pointer to RatingFranceTelevisionTypeVAgesAbove18
+func RatingFranceTelevisionTypePAgesAbove18() *RatingFranceTelevisionType {
+ v := RatingFranceTelevisionTypeVAgesAbove18
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingGermanyMoviesTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingGermanyMoviesTypeEnum.go
new file mode 100644
index 00000000..b21b1fcd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingGermanyMoviesTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingGermanyMoviesType undocumented
+type RatingGermanyMoviesType int
+
+const (
+ // RatingGermanyMoviesTypeVAllAllowed undocumented
+ RatingGermanyMoviesTypeVAllAllowed RatingGermanyMoviesType = 0
+ // RatingGermanyMoviesTypeVAllBlocked undocumented
+ RatingGermanyMoviesTypeVAllBlocked RatingGermanyMoviesType = 1
+ // RatingGermanyMoviesTypeVGeneral undocumented
+ RatingGermanyMoviesTypeVGeneral RatingGermanyMoviesType = 2
+ // RatingGermanyMoviesTypeVAgesAbove6 undocumented
+ RatingGermanyMoviesTypeVAgesAbove6 RatingGermanyMoviesType = 3
+ // RatingGermanyMoviesTypeVAgesAbove12 undocumented
+ RatingGermanyMoviesTypeVAgesAbove12 RatingGermanyMoviesType = 4
+ // RatingGermanyMoviesTypeVAgesAbove16 undocumented
+ RatingGermanyMoviesTypeVAgesAbove16 RatingGermanyMoviesType = 5
+ // RatingGermanyMoviesTypeVAdults undocumented
+ RatingGermanyMoviesTypeVAdults RatingGermanyMoviesType = 6
+)
+
+// RatingGermanyMoviesTypePAllAllowed returns a pointer to RatingGermanyMoviesTypeVAllAllowed
+func RatingGermanyMoviesTypePAllAllowed() *RatingGermanyMoviesType {
+ v := RatingGermanyMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingGermanyMoviesTypePAllBlocked returns a pointer to RatingGermanyMoviesTypeVAllBlocked
+func RatingGermanyMoviesTypePAllBlocked() *RatingGermanyMoviesType {
+ v := RatingGermanyMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingGermanyMoviesTypePGeneral returns a pointer to RatingGermanyMoviesTypeVGeneral
+func RatingGermanyMoviesTypePGeneral() *RatingGermanyMoviesType {
+ v := RatingGermanyMoviesTypeVGeneral
+ return &v
+}
+
+// RatingGermanyMoviesTypePAgesAbove6 returns a pointer to RatingGermanyMoviesTypeVAgesAbove6
+func RatingGermanyMoviesTypePAgesAbove6() *RatingGermanyMoviesType {
+ v := RatingGermanyMoviesTypeVAgesAbove6
+ return &v
+}
+
+// RatingGermanyMoviesTypePAgesAbove12 returns a pointer to RatingGermanyMoviesTypeVAgesAbove12
+func RatingGermanyMoviesTypePAgesAbove12() *RatingGermanyMoviesType {
+ v := RatingGermanyMoviesTypeVAgesAbove12
+ return &v
+}
+
+// RatingGermanyMoviesTypePAgesAbove16 returns a pointer to RatingGermanyMoviesTypeVAgesAbove16
+func RatingGermanyMoviesTypePAgesAbove16() *RatingGermanyMoviesType {
+ v := RatingGermanyMoviesTypeVAgesAbove16
+ return &v
+}
+
+// RatingGermanyMoviesTypePAdults returns a pointer to RatingGermanyMoviesTypeVAdults
+func RatingGermanyMoviesTypePAdults() *RatingGermanyMoviesType {
+ v := RatingGermanyMoviesTypeVAdults
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingGermanyTelevisionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingGermanyTelevisionTypeEnum.go
new file mode 100644
index 00000000..2a00bec4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingGermanyTelevisionTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingGermanyTelevisionType undocumented
+type RatingGermanyTelevisionType int
+
+const (
+ // RatingGermanyTelevisionTypeVAllAllowed undocumented
+ RatingGermanyTelevisionTypeVAllAllowed RatingGermanyTelevisionType = 0
+ // RatingGermanyTelevisionTypeVAllBlocked undocumented
+ RatingGermanyTelevisionTypeVAllBlocked RatingGermanyTelevisionType = 1
+ // RatingGermanyTelevisionTypeVGeneral undocumented
+ RatingGermanyTelevisionTypeVGeneral RatingGermanyTelevisionType = 2
+ // RatingGermanyTelevisionTypeVAgesAbove6 undocumented
+ RatingGermanyTelevisionTypeVAgesAbove6 RatingGermanyTelevisionType = 3
+ // RatingGermanyTelevisionTypeVAgesAbove12 undocumented
+ RatingGermanyTelevisionTypeVAgesAbove12 RatingGermanyTelevisionType = 4
+ // RatingGermanyTelevisionTypeVAgesAbove16 undocumented
+ RatingGermanyTelevisionTypeVAgesAbove16 RatingGermanyTelevisionType = 5
+ // RatingGermanyTelevisionTypeVAdults undocumented
+ RatingGermanyTelevisionTypeVAdults RatingGermanyTelevisionType = 6
+)
+
+// RatingGermanyTelevisionTypePAllAllowed returns a pointer to RatingGermanyTelevisionTypeVAllAllowed
+func RatingGermanyTelevisionTypePAllAllowed() *RatingGermanyTelevisionType {
+ v := RatingGermanyTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingGermanyTelevisionTypePAllBlocked returns a pointer to RatingGermanyTelevisionTypeVAllBlocked
+func RatingGermanyTelevisionTypePAllBlocked() *RatingGermanyTelevisionType {
+ v := RatingGermanyTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingGermanyTelevisionTypePGeneral returns a pointer to RatingGermanyTelevisionTypeVGeneral
+func RatingGermanyTelevisionTypePGeneral() *RatingGermanyTelevisionType {
+ v := RatingGermanyTelevisionTypeVGeneral
+ return &v
+}
+
+// RatingGermanyTelevisionTypePAgesAbove6 returns a pointer to RatingGermanyTelevisionTypeVAgesAbove6
+func RatingGermanyTelevisionTypePAgesAbove6() *RatingGermanyTelevisionType {
+ v := RatingGermanyTelevisionTypeVAgesAbove6
+ return &v
+}
+
+// RatingGermanyTelevisionTypePAgesAbove12 returns a pointer to RatingGermanyTelevisionTypeVAgesAbove12
+func RatingGermanyTelevisionTypePAgesAbove12() *RatingGermanyTelevisionType {
+ v := RatingGermanyTelevisionTypeVAgesAbove12
+ return &v
+}
+
+// RatingGermanyTelevisionTypePAgesAbove16 returns a pointer to RatingGermanyTelevisionTypeVAgesAbove16
+func RatingGermanyTelevisionTypePAgesAbove16() *RatingGermanyTelevisionType {
+ v := RatingGermanyTelevisionTypeVAgesAbove16
+ return &v
+}
+
+// RatingGermanyTelevisionTypePAdults returns a pointer to RatingGermanyTelevisionTypeVAdults
+func RatingGermanyTelevisionTypePAdults() *RatingGermanyTelevisionType {
+ v := RatingGermanyTelevisionTypeVAdults
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingIrelandMoviesTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingIrelandMoviesTypeEnum.go
new file mode 100644
index 00000000..964f4da8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingIrelandMoviesTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingIrelandMoviesType undocumented
+type RatingIrelandMoviesType int
+
+const (
+ // RatingIrelandMoviesTypeVAllAllowed undocumented
+ RatingIrelandMoviesTypeVAllAllowed RatingIrelandMoviesType = 0
+ // RatingIrelandMoviesTypeVAllBlocked undocumented
+ RatingIrelandMoviesTypeVAllBlocked RatingIrelandMoviesType = 1
+ // RatingIrelandMoviesTypeVGeneral undocumented
+ RatingIrelandMoviesTypeVGeneral RatingIrelandMoviesType = 2
+ // RatingIrelandMoviesTypeVParentalGuidance undocumented
+ RatingIrelandMoviesTypeVParentalGuidance RatingIrelandMoviesType = 3
+ // RatingIrelandMoviesTypeVAgesAbove12 undocumented
+ RatingIrelandMoviesTypeVAgesAbove12 RatingIrelandMoviesType = 4
+ // RatingIrelandMoviesTypeVAgesAbove15 undocumented
+ RatingIrelandMoviesTypeVAgesAbove15 RatingIrelandMoviesType = 5
+ // RatingIrelandMoviesTypeVAgesAbove16 undocumented
+ RatingIrelandMoviesTypeVAgesAbove16 RatingIrelandMoviesType = 6
+ // RatingIrelandMoviesTypeVAdults undocumented
+ RatingIrelandMoviesTypeVAdults RatingIrelandMoviesType = 7
+)
+
+// RatingIrelandMoviesTypePAllAllowed returns a pointer to RatingIrelandMoviesTypeVAllAllowed
+func RatingIrelandMoviesTypePAllAllowed() *RatingIrelandMoviesType {
+ v := RatingIrelandMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingIrelandMoviesTypePAllBlocked returns a pointer to RatingIrelandMoviesTypeVAllBlocked
+func RatingIrelandMoviesTypePAllBlocked() *RatingIrelandMoviesType {
+ v := RatingIrelandMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingIrelandMoviesTypePGeneral returns a pointer to RatingIrelandMoviesTypeVGeneral
+func RatingIrelandMoviesTypePGeneral() *RatingIrelandMoviesType {
+ v := RatingIrelandMoviesTypeVGeneral
+ return &v
+}
+
+// RatingIrelandMoviesTypePParentalGuidance returns a pointer to RatingIrelandMoviesTypeVParentalGuidance
+func RatingIrelandMoviesTypePParentalGuidance() *RatingIrelandMoviesType {
+ v := RatingIrelandMoviesTypeVParentalGuidance
+ return &v
+}
+
+// RatingIrelandMoviesTypePAgesAbove12 returns a pointer to RatingIrelandMoviesTypeVAgesAbove12
+func RatingIrelandMoviesTypePAgesAbove12() *RatingIrelandMoviesType {
+ v := RatingIrelandMoviesTypeVAgesAbove12
+ return &v
+}
+
+// RatingIrelandMoviesTypePAgesAbove15 returns a pointer to RatingIrelandMoviesTypeVAgesAbove15
+func RatingIrelandMoviesTypePAgesAbove15() *RatingIrelandMoviesType {
+ v := RatingIrelandMoviesTypeVAgesAbove15
+ return &v
+}
+
+// RatingIrelandMoviesTypePAgesAbove16 returns a pointer to RatingIrelandMoviesTypeVAgesAbove16
+func RatingIrelandMoviesTypePAgesAbove16() *RatingIrelandMoviesType {
+ v := RatingIrelandMoviesTypeVAgesAbove16
+ return &v
+}
+
+// RatingIrelandMoviesTypePAdults returns a pointer to RatingIrelandMoviesTypeVAdults
+func RatingIrelandMoviesTypePAdults() *RatingIrelandMoviesType {
+ v := RatingIrelandMoviesTypeVAdults
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingIrelandTelevisionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingIrelandTelevisionTypeEnum.go
new file mode 100644
index 00000000..82b3a391
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingIrelandTelevisionTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingIrelandTelevisionType undocumented
+type RatingIrelandTelevisionType int
+
+const (
+ // RatingIrelandTelevisionTypeVAllAllowed undocumented
+ RatingIrelandTelevisionTypeVAllAllowed RatingIrelandTelevisionType = 0
+ // RatingIrelandTelevisionTypeVAllBlocked undocumented
+ RatingIrelandTelevisionTypeVAllBlocked RatingIrelandTelevisionType = 1
+ // RatingIrelandTelevisionTypeVGeneral undocumented
+ RatingIrelandTelevisionTypeVGeneral RatingIrelandTelevisionType = 2
+ // RatingIrelandTelevisionTypeVChildren undocumented
+ RatingIrelandTelevisionTypeVChildren RatingIrelandTelevisionType = 3
+ // RatingIrelandTelevisionTypeVYoungAdults undocumented
+ RatingIrelandTelevisionTypeVYoungAdults RatingIrelandTelevisionType = 4
+ // RatingIrelandTelevisionTypeVParentalSupervision undocumented
+ RatingIrelandTelevisionTypeVParentalSupervision RatingIrelandTelevisionType = 5
+ // RatingIrelandTelevisionTypeVMature undocumented
+ RatingIrelandTelevisionTypeVMature RatingIrelandTelevisionType = 6
+)
+
+// RatingIrelandTelevisionTypePAllAllowed returns a pointer to RatingIrelandTelevisionTypeVAllAllowed
+func RatingIrelandTelevisionTypePAllAllowed() *RatingIrelandTelevisionType {
+ v := RatingIrelandTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingIrelandTelevisionTypePAllBlocked returns a pointer to RatingIrelandTelevisionTypeVAllBlocked
+func RatingIrelandTelevisionTypePAllBlocked() *RatingIrelandTelevisionType {
+ v := RatingIrelandTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingIrelandTelevisionTypePGeneral returns a pointer to RatingIrelandTelevisionTypeVGeneral
+func RatingIrelandTelevisionTypePGeneral() *RatingIrelandTelevisionType {
+ v := RatingIrelandTelevisionTypeVGeneral
+ return &v
+}
+
+// RatingIrelandTelevisionTypePChildren returns a pointer to RatingIrelandTelevisionTypeVChildren
+func RatingIrelandTelevisionTypePChildren() *RatingIrelandTelevisionType {
+ v := RatingIrelandTelevisionTypeVChildren
+ return &v
+}
+
+// RatingIrelandTelevisionTypePYoungAdults returns a pointer to RatingIrelandTelevisionTypeVYoungAdults
+func RatingIrelandTelevisionTypePYoungAdults() *RatingIrelandTelevisionType {
+ v := RatingIrelandTelevisionTypeVYoungAdults
+ return &v
+}
+
+// RatingIrelandTelevisionTypePParentalSupervision returns a pointer to RatingIrelandTelevisionTypeVParentalSupervision
+func RatingIrelandTelevisionTypePParentalSupervision() *RatingIrelandTelevisionType {
+ v := RatingIrelandTelevisionTypeVParentalSupervision
+ return &v
+}
+
+// RatingIrelandTelevisionTypePMature returns a pointer to RatingIrelandTelevisionTypeVMature
+func RatingIrelandTelevisionTypePMature() *RatingIrelandTelevisionType {
+ v := RatingIrelandTelevisionTypeVMature
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingJapanMoviesTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingJapanMoviesTypeEnum.go
new file mode 100644
index 00000000..cd8671ec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingJapanMoviesTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingJapanMoviesType undocumented
+type RatingJapanMoviesType int
+
+const (
+ // RatingJapanMoviesTypeVAllAllowed undocumented
+ RatingJapanMoviesTypeVAllAllowed RatingJapanMoviesType = 0
+ // RatingJapanMoviesTypeVAllBlocked undocumented
+ RatingJapanMoviesTypeVAllBlocked RatingJapanMoviesType = 1
+ // RatingJapanMoviesTypeVGeneral undocumented
+ RatingJapanMoviesTypeVGeneral RatingJapanMoviesType = 2
+ // RatingJapanMoviesTypeVParentalGuidance undocumented
+ RatingJapanMoviesTypeVParentalGuidance RatingJapanMoviesType = 3
+ // RatingJapanMoviesTypeVAgesAbove15 undocumented
+ RatingJapanMoviesTypeVAgesAbove15 RatingJapanMoviesType = 4
+ // RatingJapanMoviesTypeVAgesAbove18 undocumented
+ RatingJapanMoviesTypeVAgesAbove18 RatingJapanMoviesType = 5
+)
+
+// RatingJapanMoviesTypePAllAllowed returns a pointer to RatingJapanMoviesTypeVAllAllowed
+func RatingJapanMoviesTypePAllAllowed() *RatingJapanMoviesType {
+ v := RatingJapanMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingJapanMoviesTypePAllBlocked returns a pointer to RatingJapanMoviesTypeVAllBlocked
+func RatingJapanMoviesTypePAllBlocked() *RatingJapanMoviesType {
+ v := RatingJapanMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingJapanMoviesTypePGeneral returns a pointer to RatingJapanMoviesTypeVGeneral
+func RatingJapanMoviesTypePGeneral() *RatingJapanMoviesType {
+ v := RatingJapanMoviesTypeVGeneral
+ return &v
+}
+
+// RatingJapanMoviesTypePParentalGuidance returns a pointer to RatingJapanMoviesTypeVParentalGuidance
+func RatingJapanMoviesTypePParentalGuidance() *RatingJapanMoviesType {
+ v := RatingJapanMoviesTypeVParentalGuidance
+ return &v
+}
+
+// RatingJapanMoviesTypePAgesAbove15 returns a pointer to RatingJapanMoviesTypeVAgesAbove15
+func RatingJapanMoviesTypePAgesAbove15() *RatingJapanMoviesType {
+ v := RatingJapanMoviesTypeVAgesAbove15
+ return &v
+}
+
+// RatingJapanMoviesTypePAgesAbove18 returns a pointer to RatingJapanMoviesTypeVAgesAbove18
+func RatingJapanMoviesTypePAgesAbove18() *RatingJapanMoviesType {
+ v := RatingJapanMoviesTypeVAgesAbove18
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingJapanTelevisionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingJapanTelevisionTypeEnum.go
new file mode 100644
index 00000000..84e221b1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingJapanTelevisionTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingJapanTelevisionType undocumented
+type RatingJapanTelevisionType int
+
+const (
+ // RatingJapanTelevisionTypeVAllAllowed undocumented
+ RatingJapanTelevisionTypeVAllAllowed RatingJapanTelevisionType = 0
+ // RatingJapanTelevisionTypeVAllBlocked undocumented
+ RatingJapanTelevisionTypeVAllBlocked RatingJapanTelevisionType = 1
+ // RatingJapanTelevisionTypeVExplicitAllowed undocumented
+ RatingJapanTelevisionTypeVExplicitAllowed RatingJapanTelevisionType = 2
+)
+
+// RatingJapanTelevisionTypePAllAllowed returns a pointer to RatingJapanTelevisionTypeVAllAllowed
+func RatingJapanTelevisionTypePAllAllowed() *RatingJapanTelevisionType {
+ v := RatingJapanTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingJapanTelevisionTypePAllBlocked returns a pointer to RatingJapanTelevisionTypeVAllBlocked
+func RatingJapanTelevisionTypePAllBlocked() *RatingJapanTelevisionType {
+ v := RatingJapanTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingJapanTelevisionTypePExplicitAllowed returns a pointer to RatingJapanTelevisionTypeVExplicitAllowed
+func RatingJapanTelevisionTypePExplicitAllowed() *RatingJapanTelevisionType {
+ v := RatingJapanTelevisionTypeVExplicitAllowed
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingNewZealandMoviesTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingNewZealandMoviesTypeEnum.go
new file mode 100644
index 00000000..88e28c83
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingNewZealandMoviesTypeEnum.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingNewZealandMoviesType undocumented
+type RatingNewZealandMoviesType int
+
+const (
+ // RatingNewZealandMoviesTypeVAllAllowed undocumented
+ RatingNewZealandMoviesTypeVAllAllowed RatingNewZealandMoviesType = 0
+ // RatingNewZealandMoviesTypeVAllBlocked undocumented
+ RatingNewZealandMoviesTypeVAllBlocked RatingNewZealandMoviesType = 1
+ // RatingNewZealandMoviesTypeVGeneral undocumented
+ RatingNewZealandMoviesTypeVGeneral RatingNewZealandMoviesType = 2
+ // RatingNewZealandMoviesTypeVParentalGuidance undocumented
+ RatingNewZealandMoviesTypeVParentalGuidance RatingNewZealandMoviesType = 3
+ // RatingNewZealandMoviesTypeVMature undocumented
+ RatingNewZealandMoviesTypeVMature RatingNewZealandMoviesType = 4
+ // RatingNewZealandMoviesTypeVAgesAbove13 undocumented
+ RatingNewZealandMoviesTypeVAgesAbove13 RatingNewZealandMoviesType = 5
+ // RatingNewZealandMoviesTypeVAgesAbove15 undocumented
+ RatingNewZealandMoviesTypeVAgesAbove15 RatingNewZealandMoviesType = 6
+ // RatingNewZealandMoviesTypeVAgesAbove16 undocumented
+ RatingNewZealandMoviesTypeVAgesAbove16 RatingNewZealandMoviesType = 7
+ // RatingNewZealandMoviesTypeVAgesAbove18 undocumented
+ RatingNewZealandMoviesTypeVAgesAbove18 RatingNewZealandMoviesType = 8
+ // RatingNewZealandMoviesTypeVRestricted undocumented
+ RatingNewZealandMoviesTypeVRestricted RatingNewZealandMoviesType = 9
+ // RatingNewZealandMoviesTypeVAgesAbove16Restricted undocumented
+ RatingNewZealandMoviesTypeVAgesAbove16Restricted RatingNewZealandMoviesType = 10
+)
+
+// RatingNewZealandMoviesTypePAllAllowed returns a pointer to RatingNewZealandMoviesTypeVAllAllowed
+func RatingNewZealandMoviesTypePAllAllowed() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingNewZealandMoviesTypePAllBlocked returns a pointer to RatingNewZealandMoviesTypeVAllBlocked
+func RatingNewZealandMoviesTypePAllBlocked() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingNewZealandMoviesTypePGeneral returns a pointer to RatingNewZealandMoviesTypeVGeneral
+func RatingNewZealandMoviesTypePGeneral() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVGeneral
+ return &v
+}
+
+// RatingNewZealandMoviesTypePParentalGuidance returns a pointer to RatingNewZealandMoviesTypeVParentalGuidance
+func RatingNewZealandMoviesTypePParentalGuidance() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVParentalGuidance
+ return &v
+}
+
+// RatingNewZealandMoviesTypePMature returns a pointer to RatingNewZealandMoviesTypeVMature
+func RatingNewZealandMoviesTypePMature() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVMature
+ return &v
+}
+
+// RatingNewZealandMoviesTypePAgesAbove13 returns a pointer to RatingNewZealandMoviesTypeVAgesAbove13
+func RatingNewZealandMoviesTypePAgesAbove13() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVAgesAbove13
+ return &v
+}
+
+// RatingNewZealandMoviesTypePAgesAbove15 returns a pointer to RatingNewZealandMoviesTypeVAgesAbove15
+func RatingNewZealandMoviesTypePAgesAbove15() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVAgesAbove15
+ return &v
+}
+
+// RatingNewZealandMoviesTypePAgesAbove16 returns a pointer to RatingNewZealandMoviesTypeVAgesAbove16
+func RatingNewZealandMoviesTypePAgesAbove16() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVAgesAbove16
+ return &v
+}
+
+// RatingNewZealandMoviesTypePAgesAbove18 returns a pointer to RatingNewZealandMoviesTypeVAgesAbove18
+func RatingNewZealandMoviesTypePAgesAbove18() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVAgesAbove18
+ return &v
+}
+
+// RatingNewZealandMoviesTypePRestricted returns a pointer to RatingNewZealandMoviesTypeVRestricted
+func RatingNewZealandMoviesTypePRestricted() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVRestricted
+ return &v
+}
+
+// RatingNewZealandMoviesTypePAgesAbove16Restricted returns a pointer to RatingNewZealandMoviesTypeVAgesAbove16Restricted
+func RatingNewZealandMoviesTypePAgesAbove16Restricted() *RatingNewZealandMoviesType {
+ v := RatingNewZealandMoviesTypeVAgesAbove16Restricted
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingNewZealandTelevisionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingNewZealandTelevisionTypeEnum.go
new file mode 100644
index 00000000..441cd35d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingNewZealandTelevisionTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingNewZealandTelevisionType undocumented
+type RatingNewZealandTelevisionType int
+
+const (
+ // RatingNewZealandTelevisionTypeVAllAllowed undocumented
+ RatingNewZealandTelevisionTypeVAllAllowed RatingNewZealandTelevisionType = 0
+ // RatingNewZealandTelevisionTypeVAllBlocked undocumented
+ RatingNewZealandTelevisionTypeVAllBlocked RatingNewZealandTelevisionType = 1
+ // RatingNewZealandTelevisionTypeVGeneral undocumented
+ RatingNewZealandTelevisionTypeVGeneral RatingNewZealandTelevisionType = 2
+ // RatingNewZealandTelevisionTypeVParentalGuidance undocumented
+ RatingNewZealandTelevisionTypeVParentalGuidance RatingNewZealandTelevisionType = 3
+ // RatingNewZealandTelevisionTypeVAdults undocumented
+ RatingNewZealandTelevisionTypeVAdults RatingNewZealandTelevisionType = 4
+)
+
+// RatingNewZealandTelevisionTypePAllAllowed returns a pointer to RatingNewZealandTelevisionTypeVAllAllowed
+func RatingNewZealandTelevisionTypePAllAllowed() *RatingNewZealandTelevisionType {
+ v := RatingNewZealandTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingNewZealandTelevisionTypePAllBlocked returns a pointer to RatingNewZealandTelevisionTypeVAllBlocked
+func RatingNewZealandTelevisionTypePAllBlocked() *RatingNewZealandTelevisionType {
+ v := RatingNewZealandTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingNewZealandTelevisionTypePGeneral returns a pointer to RatingNewZealandTelevisionTypeVGeneral
+func RatingNewZealandTelevisionTypePGeneral() *RatingNewZealandTelevisionType {
+ v := RatingNewZealandTelevisionTypeVGeneral
+ return &v
+}
+
+// RatingNewZealandTelevisionTypePParentalGuidance returns a pointer to RatingNewZealandTelevisionTypeVParentalGuidance
+func RatingNewZealandTelevisionTypePParentalGuidance() *RatingNewZealandTelevisionType {
+ v := RatingNewZealandTelevisionTypeVParentalGuidance
+ return &v
+}
+
+// RatingNewZealandTelevisionTypePAdults returns a pointer to RatingNewZealandTelevisionTypeVAdults
+func RatingNewZealandTelevisionTypePAdults() *RatingNewZealandTelevisionType {
+ v := RatingNewZealandTelevisionTypeVAdults
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingUnitedKingdomMoviesTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingUnitedKingdomMoviesTypeEnum.go
new file mode 100644
index 00000000..7b57cc51
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingUnitedKingdomMoviesTypeEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingUnitedKingdomMoviesType undocumented
+type RatingUnitedKingdomMoviesType int
+
+const (
+ // RatingUnitedKingdomMoviesTypeVAllAllowed undocumented
+ RatingUnitedKingdomMoviesTypeVAllAllowed RatingUnitedKingdomMoviesType = 0
+ // RatingUnitedKingdomMoviesTypeVAllBlocked undocumented
+ RatingUnitedKingdomMoviesTypeVAllBlocked RatingUnitedKingdomMoviesType = 1
+ // RatingUnitedKingdomMoviesTypeVGeneral undocumented
+ RatingUnitedKingdomMoviesTypeVGeneral RatingUnitedKingdomMoviesType = 2
+ // RatingUnitedKingdomMoviesTypeVUniversalChildren undocumented
+ RatingUnitedKingdomMoviesTypeVUniversalChildren RatingUnitedKingdomMoviesType = 3
+ // RatingUnitedKingdomMoviesTypeVParentalGuidance undocumented
+ RatingUnitedKingdomMoviesTypeVParentalGuidance RatingUnitedKingdomMoviesType = 4
+ // RatingUnitedKingdomMoviesTypeVAgesAbove12Video undocumented
+ RatingUnitedKingdomMoviesTypeVAgesAbove12Video RatingUnitedKingdomMoviesType = 5
+ // RatingUnitedKingdomMoviesTypeVAgesAbove12Cinema undocumented
+ RatingUnitedKingdomMoviesTypeVAgesAbove12Cinema RatingUnitedKingdomMoviesType = 6
+ // RatingUnitedKingdomMoviesTypeVAgesAbove15 undocumented
+ RatingUnitedKingdomMoviesTypeVAgesAbove15 RatingUnitedKingdomMoviesType = 7
+ // RatingUnitedKingdomMoviesTypeVAdults undocumented
+ RatingUnitedKingdomMoviesTypeVAdults RatingUnitedKingdomMoviesType = 8
+)
+
+// RatingUnitedKingdomMoviesTypePAllAllowed returns a pointer to RatingUnitedKingdomMoviesTypeVAllAllowed
+func RatingUnitedKingdomMoviesTypePAllAllowed() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingUnitedKingdomMoviesTypePAllBlocked returns a pointer to RatingUnitedKingdomMoviesTypeVAllBlocked
+func RatingUnitedKingdomMoviesTypePAllBlocked() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingUnitedKingdomMoviesTypePGeneral returns a pointer to RatingUnitedKingdomMoviesTypeVGeneral
+func RatingUnitedKingdomMoviesTypePGeneral() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVGeneral
+ return &v
+}
+
+// RatingUnitedKingdomMoviesTypePUniversalChildren returns a pointer to RatingUnitedKingdomMoviesTypeVUniversalChildren
+func RatingUnitedKingdomMoviesTypePUniversalChildren() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVUniversalChildren
+ return &v
+}
+
+// RatingUnitedKingdomMoviesTypePParentalGuidance returns a pointer to RatingUnitedKingdomMoviesTypeVParentalGuidance
+func RatingUnitedKingdomMoviesTypePParentalGuidance() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVParentalGuidance
+ return &v
+}
+
+// RatingUnitedKingdomMoviesTypePAgesAbove12Video returns a pointer to RatingUnitedKingdomMoviesTypeVAgesAbove12Video
+func RatingUnitedKingdomMoviesTypePAgesAbove12Video() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVAgesAbove12Video
+ return &v
+}
+
+// RatingUnitedKingdomMoviesTypePAgesAbove12Cinema returns a pointer to RatingUnitedKingdomMoviesTypeVAgesAbove12Cinema
+func RatingUnitedKingdomMoviesTypePAgesAbove12Cinema() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVAgesAbove12Cinema
+ return &v
+}
+
+// RatingUnitedKingdomMoviesTypePAgesAbove15 returns a pointer to RatingUnitedKingdomMoviesTypeVAgesAbove15
+func RatingUnitedKingdomMoviesTypePAgesAbove15() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVAgesAbove15
+ return &v
+}
+
+// RatingUnitedKingdomMoviesTypePAdults returns a pointer to RatingUnitedKingdomMoviesTypeVAdults
+func RatingUnitedKingdomMoviesTypePAdults() *RatingUnitedKingdomMoviesType {
+ v := RatingUnitedKingdomMoviesTypeVAdults
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingUnitedKingdomTelevisionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingUnitedKingdomTelevisionTypeEnum.go
new file mode 100644
index 00000000..ad86b8c4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingUnitedKingdomTelevisionTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingUnitedKingdomTelevisionType undocumented
+type RatingUnitedKingdomTelevisionType int
+
+const (
+ // RatingUnitedKingdomTelevisionTypeVAllAllowed undocumented
+ RatingUnitedKingdomTelevisionTypeVAllAllowed RatingUnitedKingdomTelevisionType = 0
+ // RatingUnitedKingdomTelevisionTypeVAllBlocked undocumented
+ RatingUnitedKingdomTelevisionTypeVAllBlocked RatingUnitedKingdomTelevisionType = 1
+ // RatingUnitedKingdomTelevisionTypeVCaution undocumented
+ RatingUnitedKingdomTelevisionTypeVCaution RatingUnitedKingdomTelevisionType = 2
+)
+
+// RatingUnitedKingdomTelevisionTypePAllAllowed returns a pointer to RatingUnitedKingdomTelevisionTypeVAllAllowed
+func RatingUnitedKingdomTelevisionTypePAllAllowed() *RatingUnitedKingdomTelevisionType {
+ v := RatingUnitedKingdomTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingUnitedKingdomTelevisionTypePAllBlocked returns a pointer to RatingUnitedKingdomTelevisionTypeVAllBlocked
+func RatingUnitedKingdomTelevisionTypePAllBlocked() *RatingUnitedKingdomTelevisionType {
+ v := RatingUnitedKingdomTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingUnitedKingdomTelevisionTypePCaution returns a pointer to RatingUnitedKingdomTelevisionTypeVCaution
+func RatingUnitedKingdomTelevisionTypePCaution() *RatingUnitedKingdomTelevisionType {
+ v := RatingUnitedKingdomTelevisionTypeVCaution
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingUnitedStatesMoviesTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingUnitedStatesMoviesTypeEnum.go
new file mode 100644
index 00000000..ff27f3e5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingUnitedStatesMoviesTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingUnitedStatesMoviesType undocumented
+type RatingUnitedStatesMoviesType int
+
+const (
+ // RatingUnitedStatesMoviesTypeVAllAllowed undocumented
+ RatingUnitedStatesMoviesTypeVAllAllowed RatingUnitedStatesMoviesType = 0
+ // RatingUnitedStatesMoviesTypeVAllBlocked undocumented
+ RatingUnitedStatesMoviesTypeVAllBlocked RatingUnitedStatesMoviesType = 1
+ // RatingUnitedStatesMoviesTypeVGeneral undocumented
+ RatingUnitedStatesMoviesTypeVGeneral RatingUnitedStatesMoviesType = 2
+ // RatingUnitedStatesMoviesTypeVParentalGuidance undocumented
+ RatingUnitedStatesMoviesTypeVParentalGuidance RatingUnitedStatesMoviesType = 3
+ // RatingUnitedStatesMoviesTypeVParentalGuidance13 undocumented
+ RatingUnitedStatesMoviesTypeVParentalGuidance13 RatingUnitedStatesMoviesType = 4
+ // RatingUnitedStatesMoviesTypeVRestricted undocumented
+ RatingUnitedStatesMoviesTypeVRestricted RatingUnitedStatesMoviesType = 5
+ // RatingUnitedStatesMoviesTypeVAdults undocumented
+ RatingUnitedStatesMoviesTypeVAdults RatingUnitedStatesMoviesType = 6
+)
+
+// RatingUnitedStatesMoviesTypePAllAllowed returns a pointer to RatingUnitedStatesMoviesTypeVAllAllowed
+func RatingUnitedStatesMoviesTypePAllAllowed() *RatingUnitedStatesMoviesType {
+ v := RatingUnitedStatesMoviesTypeVAllAllowed
+ return &v
+}
+
+// RatingUnitedStatesMoviesTypePAllBlocked returns a pointer to RatingUnitedStatesMoviesTypeVAllBlocked
+func RatingUnitedStatesMoviesTypePAllBlocked() *RatingUnitedStatesMoviesType {
+ v := RatingUnitedStatesMoviesTypeVAllBlocked
+ return &v
+}
+
+// RatingUnitedStatesMoviesTypePGeneral returns a pointer to RatingUnitedStatesMoviesTypeVGeneral
+func RatingUnitedStatesMoviesTypePGeneral() *RatingUnitedStatesMoviesType {
+ v := RatingUnitedStatesMoviesTypeVGeneral
+ return &v
+}
+
+// RatingUnitedStatesMoviesTypePParentalGuidance returns a pointer to RatingUnitedStatesMoviesTypeVParentalGuidance
+func RatingUnitedStatesMoviesTypePParentalGuidance() *RatingUnitedStatesMoviesType {
+ v := RatingUnitedStatesMoviesTypeVParentalGuidance
+ return &v
+}
+
+// RatingUnitedStatesMoviesTypePParentalGuidance13 returns a pointer to RatingUnitedStatesMoviesTypeVParentalGuidance13
+func RatingUnitedStatesMoviesTypePParentalGuidance13() *RatingUnitedStatesMoviesType {
+ v := RatingUnitedStatesMoviesTypeVParentalGuidance13
+ return &v
+}
+
+// RatingUnitedStatesMoviesTypePRestricted returns a pointer to RatingUnitedStatesMoviesTypeVRestricted
+func RatingUnitedStatesMoviesTypePRestricted() *RatingUnitedStatesMoviesType {
+ v := RatingUnitedStatesMoviesTypeVRestricted
+ return &v
+}
+
+// RatingUnitedStatesMoviesTypePAdults returns a pointer to RatingUnitedStatesMoviesTypeVAdults
+func RatingUnitedStatesMoviesTypePAdults() *RatingUnitedStatesMoviesType {
+ v := RatingUnitedStatesMoviesTypeVAdults
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RatingUnitedStatesTelevisionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RatingUnitedStatesTelevisionTypeEnum.go
new file mode 100644
index 00000000..b0374b35
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RatingUnitedStatesTelevisionTypeEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingUnitedStatesTelevisionType undocumented
+type RatingUnitedStatesTelevisionType int
+
+const (
+ // RatingUnitedStatesTelevisionTypeVAllAllowed undocumented
+ RatingUnitedStatesTelevisionTypeVAllAllowed RatingUnitedStatesTelevisionType = 0
+ // RatingUnitedStatesTelevisionTypeVAllBlocked undocumented
+ RatingUnitedStatesTelevisionTypeVAllBlocked RatingUnitedStatesTelevisionType = 1
+ // RatingUnitedStatesTelevisionTypeVChildrenAll undocumented
+ RatingUnitedStatesTelevisionTypeVChildrenAll RatingUnitedStatesTelevisionType = 2
+ // RatingUnitedStatesTelevisionTypeVChildrenAbove7 undocumented
+ RatingUnitedStatesTelevisionTypeVChildrenAbove7 RatingUnitedStatesTelevisionType = 3
+ // RatingUnitedStatesTelevisionTypeVGeneral undocumented
+ RatingUnitedStatesTelevisionTypeVGeneral RatingUnitedStatesTelevisionType = 4
+ // RatingUnitedStatesTelevisionTypeVParentalGuidance undocumented
+ RatingUnitedStatesTelevisionTypeVParentalGuidance RatingUnitedStatesTelevisionType = 5
+ // RatingUnitedStatesTelevisionTypeVChildrenAbove14 undocumented
+ RatingUnitedStatesTelevisionTypeVChildrenAbove14 RatingUnitedStatesTelevisionType = 6
+ // RatingUnitedStatesTelevisionTypeVAdults undocumented
+ RatingUnitedStatesTelevisionTypeVAdults RatingUnitedStatesTelevisionType = 7
+)
+
+// RatingUnitedStatesTelevisionTypePAllAllowed returns a pointer to RatingUnitedStatesTelevisionTypeVAllAllowed
+func RatingUnitedStatesTelevisionTypePAllAllowed() *RatingUnitedStatesTelevisionType {
+ v := RatingUnitedStatesTelevisionTypeVAllAllowed
+ return &v
+}
+
+// RatingUnitedStatesTelevisionTypePAllBlocked returns a pointer to RatingUnitedStatesTelevisionTypeVAllBlocked
+func RatingUnitedStatesTelevisionTypePAllBlocked() *RatingUnitedStatesTelevisionType {
+ v := RatingUnitedStatesTelevisionTypeVAllBlocked
+ return &v
+}
+
+// RatingUnitedStatesTelevisionTypePChildrenAll returns a pointer to RatingUnitedStatesTelevisionTypeVChildrenAll
+func RatingUnitedStatesTelevisionTypePChildrenAll() *RatingUnitedStatesTelevisionType {
+ v := RatingUnitedStatesTelevisionTypeVChildrenAll
+ return &v
+}
+
+// RatingUnitedStatesTelevisionTypePChildrenAbove7 returns a pointer to RatingUnitedStatesTelevisionTypeVChildrenAbove7
+func RatingUnitedStatesTelevisionTypePChildrenAbove7() *RatingUnitedStatesTelevisionType {
+ v := RatingUnitedStatesTelevisionTypeVChildrenAbove7
+ return &v
+}
+
+// RatingUnitedStatesTelevisionTypePGeneral returns a pointer to RatingUnitedStatesTelevisionTypeVGeneral
+func RatingUnitedStatesTelevisionTypePGeneral() *RatingUnitedStatesTelevisionType {
+ v := RatingUnitedStatesTelevisionTypeVGeneral
+ return &v
+}
+
+// RatingUnitedStatesTelevisionTypePParentalGuidance returns a pointer to RatingUnitedStatesTelevisionTypeVParentalGuidance
+func RatingUnitedStatesTelevisionTypePParentalGuidance() *RatingUnitedStatesTelevisionType {
+ v := RatingUnitedStatesTelevisionTypeVParentalGuidance
+ return &v
+}
+
+// RatingUnitedStatesTelevisionTypePChildrenAbove14 returns a pointer to RatingUnitedStatesTelevisionTypeVChildrenAbove14
+func RatingUnitedStatesTelevisionTypePChildrenAbove14() *RatingUnitedStatesTelevisionType {
+ v := RatingUnitedStatesTelevisionTypeVChildrenAbove14
+ return &v
+}
+
+// RatingUnitedStatesTelevisionTypePAdults returns a pointer to RatingUnitedStatesTelevisionTypeVAdults
+func RatingUnitedStatesTelevisionTypePAdults() *RatingUnitedStatesTelevisionType {
+ v := RatingUnitedStatesTelevisionTypeVAdults
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RbacApplicationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RbacApplicationModel.go
new file mode 100644
index 00000000..ff835349
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RbacApplicationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RbacApplication undocumented
+type RbacApplication struct {
+ // Entity is the base model of RbacApplication
+ Entity
+ // RoleDefinitions undocumented
+ RoleDefinitions []UnifiedRoleDefinition `json:"roleDefinitions,omitempty"`
+ // RoleAssignments undocumented
+ RoleAssignments []UnifiedRoleAssignment `json:"roleAssignments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RbacApplicationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RbacApplicationRequest.go
new file mode 100644
index 00000000..6513ecc8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RbacApplicationRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// RbacApplicationRequestBuilder is request builder for RbacApplication
+type RbacApplicationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RbacApplicationRequest
+func (b *RbacApplicationRequestBuilder) Request() *RbacApplicationRequest {
+ return &RbacApplicationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RbacApplicationRequest is request for RbacApplication
+type RbacApplicationRequest struct{ BaseRequest }
+
+// Get performs GET request for RbacApplication
+func (r *RbacApplicationRequest) Get(ctx context.Context) (resObj *RbacApplication, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RbacApplication
+func (r *RbacApplicationRequest) Update(ctx context.Context, reqObj *RbacApplication) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RbacApplication
+func (r *RbacApplicationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RoleAssignments returns request builder for UnifiedRoleAssignment collection
+func (b *RbacApplicationRequestBuilder) RoleAssignments() *RbacApplicationRoleAssignmentsCollectionRequestBuilder {
+ bb := &RbacApplicationRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleAssignments"
+ return bb
+}
+
+// RbacApplicationRoleAssignmentsCollectionRequestBuilder is request builder for UnifiedRoleAssignment collection
+type RbacApplicationRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UnifiedRoleAssignment collection
+func (b *RbacApplicationRoleAssignmentsCollectionRequestBuilder) Request() *RbacApplicationRoleAssignmentsCollectionRequest {
+ return &RbacApplicationRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UnifiedRoleAssignment item
+func (b *RbacApplicationRoleAssignmentsCollectionRequestBuilder) ID(id string) *UnifiedRoleAssignmentRequestBuilder {
+ bb := &UnifiedRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// RbacApplicationRoleAssignmentsCollectionRequest is request for UnifiedRoleAssignment collection
+type RbacApplicationRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UnifiedRoleAssignment collection
+func (r *RbacApplicationRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UnifiedRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UnifiedRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UnifiedRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UnifiedRoleAssignment collection
+func (r *RbacApplicationRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]UnifiedRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UnifiedRoleAssignment collection
+func (r *RbacApplicationRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *UnifiedRoleAssignment) (resObj *UnifiedRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleDefinitions returns request builder for UnifiedRoleDefinition collection
+func (b *RbacApplicationRequestBuilder) RoleDefinitions() *RbacApplicationRoleDefinitionsCollectionRequestBuilder {
+ bb := &RbacApplicationRoleDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinitions"
+ return bb
+}
+
+// RbacApplicationRoleDefinitionsCollectionRequestBuilder is request builder for UnifiedRoleDefinition collection
+type RbacApplicationRoleDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UnifiedRoleDefinition collection
+func (b *RbacApplicationRoleDefinitionsCollectionRequestBuilder) Request() *RbacApplicationRoleDefinitionsCollectionRequest {
+ return &RbacApplicationRoleDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UnifiedRoleDefinition item
+func (b *RbacApplicationRoleDefinitionsCollectionRequestBuilder) ID(id string) *UnifiedRoleDefinitionRequestBuilder {
+ bb := &UnifiedRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// RbacApplicationRoleDefinitionsCollectionRequest is request for UnifiedRoleDefinition collection
+type RbacApplicationRoleDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UnifiedRoleDefinition collection
+func (r *RbacApplicationRoleDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UnifiedRoleDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UnifiedRoleDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UnifiedRoleDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UnifiedRoleDefinition collection
+func (r *RbacApplicationRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]UnifiedRoleDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UnifiedRoleDefinition collection
+func (r *RbacApplicationRoleDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *UnifiedRoleDefinition) (resObj *UnifiedRoleDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RecentNotebookLinksModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RecentNotebookLinksModel.go
new file mode 100644
index 00000000..e05d467b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RecentNotebookLinksModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecentNotebookLinks undocumented
+type RecentNotebookLinks struct {
+ // Object is the base model of RecentNotebookLinks
+ Object
+ // OneNoteClientURL undocumented
+ OneNoteClientURL *ExternalLink `json:"oneNoteClientUrl,omitempty"`
+ // OneNoteWebURL undocumented
+ OneNoteWebURL *ExternalLink `json:"oneNoteWebUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RecentNotebookModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RecentNotebookModel.go
new file mode 100644
index 00000000..45fe04bb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RecentNotebookModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// RecentNotebook undocumented
+type RecentNotebook struct {
+ // Object is the base model of RecentNotebook
+ Object
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastAccessedTime undocumented
+ LastAccessedTime *time.Time `json:"lastAccessedTime,omitempty"`
+ // Links undocumented
+ Links *RecentNotebookLinks `json:"links,omitempty"`
+ // SourceService undocumented
+ SourceService *OnenoteSourceService `json:"sourceService,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RecipientModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RecipientModel.go
new file mode 100644
index 00000000..153f5d81
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RecipientModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Recipient undocumented
+type Recipient struct {
+ // Object is the base model of Recipient
+ Object
+ // EmailAddress undocumented
+ EmailAddress *EmailAddress `json:"emailAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RecipientScopeTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RecipientScopeTypeEnum.go
new file mode 100644
index 00000000..f1113907
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RecipientScopeTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecipientScopeType undocumented
+type RecipientScopeType int
+
+const (
+ // RecipientScopeTypeVNone undocumented
+ RecipientScopeTypeVNone RecipientScopeType = 0
+ // RecipientScopeTypeVInternal undocumented
+ RecipientScopeTypeVInternal RecipientScopeType = 1
+ // RecipientScopeTypeVExternal undocumented
+ RecipientScopeTypeVExternal RecipientScopeType = 2
+ // RecipientScopeTypeVExternalPartner undocumented
+ RecipientScopeTypeVExternalPartner RecipientScopeType = 4
+ // RecipientScopeTypeVExternalNonPartner undocumented
+ RecipientScopeTypeVExternalNonPartner RecipientScopeType = 8
+)
+
+// RecipientScopeTypePNone returns a pointer to RecipientScopeTypeVNone
+func RecipientScopeTypePNone() *RecipientScopeType {
+ v := RecipientScopeTypeVNone
+ return &v
+}
+
+// RecipientScopeTypePInternal returns a pointer to RecipientScopeTypeVInternal
+func RecipientScopeTypePInternal() *RecipientScopeType {
+ v := RecipientScopeTypeVInternal
+ return &v
+}
+
+// RecipientScopeTypePExternal returns a pointer to RecipientScopeTypeVExternal
+func RecipientScopeTypePExternal() *RecipientScopeType {
+ v := RecipientScopeTypeVExternal
+ return &v
+}
+
+// RecipientScopeTypePExternalPartner returns a pointer to RecipientScopeTypeVExternalPartner
+func RecipientScopeTypePExternalPartner() *RecipientScopeType {
+ v := RecipientScopeTypeVExternalPartner
+ return &v
+}
+
+// RecipientScopeTypePExternalNonPartner returns a pointer to RecipientScopeTypeVExternalNonPartner
+func RecipientScopeTypePExternalNonPartner() *RecipientScopeType {
+ v := RecipientScopeTypeVExternalNonPartner
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RecommendLabelActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RecommendLabelActionModel.go
new file mode 100644
index 00000000..90ad812a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RecommendLabelActionModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecommendLabelAction undocumented
+type RecommendLabelAction struct {
+ // InformationProtectionAction is the base model of RecommendLabelAction
+ InformationProtectionAction
+ // Label undocumented
+ Label *LabelDetails `json:"label,omitempty"`
+ // ResponsibleSensitiveTypeIDs undocumented
+ ResponsibleSensitiveTypeIDs []UUID `json:"responsibleSensitiveTypeIds,omitempty"`
+ // Actions undocumented
+ Actions []InformationProtectionAction `json:"actions,omitempty"`
+ // ActionSource undocumented
+ ActionSource *ActionSource `json:"actionSource,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RecordCompletionReasonEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RecordCompletionReasonEnum.go
new file mode 100644
index 00000000..a3b85adb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RecordCompletionReasonEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecordCompletionReason undocumented
+type RecordCompletionReason int
+
+const (
+ // RecordCompletionReasonVOperationCanceled undocumented
+ RecordCompletionReasonVOperationCanceled RecordCompletionReason = 0
+ // RecordCompletionReasonVStopToneDetected undocumented
+ RecordCompletionReasonVStopToneDetected RecordCompletionReason = 1
+ // RecordCompletionReasonVMaxRecordDurationReached undocumented
+ RecordCompletionReasonVMaxRecordDurationReached RecordCompletionReason = 2
+ // RecordCompletionReasonVInitialSilenceTimeout undocumented
+ RecordCompletionReasonVInitialSilenceTimeout RecordCompletionReason = 3
+ // RecordCompletionReasonVMaxSilenceTimeout undocumented
+ RecordCompletionReasonVMaxSilenceTimeout RecordCompletionReason = 4
+ // RecordCompletionReasonVPlayPromptFailed undocumented
+ RecordCompletionReasonVPlayPromptFailed RecordCompletionReason = 5
+ // RecordCompletionReasonVPlayBeepFailed undocumented
+ RecordCompletionReasonVPlayBeepFailed RecordCompletionReason = 6
+ // RecordCompletionReasonVMediaReceiveTimeout undocumented
+ RecordCompletionReasonVMediaReceiveTimeout RecordCompletionReason = 7
+ // RecordCompletionReasonVUnspecifiedError undocumented
+ RecordCompletionReasonVUnspecifiedError RecordCompletionReason = 8
+)
+
+// RecordCompletionReasonPOperationCanceled returns a pointer to RecordCompletionReasonVOperationCanceled
+func RecordCompletionReasonPOperationCanceled() *RecordCompletionReason {
+ v := RecordCompletionReasonVOperationCanceled
+ return &v
+}
+
+// RecordCompletionReasonPStopToneDetected returns a pointer to RecordCompletionReasonVStopToneDetected
+func RecordCompletionReasonPStopToneDetected() *RecordCompletionReason {
+ v := RecordCompletionReasonVStopToneDetected
+ return &v
+}
+
+// RecordCompletionReasonPMaxRecordDurationReached returns a pointer to RecordCompletionReasonVMaxRecordDurationReached
+func RecordCompletionReasonPMaxRecordDurationReached() *RecordCompletionReason {
+ v := RecordCompletionReasonVMaxRecordDurationReached
+ return &v
+}
+
+// RecordCompletionReasonPInitialSilenceTimeout returns a pointer to RecordCompletionReasonVInitialSilenceTimeout
+func RecordCompletionReasonPInitialSilenceTimeout() *RecordCompletionReason {
+ v := RecordCompletionReasonVInitialSilenceTimeout
+ return &v
+}
+
+// RecordCompletionReasonPMaxSilenceTimeout returns a pointer to RecordCompletionReasonVMaxSilenceTimeout
+func RecordCompletionReasonPMaxSilenceTimeout() *RecordCompletionReason {
+ v := RecordCompletionReasonVMaxSilenceTimeout
+ return &v
+}
+
+// RecordCompletionReasonPPlayPromptFailed returns a pointer to RecordCompletionReasonVPlayPromptFailed
+func RecordCompletionReasonPPlayPromptFailed() *RecordCompletionReason {
+ v := RecordCompletionReasonVPlayPromptFailed
+ return &v
+}
+
+// RecordCompletionReasonPPlayBeepFailed returns a pointer to RecordCompletionReasonVPlayBeepFailed
+func RecordCompletionReasonPPlayBeepFailed() *RecordCompletionReason {
+ v := RecordCompletionReasonVPlayBeepFailed
+ return &v
+}
+
+// RecordCompletionReasonPMediaReceiveTimeout returns a pointer to RecordCompletionReasonVMediaReceiveTimeout
+func RecordCompletionReasonPMediaReceiveTimeout() *RecordCompletionReason {
+ v := RecordCompletionReasonVMediaReceiveTimeout
+ return &v
+}
+
+// RecordCompletionReasonPUnspecifiedError returns a pointer to RecordCompletionReasonVUnspecifiedError
+func RecordCompletionReasonPUnspecifiedError() *RecordCompletionReason {
+ v := RecordCompletionReasonVUnspecifiedError
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RecordOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RecordOperationModel.go
new file mode 100644
index 00000000..8916aee1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RecordOperationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecordOperation undocumented
+type RecordOperation struct {
+ // CommsOperation is the base model of RecordOperation
+ CommsOperation
+ // RecordingLocation undocumented
+ RecordingLocation *string `json:"recordingLocation,omitempty"`
+ // RecordingAccessToken undocumented
+ RecordingAccessToken *string `json:"recordingAccessToken,omitempty"`
+ // CompletionReason undocumented
+ CompletionReason *RecordCompletionReason `json:"completionReason,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RecordingInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RecordingInfoModel.go
new file mode 100644
index 00000000..4b0606f0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RecordingInfoModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecordingInfo undocumented
+type RecordingInfo struct {
+ // Object is the base model of RecordingInfo
+ Object
+ // RecordingStatus undocumented
+ RecordingStatus *RecordingStatus `json:"recordingStatus,omitempty"`
+ // InitiatedBy undocumented
+ InitiatedBy *ParticipantInfo `json:"initiatedBy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RecordingStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RecordingStatusEnum.go
new file mode 100644
index 00000000..ded52481
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RecordingStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecordingStatus undocumented
+type RecordingStatus int
+
+const (
+ // RecordingStatusVUnknown undocumented
+ RecordingStatusVUnknown RecordingStatus = 0
+ // RecordingStatusVNotRecording undocumented
+ RecordingStatusVNotRecording RecordingStatus = 1
+ // RecordingStatusVRecording undocumented
+ RecordingStatusVRecording RecordingStatus = 2
+ // RecordingStatusVFailed undocumented
+ RecordingStatusVFailed RecordingStatus = 3
+ // RecordingStatusVUnknownFutureValue undocumented
+ RecordingStatusVUnknownFutureValue RecordingStatus = 4
+)
+
+// RecordingStatusPUnknown returns a pointer to RecordingStatusVUnknown
+func RecordingStatusPUnknown() *RecordingStatus {
+ v := RecordingStatusVUnknown
+ return &v
+}
+
+// RecordingStatusPNotRecording returns a pointer to RecordingStatusVNotRecording
+func RecordingStatusPNotRecording() *RecordingStatus {
+ v := RecordingStatusVNotRecording
+ return &v
+}
+
+// RecordingStatusPRecording returns a pointer to RecordingStatusVRecording
+func RecordingStatusPRecording() *RecordingStatus {
+ v := RecordingStatusVRecording
+ return &v
+}
+
+// RecordingStatusPFailed returns a pointer to RecordingStatusVFailed
+func RecordingStatusPFailed() *RecordingStatus {
+ v := RecordingStatusVFailed
+ return &v
+}
+
+// RecordingStatusPUnknownFutureValue returns a pointer to RecordingStatusVUnknownFutureValue
+func RecordingStatusPUnknownFutureValue() *RecordingStatus {
+ v := RecordingStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RecurrencePatternModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RecurrencePatternModel.go
new file mode 100644
index 00000000..89af15a0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RecurrencePatternModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecurrencePattern undocumented
+type RecurrencePattern struct {
+ // Object is the base model of RecurrencePattern
+ Object
+ // Type undocumented
+ Type *RecurrencePatternType `json:"type,omitempty"`
+ // Interval undocumented
+ Interval *int `json:"interval,omitempty"`
+ // Month undocumented
+ Month *int `json:"month,omitempty"`
+ // DayOfMonth undocumented
+ DayOfMonth *int `json:"dayOfMonth,omitempty"`
+ // DaysOfWeek undocumented
+ DaysOfWeek []DayOfWeek `json:"daysOfWeek,omitempty"`
+ // FirstDayOfWeek undocumented
+ FirstDayOfWeek *DayOfWeek `json:"firstDayOfWeek,omitempty"`
+ // Index undocumented
+ Index *WeekIndex `json:"index,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RecurrencePatternTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RecurrencePatternTypeEnum.go
new file mode 100644
index 00000000..4ac3a432
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RecurrencePatternTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecurrencePatternType undocumented
+type RecurrencePatternType int
+
+const (
+ // RecurrencePatternTypeVDaily undocumented
+ RecurrencePatternTypeVDaily RecurrencePatternType = 0
+ // RecurrencePatternTypeVWeekly undocumented
+ RecurrencePatternTypeVWeekly RecurrencePatternType = 1
+ // RecurrencePatternTypeVAbsoluteMonthly undocumented
+ RecurrencePatternTypeVAbsoluteMonthly RecurrencePatternType = 2
+ // RecurrencePatternTypeVRelativeMonthly undocumented
+ RecurrencePatternTypeVRelativeMonthly RecurrencePatternType = 3
+ // RecurrencePatternTypeVAbsoluteYearly undocumented
+ RecurrencePatternTypeVAbsoluteYearly RecurrencePatternType = 4
+ // RecurrencePatternTypeVRelativeYearly undocumented
+ RecurrencePatternTypeVRelativeYearly RecurrencePatternType = 5
+)
+
+// RecurrencePatternTypePDaily returns a pointer to RecurrencePatternTypeVDaily
+func RecurrencePatternTypePDaily() *RecurrencePatternType {
+ v := RecurrencePatternTypeVDaily
+ return &v
+}
+
+// RecurrencePatternTypePWeekly returns a pointer to RecurrencePatternTypeVWeekly
+func RecurrencePatternTypePWeekly() *RecurrencePatternType {
+ v := RecurrencePatternTypeVWeekly
+ return &v
+}
+
+// RecurrencePatternTypePAbsoluteMonthly returns a pointer to RecurrencePatternTypeVAbsoluteMonthly
+func RecurrencePatternTypePAbsoluteMonthly() *RecurrencePatternType {
+ v := RecurrencePatternTypeVAbsoluteMonthly
+ return &v
+}
+
+// RecurrencePatternTypePRelativeMonthly returns a pointer to RecurrencePatternTypeVRelativeMonthly
+func RecurrencePatternTypePRelativeMonthly() *RecurrencePatternType {
+ v := RecurrencePatternTypeVRelativeMonthly
+ return &v
+}
+
+// RecurrencePatternTypePAbsoluteYearly returns a pointer to RecurrencePatternTypeVAbsoluteYearly
+func RecurrencePatternTypePAbsoluteYearly() *RecurrencePatternType {
+ v := RecurrencePatternTypeVAbsoluteYearly
+ return &v
+}
+
+// RecurrencePatternTypePRelativeYearly returns a pointer to RecurrencePatternTypeVRelativeYearly
+func RecurrencePatternTypePRelativeYearly() *RecurrencePatternType {
+ v := RecurrencePatternTypeVRelativeYearly
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RecurrenceRangeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RecurrenceRangeModel.go
new file mode 100644
index 00000000..d7121ea1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RecurrenceRangeModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// RecurrenceRange undocumented
+type RecurrenceRange struct {
+ // Object is the base model of RecurrenceRange
+ Object
+ // Type undocumented
+ Type *RecurrenceRangeType `json:"type,omitempty"`
+ // StartDate undocumented
+ StartDate *time.Time `json:"startDate,omitempty"`
+ // EndDate undocumented
+ EndDate *time.Time `json:"endDate,omitempty"`
+ // RecurrenceTimeZone undocumented
+ RecurrenceTimeZone *string `json:"recurrenceTimeZone,omitempty"`
+ // NumberOfOccurrences undocumented
+ NumberOfOccurrences *int `json:"numberOfOccurrences,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RecurrenceRangeTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RecurrenceRangeTypeEnum.go
new file mode 100644
index 00000000..824625c8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RecurrenceRangeTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecurrenceRangeType undocumented
+type RecurrenceRangeType int
+
+const (
+ // RecurrenceRangeTypeVEndDate undocumented
+ RecurrenceRangeTypeVEndDate RecurrenceRangeType = 0
+ // RecurrenceRangeTypeVNoEnd undocumented
+ RecurrenceRangeTypeVNoEnd RecurrenceRangeType = 1
+ // RecurrenceRangeTypeVNumbered undocumented
+ RecurrenceRangeTypeVNumbered RecurrenceRangeType = 2
+)
+
+// RecurrenceRangeTypePEndDate returns a pointer to RecurrenceRangeTypeVEndDate
+func RecurrenceRangeTypePEndDate() *RecurrenceRangeType {
+ v := RecurrenceRangeTypeVEndDate
+ return &v
+}
+
+// RecurrenceRangeTypePNoEnd returns a pointer to RecurrenceRangeTypeVNoEnd
+func RecurrenceRangeTypePNoEnd() *RecurrenceRangeType {
+ v := RecurrenceRangeTypeVNoEnd
+ return &v
+}
+
+// RecurrenceRangeTypePNumbered returns a pointer to RecurrenceRangeTypeVNumbered
+func RecurrenceRangeTypePNumbered() *RecurrenceRangeType {
+ v := RecurrenceRangeTypeVNumbered
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ReferenceAttachmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ReferenceAttachmentModel.go
new file mode 100644
index 00000000..89573af8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ReferenceAttachmentModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ReferenceAttachment undocumented
+type ReferenceAttachment struct {
+ // Attachment is the base model of ReferenceAttachment
+ Attachment
+ // SourceURL undocumented
+ SourceURL *string `json:"sourceUrl,omitempty"`
+ // ProviderType undocumented
+ ProviderType *ReferenceAttachmentProvider `json:"providerType,omitempty"`
+ // ThumbnailURL undocumented
+ ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
+ // PreviewURL undocumented
+ PreviewURL *string `json:"previewUrl,omitempty"`
+ // Permission undocumented
+ Permission *ReferenceAttachmentPermission `json:"permission,omitempty"`
+ // IsFolder undocumented
+ IsFolder *bool `json:"isFolder,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ReferenceAttachmentPermissionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ReferenceAttachmentPermissionEnum.go
new file mode 100644
index 00000000..82caf227
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ReferenceAttachmentPermissionEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ReferenceAttachmentPermission undocumented
+type ReferenceAttachmentPermission int
+
+const (
+ // ReferenceAttachmentPermissionVOther undocumented
+ ReferenceAttachmentPermissionVOther ReferenceAttachmentPermission = 0
+ // ReferenceAttachmentPermissionVView undocumented
+ ReferenceAttachmentPermissionVView ReferenceAttachmentPermission = 1
+ // ReferenceAttachmentPermissionVEdit undocumented
+ ReferenceAttachmentPermissionVEdit ReferenceAttachmentPermission = 2
+ // ReferenceAttachmentPermissionVAnonymousView undocumented
+ ReferenceAttachmentPermissionVAnonymousView ReferenceAttachmentPermission = 3
+ // ReferenceAttachmentPermissionVAnonymousEdit undocumented
+ ReferenceAttachmentPermissionVAnonymousEdit ReferenceAttachmentPermission = 4
+ // ReferenceAttachmentPermissionVOrganizationView undocumented
+ ReferenceAttachmentPermissionVOrganizationView ReferenceAttachmentPermission = 5
+ // ReferenceAttachmentPermissionVOrganizationEdit undocumented
+ ReferenceAttachmentPermissionVOrganizationEdit ReferenceAttachmentPermission = 6
+)
+
+// ReferenceAttachmentPermissionPOther returns a pointer to ReferenceAttachmentPermissionVOther
+func ReferenceAttachmentPermissionPOther() *ReferenceAttachmentPermission {
+ v := ReferenceAttachmentPermissionVOther
+ return &v
+}
+
+// ReferenceAttachmentPermissionPView returns a pointer to ReferenceAttachmentPermissionVView
+func ReferenceAttachmentPermissionPView() *ReferenceAttachmentPermission {
+ v := ReferenceAttachmentPermissionVView
+ return &v
+}
+
+// ReferenceAttachmentPermissionPEdit returns a pointer to ReferenceAttachmentPermissionVEdit
+func ReferenceAttachmentPermissionPEdit() *ReferenceAttachmentPermission {
+ v := ReferenceAttachmentPermissionVEdit
+ return &v
+}
+
+// ReferenceAttachmentPermissionPAnonymousView returns a pointer to ReferenceAttachmentPermissionVAnonymousView
+func ReferenceAttachmentPermissionPAnonymousView() *ReferenceAttachmentPermission {
+ v := ReferenceAttachmentPermissionVAnonymousView
+ return &v
+}
+
+// ReferenceAttachmentPermissionPAnonymousEdit returns a pointer to ReferenceAttachmentPermissionVAnonymousEdit
+func ReferenceAttachmentPermissionPAnonymousEdit() *ReferenceAttachmentPermission {
+ v := ReferenceAttachmentPermissionVAnonymousEdit
+ return &v
+}
+
+// ReferenceAttachmentPermissionPOrganizationView returns a pointer to ReferenceAttachmentPermissionVOrganizationView
+func ReferenceAttachmentPermissionPOrganizationView() *ReferenceAttachmentPermission {
+ v := ReferenceAttachmentPermissionVOrganizationView
+ return &v
+}
+
+// ReferenceAttachmentPermissionPOrganizationEdit returns a pointer to ReferenceAttachmentPermissionVOrganizationEdit
+func ReferenceAttachmentPermissionPOrganizationEdit() *ReferenceAttachmentPermission {
+ v := ReferenceAttachmentPermissionVOrganizationEdit
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ReferenceAttachmentProviderEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ReferenceAttachmentProviderEnum.go
new file mode 100644
index 00000000..2624db26
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ReferenceAttachmentProviderEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ReferenceAttachmentProvider undocumented
+type ReferenceAttachmentProvider int
+
+const (
+ // ReferenceAttachmentProviderVOther undocumented
+ ReferenceAttachmentProviderVOther ReferenceAttachmentProvider = 0
+ // ReferenceAttachmentProviderVOneDriveBusiness undocumented
+ ReferenceAttachmentProviderVOneDriveBusiness ReferenceAttachmentProvider = 1
+ // ReferenceAttachmentProviderVOneDriveConsumer undocumented
+ ReferenceAttachmentProviderVOneDriveConsumer ReferenceAttachmentProvider = 2
+ // ReferenceAttachmentProviderVDropbox undocumented
+ ReferenceAttachmentProviderVDropbox ReferenceAttachmentProvider = 3
+)
+
+// ReferenceAttachmentProviderPOther returns a pointer to ReferenceAttachmentProviderVOther
+func ReferenceAttachmentProviderPOther() *ReferenceAttachmentProvider {
+ v := ReferenceAttachmentProviderVOther
+ return &v
+}
+
+// ReferenceAttachmentProviderPOneDriveBusiness returns a pointer to ReferenceAttachmentProviderVOneDriveBusiness
+func ReferenceAttachmentProviderPOneDriveBusiness() *ReferenceAttachmentProvider {
+ v := ReferenceAttachmentProviderVOneDriveBusiness
+ return &v
+}
+
+// ReferenceAttachmentProviderPOneDriveConsumer returns a pointer to ReferenceAttachmentProviderVOneDriveConsumer
+func ReferenceAttachmentProviderPOneDriveConsumer() *ReferenceAttachmentProvider {
+ v := ReferenceAttachmentProviderVOneDriveConsumer
+ return &v
+}
+
+// ReferenceAttachmentProviderPDropbox returns a pointer to ReferenceAttachmentProviderVDropbox
+func ReferenceAttachmentProviderPDropbox() *ReferenceAttachmentProvider {
+ v := ReferenceAttachmentProviderVDropbox
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ReferencedObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ReferencedObjectModel.go
new file mode 100644
index 00000000..1daef9b5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ReferencedObjectModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ReferencedObject undocumented
+type ReferencedObject struct {
+ // Object is the base model of ReferencedObject
+ Object
+ // ReferencedObjectName undocumented
+ ReferencedObjectName *string `json:"referencedObjectName,omitempty"`
+ // ReferencedProperty undocumented
+ ReferencedProperty *string `json:"referencedProperty,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RegistrationAuthMethodEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RegistrationAuthMethodEnum.go
new file mode 100644
index 00000000..18036f96
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RegistrationAuthMethodEnum.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RegistrationAuthMethod undocumented
+type RegistrationAuthMethod int
+
+const (
+ // RegistrationAuthMethodVEmail undocumented
+ RegistrationAuthMethodVEmail RegistrationAuthMethod = 0
+ // RegistrationAuthMethodVMobilePhone undocumented
+ RegistrationAuthMethodVMobilePhone RegistrationAuthMethod = 1
+ // RegistrationAuthMethodVOfficePhone undocumented
+ RegistrationAuthMethodVOfficePhone RegistrationAuthMethod = 2
+ // RegistrationAuthMethodVSecurityQuestion undocumented
+ RegistrationAuthMethodVSecurityQuestion RegistrationAuthMethod = 3
+ // RegistrationAuthMethodVAppNotification undocumented
+ RegistrationAuthMethodVAppNotification RegistrationAuthMethod = 4
+ // RegistrationAuthMethodVAppCode undocumented
+ RegistrationAuthMethodVAppCode RegistrationAuthMethod = 5
+ // RegistrationAuthMethodVAlternateMobilePhone undocumented
+ RegistrationAuthMethodVAlternateMobilePhone RegistrationAuthMethod = 6
+ // RegistrationAuthMethodVFido undocumented
+ RegistrationAuthMethodVFido RegistrationAuthMethod = 7
+ // RegistrationAuthMethodVAppPassword undocumented
+ RegistrationAuthMethodVAppPassword RegistrationAuthMethod = 8
+ // RegistrationAuthMethodVUnknownFutureValue undocumented
+ RegistrationAuthMethodVUnknownFutureValue RegistrationAuthMethod = 9
+)
+
+// RegistrationAuthMethodPEmail returns a pointer to RegistrationAuthMethodVEmail
+func RegistrationAuthMethodPEmail() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVEmail
+ return &v
+}
+
+// RegistrationAuthMethodPMobilePhone returns a pointer to RegistrationAuthMethodVMobilePhone
+func RegistrationAuthMethodPMobilePhone() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVMobilePhone
+ return &v
+}
+
+// RegistrationAuthMethodPOfficePhone returns a pointer to RegistrationAuthMethodVOfficePhone
+func RegistrationAuthMethodPOfficePhone() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVOfficePhone
+ return &v
+}
+
+// RegistrationAuthMethodPSecurityQuestion returns a pointer to RegistrationAuthMethodVSecurityQuestion
+func RegistrationAuthMethodPSecurityQuestion() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVSecurityQuestion
+ return &v
+}
+
+// RegistrationAuthMethodPAppNotification returns a pointer to RegistrationAuthMethodVAppNotification
+func RegistrationAuthMethodPAppNotification() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVAppNotification
+ return &v
+}
+
+// RegistrationAuthMethodPAppCode returns a pointer to RegistrationAuthMethodVAppCode
+func RegistrationAuthMethodPAppCode() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVAppCode
+ return &v
+}
+
+// RegistrationAuthMethodPAlternateMobilePhone returns a pointer to RegistrationAuthMethodVAlternateMobilePhone
+func RegistrationAuthMethodPAlternateMobilePhone() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVAlternateMobilePhone
+ return &v
+}
+
+// RegistrationAuthMethodPFido returns a pointer to RegistrationAuthMethodVFido
+func RegistrationAuthMethodPFido() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVFido
+ return &v
+}
+
+// RegistrationAuthMethodPAppPassword returns a pointer to RegistrationAuthMethodVAppPassword
+func RegistrationAuthMethodPAppPassword() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVAppPassword
+ return &v
+}
+
+// RegistrationAuthMethodPUnknownFutureValue returns a pointer to RegistrationAuthMethodVUnknownFutureValue
+func RegistrationAuthMethodPUnknownFutureValue() *RegistrationAuthMethod {
+ v := RegistrationAuthMethodVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RegistrationStatusTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RegistrationStatusTypeEnum.go
new file mode 100644
index 00000000..d9df1458
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RegistrationStatusTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RegistrationStatusType undocumented
+type RegistrationStatusType int
+
+const (
+ // RegistrationStatusTypeVRegistered undocumented
+ RegistrationStatusTypeVRegistered RegistrationStatusType = 0
+ // RegistrationStatusTypeVEnabled undocumented
+ RegistrationStatusTypeVEnabled RegistrationStatusType = 1
+ // RegistrationStatusTypeVCapable undocumented
+ RegistrationStatusTypeVCapable RegistrationStatusType = 2
+ // RegistrationStatusTypeVMFARegistered undocumented
+ RegistrationStatusTypeVMFARegistered RegistrationStatusType = 3
+ // RegistrationStatusTypeVUnknownFutureValue undocumented
+ RegistrationStatusTypeVUnknownFutureValue RegistrationStatusType = 4
+)
+
+// RegistrationStatusTypePRegistered returns a pointer to RegistrationStatusTypeVRegistered
+func RegistrationStatusTypePRegistered() *RegistrationStatusType {
+ v := RegistrationStatusTypeVRegistered
+ return &v
+}
+
+// RegistrationStatusTypePEnabled returns a pointer to RegistrationStatusTypeVEnabled
+func RegistrationStatusTypePEnabled() *RegistrationStatusType {
+ v := RegistrationStatusTypeVEnabled
+ return &v
+}
+
+// RegistrationStatusTypePCapable returns a pointer to RegistrationStatusTypeVCapable
+func RegistrationStatusTypePCapable() *RegistrationStatusType {
+ v := RegistrationStatusTypeVCapable
+ return &v
+}
+
+// RegistrationStatusTypePMFARegistered returns a pointer to RegistrationStatusTypeVMFARegistered
+func RegistrationStatusTypePMFARegistered() *RegistrationStatusType {
+ v := RegistrationStatusTypeVMFARegistered
+ return &v
+}
+
+// RegistrationStatusTypePUnknownFutureValue returns a pointer to RegistrationStatusTypeVUnknownFutureValue
+func RegistrationStatusTypePUnknownFutureValue() *RegistrationStatusType {
+ v := RegistrationStatusTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RegistryHiveEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RegistryHiveEnum.go
new file mode 100644
index 00000000..d9e6d54c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RegistryHiveEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RegistryHive undocumented
+type RegistryHive int
+
+const (
+ // RegistryHiveVUnknown undocumented
+ RegistryHiveVUnknown RegistryHive = 0
+ // RegistryHiveVCurrentConfig undocumented
+ RegistryHiveVCurrentConfig RegistryHive = 1
+ // RegistryHiveVCurrentUser undocumented
+ RegistryHiveVCurrentUser RegistryHive = 2
+ // RegistryHiveVLocalMachineSam undocumented
+ RegistryHiveVLocalMachineSam RegistryHive = 3
+ // RegistryHiveVLocalMachineSecurity undocumented
+ RegistryHiveVLocalMachineSecurity RegistryHive = 4
+ // RegistryHiveVLocalMachineSoftware undocumented
+ RegistryHiveVLocalMachineSoftware RegistryHive = 5
+ // RegistryHiveVLocalMachineSystem undocumented
+ RegistryHiveVLocalMachineSystem RegistryHive = 6
+ // RegistryHiveVUsersDefault undocumented
+ RegistryHiveVUsersDefault RegistryHive = 7
+ // RegistryHiveVUnknownFutureValue undocumented
+ RegistryHiveVUnknownFutureValue RegistryHive = 127
+)
+
+// RegistryHivePUnknown returns a pointer to RegistryHiveVUnknown
+func RegistryHivePUnknown() *RegistryHive {
+ v := RegistryHiveVUnknown
+ return &v
+}
+
+// RegistryHivePCurrentConfig returns a pointer to RegistryHiveVCurrentConfig
+func RegistryHivePCurrentConfig() *RegistryHive {
+ v := RegistryHiveVCurrentConfig
+ return &v
+}
+
+// RegistryHivePCurrentUser returns a pointer to RegistryHiveVCurrentUser
+func RegistryHivePCurrentUser() *RegistryHive {
+ v := RegistryHiveVCurrentUser
+ return &v
+}
+
+// RegistryHivePLocalMachineSam returns a pointer to RegistryHiveVLocalMachineSam
+func RegistryHivePLocalMachineSam() *RegistryHive {
+ v := RegistryHiveVLocalMachineSam
+ return &v
+}
+
+// RegistryHivePLocalMachineSecurity returns a pointer to RegistryHiveVLocalMachineSecurity
+func RegistryHivePLocalMachineSecurity() *RegistryHive {
+ v := RegistryHiveVLocalMachineSecurity
+ return &v
+}
+
+// RegistryHivePLocalMachineSoftware returns a pointer to RegistryHiveVLocalMachineSoftware
+func RegistryHivePLocalMachineSoftware() *RegistryHive {
+ v := RegistryHiveVLocalMachineSoftware
+ return &v
+}
+
+// RegistryHivePLocalMachineSystem returns a pointer to RegistryHiveVLocalMachineSystem
+func RegistryHivePLocalMachineSystem() *RegistryHive {
+ v := RegistryHiveVLocalMachineSystem
+ return &v
+}
+
+// RegistryHivePUsersDefault returns a pointer to RegistryHiveVUsersDefault
+func RegistryHivePUsersDefault() *RegistryHive {
+ v := RegistryHiveVUsersDefault
+ return &v
+}
+
+// RegistryHivePUnknownFutureValue returns a pointer to RegistryHiveVUnknownFutureValue
+func RegistryHivePUnknownFutureValue() *RegistryHive {
+ v := RegistryHiveVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RegistryKeyStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RegistryKeyStateModel.go
new file mode 100644
index 00000000..dc29428c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RegistryKeyStateModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RegistryKeyState undocumented
+type RegistryKeyState struct {
+ // Object is the base model of RegistryKeyState
+ Object
+ // Hive undocumented
+ Hive *RegistryHive `json:"hive,omitempty"`
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+ // OldKey undocumented
+ OldKey *string `json:"oldKey,omitempty"`
+ // OldValueData undocumented
+ OldValueData *string `json:"oldValueData,omitempty"`
+ // OldValueName undocumented
+ OldValueName *string `json:"oldValueName,omitempty"`
+ // Operation undocumented
+ Operation *RegistryOperation `json:"operation,omitempty"`
+ // ProcessID undocumented
+ ProcessID *int `json:"processId,omitempty"`
+ // ValueData undocumented
+ ValueData *string `json:"valueData,omitempty"`
+ // ValueName undocumented
+ ValueName *string `json:"valueName,omitempty"`
+ // ValueType undocumented
+ ValueType *RegistryValueType `json:"valueType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RegistryOperationEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RegistryOperationEnum.go
new file mode 100644
index 00000000..aab7a2a2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RegistryOperationEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RegistryOperation undocumented
+type RegistryOperation int
+
+const (
+ // RegistryOperationVUnknown undocumented
+ RegistryOperationVUnknown RegistryOperation = 0
+ // RegistryOperationVCreate undocumented
+ RegistryOperationVCreate RegistryOperation = 1
+ // RegistryOperationVModify undocumented
+ RegistryOperationVModify RegistryOperation = 2
+ // RegistryOperationVDelete undocumented
+ RegistryOperationVDelete RegistryOperation = 3
+ // RegistryOperationVUnknownFutureValue undocumented
+ RegistryOperationVUnknownFutureValue RegistryOperation = 127
+)
+
+// RegistryOperationPUnknown returns a pointer to RegistryOperationVUnknown
+func RegistryOperationPUnknown() *RegistryOperation {
+ v := RegistryOperationVUnknown
+ return &v
+}
+
+// RegistryOperationPCreate returns a pointer to RegistryOperationVCreate
+func RegistryOperationPCreate() *RegistryOperation {
+ v := RegistryOperationVCreate
+ return &v
+}
+
+// RegistryOperationPModify returns a pointer to RegistryOperationVModify
+func RegistryOperationPModify() *RegistryOperation {
+ v := RegistryOperationVModify
+ return &v
+}
+
+// RegistryOperationPDelete returns a pointer to RegistryOperationVDelete
+func RegistryOperationPDelete() *RegistryOperation {
+ v := RegistryOperationVDelete
+ return &v
+}
+
+// RegistryOperationPUnknownFutureValue returns a pointer to RegistryOperationVUnknownFutureValue
+func RegistryOperationPUnknownFutureValue() *RegistryOperation {
+ v := RegistryOperationVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RegistryValueTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RegistryValueTypeEnum.go
new file mode 100644
index 00000000..80eed752
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RegistryValueTypeEnum.go
@@ -0,0 +1,113 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RegistryValueType undocumented
+type RegistryValueType int
+
+const (
+ // RegistryValueTypeVUnknown undocumented
+ RegistryValueTypeVUnknown RegistryValueType = 0
+ // RegistryValueTypeVBinary undocumented
+ RegistryValueTypeVBinary RegistryValueType = 1
+ // RegistryValueTypeVDword undocumented
+ RegistryValueTypeVDword RegistryValueType = 2
+ // RegistryValueTypeVDwordLittleEndian undocumented
+ RegistryValueTypeVDwordLittleEndian RegistryValueType = 3
+ // RegistryValueTypeVDwordBigEndian undocumented
+ RegistryValueTypeVDwordBigEndian RegistryValueType = 4
+ // RegistryValueTypeVExpandSz undocumented
+ RegistryValueTypeVExpandSz RegistryValueType = 5
+ // RegistryValueTypeVLink undocumented
+ RegistryValueTypeVLink RegistryValueType = 6
+ // RegistryValueTypeVMultiSz undocumented
+ RegistryValueTypeVMultiSz RegistryValueType = 7
+ // RegistryValueTypeVNone undocumented
+ RegistryValueTypeVNone RegistryValueType = 8
+ // RegistryValueTypeVQword undocumented
+ RegistryValueTypeVQword RegistryValueType = 9
+ // RegistryValueTypeVQwordlittleEndian undocumented
+ RegistryValueTypeVQwordlittleEndian RegistryValueType = 10
+ // RegistryValueTypeVSz undocumented
+ RegistryValueTypeVSz RegistryValueType = 11
+ // RegistryValueTypeVUnknownFutureValue undocumented
+ RegistryValueTypeVUnknownFutureValue RegistryValueType = 127
+)
+
+// RegistryValueTypePUnknown returns a pointer to RegistryValueTypeVUnknown
+func RegistryValueTypePUnknown() *RegistryValueType {
+ v := RegistryValueTypeVUnknown
+ return &v
+}
+
+// RegistryValueTypePBinary returns a pointer to RegistryValueTypeVBinary
+func RegistryValueTypePBinary() *RegistryValueType {
+ v := RegistryValueTypeVBinary
+ return &v
+}
+
+// RegistryValueTypePDword returns a pointer to RegistryValueTypeVDword
+func RegistryValueTypePDword() *RegistryValueType {
+ v := RegistryValueTypeVDword
+ return &v
+}
+
+// RegistryValueTypePDwordLittleEndian returns a pointer to RegistryValueTypeVDwordLittleEndian
+func RegistryValueTypePDwordLittleEndian() *RegistryValueType {
+ v := RegistryValueTypeVDwordLittleEndian
+ return &v
+}
+
+// RegistryValueTypePDwordBigEndian returns a pointer to RegistryValueTypeVDwordBigEndian
+func RegistryValueTypePDwordBigEndian() *RegistryValueType {
+ v := RegistryValueTypeVDwordBigEndian
+ return &v
+}
+
+// RegistryValueTypePExpandSz returns a pointer to RegistryValueTypeVExpandSz
+func RegistryValueTypePExpandSz() *RegistryValueType {
+ v := RegistryValueTypeVExpandSz
+ return &v
+}
+
+// RegistryValueTypePLink returns a pointer to RegistryValueTypeVLink
+func RegistryValueTypePLink() *RegistryValueType {
+ v := RegistryValueTypeVLink
+ return &v
+}
+
+// RegistryValueTypePMultiSz returns a pointer to RegistryValueTypeVMultiSz
+func RegistryValueTypePMultiSz() *RegistryValueType {
+ v := RegistryValueTypeVMultiSz
+ return &v
+}
+
+// RegistryValueTypePNone returns a pointer to RegistryValueTypeVNone
+func RegistryValueTypePNone() *RegistryValueType {
+ v := RegistryValueTypeVNone
+ return &v
+}
+
+// RegistryValueTypePQword returns a pointer to RegistryValueTypeVQword
+func RegistryValueTypePQword() *RegistryValueType {
+ v := RegistryValueTypeVQword
+ return &v
+}
+
+// RegistryValueTypePQwordlittleEndian returns a pointer to RegistryValueTypeVQwordlittleEndian
+func RegistryValueTypePQwordlittleEndian() *RegistryValueType {
+ v := RegistryValueTypeVQwordlittleEndian
+ return &v
+}
+
+// RegistryValueTypePSz returns a pointer to RegistryValueTypeVSz
+func RegistryValueTypePSz() *RegistryValueType {
+ v := RegistryValueTypeVSz
+ return &v
+}
+
+// RegistryValueTypePUnknownFutureValue returns a pointer to RegistryValueTypeVUnknownFutureValue
+func RegistryValueTypePUnknownFutureValue() *RegistryValueType {
+ v := RegistryValueTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RejectReasonEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RejectReasonEnum.go
new file mode 100644
index 00000000..2996e689
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RejectReasonEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RejectReason undocumented
+type RejectReason int
+
+const (
+ // RejectReasonVNone undocumented
+ RejectReasonVNone RejectReason = 0
+ // RejectReasonVBusy undocumented
+ RejectReasonVBusy RejectReason = 1
+ // RejectReasonVForbidden undocumented
+ RejectReasonVForbidden RejectReason = 2
+ // RejectReasonVUnknownFutureValue undocumented
+ RejectReasonVUnknownFutureValue RejectReason = 3
+)
+
+// RejectReasonPNone returns a pointer to RejectReasonVNone
+func RejectReasonPNone() *RejectReason {
+ v := RejectReasonVNone
+ return &v
+}
+
+// RejectReasonPBusy returns a pointer to RejectReasonVBusy
+func RejectReasonPBusy() *RejectReason {
+ v := RejectReasonVBusy
+ return &v
+}
+
+// RejectReasonPForbidden returns a pointer to RejectReasonVForbidden
+func RejectReasonPForbidden() *RejectReason {
+ v := RejectReasonVForbidden
+ return &v
+}
+
+// RejectReasonPUnknownFutureValue returns a pointer to RejectReasonVUnknownFutureValue
+func RejectReasonPUnknownFutureValue() *RejectReason {
+ v := RejectReasonVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RelatedContactModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RelatedContactModel.go
new file mode 100644
index 00000000..71307111
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RelatedContactModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RelatedContact undocumented
+type RelatedContact struct {
+ // Object is the base model of RelatedContact
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // EmailAddress undocumented
+ EmailAddress *string `json:"emailAddress,omitempty"`
+ // MobilePhone undocumented
+ MobilePhone *string `json:"mobilePhone,omitempty"`
+ // Relationship undocumented
+ Relationship *ContactRelationship `json:"relationship,omitempty"`
+ // AccessConsent undocumented
+ AccessConsent *bool `json:"accessConsent,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RelatedPersonModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RelatedPersonModel.go
new file mode 100644
index 00000000..89d8bb28
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RelatedPersonModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RelatedPerson undocumented
+type RelatedPerson struct {
+ // Object is the base model of RelatedPerson
+ Object
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Relationship undocumented
+ Relationship *PersonRelationship `json:"relationship,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RelyingPartyDetailedSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RelyingPartyDetailedSummaryModel.go
new file mode 100644
index 00000000..1920d4fd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RelyingPartyDetailedSummaryModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RelyingPartyDetailedSummary undocumented
+type RelyingPartyDetailedSummary struct {
+ // Entity is the base model of RelyingPartyDetailedSummary
+ Entity
+ // RelyingPartyID undocumented
+ RelyingPartyID *string `json:"relyingPartyId,omitempty"`
+ // ServiceID undocumented
+ ServiceID *string `json:"serviceId,omitempty"`
+ // RelyingPartyName undocumented
+ RelyingPartyName *string `json:"relyingPartyName,omitempty"`
+ // SuccessfulSignInCount undocumented
+ SuccessfulSignInCount *int `json:"successfulSignInCount,omitempty"`
+ // FailedSignInCount undocumented
+ FailedSignInCount *int `json:"failedSignInCount,omitempty"`
+ // TotalSignInCount undocumented
+ TotalSignInCount *int `json:"totalSignInCount,omitempty"`
+ // SignInSuccessRate undocumented
+ SignInSuccessRate *float64 `json:"signInSuccessRate,omitempty"`
+ // UniqueUserCount undocumented
+ UniqueUserCount *int `json:"uniqueUserCount,omitempty"`
+ // MigrationStatus undocumented
+ MigrationStatus *MigrationStatus `json:"migrationStatus,omitempty"`
+ // MigrationValidationDetails undocumented
+ MigrationValidationDetails []KeyValuePair `json:"migrationValidationDetails,omitempty"`
+ // ReplyUrls undocumented
+ ReplyUrls []string `json:"replyUrls,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RemediationStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RemediationStateEnum.go
new file mode 100644
index 00000000..c2c2442e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RemediationStateEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RemediationState undocumented
+type RemediationState int
+
+const (
+ // RemediationStateVUnknown undocumented
+ RemediationStateVUnknown RemediationState = 0
+ // RemediationStateVSkipped undocumented
+ RemediationStateVSkipped RemediationState = 1
+ // RemediationStateVSuccess undocumented
+ RemediationStateVSuccess RemediationState = 2
+ // RemediationStateVRemediationFailed undocumented
+ RemediationStateVRemediationFailed RemediationState = 3
+ // RemediationStateVScriptError undocumented
+ RemediationStateVScriptError RemediationState = 4
+)
+
+// RemediationStatePUnknown returns a pointer to RemediationStateVUnknown
+func RemediationStatePUnknown() *RemediationState {
+ v := RemediationStateVUnknown
+ return &v
+}
+
+// RemediationStatePSkipped returns a pointer to RemediationStateVSkipped
+func RemediationStatePSkipped() *RemediationState {
+ v := RemediationStateVSkipped
+ return &v
+}
+
+// RemediationStatePSuccess returns a pointer to RemediationStateVSuccess
+func RemediationStatePSuccess() *RemediationState {
+ v := RemediationStateVSuccess
+ return &v
+}
+
+// RemediationStatePRemediationFailed returns a pointer to RemediationStateVRemediationFailed
+func RemediationStatePRemediationFailed() *RemediationState {
+ v := RemediationStateVRemediationFailed
+ return &v
+}
+
+// RemediationStatePScriptError returns a pointer to RemediationStateVScriptError
+func RemediationStatePScriptError() *RemediationState {
+ v := RemediationStateVScriptError
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ReminderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ReminderModel.go
new file mode 100644
index 00000000..ef800c55
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ReminderModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Reminder undocumented
+type Reminder struct {
+ // Object is the base model of Reminder
+ Object
+ // EventID undocumented
+ EventID *string `json:"eventId,omitempty"`
+ // EventStartTime undocumented
+ EventStartTime *DateTimeTimeZone `json:"eventStartTime,omitempty"`
+ // EventEndTime undocumented
+ EventEndTime *DateTimeTimeZone `json:"eventEndTime,omitempty"`
+ // ChangeKey undocumented
+ ChangeKey *string `json:"changeKey,omitempty"`
+ // EventSubject undocumented
+ EventSubject *string `json:"eventSubject,omitempty"`
+ // EventLocation undocumented
+ EventLocation *Location `json:"eventLocation,omitempty"`
+ // EventWebLink undocumented
+ EventWebLink *string `json:"eventWebLink,omitempty"`
+ // ReminderFireTime undocumented
+ ReminderFireTime *DateTimeTimeZone `json:"reminderFireTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RemoteActionAuditModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteActionAuditModel.go
new file mode 100644
index 00000000..23362e0c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteActionAuditModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// RemoteActionAudit Report of remote actions initiated on the devices belonging to a certain tenant.
+type RemoteActionAudit struct {
+ // Entity is the base model of RemoteActionAudit
+ Entity
+ // DeviceDisplayName Intune device name.
+ DeviceDisplayName *string `json:"deviceDisplayName,omitempty"`
+ // UserName [deprecated] Please use InitiatedByUserPrincipalName instead.
+ UserName *string `json:"userName,omitempty"`
+ // InitiatedByUserPrincipalName User who initiated the device action, format is UPN.
+ InitiatedByUserPrincipalName *string `json:"initiatedByUserPrincipalName,omitempty"`
+ // Action The action name.
+ Action *RemoteAction `json:"action,omitempty"`
+ // RequestDateTime Time when the action was issued, given in UTC.
+ RequestDateTime *time.Time `json:"requestDateTime,omitempty"`
+ // DeviceOwnerUserPrincipalName Upn of the device owner.
+ DeviceOwnerUserPrincipalName *string `json:"deviceOwnerUserPrincipalName,omitempty"`
+ // DeviceIMEI IMEI of the device.
+ DeviceIMEI *string `json:"deviceIMEI,omitempty"`
+ // ActionState Action state.
+ ActionState *ActionState `json:"actionState,omitempty"`
+ // ManagedDeviceID Action target.
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RemoteActionAuditRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteActionAuditRequest.go
new file mode 100644
index 00000000..78e24eb4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteActionAuditRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RemoteActionAuditRequestBuilder is request builder for RemoteActionAudit
+type RemoteActionAuditRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RemoteActionAuditRequest
+func (b *RemoteActionAuditRequestBuilder) Request() *RemoteActionAuditRequest {
+ return &RemoteActionAuditRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RemoteActionAuditRequest is request for RemoteActionAudit
+type RemoteActionAuditRequest struct{ BaseRequest }
+
+// Get performs GET request for RemoteActionAudit
+func (r *RemoteActionAuditRequest) Get(ctx context.Context) (resObj *RemoteActionAudit, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RemoteActionAudit
+func (r *RemoteActionAuditRequest) Update(ctx context.Context, reqObj *RemoteActionAudit) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RemoteActionAudit
+func (r *RemoteActionAuditRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RemoteActionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteActionEnum.go
new file mode 100644
index 00000000..ebf83106
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteActionEnum.go
@@ -0,0 +1,193 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RemoteAction undocumented
+type RemoteAction int
+
+const (
+ // RemoteActionVUnknown undocumented
+ RemoteActionVUnknown RemoteAction = 0
+ // RemoteActionVFactoryReset undocumented
+ RemoteActionVFactoryReset RemoteAction = 1
+ // RemoteActionVRemoveCompanyData undocumented
+ RemoteActionVRemoveCompanyData RemoteAction = 2
+ // RemoteActionVResetPasscode undocumented
+ RemoteActionVResetPasscode RemoteAction = 3
+ // RemoteActionVRemoteLock undocumented
+ RemoteActionVRemoteLock RemoteAction = 4
+ // RemoteActionVEnableLostMode undocumented
+ RemoteActionVEnableLostMode RemoteAction = 5
+ // RemoteActionVDisableLostMode undocumented
+ RemoteActionVDisableLostMode RemoteAction = 6
+ // RemoteActionVLocateDevice undocumented
+ RemoteActionVLocateDevice RemoteAction = 7
+ // RemoteActionVRebootNow undocumented
+ RemoteActionVRebootNow RemoteAction = 8
+ // RemoteActionVRecoverPasscode undocumented
+ RemoteActionVRecoverPasscode RemoteAction = 9
+ // RemoteActionVCleanWindowsDevice undocumented
+ RemoteActionVCleanWindowsDevice RemoteAction = 10
+ // RemoteActionVLogoutSharedAppleDeviceActiveUser undocumented
+ RemoteActionVLogoutSharedAppleDeviceActiveUser RemoteAction = 11
+ // RemoteActionVQuickScan undocumented
+ RemoteActionVQuickScan RemoteAction = 12
+ // RemoteActionVFullScan undocumented
+ RemoteActionVFullScan RemoteAction = 13
+ // RemoteActionVWindowsDefenderUpdateSignatures undocumented
+ RemoteActionVWindowsDefenderUpdateSignatures RemoteAction = 14
+ // RemoteActionVFactoryResetKeepEnrollmentData undocumented
+ RemoteActionVFactoryResetKeepEnrollmentData RemoteAction = 15
+ // RemoteActionVUpdateDeviceAccount undocumented
+ RemoteActionVUpdateDeviceAccount RemoteAction = 16
+ // RemoteActionVAutomaticRedeployment undocumented
+ RemoteActionVAutomaticRedeployment RemoteAction = 17
+ // RemoteActionVShutDown undocumented
+ RemoteActionVShutDown RemoteAction = 18
+ // RemoteActionVRotateBitLockerKeys undocumented
+ RemoteActionVRotateBitLockerKeys RemoteAction = 19
+ // RemoteActionVRotateFileVaultKey undocumented
+ RemoteActionVRotateFileVaultKey RemoteAction = 20
+ // RemoteActionVGetFileVaultKey undocumented
+ RemoteActionVGetFileVaultKey RemoteAction = 21
+ // RemoteActionVSetDeviceName undocumented
+ RemoteActionVSetDeviceName RemoteAction = 22
+)
+
+// RemoteActionPUnknown returns a pointer to RemoteActionVUnknown
+func RemoteActionPUnknown() *RemoteAction {
+ v := RemoteActionVUnknown
+ return &v
+}
+
+// RemoteActionPFactoryReset returns a pointer to RemoteActionVFactoryReset
+func RemoteActionPFactoryReset() *RemoteAction {
+ v := RemoteActionVFactoryReset
+ return &v
+}
+
+// RemoteActionPRemoveCompanyData returns a pointer to RemoteActionVRemoveCompanyData
+func RemoteActionPRemoveCompanyData() *RemoteAction {
+ v := RemoteActionVRemoveCompanyData
+ return &v
+}
+
+// RemoteActionPResetPasscode returns a pointer to RemoteActionVResetPasscode
+func RemoteActionPResetPasscode() *RemoteAction {
+ v := RemoteActionVResetPasscode
+ return &v
+}
+
+// RemoteActionPRemoteLock returns a pointer to RemoteActionVRemoteLock
+func RemoteActionPRemoteLock() *RemoteAction {
+ v := RemoteActionVRemoteLock
+ return &v
+}
+
+// RemoteActionPEnableLostMode returns a pointer to RemoteActionVEnableLostMode
+func RemoteActionPEnableLostMode() *RemoteAction {
+ v := RemoteActionVEnableLostMode
+ return &v
+}
+
+// RemoteActionPDisableLostMode returns a pointer to RemoteActionVDisableLostMode
+func RemoteActionPDisableLostMode() *RemoteAction {
+ v := RemoteActionVDisableLostMode
+ return &v
+}
+
+// RemoteActionPLocateDevice returns a pointer to RemoteActionVLocateDevice
+func RemoteActionPLocateDevice() *RemoteAction {
+ v := RemoteActionVLocateDevice
+ return &v
+}
+
+// RemoteActionPRebootNow returns a pointer to RemoteActionVRebootNow
+func RemoteActionPRebootNow() *RemoteAction {
+ v := RemoteActionVRebootNow
+ return &v
+}
+
+// RemoteActionPRecoverPasscode returns a pointer to RemoteActionVRecoverPasscode
+func RemoteActionPRecoverPasscode() *RemoteAction {
+ v := RemoteActionVRecoverPasscode
+ return &v
+}
+
+// RemoteActionPCleanWindowsDevice returns a pointer to RemoteActionVCleanWindowsDevice
+func RemoteActionPCleanWindowsDevice() *RemoteAction {
+ v := RemoteActionVCleanWindowsDevice
+ return &v
+}
+
+// RemoteActionPLogoutSharedAppleDeviceActiveUser returns a pointer to RemoteActionVLogoutSharedAppleDeviceActiveUser
+func RemoteActionPLogoutSharedAppleDeviceActiveUser() *RemoteAction {
+ v := RemoteActionVLogoutSharedAppleDeviceActiveUser
+ return &v
+}
+
+// RemoteActionPQuickScan returns a pointer to RemoteActionVQuickScan
+func RemoteActionPQuickScan() *RemoteAction {
+ v := RemoteActionVQuickScan
+ return &v
+}
+
+// RemoteActionPFullScan returns a pointer to RemoteActionVFullScan
+func RemoteActionPFullScan() *RemoteAction {
+ v := RemoteActionVFullScan
+ return &v
+}
+
+// RemoteActionPWindowsDefenderUpdateSignatures returns a pointer to RemoteActionVWindowsDefenderUpdateSignatures
+func RemoteActionPWindowsDefenderUpdateSignatures() *RemoteAction {
+ v := RemoteActionVWindowsDefenderUpdateSignatures
+ return &v
+}
+
+// RemoteActionPFactoryResetKeepEnrollmentData returns a pointer to RemoteActionVFactoryResetKeepEnrollmentData
+func RemoteActionPFactoryResetKeepEnrollmentData() *RemoteAction {
+ v := RemoteActionVFactoryResetKeepEnrollmentData
+ return &v
+}
+
+// RemoteActionPUpdateDeviceAccount returns a pointer to RemoteActionVUpdateDeviceAccount
+func RemoteActionPUpdateDeviceAccount() *RemoteAction {
+ v := RemoteActionVUpdateDeviceAccount
+ return &v
+}
+
+// RemoteActionPAutomaticRedeployment returns a pointer to RemoteActionVAutomaticRedeployment
+func RemoteActionPAutomaticRedeployment() *RemoteAction {
+ v := RemoteActionVAutomaticRedeployment
+ return &v
+}
+
+// RemoteActionPShutDown returns a pointer to RemoteActionVShutDown
+func RemoteActionPShutDown() *RemoteAction {
+ v := RemoteActionVShutDown
+ return &v
+}
+
+// RemoteActionPRotateBitLockerKeys returns a pointer to RemoteActionVRotateBitLockerKeys
+func RemoteActionPRotateBitLockerKeys() *RemoteAction {
+ v := RemoteActionVRotateBitLockerKeys
+ return &v
+}
+
+// RemoteActionPRotateFileVaultKey returns a pointer to RemoteActionVRotateFileVaultKey
+func RemoteActionPRotateFileVaultKey() *RemoteAction {
+ v := RemoteActionVRotateFileVaultKey
+ return &v
+}
+
+// RemoteActionPGetFileVaultKey returns a pointer to RemoteActionVGetFileVaultKey
+func RemoteActionPGetFileVaultKey() *RemoteAction {
+ v := RemoteActionVGetFileVaultKey
+ return &v
+}
+
+// RemoteActionPSetDeviceName returns a pointer to RemoteActionVSetDeviceName
+func RemoteActionPSetDeviceName() *RemoteAction {
+ v := RemoteActionVSetDeviceName
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RemoteAssistanceOnboardingStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteAssistanceOnboardingStatusEnum.go
new file mode 100644
index 00000000..d3307118
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteAssistanceOnboardingStatusEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RemoteAssistanceOnboardingStatus undocumented
+type RemoteAssistanceOnboardingStatus int
+
+const (
+ // RemoteAssistanceOnboardingStatusVNotOnboarded undocumented
+ RemoteAssistanceOnboardingStatusVNotOnboarded RemoteAssistanceOnboardingStatus = 0
+ // RemoteAssistanceOnboardingStatusVOnboarding undocumented
+ RemoteAssistanceOnboardingStatusVOnboarding RemoteAssistanceOnboardingStatus = 1
+ // RemoteAssistanceOnboardingStatusVOnboarded undocumented
+ RemoteAssistanceOnboardingStatusVOnboarded RemoteAssistanceOnboardingStatus = 2
+)
+
+// RemoteAssistanceOnboardingStatusPNotOnboarded returns a pointer to RemoteAssistanceOnboardingStatusVNotOnboarded
+func RemoteAssistanceOnboardingStatusPNotOnboarded() *RemoteAssistanceOnboardingStatus {
+ v := RemoteAssistanceOnboardingStatusVNotOnboarded
+ return &v
+}
+
+// RemoteAssistanceOnboardingStatusPOnboarding returns a pointer to RemoteAssistanceOnboardingStatusVOnboarding
+func RemoteAssistanceOnboardingStatusPOnboarding() *RemoteAssistanceOnboardingStatus {
+ v := RemoteAssistanceOnboardingStatusVOnboarding
+ return &v
+}
+
+// RemoteAssistanceOnboardingStatusPOnboarded returns a pointer to RemoteAssistanceOnboardingStatusVOnboarded
+func RemoteAssistanceOnboardingStatusPOnboarded() *RemoteAssistanceOnboardingStatus {
+ v := RemoteAssistanceOnboardingStatusVOnboarded
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RemoteAssistancePartnerAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteAssistancePartnerAction.go
new file mode 100644
index 00000000..c22011f2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteAssistancePartnerAction.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RemoteAssistancePartnerBeginOnboardingRequestParameter undocumented
+type RemoteAssistancePartnerBeginOnboardingRequestParameter struct {
+}
+
+// RemoteAssistancePartnerDisconnectRequestParameter undocumented
+type RemoteAssistancePartnerDisconnectRequestParameter struct {
+}
+
+//
+type RemoteAssistancePartnerBeginOnboardingRequestBuilder struct{ BaseRequestBuilder }
+
+// BeginOnboarding action undocumented
+func (b *RemoteAssistancePartnerRequestBuilder) BeginOnboarding(reqObj *RemoteAssistancePartnerBeginOnboardingRequestParameter) *RemoteAssistancePartnerBeginOnboardingRequestBuilder {
+ bb := &RemoteAssistancePartnerBeginOnboardingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/beginOnboarding"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type RemoteAssistancePartnerBeginOnboardingRequest struct{ BaseRequest }
+
+//
+func (b *RemoteAssistancePartnerBeginOnboardingRequestBuilder) Request() *RemoteAssistancePartnerBeginOnboardingRequest {
+ return &RemoteAssistancePartnerBeginOnboardingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *RemoteAssistancePartnerBeginOnboardingRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type RemoteAssistancePartnerDisconnectRequestBuilder struct{ BaseRequestBuilder }
+
+// Disconnect action undocumented
+func (b *RemoteAssistancePartnerRequestBuilder) Disconnect(reqObj *RemoteAssistancePartnerDisconnectRequestParameter) *RemoteAssistancePartnerDisconnectRequestBuilder {
+ bb := &RemoteAssistancePartnerDisconnectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/disconnect"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type RemoteAssistancePartnerDisconnectRequest struct{ BaseRequest }
+
+//
+func (b *RemoteAssistancePartnerDisconnectRequestBuilder) Request() *RemoteAssistancePartnerDisconnectRequest {
+ return &RemoteAssistancePartnerDisconnectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *RemoteAssistancePartnerDisconnectRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RemoteAssistancePartnerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteAssistancePartnerModel.go
new file mode 100644
index 00000000..f4c25b06
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteAssistancePartnerModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// RemoteAssistancePartner RemoteAssistPartner resources represent the metadata and status of a given Remote Assistance partner service.
+type RemoteAssistancePartner struct {
+ // Entity is the base model of RemoteAssistancePartner
+ Entity
+ // DisplayName Display name of the partner.
+ DisplayName *string `json:"displayName,omitempty"`
+ // OnboardingURL URL of the partner's onboarding portal, where an administrator can configure their Remote Assistance service.
+ OnboardingURL *string `json:"onboardingUrl,omitempty"`
+ // OnboardingStatus A friendly description of the current TeamViewer connector status
+ OnboardingStatus *RemoteAssistanceOnboardingStatus `json:"onboardingStatus,omitempty"`
+ // LastConnectionDateTime Timestamp of the last request sent to Intune by the TEM partner.
+ LastConnectionDateTime *time.Time `json:"lastConnectionDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RemoteAssistancePartnerRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteAssistancePartnerRequest.go
new file mode 100644
index 00000000..f713cfd7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteAssistancePartnerRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RemoteAssistancePartnerRequestBuilder is request builder for RemoteAssistancePartner
+type RemoteAssistancePartnerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RemoteAssistancePartnerRequest
+func (b *RemoteAssistancePartnerRequestBuilder) Request() *RemoteAssistancePartnerRequest {
+ return &RemoteAssistancePartnerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RemoteAssistancePartnerRequest is request for RemoteAssistancePartner
+type RemoteAssistancePartnerRequest struct{ BaseRequest }
+
+// Get performs GET request for RemoteAssistancePartner
+func (r *RemoteAssistancePartnerRequest) Get(ctx context.Context) (resObj *RemoteAssistancePartner, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RemoteAssistancePartner
+func (r *RemoteAssistancePartnerRequest) Update(ctx context.Context, reqObj *RemoteAssistancePartner) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RemoteAssistancePartner
+func (r *RemoteAssistancePartnerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RemoteItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteItemModel.go
new file mode 100644
index 00000000..d8e0434b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteItemModel.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// RemoteItem undocumented
+type RemoteItem struct {
+ // Object is the base model of RemoteItem
+ Object
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // File undocumented
+ File *File `json:"file,omitempty"`
+ // FileSystemInfo undocumented
+ FileSystemInfo *FileSystemInfo `json:"fileSystemInfo,omitempty"`
+ // Folder undocumented
+ Folder *Folder `json:"folder,omitempty"`
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Package undocumented
+ Package *Package `json:"package,omitempty"`
+ // ParentReference undocumented
+ ParentReference *ItemReference `json:"parentReference,omitempty"`
+ // Shared undocumented
+ Shared *Shared `json:"shared,omitempty"`
+ // SharepointIDs undocumented
+ SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"`
+ // Size undocumented
+ Size *int `json:"size,omitempty"`
+ // SpecialFolder undocumented
+ SpecialFolder *SpecialFolder `json:"specialFolder,omitempty"`
+ // WebDavURL undocumented
+ WebDavURL *string `json:"webDavUrl,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RemoteLockActionResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteLockActionResultModel.go
new file mode 100644
index 00000000..5d35b431
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RemoteLockActionResultModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RemoteLockActionResult undocumented
+type RemoteLockActionResult struct {
+ // DeviceActionResult is the base model of RemoteLockActionResult
+ DeviceActionResult
+ // UnlockPin Pin to unlock the client
+ UnlockPin *string `json:"unlockPin,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RemoveContentFooterActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RemoveContentFooterActionModel.go
new file mode 100644
index 00000000..5c45fd65
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RemoveContentFooterActionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RemoveContentFooterAction undocumented
+type RemoveContentFooterAction struct {
+ // InformationProtectionAction is the base model of RemoveContentFooterAction
+ InformationProtectionAction
+ // UIElementNames undocumented
+ UIElementNames []string `json:"uiElementNames,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RemoveContentHeaderActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RemoveContentHeaderActionModel.go
new file mode 100644
index 00000000..44f5a8a8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RemoveContentHeaderActionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RemoveContentHeaderAction undocumented
+type RemoveContentHeaderAction struct {
+ // InformationProtectionAction is the base model of RemoveContentHeaderAction
+ InformationProtectionAction
+ // UIElementNames undocumented
+ UIElementNames []string `json:"uiElementNames,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RemoveProtectionActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RemoveProtectionActionModel.go
new file mode 100644
index 00000000..eecc9f80
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RemoveProtectionActionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RemoveProtectionAction undocumented
+type RemoveProtectionAction struct {
+ // InformationProtectionAction is the base model of RemoveProtectionAction
+ InformationProtectionAction
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RemoveWatermarkActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RemoveWatermarkActionModel.go
new file mode 100644
index 00000000..83a2d99a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RemoveWatermarkActionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RemoveWatermarkAction undocumented
+type RemoveWatermarkAction struct {
+ // InformationProtectionAction is the base model of RemoveWatermarkAction
+ InformationProtectionAction
+ // UIElementNames undocumented
+ UIElementNames []string `json:"uiElementNames,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RenameActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RenameActionModel.go
new file mode 100644
index 00000000..68f06de8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RenameActionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RenameAction undocumented
+type RenameAction struct {
+ // Object is the base model of RenameAction
+ Object
+ // NewName undocumented
+ NewName *string `json:"newName,omitempty"`
+ // OldName undocumented
+ OldName *string `json:"oldName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ReportModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ReportModel.go
new file mode 100644
index 00000000..d514a389
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ReportModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Report undocumented
+type Report struct {
+ // Object is the base model of Report
+ Object
+ // Content undocumented
+ Content *Stream `json:"content,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ReportRootModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ReportRootModel.go
new file mode 100644
index 00000000..a6db5273
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ReportRootModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ReportRoot The resource that represents an instance of Enrollment Failure Reports.
+type ReportRoot struct {
+ // Entity is the base model of ReportRoot
+ Entity
+ // ApplicationSignInDetailedSummary undocumented
+ ApplicationSignInDetailedSummary []ApplicationSignInDetailedSummary `json:"applicationSignInDetailedSummary,omitempty"`
+ // CredentialUserRegistrationDetails undocumented
+ CredentialUserRegistrationDetails []CredentialUserRegistrationDetails `json:"credentialUserRegistrationDetails,omitempty"`
+ // UserCredentialUsageDetails undocumented
+ UserCredentialUsageDetails []UserCredentialUsageDetails `json:"userCredentialUsageDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ReportRootRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ReportRootRequest.go
new file mode 100644
index 00000000..a5490320
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ReportRootRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ReportRootRequestBuilder is request builder for ReportRoot
+type ReportRootRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ReportRootRequest
+func (b *ReportRootRequestBuilder) Request() *ReportRootRequest {
+ return &ReportRootRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ReportRootRequest is request for ReportRoot
+type ReportRootRequest struct{ BaseRequest }
+
+// Get performs GET request for ReportRoot
+func (r *ReportRootRequest) Get(ctx context.Context) (resObj *ReportRoot, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ReportRoot
+func (r *ReportRootRequest) Update(ctx context.Context, reqObj *ReportRoot) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ReportRoot
+func (r *ReportRootRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ApplicationSignInDetailedSummary returns request builder for ApplicationSignInDetailedSummary collection
+func (b *ReportRootRequestBuilder) ApplicationSignInDetailedSummary() *ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder {
+ bb := &ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/applicationSignInDetailedSummary"
+ return bb
+}
+
+// ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder is request builder for ApplicationSignInDetailedSummary collection
+type ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ApplicationSignInDetailedSummary collection
+func (b *ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder) Request() *ReportRootApplicationSignInDetailedSummaryCollectionRequest {
+ return &ReportRootApplicationSignInDetailedSummaryCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ApplicationSignInDetailedSummary item
+func (b *ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder) ID(id string) *ApplicationSignInDetailedSummaryRequestBuilder {
+ bb := &ApplicationSignInDetailedSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ReportRootApplicationSignInDetailedSummaryCollectionRequest is request for ApplicationSignInDetailedSummary collection
+type ReportRootApplicationSignInDetailedSummaryCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ApplicationSignInDetailedSummary collection
+func (r *ReportRootApplicationSignInDetailedSummaryCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ApplicationSignInDetailedSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ApplicationSignInDetailedSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ApplicationSignInDetailedSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ApplicationSignInDetailedSummary collection
+func (r *ReportRootApplicationSignInDetailedSummaryCollectionRequest) Get(ctx context.Context) ([]ApplicationSignInDetailedSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ApplicationSignInDetailedSummary collection
+func (r *ReportRootApplicationSignInDetailedSummaryCollectionRequest) Add(ctx context.Context, reqObj *ApplicationSignInDetailedSummary) (resObj *ApplicationSignInDetailedSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CredentialUserRegistrationDetails returns request builder for CredentialUserRegistrationDetails collection
+func (b *ReportRootRequestBuilder) CredentialUserRegistrationDetails() *ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder {
+ bb := &ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/credentialUserRegistrationDetails"
+ return bb
+}
+
+// ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder is request builder for CredentialUserRegistrationDetails collection
+type ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CredentialUserRegistrationDetails collection
+func (b *ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder) Request() *ReportRootCredentialUserRegistrationDetailsCollectionRequest {
+ return &ReportRootCredentialUserRegistrationDetailsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CredentialUserRegistrationDetails item
+func (b *ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder) ID(id string) *CredentialUserRegistrationDetailsRequestBuilder {
+ bb := &CredentialUserRegistrationDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ReportRootCredentialUserRegistrationDetailsCollectionRequest is request for CredentialUserRegistrationDetails collection
+type ReportRootCredentialUserRegistrationDetailsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CredentialUserRegistrationDetails collection
+func (r *ReportRootCredentialUserRegistrationDetailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]CredentialUserRegistrationDetails, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CredentialUserRegistrationDetails
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CredentialUserRegistrationDetails
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CredentialUserRegistrationDetails collection
+func (r *ReportRootCredentialUserRegistrationDetailsCollectionRequest) Get(ctx context.Context) ([]CredentialUserRegistrationDetails, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for CredentialUserRegistrationDetails collection
+func (r *ReportRootCredentialUserRegistrationDetailsCollectionRequest) Add(ctx context.Context, reqObj *CredentialUserRegistrationDetails) (resObj *CredentialUserRegistrationDetails, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserCredentialUsageDetails returns request builder for UserCredentialUsageDetails collection
+func (b *ReportRootRequestBuilder) UserCredentialUsageDetails() *ReportRootUserCredentialUsageDetailsCollectionRequestBuilder {
+ bb := &ReportRootUserCredentialUsageDetailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userCredentialUsageDetails"
+ return bb
+}
+
+// ReportRootUserCredentialUsageDetailsCollectionRequestBuilder is request builder for UserCredentialUsageDetails collection
+type ReportRootUserCredentialUsageDetailsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserCredentialUsageDetails collection
+func (b *ReportRootUserCredentialUsageDetailsCollectionRequestBuilder) Request() *ReportRootUserCredentialUsageDetailsCollectionRequest {
+ return &ReportRootUserCredentialUsageDetailsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserCredentialUsageDetails item
+func (b *ReportRootUserCredentialUsageDetailsCollectionRequestBuilder) ID(id string) *UserCredentialUsageDetailsRequestBuilder {
+ bb := &UserCredentialUsageDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ReportRootUserCredentialUsageDetailsCollectionRequest is request for UserCredentialUsageDetails collection
+type ReportRootUserCredentialUsageDetailsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserCredentialUsageDetails collection
+func (r *ReportRootUserCredentialUsageDetailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UserCredentialUsageDetails, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserCredentialUsageDetails
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserCredentialUsageDetails
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserCredentialUsageDetails collection
+func (r *ReportRootUserCredentialUsageDetailsCollectionRequest) Get(ctx context.Context) ([]UserCredentialUsageDetails, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UserCredentialUsageDetails collection
+func (r *ReportRootUserCredentialUsageDetailsCollectionRequest) Add(ctx context.Context, reqObj *UserCredentialUsageDetails) (resObj *UserCredentialUsageDetails, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ReputationCategoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ReputationCategoryModel.go
new file mode 100644
index 00000000..b42108e3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ReputationCategoryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ReputationCategory undocumented
+type ReputationCategory struct {
+ // Object is the base model of ReputationCategory
+ Object
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Vendor undocumented
+ Vendor *string `json:"vendor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestObjectAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestObjectAction.go
new file mode 100644
index 00000000..e37e70b1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestObjectAction.go
@@ -0,0 +1,69 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RequestObjectStopRequestParameter undocumented
+type RequestObjectStopRequestParameter struct {
+}
+
+// RequestObjectRecordDecisionsRequestParameter undocumented
+type RequestObjectRecordDecisionsRequestParameter struct {
+ // ReviewResult undocumented
+ ReviewResult *string `json:"reviewResult,omitempty"`
+ // Justification undocumented
+ Justification *string `json:"justification,omitempty"`
+}
+
+//
+type RequestObjectStopRequestBuilder struct{ BaseRequestBuilder }
+
+// Stop action undocumented
+func (b *RequestObjectRequestBuilder) Stop(reqObj *RequestObjectStopRequestParameter) *RequestObjectStopRequestBuilder {
+ bb := &RequestObjectStopRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/stop"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type RequestObjectStopRequest struct{ BaseRequest }
+
+//
+func (b *RequestObjectStopRequestBuilder) Request() *RequestObjectStopRequest {
+ return &RequestObjectStopRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *RequestObjectStopRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type RequestObjectRecordDecisionsRequestBuilder struct{ BaseRequestBuilder }
+
+// RecordDecisions action undocumented
+func (b *RequestObjectRequestBuilder) RecordDecisions(reqObj *RequestObjectRecordDecisionsRequestParameter) *RequestObjectRecordDecisionsRequestBuilder {
+ bb := &RequestObjectRecordDecisionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/recordDecisions"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type RequestObjectRecordDecisionsRequest struct{ BaseRequest }
+
+//
+func (b *RequestObjectRecordDecisionsRequestBuilder) Request() *RequestObjectRecordDecisionsRequest {
+ return &RequestObjectRecordDecisionsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *RequestObjectRecordDecisionsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestObjectModel.go
new file mode 100644
index 00000000..ccc09fc4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestObjectModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// RequestObject undocumented
+type RequestObject struct {
+ // Entity is the base model of RequestObject
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // BusinessFlowID undocumented
+ BusinessFlowID *string `json:"businessFlowId,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *UserIdentity `json:"createdBy,omitempty"`
+ // DeDuplicationID undocumented
+ DeDuplicationID *string `json:"deDuplicationId,omitempty"`
+ // SchemaID undocumented
+ SchemaID *string `json:"schemaId,omitempty"`
+ // CustomData undocumented
+ CustomData *string `json:"customData,omitempty"`
+ // RecordVersion undocumented
+ RecordVersion *string `json:"recordVersion,omitempty"`
+ // PolicyTemplateID undocumented
+ PolicyTemplateID *string `json:"policyTemplateId,omitempty"`
+ // Policy undocumented
+ Policy *GovernancePolicy `json:"policy,omitempty"`
+ // Settings undocumented
+ Settings *AccessReviewSettings `json:"settings,omitempty"`
+ // Decisions undocumented
+ Decisions []AccessReviewDecision `json:"decisions,omitempty"`
+ // MyDecisions undocumented
+ MyDecisions []AccessReviewDecision `json:"myDecisions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestObjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestObjectRequest.go
new file mode 100644
index 00000000..84bf7208
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestObjectRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// RequestObjectRequestBuilder is request builder for RequestObject
+type RequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RequestObjectRequest
+func (b *RequestObjectRequestBuilder) Request() *RequestObjectRequest {
+ return &RequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RequestObjectRequest is request for RequestObject
+type RequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for RequestObject
+func (r *RequestObjectRequest) Get(ctx context.Context) (resObj *RequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RequestObject
+func (r *RequestObjectRequest) Update(ctx context.Context, reqObj *RequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RequestObject
+func (r *RequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Decisions returns request builder for AccessReviewDecision collection
+func (b *RequestObjectRequestBuilder) Decisions() *RequestObjectDecisionsCollectionRequestBuilder {
+ bb := &RequestObjectDecisionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/decisions"
+ return bb
+}
+
+// RequestObjectDecisionsCollectionRequestBuilder is request builder for AccessReviewDecision collection
+type RequestObjectDecisionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessReviewDecision collection
+func (b *RequestObjectDecisionsCollectionRequestBuilder) Request() *RequestObjectDecisionsCollectionRequest {
+ return &RequestObjectDecisionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessReviewDecision item
+func (b *RequestObjectDecisionsCollectionRequestBuilder) ID(id string) *AccessReviewDecisionRequestBuilder {
+ bb := &AccessReviewDecisionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// RequestObjectDecisionsCollectionRequest is request for AccessReviewDecision collection
+type RequestObjectDecisionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessReviewDecision collection
+func (r *RequestObjectDecisionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessReviewDecision, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessReviewDecision
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessReviewDecision
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessReviewDecision collection
+func (r *RequestObjectDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessReviewDecision collection
+func (r *RequestObjectDecisionsCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewDecision) (resObj *AccessReviewDecision, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MyDecisions returns request builder for AccessReviewDecision collection
+func (b *RequestObjectRequestBuilder) MyDecisions() *RequestObjectMyDecisionsCollectionRequestBuilder {
+ bb := &RequestObjectMyDecisionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/myDecisions"
+ return bb
+}
+
+// RequestObjectMyDecisionsCollectionRequestBuilder is request builder for AccessReviewDecision collection
+type RequestObjectMyDecisionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessReviewDecision collection
+func (b *RequestObjectMyDecisionsCollectionRequestBuilder) Request() *RequestObjectMyDecisionsCollectionRequest {
+ return &RequestObjectMyDecisionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessReviewDecision item
+func (b *RequestObjectMyDecisionsCollectionRequestBuilder) ID(id string) *AccessReviewDecisionRequestBuilder {
+ bb := &AccessReviewDecisionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// RequestObjectMyDecisionsCollectionRequest is request for AccessReviewDecision collection
+type RequestObjectMyDecisionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessReviewDecision collection
+func (r *RequestObjectMyDecisionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessReviewDecision, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessReviewDecision
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessReviewDecision
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AccessReviewDecision collection
+func (r *RequestObjectMyDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AccessReviewDecision collection
+func (r *RequestObjectMyDecisionsCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewDecision) (resObj *AccessReviewDecision, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequiredPasswordTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequiredPasswordTypeEnum.go
new file mode 100644
index 00000000..82bbdffc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequiredPasswordTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RequiredPasswordType undocumented
+type RequiredPasswordType int
+
+const (
+ // RequiredPasswordTypeVDeviceDefault undocumented
+ RequiredPasswordTypeVDeviceDefault RequiredPasswordType = 0
+ // RequiredPasswordTypeVAlphanumeric undocumented
+ RequiredPasswordTypeVAlphanumeric RequiredPasswordType = 1
+ // RequiredPasswordTypeVNumeric undocumented
+ RequiredPasswordTypeVNumeric RequiredPasswordType = 2
+)
+
+// RequiredPasswordTypePDeviceDefault returns a pointer to RequiredPasswordTypeVDeviceDefault
+func RequiredPasswordTypePDeviceDefault() *RequiredPasswordType {
+ v := RequiredPasswordTypeVDeviceDefault
+ return &v
+}
+
+// RequiredPasswordTypePAlphanumeric returns a pointer to RequiredPasswordTypeVAlphanumeric
+func RequiredPasswordTypePAlphanumeric() *RequiredPasswordType {
+ v := RequiredPasswordTypeVAlphanumeric
+ return &v
+}
+
+// RequiredPasswordTypePNumeric returns a pointer to RequiredPasswordTypeVNumeric
+func RequiredPasswordTypePNumeric() *RequiredPasswordType {
+ v := RequiredPasswordTypeVNumeric
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequiredResourceAccessModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequiredResourceAccessModel.go
new file mode 100644
index 00000000..cf8fc609
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequiredResourceAccessModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RequiredResourceAccess undocumented
+type RequiredResourceAccess struct {
+ // Object is the base model of RequiredResourceAccess
+ Object
+ // ResourceAppID undocumented
+ ResourceAppID *string `json:"resourceAppId,omitempty"`
+ // ResourceAccess undocumented
+ ResourceAccess []ResourceAccess `json:"resourceAccess,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequirementProviderEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequirementProviderEnum.go
new file mode 100644
index 00000000..0848e87d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequirementProviderEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RequirementProvider undocumented
+type RequirementProvider int
+
+const (
+ // RequirementProviderVMFA undocumented
+ RequirementProviderVMFA RequirementProvider = 0
+ // RequirementProviderVCA undocumented
+ RequirementProviderVCA RequirementProvider = 1
+ // RequirementProviderVUnknownFutureValue undocumented
+ RequirementProviderVUnknownFutureValue RequirementProvider = 2
+)
+
+// RequirementProviderPMFA returns a pointer to RequirementProviderVMFA
+func RequirementProviderPMFA() *RequirementProvider {
+ v := RequirementProviderVMFA
+ return &v
+}
+
+// RequirementProviderPCA returns a pointer to RequirementProviderVCA
+func RequirementProviderPCA() *RequirementProvider {
+ v := RequirementProviderVCA
+ return &v
+}
+
+// RequirementProviderPUnknownFutureValue returns a pointer to RequirementProviderVUnknownFutureValue
+func RequirementProviderPUnknownFutureValue() *RequirementProvider {
+ v := RequirementProviderVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResetPasscodeActionResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResetPasscodeActionResultModel.go
new file mode 100644
index 00000000..b421b61d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResetPasscodeActionResultModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResetPasscodeActionResult undocumented
+type ResetPasscodeActionResult struct {
+ // DeviceActionResult is the base model of ResetPasscodeActionResult
+ DeviceActionResult
+ // Passcode Newly generated passcode for the device
+ Passcode *string `json:"passcode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResourceAccessModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceAccessModel.go
new file mode 100644
index 00000000..8625c677
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceAccessModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResourceAccess undocumented
+type ResourceAccess struct {
+ // Object is the base model of ResourceAccess
+ Object
+ // ID undocumented
+ ID *UUID `json:"id,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResourceActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceActionModel.go
new file mode 100644
index 00000000..e258fa4f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceActionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResourceAction undocumented
+type ResourceAction struct {
+ // Object is the base model of ResourceAction
+ Object
+ // AllowedResourceActions Allowed Actions
+ AllowedResourceActions []string `json:"allowedResourceActions,omitempty"`
+ // NotAllowedResourceActions Not Allowed Actions.
+ NotAllowedResourceActions []string `json:"notAllowedResourceActions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResourceOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceOperationModel.go
new file mode 100644
index 00000000..de52fa1e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceOperationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResourceOperation Describes the resourceOperation resource (entity) of the Microsoft Graph API (REST), which supports Intune workflows related to role-based access control (RBAC).
+type ResourceOperation struct {
+ // Entity is the base model of ResourceOperation
+ Entity
+ // Resource Resource category to which this Operation belongs.
+ Resource *string `json:"resource,omitempty"`
+ // ResourceName Name of the Resource this operation is performed on.
+ ResourceName *string `json:"resourceName,omitempty"`
+ // ActionName Type of action this operation is going to perform. The actionName should be concise and limited to as few words as possible.
+ ActionName *string `json:"actionName,omitempty"`
+ // Description Description of the resource operation. The description is used in mouse-over text for the operation when shown in the Azure Portal.
+ Description *string `json:"description,omitempty"`
+ // EnabledForScopeValidation Determines whether the Permission is validated for Scopes defined per Role Assignment.
+ EnabledForScopeValidation *bool `json:"enabledForScopeValidation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResourceOperationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceOperationRequest.go
new file mode 100644
index 00000000..b1b94f07
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceOperationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ResourceOperationRequestBuilder is request builder for ResourceOperation
+type ResourceOperationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ResourceOperationRequest
+func (b *ResourceOperationRequestBuilder) Request() *ResourceOperationRequest {
+ return &ResourceOperationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ResourceOperationRequest is request for ResourceOperation
+type ResourceOperationRequest struct{ BaseRequest }
+
+// Get performs GET request for ResourceOperation
+func (r *ResourceOperationRequest) Get(ctx context.Context) (resObj *ResourceOperation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ResourceOperation
+func (r *ResourceOperationRequest) Update(ctx context.Context, reqObj *ResourceOperation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ResourceOperation
+func (r *ResourceOperationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResourcePermissionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResourcePermissionModel.go
new file mode 100644
index 00000000..dd1aaf61
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResourcePermissionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResourcePermission undocumented
+type ResourcePermission struct {
+ // Object is the base model of ResourcePermission
+ Object
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResourcePropertiesModelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResourcePropertiesModelModel.go
new file mode 100644
index 00000000..55f23dc6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResourcePropertiesModelModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResourcePropertiesModel undocumented
+type ResourcePropertiesModel struct {
+ // Object is the base model of ResourcePropertiesModel
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Label undocumented
+ Label *string `json:"label,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Capacity undocumented
+ Capacity *int `json:"capacity,omitempty"`
+ // IsManaged undocumented
+ IsManaged *bool `json:"isManaged,omitempty"`
+ // BookingType undocumented
+ BookingType *BookingType `json:"bookingType,omitempty"`
+ // Building undocumented
+ Building *string `json:"building,omitempty"`
+ // Floor undocumented
+ Floor *string `json:"floor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResourceReferenceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceReferenceModel.go
new file mode 100644
index 00000000..ba8e92e2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceReferenceModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResourceReference undocumented
+type ResourceReference struct {
+ // Object is the base model of ResourceReference
+ Object
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResourceSpecificPermissionGrantModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceSpecificPermissionGrantModel.go
new file mode 100644
index 00000000..eca0b27b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceSpecificPermissionGrantModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResourceSpecificPermissionGrant undocumented
+type ResourceSpecificPermissionGrant struct {
+ // DirectoryObject is the base model of ResourceSpecificPermissionGrant
+ DirectoryObject
+ // ClientID undocumented
+ ClientID *string `json:"clientId,omitempty"`
+ // ClientAppID undocumented
+ ClientAppID *string `json:"clientAppId,omitempty"`
+ // ResourceAppID undocumented
+ ResourceAppID *string `json:"resourceAppId,omitempty"`
+ // PermissionType undocumented
+ PermissionType *string `json:"permissionType,omitempty"`
+ // Permission undocumented
+ Permission *string `json:"permission,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResourceSpecificPermissionGrantRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceSpecificPermissionGrantRequest.go
new file mode 100644
index 00000000..dcb83ff1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceSpecificPermissionGrantRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ResourceSpecificPermissionGrantRequestBuilder is request builder for ResourceSpecificPermissionGrant
+type ResourceSpecificPermissionGrantRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ResourceSpecificPermissionGrantRequest
+func (b *ResourceSpecificPermissionGrantRequestBuilder) Request() *ResourceSpecificPermissionGrantRequest {
+ return &ResourceSpecificPermissionGrantRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ResourceSpecificPermissionGrantRequest is request for ResourceSpecificPermissionGrant
+type ResourceSpecificPermissionGrantRequest struct{ BaseRequest }
+
+// Get performs GET request for ResourceSpecificPermissionGrant
+func (r *ResourceSpecificPermissionGrantRequest) Get(ctx context.Context) (resObj *ResourceSpecificPermissionGrant, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ResourceSpecificPermissionGrant
+func (r *ResourceSpecificPermissionGrantRequest) Update(ctx context.Context, reqObj *ResourceSpecificPermissionGrant) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ResourceSpecificPermissionGrant
+func (r *ResourceSpecificPermissionGrantRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResourceSpecificPermissionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceSpecificPermissionModel.go
new file mode 100644
index 00000000..c456bd0b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceSpecificPermissionModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResourceSpecificPermission undocumented
+type ResourceSpecificPermission struct {
+ // Object is the base model of ResourceSpecificPermission
+ Object
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ID undocumented
+ ID *UUID `json:"id,omitempty"`
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResourceVisualizationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceVisualizationModel.go
new file mode 100644
index 00000000..55a200c2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResourceVisualizationModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResourceVisualization undocumented
+type ResourceVisualization struct {
+ // Object is the base model of ResourceVisualization
+ Object
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // MediaType undocumented
+ MediaType *string `json:"mediaType,omitempty"`
+ // PreviewImageURL undocumented
+ PreviewImageURL *string `json:"previewImageUrl,omitempty"`
+ // PreviewText undocumented
+ PreviewText *string `json:"previewText,omitempty"`
+ // ContainerWebURL undocumented
+ ContainerWebURL *string `json:"containerWebUrl,omitempty"`
+ // ContainerDisplayName undocumented
+ ContainerDisplayName *string `json:"containerDisplayName,omitempty"`
+ // ContainerType undocumented
+ ContainerType *string `json:"containerType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResponseStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResponseStatusModel.go
new file mode 100644
index 00000000..feb5a2e2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResponseStatusModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ResponseStatus undocumented
+type ResponseStatus struct {
+ // Object is the base model of ResponseStatus
+ Object
+ // Response undocumented
+ Response *ResponseType `json:"response,omitempty"`
+ // Time undocumented
+ Time *time.Time `json:"time,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResponseTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResponseTypeEnum.go
new file mode 100644
index 00000000..7281cf5d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResponseTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResponseType undocumented
+type ResponseType int
+
+const (
+ // ResponseTypeVNone undocumented
+ ResponseTypeVNone ResponseType = 0
+ // ResponseTypeVOrganizer undocumented
+ ResponseTypeVOrganizer ResponseType = 1
+ // ResponseTypeVTentativelyAccepted undocumented
+ ResponseTypeVTentativelyAccepted ResponseType = 2
+ // ResponseTypeVAccepted undocumented
+ ResponseTypeVAccepted ResponseType = 3
+ // ResponseTypeVDeclined undocumented
+ ResponseTypeVDeclined ResponseType = 4
+ // ResponseTypeVNotResponded undocumented
+ ResponseTypeVNotResponded ResponseType = 5
+)
+
+// ResponseTypePNone returns a pointer to ResponseTypeVNone
+func ResponseTypePNone() *ResponseType {
+ v := ResponseTypeVNone
+ return &v
+}
+
+// ResponseTypePOrganizer returns a pointer to ResponseTypeVOrganizer
+func ResponseTypePOrganizer() *ResponseType {
+ v := ResponseTypeVOrganizer
+ return &v
+}
+
+// ResponseTypePTentativelyAccepted returns a pointer to ResponseTypeVTentativelyAccepted
+func ResponseTypePTentativelyAccepted() *ResponseType {
+ v := ResponseTypeVTentativelyAccepted
+ return &v
+}
+
+// ResponseTypePAccepted returns a pointer to ResponseTypeVAccepted
+func ResponseTypePAccepted() *ResponseType {
+ v := ResponseTypeVAccepted
+ return &v
+}
+
+// ResponseTypePDeclined returns a pointer to ResponseTypeVDeclined
+func ResponseTypePDeclined() *ResponseType {
+ v := ResponseTypeVDeclined
+ return &v
+}
+
+// ResponseTypePNotResponded returns a pointer to ResponseTypeVNotResponded
+func ResponseTypePNotResponded() *ResponseType {
+ v := ResponseTypeVNotResponded
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResponsiblePolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResponsiblePolicyModel.go
new file mode 100644
index 00000000..6c549cfe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResponsiblePolicyModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResponsiblePolicy undocumented
+type ResponsiblePolicy struct {
+ // Object is the base model of ResponsiblePolicy
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResponsibleSensitiveTypeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResponsibleSensitiveTypeModel.go
new file mode 100644
index 00000000..2c9cf730
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResponsibleSensitiveTypeModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResponsibleSensitiveType undocumented
+type ResponsibleSensitiveType struct {
+ // Object is the base model of ResponsibleSensitiveType
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // RulePackageID undocumented
+ RulePackageID *string `json:"rulePackageId,omitempty"`
+ // RulePackageType undocumented
+ RulePackageType *string `json:"rulePackageType,omitempty"`
+ // PublisherName undocumented
+ PublisherName *string `json:"publisherName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RestoreActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RestoreActionModel.go
new file mode 100644
index 00000000..62679c24
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RestoreActionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RestoreAction undocumented
+type RestoreAction struct {
+ // Object is the base model of RestoreAction
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RestrictedAppsStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RestrictedAppsStateEnum.go
new file mode 100644
index 00000000..01456d1f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RestrictedAppsStateEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RestrictedAppsState undocumented
+type RestrictedAppsState int
+
+const (
+ // RestrictedAppsStateVProhibitedApps undocumented
+ RestrictedAppsStateVProhibitedApps RestrictedAppsState = 0
+ // RestrictedAppsStateVNotApprovedApps undocumented
+ RestrictedAppsStateVNotApprovedApps RestrictedAppsState = 1
+)
+
+// RestrictedAppsStatePProhibitedApps returns a pointer to RestrictedAppsStateVProhibitedApps
+func RestrictedAppsStatePProhibitedApps() *RestrictedAppsState {
+ v := RestrictedAppsStateVProhibitedApps
+ return &v
+}
+
+// RestrictedAppsStatePNotApprovedApps returns a pointer to RestrictedAppsStateVNotApprovedApps
+func RestrictedAppsStatePNotApprovedApps() *RestrictedAppsState {
+ v := RestrictedAppsStateVNotApprovedApps
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RestrictedAppsViolationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RestrictedAppsViolationModel.go
new file mode 100644
index 00000000..f1951d18
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RestrictedAppsViolationModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RestrictedAppsViolation Violation of restricted apps configuration profile per device per user
+type RestrictedAppsViolation struct {
+ // Entity is the base model of RestrictedAppsViolation
+ Entity
+ // UserID User unique identifier, must be Guid
+ UserID *string `json:"userId,omitempty"`
+ // UserName User name
+ UserName *string `json:"userName,omitempty"`
+ // ManagedDeviceID Managed device unique identifier, must be Guid
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // DeviceName Device name
+ DeviceName *string `json:"deviceName,omitempty"`
+ // DeviceConfigurationID Device configuration profile unique identifier, must be Guid
+ DeviceConfigurationID *string `json:"deviceConfigurationId,omitempty"`
+ // DeviceConfigurationName Device configuration profile name
+ DeviceConfigurationName *string `json:"deviceConfigurationName,omitempty"`
+ // PlatformType Platform type
+ PlatformType *PolicyPlatformType `json:"platformType,omitempty"`
+ // RestrictedAppsState Restricted apps state
+ RestrictedAppsState *RestrictedAppsState `json:"restrictedAppsState,omitempty"`
+ // RestrictedApps List of violated restricted apps
+ RestrictedApps []ManagedDeviceReportedApp `json:"restrictedApps,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RestrictedAppsViolationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RestrictedAppsViolationRequest.go
new file mode 100644
index 00000000..1473eee1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RestrictedAppsViolationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RestrictedAppsViolationRequestBuilder is request builder for RestrictedAppsViolation
+type RestrictedAppsViolationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RestrictedAppsViolationRequest
+func (b *RestrictedAppsViolationRequestBuilder) Request() *RestrictedAppsViolationRequest {
+ return &RestrictedAppsViolationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RestrictedAppsViolationRequest is request for RestrictedAppsViolation
+type RestrictedAppsViolationRequest struct{ BaseRequest }
+
+// Get performs GET request for RestrictedAppsViolation
+func (r *RestrictedAppsViolationRequest) Get(ctx context.Context) (resObj *RestrictedAppsViolation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RestrictedAppsViolation
+func (r *RestrictedAppsViolationRequest) Update(ctx context.Context, reqObj *RestrictedAppsViolation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RestrictedAppsViolation
+func (r *RestrictedAppsViolationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RestrictedSignInModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RestrictedSignInModel.go
new file mode 100644
index 00000000..ff90680b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RestrictedSignInModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RestrictedSignIn undocumented
+type RestrictedSignIn struct {
+ // SignIn is the base model of RestrictedSignIn
+ SignIn
+ // TargetTenantID undocumented
+ TargetTenantID *UUID `json:"targetTenantId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RestrictedSignInRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RestrictedSignInRequest.go
new file mode 100644
index 00000000..c81723fe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RestrictedSignInRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RestrictedSignInRequestBuilder is request builder for RestrictedSignIn
+type RestrictedSignInRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RestrictedSignInRequest
+func (b *RestrictedSignInRequestBuilder) Request() *RestrictedSignInRequest {
+ return &RestrictedSignInRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RestrictedSignInRequest is request for RestrictedSignIn
+type RestrictedSignInRequest struct{ BaseRequest }
+
+// Get performs GET request for RestrictedSignIn
+func (r *RestrictedSignInRequest) Get(ctx context.Context) (resObj *RestrictedSignIn, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RestrictedSignIn
+func (r *RestrictedSignInRequest) Update(ctx context.Context, reqObj *RestrictedSignIn) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RestrictedSignIn
+func (r *RestrictedSignInRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RestrictionActionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RestrictionActionEnum.go
new file mode 100644
index 00000000..b0a8efb6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RestrictionActionEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RestrictionAction undocumented
+type RestrictionAction int
+
+const (
+ // RestrictionActionVWarn undocumented
+ RestrictionActionVWarn RestrictionAction = 0
+ // RestrictionActionVAudit undocumented
+ RestrictionActionVAudit RestrictionAction = 1
+ // RestrictionActionVBlock undocumented
+ RestrictionActionVBlock RestrictionAction = 2
+)
+
+// RestrictionActionPWarn returns a pointer to RestrictionActionVWarn
+func RestrictionActionPWarn() *RestrictionAction {
+ v := RestrictionActionVWarn
+ return &v
+}
+
+// RestrictionActionPAudit returns a pointer to RestrictionActionVAudit
+func RestrictionActionPAudit() *RestrictionAction {
+ v := RestrictionActionVAudit
+ return &v
+}
+
+// RestrictionActionPBlock returns a pointer to RestrictionActionVBlock
+func RestrictionActionPBlock() *RestrictionAction {
+ v := RestrictionActionVBlock
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RestrictionTriggerEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RestrictionTriggerEnum.go
new file mode 100644
index 00000000..7fc03727
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RestrictionTriggerEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RestrictionTrigger undocumented
+type RestrictionTrigger int
+
+const (
+ // RestrictionTriggerVCopyPaste undocumented
+ RestrictionTriggerVCopyPaste RestrictionTrigger = 0
+ // RestrictionTriggerVCopyToNetworkShare undocumented
+ RestrictionTriggerVCopyToNetworkShare RestrictionTrigger = 1
+ // RestrictionTriggerVCopyToRemovableMedia undocumented
+ RestrictionTriggerVCopyToRemovableMedia RestrictionTrigger = 2
+ // RestrictionTriggerVScreenCapture undocumented
+ RestrictionTriggerVScreenCapture RestrictionTrigger = 3
+ // RestrictionTriggerVPrint undocumented
+ RestrictionTriggerVPrint RestrictionTrigger = 4
+ // RestrictionTriggerVCloudEgress undocumented
+ RestrictionTriggerVCloudEgress RestrictionTrigger = 5
+ // RestrictionTriggerVUnallowedApps undocumented
+ RestrictionTriggerVUnallowedApps RestrictionTrigger = 6
+)
+
+// RestrictionTriggerPCopyPaste returns a pointer to RestrictionTriggerVCopyPaste
+func RestrictionTriggerPCopyPaste() *RestrictionTrigger {
+ v := RestrictionTriggerVCopyPaste
+ return &v
+}
+
+// RestrictionTriggerPCopyToNetworkShare returns a pointer to RestrictionTriggerVCopyToNetworkShare
+func RestrictionTriggerPCopyToNetworkShare() *RestrictionTrigger {
+ v := RestrictionTriggerVCopyToNetworkShare
+ return &v
+}
+
+// RestrictionTriggerPCopyToRemovableMedia returns a pointer to RestrictionTriggerVCopyToRemovableMedia
+func RestrictionTriggerPCopyToRemovableMedia() *RestrictionTrigger {
+ v := RestrictionTriggerVCopyToRemovableMedia
+ return &v
+}
+
+// RestrictionTriggerPScreenCapture returns a pointer to RestrictionTriggerVScreenCapture
+func RestrictionTriggerPScreenCapture() *RestrictionTrigger {
+ v := RestrictionTriggerVScreenCapture
+ return &v
+}
+
+// RestrictionTriggerPPrint returns a pointer to RestrictionTriggerVPrint
+func RestrictionTriggerPPrint() *RestrictionTrigger {
+ v := RestrictionTriggerVPrint
+ return &v
+}
+
+// RestrictionTriggerPCloudEgress returns a pointer to RestrictionTriggerVCloudEgress
+func RestrictionTriggerPCloudEgress() *RestrictionTrigger {
+ v := RestrictionTriggerVCloudEgress
+ return &v
+}
+
+// RestrictionTriggerPUnallowedApps returns a pointer to RestrictionTriggerVUnallowedApps
+func RestrictionTriggerPUnallowedApps() *RestrictionTrigger {
+ v := RestrictionTriggerVUnallowedApps
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResultInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResultInfoModel.go
new file mode 100644
index 00000000..9b34e8f9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResultInfoModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResultInfo undocumented
+type ResultInfo struct {
+ // Object is the base model of ResultInfo
+ Object
+ // Code undocumented
+ Code *int `json:"code,omitempty"`
+ // Subcode undocumented
+ Subcode *int `json:"subcode,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResultantAppStateDetailEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResultantAppStateDetailEnum.go
new file mode 100644
index 00000000..9e37b207
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResultantAppStateDetailEnum.go
@@ -0,0 +1,169 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResultantAppStateDetail undocumented
+type ResultantAppStateDetail int
+
+const (
+ // ResultantAppStateDetailVNoAdditionalDetails undocumented
+ ResultantAppStateDetailVNoAdditionalDetails ResultantAppStateDetail = 0
+ // ResultantAppStateDetailVDependencyFailedToInstall undocumented
+ ResultantAppStateDetailVDependencyFailedToInstall ResultantAppStateDetail = 1
+ // ResultantAppStateDetailVDependencyWithRequirementsNotMet undocumented
+ ResultantAppStateDetailVDependencyWithRequirementsNotMet ResultantAppStateDetail = 2
+ // ResultantAppStateDetailVDependencyPendingReboot undocumented
+ ResultantAppStateDetailVDependencyPendingReboot ResultantAppStateDetail = 3
+ // ResultantAppStateDetailVDependencyWithAutoInstallDisabled undocumented
+ ResultantAppStateDetailVDependencyWithAutoInstallDisabled ResultantAppStateDetail = 4
+ // ResultantAppStateDetailVSeeInstallErrorCode undocumented
+ ResultantAppStateDetailVSeeInstallErrorCode ResultantAppStateDetail = 2000
+ // ResultantAppStateDetailVAutoInstallDisabled undocumented
+ ResultantAppStateDetailVAutoInstallDisabled ResultantAppStateDetail = 3000
+ // ResultantAppStateDetailVSeeUninstallErrorCode undocumented
+ ResultantAppStateDetailVSeeUninstallErrorCode ResultantAppStateDetail = 4000
+ // ResultantAppStateDetailVPendingReboot undocumented
+ ResultantAppStateDetailVPendingReboot ResultantAppStateDetail = 5000
+ // ResultantAppStateDetailVInstallingDependencies undocumented
+ ResultantAppStateDetailVInstallingDependencies ResultantAppStateDetail = 5001
+ // ResultantAppStateDetailVPowerShellScriptRequirementNotMet undocumented
+ ResultantAppStateDetailVPowerShellScriptRequirementNotMet ResultantAppStateDetail = -1013
+ // ResultantAppStateDetailVRegistryRequirementNotMet undocumented
+ ResultantAppStateDetailVRegistryRequirementNotMet ResultantAppStateDetail = -1012
+ // ResultantAppStateDetailVFileSystemRequirementNotMet undocumented
+ ResultantAppStateDetailVFileSystemRequirementNotMet ResultantAppStateDetail = -1011
+ // ResultantAppStateDetailVPlatformNotApplicable undocumented
+ ResultantAppStateDetailVPlatformNotApplicable ResultantAppStateDetail = -1006
+ // ResultantAppStateDetailVMinimumCPUSpeedNotMet undocumented
+ ResultantAppStateDetailVMinimumCPUSpeedNotMet ResultantAppStateDetail = -1005
+ // ResultantAppStateDetailVMinimumLogicalProcessorCountNotMet undocumented
+ ResultantAppStateDetailVMinimumLogicalProcessorCountNotMet ResultantAppStateDetail = -1004
+ // ResultantAppStateDetailVMinimumPhysicalMemoryNotMet undocumented
+ ResultantAppStateDetailVMinimumPhysicalMemoryNotMet ResultantAppStateDetail = -1003
+ // ResultantAppStateDetailVMinimumOsVersionNotMet undocumented
+ ResultantAppStateDetailVMinimumOsVersionNotMet ResultantAppStateDetail = -1002
+ // ResultantAppStateDetailVMinimumDiskSpaceNotMet undocumented
+ ResultantAppStateDetailVMinimumDiskSpaceNotMet ResultantAppStateDetail = -1001
+ // ResultantAppStateDetailVProcessorArchitectureNotApplicable undocumented
+ ResultantAppStateDetailVProcessorArchitectureNotApplicable ResultantAppStateDetail = -1000
+)
+
+// ResultantAppStateDetailPNoAdditionalDetails returns a pointer to ResultantAppStateDetailVNoAdditionalDetails
+func ResultantAppStateDetailPNoAdditionalDetails() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVNoAdditionalDetails
+ return &v
+}
+
+// ResultantAppStateDetailPDependencyFailedToInstall returns a pointer to ResultantAppStateDetailVDependencyFailedToInstall
+func ResultantAppStateDetailPDependencyFailedToInstall() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVDependencyFailedToInstall
+ return &v
+}
+
+// ResultantAppStateDetailPDependencyWithRequirementsNotMet returns a pointer to ResultantAppStateDetailVDependencyWithRequirementsNotMet
+func ResultantAppStateDetailPDependencyWithRequirementsNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVDependencyWithRequirementsNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPDependencyPendingReboot returns a pointer to ResultantAppStateDetailVDependencyPendingReboot
+func ResultantAppStateDetailPDependencyPendingReboot() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVDependencyPendingReboot
+ return &v
+}
+
+// ResultantAppStateDetailPDependencyWithAutoInstallDisabled returns a pointer to ResultantAppStateDetailVDependencyWithAutoInstallDisabled
+func ResultantAppStateDetailPDependencyWithAutoInstallDisabled() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVDependencyWithAutoInstallDisabled
+ return &v
+}
+
+// ResultantAppStateDetailPSeeInstallErrorCode returns a pointer to ResultantAppStateDetailVSeeInstallErrorCode
+func ResultantAppStateDetailPSeeInstallErrorCode() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVSeeInstallErrorCode
+ return &v
+}
+
+// ResultantAppStateDetailPAutoInstallDisabled returns a pointer to ResultantAppStateDetailVAutoInstallDisabled
+func ResultantAppStateDetailPAutoInstallDisabled() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVAutoInstallDisabled
+ return &v
+}
+
+// ResultantAppStateDetailPSeeUninstallErrorCode returns a pointer to ResultantAppStateDetailVSeeUninstallErrorCode
+func ResultantAppStateDetailPSeeUninstallErrorCode() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVSeeUninstallErrorCode
+ return &v
+}
+
+// ResultantAppStateDetailPPendingReboot returns a pointer to ResultantAppStateDetailVPendingReboot
+func ResultantAppStateDetailPPendingReboot() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVPendingReboot
+ return &v
+}
+
+// ResultantAppStateDetailPInstallingDependencies returns a pointer to ResultantAppStateDetailVInstallingDependencies
+func ResultantAppStateDetailPInstallingDependencies() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVInstallingDependencies
+ return &v
+}
+
+// ResultantAppStateDetailPPowerShellScriptRequirementNotMet returns a pointer to ResultantAppStateDetailVPowerShellScriptRequirementNotMet
+func ResultantAppStateDetailPPowerShellScriptRequirementNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVPowerShellScriptRequirementNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPRegistryRequirementNotMet returns a pointer to ResultantAppStateDetailVRegistryRequirementNotMet
+func ResultantAppStateDetailPRegistryRequirementNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVRegistryRequirementNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPFileSystemRequirementNotMet returns a pointer to ResultantAppStateDetailVFileSystemRequirementNotMet
+func ResultantAppStateDetailPFileSystemRequirementNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVFileSystemRequirementNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPPlatformNotApplicable returns a pointer to ResultantAppStateDetailVPlatformNotApplicable
+func ResultantAppStateDetailPPlatformNotApplicable() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVPlatformNotApplicable
+ return &v
+}
+
+// ResultantAppStateDetailPMinimumCPUSpeedNotMet returns a pointer to ResultantAppStateDetailVMinimumCPUSpeedNotMet
+func ResultantAppStateDetailPMinimumCPUSpeedNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVMinimumCPUSpeedNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPMinimumLogicalProcessorCountNotMet returns a pointer to ResultantAppStateDetailVMinimumLogicalProcessorCountNotMet
+func ResultantAppStateDetailPMinimumLogicalProcessorCountNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVMinimumLogicalProcessorCountNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPMinimumPhysicalMemoryNotMet returns a pointer to ResultantAppStateDetailVMinimumPhysicalMemoryNotMet
+func ResultantAppStateDetailPMinimumPhysicalMemoryNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVMinimumPhysicalMemoryNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPMinimumOsVersionNotMet returns a pointer to ResultantAppStateDetailVMinimumOsVersionNotMet
+func ResultantAppStateDetailPMinimumOsVersionNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVMinimumOsVersionNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPMinimumDiskSpaceNotMet returns a pointer to ResultantAppStateDetailVMinimumDiskSpaceNotMet
+func ResultantAppStateDetailPMinimumDiskSpaceNotMet() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVMinimumDiskSpaceNotMet
+ return &v
+}
+
+// ResultantAppStateDetailPProcessorArchitectureNotApplicable returns a pointer to ResultantAppStateDetailVProcessorArchitectureNotApplicable
+func ResultantAppStateDetailPProcessorArchitectureNotApplicable() *ResultantAppStateDetail {
+ v := ResultantAppStateDetailVProcessorArchitectureNotApplicable
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ResultantAppStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ResultantAppStateEnum.go
new file mode 100644
index 00000000..a4dae992
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ResultantAppStateEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResultantAppState undocumented
+type ResultantAppState int
+
+const (
+ // ResultantAppStateVInstalled undocumented
+ ResultantAppStateVInstalled ResultantAppState = 1
+ // ResultantAppStateVFailed undocumented
+ ResultantAppStateVFailed ResultantAppState = 2
+ // ResultantAppStateVNotInstalled undocumented
+ ResultantAppStateVNotInstalled ResultantAppState = 3
+ // ResultantAppStateVUninstallFailed undocumented
+ ResultantAppStateVUninstallFailed ResultantAppState = 4
+ // ResultantAppStateVPendingInstall undocumented
+ ResultantAppStateVPendingInstall ResultantAppState = 5
+ // ResultantAppStateVUnknown undocumented
+ ResultantAppStateVUnknown ResultantAppState = 99
+ // ResultantAppStateVNotApplicable undocumented
+ ResultantAppStateVNotApplicable ResultantAppState = -1
+)
+
+// ResultantAppStatePInstalled returns a pointer to ResultantAppStateVInstalled
+func ResultantAppStatePInstalled() *ResultantAppState {
+ v := ResultantAppStateVInstalled
+ return &v
+}
+
+// ResultantAppStatePFailed returns a pointer to ResultantAppStateVFailed
+func ResultantAppStatePFailed() *ResultantAppState {
+ v := ResultantAppStateVFailed
+ return &v
+}
+
+// ResultantAppStatePNotInstalled returns a pointer to ResultantAppStateVNotInstalled
+func ResultantAppStatePNotInstalled() *ResultantAppState {
+ v := ResultantAppStateVNotInstalled
+ return &v
+}
+
+// ResultantAppStatePUninstallFailed returns a pointer to ResultantAppStateVUninstallFailed
+func ResultantAppStatePUninstallFailed() *ResultantAppState {
+ v := ResultantAppStateVUninstallFailed
+ return &v
+}
+
+// ResultantAppStatePPendingInstall returns a pointer to ResultantAppStateVPendingInstall
+func ResultantAppStatePPendingInstall() *ResultantAppState {
+ v := ResultantAppStateVPendingInstall
+ return &v
+}
+
+// ResultantAppStatePUnknown returns a pointer to ResultantAppStateVUnknown
+func ResultantAppStatePUnknown() *ResultantAppState {
+ v := ResultantAppStateVUnknown
+ return &v
+}
+
+// ResultantAppStatePNotApplicable returns a pointer to ResultantAppStateVNotApplicable
+func ResultantAppStatePNotApplicable() *ResultantAppState {
+ v := ResultantAppStateVNotApplicable
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RevokeAppleVppLicensesActionResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RevokeAppleVppLicensesActionResultModel.go
new file mode 100644
index 00000000..e5fdc888
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RevokeAppleVppLicensesActionResultModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RevokeAppleVppLicensesActionResult undocumented
+type RevokeAppleVppLicensesActionResult struct {
+ // DeviceActionResult is the base model of RevokeAppleVppLicensesActionResult
+ DeviceActionResult
+ // TotalLicensesCount Total number of Apple Vpp licenses associated
+ TotalLicensesCount *int `json:"totalLicensesCount,omitempty"`
+ // FailedLicensesCount Total number of Apple Vpp licenses that failed to revoke
+ FailedLicensesCount *int `json:"failedLicensesCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RgbColorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RgbColorModel.go
new file mode 100644
index 00000000..4f1812b0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RgbColorModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RgbColor undocumented
+type RgbColor struct {
+ // Object is the base model of RgbColor
+ Object
+ // R Red value
+ R *byte `json:"r,omitempty"`
+ // G Green value
+ G *byte `json:"g,omitempty"`
+ // B Blue value
+ B *byte `json:"b,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RiskDetailEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RiskDetailEnum.go
new file mode 100644
index 00000000..06a8d75e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RiskDetailEnum.go
@@ -0,0 +1,105 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RiskDetail undocumented
+type RiskDetail int
+
+const (
+ // RiskDetailVNone undocumented
+ RiskDetailVNone RiskDetail = 0
+ // RiskDetailVAdminGeneratedTemporaryPassword undocumented
+ RiskDetailVAdminGeneratedTemporaryPassword RiskDetail = 1
+ // RiskDetailVUserPerformedSecuredPasswordChange undocumented
+ RiskDetailVUserPerformedSecuredPasswordChange RiskDetail = 2
+ // RiskDetailVUserPerformedSecuredPasswordReset undocumented
+ RiskDetailVUserPerformedSecuredPasswordReset RiskDetail = 3
+ // RiskDetailVAdminConfirmedSigninSafe undocumented
+ RiskDetailVAdminConfirmedSigninSafe RiskDetail = 4
+ // RiskDetailVAiConfirmedSigninSafe undocumented
+ RiskDetailVAiConfirmedSigninSafe RiskDetail = 5
+ // RiskDetailVUserPassedMFADrivenByRiskBasedPolicy undocumented
+ RiskDetailVUserPassedMFADrivenByRiskBasedPolicy RiskDetail = 6
+ // RiskDetailVAdminDismissedAllRiskForUser undocumented
+ RiskDetailVAdminDismissedAllRiskForUser RiskDetail = 7
+ // RiskDetailVAdminConfirmedSigninCompromised undocumented
+ RiskDetailVAdminConfirmedSigninCompromised RiskDetail = 8
+ // RiskDetailVHidden undocumented
+ RiskDetailVHidden RiskDetail = 9
+ // RiskDetailVAdminConfirmedUserCompromised undocumented
+ RiskDetailVAdminConfirmedUserCompromised RiskDetail = 10
+ // RiskDetailVUnknownFutureValue undocumented
+ RiskDetailVUnknownFutureValue RiskDetail = 11
+)
+
+// RiskDetailPNone returns a pointer to RiskDetailVNone
+func RiskDetailPNone() *RiskDetail {
+ v := RiskDetailVNone
+ return &v
+}
+
+// RiskDetailPAdminGeneratedTemporaryPassword returns a pointer to RiskDetailVAdminGeneratedTemporaryPassword
+func RiskDetailPAdminGeneratedTemporaryPassword() *RiskDetail {
+ v := RiskDetailVAdminGeneratedTemporaryPassword
+ return &v
+}
+
+// RiskDetailPUserPerformedSecuredPasswordChange returns a pointer to RiskDetailVUserPerformedSecuredPasswordChange
+func RiskDetailPUserPerformedSecuredPasswordChange() *RiskDetail {
+ v := RiskDetailVUserPerformedSecuredPasswordChange
+ return &v
+}
+
+// RiskDetailPUserPerformedSecuredPasswordReset returns a pointer to RiskDetailVUserPerformedSecuredPasswordReset
+func RiskDetailPUserPerformedSecuredPasswordReset() *RiskDetail {
+ v := RiskDetailVUserPerformedSecuredPasswordReset
+ return &v
+}
+
+// RiskDetailPAdminConfirmedSigninSafe returns a pointer to RiskDetailVAdminConfirmedSigninSafe
+func RiskDetailPAdminConfirmedSigninSafe() *RiskDetail {
+ v := RiskDetailVAdminConfirmedSigninSafe
+ return &v
+}
+
+// RiskDetailPAiConfirmedSigninSafe returns a pointer to RiskDetailVAiConfirmedSigninSafe
+func RiskDetailPAiConfirmedSigninSafe() *RiskDetail {
+ v := RiskDetailVAiConfirmedSigninSafe
+ return &v
+}
+
+// RiskDetailPUserPassedMFADrivenByRiskBasedPolicy returns a pointer to RiskDetailVUserPassedMFADrivenByRiskBasedPolicy
+func RiskDetailPUserPassedMFADrivenByRiskBasedPolicy() *RiskDetail {
+ v := RiskDetailVUserPassedMFADrivenByRiskBasedPolicy
+ return &v
+}
+
+// RiskDetailPAdminDismissedAllRiskForUser returns a pointer to RiskDetailVAdminDismissedAllRiskForUser
+func RiskDetailPAdminDismissedAllRiskForUser() *RiskDetail {
+ v := RiskDetailVAdminDismissedAllRiskForUser
+ return &v
+}
+
+// RiskDetailPAdminConfirmedSigninCompromised returns a pointer to RiskDetailVAdminConfirmedSigninCompromised
+func RiskDetailPAdminConfirmedSigninCompromised() *RiskDetail {
+ v := RiskDetailVAdminConfirmedSigninCompromised
+ return &v
+}
+
+// RiskDetailPHidden returns a pointer to RiskDetailVHidden
+func RiskDetailPHidden() *RiskDetail {
+ v := RiskDetailVHidden
+ return &v
+}
+
+// RiskDetailPAdminConfirmedUserCompromised returns a pointer to RiskDetailVAdminConfirmedUserCompromised
+func RiskDetailPAdminConfirmedUserCompromised() *RiskDetail {
+ v := RiskDetailVAdminConfirmedUserCompromised
+ return &v
+}
+
+// RiskDetailPUnknownFutureValue returns a pointer to RiskDetailVUnknownFutureValue
+func RiskDetailPUnknownFutureValue() *RiskDetail {
+ v := RiskDetailVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RiskDetectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RiskDetectionModel.go
new file mode 100644
index 00000000..cdf1e979
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RiskDetectionModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// RiskDetection undocumented
+type RiskDetection struct {
+ // Entity is the base model of RiskDetection
+ Entity
+ // RequestID undocumented
+ RequestID *string `json:"requestId,omitempty"`
+ // CorrelationID undocumented
+ CorrelationID *string `json:"correlationId,omitempty"`
+ // RiskType undocumented
+ RiskType *RiskEventType `json:"riskType,omitempty"`
+ // RiskState undocumented
+ RiskState *RiskState `json:"riskState,omitempty"`
+ // RiskLevel undocumented
+ RiskLevel *RiskLevel `json:"riskLevel,omitempty"`
+ // RiskDetail undocumented
+ RiskDetail *RiskDetail `json:"riskDetail,omitempty"`
+ // Source undocumented
+ Source *string `json:"source,omitempty"`
+ // DetectionTimingType undocumented
+ DetectionTimingType *RiskDetectionTimingType `json:"detectionTimingType,omitempty"`
+ // Activity undocumented
+ Activity *ActivityType `json:"activity,omitempty"`
+ // TokenIssuerType undocumented
+ TokenIssuerType *TokenIssuerType `json:"tokenIssuerType,omitempty"`
+ // IPAddress undocumented
+ IPAddress *string `json:"ipAddress,omitempty"`
+ // Location undocumented
+ Location *SignInLocation `json:"location,omitempty"`
+ // ActivityDateTime undocumented
+ ActivityDateTime *time.Time `json:"activityDateTime,omitempty"`
+ // DetectedDateTime undocumented
+ DetectedDateTime *time.Time `json:"detectedDateTime,omitempty"`
+ // LastUpdatedDateTime undocumented
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // UserDisplayName undocumented
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // AdditionalInfo undocumented
+ AdditionalInfo *string `json:"additionalInfo,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RiskDetectionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RiskDetectionRequest.go
new file mode 100644
index 00000000..1fe8f7e1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RiskDetectionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RiskDetectionRequestBuilder is request builder for RiskDetection
+type RiskDetectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RiskDetectionRequest
+func (b *RiskDetectionRequestBuilder) Request() *RiskDetectionRequest {
+ return &RiskDetectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RiskDetectionRequest is request for RiskDetection
+type RiskDetectionRequest struct{ BaseRequest }
+
+// Get performs GET request for RiskDetection
+func (r *RiskDetectionRequest) Get(ctx context.Context) (resObj *RiskDetection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RiskDetection
+func (r *RiskDetectionRequest) Update(ctx context.Context, reqObj *RiskDetection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RiskDetection
+func (r *RiskDetectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RiskDetectionTimingTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RiskDetectionTimingTypeEnum.go
new file mode 100644
index 00000000..df08d43e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RiskDetectionTimingTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RiskDetectionTimingType undocumented
+type RiskDetectionTimingType int
+
+const (
+ // RiskDetectionTimingTypeVNotDefined undocumented
+ RiskDetectionTimingTypeVNotDefined RiskDetectionTimingType = 0
+ // RiskDetectionTimingTypeVRealtime undocumented
+ RiskDetectionTimingTypeVRealtime RiskDetectionTimingType = 1
+ // RiskDetectionTimingTypeVNearRealtime undocumented
+ RiskDetectionTimingTypeVNearRealtime RiskDetectionTimingType = 2
+ // RiskDetectionTimingTypeVOffline undocumented
+ RiskDetectionTimingTypeVOffline RiskDetectionTimingType = 3
+ // RiskDetectionTimingTypeVUnknownFutureValue undocumented
+ RiskDetectionTimingTypeVUnknownFutureValue RiskDetectionTimingType = 4
+)
+
+// RiskDetectionTimingTypePNotDefined returns a pointer to RiskDetectionTimingTypeVNotDefined
+func RiskDetectionTimingTypePNotDefined() *RiskDetectionTimingType {
+ v := RiskDetectionTimingTypeVNotDefined
+ return &v
+}
+
+// RiskDetectionTimingTypePRealtime returns a pointer to RiskDetectionTimingTypeVRealtime
+func RiskDetectionTimingTypePRealtime() *RiskDetectionTimingType {
+ v := RiskDetectionTimingTypeVRealtime
+ return &v
+}
+
+// RiskDetectionTimingTypePNearRealtime returns a pointer to RiskDetectionTimingTypeVNearRealtime
+func RiskDetectionTimingTypePNearRealtime() *RiskDetectionTimingType {
+ v := RiskDetectionTimingTypeVNearRealtime
+ return &v
+}
+
+// RiskDetectionTimingTypePOffline returns a pointer to RiskDetectionTimingTypeVOffline
+func RiskDetectionTimingTypePOffline() *RiskDetectionTimingType {
+ v := RiskDetectionTimingTypeVOffline
+ return &v
+}
+
+// RiskDetectionTimingTypePUnknownFutureValue returns a pointer to RiskDetectionTimingTypeVUnknownFutureValue
+func RiskDetectionTimingTypePUnknownFutureValue() *RiskDetectionTimingType {
+ v := RiskDetectionTimingTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RiskEventStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RiskEventStatusEnum.go
new file mode 100644
index 00000000..1ce8f8ac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RiskEventStatusEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RiskEventStatus undocumented
+type RiskEventStatus int
+
+const (
+ // RiskEventStatusVActive undocumented
+ RiskEventStatusVActive RiskEventStatus = 0
+ // RiskEventStatusVRemediated undocumented
+ RiskEventStatusVRemediated RiskEventStatus = 1
+ // RiskEventStatusVDismissedAsFixed undocumented
+ RiskEventStatusVDismissedAsFixed RiskEventStatus = 2
+ // RiskEventStatusVDismissedAsFalsePositive undocumented
+ RiskEventStatusVDismissedAsFalsePositive RiskEventStatus = 3
+ // RiskEventStatusVDismissedAsIgnore undocumented
+ RiskEventStatusVDismissedAsIgnore RiskEventStatus = 4
+ // RiskEventStatusVLoginBlocked undocumented
+ RiskEventStatusVLoginBlocked RiskEventStatus = 5
+ // RiskEventStatusVClosedMFAAuto undocumented
+ RiskEventStatusVClosedMFAAuto RiskEventStatus = 6
+ // RiskEventStatusVClosedMultipleReasons undocumented
+ RiskEventStatusVClosedMultipleReasons RiskEventStatus = 7
+)
+
+// RiskEventStatusPActive returns a pointer to RiskEventStatusVActive
+func RiskEventStatusPActive() *RiskEventStatus {
+ v := RiskEventStatusVActive
+ return &v
+}
+
+// RiskEventStatusPRemediated returns a pointer to RiskEventStatusVRemediated
+func RiskEventStatusPRemediated() *RiskEventStatus {
+ v := RiskEventStatusVRemediated
+ return &v
+}
+
+// RiskEventStatusPDismissedAsFixed returns a pointer to RiskEventStatusVDismissedAsFixed
+func RiskEventStatusPDismissedAsFixed() *RiskEventStatus {
+ v := RiskEventStatusVDismissedAsFixed
+ return &v
+}
+
+// RiskEventStatusPDismissedAsFalsePositive returns a pointer to RiskEventStatusVDismissedAsFalsePositive
+func RiskEventStatusPDismissedAsFalsePositive() *RiskEventStatus {
+ v := RiskEventStatusVDismissedAsFalsePositive
+ return &v
+}
+
+// RiskEventStatusPDismissedAsIgnore returns a pointer to RiskEventStatusVDismissedAsIgnore
+func RiskEventStatusPDismissedAsIgnore() *RiskEventStatus {
+ v := RiskEventStatusVDismissedAsIgnore
+ return &v
+}
+
+// RiskEventStatusPLoginBlocked returns a pointer to RiskEventStatusVLoginBlocked
+func RiskEventStatusPLoginBlocked() *RiskEventStatus {
+ v := RiskEventStatusVLoginBlocked
+ return &v
+}
+
+// RiskEventStatusPClosedMFAAuto returns a pointer to RiskEventStatusVClosedMFAAuto
+func RiskEventStatusPClosedMFAAuto() *RiskEventStatus {
+ v := RiskEventStatusVClosedMFAAuto
+ return &v
+}
+
+// RiskEventStatusPClosedMultipleReasons returns a pointer to RiskEventStatusVClosedMultipleReasons
+func RiskEventStatusPClosedMultipleReasons() *RiskEventStatus {
+ v := RiskEventStatusVClosedMultipleReasons
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RiskEventTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RiskEventTypeEnum.go
new file mode 100644
index 00000000..658c818b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RiskEventTypeEnum.go
@@ -0,0 +1,129 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RiskEventType undocumented
+type RiskEventType int
+
+const (
+ // RiskEventTypeVUnlikelyTravel undocumented
+ RiskEventTypeVUnlikelyTravel RiskEventType = 0
+ // RiskEventTypeVAnonymizedIPAddress undocumented
+ RiskEventTypeVAnonymizedIPAddress RiskEventType = 1
+ // RiskEventTypeVMaliciousIPAddress undocumented
+ RiskEventTypeVMaliciousIPAddress RiskEventType = 2
+ // RiskEventTypeVUnfamiliarFeatures undocumented
+ RiskEventTypeVUnfamiliarFeatures RiskEventType = 3
+ // RiskEventTypeVMalwareInfectedIPAddress undocumented
+ RiskEventTypeVMalwareInfectedIPAddress RiskEventType = 4
+ // RiskEventTypeVSuspiciousIPAddress undocumented
+ RiskEventTypeVSuspiciousIPAddress RiskEventType = 5
+ // RiskEventTypeVLeakedCredentials undocumented
+ RiskEventTypeVLeakedCredentials RiskEventType = 6
+ // RiskEventTypeVInvestigationsThreatIntelligence undocumented
+ RiskEventTypeVInvestigationsThreatIntelligence RiskEventType = 7
+ // RiskEventTypeVGeneric undocumented
+ RiskEventTypeVGeneric RiskEventType = 8
+ // RiskEventTypeVAdminConfirmedUserCompromised undocumented
+ RiskEventTypeVAdminConfirmedUserCompromised RiskEventType = 9
+ // RiskEventTypeVMcasImpossibleTravel undocumented
+ RiskEventTypeVMcasImpossibleTravel RiskEventType = 10
+ // RiskEventTypeVMcasSuspiciousInboxManipulationRules undocumented
+ RiskEventTypeVMcasSuspiciousInboxManipulationRules RiskEventType = 11
+ // RiskEventTypeVInvestigationsThreatIntelligenceSigninLinked undocumented
+ RiskEventTypeVInvestigationsThreatIntelligenceSigninLinked RiskEventType = 12
+ // RiskEventTypeVMaliciousIPAddressValidCredentialsBlockedIP undocumented
+ RiskEventTypeVMaliciousIPAddressValidCredentialsBlockedIP RiskEventType = 13
+ // RiskEventTypeVUnknownFutureValue undocumented
+ RiskEventTypeVUnknownFutureValue RiskEventType = 14
+)
+
+// RiskEventTypePUnlikelyTravel returns a pointer to RiskEventTypeVUnlikelyTravel
+func RiskEventTypePUnlikelyTravel() *RiskEventType {
+ v := RiskEventTypeVUnlikelyTravel
+ return &v
+}
+
+// RiskEventTypePAnonymizedIPAddress returns a pointer to RiskEventTypeVAnonymizedIPAddress
+func RiskEventTypePAnonymizedIPAddress() *RiskEventType {
+ v := RiskEventTypeVAnonymizedIPAddress
+ return &v
+}
+
+// RiskEventTypePMaliciousIPAddress returns a pointer to RiskEventTypeVMaliciousIPAddress
+func RiskEventTypePMaliciousIPAddress() *RiskEventType {
+ v := RiskEventTypeVMaliciousIPAddress
+ return &v
+}
+
+// RiskEventTypePUnfamiliarFeatures returns a pointer to RiskEventTypeVUnfamiliarFeatures
+func RiskEventTypePUnfamiliarFeatures() *RiskEventType {
+ v := RiskEventTypeVUnfamiliarFeatures
+ return &v
+}
+
+// RiskEventTypePMalwareInfectedIPAddress returns a pointer to RiskEventTypeVMalwareInfectedIPAddress
+func RiskEventTypePMalwareInfectedIPAddress() *RiskEventType {
+ v := RiskEventTypeVMalwareInfectedIPAddress
+ return &v
+}
+
+// RiskEventTypePSuspiciousIPAddress returns a pointer to RiskEventTypeVSuspiciousIPAddress
+func RiskEventTypePSuspiciousIPAddress() *RiskEventType {
+ v := RiskEventTypeVSuspiciousIPAddress
+ return &v
+}
+
+// RiskEventTypePLeakedCredentials returns a pointer to RiskEventTypeVLeakedCredentials
+func RiskEventTypePLeakedCredentials() *RiskEventType {
+ v := RiskEventTypeVLeakedCredentials
+ return &v
+}
+
+// RiskEventTypePInvestigationsThreatIntelligence returns a pointer to RiskEventTypeVInvestigationsThreatIntelligence
+func RiskEventTypePInvestigationsThreatIntelligence() *RiskEventType {
+ v := RiskEventTypeVInvestigationsThreatIntelligence
+ return &v
+}
+
+// RiskEventTypePGeneric returns a pointer to RiskEventTypeVGeneric
+func RiskEventTypePGeneric() *RiskEventType {
+ v := RiskEventTypeVGeneric
+ return &v
+}
+
+// RiskEventTypePAdminConfirmedUserCompromised returns a pointer to RiskEventTypeVAdminConfirmedUserCompromised
+func RiskEventTypePAdminConfirmedUserCompromised() *RiskEventType {
+ v := RiskEventTypeVAdminConfirmedUserCompromised
+ return &v
+}
+
+// RiskEventTypePMcasImpossibleTravel returns a pointer to RiskEventTypeVMcasImpossibleTravel
+func RiskEventTypePMcasImpossibleTravel() *RiskEventType {
+ v := RiskEventTypeVMcasImpossibleTravel
+ return &v
+}
+
+// RiskEventTypePMcasSuspiciousInboxManipulationRules returns a pointer to RiskEventTypeVMcasSuspiciousInboxManipulationRules
+func RiskEventTypePMcasSuspiciousInboxManipulationRules() *RiskEventType {
+ v := RiskEventTypeVMcasSuspiciousInboxManipulationRules
+ return &v
+}
+
+// RiskEventTypePInvestigationsThreatIntelligenceSigninLinked returns a pointer to RiskEventTypeVInvestigationsThreatIntelligenceSigninLinked
+func RiskEventTypePInvestigationsThreatIntelligenceSigninLinked() *RiskEventType {
+ v := RiskEventTypeVInvestigationsThreatIntelligenceSigninLinked
+ return &v
+}
+
+// RiskEventTypePMaliciousIPAddressValidCredentialsBlockedIP returns a pointer to RiskEventTypeVMaliciousIPAddressValidCredentialsBlockedIP
+func RiskEventTypePMaliciousIPAddressValidCredentialsBlockedIP() *RiskEventType {
+ v := RiskEventTypeVMaliciousIPAddressValidCredentialsBlockedIP
+ return &v
+}
+
+// RiskEventTypePUnknownFutureValue returns a pointer to RiskEventTypeVUnknownFutureValue
+func RiskEventTypePUnknownFutureValue() *RiskEventType {
+ v := RiskEventTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RiskLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RiskLevelEnum.go
new file mode 100644
index 00000000..30456d93
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RiskLevelEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RiskLevel undocumented
+type RiskLevel int
+
+const (
+ // RiskLevelVLow undocumented
+ RiskLevelVLow RiskLevel = 0
+ // RiskLevelVMedium undocumented
+ RiskLevelVMedium RiskLevel = 1
+ // RiskLevelVHigh undocumented
+ RiskLevelVHigh RiskLevel = 2
+ // RiskLevelVHidden undocumented
+ RiskLevelVHidden RiskLevel = 3
+ // RiskLevelVNone undocumented
+ RiskLevelVNone RiskLevel = 4
+ // RiskLevelVUnknownFutureValue undocumented
+ RiskLevelVUnknownFutureValue RiskLevel = 5
+)
+
+// RiskLevelPLow returns a pointer to RiskLevelVLow
+func RiskLevelPLow() *RiskLevel {
+ v := RiskLevelVLow
+ return &v
+}
+
+// RiskLevelPMedium returns a pointer to RiskLevelVMedium
+func RiskLevelPMedium() *RiskLevel {
+ v := RiskLevelVMedium
+ return &v
+}
+
+// RiskLevelPHigh returns a pointer to RiskLevelVHigh
+func RiskLevelPHigh() *RiskLevel {
+ v := RiskLevelVHigh
+ return &v
+}
+
+// RiskLevelPHidden returns a pointer to RiskLevelVHidden
+func RiskLevelPHidden() *RiskLevel {
+ v := RiskLevelVHidden
+ return &v
+}
+
+// RiskLevelPNone returns a pointer to RiskLevelVNone
+func RiskLevelPNone() *RiskLevel {
+ v := RiskLevelVNone
+ return &v
+}
+
+// RiskLevelPUnknownFutureValue returns a pointer to RiskLevelVUnknownFutureValue
+func RiskLevelPUnknownFutureValue() *RiskLevel {
+ v := RiskLevelVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RiskStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RiskStateEnum.go
new file mode 100644
index 00000000..bbfbfda5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RiskStateEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RiskState undocumented
+type RiskState int
+
+const (
+ // RiskStateVNone undocumented
+ RiskStateVNone RiskState = 0
+ // RiskStateVConfirmedSafe undocumented
+ RiskStateVConfirmedSafe RiskState = 1
+ // RiskStateVRemediated undocumented
+ RiskStateVRemediated RiskState = 2
+ // RiskStateVDismissed undocumented
+ RiskStateVDismissed RiskState = 3
+ // RiskStateVAtRisk undocumented
+ RiskStateVAtRisk RiskState = 4
+ // RiskStateVConfirmedCompromised undocumented
+ RiskStateVConfirmedCompromised RiskState = 5
+ // RiskStateVUnknownFutureValue undocumented
+ RiskStateVUnknownFutureValue RiskState = 6
+)
+
+// RiskStatePNone returns a pointer to RiskStateVNone
+func RiskStatePNone() *RiskState {
+ v := RiskStateVNone
+ return &v
+}
+
+// RiskStatePConfirmedSafe returns a pointer to RiskStateVConfirmedSafe
+func RiskStatePConfirmedSafe() *RiskState {
+ v := RiskStateVConfirmedSafe
+ return &v
+}
+
+// RiskStatePRemediated returns a pointer to RiskStateVRemediated
+func RiskStatePRemediated() *RiskState {
+ v := RiskStateVRemediated
+ return &v
+}
+
+// RiskStatePDismissed returns a pointer to RiskStateVDismissed
+func RiskStatePDismissed() *RiskState {
+ v := RiskStateVDismissed
+ return &v
+}
+
+// RiskStatePAtRisk returns a pointer to RiskStateVAtRisk
+func RiskStatePAtRisk() *RiskState {
+ v := RiskStateVAtRisk
+ return &v
+}
+
+// RiskStatePConfirmedCompromised returns a pointer to RiskStateVConfirmedCompromised
+func RiskStatePConfirmedCompromised() *RiskState {
+ v := RiskStateVConfirmedCompromised
+ return &v
+}
+
+// RiskStatePUnknownFutureValue returns a pointer to RiskStateVUnknownFutureValue
+func RiskStatePUnknownFutureValue() *RiskState {
+ v := RiskStateVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RiskUserActivityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RiskUserActivityModel.go
new file mode 100644
index 00000000..bb3a3d0e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RiskUserActivityModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RiskUserActivity undocumented
+type RiskUserActivity struct {
+ // Object is the base model of RiskUserActivity
+ Object
+ // EventTypes undocumented
+ EventTypes []RiskEventType `json:"eventTypes,omitempty"`
+ // Detail undocumented
+ Detail *RiskDetail `json:"detail,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RiskyUserAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/RiskyUserAction.go
new file mode 100644
index 00000000..e67694ac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RiskyUserAction.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RiskyUserCollectionDismissRequestParameter undocumented
+type RiskyUserCollectionDismissRequestParameter struct {
+ // UserIDs undocumented
+ UserIDs []string `json:"userIds,omitempty"`
+}
+
+// RiskyUserCollectionConfirmCompromisedRequestParameter undocumented
+type RiskyUserCollectionConfirmCompromisedRequestParameter struct {
+ // UserIDs undocumented
+ UserIDs []string `json:"userIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RiskyUserHistoryItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RiskyUserHistoryItemModel.go
new file mode 100644
index 00000000..c5c5e716
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RiskyUserHistoryItemModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RiskyUserHistoryItem undocumented
+type RiskyUserHistoryItem struct {
+ // RiskyUser is the base model of RiskyUserHistoryItem
+ RiskyUser
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // InitiatedBy undocumented
+ InitiatedBy *string `json:"initiatedBy,omitempty"`
+ // Activity undocumented
+ Activity *RiskUserActivity `json:"activity,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RiskyUserHistoryItemRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RiskyUserHistoryItemRequest.go
new file mode 100644
index 00000000..cb2bfefa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RiskyUserHistoryItemRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RiskyUserHistoryItemRequestBuilder is request builder for RiskyUserHistoryItem
+type RiskyUserHistoryItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RiskyUserHistoryItemRequest
+func (b *RiskyUserHistoryItemRequestBuilder) Request() *RiskyUserHistoryItemRequest {
+ return &RiskyUserHistoryItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RiskyUserHistoryItemRequest is request for RiskyUserHistoryItem
+type RiskyUserHistoryItemRequest struct{ BaseRequest }
+
+// Get performs GET request for RiskyUserHistoryItem
+func (r *RiskyUserHistoryItemRequest) Get(ctx context.Context) (resObj *RiskyUserHistoryItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RiskyUserHistoryItem
+func (r *RiskyUserHistoryItemRequest) Update(ctx context.Context, reqObj *RiskyUserHistoryItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RiskyUserHistoryItem
+func (r *RiskyUserHistoryItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RiskyUserModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RiskyUserModel.go
new file mode 100644
index 00000000..42ee78e7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RiskyUserModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// RiskyUser undocumented
+type RiskyUser struct {
+ // Entity is the base model of RiskyUser
+ Entity
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // IsGuest undocumented
+ IsGuest *bool `json:"isGuest,omitempty"`
+ // IsProcessing undocumented
+ IsProcessing *bool `json:"isProcessing,omitempty"`
+ // RiskLastUpdatedDateTime undocumented
+ RiskLastUpdatedDateTime *time.Time `json:"riskLastUpdatedDateTime,omitempty"`
+ // RiskLevel undocumented
+ RiskLevel *RiskLevel `json:"riskLevel,omitempty"`
+ // RiskState undocumented
+ RiskState *RiskState `json:"riskState,omitempty"`
+ // RiskDetail undocumented
+ RiskDetail *RiskDetail `json:"riskDetail,omitempty"`
+ // UserDisplayName undocumented
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // History undocumented
+ History []RiskyUserHistoryItem `json:"history,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RiskyUserRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RiskyUserRequest.go
new file mode 100644
index 00000000..6e873d17
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RiskyUserRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// RiskyUserRequestBuilder is request builder for RiskyUser
+type RiskyUserRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RiskyUserRequest
+func (b *RiskyUserRequestBuilder) Request() *RiskyUserRequest {
+ return &RiskyUserRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RiskyUserRequest is request for RiskyUser
+type RiskyUserRequest struct{ BaseRequest }
+
+// Get performs GET request for RiskyUser
+func (r *RiskyUserRequest) Get(ctx context.Context) (resObj *RiskyUser, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RiskyUser
+func (r *RiskyUserRequest) Update(ctx context.Context, reqObj *RiskyUser) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RiskyUser
+func (r *RiskyUserRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// History returns request builder for RiskyUserHistoryItem collection
+func (b *RiskyUserRequestBuilder) History() *RiskyUserHistoryCollectionRequestBuilder {
+ bb := &RiskyUserHistoryCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/history"
+ return bb
+}
+
+// RiskyUserHistoryCollectionRequestBuilder is request builder for RiskyUserHistoryItem collection
+type RiskyUserHistoryCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RiskyUserHistoryItem collection
+func (b *RiskyUserHistoryCollectionRequestBuilder) Request() *RiskyUserHistoryCollectionRequest {
+ return &RiskyUserHistoryCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RiskyUserHistoryItem item
+func (b *RiskyUserHistoryCollectionRequestBuilder) ID(id string) *RiskyUserHistoryItemRequestBuilder {
+ bb := &RiskyUserHistoryItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// RiskyUserHistoryCollectionRequest is request for RiskyUserHistoryItem collection
+type RiskyUserHistoryCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RiskyUserHistoryItem collection
+func (r *RiskyUserHistoryCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]RiskyUserHistoryItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RiskyUserHistoryItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RiskyUserHistoryItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RiskyUserHistoryItem collection
+func (r *RiskyUserHistoryCollectionRequest) Get(ctx context.Context) ([]RiskyUserHistoryItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for RiskyUserHistoryItem collection
+func (r *RiskyUserHistoryCollectionRequest) Add(ctx context.Context, reqObj *RiskyUserHistoryItem) (resObj *RiskyUserHistoryItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoleAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoleAssignmentModel.go
new file mode 100644
index 00000000..af90ba07
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoleAssignmentModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoleAssignment The Role Assignment resource. Role assignments tie together a role definition with members and scopes. There can be one or more role assignments per role. This applies to custom and built-in roles.
+type RoleAssignment struct {
+ // Entity is the base model of RoleAssignment
+ Entity
+ // DisplayName The display or friendly name of the role Assignment.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of the Role Assignment.
+ Description *string `json:"description,omitempty"`
+ // ScopeMembers List of ids of role scope member security groups. These are IDs from Azure Active Directory.
+ ScopeMembers []string `json:"scopeMembers,omitempty"`
+ // ScopeType Specifies the type of scope for a Role Assignment. Default type 'ResourceScope' allows assignment of ResourceScopes. For 'AllDevices', 'AllLicensedUsers', and 'AllDevicesAndLicensedUsers', the ResourceScopes property should be left empty.
+ ScopeType *RoleAssignmentScopeType `json:"scopeType,omitempty"`
+ // ResourceScopes List of ids of role scope member security groups. These are IDs from Azure Active Directory.
+ ResourceScopes []string `json:"resourceScopes,omitempty"`
+ // RoleDefinition undocumented
+ RoleDefinition *RoleDefinition `json:"roleDefinition,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoleAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoleAssignmentRequest.go
new file mode 100644
index 00000000..62f0949b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoleAssignmentRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RoleAssignmentRequestBuilder is request builder for RoleAssignment
+type RoleAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RoleAssignmentRequest
+func (b *RoleAssignmentRequestBuilder) Request() *RoleAssignmentRequest {
+ return &RoleAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RoleAssignmentRequest is request for RoleAssignment
+type RoleAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for RoleAssignment
+func (r *RoleAssignmentRequest) Get(ctx context.Context) (resObj *RoleAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RoleAssignment
+func (r *RoleAssignmentRequest) Update(ctx context.Context, reqObj *RoleAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RoleAssignment
+func (r *RoleAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RoleDefinition is navigation property
+func (b *RoleAssignmentRequestBuilder) RoleDefinition() *RoleDefinitionRequestBuilder {
+ bb := &RoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinition"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoleAssignmentScopeTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoleAssignmentScopeTypeEnum.go
new file mode 100644
index 00000000..63f3ca62
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoleAssignmentScopeTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoleAssignmentScopeType undocumented
+type RoleAssignmentScopeType int
+
+const (
+ // RoleAssignmentScopeTypeVResourceScope undocumented
+ RoleAssignmentScopeTypeVResourceScope RoleAssignmentScopeType = 0
+ // RoleAssignmentScopeTypeVAllDevices undocumented
+ RoleAssignmentScopeTypeVAllDevices RoleAssignmentScopeType = 1
+ // RoleAssignmentScopeTypeVAllLicensedUsers undocumented
+ RoleAssignmentScopeTypeVAllLicensedUsers RoleAssignmentScopeType = 2
+ // RoleAssignmentScopeTypeVAllDevicesAndLicensedUsers undocumented
+ RoleAssignmentScopeTypeVAllDevicesAndLicensedUsers RoleAssignmentScopeType = 3
+)
+
+// RoleAssignmentScopeTypePResourceScope returns a pointer to RoleAssignmentScopeTypeVResourceScope
+func RoleAssignmentScopeTypePResourceScope() *RoleAssignmentScopeType {
+ v := RoleAssignmentScopeTypeVResourceScope
+ return &v
+}
+
+// RoleAssignmentScopeTypePAllDevices returns a pointer to RoleAssignmentScopeTypeVAllDevices
+func RoleAssignmentScopeTypePAllDevices() *RoleAssignmentScopeType {
+ v := RoleAssignmentScopeTypeVAllDevices
+ return &v
+}
+
+// RoleAssignmentScopeTypePAllLicensedUsers returns a pointer to RoleAssignmentScopeTypeVAllLicensedUsers
+func RoleAssignmentScopeTypePAllLicensedUsers() *RoleAssignmentScopeType {
+ v := RoleAssignmentScopeTypeVAllLicensedUsers
+ return &v
+}
+
+// RoleAssignmentScopeTypePAllDevicesAndLicensedUsers returns a pointer to RoleAssignmentScopeTypeVAllDevicesAndLicensedUsers
+func RoleAssignmentScopeTypePAllDevicesAndLicensedUsers() *RoleAssignmentScopeType {
+ v := RoleAssignmentScopeTypeVAllDevicesAndLicensedUsers
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoleDefinitionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoleDefinitionModel.go
new file mode 100644
index 00000000..203794d4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoleDefinitionModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoleDefinition The Role Definition resource. The role definition is the foundation of role based access in Intune. The role combines an Intune resource such as a Mobile App and associated role permissions such as Create or Read for the resource. There are two types of roles, built-in and custom. Built-in roles cannot be modified. Both built-in roles and custom roles must have assignments to be enforced. Create custom roles if you want to define a role that allows any of the available resources and role permissions to be combined into a single role.
+type RoleDefinition struct {
+ // Entity is the base model of RoleDefinition
+ Entity
+ // DisplayName Display Name of the Role definition.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of the Role definition.
+ Description *string `json:"description,omitempty"`
+ // Permissions List of Role Permissions this role is allowed to perform. These must match the actionName that is defined as part of the rolePermission.
+ Permissions []RolePermission `json:"permissions,omitempty"`
+ // RolePermissions List of Role Permissions this role is allowed to perform. These must match the actionName that is defined as part of the rolePermission.
+ RolePermissions []RolePermission `json:"rolePermissions,omitempty"`
+ // IsBuiltInRoleDefinition Type of Role. Set to True if it is built-in, or set to False if it is a custom role definition.
+ IsBuiltInRoleDefinition *bool `json:"isBuiltInRoleDefinition,omitempty"`
+ // IsBuiltIn Type of Role. Set to True if it is built-in, or set to False if it is a custom role definition.
+ IsBuiltIn *bool `json:"isBuiltIn,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // RoleAssignments undocumented
+ RoleAssignments []RoleAssignment `json:"roleAssignments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoleDefinitionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoleDefinitionRequest.go
new file mode 100644
index 00000000..a2bfd577
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoleDefinitionRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// RoleDefinitionRequestBuilder is request builder for RoleDefinition
+type RoleDefinitionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RoleDefinitionRequest
+func (b *RoleDefinitionRequestBuilder) Request() *RoleDefinitionRequest {
+ return &RoleDefinitionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RoleDefinitionRequest is request for RoleDefinition
+type RoleDefinitionRequest struct{ BaseRequest }
+
+// Get performs GET request for RoleDefinition
+func (r *RoleDefinitionRequest) Get(ctx context.Context) (resObj *RoleDefinition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RoleDefinition
+func (r *RoleDefinitionRequest) Update(ctx context.Context, reqObj *RoleDefinition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RoleDefinition
+func (r *RoleDefinitionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RoleAssignments returns request builder for RoleAssignment collection
+func (b *RoleDefinitionRequestBuilder) RoleAssignments() *RoleDefinitionRoleAssignmentsCollectionRequestBuilder {
+ bb := &RoleDefinitionRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleAssignments"
+ return bb
+}
+
+// RoleDefinitionRoleAssignmentsCollectionRequestBuilder is request builder for RoleAssignment collection
+type RoleDefinitionRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RoleAssignment collection
+func (b *RoleDefinitionRoleAssignmentsCollectionRequestBuilder) Request() *RoleDefinitionRoleAssignmentsCollectionRequest {
+ return &RoleDefinitionRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RoleAssignment item
+func (b *RoleDefinitionRoleAssignmentsCollectionRequestBuilder) ID(id string) *RoleAssignmentRequestBuilder {
+ bb := &RoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// RoleDefinitionRoleAssignmentsCollectionRequest is request for RoleAssignment collection
+type RoleDefinitionRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RoleAssignment collection
+func (r *RoleDefinitionRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]RoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RoleAssignment collection
+func (r *RoleDefinitionRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]RoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for RoleAssignment collection
+func (r *RoleDefinitionRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *RoleAssignment) (resObj *RoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoleManagementModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoleManagementModel.go
new file mode 100644
index 00000000..d7f0d20f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoleManagementModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoleManagement undocumented
+type RoleManagement struct {
+ // Entity is the base model of RoleManagement
+ Entity
+ // Directory undocumented
+ Directory *RbacApplication `json:"directory,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoleManagementRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoleManagementRequest.go
new file mode 100644
index 00000000..f2ccc00f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoleManagementRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RoleManagementRequestBuilder is request builder for RoleManagement
+type RoleManagementRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RoleManagementRequest
+func (b *RoleManagementRequestBuilder) Request() *RoleManagementRequest {
+ return &RoleManagementRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RoleManagementRequest is request for RoleManagement
+type RoleManagementRequest struct{ BaseRequest }
+
+// Get performs GET request for RoleManagement
+func (r *RoleManagementRequest) Get(ctx context.Context) (resObj *RoleManagement, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RoleManagement
+func (r *RoleManagementRequest) Update(ctx context.Context, reqObj *RoleManagement) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RoleManagement
+func (r *RoleManagementRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Directory is navigation property
+func (b *RoleManagementRequestBuilder) Directory() *RbacApplicationRequestBuilder {
+ bb := &RbacApplicationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directory"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoleMembershipGovernanceCriteriaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoleMembershipGovernanceCriteriaModel.go
new file mode 100644
index 00000000..5c911d39
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoleMembershipGovernanceCriteriaModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoleMembershipGovernanceCriteria undocumented
+type RoleMembershipGovernanceCriteria struct {
+ // GovernanceCriteria is the base model of RoleMembershipGovernanceCriteria
+ GovernanceCriteria
+ // RoleID undocumented
+ RoleID *string `json:"roleId,omitempty"`
+ // RoleTemplateID undocumented
+ RoleTemplateID *string `json:"roleTemplateId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RolePermissionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RolePermissionModel.go
new file mode 100644
index 00000000..c6aa4758
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RolePermissionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RolePermission undocumented
+type RolePermission struct {
+ // Object is the base model of RolePermission
+ Object
+ // Actions Allowed Actions - Deprecated
+ Actions []string `json:"actions,omitempty"`
+ // ResourceActions Resource Actions each containing a set of allowed and not allowed permissions.
+ ResourceActions []ResourceAction `json:"resourceActions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagAction.go
new file mode 100644
index 00000000..5a9ef86a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagAction.go
@@ -0,0 +1,196 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// RoleScopeTagCollectionGetRoleScopeTagsByIDRequestParameter undocumented
+type RoleScopeTagCollectionGetRoleScopeTagsByIDRequestParameter struct {
+ // RoleScopeTagIDs undocumented
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+}
+
+// RoleScopeTagAssignRequestParameter undocumented
+type RoleScopeTagAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []RoleScopeTagAutoAssignment `json:"assignments,omitempty"`
+}
+
+//
+type RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder struct{ BaseRequestBuilder }
+
+// GetRoleScopeTagsByID action undocumented
+func (b *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder) GetRoleScopeTagsByID(reqObj *RoleScopeTagCollectionGetRoleScopeTagsByIDRequestParameter) *RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder {
+ bb := &RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getRoleScopeTagsById"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetRoleScopeTagsByID action undocumented
+func (b *DeviceManagementRoleScopeTagsCollectionRequestBuilder) GetRoleScopeTagsByID(reqObj *RoleScopeTagCollectionGetRoleScopeTagsByIDRequestParameter) *RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder {
+ bb := &RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getRoleScopeTagsById"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type RoleScopeTagCollectionGetRoleScopeTagsByIDRequest struct{ BaseRequest }
+
+//
+func (b *RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder) Request() *RoleScopeTagCollectionGetRoleScopeTagsByIDRequest {
+ return &RoleScopeTagCollectionGetRoleScopeTagsByIDRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *RoleScopeTagCollectionGetRoleScopeTagsByIDRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]RoleScopeTag, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]RoleScopeTag
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]RoleScopeTag
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *RoleScopeTagCollectionGetRoleScopeTagsByIDRequest) Get(ctx context.Context) ([][]RoleScopeTag, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type RoleScopeTagAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *RoleScopeTagRequestBuilder) Assign(reqObj *RoleScopeTagAssignRequestParameter) *RoleScopeTagAssignRequestBuilder {
+ bb := &RoleScopeTagAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type RoleScopeTagAssignRequest struct{ BaseRequest }
+
+//
+func (b *RoleScopeTagAssignRequestBuilder) Request() *RoleScopeTagAssignRequest {
+ return &RoleScopeTagAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *RoleScopeTagAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]RoleScopeTagAutoAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]RoleScopeTagAutoAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]RoleScopeTagAutoAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *RoleScopeTagAssignRequest) Get(ctx context.Context) ([][]RoleScopeTagAutoAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagAutoAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagAutoAssignmentModel.go
new file mode 100644
index 00000000..c2c325de
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagAutoAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoleScopeTagAutoAssignment Contains the properties for auto-assigning a Role Scope Tag to a group to be applied to Devices.
+type RoleScopeTagAutoAssignment struct {
+ // Entity is the base model of RoleScopeTagAutoAssignment
+ Entity
+ // Target The auto-assignment target for the specific Role Scope Tag.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagAutoAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagAutoAssignmentRequest.go
new file mode 100644
index 00000000..07a40740
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagAutoAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RoleScopeTagAutoAssignmentRequestBuilder is request builder for RoleScopeTagAutoAssignment
+type RoleScopeTagAutoAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RoleScopeTagAutoAssignmentRequest
+func (b *RoleScopeTagAutoAssignmentRequestBuilder) Request() *RoleScopeTagAutoAssignmentRequest {
+ return &RoleScopeTagAutoAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RoleScopeTagAutoAssignmentRequest is request for RoleScopeTagAutoAssignment
+type RoleScopeTagAutoAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for RoleScopeTagAutoAssignment
+func (r *RoleScopeTagAutoAssignmentRequest) Get(ctx context.Context) (resObj *RoleScopeTagAutoAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RoleScopeTagAutoAssignment
+func (r *RoleScopeTagAutoAssignmentRequest) Update(ctx context.Context, reqObj *RoleScopeTagAutoAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RoleScopeTagAutoAssignment
+func (r *RoleScopeTagAutoAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagInfoModel.go
new file mode 100644
index 00000000..a028619e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagInfoModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoleScopeTagInfo undocumented
+type RoleScopeTagInfo struct {
+ // Object is the base model of RoleScopeTagInfo
+ Object
+ // DisplayName Scope Tag Display name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // RoleScopeTagID Scope Tag Id.
+ RoleScopeTagID *string `json:"roleScopeTagId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagModel.go
new file mode 100644
index 00000000..08dd2bc2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoleScopeTag Role Scope Tag
+type RoleScopeTag struct {
+ // Entity is the base model of RoleScopeTag
+ Entity
+ // DisplayName The display or friendly name of the Role Scope Tag.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of the Role Scope Tag.
+ Description *string `json:"description,omitempty"`
+ // IsBuiltIn Description of the Role Scope Tag.
+ IsBuiltIn *bool `json:"isBuiltIn,omitempty"`
+ // Assignments undocumented
+ Assignments []RoleScopeTagAutoAssignment `json:"assignments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagRequest.go
new file mode 100644
index 00000000..b8ca9719
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoleScopeTagRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// RoleScopeTagRequestBuilder is request builder for RoleScopeTag
+type RoleScopeTagRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RoleScopeTagRequest
+func (b *RoleScopeTagRequestBuilder) Request() *RoleScopeTagRequest {
+ return &RoleScopeTagRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RoleScopeTagRequest is request for RoleScopeTag
+type RoleScopeTagRequest struct{ BaseRequest }
+
+// Get performs GET request for RoleScopeTag
+func (r *RoleScopeTagRequest) Get(ctx context.Context) (resObj *RoleScopeTag, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RoleScopeTag
+func (r *RoleScopeTagRequest) Update(ctx context.Context, reqObj *RoleScopeTag) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RoleScopeTag
+func (r *RoleScopeTagRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for RoleScopeTagAutoAssignment collection
+func (b *RoleScopeTagRequestBuilder) Assignments() *RoleScopeTagAssignmentsCollectionRequestBuilder {
+ bb := &RoleScopeTagAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// RoleScopeTagAssignmentsCollectionRequestBuilder is request builder for RoleScopeTagAutoAssignment collection
+type RoleScopeTagAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RoleScopeTagAutoAssignment collection
+func (b *RoleScopeTagAssignmentsCollectionRequestBuilder) Request() *RoleScopeTagAssignmentsCollectionRequest {
+ return &RoleScopeTagAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RoleScopeTagAutoAssignment item
+func (b *RoleScopeTagAssignmentsCollectionRequestBuilder) ID(id string) *RoleScopeTagAutoAssignmentRequestBuilder {
+ bb := &RoleScopeTagAutoAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// RoleScopeTagAssignmentsCollectionRequest is request for RoleScopeTagAutoAssignment collection
+type RoleScopeTagAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RoleScopeTagAutoAssignment collection
+func (r *RoleScopeTagAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]RoleScopeTagAutoAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RoleScopeTagAutoAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RoleScopeTagAutoAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for RoleScopeTagAutoAssignment collection
+func (r *RoleScopeTagAssignmentsCollectionRequest) Get(ctx context.Context) ([]RoleScopeTagAutoAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for RoleScopeTagAutoAssignment collection
+func (r *RoleScopeTagAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *RoleScopeTagAutoAssignment) (resObj *RoleScopeTagAutoAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoleSuccessStatisticsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoleSuccessStatisticsModel.go
new file mode 100644
index 00000000..1b5aabcb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoleSuccessStatisticsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoleSuccessStatistics undocumented
+type RoleSuccessStatistics struct {
+ // Object is the base model of RoleSuccessStatistics
+ Object
+ // RoleID undocumented
+ RoleID *string `json:"roleId,omitempty"`
+ // RoleName undocumented
+ RoleName *string `json:"roleName,omitempty"`
+ // TemporarySuccess undocumented
+ TemporarySuccess *int `json:"temporarySuccess,omitempty"`
+ // TemporaryFail undocumented
+ TemporaryFail *int `json:"temporaryFail,omitempty"`
+ // PermanentSuccess undocumented
+ PermanentSuccess *int `json:"permanentSuccess,omitempty"`
+ // PermanentFail undocumented
+ PermanentFail *int `json:"permanentFail,omitempty"`
+ // RemoveSuccess undocumented
+ RemoveSuccess *int `json:"removeSuccess,omitempty"`
+ // RemoveFail undocumented
+ RemoveFail *int `json:"removeFail,omitempty"`
+ // UnknownFail undocumented
+ UnknownFail *int `json:"unknownFail,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoleSummaryStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoleSummaryStatusEnum.go
new file mode 100644
index 00000000..5c854b8d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoleSummaryStatusEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoleSummaryStatus undocumented
+type RoleSummaryStatus int
+
+const (
+ // RoleSummaryStatusVOk undocumented
+ RoleSummaryStatusVOk RoleSummaryStatus = 0
+ // RoleSummaryStatusVBad undocumented
+ RoleSummaryStatusVBad RoleSummaryStatus = 1
+)
+
+// RoleSummaryStatusPOk returns a pointer to RoleSummaryStatusVOk
+func RoleSummaryStatusPOk() *RoleSummaryStatus {
+ v := RoleSummaryStatusVOk
+ return &v
+}
+
+// RoleSummaryStatusPBad returns a pointer to RoleSummaryStatusVBad
+func RoleSummaryStatusPBad() *RoleSummaryStatus {
+ v := RoleSummaryStatusVBad
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoomListModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoomListModel.go
new file mode 100644
index 00000000..af959b5b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoomListModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoomList undocumented
+type RoomList struct {
+ // Place is the base model of RoomList
+ Place
+ // EmailAddress undocumented
+ EmailAddress *string `json:"emailAddress,omitempty"`
+ // Rooms undocumented
+ Rooms []Room `json:"rooms,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoomListRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoomListRequest.go
new file mode 100644
index 00000000..8d663e1a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoomListRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// RoomListRequestBuilder is request builder for RoomList
+type RoomListRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RoomListRequest
+func (b *RoomListRequestBuilder) Request() *RoomListRequest {
+ return &RoomListRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RoomListRequest is request for RoomList
+type RoomListRequest struct{ BaseRequest }
+
+// Get performs GET request for RoomList
+func (r *RoomListRequest) Get(ctx context.Context) (resObj *RoomList, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RoomList
+func (r *RoomListRequest) Update(ctx context.Context, reqObj *RoomList) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RoomList
+func (r *RoomListRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Rooms returns request builder for Room collection
+func (b *RoomListRequestBuilder) Rooms() *RoomListRoomsCollectionRequestBuilder {
+ bb := &RoomListRoomsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rooms"
+ return bb
+}
+
+// RoomListRoomsCollectionRequestBuilder is request builder for Room collection
+type RoomListRoomsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Room collection
+func (b *RoomListRoomsCollectionRequestBuilder) Request() *RoomListRoomsCollectionRequest {
+ return &RoomListRoomsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Room item
+func (b *RoomListRoomsCollectionRequestBuilder) ID(id string) *RoomRequestBuilder {
+ bb := &RoomRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// RoomListRoomsCollectionRequest is request for Room collection
+type RoomListRoomsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Room collection
+func (r *RoomListRoomsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Room, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Room
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Room
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Room collection
+func (r *RoomListRoomsCollectionRequest) Get(ctx context.Context) ([]Room, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Room collection
+func (r *RoomListRoomsCollectionRequest) Add(ctx context.Context, reqObj *Room) (resObj *Room, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoomModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoomModel.go
new file mode 100644
index 00000000..03a2f687
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoomModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Room undocumented
+type Room struct {
+ // Place is the base model of Room
+ Place
+ // EmailAddress undocumented
+ EmailAddress *string `json:"emailAddress,omitempty"`
+ // Nickname undocumented
+ Nickname *string `json:"nickname,omitempty"`
+ // Building undocumented
+ Building *string `json:"building,omitempty"`
+ // FloorNumber undocumented
+ FloorNumber *int `json:"floorNumber,omitempty"`
+ // Label undocumented
+ Label *string `json:"label,omitempty"`
+ // Capacity undocumented
+ Capacity *int `json:"capacity,omitempty"`
+ // BookingType undocumented
+ BookingType *BookingType `json:"bookingType,omitempty"`
+ // AudioDeviceName undocumented
+ AudioDeviceName *string `json:"audioDeviceName,omitempty"`
+ // VideoDeviceName undocumented
+ VideoDeviceName *string `json:"videoDeviceName,omitempty"`
+ // DisplayDeviceName undocumented
+ DisplayDeviceName *string `json:"displayDeviceName,omitempty"`
+ // IsWheelChairAccessible undocumented
+ IsWheelChairAccessible *bool `json:"isWheelChairAccessible,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // FloorLabel undocumented
+ FloorLabel *string `json:"floorLabel,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoomRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoomRequest.go
new file mode 100644
index 00000000..3a777c38
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoomRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RoomRequestBuilder is request builder for Room
+type RoomRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RoomRequest
+func (b *RoomRequestBuilder) Request() *RoomRequest {
+ return &RoomRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RoomRequest is request for Room
+type RoomRequest struct{ BaseRequest }
+
+// Get performs GET request for Room
+func (r *RoomRequest) Get(ctx context.Context) (resObj *Room, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Room
+func (r *RoomRequest) Update(ctx context.Context, reqObj *Room) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Room
+func (r *RoomRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RootModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RootModel.go
new file mode 100644
index 00000000..7c19a720
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RootModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Root undocumented
+type Root struct {
+ // Object is the base model of Root
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RotateBitLockerKeysDeviceActionResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RotateBitLockerKeysDeviceActionResultModel.go
new file mode 100644
index 00000000..d203e7bd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RotateBitLockerKeysDeviceActionResultModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RotateBitLockerKeysDeviceActionResult undocumented
+type RotateBitLockerKeysDeviceActionResult struct {
+ // DeviceActionResult is the base model of RotateBitLockerKeysDeviceActionResult
+ DeviceActionResult
+ // ErrorCode RotateBitLockerKeys action error code
+ ErrorCode *int `json:"errorCode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoutingModeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoutingModeEnum.go
new file mode 100644
index 00000000..fe644d6c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoutingModeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoutingMode undocumented
+type RoutingMode int
+
+const (
+ // RoutingModeVOneToOne undocumented
+ RoutingModeVOneToOne RoutingMode = 0
+ // RoutingModeVMulticast undocumented
+ RoutingModeVMulticast RoutingMode = 1
+)
+
+// RoutingModePOneToOne returns a pointer to RoutingModeVOneToOne
+func RoutingModePOneToOne() *RoutingMode {
+ v := RoutingModeVOneToOne
+ return &v
+}
+
+// RoutingModePMulticast returns a pointer to RoutingModeVMulticast
+func RoutingModePMulticast() *RoutingMode {
+ v := RoutingModeVMulticast
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoutingPolicyEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoutingPolicyEnum.go
new file mode 100644
index 00000000..d0ec9fd8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoutingPolicyEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoutingPolicy undocumented
+type RoutingPolicy int
+
+const (
+ // RoutingPolicyVNone undocumented
+ RoutingPolicyVNone RoutingPolicy = 0
+ // RoutingPolicyVNoMissedCall undocumented
+ RoutingPolicyVNoMissedCall RoutingPolicy = 1
+ // RoutingPolicyVDisableForwardingExceptPhone undocumented
+ RoutingPolicyVDisableForwardingExceptPhone RoutingPolicy = 2
+ // RoutingPolicyVDisableForwarding undocumented
+ RoutingPolicyVDisableForwarding RoutingPolicy = 3
+ // RoutingPolicyVPreferSkypeForBusiness undocumented
+ RoutingPolicyVPreferSkypeForBusiness RoutingPolicy = 5
+ // RoutingPolicyVUnknownFutureValue undocumented
+ RoutingPolicyVUnknownFutureValue RoutingPolicy = 6
+)
+
+// RoutingPolicyPNone returns a pointer to RoutingPolicyVNone
+func RoutingPolicyPNone() *RoutingPolicy {
+ v := RoutingPolicyVNone
+ return &v
+}
+
+// RoutingPolicyPNoMissedCall returns a pointer to RoutingPolicyVNoMissedCall
+func RoutingPolicyPNoMissedCall() *RoutingPolicy {
+ v := RoutingPolicyVNoMissedCall
+ return &v
+}
+
+// RoutingPolicyPDisableForwardingExceptPhone returns a pointer to RoutingPolicyVDisableForwardingExceptPhone
+func RoutingPolicyPDisableForwardingExceptPhone() *RoutingPolicy {
+ v := RoutingPolicyVDisableForwardingExceptPhone
+ return &v
+}
+
+// RoutingPolicyPDisableForwarding returns a pointer to RoutingPolicyVDisableForwarding
+func RoutingPolicyPDisableForwarding() *RoutingPolicy {
+ v := RoutingPolicyVDisableForwarding
+ return &v
+}
+
+// RoutingPolicyPPreferSkypeForBusiness returns a pointer to RoutingPolicyVPreferSkypeForBusiness
+func RoutingPolicyPPreferSkypeForBusiness() *RoutingPolicy {
+ v := RoutingPolicyVPreferSkypeForBusiness
+ return &v
+}
+
+// RoutingPolicyPUnknownFutureValue returns a pointer to RoutingPolicyVUnknownFutureValue
+func RoutingPolicyPUnknownFutureValue() *RoutingPolicy {
+ v := RoutingPolicyVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RoutingTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RoutingTypeEnum.go
new file mode 100644
index 00000000..2a587760
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RoutingTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoutingType undocumented
+type RoutingType int
+
+const (
+ // RoutingTypeVForwarded undocumented
+ RoutingTypeVForwarded RoutingType = 0
+ // RoutingTypeVLookup undocumented
+ RoutingTypeVLookup RoutingType = 1
+ // RoutingTypeVSelfFork undocumented
+ RoutingTypeVSelfFork RoutingType = 2
+)
+
+// RoutingTypePForwarded returns a pointer to RoutingTypeVForwarded
+func RoutingTypePForwarded() *RoutingType {
+ v := RoutingTypeVForwarded
+ return &v
+}
+
+// RoutingTypePLookup returns a pointer to RoutingTypeVLookup
+func RoutingTypePLookup() *RoutingType {
+ v := RoutingTypeVLookup
+ return &v
+}
+
+// RoutingTypePSelfFork returns a pointer to RoutingTypeVSelfFork
+func RoutingTypePSelfFork() *RoutingType {
+ v := RoutingTypeVSelfFork
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RubricCriterionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RubricCriterionModel.go
new file mode 100644
index 00000000..9a7311f8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RubricCriterionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RubricCriterion undocumented
+type RubricCriterion struct {
+ // Object is the base model of RubricCriterion
+ Object
+ // Description undocumented
+ Description *EducationItemBody `json:"description,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RubricLevelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RubricLevelModel.go
new file mode 100644
index 00000000..2c63ac01
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RubricLevelModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RubricLevel undocumented
+type RubricLevel struct {
+ // Object is the base model of RubricLevel
+ Object
+ // LevelID undocumented
+ LevelID *string `json:"levelId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *EducationItemBody `json:"description,omitempty"`
+ // Grading undocumented
+ Grading *EducationAssignmentGradeType `json:"grading,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RubricQualityFeedbackModelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RubricQualityFeedbackModelModel.go
new file mode 100644
index 00000000..39ef7de7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RubricQualityFeedbackModelModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RubricQualityFeedbackModel undocumented
+type RubricQualityFeedbackModel struct {
+ // Object is the base model of RubricQualityFeedbackModel
+ Object
+ // QualityID undocumented
+ QualityID *string `json:"qualityId,omitempty"`
+ // Feedback undocumented
+ Feedback *EducationItemBody `json:"feedback,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RubricQualityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RubricQualityModel.go
new file mode 100644
index 00000000..5e087327
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RubricQualityModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RubricQuality undocumented
+type RubricQuality struct {
+ // Object is the base model of RubricQuality
+ Object
+ // QualityID undocumented
+ QualityID *string `json:"qualityId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *EducationItemBody `json:"description,omitempty"`
+ // Weight undocumented
+ Weight *float64 `json:"weight,omitempty"`
+ // Criteria undocumented
+ Criteria []RubricCriterion `json:"criteria,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RubricQualitySelectedColumnModelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RubricQualitySelectedColumnModelModel.go
new file mode 100644
index 00000000..0443944c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RubricQualitySelectedColumnModelModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RubricQualitySelectedColumnModel undocumented
+type RubricQualitySelectedColumnModel struct {
+ // Object is the base model of RubricQualitySelectedColumnModel
+ Object
+ // QualityID undocumented
+ QualityID *string `json:"qualityId,omitempty"`
+ // ColumnID undocumented
+ ColumnID *string `json:"columnId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RuleModeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RuleModeEnum.go
new file mode 100644
index 00000000..004aa202
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RuleModeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RuleMode undocumented
+type RuleMode int
+
+const (
+ // RuleModeVAudit undocumented
+ RuleModeVAudit RuleMode = 1
+ // RuleModeVAuditAndNotify undocumented
+ RuleModeVAuditAndNotify RuleMode = 2
+ // RuleModeVEnforce undocumented
+ RuleModeVEnforce RuleMode = 3
+ // RuleModeVPendingDeletion undocumented
+ RuleModeVPendingDeletion RuleMode = 4
+ // RuleModeVTest undocumented
+ RuleModeVTest RuleMode = 5
+)
+
+// RuleModePAudit returns a pointer to RuleModeVAudit
+func RuleModePAudit() *RuleMode {
+ v := RuleModeVAudit
+ return &v
+}
+
+// RuleModePAuditAndNotify returns a pointer to RuleModeVAuditAndNotify
+func RuleModePAuditAndNotify() *RuleMode {
+ v := RuleModeVAuditAndNotify
+ return &v
+}
+
+// RuleModePEnforce returns a pointer to RuleModeVEnforce
+func RuleModePEnforce() *RuleMode {
+ v := RuleModeVEnforce
+ return &v
+}
+
+// RuleModePPendingDeletion returns a pointer to RuleModeVPendingDeletion
+func RuleModePPendingDeletion() *RuleMode {
+ v := RuleModeVPendingDeletion
+ return &v
+}
+
+// RuleModePTest returns a pointer to RuleModeVTest
+func RuleModePTest() *RuleMode {
+ v := RuleModeVTest
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RunAsAccountTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RunAsAccountTypeEnum.go
new file mode 100644
index 00000000..ddb7e2a2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RunAsAccountTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RunAsAccountType undocumented
+type RunAsAccountType int
+
+const (
+ // RunAsAccountTypeVSystem undocumented
+ RunAsAccountTypeVSystem RunAsAccountType = 0
+ // RunAsAccountTypeVUser undocumented
+ RunAsAccountTypeVUser RunAsAccountType = 1
+)
+
+// RunAsAccountTypePSystem returns a pointer to RunAsAccountTypeVSystem
+func RunAsAccountTypePSystem() *RunAsAccountType {
+ v := RunAsAccountTypeVSystem
+ return &v
+}
+
+// RunAsAccountTypePUser returns a pointer to RunAsAccountTypeVUser
+func RunAsAccountTypePUser() *RunAsAccountType {
+ v := RunAsAccountTypeVUser
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RunScheduleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RunScheduleModel.go
new file mode 100644
index 00000000..d80439e1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RunScheduleModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RunSchedule undocumented
+type RunSchedule struct {
+ // Object is the base model of RunSchedule
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RunStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RunStateEnum.go
new file mode 100644
index 00000000..f25cf15a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RunStateEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RunState undocumented
+type RunState int
+
+const (
+ // RunStateVUnknown undocumented
+ RunStateVUnknown RunState = 0
+ // RunStateVSuccess undocumented
+ RunStateVSuccess RunState = 1
+ // RunStateVFail undocumented
+ RunStateVFail RunState = 2
+ // RunStateVScriptError undocumented
+ RunStateVScriptError RunState = 3
+ // RunStateVPending undocumented
+ RunStateVPending RunState = 4
+ // RunStateVNotApplicable undocumented
+ RunStateVNotApplicable RunState = 5
+)
+
+// RunStatePUnknown returns a pointer to RunStateVUnknown
+func RunStatePUnknown() *RunState {
+ v := RunStateVUnknown
+ return &v
+}
+
+// RunStatePSuccess returns a pointer to RunStateVSuccess
+func RunStatePSuccess() *RunState {
+ v := RunStateVSuccess
+ return &v
+}
+
+// RunStatePFail returns a pointer to RunStateVFail
+func RunStatePFail() *RunState {
+ v := RunStateVFail
+ return &v
+}
+
+// RunStatePScriptError returns a pointer to RunStateVScriptError
+func RunStatePScriptError() *RunState {
+ v := RunStateVScriptError
+ return &v
+}
+
+// RunStatePPending returns a pointer to RunStateVPending
+func RunStatePPending() *RunState {
+ v := RunStateVPending
+ return &v
+}
+
+// RunStatePNotApplicable returns a pointer to RunStateVNotApplicable
+func RunStatePNotApplicable() *RunState {
+ v := RunStateVNotApplicable
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SafeSearchFilterTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SafeSearchFilterTypeEnum.go
new file mode 100644
index 00000000..946b93f4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SafeSearchFilterTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SafeSearchFilterType undocumented
+type SafeSearchFilterType int
+
+const (
+ // SafeSearchFilterTypeVUserDefined undocumented
+ SafeSearchFilterTypeVUserDefined SafeSearchFilterType = 0
+ // SafeSearchFilterTypeVStrict undocumented
+ SafeSearchFilterTypeVStrict SafeSearchFilterType = 1
+ // SafeSearchFilterTypeVModerate undocumented
+ SafeSearchFilterTypeVModerate SafeSearchFilterType = 2
+)
+
+// SafeSearchFilterTypePUserDefined returns a pointer to SafeSearchFilterTypeVUserDefined
+func SafeSearchFilterTypePUserDefined() *SafeSearchFilterType {
+ v := SafeSearchFilterTypeVUserDefined
+ return &v
+}
+
+// SafeSearchFilterTypePStrict returns a pointer to SafeSearchFilterTypeVStrict
+func SafeSearchFilterTypePStrict() *SafeSearchFilterType {
+ v := SafeSearchFilterTypeVStrict
+ return &v
+}
+
+// SafeSearchFilterTypePModerate returns a pointer to SafeSearchFilterTypeVModerate
+func SafeSearchFilterTypePModerate() *SafeSearchFilterType {
+ v := SafeSearchFilterTypeVModerate
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesCreditMemoLineModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesCreditMemoLineModel.go
new file mode 100644
index 00000000..72625881
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesCreditMemoLineModel.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SalesCreditMemoLine undocumented
+type SalesCreditMemoLine struct {
+ // Entity is the base model of SalesCreditMemoLine
+ Entity
+ // DocumentID undocumented
+ DocumentID *UUID `json:"documentId,omitempty"`
+ // Sequence undocumented
+ Sequence *int `json:"sequence,omitempty"`
+ // ItemID undocumented
+ ItemID *UUID `json:"itemId,omitempty"`
+ // AccountID undocumented
+ AccountID *UUID `json:"accountId,omitempty"`
+ // LineType undocumented
+ LineType *string `json:"lineType,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // UnitOfMeasureID undocumented
+ UnitOfMeasureID *UUID `json:"unitOfMeasureId,omitempty"`
+ // UnitPrice undocumented
+ UnitPrice *int `json:"unitPrice,omitempty"`
+ // Quantity undocumented
+ Quantity *int `json:"quantity,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountPercent undocumented
+ DiscountPercent *int `json:"discountPercent,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // AmountExcludingTax undocumented
+ AmountExcludingTax *int `json:"amountExcludingTax,omitempty"`
+ // TaxCode undocumented
+ TaxCode *string `json:"taxCode,omitempty"`
+ // TaxPercent undocumented
+ TaxPercent *int `json:"taxPercent,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // AmountIncludingTax undocumented
+ AmountIncludingTax *int `json:"amountIncludingTax,omitempty"`
+ // InvoiceDiscountAllocation undocumented
+ InvoiceDiscountAllocation *int `json:"invoiceDiscountAllocation,omitempty"`
+ // NetAmount undocumented
+ NetAmount *int `json:"netAmount,omitempty"`
+ // NetTaxAmount undocumented
+ NetTaxAmount *int `json:"netTaxAmount,omitempty"`
+ // NetAmountIncludingTax undocumented
+ NetAmountIncludingTax *int `json:"netAmountIncludingTax,omitempty"`
+ // ShipmentDate undocumented
+ ShipmentDate *time.Time `json:"shipmentDate,omitempty"`
+ // Item undocumented
+ Item *Item `json:"item,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesCreditMemoLineRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesCreditMemoLineRequest.go
new file mode 100644
index 00000000..a4b4beac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesCreditMemoLineRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SalesCreditMemoLineRequestBuilder is request builder for SalesCreditMemoLine
+type SalesCreditMemoLineRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SalesCreditMemoLineRequest
+func (b *SalesCreditMemoLineRequestBuilder) Request() *SalesCreditMemoLineRequest {
+ return &SalesCreditMemoLineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SalesCreditMemoLineRequest is request for SalesCreditMemoLine
+type SalesCreditMemoLineRequest struct{ BaseRequest }
+
+// Get performs GET request for SalesCreditMemoLine
+func (r *SalesCreditMemoLineRequest) Get(ctx context.Context) (resObj *SalesCreditMemoLine, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SalesCreditMemoLine
+func (r *SalesCreditMemoLineRequest) Update(ctx context.Context, reqObj *SalesCreditMemoLine) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SalesCreditMemoLine
+func (r *SalesCreditMemoLineRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Account is navigation property
+func (b *SalesCreditMemoLineRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
+
+// Item is navigation property
+func (b *SalesCreditMemoLineRequestBuilder) Item() *ItemRequestBuilder {
+ bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/item"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesCreditMemoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesCreditMemoModel.go
new file mode 100644
index 00000000..7661783e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesCreditMemoModel.go
@@ -0,0 +1,75 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SalesCreditMemo undocumented
+type SalesCreditMemo struct {
+ // Entity is the base model of SalesCreditMemo
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // ExternalDocumentNumber undocumented
+ ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"`
+ // CreditMemoDate undocumented
+ CreditMemoDate *time.Time `json:"creditMemoDate,omitempty"`
+ // DueDate undocumented
+ DueDate *time.Time `json:"dueDate,omitempty"`
+ // CustomerID undocumented
+ CustomerID *UUID `json:"customerId,omitempty"`
+ // CustomerNumber undocumented
+ CustomerNumber *string `json:"customerNumber,omitempty"`
+ // CustomerName undocumented
+ CustomerName *string `json:"customerName,omitempty"`
+ // BillToName undocumented
+ BillToName *string `json:"billToName,omitempty"`
+ // BillToCustomerID undocumented
+ BillToCustomerID *UUID `json:"billToCustomerId,omitempty"`
+ // BillToCustomerNumber undocumented
+ BillToCustomerNumber *string `json:"billToCustomerNumber,omitempty"`
+ // SellingPostalAddress undocumented
+ SellingPostalAddress *PostalAddressType `json:"sellingPostalAddress,omitempty"`
+ // BillingPostalAddress undocumented
+ BillingPostalAddress *PostalAddressType `json:"billingPostalAddress,omitempty"`
+ // CurrencyID undocumented
+ CurrencyID *UUID `json:"currencyId,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // PaymentTermsID undocumented
+ PaymentTermsID *UUID `json:"paymentTermsId,omitempty"`
+ // Salesperson undocumented
+ Salesperson *string `json:"salesperson,omitempty"`
+ // PricesIncludeTax undocumented
+ PricesIncludeTax *bool `json:"pricesIncludeTax,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // TotalAmountExcludingTax undocumented
+ TotalAmountExcludingTax *int `json:"totalAmountExcludingTax,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // TotalAmountIncludingTax undocumented
+ TotalAmountIncludingTax *int `json:"totalAmountIncludingTax,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // InvoiceID undocumented
+ InvoiceID *UUID `json:"invoiceId,omitempty"`
+ // InvoiceNumber undocumented
+ InvoiceNumber *string `json:"invoiceNumber,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // SalesCreditMemoLines undocumented
+ SalesCreditMemoLines []SalesCreditMemoLine `json:"salesCreditMemoLines,omitempty"`
+ // Customer undocumented
+ Customer *Customer `json:"customer,omitempty"`
+ // Currency undocumented
+ Currency *Currency `json:"currency,omitempty"`
+ // PaymentTerm undocumented
+ PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesCreditMemoRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesCreditMemoRequest.go
new file mode 100644
index 00000000..e97973f7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesCreditMemoRequest.go
@@ -0,0 +1,160 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SalesCreditMemoRequestBuilder is request builder for SalesCreditMemo
+type SalesCreditMemoRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SalesCreditMemoRequest
+func (b *SalesCreditMemoRequestBuilder) Request() *SalesCreditMemoRequest {
+ return &SalesCreditMemoRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SalesCreditMemoRequest is request for SalesCreditMemo
+type SalesCreditMemoRequest struct{ BaseRequest }
+
+// Get performs GET request for SalesCreditMemo
+func (r *SalesCreditMemoRequest) Get(ctx context.Context) (resObj *SalesCreditMemo, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SalesCreditMemo
+func (r *SalesCreditMemoRequest) Update(ctx context.Context, reqObj *SalesCreditMemo) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SalesCreditMemo
+func (r *SalesCreditMemoRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Currency is navigation property
+func (b *SalesCreditMemoRequestBuilder) Currency() *CurrencyRequestBuilder {
+ bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/currency"
+ return bb
+}
+
+// Customer is navigation property
+func (b *SalesCreditMemoRequestBuilder) Customer() *CustomerRequestBuilder {
+ bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customer"
+ return bb
+}
+
+// PaymentTerm is navigation property
+func (b *SalesCreditMemoRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder {
+ bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentTerm"
+ return bb
+}
+
+// SalesCreditMemoLines returns request builder for SalesCreditMemoLine collection
+func (b *SalesCreditMemoRequestBuilder) SalesCreditMemoLines() *SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder {
+ bb := &SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesCreditMemoLines"
+ return bb
+}
+
+// SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder is request builder for SalesCreditMemoLine collection
+type SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesCreditMemoLine collection
+func (b *SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder) Request() *SalesCreditMemoSalesCreditMemoLinesCollectionRequest {
+ return &SalesCreditMemoSalesCreditMemoLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesCreditMemoLine item
+func (b *SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder) ID(id string) *SalesCreditMemoLineRequestBuilder {
+ bb := &SalesCreditMemoLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SalesCreditMemoSalesCreditMemoLinesCollectionRequest is request for SalesCreditMemoLine collection
+type SalesCreditMemoSalesCreditMemoLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesCreditMemoLine collection
+func (r *SalesCreditMemoSalesCreditMemoLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SalesCreditMemoLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesCreditMemoLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesCreditMemoLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesCreditMemoLine collection
+func (r *SalesCreditMemoSalesCreditMemoLinesCollectionRequest) Get(ctx context.Context) ([]SalesCreditMemoLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SalesCreditMemoLine collection
+func (r *SalesCreditMemoSalesCreditMemoLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesCreditMemoLine) (resObj *SalesCreditMemoLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesInvoiceAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesInvoiceAction.go
new file mode 100644
index 00000000..d033b0c3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesInvoiceAction.go
@@ -0,0 +1,155 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SalesInvoiceCancelAndSendRequestParameter undocumented
+type SalesInvoiceCancelAndSendRequestParameter struct {
+}
+
+// SalesInvoiceCancelRequestParameter undocumented
+type SalesInvoiceCancelRequestParameter struct {
+}
+
+// SalesInvoicePostAndSendRequestParameter undocumented
+type SalesInvoicePostAndSendRequestParameter struct {
+}
+
+// SalesInvoicePostRequestParameter undocumented
+type SalesInvoicePostRequestParameter struct {
+}
+
+// SalesInvoiceSendRequestParameter undocumented
+type SalesInvoiceSendRequestParameter struct {
+}
+
+//
+type SalesInvoiceCancelAndSendRequestBuilder struct{ BaseRequestBuilder }
+
+// CancelAndSend action undocumented
+func (b *SalesInvoiceRequestBuilder) CancelAndSend(reqObj *SalesInvoiceCancelAndSendRequestParameter) *SalesInvoiceCancelAndSendRequestBuilder {
+ bb := &SalesInvoiceCancelAndSendRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancelAndSend"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SalesInvoiceCancelAndSendRequest struct{ BaseRequest }
+
+//
+func (b *SalesInvoiceCancelAndSendRequestBuilder) Request() *SalesInvoiceCancelAndSendRequest {
+ return &SalesInvoiceCancelAndSendRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SalesInvoiceCancelAndSendRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SalesInvoiceCancelRequestBuilder struct{ BaseRequestBuilder }
+
+// Cancel action undocumented
+func (b *SalesInvoiceRequestBuilder) Cancel(reqObj *SalesInvoiceCancelRequestParameter) *SalesInvoiceCancelRequestBuilder {
+ bb := &SalesInvoiceCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancel"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SalesInvoiceCancelRequest struct{ BaseRequest }
+
+//
+func (b *SalesInvoiceCancelRequestBuilder) Request() *SalesInvoiceCancelRequest {
+ return &SalesInvoiceCancelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SalesInvoiceCancelRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SalesInvoicePostAndSendRequestBuilder struct{ BaseRequestBuilder }
+
+// PostAndSend action undocumented
+func (b *SalesInvoiceRequestBuilder) PostAndSend(reqObj *SalesInvoicePostAndSendRequestParameter) *SalesInvoicePostAndSendRequestBuilder {
+ bb := &SalesInvoicePostAndSendRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/postAndSend"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SalesInvoicePostAndSendRequest struct{ BaseRequest }
+
+//
+func (b *SalesInvoicePostAndSendRequestBuilder) Request() *SalesInvoicePostAndSendRequest {
+ return &SalesInvoicePostAndSendRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SalesInvoicePostAndSendRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SalesInvoicePostRequestBuilder struct{ BaseRequestBuilder }
+
+// Post action undocumented
+func (b *SalesInvoiceRequestBuilder) Post(reqObj *SalesInvoicePostRequestParameter) *SalesInvoicePostRequestBuilder {
+ bb := &SalesInvoicePostRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/post"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SalesInvoicePostRequest struct{ BaseRequest }
+
+//
+func (b *SalesInvoicePostRequestBuilder) Request() *SalesInvoicePostRequest {
+ return &SalesInvoicePostRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SalesInvoicePostRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SalesInvoiceSendRequestBuilder struct{ BaseRequestBuilder }
+
+// Send action undocumented
+func (b *SalesInvoiceRequestBuilder) Send(reqObj *SalesInvoiceSendRequestParameter) *SalesInvoiceSendRequestBuilder {
+ bb := &SalesInvoiceSendRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/send"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SalesInvoiceSendRequest struct{ BaseRequest }
+
+//
+func (b *SalesInvoiceSendRequestBuilder) Request() *SalesInvoiceSendRequest {
+ return &SalesInvoiceSendRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SalesInvoiceSendRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesInvoiceLineModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesInvoiceLineModel.go
new file mode 100644
index 00000000..05f215c3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesInvoiceLineModel.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SalesInvoiceLine undocumented
+type SalesInvoiceLine struct {
+ // Entity is the base model of SalesInvoiceLine
+ Entity
+ // DocumentID undocumented
+ DocumentID *UUID `json:"documentId,omitempty"`
+ // Sequence undocumented
+ Sequence *int `json:"sequence,omitempty"`
+ // ItemID undocumented
+ ItemID *UUID `json:"itemId,omitempty"`
+ // AccountID undocumented
+ AccountID *UUID `json:"accountId,omitempty"`
+ // LineType undocumented
+ LineType *string `json:"lineType,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // UnitOfMeasureID undocumented
+ UnitOfMeasureID *UUID `json:"unitOfMeasureId,omitempty"`
+ // UnitPrice undocumented
+ UnitPrice *int `json:"unitPrice,omitempty"`
+ // Quantity undocumented
+ Quantity *int `json:"quantity,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountPercent undocumented
+ DiscountPercent *int `json:"discountPercent,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // AmountExcludingTax undocumented
+ AmountExcludingTax *int `json:"amountExcludingTax,omitempty"`
+ // TaxCode undocumented
+ TaxCode *string `json:"taxCode,omitempty"`
+ // TaxPercent undocumented
+ TaxPercent *int `json:"taxPercent,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // AmountIncludingTax undocumented
+ AmountIncludingTax *int `json:"amountIncludingTax,omitempty"`
+ // InvoiceDiscountAllocation undocumented
+ InvoiceDiscountAllocation *int `json:"invoiceDiscountAllocation,omitempty"`
+ // NetAmount undocumented
+ NetAmount *int `json:"netAmount,omitempty"`
+ // NetTaxAmount undocumented
+ NetTaxAmount *int `json:"netTaxAmount,omitempty"`
+ // NetAmountIncludingTax undocumented
+ NetAmountIncludingTax *int `json:"netAmountIncludingTax,omitempty"`
+ // ShipmentDate undocumented
+ ShipmentDate *time.Time `json:"shipmentDate,omitempty"`
+ // Item undocumented
+ Item *Item `json:"item,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesInvoiceLineRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesInvoiceLineRequest.go
new file mode 100644
index 00000000..b239425e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesInvoiceLineRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SalesInvoiceLineRequestBuilder is request builder for SalesInvoiceLine
+type SalesInvoiceLineRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SalesInvoiceLineRequest
+func (b *SalesInvoiceLineRequestBuilder) Request() *SalesInvoiceLineRequest {
+ return &SalesInvoiceLineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SalesInvoiceLineRequest is request for SalesInvoiceLine
+type SalesInvoiceLineRequest struct{ BaseRequest }
+
+// Get performs GET request for SalesInvoiceLine
+func (r *SalesInvoiceLineRequest) Get(ctx context.Context) (resObj *SalesInvoiceLine, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SalesInvoiceLine
+func (r *SalesInvoiceLineRequest) Update(ctx context.Context, reqObj *SalesInvoiceLine) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SalesInvoiceLine
+func (r *SalesInvoiceLineRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Account is navigation property
+func (b *SalesInvoiceLineRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
+
+// Item is navigation property
+func (b *SalesInvoiceLineRequestBuilder) Item() *ItemRequestBuilder {
+ bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/item"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesInvoiceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesInvoiceModel.go
new file mode 100644
index 00000000..a76e578a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesInvoiceModel.go
@@ -0,0 +1,87 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SalesInvoice undocumented
+type SalesInvoice struct {
+ // Entity is the base model of SalesInvoice
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // ExternalDocumentNumber undocumented
+ ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"`
+ // InvoiceDate undocumented
+ InvoiceDate *time.Time `json:"invoiceDate,omitempty"`
+ // DueDate undocumented
+ DueDate *time.Time `json:"dueDate,omitempty"`
+ // CustomerPurchaseOrderReference undocumented
+ CustomerPurchaseOrderReference *string `json:"customerPurchaseOrderReference,omitempty"`
+ // CustomerID undocumented
+ CustomerID *UUID `json:"customerId,omitempty"`
+ // CustomerNumber undocumented
+ CustomerNumber *string `json:"customerNumber,omitempty"`
+ // CustomerName undocumented
+ CustomerName *string `json:"customerName,omitempty"`
+ // BillToName undocumented
+ BillToName *string `json:"billToName,omitempty"`
+ // BillToCustomerID undocumented
+ BillToCustomerID *UUID `json:"billToCustomerId,omitempty"`
+ // BillToCustomerNumber undocumented
+ BillToCustomerNumber *string `json:"billToCustomerNumber,omitempty"`
+ // ShipToName undocumented
+ ShipToName *string `json:"shipToName,omitempty"`
+ // ShipToContact undocumented
+ ShipToContact *string `json:"shipToContact,omitempty"`
+ // SellingPostalAddress undocumented
+ SellingPostalAddress *PostalAddressType `json:"sellingPostalAddress,omitempty"`
+ // BillingPostalAddress undocumented
+ BillingPostalAddress *PostalAddressType `json:"billingPostalAddress,omitempty"`
+ // ShippingPostalAddress undocumented
+ ShippingPostalAddress *PostalAddressType `json:"shippingPostalAddress,omitempty"`
+ // CurrencyID undocumented
+ CurrencyID *UUID `json:"currencyId,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // OrderID undocumented
+ OrderID *UUID `json:"orderId,omitempty"`
+ // OrderNumber undocumented
+ OrderNumber *string `json:"orderNumber,omitempty"`
+ // PaymentTermsID undocumented
+ PaymentTermsID *UUID `json:"paymentTermsId,omitempty"`
+ // ShipmentMethodID undocumented
+ ShipmentMethodID *UUID `json:"shipmentMethodId,omitempty"`
+ // Salesperson undocumented
+ Salesperson *string `json:"salesperson,omitempty"`
+ // PricesIncludeTax undocumented
+ PricesIncludeTax *bool `json:"pricesIncludeTax,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // TotalAmountExcludingTax undocumented
+ TotalAmountExcludingTax *int `json:"totalAmountExcludingTax,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // TotalAmountIncludingTax undocumented
+ TotalAmountIncludingTax *int `json:"totalAmountIncludingTax,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // SalesInvoiceLines undocumented
+ SalesInvoiceLines []SalesInvoiceLine `json:"salesInvoiceLines,omitempty"`
+ // Customer undocumented
+ Customer *Customer `json:"customer,omitempty"`
+ // Currency undocumented
+ Currency *Currency `json:"currency,omitempty"`
+ // PaymentTerm undocumented
+ PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"`
+ // ShipmentMethod undocumented
+ ShipmentMethod *ShipmentMethod `json:"shipmentMethod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesInvoiceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesInvoiceRequest.go
new file mode 100644
index 00000000..34b556b3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesInvoiceRequest.go
@@ -0,0 +1,167 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SalesInvoiceRequestBuilder is request builder for SalesInvoice
+type SalesInvoiceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SalesInvoiceRequest
+func (b *SalesInvoiceRequestBuilder) Request() *SalesInvoiceRequest {
+ return &SalesInvoiceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SalesInvoiceRequest is request for SalesInvoice
+type SalesInvoiceRequest struct{ BaseRequest }
+
+// Get performs GET request for SalesInvoice
+func (r *SalesInvoiceRequest) Get(ctx context.Context) (resObj *SalesInvoice, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SalesInvoice
+func (r *SalesInvoiceRequest) Update(ctx context.Context, reqObj *SalesInvoice) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SalesInvoice
+func (r *SalesInvoiceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Currency is navigation property
+func (b *SalesInvoiceRequestBuilder) Currency() *CurrencyRequestBuilder {
+ bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/currency"
+ return bb
+}
+
+// Customer is navigation property
+func (b *SalesInvoiceRequestBuilder) Customer() *CustomerRequestBuilder {
+ bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customer"
+ return bb
+}
+
+// PaymentTerm is navigation property
+func (b *SalesInvoiceRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder {
+ bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentTerm"
+ return bb
+}
+
+// SalesInvoiceLines returns request builder for SalesInvoiceLine collection
+func (b *SalesInvoiceRequestBuilder) SalesInvoiceLines() *SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder {
+ bb := &SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesInvoiceLines"
+ return bb
+}
+
+// SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder is request builder for SalesInvoiceLine collection
+type SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesInvoiceLine collection
+func (b *SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder) Request() *SalesInvoiceSalesInvoiceLinesCollectionRequest {
+ return &SalesInvoiceSalesInvoiceLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesInvoiceLine item
+func (b *SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder) ID(id string) *SalesInvoiceLineRequestBuilder {
+ bb := &SalesInvoiceLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SalesInvoiceSalesInvoiceLinesCollectionRequest is request for SalesInvoiceLine collection
+type SalesInvoiceSalesInvoiceLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesInvoiceLine collection
+func (r *SalesInvoiceSalesInvoiceLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SalesInvoiceLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesInvoiceLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesInvoiceLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesInvoiceLine collection
+func (r *SalesInvoiceSalesInvoiceLinesCollectionRequest) Get(ctx context.Context) ([]SalesInvoiceLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SalesInvoiceLine collection
+func (r *SalesInvoiceSalesInvoiceLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesInvoiceLine) (resObj *SalesInvoiceLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ShipmentMethod is navigation property
+func (b *SalesInvoiceRequestBuilder) ShipmentMethod() *ShipmentMethodRequestBuilder {
+ bb := &ShipmentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/shipmentMethod"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesOrderLineModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesOrderLineModel.go
new file mode 100644
index 00000000..ad81f625
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesOrderLineModel.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SalesOrderLine undocumented
+type SalesOrderLine struct {
+ // Entity is the base model of SalesOrderLine
+ Entity
+ // DocumentID undocumented
+ DocumentID *UUID `json:"documentId,omitempty"`
+ // Sequence undocumented
+ Sequence *int `json:"sequence,omitempty"`
+ // ItemID undocumented
+ ItemID *UUID `json:"itemId,omitempty"`
+ // AccountID undocumented
+ AccountID *UUID `json:"accountId,omitempty"`
+ // LineType undocumented
+ LineType *string `json:"lineType,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // UnitOfMeasureID undocumented
+ UnitOfMeasureID *UUID `json:"unitOfMeasureId,omitempty"`
+ // Quantity undocumented
+ Quantity *int `json:"quantity,omitempty"`
+ // UnitPrice undocumented
+ UnitPrice *int `json:"unitPrice,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountPercent undocumented
+ DiscountPercent *int `json:"discountPercent,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // AmountExcludingTax undocumented
+ AmountExcludingTax *int `json:"amountExcludingTax,omitempty"`
+ // TaxCode undocumented
+ TaxCode *string `json:"taxCode,omitempty"`
+ // TaxPercent undocumented
+ TaxPercent *int `json:"taxPercent,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // AmountIncludingTax undocumented
+ AmountIncludingTax *int `json:"amountIncludingTax,omitempty"`
+ // InvoiceDiscountAllocation undocumented
+ InvoiceDiscountAllocation *int `json:"invoiceDiscountAllocation,omitempty"`
+ // NetAmount undocumented
+ NetAmount *int `json:"netAmount,omitempty"`
+ // NetTaxAmount undocumented
+ NetTaxAmount *int `json:"netTaxAmount,omitempty"`
+ // NetAmountIncludingTax undocumented
+ NetAmountIncludingTax *int `json:"netAmountIncludingTax,omitempty"`
+ // ShipmentDate undocumented
+ ShipmentDate *time.Time `json:"shipmentDate,omitempty"`
+ // ShippedQuantity undocumented
+ ShippedQuantity *int `json:"shippedQuantity,omitempty"`
+ // InvoicedQuantity undocumented
+ InvoicedQuantity *int `json:"invoicedQuantity,omitempty"`
+ // InvoiceQuantity undocumented
+ InvoiceQuantity *int `json:"invoiceQuantity,omitempty"`
+ // ShipQuantity undocumented
+ ShipQuantity *int `json:"shipQuantity,omitempty"`
+ // Item undocumented
+ Item *Item `json:"item,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesOrderLineRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesOrderLineRequest.go
new file mode 100644
index 00000000..e8f2e9e9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesOrderLineRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SalesOrderLineRequestBuilder is request builder for SalesOrderLine
+type SalesOrderLineRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SalesOrderLineRequest
+func (b *SalesOrderLineRequestBuilder) Request() *SalesOrderLineRequest {
+ return &SalesOrderLineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SalesOrderLineRequest is request for SalesOrderLine
+type SalesOrderLineRequest struct{ BaseRequest }
+
+// Get performs GET request for SalesOrderLine
+func (r *SalesOrderLineRequest) Get(ctx context.Context) (resObj *SalesOrderLine, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SalesOrderLine
+func (r *SalesOrderLineRequest) Update(ctx context.Context, reqObj *SalesOrderLine) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SalesOrderLine
+func (r *SalesOrderLineRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Account is navigation property
+func (b *SalesOrderLineRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
+
+// Item is navigation property
+func (b *SalesOrderLineRequestBuilder) Item() *ItemRequestBuilder {
+ bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/item"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesOrderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesOrderModel.go
new file mode 100644
index 00000000..3a4d5856
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesOrderModel.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SalesOrder undocumented
+type SalesOrder struct {
+ // Entity is the base model of SalesOrder
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // ExternalDocumentNumber undocumented
+ ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"`
+ // OrderDate undocumented
+ OrderDate *time.Time `json:"orderDate,omitempty"`
+ // CustomerID undocumented
+ CustomerID *UUID `json:"customerId,omitempty"`
+ // CustomerNumber undocumented
+ CustomerNumber *string `json:"customerNumber,omitempty"`
+ // CustomerName undocumented
+ CustomerName *string `json:"customerName,omitempty"`
+ // BillToName undocumented
+ BillToName *string `json:"billToName,omitempty"`
+ // BillToCustomerID undocumented
+ BillToCustomerID *UUID `json:"billToCustomerId,omitempty"`
+ // BillToCustomerNumber undocumented
+ BillToCustomerNumber *string `json:"billToCustomerNumber,omitempty"`
+ // ShipToName undocumented
+ ShipToName *string `json:"shipToName,omitempty"`
+ // ShipToContact undocumented
+ ShipToContact *string `json:"shipToContact,omitempty"`
+ // SellingPostalAddress undocumented
+ SellingPostalAddress *PostalAddressType `json:"sellingPostalAddress,omitempty"`
+ // BillingPostalAddress undocumented
+ BillingPostalAddress *PostalAddressType `json:"billingPostalAddress,omitempty"`
+ // ShippingPostalAddress undocumented
+ ShippingPostalAddress *PostalAddressType `json:"shippingPostalAddress,omitempty"`
+ // CurrencyID undocumented
+ CurrencyID *UUID `json:"currencyId,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // PricesIncludeTax undocumented
+ PricesIncludeTax *bool `json:"pricesIncludeTax,omitempty"`
+ // PaymentTermsID undocumented
+ PaymentTermsID *UUID `json:"paymentTermsId,omitempty"`
+ // Salesperson undocumented
+ Salesperson *string `json:"salesperson,omitempty"`
+ // PartialShipping undocumented
+ PartialShipping *bool `json:"partialShipping,omitempty"`
+ // RequestedDeliveryDate undocumented
+ RequestedDeliveryDate *time.Time `json:"requestedDeliveryDate,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // TotalAmountExcludingTax undocumented
+ TotalAmountExcludingTax *int `json:"totalAmountExcludingTax,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // TotalAmountIncludingTax undocumented
+ TotalAmountIncludingTax *int `json:"totalAmountIncludingTax,omitempty"`
+ // FullyShipped undocumented
+ FullyShipped *bool `json:"fullyShipped,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // SalesOrderLines undocumented
+ SalesOrderLines []SalesOrderLine `json:"salesOrderLines,omitempty"`
+ // Customer undocumented
+ Customer *Customer `json:"customer,omitempty"`
+ // Currency undocumented
+ Currency *Currency `json:"currency,omitempty"`
+ // PaymentTerm undocumented
+ PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesOrderRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesOrderRequest.go
new file mode 100644
index 00000000..1f9349d7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesOrderRequest.go
@@ -0,0 +1,160 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SalesOrderRequestBuilder is request builder for SalesOrder
+type SalesOrderRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SalesOrderRequest
+func (b *SalesOrderRequestBuilder) Request() *SalesOrderRequest {
+ return &SalesOrderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SalesOrderRequest is request for SalesOrder
+type SalesOrderRequest struct{ BaseRequest }
+
+// Get performs GET request for SalesOrder
+func (r *SalesOrderRequest) Get(ctx context.Context) (resObj *SalesOrder, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SalesOrder
+func (r *SalesOrderRequest) Update(ctx context.Context, reqObj *SalesOrder) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SalesOrder
+func (r *SalesOrderRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Currency is navigation property
+func (b *SalesOrderRequestBuilder) Currency() *CurrencyRequestBuilder {
+ bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/currency"
+ return bb
+}
+
+// Customer is navigation property
+func (b *SalesOrderRequestBuilder) Customer() *CustomerRequestBuilder {
+ bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customer"
+ return bb
+}
+
+// PaymentTerm is navigation property
+func (b *SalesOrderRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder {
+ bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentTerm"
+ return bb
+}
+
+// SalesOrderLines returns request builder for SalesOrderLine collection
+func (b *SalesOrderRequestBuilder) SalesOrderLines() *SalesOrderSalesOrderLinesCollectionRequestBuilder {
+ bb := &SalesOrderSalesOrderLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesOrderLines"
+ return bb
+}
+
+// SalesOrderSalesOrderLinesCollectionRequestBuilder is request builder for SalesOrderLine collection
+type SalesOrderSalesOrderLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesOrderLine collection
+func (b *SalesOrderSalesOrderLinesCollectionRequestBuilder) Request() *SalesOrderSalesOrderLinesCollectionRequest {
+ return &SalesOrderSalesOrderLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesOrderLine item
+func (b *SalesOrderSalesOrderLinesCollectionRequestBuilder) ID(id string) *SalesOrderLineRequestBuilder {
+ bb := &SalesOrderLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SalesOrderSalesOrderLinesCollectionRequest is request for SalesOrderLine collection
+type SalesOrderSalesOrderLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesOrderLine collection
+func (r *SalesOrderSalesOrderLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SalesOrderLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesOrderLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesOrderLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesOrderLine collection
+func (r *SalesOrderSalesOrderLinesCollectionRequest) Get(ctx context.Context) ([]SalesOrderLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SalesOrderLine collection
+func (r *SalesOrderSalesOrderLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesOrderLine) (resObj *SalesOrderLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesQuoteAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesQuoteAction.go
new file mode 100644
index 00000000..2641da0a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesQuoteAction.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SalesQuoteMakeInvoiceRequestParameter undocumented
+type SalesQuoteMakeInvoiceRequestParameter struct {
+}
+
+// SalesQuoteSendRequestParameter undocumented
+type SalesQuoteSendRequestParameter struct {
+}
+
+//
+type SalesQuoteMakeInvoiceRequestBuilder struct{ BaseRequestBuilder }
+
+// MakeInvoice action undocumented
+func (b *SalesQuoteRequestBuilder) MakeInvoice(reqObj *SalesQuoteMakeInvoiceRequestParameter) *SalesQuoteMakeInvoiceRequestBuilder {
+ bb := &SalesQuoteMakeInvoiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/makeInvoice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SalesQuoteMakeInvoiceRequest struct{ BaseRequest }
+
+//
+func (b *SalesQuoteMakeInvoiceRequestBuilder) Request() *SalesQuoteMakeInvoiceRequest {
+ return &SalesQuoteMakeInvoiceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SalesQuoteMakeInvoiceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SalesQuoteSendRequestBuilder struct{ BaseRequestBuilder }
+
+// Send action undocumented
+func (b *SalesQuoteRequestBuilder) Send(reqObj *SalesQuoteSendRequestParameter) *SalesQuoteSendRequestBuilder {
+ bb := &SalesQuoteSendRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/send"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SalesQuoteSendRequest struct{ BaseRequest }
+
+//
+func (b *SalesQuoteSendRequestBuilder) Request() *SalesQuoteSendRequest {
+ return &SalesQuoteSendRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SalesQuoteSendRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesQuoteLineModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesQuoteLineModel.go
new file mode 100644
index 00000000..c622a210
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesQuoteLineModel.go
@@ -0,0 +1,53 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SalesQuoteLine undocumented
+type SalesQuoteLine struct {
+ // Entity is the base model of SalesQuoteLine
+ Entity
+ // DocumentID undocumented
+ DocumentID *UUID `json:"documentId,omitempty"`
+ // Sequence undocumented
+ Sequence *int `json:"sequence,omitempty"`
+ // ItemID undocumented
+ ItemID *UUID `json:"itemId,omitempty"`
+ // AccountID undocumented
+ AccountID *UUID `json:"accountId,omitempty"`
+ // LineType undocumented
+ LineType *string `json:"lineType,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // UnitOfMeasureID undocumented
+ UnitOfMeasureID *UUID `json:"unitOfMeasureId,omitempty"`
+ // UnitPrice undocumented
+ UnitPrice *int `json:"unitPrice,omitempty"`
+ // Quantity undocumented
+ Quantity *int `json:"quantity,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountPercent undocumented
+ DiscountPercent *int `json:"discountPercent,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // AmountExcludingTax undocumented
+ AmountExcludingTax *int `json:"amountExcludingTax,omitempty"`
+ // TaxCode undocumented
+ TaxCode *string `json:"taxCode,omitempty"`
+ // TaxPercent undocumented
+ TaxPercent *int `json:"taxPercent,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // AmountIncludingTax undocumented
+ AmountIncludingTax *int `json:"amountIncludingTax,omitempty"`
+ // NetAmount undocumented
+ NetAmount *int `json:"netAmount,omitempty"`
+ // NetTaxAmount undocumented
+ NetTaxAmount *int `json:"netTaxAmount,omitempty"`
+ // NetAmountIncludingTax undocumented
+ NetAmountIncludingTax *int `json:"netAmountIncludingTax,omitempty"`
+ // Item undocumented
+ Item *Item `json:"item,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesQuoteLineRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesQuoteLineRequest.go
new file mode 100644
index 00000000..dbcbee20
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesQuoteLineRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SalesQuoteLineRequestBuilder is request builder for SalesQuoteLine
+type SalesQuoteLineRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SalesQuoteLineRequest
+func (b *SalesQuoteLineRequestBuilder) Request() *SalesQuoteLineRequest {
+ return &SalesQuoteLineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SalesQuoteLineRequest is request for SalesQuoteLine
+type SalesQuoteLineRequest struct{ BaseRequest }
+
+// Get performs GET request for SalesQuoteLine
+func (r *SalesQuoteLineRequest) Get(ctx context.Context) (resObj *SalesQuoteLine, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SalesQuoteLine
+func (r *SalesQuoteLineRequest) Update(ctx context.Context, reqObj *SalesQuoteLine) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SalesQuoteLine
+func (r *SalesQuoteLineRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Account is navigation property
+func (b *SalesQuoteLineRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
+
+// Item is navigation property
+func (b *SalesQuoteLineRequestBuilder) Item() *ItemRequestBuilder {
+ bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/item"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesQuoteModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesQuoteModel.go
new file mode 100644
index 00000000..92040855
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesQuoteModel.go
@@ -0,0 +1,83 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SalesQuote undocumented
+type SalesQuote struct {
+ // Entity is the base model of SalesQuote
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // ExternalDocumentNumber undocumented
+ ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"`
+ // DocumentDate undocumented
+ DocumentDate *time.Time `json:"documentDate,omitempty"`
+ // DueDate undocumented
+ DueDate *time.Time `json:"dueDate,omitempty"`
+ // CustomerID undocumented
+ CustomerID *UUID `json:"customerId,omitempty"`
+ // CustomerNumber undocumented
+ CustomerNumber *string `json:"customerNumber,omitempty"`
+ // CustomerName undocumented
+ CustomerName *string `json:"customerName,omitempty"`
+ // BillToName undocumented
+ BillToName *string `json:"billToName,omitempty"`
+ // BillToCustomerID undocumented
+ BillToCustomerID *UUID `json:"billToCustomerId,omitempty"`
+ // BillToCustomerNumber undocumented
+ BillToCustomerNumber *string `json:"billToCustomerNumber,omitempty"`
+ // ShipToName undocumented
+ ShipToName *string `json:"shipToName,omitempty"`
+ // ShipToContact undocumented
+ ShipToContact *string `json:"shipToContact,omitempty"`
+ // SellingPostalAddress undocumented
+ SellingPostalAddress *PostalAddressType `json:"sellingPostalAddress,omitempty"`
+ // BillingPostalAddress undocumented
+ BillingPostalAddress *PostalAddressType `json:"billingPostalAddress,omitempty"`
+ // ShippingPostalAddress undocumented
+ ShippingPostalAddress *PostalAddressType `json:"shippingPostalAddress,omitempty"`
+ // CurrencyID undocumented
+ CurrencyID *UUID `json:"currencyId,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // PaymentTermsID undocumented
+ PaymentTermsID *UUID `json:"paymentTermsId,omitempty"`
+ // ShipmentMethodID undocumented
+ ShipmentMethodID *UUID `json:"shipmentMethodId,omitempty"`
+ // Salesperson undocumented
+ Salesperson *string `json:"salesperson,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // TotalAmountExcludingTax undocumented
+ TotalAmountExcludingTax *int `json:"totalAmountExcludingTax,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // TotalAmountIncludingTax undocumented
+ TotalAmountIncludingTax *int `json:"totalAmountIncludingTax,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // SentDate undocumented
+ SentDate *time.Time `json:"sentDate,omitempty"`
+ // ValidUntilDate undocumented
+ ValidUntilDate *time.Time `json:"validUntilDate,omitempty"`
+ // AcceptedDate undocumented
+ AcceptedDate *time.Time `json:"acceptedDate,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // SalesQuoteLines undocumented
+ SalesQuoteLines []SalesQuoteLine `json:"salesQuoteLines,omitempty"`
+ // Customer undocumented
+ Customer *Customer `json:"customer,omitempty"`
+ // Currency undocumented
+ Currency *Currency `json:"currency,omitempty"`
+ // PaymentTerm undocumented
+ PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"`
+ // ShipmentMethod undocumented
+ ShipmentMethod *ShipmentMethod `json:"shipmentMethod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SalesQuoteRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SalesQuoteRequest.go
new file mode 100644
index 00000000..cbe25eee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SalesQuoteRequest.go
@@ -0,0 +1,167 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SalesQuoteRequestBuilder is request builder for SalesQuote
+type SalesQuoteRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SalesQuoteRequest
+func (b *SalesQuoteRequestBuilder) Request() *SalesQuoteRequest {
+ return &SalesQuoteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SalesQuoteRequest is request for SalesQuote
+type SalesQuoteRequest struct{ BaseRequest }
+
+// Get performs GET request for SalesQuote
+func (r *SalesQuoteRequest) Get(ctx context.Context) (resObj *SalesQuote, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SalesQuote
+func (r *SalesQuoteRequest) Update(ctx context.Context, reqObj *SalesQuote) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SalesQuote
+func (r *SalesQuoteRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Currency is navigation property
+func (b *SalesQuoteRequestBuilder) Currency() *CurrencyRequestBuilder {
+ bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/currency"
+ return bb
+}
+
+// Customer is navigation property
+func (b *SalesQuoteRequestBuilder) Customer() *CustomerRequestBuilder {
+ bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customer"
+ return bb
+}
+
+// PaymentTerm is navigation property
+func (b *SalesQuoteRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder {
+ bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentTerm"
+ return bb
+}
+
+// SalesQuoteLines returns request builder for SalesQuoteLine collection
+func (b *SalesQuoteRequestBuilder) SalesQuoteLines() *SalesQuoteSalesQuoteLinesCollectionRequestBuilder {
+ bb := &SalesQuoteSalesQuoteLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesQuoteLines"
+ return bb
+}
+
+// SalesQuoteSalesQuoteLinesCollectionRequestBuilder is request builder for SalesQuoteLine collection
+type SalesQuoteSalesQuoteLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesQuoteLine collection
+func (b *SalesQuoteSalesQuoteLinesCollectionRequestBuilder) Request() *SalesQuoteSalesQuoteLinesCollectionRequest {
+ return &SalesQuoteSalesQuoteLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesQuoteLine item
+func (b *SalesQuoteSalesQuoteLinesCollectionRequestBuilder) ID(id string) *SalesQuoteLineRequestBuilder {
+ bb := &SalesQuoteLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SalesQuoteSalesQuoteLinesCollectionRequest is request for SalesQuoteLine collection
+type SalesQuoteSalesQuoteLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesQuoteLine collection
+func (r *SalesQuoteSalesQuoteLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SalesQuoteLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesQuoteLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesQuoteLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SalesQuoteLine collection
+func (r *SalesQuoteSalesQuoteLinesCollectionRequest) Get(ctx context.Context) ([]SalesQuoteLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SalesQuoteLine collection
+func (r *SalesQuoteSalesQuoteLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesQuoteLine) (resObj *SalesQuoteLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ShipmentMethod is navigation property
+func (b *SalesQuoteRequestBuilder) ShipmentMethod() *ShipmentMethodRequestBuilder {
+ bb := &ShipmentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/shipmentMethod"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleAction.go
new file mode 100644
index 00000000..a625d8d3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleAction.go
@@ -0,0 +1,44 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "time"
+)
+
+// ScheduleShareRequestParameter undocumented
+type ScheduleShareRequestParameter struct {
+ // NotifyTeam undocumented
+ NotifyTeam *bool `json:"notifyTeam,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+}
+
+//
+type ScheduleShareRequestBuilder struct{ BaseRequestBuilder }
+
+// Share action undocumented
+func (b *ScheduleRequestBuilder) Share(reqObj *ScheduleShareRequestParameter) *ScheduleShareRequestBuilder {
+ bb := &ScheduleShareRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/share"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ScheduleShareRequest struct{ BaseRequest }
+
+//
+func (b *ScheduleShareRequestBuilder) Request() *ScheduleShareRequest {
+ return &ScheduleShareRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ScheduleShareRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleChangeRequestActorEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleChangeRequestActorEnum.go
new file mode 100644
index 00000000..b24f321c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleChangeRequestActorEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScheduleChangeRequestActor undocumented
+type ScheduleChangeRequestActor int
+
+const (
+ // ScheduleChangeRequestActorVSender undocumented
+ ScheduleChangeRequestActorVSender ScheduleChangeRequestActor = 0
+ // ScheduleChangeRequestActorVRecipient undocumented
+ ScheduleChangeRequestActorVRecipient ScheduleChangeRequestActor = 1
+ // ScheduleChangeRequestActorVManager undocumented
+ ScheduleChangeRequestActorVManager ScheduleChangeRequestActor = 2
+ // ScheduleChangeRequestActorVSystem undocumented
+ ScheduleChangeRequestActorVSystem ScheduleChangeRequestActor = 3
+ // ScheduleChangeRequestActorVUnknownFutureValue undocumented
+ ScheduleChangeRequestActorVUnknownFutureValue ScheduleChangeRequestActor = 4
+)
+
+// ScheduleChangeRequestActorPSender returns a pointer to ScheduleChangeRequestActorVSender
+func ScheduleChangeRequestActorPSender() *ScheduleChangeRequestActor {
+ v := ScheduleChangeRequestActorVSender
+ return &v
+}
+
+// ScheduleChangeRequestActorPRecipient returns a pointer to ScheduleChangeRequestActorVRecipient
+func ScheduleChangeRequestActorPRecipient() *ScheduleChangeRequestActor {
+ v := ScheduleChangeRequestActorVRecipient
+ return &v
+}
+
+// ScheduleChangeRequestActorPManager returns a pointer to ScheduleChangeRequestActorVManager
+func ScheduleChangeRequestActorPManager() *ScheduleChangeRequestActor {
+ v := ScheduleChangeRequestActorVManager
+ return &v
+}
+
+// ScheduleChangeRequestActorPSystem returns a pointer to ScheduleChangeRequestActorVSystem
+func ScheduleChangeRequestActorPSystem() *ScheduleChangeRequestActor {
+ v := ScheduleChangeRequestActorVSystem
+ return &v
+}
+
+// ScheduleChangeRequestActorPUnknownFutureValue returns a pointer to ScheduleChangeRequestActorVUnknownFutureValue
+func ScheduleChangeRequestActorPUnknownFutureValue() *ScheduleChangeRequestActor {
+ v := ScheduleChangeRequestActorVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleChangeRequestObjectAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleChangeRequestObjectAction.go
new file mode 100644
index 00000000..147365d7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleChangeRequestObjectAction.go
@@ -0,0 +1,69 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ScheduleChangeRequestObjectApproveRequestParameter undocumented
+type ScheduleChangeRequestObjectApproveRequestParameter struct {
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
+
+// ScheduleChangeRequestObjectDeclineRequestParameter undocumented
+type ScheduleChangeRequestObjectDeclineRequestParameter struct {
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
+
+//
+type ScheduleChangeRequestObjectApproveRequestBuilder struct{ BaseRequestBuilder }
+
+// Approve action undocumented
+func (b *ScheduleChangeRequestObjectRequestBuilder) Approve(reqObj *ScheduleChangeRequestObjectApproveRequestParameter) *ScheduleChangeRequestObjectApproveRequestBuilder {
+ bb := &ScheduleChangeRequestObjectApproveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/approve"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ScheduleChangeRequestObjectApproveRequest struct{ BaseRequest }
+
+//
+func (b *ScheduleChangeRequestObjectApproveRequestBuilder) Request() *ScheduleChangeRequestObjectApproveRequest {
+ return &ScheduleChangeRequestObjectApproveRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ScheduleChangeRequestObjectApproveRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ScheduleChangeRequestObjectDeclineRequestBuilder struct{ BaseRequestBuilder }
+
+// Decline action undocumented
+func (b *ScheduleChangeRequestObjectRequestBuilder) Decline(reqObj *ScheduleChangeRequestObjectDeclineRequestParameter) *ScheduleChangeRequestObjectDeclineRequestBuilder {
+ bb := &ScheduleChangeRequestObjectDeclineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/decline"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ScheduleChangeRequestObjectDeclineRequest struct{ BaseRequest }
+
+//
+func (b *ScheduleChangeRequestObjectDeclineRequestBuilder) Request() *ScheduleChangeRequestObjectDeclineRequest {
+ return &ScheduleChangeRequestObjectDeclineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ScheduleChangeRequestObjectDeclineRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleChangeRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleChangeRequestObjectModel.go
new file mode 100644
index 00000000..0910232b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleChangeRequestObjectModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ScheduleChangeRequestObject undocumented
+type ScheduleChangeRequestObject struct {
+ // ChangeTrackedEntity is the base model of ScheduleChangeRequestObject
+ ChangeTrackedEntity
+ // AssignedTo undocumented
+ AssignedTo *ScheduleChangeRequestActor `json:"assignedTo,omitempty"`
+ // State undocumented
+ State *ScheduleChangeState `json:"state,omitempty"`
+ // SenderMessage undocumented
+ SenderMessage *string `json:"senderMessage,omitempty"`
+ // SenderDateTime undocumented
+ SenderDateTime *time.Time `json:"senderDateTime,omitempty"`
+ // ManagerActionMessage undocumented
+ ManagerActionMessage *string `json:"managerActionMessage,omitempty"`
+ // ManagerActionDateTime undocumented
+ ManagerActionDateTime *time.Time `json:"managerActionDateTime,omitempty"`
+ // SenderUserID undocumented
+ SenderUserID *string `json:"senderUserId,omitempty"`
+ // ManagerUserID undocumented
+ ManagerUserID *string `json:"managerUserId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleChangeRequestObjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleChangeRequestObjectRequest.go
new file mode 100644
index 00000000..6504bc2e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleChangeRequestObjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ScheduleChangeRequestObjectRequestBuilder is request builder for ScheduleChangeRequestObject
+type ScheduleChangeRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ScheduleChangeRequestObjectRequest
+func (b *ScheduleChangeRequestObjectRequestBuilder) Request() *ScheduleChangeRequestObjectRequest {
+ return &ScheduleChangeRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ScheduleChangeRequestObjectRequest is request for ScheduleChangeRequestObject
+type ScheduleChangeRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for ScheduleChangeRequestObject
+func (r *ScheduleChangeRequestObjectRequest) Get(ctx context.Context) (resObj *ScheduleChangeRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ScheduleChangeRequestObject
+func (r *ScheduleChangeRequestObjectRequest) Update(ctx context.Context, reqObj *ScheduleChangeRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ScheduleChangeRequestObject
+func (r *ScheduleChangeRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleChangeStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleChangeStateEnum.go
new file mode 100644
index 00000000..81c1b871
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleChangeStateEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScheduleChangeState undocumented
+type ScheduleChangeState int
+
+const (
+ // ScheduleChangeStateVPending undocumented
+ ScheduleChangeStateVPending ScheduleChangeState = 0
+ // ScheduleChangeStateVApproved undocumented
+ ScheduleChangeStateVApproved ScheduleChangeState = 1
+ // ScheduleChangeStateVDeclined undocumented
+ ScheduleChangeStateVDeclined ScheduleChangeState = 2
+ // ScheduleChangeStateVUnknownFutureValue undocumented
+ ScheduleChangeStateVUnknownFutureValue ScheduleChangeState = 3
+)
+
+// ScheduleChangeStatePPending returns a pointer to ScheduleChangeStateVPending
+func ScheduleChangeStatePPending() *ScheduleChangeState {
+ v := ScheduleChangeStateVPending
+ return &v
+}
+
+// ScheduleChangeStatePApproved returns a pointer to ScheduleChangeStateVApproved
+func ScheduleChangeStatePApproved() *ScheduleChangeState {
+ v := ScheduleChangeStateVApproved
+ return &v
+}
+
+// ScheduleChangeStatePDeclined returns a pointer to ScheduleChangeStateVDeclined
+func ScheduleChangeStatePDeclined() *ScheduleChangeState {
+ v := ScheduleChangeStateVDeclined
+ return &v
+}
+
+// ScheduleChangeStatePUnknownFutureValue returns a pointer to ScheduleChangeStateVUnknownFutureValue
+func ScheduleChangeStatePUnknownFutureValue() *ScheduleChangeState {
+ v := ScheduleChangeStateVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleEntityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleEntityModel.go
new file mode 100644
index 00000000..6581ede6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleEntityModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ScheduleEntity undocumented
+type ScheduleEntity struct {
+ // Object is the base model of ScheduleEntity
+ Object
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // Theme undocumented
+ Theme *ScheduleEntityTheme `json:"theme,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleEntityThemeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleEntityThemeEnum.go
new file mode 100644
index 00000000..528a9e1b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleEntityThemeEnum.go
@@ -0,0 +1,113 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScheduleEntityTheme undocumented
+type ScheduleEntityTheme int
+
+const (
+ // ScheduleEntityThemeVWhite undocumented
+ ScheduleEntityThemeVWhite ScheduleEntityTheme = 0
+ // ScheduleEntityThemeVBlue undocumented
+ ScheduleEntityThemeVBlue ScheduleEntityTheme = 1
+ // ScheduleEntityThemeVGreen undocumented
+ ScheduleEntityThemeVGreen ScheduleEntityTheme = 2
+ // ScheduleEntityThemeVPurple undocumented
+ ScheduleEntityThemeVPurple ScheduleEntityTheme = 3
+ // ScheduleEntityThemeVPink undocumented
+ ScheduleEntityThemeVPink ScheduleEntityTheme = 4
+ // ScheduleEntityThemeVYellow undocumented
+ ScheduleEntityThemeVYellow ScheduleEntityTheme = 5
+ // ScheduleEntityThemeVGray undocumented
+ ScheduleEntityThemeVGray ScheduleEntityTheme = 6
+ // ScheduleEntityThemeVDarkBlue undocumented
+ ScheduleEntityThemeVDarkBlue ScheduleEntityTheme = 7
+ // ScheduleEntityThemeVDarkGreen undocumented
+ ScheduleEntityThemeVDarkGreen ScheduleEntityTheme = 8
+ // ScheduleEntityThemeVDarkPurple undocumented
+ ScheduleEntityThemeVDarkPurple ScheduleEntityTheme = 9
+ // ScheduleEntityThemeVDarkPink undocumented
+ ScheduleEntityThemeVDarkPink ScheduleEntityTheme = 10
+ // ScheduleEntityThemeVDarkYellow undocumented
+ ScheduleEntityThemeVDarkYellow ScheduleEntityTheme = 11
+ // ScheduleEntityThemeVUnknownFutureValue undocumented
+ ScheduleEntityThemeVUnknownFutureValue ScheduleEntityTheme = 12
+)
+
+// ScheduleEntityThemePWhite returns a pointer to ScheduleEntityThemeVWhite
+func ScheduleEntityThemePWhite() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVWhite
+ return &v
+}
+
+// ScheduleEntityThemePBlue returns a pointer to ScheduleEntityThemeVBlue
+func ScheduleEntityThemePBlue() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVBlue
+ return &v
+}
+
+// ScheduleEntityThemePGreen returns a pointer to ScheduleEntityThemeVGreen
+func ScheduleEntityThemePGreen() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVGreen
+ return &v
+}
+
+// ScheduleEntityThemePPurple returns a pointer to ScheduleEntityThemeVPurple
+func ScheduleEntityThemePPurple() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVPurple
+ return &v
+}
+
+// ScheduleEntityThemePPink returns a pointer to ScheduleEntityThemeVPink
+func ScheduleEntityThemePPink() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVPink
+ return &v
+}
+
+// ScheduleEntityThemePYellow returns a pointer to ScheduleEntityThemeVYellow
+func ScheduleEntityThemePYellow() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVYellow
+ return &v
+}
+
+// ScheduleEntityThemePGray returns a pointer to ScheduleEntityThemeVGray
+func ScheduleEntityThemePGray() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVGray
+ return &v
+}
+
+// ScheduleEntityThemePDarkBlue returns a pointer to ScheduleEntityThemeVDarkBlue
+func ScheduleEntityThemePDarkBlue() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVDarkBlue
+ return &v
+}
+
+// ScheduleEntityThemePDarkGreen returns a pointer to ScheduleEntityThemeVDarkGreen
+func ScheduleEntityThemePDarkGreen() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVDarkGreen
+ return &v
+}
+
+// ScheduleEntityThemePDarkPurple returns a pointer to ScheduleEntityThemeVDarkPurple
+func ScheduleEntityThemePDarkPurple() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVDarkPurple
+ return &v
+}
+
+// ScheduleEntityThemePDarkPink returns a pointer to ScheduleEntityThemeVDarkPink
+func ScheduleEntityThemePDarkPink() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVDarkPink
+ return &v
+}
+
+// ScheduleEntityThemePDarkYellow returns a pointer to ScheduleEntityThemeVDarkYellow
+func ScheduleEntityThemePDarkYellow() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVDarkYellow
+ return &v
+}
+
+// ScheduleEntityThemePUnknownFutureValue returns a pointer to ScheduleEntityThemeVUnknownFutureValue
+func ScheduleEntityThemePUnknownFutureValue() *ScheduleEntityTheme {
+ v := ScheduleEntityThemeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleInformationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleInformationModel.go
new file mode 100644
index 00000000..77c4eb2b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleInformationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScheduleInformation undocumented
+type ScheduleInformation struct {
+ // Object is the base model of ScheduleInformation
+ Object
+ // ScheduleID undocumented
+ ScheduleID *string `json:"scheduleId,omitempty"`
+ // ScheduleItems undocumented
+ ScheduleItems []ScheduleItem `json:"scheduleItems,omitempty"`
+ // AvailabilityView undocumented
+ AvailabilityView *string `json:"availabilityView,omitempty"`
+ // Error undocumented
+ Error *FreeBusyError `json:"error,omitempty"`
+ // WorkingHours undocumented
+ WorkingHours *WorkingHours `json:"workingHours,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleItemModel.go
new file mode 100644
index 00000000..649b2bc2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleItemModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScheduleItem undocumented
+type ScheduleItem struct {
+ // Object is the base model of ScheduleItem
+ Object
+ // Start undocumented
+ Start *DateTimeTimeZone `json:"start,omitempty"`
+ // End undocumented
+ End *DateTimeTimeZone `json:"end,omitempty"`
+ // IsPrivate undocumented
+ IsPrivate *bool `json:"isPrivate,omitempty"`
+ // Status undocumented
+ Status *FreeBusyStatus `json:"status,omitempty"`
+ // Subject undocumented
+ Subject *string `json:"subject,omitempty"`
+ // Location undocumented
+ Location *string `json:"location,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleModel.go
new file mode 100644
index 00000000..0accc93e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleModel.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Schedule undocumented
+type Schedule struct {
+ // Entity is the base model of Schedule
+ Entity
+ // Enabled undocumented
+ Enabled *bool `json:"enabled,omitempty"`
+ // TimeZone undocumented
+ TimeZone *string `json:"timeZone,omitempty"`
+ // ProvisionStatus undocumented
+ ProvisionStatus *OperationStatus `json:"provisionStatus,omitempty"`
+ // ProvisionStatusCode undocumented
+ ProvisionStatusCode *string `json:"provisionStatusCode,omitempty"`
+ // WorkforceIntegrationIDs undocumented
+ WorkforceIntegrationIDs []string `json:"workforceIntegrationIds,omitempty"`
+ // TimeClockEnabled undocumented
+ TimeClockEnabled *bool `json:"timeClockEnabled,omitempty"`
+ // OpenShiftsEnabled undocumented
+ OpenShiftsEnabled *bool `json:"openShiftsEnabled,omitempty"`
+ // SwapShiftsRequestsEnabled undocumented
+ SwapShiftsRequestsEnabled *bool `json:"swapShiftsRequestsEnabled,omitempty"`
+ // OfferShiftRequestsEnabled undocumented
+ OfferShiftRequestsEnabled *bool `json:"offerShiftRequestsEnabled,omitempty"`
+ // TimeOffRequestsEnabled undocumented
+ TimeOffRequestsEnabled *bool `json:"timeOffRequestsEnabled,omitempty"`
+ // Shifts undocumented
+ Shifts []Shift `json:"shifts,omitempty"`
+ // OpenShifts undocumented
+ OpenShifts []OpenShift `json:"openShifts,omitempty"`
+ // TimesOff undocumented
+ TimesOff []TimeOff `json:"timesOff,omitempty"`
+ // TimeOffReasons undocumented
+ TimeOffReasons []TimeOffReason `json:"timeOffReasons,omitempty"`
+ // SchedulingGroups undocumented
+ SchedulingGroups []SchedulingGroup `json:"schedulingGroups,omitempty"`
+ // SwapShiftsChangeRequests undocumented
+ SwapShiftsChangeRequests []SwapShiftsChangeRequestObject `json:"swapShiftsChangeRequests,omitempty"`
+ // OpenShiftChangeRequests undocumented
+ OpenShiftChangeRequests []OpenShiftChangeRequestObject `json:"openShiftChangeRequests,omitempty"`
+ // TimeOffRequests undocumented
+ TimeOffRequests []TimeOffRequestObject `json:"timeOffRequests,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleRequest.go
new file mode 100644
index 00000000..b59653ae
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ScheduleRequest.go
@@ -0,0 +1,797 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ScheduleRequestBuilder is request builder for Schedule
+type ScheduleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ScheduleRequest
+func (b *ScheduleRequestBuilder) Request() *ScheduleRequest {
+ return &ScheduleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ScheduleRequest is request for Schedule
+type ScheduleRequest struct{ BaseRequest }
+
+// Get performs GET request for Schedule
+func (r *ScheduleRequest) Get(ctx context.Context) (resObj *Schedule, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Schedule
+func (r *ScheduleRequest) Update(ctx context.Context, reqObj *Schedule) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Schedule
+func (r *ScheduleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// OpenShiftChangeRequests returns request builder for OpenShiftChangeRequestObject collection
+func (b *ScheduleRequestBuilder) OpenShiftChangeRequests() *ScheduleOpenShiftChangeRequestsCollectionRequestBuilder {
+ bb := &ScheduleOpenShiftChangeRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/openShiftChangeRequests"
+ return bb
+}
+
+// ScheduleOpenShiftChangeRequestsCollectionRequestBuilder is request builder for OpenShiftChangeRequestObject collection
+type ScheduleOpenShiftChangeRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OpenShiftChangeRequestObject collection
+func (b *ScheduleOpenShiftChangeRequestsCollectionRequestBuilder) Request() *ScheduleOpenShiftChangeRequestsCollectionRequest {
+ return &ScheduleOpenShiftChangeRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OpenShiftChangeRequestObject item
+func (b *ScheduleOpenShiftChangeRequestsCollectionRequestBuilder) ID(id string) *OpenShiftChangeRequestObjectRequestBuilder {
+ bb := &OpenShiftChangeRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ScheduleOpenShiftChangeRequestsCollectionRequest is request for OpenShiftChangeRequestObject collection
+type ScheduleOpenShiftChangeRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OpenShiftChangeRequestObject collection
+func (r *ScheduleOpenShiftChangeRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OpenShiftChangeRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OpenShiftChangeRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OpenShiftChangeRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OpenShiftChangeRequestObject collection
+func (r *ScheduleOpenShiftChangeRequestsCollectionRequest) Get(ctx context.Context) ([]OpenShiftChangeRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OpenShiftChangeRequestObject collection
+func (r *ScheduleOpenShiftChangeRequestsCollectionRequest) Add(ctx context.Context, reqObj *OpenShiftChangeRequestObject) (resObj *OpenShiftChangeRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// OpenShifts returns request builder for OpenShift collection
+func (b *ScheduleRequestBuilder) OpenShifts() *ScheduleOpenShiftsCollectionRequestBuilder {
+ bb := &ScheduleOpenShiftsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/openShifts"
+ return bb
+}
+
+// ScheduleOpenShiftsCollectionRequestBuilder is request builder for OpenShift collection
+type ScheduleOpenShiftsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OpenShift collection
+func (b *ScheduleOpenShiftsCollectionRequestBuilder) Request() *ScheduleOpenShiftsCollectionRequest {
+ return &ScheduleOpenShiftsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OpenShift item
+func (b *ScheduleOpenShiftsCollectionRequestBuilder) ID(id string) *OpenShiftRequestBuilder {
+ bb := &OpenShiftRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ScheduleOpenShiftsCollectionRequest is request for OpenShift collection
+type ScheduleOpenShiftsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OpenShift collection
+func (r *ScheduleOpenShiftsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OpenShift, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OpenShift
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OpenShift
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OpenShift collection
+func (r *ScheduleOpenShiftsCollectionRequest) Get(ctx context.Context) ([]OpenShift, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OpenShift collection
+func (r *ScheduleOpenShiftsCollectionRequest) Add(ctx context.Context, reqObj *OpenShift) (resObj *OpenShift, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SchedulingGroups returns request builder for SchedulingGroup collection
+func (b *ScheduleRequestBuilder) SchedulingGroups() *ScheduleSchedulingGroupsCollectionRequestBuilder {
+ bb := &ScheduleSchedulingGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schedulingGroups"
+ return bb
+}
+
+// ScheduleSchedulingGroupsCollectionRequestBuilder is request builder for SchedulingGroup collection
+type ScheduleSchedulingGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SchedulingGroup collection
+func (b *ScheduleSchedulingGroupsCollectionRequestBuilder) Request() *ScheduleSchedulingGroupsCollectionRequest {
+ return &ScheduleSchedulingGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SchedulingGroup item
+func (b *ScheduleSchedulingGroupsCollectionRequestBuilder) ID(id string) *SchedulingGroupRequestBuilder {
+ bb := &SchedulingGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ScheduleSchedulingGroupsCollectionRequest is request for SchedulingGroup collection
+type ScheduleSchedulingGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SchedulingGroup collection
+func (r *ScheduleSchedulingGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SchedulingGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SchedulingGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SchedulingGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SchedulingGroup collection
+func (r *ScheduleSchedulingGroupsCollectionRequest) Get(ctx context.Context) ([]SchedulingGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SchedulingGroup collection
+func (r *ScheduleSchedulingGroupsCollectionRequest) Add(ctx context.Context, reqObj *SchedulingGroup) (resObj *SchedulingGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Shifts returns request builder for Shift collection
+func (b *ScheduleRequestBuilder) Shifts() *ScheduleShiftsCollectionRequestBuilder {
+ bb := &ScheduleShiftsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/shifts"
+ return bb
+}
+
+// ScheduleShiftsCollectionRequestBuilder is request builder for Shift collection
+type ScheduleShiftsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Shift collection
+func (b *ScheduleShiftsCollectionRequestBuilder) Request() *ScheduleShiftsCollectionRequest {
+ return &ScheduleShiftsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Shift item
+func (b *ScheduleShiftsCollectionRequestBuilder) ID(id string) *ShiftRequestBuilder {
+ bb := &ShiftRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ScheduleShiftsCollectionRequest is request for Shift collection
+type ScheduleShiftsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Shift collection
+func (r *ScheduleShiftsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Shift, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Shift
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Shift
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Shift collection
+func (r *ScheduleShiftsCollectionRequest) Get(ctx context.Context) ([]Shift, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Shift collection
+func (r *ScheduleShiftsCollectionRequest) Add(ctx context.Context, reqObj *Shift) (resObj *Shift, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SwapShiftsChangeRequests returns request builder for SwapShiftsChangeRequestObject collection
+func (b *ScheduleRequestBuilder) SwapShiftsChangeRequests() *ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder {
+ bb := &ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/swapShiftsChangeRequests"
+ return bb
+}
+
+// ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder is request builder for SwapShiftsChangeRequestObject collection
+type ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SwapShiftsChangeRequestObject collection
+func (b *ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder) Request() *ScheduleSwapShiftsChangeRequestsCollectionRequest {
+ return &ScheduleSwapShiftsChangeRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SwapShiftsChangeRequestObject item
+func (b *ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder) ID(id string) *SwapShiftsChangeRequestObjectRequestBuilder {
+ bb := &SwapShiftsChangeRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ScheduleSwapShiftsChangeRequestsCollectionRequest is request for SwapShiftsChangeRequestObject collection
+type ScheduleSwapShiftsChangeRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SwapShiftsChangeRequestObject collection
+func (r *ScheduleSwapShiftsChangeRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SwapShiftsChangeRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SwapShiftsChangeRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SwapShiftsChangeRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SwapShiftsChangeRequestObject collection
+func (r *ScheduleSwapShiftsChangeRequestsCollectionRequest) Get(ctx context.Context) ([]SwapShiftsChangeRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SwapShiftsChangeRequestObject collection
+func (r *ScheduleSwapShiftsChangeRequestsCollectionRequest) Add(ctx context.Context, reqObj *SwapShiftsChangeRequestObject) (resObj *SwapShiftsChangeRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TimeOffReasons returns request builder for TimeOffReason collection
+func (b *ScheduleRequestBuilder) TimeOffReasons() *ScheduleTimeOffReasonsCollectionRequestBuilder {
+ bb := &ScheduleTimeOffReasonsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/timeOffReasons"
+ return bb
+}
+
+// ScheduleTimeOffReasonsCollectionRequestBuilder is request builder for TimeOffReason collection
+type ScheduleTimeOffReasonsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TimeOffReason collection
+func (b *ScheduleTimeOffReasonsCollectionRequestBuilder) Request() *ScheduleTimeOffReasonsCollectionRequest {
+ return &ScheduleTimeOffReasonsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TimeOffReason item
+func (b *ScheduleTimeOffReasonsCollectionRequestBuilder) ID(id string) *TimeOffReasonRequestBuilder {
+ bb := &TimeOffReasonRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ScheduleTimeOffReasonsCollectionRequest is request for TimeOffReason collection
+type ScheduleTimeOffReasonsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TimeOffReason collection
+func (r *ScheduleTimeOffReasonsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TimeOffReason, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TimeOffReason
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TimeOffReason
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TimeOffReason collection
+func (r *ScheduleTimeOffReasonsCollectionRequest) Get(ctx context.Context) ([]TimeOffReason, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TimeOffReason collection
+func (r *ScheduleTimeOffReasonsCollectionRequest) Add(ctx context.Context, reqObj *TimeOffReason) (resObj *TimeOffReason, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TimeOffRequests returns request builder for TimeOffRequestObject collection
+func (b *ScheduleRequestBuilder) TimeOffRequests() *ScheduleTimeOffRequestsCollectionRequestBuilder {
+ bb := &ScheduleTimeOffRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/timeOffRequests"
+ return bb
+}
+
+// ScheduleTimeOffRequestsCollectionRequestBuilder is request builder for TimeOffRequestObject collection
+type ScheduleTimeOffRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TimeOffRequestObject collection
+func (b *ScheduleTimeOffRequestsCollectionRequestBuilder) Request() *ScheduleTimeOffRequestsCollectionRequest {
+ return &ScheduleTimeOffRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TimeOffRequestObject item
+func (b *ScheduleTimeOffRequestsCollectionRequestBuilder) ID(id string) *TimeOffRequestObjectRequestBuilder {
+ bb := &TimeOffRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ScheduleTimeOffRequestsCollectionRequest is request for TimeOffRequestObject collection
+type ScheduleTimeOffRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TimeOffRequestObject collection
+func (r *ScheduleTimeOffRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TimeOffRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TimeOffRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TimeOffRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TimeOffRequestObject collection
+func (r *ScheduleTimeOffRequestsCollectionRequest) Get(ctx context.Context) ([]TimeOffRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TimeOffRequestObject collection
+func (r *ScheduleTimeOffRequestsCollectionRequest) Add(ctx context.Context, reqObj *TimeOffRequestObject) (resObj *TimeOffRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TimesOff returns request builder for TimeOff collection
+func (b *ScheduleRequestBuilder) TimesOff() *ScheduleTimesOffCollectionRequestBuilder {
+ bb := &ScheduleTimesOffCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/timesOff"
+ return bb
+}
+
+// ScheduleTimesOffCollectionRequestBuilder is request builder for TimeOff collection
+type ScheduleTimesOffCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TimeOff collection
+func (b *ScheduleTimesOffCollectionRequestBuilder) Request() *ScheduleTimesOffCollectionRequest {
+ return &ScheduleTimesOffCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TimeOff item
+func (b *ScheduleTimesOffCollectionRequestBuilder) ID(id string) *TimeOffRequestBuilder {
+ bb := &TimeOffRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ScheduleTimesOffCollectionRequest is request for TimeOff collection
+type ScheduleTimesOffCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TimeOff collection
+func (r *ScheduleTimesOffCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TimeOff, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TimeOff
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TimeOff
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TimeOff collection
+func (r *ScheduleTimesOffCollectionRequest) Get(ctx context.Context) ([]TimeOff, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TimeOff collection
+func (r *ScheduleTimesOffCollectionRequest) Add(ctx context.Context, reqObj *TimeOff) (resObj *TimeOff, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SchedulingGroupModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SchedulingGroupModel.go
new file mode 100644
index 00000000..12ca976a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SchedulingGroupModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SchedulingGroup undocumented
+type SchedulingGroup struct {
+ // ChangeTrackedEntity is the base model of SchedulingGroup
+ ChangeTrackedEntity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsActive undocumented
+ IsActive *bool `json:"isActive,omitempty"`
+ // UserIDs undocumented
+ UserIDs []string `json:"userIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SchedulingGroupRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SchedulingGroupRequest.go
new file mode 100644
index 00000000..4fba8a73
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SchedulingGroupRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SchedulingGroupRequestBuilder is request builder for SchedulingGroup
+type SchedulingGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SchedulingGroupRequest
+func (b *SchedulingGroupRequestBuilder) Request() *SchedulingGroupRequest {
+ return &SchedulingGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SchedulingGroupRequest is request for SchedulingGroup
+type SchedulingGroupRequest struct{ BaseRequest }
+
+// Get performs GET request for SchedulingGroup
+func (r *SchedulingGroupRequest) Get(ctx context.Context) (resObj *SchedulingGroup, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SchedulingGroup
+func (r *SchedulingGroupRequest) Update(ctx context.Context, reqObj *SchedulingGroup) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SchedulingGroup
+func (r *SchedulingGroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SchemaExtensionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SchemaExtensionModel.go
new file mode 100644
index 00000000..da711215
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SchemaExtensionModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SchemaExtension undocumented
+type SchemaExtension struct {
+ // Entity is the base model of SchemaExtension
+ Entity
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // TargetTypes undocumented
+ TargetTypes []string `json:"targetTypes,omitempty"`
+ // Properties undocumented
+ Properties []ExtensionSchemaProperty `json:"properties,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // Owner undocumented
+ Owner *string `json:"owner,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SchemaExtensionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SchemaExtensionRequest.go
new file mode 100644
index 00000000..4d818b8e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SchemaExtensionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SchemaExtensionRequestBuilder is request builder for SchemaExtension
+type SchemaExtensionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SchemaExtensionRequest
+func (b *SchemaExtensionRequestBuilder) Request() *SchemaExtensionRequest {
+ return &SchemaExtensionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SchemaExtensionRequest is request for SchemaExtension
+type SchemaExtensionRequest struct{ BaseRequest }
+
+// Get performs GET request for SchemaExtension
+func (r *SchemaExtensionRequest) Get(ctx context.Context) (resObj *SchemaExtension, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SchemaExtension
+func (r *SchemaExtensionRequest) Update(ctx context.Context, reqObj *SchemaExtension) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SchemaExtension
+func (r *SchemaExtensionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SchemaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SchemaModel.go
new file mode 100644
index 00000000..da7ee3db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SchemaModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Schema undocumented
+type Schema struct {
+ // Entity is the base model of Schema
+ Entity
+ // BaseType undocumented
+ BaseType *string `json:"baseType,omitempty"`
+ // Properties undocumented
+ Properties []Property `json:"properties,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SchemaRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SchemaRequest.go
new file mode 100644
index 00000000..3356bb60
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SchemaRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SchemaRequestBuilder is request builder for Schema
+type SchemaRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SchemaRequest
+func (b *SchemaRequestBuilder) Request() *SchemaRequest {
+ return &SchemaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SchemaRequest is request for Schema
+type SchemaRequest struct{ BaseRequest }
+
+// Get performs GET request for Schema
+func (r *SchemaRequest) Get(ctx context.Context) (resObj *Schema, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Schema
+func (r *SchemaRequest) Update(ctx context.Context, reqObj *Schema) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Schema
+func (r *SchemaRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ScopeOperatorMultiValuedComparisonTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ScopeOperatorMultiValuedComparisonTypeEnum.go
new file mode 100644
index 00000000..43bb4fa2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ScopeOperatorMultiValuedComparisonTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScopeOperatorMultiValuedComparisonType undocumented
+type ScopeOperatorMultiValuedComparisonType int
+
+const (
+ // ScopeOperatorMultiValuedComparisonTypeVAll undocumented
+ ScopeOperatorMultiValuedComparisonTypeVAll ScopeOperatorMultiValuedComparisonType = 0
+ // ScopeOperatorMultiValuedComparisonTypeVAny undocumented
+ ScopeOperatorMultiValuedComparisonTypeVAny ScopeOperatorMultiValuedComparisonType = 1
+)
+
+// ScopeOperatorMultiValuedComparisonTypePAll returns a pointer to ScopeOperatorMultiValuedComparisonTypeVAll
+func ScopeOperatorMultiValuedComparisonTypePAll() *ScopeOperatorMultiValuedComparisonType {
+ v := ScopeOperatorMultiValuedComparisonTypeVAll
+ return &v
+}
+
+// ScopeOperatorMultiValuedComparisonTypePAny returns a pointer to ScopeOperatorMultiValuedComparisonTypeVAny
+func ScopeOperatorMultiValuedComparisonTypePAny() *ScopeOperatorMultiValuedComparisonType {
+ v := ScopeOperatorMultiValuedComparisonTypeVAny
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ScopeOperatorTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ScopeOperatorTypeEnum.go
new file mode 100644
index 00000000..2516c9bc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ScopeOperatorTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScopeOperatorType undocumented
+type ScopeOperatorType int
+
+const (
+ // ScopeOperatorTypeVBinary undocumented
+ ScopeOperatorTypeVBinary ScopeOperatorType = 0
+ // ScopeOperatorTypeVUnary undocumented
+ ScopeOperatorTypeVUnary ScopeOperatorType = 1
+)
+
+// ScopeOperatorTypePBinary returns a pointer to ScopeOperatorTypeVBinary
+func ScopeOperatorTypePBinary() *ScopeOperatorType {
+ v := ScopeOperatorTypeVBinary
+ return &v
+}
+
+// ScopeOperatorTypePUnary returns a pointer to ScopeOperatorTypeVUnary
+func ScopeOperatorTypePUnary() *ScopeOperatorType {
+ v := ScopeOperatorTypeVUnary
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ScopedRoleMembershipModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ScopedRoleMembershipModel.go
new file mode 100644
index 00000000..78fabe4e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ScopedRoleMembershipModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScopedRoleMembership undocumented
+type ScopedRoleMembership struct {
+ // Entity is the base model of ScopedRoleMembership
+ Entity
+ // RoleID undocumented
+ RoleID *string `json:"roleId,omitempty"`
+ // AdministrativeUnitID undocumented
+ AdministrativeUnitID *string `json:"administrativeUnitId,omitempty"`
+ // RoleMemberInfo undocumented
+ RoleMemberInfo *Identity `json:"roleMemberInfo,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ScopedRoleMembershipRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ScopedRoleMembershipRequest.go
new file mode 100644
index 00000000..b1852f1e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ScopedRoleMembershipRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ScopedRoleMembershipRequestBuilder is request builder for ScopedRoleMembership
+type ScopedRoleMembershipRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ScopedRoleMembershipRequest
+func (b *ScopedRoleMembershipRequestBuilder) Request() *ScopedRoleMembershipRequest {
+ return &ScopedRoleMembershipRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ScopedRoleMembershipRequest is request for ScopedRoleMembership
+type ScopedRoleMembershipRequest struct{ BaseRequest }
+
+// Get performs GET request for ScopedRoleMembership
+func (r *ScopedRoleMembershipRequest) Get(ctx context.Context) (resObj *ScopedRoleMembership, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ScopedRoleMembership
+func (r *ScopedRoleMembershipRequest) Update(ctx context.Context, reqObj *ScopedRoleMembership) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ScopedRoleMembership
+func (r *ScopedRoleMembershipRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ScreenSharingRoleEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ScreenSharingRoleEnum.go
new file mode 100644
index 00000000..32362927
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ScreenSharingRoleEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScreenSharingRole undocumented
+type ScreenSharingRole int
+
+const (
+ // ScreenSharingRoleVViewer undocumented
+ ScreenSharingRoleVViewer ScreenSharingRole = 0
+ // ScreenSharingRoleVSharer undocumented
+ ScreenSharingRoleVSharer ScreenSharingRole = 1
+)
+
+// ScreenSharingRolePViewer returns a pointer to ScreenSharingRoleVViewer
+func ScreenSharingRolePViewer() *ScreenSharingRole {
+ v := ScreenSharingRoleVViewer
+ return &v
+}
+
+// ScreenSharingRolePSharer returns a pointer to ScreenSharingRoleVSharer
+func ScreenSharingRolePSharer() *ScreenSharingRole {
+ v := ScreenSharingRoleVSharer
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SearchAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/SearchAction.go
new file mode 100644
index 00000000..a86924c7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SearchAction.go
@@ -0,0 +1,100 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SearchQueryRequestParameter undocumented
+type SearchQueryRequestParameter struct {
+ // Requests undocumented
+ Requests []SearchRequestObject `json:"requests,omitempty"`
+}
+
+//
+type SearchQueryRequestBuilder struct{ BaseRequestBuilder }
+
+// Query action undocumented
+func (b *SearchRequestBuilder) Query(reqObj *SearchQueryRequestParameter) *SearchQueryRequestBuilder {
+ bb := &SearchQueryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/query"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SearchQueryRequest struct{ BaseRequest }
+
+//
+func (b *SearchQueryRequestBuilder) Request() *SearchQueryRequest {
+ return &SearchQueryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SearchQueryRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]SearchResponse, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]SearchResponse
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]SearchResponse
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *SearchQueryRequest) Get(ctx context.Context) ([][]SearchResponse, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SearchHitModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SearchHitModel.go
new file mode 100644
index 00000000..4fce75d0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SearchHitModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SearchHit undocumented
+type SearchHit struct {
+ // Object is the base model of SearchHit
+ Object
+ // _id undocumented
+ _id *string `json:"_id,omitempty"`
+ // _score undocumented
+ _score *int `json:"_score,omitempty"`
+ // _sortField undocumented
+ _sortField *string `json:"_sortField,omitempty"`
+ // _summary undocumented
+ _summary *string `json:"_summary,omitempty"`
+ // _source undocumented
+ _source *Entity `json:"_source,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SearchHitsContainerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SearchHitsContainerModel.go
new file mode 100644
index 00000000..118d3f6d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SearchHitsContainerModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SearchHitsContainer undocumented
+type SearchHitsContainer struct {
+ // Object is the base model of SearchHitsContainer
+ Object
+ // Hits undocumented
+ Hits []SearchHit `json:"hits,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // MoreResultsAvailable undocumented
+ MoreResultsAvailable *bool `json:"moreResultsAvailable,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SearchModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SearchModel.go
new file mode 100644
index 00000000..8c67910e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SearchModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Search undocumented
+type Search struct {
+ // Entity is the base model of Search
+ Entity
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SearchQueryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SearchQueryModel.go
new file mode 100644
index 00000000..b0693bbb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SearchQueryModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SearchQuery undocumented
+type SearchQuery struct {
+ // Object is the base model of SearchQuery
+ Object
+ // Query_string undocumented
+ Query_string *SearchQueryString `json:"query_string,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SearchQueryStringModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SearchQueryStringModel.go
new file mode 100644
index 00000000..039d6355
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SearchQueryStringModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SearchQueryString undocumented
+type SearchQueryString struct {
+ // Object is the base model of SearchQueryString
+ Object
+ // Query undocumented
+ Query *string `json:"query,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SearchRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SearchRequest.go
new file mode 100644
index 00000000..6cb8c66f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SearchRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SearchRequestBuilder is request builder for Search
+type SearchRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SearchRequest
+func (b *SearchRequestBuilder) Request() *SearchRequest {
+ return &SearchRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SearchRequest is request for Search
+type SearchRequest struct{ BaseRequest }
+
+// Get performs GET request for Search
+func (r *SearchRequest) Get(ctx context.Context) (resObj *Search, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Search
+func (r *SearchRequest) Update(ctx context.Context, reqObj *Search) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Search
+func (r *SearchRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SearchRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SearchRequestObjectModel.go
new file mode 100644
index 00000000..4fdf557c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SearchRequestObjectModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SearchRequestObject undocumented
+type SearchRequestObject struct {
+ // Object is the base model of SearchRequestObject
+ Object
+ // EntityTypes undocumented
+ EntityTypes []EntityType `json:"entityTypes,omitempty"`
+ // ContentSources undocumented
+ ContentSources []string `json:"contentSources,omitempty"`
+ // Query undocumented
+ Query *SearchQuery `json:"query,omitempty"`
+ // From undocumented
+ From *int `json:"from,omitempty"`
+ // Size undocumented
+ Size *int `json:"size,omitempty"`
+ // Stored_fields undocumented
+ Stored_fields []string `json:"stored_fields,omitempty"`
+ // EnableTopResults undocumented
+ EnableTopResults *bool `json:"enableTopResults,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SearchResponseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SearchResponseModel.go
new file mode 100644
index 00000000..6f598315
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SearchResponseModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SearchResponse undocumented
+type SearchResponse struct {
+ // Object is the base model of SearchResponse
+ Object
+ // SearchTerms undocumented
+ SearchTerms []string `json:"searchTerms,omitempty"`
+ // HitsContainers undocumented
+ HitsContainers []SearchHitsContainer `json:"hitsContainers,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SearchResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SearchResultModel.go
new file mode 100644
index 00000000..7ebdfe92
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SearchResultModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SearchResult undocumented
+type SearchResult struct {
+ // Object is the base model of SearchResult
+ Object
+ // OnClickTelemetryURL undocumented
+ OnClickTelemetryURL *string `json:"onClickTelemetryUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SectionGroupModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SectionGroupModel.go
new file mode 100644
index 00000000..05e2af47
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SectionGroupModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SectionGroup undocumented
+type SectionGroup struct {
+ // OnenoteEntityHierarchyModel is the base model of SectionGroup
+ OnenoteEntityHierarchyModel
+ // SectionsURL undocumented
+ SectionsURL *string `json:"sectionsUrl,omitempty"`
+ // SectionGroupsURL undocumented
+ SectionGroupsURL *string `json:"sectionGroupsUrl,omitempty"`
+ // ParentNotebook undocumented
+ ParentNotebook *Notebook `json:"parentNotebook,omitempty"`
+ // ParentSectionGroup undocumented
+ ParentSectionGroup *SectionGroup `json:"parentSectionGroup,omitempty"`
+ // Sections undocumented
+ Sections []OnenoteSection `json:"sections,omitempty"`
+ // SectionGroups undocumented
+ SectionGroups []SectionGroup `json:"sectionGroups,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SectionGroupRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SectionGroupRequest.go
new file mode 100644
index 00000000..4c930e1f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SectionGroupRequest.go
@@ -0,0 +1,247 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SectionGroupRequestBuilder is request builder for SectionGroup
+type SectionGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SectionGroupRequest
+func (b *SectionGroupRequestBuilder) Request() *SectionGroupRequest {
+ return &SectionGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SectionGroupRequest is request for SectionGroup
+type SectionGroupRequest struct{ BaseRequest }
+
+// Get performs GET request for SectionGroup
+func (r *SectionGroupRequest) Get(ctx context.Context) (resObj *SectionGroup, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SectionGroup
+func (r *SectionGroupRequest) Update(ctx context.Context, reqObj *SectionGroup) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SectionGroup
+func (r *SectionGroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ParentNotebook is navigation property
+func (b *SectionGroupRequestBuilder) ParentNotebook() *NotebookRequestBuilder {
+ bb := &NotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/parentNotebook"
+ return bb
+}
+
+// ParentSectionGroup is navigation property
+func (b *SectionGroupRequestBuilder) ParentSectionGroup() *SectionGroupRequestBuilder {
+ bb := &SectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/parentSectionGroup"
+ return bb
+}
+
+// SectionGroups returns request builder for SectionGroup collection
+func (b *SectionGroupRequestBuilder) SectionGroups() *SectionGroupSectionGroupsCollectionRequestBuilder {
+ bb := &SectionGroupSectionGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sectionGroups"
+ return bb
+}
+
+// SectionGroupSectionGroupsCollectionRequestBuilder is request builder for SectionGroup collection
+type SectionGroupSectionGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SectionGroup collection
+func (b *SectionGroupSectionGroupsCollectionRequestBuilder) Request() *SectionGroupSectionGroupsCollectionRequest {
+ return &SectionGroupSectionGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SectionGroup item
+func (b *SectionGroupSectionGroupsCollectionRequestBuilder) ID(id string) *SectionGroupRequestBuilder {
+ bb := &SectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SectionGroupSectionGroupsCollectionRequest is request for SectionGroup collection
+type SectionGroupSectionGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SectionGroup collection
+func (r *SectionGroupSectionGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SectionGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SectionGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SectionGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SectionGroup collection
+func (r *SectionGroupSectionGroupsCollectionRequest) Get(ctx context.Context) ([]SectionGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SectionGroup collection
+func (r *SectionGroupSectionGroupsCollectionRequest) Add(ctx context.Context, reqObj *SectionGroup) (resObj *SectionGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Sections returns request builder for OnenoteSection collection
+func (b *SectionGroupRequestBuilder) Sections() *SectionGroupSectionsCollectionRequestBuilder {
+ bb := &SectionGroupSectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sections"
+ return bb
+}
+
+// SectionGroupSectionsCollectionRequestBuilder is request builder for OnenoteSection collection
+type SectionGroupSectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnenoteSection collection
+func (b *SectionGroupSectionsCollectionRequestBuilder) Request() *SectionGroupSectionsCollectionRequest {
+ return &SectionGroupSectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnenoteSection item
+func (b *SectionGroupSectionsCollectionRequestBuilder) ID(id string) *OnenoteSectionRequestBuilder {
+ bb := &OnenoteSectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SectionGroupSectionsCollectionRequest is request for OnenoteSection collection
+type SectionGroupSectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnenoteSection collection
+func (r *SectionGroupSectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OnenoteSection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnenoteSection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnenoteSection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnenoteSection collection
+func (r *SectionGroupSectionsCollectionRequest) Get(ctx context.Context) ([]OnenoteSection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OnenoteSection collection
+func (r *SectionGroupSectionsCollectionRequest) Add(ctx context.Context, reqObj *OnenoteSection) (resObj *OnenoteSection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SectionLinksModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SectionLinksModel.go
new file mode 100644
index 00000000..4b4427fd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SectionLinksModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SectionLinks undocumented
+type SectionLinks struct {
+ // Object is the base model of SectionLinks
+ Object
+ // OneNoteClientURL undocumented
+ OneNoteClientURL *ExternalLink `json:"oneNoteClientUrl,omitempty"`
+ // OneNoteWebURL undocumented
+ OneNoteWebURL *ExternalLink `json:"oneNoteWebUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecureAssessmentAccountTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecureAssessmentAccountTypeEnum.go
new file mode 100644
index 00000000..948b6b7e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecureAssessmentAccountTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SecureAssessmentAccountType undocumented
+type SecureAssessmentAccountType int
+
+const (
+ // SecureAssessmentAccountTypeVAzureADAccount undocumented
+ SecureAssessmentAccountTypeVAzureADAccount SecureAssessmentAccountType = 0
+ // SecureAssessmentAccountTypeVDomainAccount undocumented
+ SecureAssessmentAccountTypeVDomainAccount SecureAssessmentAccountType = 1
+ // SecureAssessmentAccountTypeVLocalAccount undocumented
+ SecureAssessmentAccountTypeVLocalAccount SecureAssessmentAccountType = 2
+ // SecureAssessmentAccountTypeVLocalGuestAccount undocumented
+ SecureAssessmentAccountTypeVLocalGuestAccount SecureAssessmentAccountType = 3
+)
+
+// SecureAssessmentAccountTypePAzureADAccount returns a pointer to SecureAssessmentAccountTypeVAzureADAccount
+func SecureAssessmentAccountTypePAzureADAccount() *SecureAssessmentAccountType {
+ v := SecureAssessmentAccountTypeVAzureADAccount
+ return &v
+}
+
+// SecureAssessmentAccountTypePDomainAccount returns a pointer to SecureAssessmentAccountTypeVDomainAccount
+func SecureAssessmentAccountTypePDomainAccount() *SecureAssessmentAccountType {
+ v := SecureAssessmentAccountTypeVDomainAccount
+ return &v
+}
+
+// SecureAssessmentAccountTypePLocalAccount returns a pointer to SecureAssessmentAccountTypeVLocalAccount
+func SecureAssessmentAccountTypePLocalAccount() *SecureAssessmentAccountType {
+ v := SecureAssessmentAccountTypeVLocalAccount
+ return &v
+}
+
+// SecureAssessmentAccountTypePLocalGuestAccount returns a pointer to SecureAssessmentAccountTypeVLocalGuestAccount
+func SecureAssessmentAccountTypePLocalGuestAccount() *SecureAssessmentAccountType {
+ v := SecureAssessmentAccountTypeVLocalGuestAccount
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecureBootWithDMATypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecureBootWithDMATypeEnum.go
new file mode 100644
index 00000000..ee7a28d7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecureBootWithDMATypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SecureBootWithDMAType undocumented
+type SecureBootWithDMAType int
+
+const (
+ // SecureBootWithDMATypeVNotConfigured undocumented
+ SecureBootWithDMATypeVNotConfigured SecureBootWithDMAType = 0
+ // SecureBootWithDMATypeVWithoutDMA undocumented
+ SecureBootWithDMATypeVWithoutDMA SecureBootWithDMAType = 1
+ // SecureBootWithDMATypeVWithDMA undocumented
+ SecureBootWithDMATypeVWithDMA SecureBootWithDMAType = 3
+)
+
+// SecureBootWithDMATypePNotConfigured returns a pointer to SecureBootWithDMATypeVNotConfigured
+func SecureBootWithDMATypePNotConfigured() *SecureBootWithDMAType {
+ v := SecureBootWithDMATypeVNotConfigured
+ return &v
+}
+
+// SecureBootWithDMATypePWithoutDMA returns a pointer to SecureBootWithDMATypeVWithoutDMA
+func SecureBootWithDMATypePWithoutDMA() *SecureBootWithDMAType {
+ v := SecureBootWithDMATypeVWithoutDMA
+ return &v
+}
+
+// SecureBootWithDMATypePWithDMA returns a pointer to SecureBootWithDMATypeVWithDMA
+func SecureBootWithDMATypePWithDMA() *SecureBootWithDMAType {
+ v := SecureBootWithDMATypeVWithDMA
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecureScoreControlProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecureScoreControlProfileModel.go
new file mode 100644
index 00000000..632bf170
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecureScoreControlProfileModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SecureScoreControlProfile undocumented
+type SecureScoreControlProfile struct {
+ // Entity is the base model of SecureScoreControlProfile
+ Entity
+ // ActionType undocumented
+ ActionType *string `json:"actionType,omitempty"`
+ // ActionURL undocumented
+ ActionURL *string `json:"actionUrl,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // ComplianceInformation undocumented
+ ComplianceInformation []ComplianceInformation `json:"complianceInformation,omitempty"`
+ // ControlCategory undocumented
+ ControlCategory *string `json:"controlCategory,omitempty"`
+ // ControlStateUpdates undocumented
+ ControlStateUpdates []SecureScoreControlStateUpdate `json:"controlStateUpdates,omitempty"`
+ // Deprecated undocumented
+ Deprecated *bool `json:"deprecated,omitempty"`
+ // ImplementationCost undocumented
+ ImplementationCost *string `json:"implementationCost,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // MaxScore undocumented
+ MaxScore *float64 `json:"maxScore,omitempty"`
+ // Rank undocumented
+ Rank *int `json:"rank,omitempty"`
+ // Remediation undocumented
+ Remediation *string `json:"remediation,omitempty"`
+ // RemediationImpact undocumented
+ RemediationImpact *string `json:"remediationImpact,omitempty"`
+ // Service undocumented
+ Service *string `json:"service,omitempty"`
+ // Threats undocumented
+ Threats []string `json:"threats,omitempty"`
+ // Tier undocumented
+ Tier *string `json:"tier,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // UserImpact undocumented
+ UserImpact *string `json:"userImpact,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecureScoreControlProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecureScoreControlProfileRequest.go
new file mode 100644
index 00000000..b53e8da9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecureScoreControlProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SecureScoreControlProfileRequestBuilder is request builder for SecureScoreControlProfile
+type SecureScoreControlProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecureScoreControlProfileRequest
+func (b *SecureScoreControlProfileRequestBuilder) Request() *SecureScoreControlProfileRequest {
+ return &SecureScoreControlProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecureScoreControlProfileRequest is request for SecureScoreControlProfile
+type SecureScoreControlProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for SecureScoreControlProfile
+func (r *SecureScoreControlProfileRequest) Get(ctx context.Context) (resObj *SecureScoreControlProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecureScoreControlProfile
+func (r *SecureScoreControlProfileRequest) Update(ctx context.Context, reqObj *SecureScoreControlProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecureScoreControlProfile
+func (r *SecureScoreControlProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecureScoreControlStateUpdateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecureScoreControlStateUpdateModel.go
new file mode 100644
index 00000000..d2acf342
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecureScoreControlStateUpdateModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SecureScoreControlStateUpdate undocumented
+type SecureScoreControlStateUpdate struct {
+ // Object is the base model of SecureScoreControlStateUpdate
+ Object
+ // AssignedTo undocumented
+ AssignedTo *string `json:"assignedTo,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"comment,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // UpdatedBy undocumented
+ UpdatedBy *string `json:"updatedBy,omitempty"`
+ // UpdatedDateTime undocumented
+ UpdatedDateTime *time.Time `json:"updatedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecureScoreModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecureScoreModel.go
new file mode 100644
index 00000000..675a3a00
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecureScoreModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SecureScore undocumented
+type SecureScore struct {
+ // Entity is the base model of SecureScore
+ Entity
+ // ActiveUserCount undocumented
+ ActiveUserCount *int `json:"activeUserCount,omitempty"`
+ // AverageComparativeScores undocumented
+ AverageComparativeScores []AverageComparativeScore `json:"averageComparativeScores,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // ControlScores undocumented
+ ControlScores []ControlScore `json:"controlScores,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // CurrentScore undocumented
+ CurrentScore *float64 `json:"currentScore,omitempty"`
+ // EnabledServices undocumented
+ EnabledServices []string `json:"enabledServices,omitempty"`
+ // LicensedUserCount undocumented
+ LicensedUserCount *int `json:"licensedUserCount,omitempty"`
+ // MaxScore undocumented
+ MaxScore *float64 `json:"maxScore,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecureScoreRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecureScoreRequest.go
new file mode 100644
index 00000000..74dcfb9c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecureScoreRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SecureScoreRequestBuilder is request builder for SecureScore
+type SecureScoreRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecureScoreRequest
+func (b *SecureScoreRequestBuilder) Request() *SecureScoreRequest {
+ return &SecureScoreRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecureScoreRequest is request for SecureScore
+type SecureScoreRequest struct{ BaseRequest }
+
+// Get performs GET request for SecureScore
+func (r *SecureScoreRequest) Get(ctx context.Context) (resObj *SecureScore, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecureScore
+func (r *SecureScoreRequest) Update(ctx context.Context, reqObj *SecureScore) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecureScore
+func (r *SecureScoreRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityActionAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityActionAction.go
new file mode 100644
index 00000000..840381ad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityActionAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SecurityActionCancelSecurityActionRequestParameter undocumented
+type SecurityActionCancelSecurityActionRequestParameter struct {
+}
+
+//
+type SecurityActionCancelSecurityActionRequestBuilder struct{ BaseRequestBuilder }
+
+// CancelSecurityAction action undocumented
+func (b *SecurityActionRequestBuilder) CancelSecurityAction(reqObj *SecurityActionCancelSecurityActionRequestParameter) *SecurityActionCancelSecurityActionRequestBuilder {
+ bb := &SecurityActionCancelSecurityActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancelSecurityAction"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SecurityActionCancelSecurityActionRequest struct{ BaseRequest }
+
+//
+func (b *SecurityActionCancelSecurityActionRequestBuilder) Request() *SecurityActionCancelSecurityActionRequest {
+ return &SecurityActionCancelSecurityActionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SecurityActionCancelSecurityActionRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityActionModel.go
new file mode 100644
index 00000000..da7e1ae0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityActionModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SecurityAction undocumented
+type SecurityAction struct {
+ // Entity is the base model of SecurityAction
+ Entity
+ // ActionReason undocumented
+ ActionReason *string `json:"actionReason,omitempty"`
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+ // CompletedDateTime undocumented
+ CompletedDateTime *time.Time `json:"completedDateTime,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ErrorInfo undocumented
+ ErrorInfo *ResultInfo `json:"errorInfo,omitempty"`
+ // LastActionDateTime undocumented
+ LastActionDateTime *time.Time `json:"lastActionDateTime,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Parameters undocumented
+ Parameters []KeyValuePair `json:"parameters,omitempty"`
+ // States undocumented
+ States []SecurityActionState `json:"states,omitempty"`
+ // Status undocumented
+ Status *OperationStatus `json:"status,omitempty"`
+ // User undocumented
+ User *string `json:"user,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityActionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityActionRequest.go
new file mode 100644
index 00000000..e58f8727
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityActionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SecurityActionRequestBuilder is request builder for SecurityAction
+type SecurityActionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecurityActionRequest
+func (b *SecurityActionRequestBuilder) Request() *SecurityActionRequest {
+ return &SecurityActionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecurityActionRequest is request for SecurityAction
+type SecurityActionRequest struct{ BaseRequest }
+
+// Get performs GET request for SecurityAction
+func (r *SecurityActionRequest) Get(ctx context.Context) (resObj *SecurityAction, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecurityAction
+func (r *SecurityActionRequest) Update(ctx context.Context, reqObj *SecurityAction) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecurityAction
+func (r *SecurityActionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityActionStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityActionStateModel.go
new file mode 100644
index 00000000..1acd0a42
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityActionStateModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SecurityActionState undocumented
+type SecurityActionState struct {
+ // Object is the base model of SecurityActionState
+ Object
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // Status undocumented
+ Status *OperationStatus `json:"status,omitempty"`
+ // UpdatedDateTime undocumented
+ UpdatedDateTime *time.Time `json:"updatedDateTime,omitempty"`
+ // User undocumented
+ User *string `json:"user,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineCategoryStateSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineCategoryStateSummaryModel.go
new file mode 100644
index 00000000..c121a750
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineCategoryStateSummaryModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SecurityBaselineCategoryStateSummary The security baseline per category compliance state summary for the security baseline of the account.
+type SecurityBaselineCategoryStateSummary struct {
+ // SecurityBaselineStateSummary is the base model of SecurityBaselineCategoryStateSummary
+ SecurityBaselineStateSummary
+ // DisplayName The category name
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineCategoryStateSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineCategoryStateSummaryRequest.go
new file mode 100644
index 00000000..8c6302f5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineCategoryStateSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SecurityBaselineCategoryStateSummaryRequestBuilder is request builder for SecurityBaselineCategoryStateSummary
+type SecurityBaselineCategoryStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecurityBaselineCategoryStateSummaryRequest
+func (b *SecurityBaselineCategoryStateSummaryRequestBuilder) Request() *SecurityBaselineCategoryStateSummaryRequest {
+ return &SecurityBaselineCategoryStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecurityBaselineCategoryStateSummaryRequest is request for SecurityBaselineCategoryStateSummary
+type SecurityBaselineCategoryStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for SecurityBaselineCategoryStateSummary
+func (r *SecurityBaselineCategoryStateSummaryRequest) Get(ctx context.Context) (resObj *SecurityBaselineCategoryStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecurityBaselineCategoryStateSummary
+func (r *SecurityBaselineCategoryStateSummaryRequest) Update(ctx context.Context, reqObj *SecurityBaselineCategoryStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecurityBaselineCategoryStateSummary
+func (r *SecurityBaselineCategoryStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineComplianceStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineComplianceStateEnum.go
new file mode 100644
index 00000000..c6ef69ce
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineComplianceStateEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SecurityBaselineComplianceState undocumented
+type SecurityBaselineComplianceState int
+
+const (
+ // SecurityBaselineComplianceStateVUnknown undocumented
+ SecurityBaselineComplianceStateVUnknown SecurityBaselineComplianceState = 0
+ // SecurityBaselineComplianceStateVSecure undocumented
+ SecurityBaselineComplianceStateVSecure SecurityBaselineComplianceState = 1
+ // SecurityBaselineComplianceStateVNotApplicable undocumented
+ SecurityBaselineComplianceStateVNotApplicable SecurityBaselineComplianceState = 2
+ // SecurityBaselineComplianceStateVNotSecure undocumented
+ SecurityBaselineComplianceStateVNotSecure SecurityBaselineComplianceState = 3
+ // SecurityBaselineComplianceStateVError undocumented
+ SecurityBaselineComplianceStateVError SecurityBaselineComplianceState = 4
+ // SecurityBaselineComplianceStateVConflict undocumented
+ SecurityBaselineComplianceStateVConflict SecurityBaselineComplianceState = 5
+)
+
+// SecurityBaselineComplianceStatePUnknown returns a pointer to SecurityBaselineComplianceStateVUnknown
+func SecurityBaselineComplianceStatePUnknown() *SecurityBaselineComplianceState {
+ v := SecurityBaselineComplianceStateVUnknown
+ return &v
+}
+
+// SecurityBaselineComplianceStatePSecure returns a pointer to SecurityBaselineComplianceStateVSecure
+func SecurityBaselineComplianceStatePSecure() *SecurityBaselineComplianceState {
+ v := SecurityBaselineComplianceStateVSecure
+ return &v
+}
+
+// SecurityBaselineComplianceStatePNotApplicable returns a pointer to SecurityBaselineComplianceStateVNotApplicable
+func SecurityBaselineComplianceStatePNotApplicable() *SecurityBaselineComplianceState {
+ v := SecurityBaselineComplianceStateVNotApplicable
+ return &v
+}
+
+// SecurityBaselineComplianceStatePNotSecure returns a pointer to SecurityBaselineComplianceStateVNotSecure
+func SecurityBaselineComplianceStatePNotSecure() *SecurityBaselineComplianceState {
+ v := SecurityBaselineComplianceStateVNotSecure
+ return &v
+}
+
+// SecurityBaselineComplianceStatePError returns a pointer to SecurityBaselineComplianceStateVError
+func SecurityBaselineComplianceStatePError() *SecurityBaselineComplianceState {
+ v := SecurityBaselineComplianceStateVError
+ return &v
+}
+
+// SecurityBaselineComplianceStatePConflict returns a pointer to SecurityBaselineComplianceStateVConflict
+func SecurityBaselineComplianceStatePConflict() *SecurityBaselineComplianceState {
+ v := SecurityBaselineComplianceStateVConflict
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineDeviceStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineDeviceStateModel.go
new file mode 100644
index 00000000..7fd1c614
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineDeviceStateModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SecurityBaselineDeviceState The security baseline compliance state summary of the security baseline for a device.
+type SecurityBaselineDeviceState struct {
+ // Entity is the base model of SecurityBaselineDeviceState
+ Entity
+ // ManagedDeviceID Intune device id
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // DeviceDisplayName Display name of the device
+ DeviceDisplayName *string `json:"deviceDisplayName,omitempty"`
+ // UserPrincipalName User Principal Name
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // State Security baseline compliance state
+ State *SecurityBaselineComplianceState `json:"state,omitempty"`
+ // LastReportedDateTime Last modified date time of the policy report
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineDeviceStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineDeviceStateRequest.go
new file mode 100644
index 00000000..a2b113eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineDeviceStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SecurityBaselineDeviceStateRequestBuilder is request builder for SecurityBaselineDeviceState
+type SecurityBaselineDeviceStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecurityBaselineDeviceStateRequest
+func (b *SecurityBaselineDeviceStateRequestBuilder) Request() *SecurityBaselineDeviceStateRequest {
+ return &SecurityBaselineDeviceStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecurityBaselineDeviceStateRequest is request for SecurityBaselineDeviceState
+type SecurityBaselineDeviceStateRequest struct{ BaseRequest }
+
+// Get performs GET request for SecurityBaselineDeviceState
+func (r *SecurityBaselineDeviceStateRequest) Get(ctx context.Context) (resObj *SecurityBaselineDeviceState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecurityBaselineDeviceState
+func (r *SecurityBaselineDeviceStateRequest) Update(ctx context.Context, reqObj *SecurityBaselineDeviceState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecurityBaselineDeviceState
+func (r *SecurityBaselineDeviceStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineSettingStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineSettingStateModel.go
new file mode 100644
index 00000000..4f9dc982
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineSettingStateModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SecurityBaselineSettingState The security baseline compliance state of a setting for a device
+type SecurityBaselineSettingState struct {
+ // Entity is the base model of SecurityBaselineSettingState
+ Entity
+ // SettingName The setting name that is being reported
+ SettingName *string `json:"settingName,omitempty"`
+ // State The compliance state of the security baseline setting
+ State *SecurityBaselineComplianceState `json:"state,omitempty"`
+ // SettingCategoryID The setting category id which this setting belongs to
+ SettingCategoryID *string `json:"settingCategoryId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineSettingStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineSettingStateRequest.go
new file mode 100644
index 00000000..d7a02e75
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineSettingStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SecurityBaselineSettingStateRequestBuilder is request builder for SecurityBaselineSettingState
+type SecurityBaselineSettingStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecurityBaselineSettingStateRequest
+func (b *SecurityBaselineSettingStateRequestBuilder) Request() *SecurityBaselineSettingStateRequest {
+ return &SecurityBaselineSettingStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecurityBaselineSettingStateRequest is request for SecurityBaselineSettingState
+type SecurityBaselineSettingStateRequest struct{ BaseRequest }
+
+// Get performs GET request for SecurityBaselineSettingState
+func (r *SecurityBaselineSettingStateRequest) Get(ctx context.Context) (resObj *SecurityBaselineSettingState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecurityBaselineSettingState
+func (r *SecurityBaselineSettingStateRequest) Update(ctx context.Context, reqObj *SecurityBaselineSettingState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecurityBaselineSettingState
+func (r *SecurityBaselineSettingStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineStateModel.go
new file mode 100644
index 00000000..7621e310
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineStateModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SecurityBaselineState Security baseline state for a device.
+type SecurityBaselineState struct {
+ // Entity is the base model of SecurityBaselineState
+ Entity
+ // SecurityBaselineTemplateID The security baseline template id
+ SecurityBaselineTemplateID *string `json:"securityBaselineTemplateId,omitempty"`
+ // DisplayName The display name of the security baseline
+ DisplayName *string `json:"displayName,omitempty"`
+ // SettingStates undocumented
+ SettingStates []SecurityBaselineSettingState `json:"settingStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineStateRequest.go
new file mode 100644
index 00000000..de79884f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineStateRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SecurityBaselineStateRequestBuilder is request builder for SecurityBaselineState
+type SecurityBaselineStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecurityBaselineStateRequest
+func (b *SecurityBaselineStateRequestBuilder) Request() *SecurityBaselineStateRequest {
+ return &SecurityBaselineStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecurityBaselineStateRequest is request for SecurityBaselineState
+type SecurityBaselineStateRequest struct{ BaseRequest }
+
+// Get performs GET request for SecurityBaselineState
+func (r *SecurityBaselineStateRequest) Get(ctx context.Context) (resObj *SecurityBaselineState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecurityBaselineState
+func (r *SecurityBaselineStateRequest) Update(ctx context.Context, reqObj *SecurityBaselineState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecurityBaselineState
+func (r *SecurityBaselineStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SettingStates returns request builder for SecurityBaselineSettingState collection
+func (b *SecurityBaselineStateRequestBuilder) SettingStates() *SecurityBaselineStateSettingStatesCollectionRequestBuilder {
+ bb := &SecurityBaselineStateSettingStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settingStates"
+ return bb
+}
+
+// SecurityBaselineStateSettingStatesCollectionRequestBuilder is request builder for SecurityBaselineSettingState collection
+type SecurityBaselineStateSettingStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SecurityBaselineSettingState collection
+func (b *SecurityBaselineStateSettingStatesCollectionRequestBuilder) Request() *SecurityBaselineStateSettingStatesCollectionRequest {
+ return &SecurityBaselineStateSettingStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SecurityBaselineSettingState item
+func (b *SecurityBaselineStateSettingStatesCollectionRequestBuilder) ID(id string) *SecurityBaselineSettingStateRequestBuilder {
+ bb := &SecurityBaselineSettingStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityBaselineStateSettingStatesCollectionRequest is request for SecurityBaselineSettingState collection
+type SecurityBaselineStateSettingStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SecurityBaselineSettingState collection
+func (r *SecurityBaselineStateSettingStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SecurityBaselineSettingState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SecurityBaselineSettingState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SecurityBaselineSettingState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SecurityBaselineSettingState collection
+func (r *SecurityBaselineStateSettingStatesCollectionRequest) Get(ctx context.Context) ([]SecurityBaselineSettingState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SecurityBaselineSettingState collection
+func (r *SecurityBaselineStateSettingStatesCollectionRequest) Add(ctx context.Context, reqObj *SecurityBaselineSettingState) (resObj *SecurityBaselineSettingState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineStateSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineStateSummaryModel.go
new file mode 100644
index 00000000..18f50bd6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineStateSummaryModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SecurityBaselineStateSummary The security baseline compliance state summary for the security baseline of the account.
+type SecurityBaselineStateSummary struct {
+ // Entity is the base model of SecurityBaselineStateSummary
+ Entity
+ // SecureCount Number of secure devices
+ SecureCount *int `json:"secureCount,omitempty"`
+ // NotSecureCount Number of not secure devices
+ NotSecureCount *int `json:"notSecureCount,omitempty"`
+ // UnknownCount Number of unknown devices
+ UnknownCount *int `json:"unknownCount,omitempty"`
+ // ErrorCount Number of error devices
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // ConflictCount Number of conflict devices
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // NotApplicableCount Number of not applicable devices
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineStateSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineStateSummaryRequest.go
new file mode 100644
index 00000000..5f9f605f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineStateSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SecurityBaselineStateSummaryRequestBuilder is request builder for SecurityBaselineStateSummary
+type SecurityBaselineStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecurityBaselineStateSummaryRequest
+func (b *SecurityBaselineStateSummaryRequestBuilder) Request() *SecurityBaselineStateSummaryRequest {
+ return &SecurityBaselineStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecurityBaselineStateSummaryRequest is request for SecurityBaselineStateSummary
+type SecurityBaselineStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for SecurityBaselineStateSummary
+func (r *SecurityBaselineStateSummaryRequest) Get(ctx context.Context) (resObj *SecurityBaselineStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecurityBaselineStateSummary
+func (r *SecurityBaselineStateSummaryRequest) Update(ctx context.Context, reqObj *SecurityBaselineStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecurityBaselineStateSummary
+func (r *SecurityBaselineStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineTemplateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineTemplateModel.go
new file mode 100644
index 00000000..96a2a22f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineTemplateModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SecurityBaselineTemplate The security baseline template of the account
+type SecurityBaselineTemplate struct {
+ // DeviceManagementTemplate is the base model of SecurityBaselineTemplate
+ DeviceManagementTemplate
+ // DeviceStateSummary undocumented
+ DeviceStateSummary *SecurityBaselineStateSummary `json:"deviceStateSummary,omitempty"`
+ // DeviceStates undocumented
+ DeviceStates []SecurityBaselineDeviceState `json:"deviceStates,omitempty"`
+ // CategoryDeviceStateSummaries undocumented
+ CategoryDeviceStateSummaries []SecurityBaselineCategoryStateSummary `json:"categoryDeviceStateSummaries,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineTemplateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineTemplateRequest.go
new file mode 100644
index 00000000..46ffd991
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityBaselineTemplateRequest.go
@@ -0,0 +1,240 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SecurityBaselineTemplateRequestBuilder is request builder for SecurityBaselineTemplate
+type SecurityBaselineTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecurityBaselineTemplateRequest
+func (b *SecurityBaselineTemplateRequestBuilder) Request() *SecurityBaselineTemplateRequest {
+ return &SecurityBaselineTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecurityBaselineTemplateRequest is request for SecurityBaselineTemplate
+type SecurityBaselineTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for SecurityBaselineTemplate
+func (r *SecurityBaselineTemplateRequest) Get(ctx context.Context) (resObj *SecurityBaselineTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecurityBaselineTemplate
+func (r *SecurityBaselineTemplateRequest) Update(ctx context.Context, reqObj *SecurityBaselineTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecurityBaselineTemplate
+func (r *SecurityBaselineTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// CategoryDeviceStateSummaries returns request builder for SecurityBaselineCategoryStateSummary collection
+func (b *SecurityBaselineTemplateRequestBuilder) CategoryDeviceStateSummaries() *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder {
+ bb := &SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/categoryDeviceStateSummaries"
+ return bb
+}
+
+// SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder is request builder for SecurityBaselineCategoryStateSummary collection
+type SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SecurityBaselineCategoryStateSummary collection
+func (b *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder) Request() *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest {
+ return &SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SecurityBaselineCategoryStateSummary item
+func (b *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder) ID(id string) *SecurityBaselineCategoryStateSummaryRequestBuilder {
+ bb := &SecurityBaselineCategoryStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest is request for SecurityBaselineCategoryStateSummary collection
+type SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SecurityBaselineCategoryStateSummary collection
+func (r *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SecurityBaselineCategoryStateSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SecurityBaselineCategoryStateSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SecurityBaselineCategoryStateSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SecurityBaselineCategoryStateSummary collection
+func (r *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest) Get(ctx context.Context) ([]SecurityBaselineCategoryStateSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SecurityBaselineCategoryStateSummary collection
+func (r *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest) Add(ctx context.Context, reqObj *SecurityBaselineCategoryStateSummary) (resObj *SecurityBaselineCategoryStateSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStateSummary is navigation property
+func (b *SecurityBaselineTemplateRequestBuilder) DeviceStateSummary() *SecurityBaselineStateSummaryRequestBuilder {
+ bb := &SecurityBaselineStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStateSummary"
+ return bb
+}
+
+// DeviceStates returns request builder for SecurityBaselineDeviceState collection
+func (b *SecurityBaselineTemplateRequestBuilder) DeviceStates() *SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder {
+ bb := &SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStates"
+ return bb
+}
+
+// SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder is request builder for SecurityBaselineDeviceState collection
+type SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SecurityBaselineDeviceState collection
+func (b *SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder) Request() *SecurityBaselineTemplateDeviceStatesCollectionRequest {
+ return &SecurityBaselineTemplateDeviceStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SecurityBaselineDeviceState item
+func (b *SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder) ID(id string) *SecurityBaselineDeviceStateRequestBuilder {
+ bb := &SecurityBaselineDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityBaselineTemplateDeviceStatesCollectionRequest is request for SecurityBaselineDeviceState collection
+type SecurityBaselineTemplateDeviceStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SecurityBaselineDeviceState collection
+func (r *SecurityBaselineTemplateDeviceStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SecurityBaselineDeviceState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SecurityBaselineDeviceState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SecurityBaselineDeviceState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SecurityBaselineDeviceState collection
+func (r *SecurityBaselineTemplateDeviceStatesCollectionRequest) Get(ctx context.Context) ([]SecurityBaselineDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SecurityBaselineDeviceState collection
+func (r *SecurityBaselineTemplateDeviceStatesCollectionRequest) Add(ctx context.Context, reqObj *SecurityBaselineDeviceState) (resObj *SecurityBaselineDeviceState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityModel.go
new file mode 100644
index 00000000..acaa4719
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Security undocumented
+type Security struct {
+ // Entity is the base model of Security
+ Entity
+ // ProviderStatus undocumented
+ ProviderStatus []SecurityProviderStatus `json:"providerStatus,omitempty"`
+ // Alerts undocumented
+ Alerts []Alert `json:"alerts,omitempty"`
+ // CloudAppSecurityProfiles undocumented
+ CloudAppSecurityProfiles []CloudAppSecurityProfile `json:"cloudAppSecurityProfiles,omitempty"`
+ // DomainSecurityProfiles undocumented
+ DomainSecurityProfiles []DomainSecurityProfile `json:"domainSecurityProfiles,omitempty"`
+ // FileSecurityProfiles undocumented
+ FileSecurityProfiles []FileSecurityProfile `json:"fileSecurityProfiles,omitempty"`
+ // HostSecurityProfiles undocumented
+ HostSecurityProfiles []HostSecurityProfile `json:"hostSecurityProfiles,omitempty"`
+ // IPSecurityProfiles undocumented
+ IPSecurityProfiles []IPSecurityProfile `json:"ipSecurityProfiles,omitempty"`
+ // ProviderTenantSettings undocumented
+ ProviderTenantSettings []ProviderTenantSetting `json:"providerTenantSettings,omitempty"`
+ // SecureScoreControlProfiles undocumented
+ SecureScoreControlProfiles []SecureScoreControlProfile `json:"secureScoreControlProfiles,omitempty"`
+ // SecureScores undocumented
+ SecureScores []SecureScore `json:"secureScores,omitempty"`
+ // TiIndicators undocumented
+ TiIndicators []TiIndicator `json:"tiIndicators,omitempty"`
+ // UserSecurityProfiles undocumented
+ UserSecurityProfiles []UserSecurityProfile `json:"userSecurityProfiles,omitempty"`
+ // SecurityActions undocumented
+ SecurityActions []SecurityAction `json:"securityActions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityNetworkProtocolEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityNetworkProtocolEnum.go
new file mode 100644
index 00000000..fe6bc653
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityNetworkProtocolEnum.go
@@ -0,0 +1,201 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SecurityNetworkProtocol undocumented
+type SecurityNetworkProtocol int
+
+const (
+ // SecurityNetworkProtocolVIP undocumented
+ SecurityNetworkProtocolVIP SecurityNetworkProtocol = 0
+ // SecurityNetworkProtocolVICMP undocumented
+ SecurityNetworkProtocolVICMP SecurityNetworkProtocol = 1
+ // SecurityNetworkProtocolVIGMP undocumented
+ SecurityNetworkProtocolVIGMP SecurityNetworkProtocol = 2
+ // SecurityNetworkProtocolVGgp undocumented
+ SecurityNetworkProtocolVGgp SecurityNetworkProtocol = 3
+ // SecurityNetworkProtocolVIpv4 undocumented
+ SecurityNetworkProtocolVIpv4 SecurityNetworkProtocol = 4
+ // SecurityNetworkProtocolVTCP undocumented
+ SecurityNetworkProtocolVTCP SecurityNetworkProtocol = 6
+ // SecurityNetworkProtocolVPup undocumented
+ SecurityNetworkProtocolVPup SecurityNetworkProtocol = 12
+ // SecurityNetworkProtocolVUDP undocumented
+ SecurityNetworkProtocolVUDP SecurityNetworkProtocol = 17
+ // SecurityNetworkProtocolVIdp undocumented
+ SecurityNetworkProtocolVIdp SecurityNetworkProtocol = 22
+ // SecurityNetworkProtocolVIpv6 undocumented
+ SecurityNetworkProtocolVIpv6 SecurityNetworkProtocol = 41
+ // SecurityNetworkProtocolVIpv6RoutingHeader undocumented
+ SecurityNetworkProtocolVIpv6RoutingHeader SecurityNetworkProtocol = 43
+ // SecurityNetworkProtocolVIpv6FragmentHeader undocumented
+ SecurityNetworkProtocolVIpv6FragmentHeader SecurityNetworkProtocol = 44
+ // SecurityNetworkProtocolVIPSecEncapsulatingSecurityPayload undocumented
+ SecurityNetworkProtocolVIPSecEncapsulatingSecurityPayload SecurityNetworkProtocol = 50
+ // SecurityNetworkProtocolVIPSecAuthenticationHeader undocumented
+ SecurityNetworkProtocolVIPSecAuthenticationHeader SecurityNetworkProtocol = 51
+ // SecurityNetworkProtocolVICMPV6 undocumented
+ SecurityNetworkProtocolVICMPV6 SecurityNetworkProtocol = 58
+ // SecurityNetworkProtocolVIpv6NoNextHeader undocumented
+ SecurityNetworkProtocolVIpv6NoNextHeader SecurityNetworkProtocol = 59
+ // SecurityNetworkProtocolVIpv6DestinationOptions undocumented
+ SecurityNetworkProtocolVIpv6DestinationOptions SecurityNetworkProtocol = 60
+ // SecurityNetworkProtocolVNd undocumented
+ SecurityNetworkProtocolVNd SecurityNetworkProtocol = 77
+ // SecurityNetworkProtocolVRaw undocumented
+ SecurityNetworkProtocolVRaw SecurityNetworkProtocol = 255
+ // SecurityNetworkProtocolVIpx undocumented
+ SecurityNetworkProtocolVIpx SecurityNetworkProtocol = 1000
+ // SecurityNetworkProtocolVSpx undocumented
+ SecurityNetworkProtocolVSpx SecurityNetworkProtocol = 1256
+ // SecurityNetworkProtocolVSpxII undocumented
+ SecurityNetworkProtocolVSpxII SecurityNetworkProtocol = 1257
+ // SecurityNetworkProtocolVUnknownFutureValue undocumented
+ SecurityNetworkProtocolVUnknownFutureValue SecurityNetworkProtocol = 32767
+ // SecurityNetworkProtocolVUnknown undocumented
+ SecurityNetworkProtocolVUnknown SecurityNetworkProtocol = -1
+)
+
+// SecurityNetworkProtocolPIP returns a pointer to SecurityNetworkProtocolVIP
+func SecurityNetworkProtocolPIP() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIP
+ return &v
+}
+
+// SecurityNetworkProtocolPICMP returns a pointer to SecurityNetworkProtocolVICMP
+func SecurityNetworkProtocolPICMP() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVICMP
+ return &v
+}
+
+// SecurityNetworkProtocolPIGMP returns a pointer to SecurityNetworkProtocolVIGMP
+func SecurityNetworkProtocolPIGMP() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIGMP
+ return &v
+}
+
+// SecurityNetworkProtocolPGgp returns a pointer to SecurityNetworkProtocolVGgp
+func SecurityNetworkProtocolPGgp() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVGgp
+ return &v
+}
+
+// SecurityNetworkProtocolPIpv4 returns a pointer to SecurityNetworkProtocolVIpv4
+func SecurityNetworkProtocolPIpv4() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIpv4
+ return &v
+}
+
+// SecurityNetworkProtocolPTCP returns a pointer to SecurityNetworkProtocolVTCP
+func SecurityNetworkProtocolPTCP() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVTCP
+ return &v
+}
+
+// SecurityNetworkProtocolPPup returns a pointer to SecurityNetworkProtocolVPup
+func SecurityNetworkProtocolPPup() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVPup
+ return &v
+}
+
+// SecurityNetworkProtocolPUDP returns a pointer to SecurityNetworkProtocolVUDP
+func SecurityNetworkProtocolPUDP() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVUDP
+ return &v
+}
+
+// SecurityNetworkProtocolPIdp returns a pointer to SecurityNetworkProtocolVIdp
+func SecurityNetworkProtocolPIdp() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIdp
+ return &v
+}
+
+// SecurityNetworkProtocolPIpv6 returns a pointer to SecurityNetworkProtocolVIpv6
+func SecurityNetworkProtocolPIpv6() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIpv6
+ return &v
+}
+
+// SecurityNetworkProtocolPIpv6RoutingHeader returns a pointer to SecurityNetworkProtocolVIpv6RoutingHeader
+func SecurityNetworkProtocolPIpv6RoutingHeader() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIpv6RoutingHeader
+ return &v
+}
+
+// SecurityNetworkProtocolPIpv6FragmentHeader returns a pointer to SecurityNetworkProtocolVIpv6FragmentHeader
+func SecurityNetworkProtocolPIpv6FragmentHeader() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIpv6FragmentHeader
+ return &v
+}
+
+// SecurityNetworkProtocolPIPSecEncapsulatingSecurityPayload returns a pointer to SecurityNetworkProtocolVIPSecEncapsulatingSecurityPayload
+func SecurityNetworkProtocolPIPSecEncapsulatingSecurityPayload() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIPSecEncapsulatingSecurityPayload
+ return &v
+}
+
+// SecurityNetworkProtocolPIPSecAuthenticationHeader returns a pointer to SecurityNetworkProtocolVIPSecAuthenticationHeader
+func SecurityNetworkProtocolPIPSecAuthenticationHeader() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIPSecAuthenticationHeader
+ return &v
+}
+
+// SecurityNetworkProtocolPICMPV6 returns a pointer to SecurityNetworkProtocolVICMPV6
+func SecurityNetworkProtocolPICMPV6() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVICMPV6
+ return &v
+}
+
+// SecurityNetworkProtocolPIpv6NoNextHeader returns a pointer to SecurityNetworkProtocolVIpv6NoNextHeader
+func SecurityNetworkProtocolPIpv6NoNextHeader() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIpv6NoNextHeader
+ return &v
+}
+
+// SecurityNetworkProtocolPIpv6DestinationOptions returns a pointer to SecurityNetworkProtocolVIpv6DestinationOptions
+func SecurityNetworkProtocolPIpv6DestinationOptions() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIpv6DestinationOptions
+ return &v
+}
+
+// SecurityNetworkProtocolPNd returns a pointer to SecurityNetworkProtocolVNd
+func SecurityNetworkProtocolPNd() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVNd
+ return &v
+}
+
+// SecurityNetworkProtocolPRaw returns a pointer to SecurityNetworkProtocolVRaw
+func SecurityNetworkProtocolPRaw() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVRaw
+ return &v
+}
+
+// SecurityNetworkProtocolPIpx returns a pointer to SecurityNetworkProtocolVIpx
+func SecurityNetworkProtocolPIpx() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVIpx
+ return &v
+}
+
+// SecurityNetworkProtocolPSpx returns a pointer to SecurityNetworkProtocolVSpx
+func SecurityNetworkProtocolPSpx() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVSpx
+ return &v
+}
+
+// SecurityNetworkProtocolPSpxII returns a pointer to SecurityNetworkProtocolVSpxII
+func SecurityNetworkProtocolPSpxII() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVSpxII
+ return &v
+}
+
+// SecurityNetworkProtocolPUnknownFutureValue returns a pointer to SecurityNetworkProtocolVUnknownFutureValue
+func SecurityNetworkProtocolPUnknownFutureValue() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVUnknownFutureValue
+ return &v
+}
+
+// SecurityNetworkProtocolPUnknown returns a pointer to SecurityNetworkProtocolVUnknown
+func SecurityNetworkProtocolPUnknown() *SecurityNetworkProtocol {
+ v := SecurityNetworkProtocolVUnknown
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityProviderStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityProviderStatusModel.go
new file mode 100644
index 00000000..47ee0254
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityProviderStatusModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SecurityProviderStatus undocumented
+type SecurityProviderStatus struct {
+ // Object is the base model of SecurityProviderStatus
+ Object
+ // Enabled undocumented
+ Enabled *bool `json:"enabled,omitempty"`
+ // Endpoint undocumented
+ Endpoint *string `json:"endpoint,omitempty"`
+ // Provider undocumented
+ Provider *string `json:"provider,omitempty"`
+ // Region undocumented
+ Region *string `json:"region,omitempty"`
+ // Vendor undocumented
+ Vendor *string `json:"vendor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityRequest.go
new file mode 100644
index 00000000..98cc9b4e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityRequest.go
@@ -0,0 +1,1173 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SecurityRequestBuilder is request builder for Security
+type SecurityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecurityRequest
+func (b *SecurityRequestBuilder) Request() *SecurityRequest {
+ return &SecurityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecurityRequest is request for Security
+type SecurityRequest struct{ BaseRequest }
+
+// Get performs GET request for Security
+func (r *SecurityRequest) Get(ctx context.Context) (resObj *Security, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Security
+func (r *SecurityRequest) Update(ctx context.Context, reqObj *Security) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Security
+func (r *SecurityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Alerts returns request builder for Alert collection
+func (b *SecurityRequestBuilder) Alerts() *SecurityAlertsCollectionRequestBuilder {
+ bb := &SecurityAlertsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/alerts"
+ return bb
+}
+
+// SecurityAlertsCollectionRequestBuilder is request builder for Alert collection
+type SecurityAlertsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Alert collection
+func (b *SecurityAlertsCollectionRequestBuilder) Request() *SecurityAlertsCollectionRequest {
+ return &SecurityAlertsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Alert item
+func (b *SecurityAlertsCollectionRequestBuilder) ID(id string) *AlertRequestBuilder {
+ bb := &AlertRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityAlertsCollectionRequest is request for Alert collection
+type SecurityAlertsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Alert collection
+func (r *SecurityAlertsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Alert, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Alert
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Alert
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Alert collection
+func (r *SecurityAlertsCollectionRequest) Get(ctx context.Context) ([]Alert, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Alert collection
+func (r *SecurityAlertsCollectionRequest) Add(ctx context.Context, reqObj *Alert) (resObj *Alert, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CloudAppSecurityProfiles returns request builder for CloudAppSecurityProfile collection
+func (b *SecurityRequestBuilder) CloudAppSecurityProfiles() *SecurityCloudAppSecurityProfilesCollectionRequestBuilder {
+ bb := &SecurityCloudAppSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/cloudAppSecurityProfiles"
+ return bb
+}
+
+// SecurityCloudAppSecurityProfilesCollectionRequestBuilder is request builder for CloudAppSecurityProfile collection
+type SecurityCloudAppSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CloudAppSecurityProfile collection
+func (b *SecurityCloudAppSecurityProfilesCollectionRequestBuilder) Request() *SecurityCloudAppSecurityProfilesCollectionRequest {
+ return &SecurityCloudAppSecurityProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CloudAppSecurityProfile item
+func (b *SecurityCloudAppSecurityProfilesCollectionRequestBuilder) ID(id string) *CloudAppSecurityProfileRequestBuilder {
+ bb := &CloudAppSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityCloudAppSecurityProfilesCollectionRequest is request for CloudAppSecurityProfile collection
+type SecurityCloudAppSecurityProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CloudAppSecurityProfile collection
+func (r *SecurityCloudAppSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]CloudAppSecurityProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CloudAppSecurityProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CloudAppSecurityProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CloudAppSecurityProfile collection
+func (r *SecurityCloudAppSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]CloudAppSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for CloudAppSecurityProfile collection
+func (r *SecurityCloudAppSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *CloudAppSecurityProfile) (resObj *CloudAppSecurityProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DomainSecurityProfiles returns request builder for DomainSecurityProfile collection
+func (b *SecurityRequestBuilder) DomainSecurityProfiles() *SecurityDomainSecurityProfilesCollectionRequestBuilder {
+ bb := &SecurityDomainSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/domainSecurityProfiles"
+ return bb
+}
+
+// SecurityDomainSecurityProfilesCollectionRequestBuilder is request builder for DomainSecurityProfile collection
+type SecurityDomainSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DomainSecurityProfile collection
+func (b *SecurityDomainSecurityProfilesCollectionRequestBuilder) Request() *SecurityDomainSecurityProfilesCollectionRequest {
+ return &SecurityDomainSecurityProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DomainSecurityProfile item
+func (b *SecurityDomainSecurityProfilesCollectionRequestBuilder) ID(id string) *DomainSecurityProfileRequestBuilder {
+ bb := &DomainSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityDomainSecurityProfilesCollectionRequest is request for DomainSecurityProfile collection
+type SecurityDomainSecurityProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DomainSecurityProfile collection
+func (r *SecurityDomainSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DomainSecurityProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DomainSecurityProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DomainSecurityProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DomainSecurityProfile collection
+func (r *SecurityDomainSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]DomainSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DomainSecurityProfile collection
+func (r *SecurityDomainSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *DomainSecurityProfile) (resObj *DomainSecurityProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// FileSecurityProfiles returns request builder for FileSecurityProfile collection
+func (b *SecurityRequestBuilder) FileSecurityProfiles() *SecurityFileSecurityProfilesCollectionRequestBuilder {
+ bb := &SecurityFileSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/fileSecurityProfiles"
+ return bb
+}
+
+// SecurityFileSecurityProfilesCollectionRequestBuilder is request builder for FileSecurityProfile collection
+type SecurityFileSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for FileSecurityProfile collection
+func (b *SecurityFileSecurityProfilesCollectionRequestBuilder) Request() *SecurityFileSecurityProfilesCollectionRequest {
+ return &SecurityFileSecurityProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for FileSecurityProfile item
+func (b *SecurityFileSecurityProfilesCollectionRequestBuilder) ID(id string) *FileSecurityProfileRequestBuilder {
+ bb := &FileSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityFileSecurityProfilesCollectionRequest is request for FileSecurityProfile collection
+type SecurityFileSecurityProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for FileSecurityProfile collection
+func (r *SecurityFileSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]FileSecurityProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []FileSecurityProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []FileSecurityProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for FileSecurityProfile collection
+func (r *SecurityFileSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]FileSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for FileSecurityProfile collection
+func (r *SecurityFileSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *FileSecurityProfile) (resObj *FileSecurityProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// HostSecurityProfiles returns request builder for HostSecurityProfile collection
+func (b *SecurityRequestBuilder) HostSecurityProfiles() *SecurityHostSecurityProfilesCollectionRequestBuilder {
+ bb := &SecurityHostSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/hostSecurityProfiles"
+ return bb
+}
+
+// SecurityHostSecurityProfilesCollectionRequestBuilder is request builder for HostSecurityProfile collection
+type SecurityHostSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for HostSecurityProfile collection
+func (b *SecurityHostSecurityProfilesCollectionRequestBuilder) Request() *SecurityHostSecurityProfilesCollectionRequest {
+ return &SecurityHostSecurityProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for HostSecurityProfile item
+func (b *SecurityHostSecurityProfilesCollectionRequestBuilder) ID(id string) *HostSecurityProfileRequestBuilder {
+ bb := &HostSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityHostSecurityProfilesCollectionRequest is request for HostSecurityProfile collection
+type SecurityHostSecurityProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for HostSecurityProfile collection
+func (r *SecurityHostSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]HostSecurityProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []HostSecurityProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []HostSecurityProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for HostSecurityProfile collection
+func (r *SecurityHostSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]HostSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for HostSecurityProfile collection
+func (r *SecurityHostSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *HostSecurityProfile) (resObj *HostSecurityProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IPSecurityProfiles returns request builder for IPSecurityProfile collection
+func (b *SecurityRequestBuilder) IPSecurityProfiles() *SecurityIPSecurityProfilesCollectionRequestBuilder {
+ bb := &SecurityIPSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/ipSecurityProfiles"
+ return bb
+}
+
+// SecurityIPSecurityProfilesCollectionRequestBuilder is request builder for IPSecurityProfile collection
+type SecurityIPSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IPSecurityProfile collection
+func (b *SecurityIPSecurityProfilesCollectionRequestBuilder) Request() *SecurityIPSecurityProfilesCollectionRequest {
+ return &SecurityIPSecurityProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IPSecurityProfile item
+func (b *SecurityIPSecurityProfilesCollectionRequestBuilder) ID(id string) *IPSecurityProfileRequestBuilder {
+ bb := &IPSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityIPSecurityProfilesCollectionRequest is request for IPSecurityProfile collection
+type SecurityIPSecurityProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IPSecurityProfile collection
+func (r *SecurityIPSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]IPSecurityProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IPSecurityProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IPSecurityProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for IPSecurityProfile collection
+func (r *SecurityIPSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]IPSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for IPSecurityProfile collection
+func (r *SecurityIPSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *IPSecurityProfile) (resObj *IPSecurityProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ProviderTenantSettings returns request builder for ProviderTenantSetting collection
+func (b *SecurityRequestBuilder) ProviderTenantSettings() *SecurityProviderTenantSettingsCollectionRequestBuilder {
+ bb := &SecurityProviderTenantSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/providerTenantSettings"
+ return bb
+}
+
+// SecurityProviderTenantSettingsCollectionRequestBuilder is request builder for ProviderTenantSetting collection
+type SecurityProviderTenantSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProviderTenantSetting collection
+func (b *SecurityProviderTenantSettingsCollectionRequestBuilder) Request() *SecurityProviderTenantSettingsCollectionRequest {
+ return &SecurityProviderTenantSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProviderTenantSetting item
+func (b *SecurityProviderTenantSettingsCollectionRequestBuilder) ID(id string) *ProviderTenantSettingRequestBuilder {
+ bb := &ProviderTenantSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityProviderTenantSettingsCollectionRequest is request for ProviderTenantSetting collection
+type SecurityProviderTenantSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProviderTenantSetting collection
+func (r *SecurityProviderTenantSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ProviderTenantSetting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProviderTenantSetting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProviderTenantSetting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProviderTenantSetting collection
+func (r *SecurityProviderTenantSettingsCollectionRequest) Get(ctx context.Context) ([]ProviderTenantSetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ProviderTenantSetting collection
+func (r *SecurityProviderTenantSettingsCollectionRequest) Add(ctx context.Context, reqObj *ProviderTenantSetting) (resObj *ProviderTenantSetting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SecureScoreControlProfiles returns request builder for SecureScoreControlProfile collection
+func (b *SecurityRequestBuilder) SecureScoreControlProfiles() *SecuritySecureScoreControlProfilesCollectionRequestBuilder {
+ bb := &SecuritySecureScoreControlProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/secureScoreControlProfiles"
+ return bb
+}
+
+// SecuritySecureScoreControlProfilesCollectionRequestBuilder is request builder for SecureScoreControlProfile collection
+type SecuritySecureScoreControlProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SecureScoreControlProfile collection
+func (b *SecuritySecureScoreControlProfilesCollectionRequestBuilder) Request() *SecuritySecureScoreControlProfilesCollectionRequest {
+ return &SecuritySecureScoreControlProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SecureScoreControlProfile item
+func (b *SecuritySecureScoreControlProfilesCollectionRequestBuilder) ID(id string) *SecureScoreControlProfileRequestBuilder {
+ bb := &SecureScoreControlProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecuritySecureScoreControlProfilesCollectionRequest is request for SecureScoreControlProfile collection
+type SecuritySecureScoreControlProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SecureScoreControlProfile collection
+func (r *SecuritySecureScoreControlProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SecureScoreControlProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SecureScoreControlProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SecureScoreControlProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SecureScoreControlProfile collection
+func (r *SecuritySecureScoreControlProfilesCollectionRequest) Get(ctx context.Context) ([]SecureScoreControlProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SecureScoreControlProfile collection
+func (r *SecuritySecureScoreControlProfilesCollectionRequest) Add(ctx context.Context, reqObj *SecureScoreControlProfile) (resObj *SecureScoreControlProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SecureScores returns request builder for SecureScore collection
+func (b *SecurityRequestBuilder) SecureScores() *SecuritySecureScoresCollectionRequestBuilder {
+ bb := &SecuritySecureScoresCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/secureScores"
+ return bb
+}
+
+// SecuritySecureScoresCollectionRequestBuilder is request builder for SecureScore collection
+type SecuritySecureScoresCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SecureScore collection
+func (b *SecuritySecureScoresCollectionRequestBuilder) Request() *SecuritySecureScoresCollectionRequest {
+ return &SecuritySecureScoresCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SecureScore item
+func (b *SecuritySecureScoresCollectionRequestBuilder) ID(id string) *SecureScoreRequestBuilder {
+ bb := &SecureScoreRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecuritySecureScoresCollectionRequest is request for SecureScore collection
+type SecuritySecureScoresCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SecureScore collection
+func (r *SecuritySecureScoresCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SecureScore, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SecureScore
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SecureScore
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SecureScore collection
+func (r *SecuritySecureScoresCollectionRequest) Get(ctx context.Context) ([]SecureScore, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SecureScore collection
+func (r *SecuritySecureScoresCollectionRequest) Add(ctx context.Context, reqObj *SecureScore) (resObj *SecureScore, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SecurityActions returns request builder for SecurityAction collection
+func (b *SecurityRequestBuilder) SecurityActions() *SecuritySecurityActionsCollectionRequestBuilder {
+ bb := &SecuritySecurityActionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/securityActions"
+ return bb
+}
+
+// SecuritySecurityActionsCollectionRequestBuilder is request builder for SecurityAction collection
+type SecuritySecurityActionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SecurityAction collection
+func (b *SecuritySecurityActionsCollectionRequestBuilder) Request() *SecuritySecurityActionsCollectionRequest {
+ return &SecuritySecurityActionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SecurityAction item
+func (b *SecuritySecurityActionsCollectionRequestBuilder) ID(id string) *SecurityActionRequestBuilder {
+ bb := &SecurityActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecuritySecurityActionsCollectionRequest is request for SecurityAction collection
+type SecuritySecurityActionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SecurityAction collection
+func (r *SecuritySecurityActionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SecurityAction, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SecurityAction
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SecurityAction
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SecurityAction collection
+func (r *SecuritySecurityActionsCollectionRequest) Get(ctx context.Context) ([]SecurityAction, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SecurityAction collection
+func (r *SecuritySecurityActionsCollectionRequest) Add(ctx context.Context, reqObj *SecurityAction) (resObj *SecurityAction, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TiIndicators returns request builder for TiIndicator collection
+func (b *SecurityRequestBuilder) TiIndicators() *SecurityTiIndicatorsCollectionRequestBuilder {
+ bb := &SecurityTiIndicatorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tiIndicators"
+ return bb
+}
+
+// SecurityTiIndicatorsCollectionRequestBuilder is request builder for TiIndicator collection
+type SecurityTiIndicatorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TiIndicator collection
+func (b *SecurityTiIndicatorsCollectionRequestBuilder) Request() *SecurityTiIndicatorsCollectionRequest {
+ return &SecurityTiIndicatorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TiIndicator item
+func (b *SecurityTiIndicatorsCollectionRequestBuilder) ID(id string) *TiIndicatorRequestBuilder {
+ bb := &TiIndicatorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityTiIndicatorsCollectionRequest is request for TiIndicator collection
+type SecurityTiIndicatorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TiIndicator collection
+func (r *SecurityTiIndicatorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TiIndicator, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TiIndicator
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TiIndicator
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TiIndicator collection
+func (r *SecurityTiIndicatorsCollectionRequest) Get(ctx context.Context) ([]TiIndicator, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TiIndicator collection
+func (r *SecurityTiIndicatorsCollectionRequest) Add(ctx context.Context, reqObj *TiIndicator) (resObj *TiIndicator, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserSecurityProfiles returns request builder for UserSecurityProfile collection
+func (b *SecurityRequestBuilder) UserSecurityProfiles() *SecurityUserSecurityProfilesCollectionRequestBuilder {
+ bb := &SecurityUserSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userSecurityProfiles"
+ return bb
+}
+
+// SecurityUserSecurityProfilesCollectionRequestBuilder is request builder for UserSecurityProfile collection
+type SecurityUserSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserSecurityProfile collection
+func (b *SecurityUserSecurityProfilesCollectionRequestBuilder) Request() *SecurityUserSecurityProfilesCollectionRequest {
+ return &SecurityUserSecurityProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserSecurityProfile item
+func (b *SecurityUserSecurityProfilesCollectionRequestBuilder) ID(id string) *UserSecurityProfileRequestBuilder {
+ bb := &UserSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityUserSecurityProfilesCollectionRequest is request for UserSecurityProfile collection
+type SecurityUserSecurityProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserSecurityProfile collection
+func (r *SecurityUserSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UserSecurityProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserSecurityProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserSecurityProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserSecurityProfile collection
+func (r *SecurityUserSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]UserSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UserSecurityProfile collection
+func (r *SecurityUserSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *UserSecurityProfile) (resObj *UserSecurityProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SecurityVendorInformationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityVendorInformationModel.go
new file mode 100644
index 00000000..7e7f1c2f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SecurityVendorInformationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SecurityVendorInformation undocumented
+type SecurityVendorInformation struct {
+ // Object is the base model of SecurityVendorInformation
+ Object
+ // Provider undocumented
+ Provider *string `json:"provider,omitempty"`
+ // ProviderVersion undocumented
+ ProviderVersion *string `json:"providerVersion,omitempty"`
+ // SubProvider undocumented
+ SubProvider *string `json:"subProvider,omitempty"`
+ // Vendor undocumented
+ Vendor *string `json:"vendor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SensitiveContentEvidenceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SensitiveContentEvidenceModel.go
new file mode 100644
index 00000000..32f72be1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SensitiveContentEvidenceModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SensitiveContentEvidence undocumented
+type SensitiveContentEvidence struct {
+ // Object is the base model of SensitiveContentEvidence
+ Object
+ // Match undocumented
+ Match *string `json:"match,omitempty"`
+ // Offset undocumented
+ Offset *int `json:"offset,omitempty"`
+ // Length undocumented
+ Length *int `json:"length,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SensitiveContentLocationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SensitiveContentLocationModel.go
new file mode 100644
index 00000000..a03a0314
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SensitiveContentLocationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SensitiveContentLocation undocumented
+type SensitiveContentLocation struct {
+ // Object is the base model of SensitiveContentLocation
+ Object
+ // IDMatch undocumented
+ IDMatch *string `json:"idMatch,omitempty"`
+ // Offset undocumented
+ Offset *int `json:"offset,omitempty"`
+ // Length undocumented
+ Length *int `json:"length,omitempty"`
+ // Evidences undocumented
+ Evidences []SensitiveContentEvidence `json:"evidences,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SensitiveTypeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SensitiveTypeModel.go
new file mode 100644
index 00000000..f45b4ab8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SensitiveTypeModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SensitiveType undocumented
+type SensitiveType struct {
+ // Entity is the base model of SensitiveType
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // RulePackageID undocumented
+ RulePackageID *string `json:"rulePackageId,omitempty"`
+ // RulePackageType undocumented
+ RulePackageType *string `json:"rulePackageType,omitempty"`
+ // PublisherName undocumented
+ PublisherName *string `json:"publisherName,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SensitiveTypeRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SensitiveTypeRequest.go
new file mode 100644
index 00000000..45ad6a70
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SensitiveTypeRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SensitiveTypeRequestBuilder is request builder for SensitiveType
+type SensitiveTypeRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SensitiveTypeRequest
+func (b *SensitiveTypeRequestBuilder) Request() *SensitiveTypeRequest {
+ return &SensitiveTypeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SensitiveTypeRequest is request for SensitiveType
+type SensitiveTypeRequest struct{ BaseRequest }
+
+// Get performs GET request for SensitiveType
+func (r *SensitiveTypeRequest) Get(ctx context.Context) (resObj *SensitiveType, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SensitiveType
+func (r *SensitiveTypeRequest) Update(ctx context.Context, reqObj *SensitiveType) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SensitiveType
+func (r *SensitiveTypeRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityEnum.go
new file mode 100644
index 00000000..9f532ca7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Sensitivity undocumented
+type Sensitivity int
+
+const (
+ // SensitivityVNormal undocumented
+ SensitivityVNormal Sensitivity = 0
+ // SensitivityVPersonal undocumented
+ SensitivityVPersonal Sensitivity = 1
+ // SensitivityVPrivate undocumented
+ SensitivityVPrivate Sensitivity = 2
+ // SensitivityVConfidential undocumented
+ SensitivityVConfidential Sensitivity = 3
+)
+
+// SensitivityPNormal returns a pointer to SensitivityVNormal
+func SensitivityPNormal() *Sensitivity {
+ v := SensitivityVNormal
+ return &v
+}
+
+// SensitivityPPersonal returns a pointer to SensitivityVPersonal
+func SensitivityPPersonal() *Sensitivity {
+ v := SensitivityVPersonal
+ return &v
+}
+
+// SensitivityPPrivate returns a pointer to SensitivityVPrivate
+func SensitivityPPrivate() *Sensitivity {
+ v := SensitivityVPrivate
+ return &v
+}
+
+// SensitivityPConfidential returns a pointer to SensitivityVConfidential
+func SensitivityPConfidential() *Sensitivity {
+ v := SensitivityVConfidential
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityLabelAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityLabelAction.go
new file mode 100644
index 00000000..d1179cbe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityLabelAction.go
@@ -0,0 +1,56 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SensitivityLabelCollectionEvaluateRequestParameter undocumented
+type SensitivityLabelCollectionEvaluateRequestParameter struct {
+ // DiscoveredSensitiveTypes undocumented
+ DiscoveredSensitiveTypes []DiscoveredSensitiveType `json:"discoveredSensitiveTypes,omitempty"`
+ // CurrentLabel undocumented
+ CurrentLabel *CurrentLabel `json:"currentLabel,omitempty"`
+}
+
+//
+type SensitivityLabelCollectionEvaluateRequestBuilder struct{ BaseRequestBuilder }
+
+// Evaluate action undocumented
+func (b *DataClassificationServiceSensitivityLabelsCollectionRequestBuilder) Evaluate(reqObj *SensitivityLabelCollectionEvaluateRequestParameter) *SensitivityLabelCollectionEvaluateRequestBuilder {
+ bb := &SensitivityLabelCollectionEvaluateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// Evaluate action undocumented
+func (b *InformationProtectionSensitivityLabelsCollectionRequestBuilder) Evaluate(reqObj *SensitivityLabelCollectionEvaluateRequestParameter) *SensitivityLabelCollectionEvaluateRequestBuilder {
+ bb := &SensitivityLabelCollectionEvaluateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// Evaluate action undocumented
+func (b *SensitivityLabelSublabelsCollectionRequestBuilder) Evaluate(reqObj *SensitivityLabelCollectionEvaluateRequestParameter) *SensitivityLabelCollectionEvaluateRequestBuilder {
+ bb := &SensitivityLabelCollectionEvaluateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SensitivityLabelCollectionEvaluateRequest struct{ BaseRequest }
+
+//
+func (b *SensitivityLabelCollectionEvaluateRequestBuilder) Request() *SensitivityLabelCollectionEvaluateRequest {
+ return &SensitivityLabelCollectionEvaluateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SensitivityLabelCollectionEvaluateRequest) Post(ctx context.Context) (resObj *EvaluateLabelJobResponse, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityLabelModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityLabelModel.go
new file mode 100644
index 00000000..3036b8af
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityLabelModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SensitivityLabel undocumented
+type SensitivityLabel struct {
+ // Entity is the base model of SensitivityLabel
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // ToolTip undocumented
+ ToolTip *string `json:"toolTip,omitempty"`
+ // IsEndpointProtectionEnabled undocumented
+ IsEndpointProtectionEnabled *bool `json:"isEndpointProtectionEnabled,omitempty"`
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // ApplicationMode undocumented
+ ApplicationMode *ApplicationMode `json:"applicationMode,omitempty"`
+ // LabelActions undocumented
+ LabelActions []LabelActionBase `json:"labelActions,omitempty"`
+ // AssignedPolicies undocumented
+ AssignedPolicies []LabelPolicy `json:"assignedPolicies,omitempty"`
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+ // AutoLabeling undocumented
+ AutoLabeling *AutoLabeling `json:"autoLabeling,omitempty"`
+ // Sublabels undocumented
+ Sublabels []SensitivityLabel `json:"sublabels,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityLabelRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityLabelRequest.go
new file mode 100644
index 00000000..17c3b997
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityLabelRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SensitivityLabelRequestBuilder is request builder for SensitivityLabel
+type SensitivityLabelRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SensitivityLabelRequest
+func (b *SensitivityLabelRequestBuilder) Request() *SensitivityLabelRequest {
+ return &SensitivityLabelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SensitivityLabelRequest is request for SensitivityLabel
+type SensitivityLabelRequest struct{ BaseRequest }
+
+// Get performs GET request for SensitivityLabel
+func (r *SensitivityLabelRequest) Get(ctx context.Context) (resObj *SensitivityLabel, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SensitivityLabel
+func (r *SensitivityLabelRequest) Update(ctx context.Context, reqObj *SensitivityLabel) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SensitivityLabel
+func (r *SensitivityLabelRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Sublabels returns request builder for SensitivityLabel collection
+func (b *SensitivityLabelRequestBuilder) Sublabels() *SensitivityLabelSublabelsCollectionRequestBuilder {
+ bb := &SensitivityLabelSublabelsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sublabels"
+ return bb
+}
+
+// SensitivityLabelSublabelsCollectionRequestBuilder is request builder for SensitivityLabel collection
+type SensitivityLabelSublabelsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SensitivityLabel collection
+func (b *SensitivityLabelSublabelsCollectionRequestBuilder) Request() *SensitivityLabelSublabelsCollectionRequest {
+ return &SensitivityLabelSublabelsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SensitivityLabel item
+func (b *SensitivityLabelSublabelsCollectionRequestBuilder) ID(id string) *SensitivityLabelRequestBuilder {
+ bb := &SensitivityLabelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SensitivityLabelSublabelsCollectionRequest is request for SensitivityLabel collection
+type SensitivityLabelSublabelsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SensitivityLabel collection
+func (r *SensitivityLabelSublabelsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SensitivityLabel, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SensitivityLabel
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SensitivityLabel
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SensitivityLabel collection
+func (r *SensitivityLabelSublabelsCollectionRequest) Get(ctx context.Context) ([]SensitivityLabel, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SensitivityLabel collection
+func (r *SensitivityLabelSublabelsCollectionRequest) Add(ctx context.Context, reqObj *SensitivityLabel) (resObj *SensitivityLabel, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityPolicySettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityPolicySettingsModel.go
new file mode 100644
index 00000000..594b5c79
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityPolicySettingsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SensitivityPolicySettings undocumented
+type SensitivityPolicySettings struct {
+ // Entity is the base model of SensitivityPolicySettings
+ Entity
+ // IsMandatory undocumented
+ IsMandatory *bool `json:"isMandatory,omitempty"`
+ // HelpWebURL undocumented
+ HelpWebURL *string `json:"helpWebUrl,omitempty"`
+ // DowngradeSensitivityRequiresJustification undocumented
+ DowngradeSensitivityRequiresJustification *bool `json:"downgradeSensitivityRequiresJustification,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityPolicySettingsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityPolicySettingsRequest.go
new file mode 100644
index 00000000..1347c3ae
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SensitivityPolicySettingsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SensitivityPolicySettingsRequestBuilder is request builder for SensitivityPolicySettings
+type SensitivityPolicySettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SensitivityPolicySettingsRequest
+func (b *SensitivityPolicySettingsRequestBuilder) Request() *SensitivityPolicySettingsRequest {
+ return &SensitivityPolicySettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SensitivityPolicySettingsRequest is request for SensitivityPolicySettings
+type SensitivityPolicySettingsRequest struct{ BaseRequest }
+
+// Get performs GET request for SensitivityPolicySettings
+func (r *SensitivityPolicySettingsRequest) Get(ctx context.Context) (resObj *SensitivityPolicySettings, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SensitivityPolicySettings
+func (r *SensitivityPolicySettingsRequest) Update(ctx context.Context, reqObj *SensitivityPolicySettings) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SensitivityPolicySettings
+func (r *SensitivityPolicySettingsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ServiceHostedMediaConfigModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ServiceHostedMediaConfigModel.go
new file mode 100644
index 00000000..f228c380
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ServiceHostedMediaConfigModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ServiceHostedMediaConfig undocumented
+type ServiceHostedMediaConfig struct {
+ // MediaConfig is the base model of ServiceHostedMediaConfig
+ MediaConfig
+ // PreFetchMedia undocumented
+ PreFetchMedia []MediaInfo `json:"preFetchMedia,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ServiceInformationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ServiceInformationModel.go
new file mode 100644
index 00000000..a6883d3b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ServiceInformationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ServiceInformation undocumented
+type ServiceInformation struct {
+ // Object is the base model of ServiceInformation
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ServicePlanInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ServicePlanInfoModel.go
new file mode 100644
index 00000000..8bca1e17
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ServicePlanInfoModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ServicePlanInfo undocumented
+type ServicePlanInfo struct {
+ // Object is the base model of ServicePlanInfo
+ Object
+ // ServicePlanID undocumented
+ ServicePlanID *UUID `json:"servicePlanId,omitempty"`
+ // ServicePlanName undocumented
+ ServicePlanName *string `json:"servicePlanName,omitempty"`
+ // ProvisioningStatus undocumented
+ ProvisioningStatus *string `json:"provisioningStatus,omitempty"`
+ // AppliesTo undocumented
+ AppliesTo *string `json:"appliesTo,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ServicePrincipalAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/ServicePrincipalAction.go
new file mode 100644
index 00000000..6718618c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ServicePrincipalAction.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestParameter undocumented
+type ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestParameter struct {
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Credentials undocumented
+ Credentials []Credential `json:"credentials,omitempty"`
+}
+
+// ServicePrincipalGetPasswordSingleSignOnCredentialsRequestParameter undocumented
+type ServicePrincipalGetPasswordSingleSignOnCredentialsRequestParameter struct {
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+}
+
+// ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestParameter undocumented
+type ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestParameter struct {
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+}
+
+// ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestParameter undocumented
+type ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestParameter struct {
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Credentials undocumented
+ Credentials []Credential `json:"credentials,omitempty"`
+}
+
+//
+type ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestBuilder struct{ BaseRequestBuilder }
+
+// CreatePasswordSingleSignOnCredentials action undocumented
+func (b *ServicePrincipalRequestBuilder) CreatePasswordSingleSignOnCredentials(reqObj *ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestParameter) *ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestBuilder {
+ bb := &ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createPasswordSingleSignOnCredentials"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ServicePrincipalCreatePasswordSingleSignOnCredentialsRequest struct{ BaseRequest }
+
+//
+func (b *ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestBuilder) Request() *ServicePrincipalCreatePasswordSingleSignOnCredentialsRequest {
+ return &ServicePrincipalCreatePasswordSingleSignOnCredentialsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ServicePrincipalCreatePasswordSingleSignOnCredentialsRequest) Post(ctx context.Context) (resObj *PasswordSingleSignOnCredentialSet, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type ServicePrincipalGetPasswordSingleSignOnCredentialsRequestBuilder struct{ BaseRequestBuilder }
+
+// GetPasswordSingleSignOnCredentials action undocumented
+func (b *ServicePrincipalRequestBuilder) GetPasswordSingleSignOnCredentials(reqObj *ServicePrincipalGetPasswordSingleSignOnCredentialsRequestParameter) *ServicePrincipalGetPasswordSingleSignOnCredentialsRequestBuilder {
+ bb := &ServicePrincipalGetPasswordSingleSignOnCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getPasswordSingleSignOnCredentials"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ServicePrincipalGetPasswordSingleSignOnCredentialsRequest struct{ BaseRequest }
+
+//
+func (b *ServicePrincipalGetPasswordSingleSignOnCredentialsRequestBuilder) Request() *ServicePrincipalGetPasswordSingleSignOnCredentialsRequest {
+ return &ServicePrincipalGetPasswordSingleSignOnCredentialsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ServicePrincipalGetPasswordSingleSignOnCredentialsRequest) Post(ctx context.Context) (resObj *PasswordSingleSignOnCredentialSet, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestBuilder struct{ BaseRequestBuilder }
+
+// DeletePasswordSingleSignOnCredentials action undocumented
+func (b *ServicePrincipalRequestBuilder) DeletePasswordSingleSignOnCredentials(reqObj *ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestParameter) *ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestBuilder {
+ bb := &ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/deletePasswordSingleSignOnCredentials"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ServicePrincipalDeletePasswordSingleSignOnCredentialsRequest struct{ BaseRequest }
+
+//
+func (b *ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestBuilder) Request() *ServicePrincipalDeletePasswordSingleSignOnCredentialsRequest {
+ return &ServicePrincipalDeletePasswordSingleSignOnCredentialsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ServicePrincipalDeletePasswordSingleSignOnCredentialsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdatePasswordSingleSignOnCredentials action undocumented
+func (b *ServicePrincipalRequestBuilder) UpdatePasswordSingleSignOnCredentials(reqObj *ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestParameter) *ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestBuilder {
+ bb := &ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updatePasswordSingleSignOnCredentials"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequest struct{ BaseRequest }
+
+//
+func (b *ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestBuilder) Request() *ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequest {
+ return &ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ServicePrincipalModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ServicePrincipalModel.go
new file mode 100644
index 00000000..132dbb62
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ServicePrincipalModel.go
@@ -0,0 +1,75 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ServicePrincipal undocumented
+type ServicePrincipal struct {
+ // DirectoryObject is the base model of ServicePrincipal
+ DirectoryObject
+ // AccountEnabled undocumented
+ AccountEnabled *bool `json:"accountEnabled,omitempty"`
+ // AddIns undocumented
+ AddIns []AddIn `json:"addIns,omitempty"`
+ // AppDisplayName undocumented
+ AppDisplayName *string `json:"appDisplayName,omitempty"`
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // ApplicationTemplateID undocumented
+ ApplicationTemplateID *string `json:"applicationTemplateId,omitempty"`
+ // AppOwnerOrganizationID undocumented
+ AppOwnerOrganizationID *UUID `json:"appOwnerOrganizationId,omitempty"`
+ // AppRoleAssignmentRequired undocumented
+ AppRoleAssignmentRequired *bool `json:"appRoleAssignmentRequired,omitempty"`
+ // AppRoles undocumented
+ AppRoles []AppRole `json:"appRoles,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Homepage undocumented
+ Homepage *string `json:"homepage,omitempty"`
+ // KeyCredentials undocumented
+ KeyCredentials []KeyCredential `json:"keyCredentials,omitempty"`
+ // Info undocumented
+ Info *InformationalURL `json:"info,omitempty"`
+ // LogoutURL undocumented
+ LogoutURL *string `json:"logoutUrl,omitempty"`
+ // NotificationEmailAddresses undocumented
+ NotificationEmailAddresses []string `json:"notificationEmailAddresses,omitempty"`
+ // PublishedPermissionScopes undocumented
+ PublishedPermissionScopes []PermissionScope `json:"publishedPermissionScopes,omitempty"`
+ // PasswordCredentials undocumented
+ PasswordCredentials []PasswordCredential `json:"passwordCredentials,omitempty"`
+ // PreferredTokenSigningKeyThumbprint undocumented
+ PreferredTokenSigningKeyThumbprint *string `json:"preferredTokenSigningKeyThumbprint,omitempty"`
+ // PublisherName undocumented
+ PublisherName *string `json:"publisherName,omitempty"`
+ // ReplyUrls undocumented
+ ReplyUrls []string `json:"replyUrls,omitempty"`
+ // SamlMetadataURL undocumented
+ SamlMetadataURL *string `json:"samlMetadataUrl,omitempty"`
+ // ServicePrincipalNames undocumented
+ ServicePrincipalNames []string `json:"servicePrincipalNames,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // AppRoleAssignedTo undocumented
+ AppRoleAssignedTo []AppRoleAssignment `json:"appRoleAssignedTo,omitempty"`
+ // AppRoleAssignments undocumented
+ AppRoleAssignments []AppRoleAssignment `json:"appRoleAssignments,omitempty"`
+ // Oauth2PermissionGrants undocumented
+ Oauth2PermissionGrants []OAuth2PermissionGrant `json:"oauth2PermissionGrants,omitempty"`
+ // MemberOf undocumented
+ MemberOf []DirectoryObject `json:"memberOf,omitempty"`
+ // TransitiveMemberOf undocumented
+ TransitiveMemberOf []DirectoryObject `json:"transitiveMemberOf,omitempty"`
+ // CreatedObjects undocumented
+ CreatedObjects []DirectoryObject `json:"createdObjects,omitempty"`
+ // LicenseDetails undocumented
+ LicenseDetails []LicenseDetails `json:"licenseDetails,omitempty"`
+ // Owners undocumented
+ Owners []DirectoryObject `json:"owners,omitempty"`
+ // OwnedObjects undocumented
+ OwnedObjects []DirectoryObject `json:"ownedObjects,omitempty"`
+ // Policies undocumented
+ Policies []DirectoryObject `json:"policies,omitempty"`
+ // Synchronization undocumented
+ Synchronization *Synchronization `json:"synchronization,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ServicePrincipalRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ServicePrincipalRequest.go
new file mode 100644
index 00000000..6ee476af
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ServicePrincipalRequest.go
@@ -0,0 +1,992 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ServicePrincipalRequestBuilder is request builder for ServicePrincipal
+type ServicePrincipalRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ServicePrincipalRequest
+func (b *ServicePrincipalRequestBuilder) Request() *ServicePrincipalRequest {
+ return &ServicePrincipalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ServicePrincipalRequest is request for ServicePrincipal
+type ServicePrincipalRequest struct{ BaseRequest }
+
+// Get performs GET request for ServicePrincipal
+func (r *ServicePrincipalRequest) Get(ctx context.Context) (resObj *ServicePrincipal, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ServicePrincipal
+func (r *ServicePrincipalRequest) Update(ctx context.Context, reqObj *ServicePrincipal) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ServicePrincipal
+func (r *ServicePrincipalRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AppRoleAssignedTo returns request builder for AppRoleAssignment collection
+func (b *ServicePrincipalRequestBuilder) AppRoleAssignedTo() *ServicePrincipalAppRoleAssignedToCollectionRequestBuilder {
+ bb := &ServicePrincipalAppRoleAssignedToCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appRoleAssignedTo"
+ return bb
+}
+
+// ServicePrincipalAppRoleAssignedToCollectionRequestBuilder is request builder for AppRoleAssignment collection
+type ServicePrincipalAppRoleAssignedToCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppRoleAssignment collection
+func (b *ServicePrincipalAppRoleAssignedToCollectionRequestBuilder) Request() *ServicePrincipalAppRoleAssignedToCollectionRequest {
+ return &ServicePrincipalAppRoleAssignedToCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppRoleAssignment item
+func (b *ServicePrincipalAppRoleAssignedToCollectionRequestBuilder) ID(id string) *AppRoleAssignmentRequestBuilder {
+ bb := &AppRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalAppRoleAssignedToCollectionRequest is request for AppRoleAssignment collection
+type ServicePrincipalAppRoleAssignedToCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppRoleAssignment collection
+func (r *ServicePrincipalAppRoleAssignedToCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AppRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppRoleAssignment collection
+func (r *ServicePrincipalAppRoleAssignedToCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AppRoleAssignment collection
+func (r *ServicePrincipalAppRoleAssignedToCollectionRequest) Add(ctx context.Context, reqObj *AppRoleAssignment) (resObj *AppRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AppRoleAssignments returns request builder for AppRoleAssignment collection
+func (b *ServicePrincipalRequestBuilder) AppRoleAssignments() *ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder {
+ bb := &ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appRoleAssignments"
+ return bb
+}
+
+// ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder is request builder for AppRoleAssignment collection
+type ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppRoleAssignment collection
+func (b *ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder) Request() *ServicePrincipalAppRoleAssignmentsCollectionRequest {
+ return &ServicePrincipalAppRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppRoleAssignment item
+func (b *ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder) ID(id string) *AppRoleAssignmentRequestBuilder {
+ bb := &AppRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalAppRoleAssignmentsCollectionRequest is request for AppRoleAssignment collection
+type ServicePrincipalAppRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppRoleAssignment collection
+func (r *ServicePrincipalAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AppRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppRoleAssignment collection
+func (r *ServicePrincipalAppRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AppRoleAssignment collection
+func (r *ServicePrincipalAppRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AppRoleAssignment) (resObj *AppRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CreatedObjects returns request builder for DirectoryObject collection
+func (b *ServicePrincipalRequestBuilder) CreatedObjects() *ServicePrincipalCreatedObjectsCollectionRequestBuilder {
+ bb := &ServicePrincipalCreatedObjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/createdObjects"
+ return bb
+}
+
+// ServicePrincipalCreatedObjectsCollectionRequestBuilder is request builder for DirectoryObject collection
+type ServicePrincipalCreatedObjectsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *ServicePrincipalCreatedObjectsCollectionRequestBuilder) Request() *ServicePrincipalCreatedObjectsCollectionRequest {
+ return &ServicePrincipalCreatedObjectsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *ServicePrincipalCreatedObjectsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalCreatedObjectsCollectionRequest is request for DirectoryObject collection
+type ServicePrincipalCreatedObjectsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *ServicePrincipalCreatedObjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalCreatedObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *ServicePrincipalCreatedObjectsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// LicenseDetails returns request builder for LicenseDetails collection
+func (b *ServicePrincipalRequestBuilder) LicenseDetails() *ServicePrincipalLicenseDetailsCollectionRequestBuilder {
+ bb := &ServicePrincipalLicenseDetailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/licenseDetails"
+ return bb
+}
+
+// ServicePrincipalLicenseDetailsCollectionRequestBuilder is request builder for LicenseDetails collection
+type ServicePrincipalLicenseDetailsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for LicenseDetails collection
+func (b *ServicePrincipalLicenseDetailsCollectionRequestBuilder) Request() *ServicePrincipalLicenseDetailsCollectionRequest {
+ return &ServicePrincipalLicenseDetailsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for LicenseDetails item
+func (b *ServicePrincipalLicenseDetailsCollectionRequestBuilder) ID(id string) *LicenseDetailsRequestBuilder {
+ bb := &LicenseDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalLicenseDetailsCollectionRequest is request for LicenseDetails collection
+type ServicePrincipalLicenseDetailsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for LicenseDetails collection
+func (r *ServicePrincipalLicenseDetailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]LicenseDetails, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []LicenseDetails
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []LicenseDetails
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for LicenseDetails collection
+func (r *ServicePrincipalLicenseDetailsCollectionRequest) Get(ctx context.Context) ([]LicenseDetails, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for LicenseDetails collection
+func (r *ServicePrincipalLicenseDetailsCollectionRequest) Add(ctx context.Context, reqObj *LicenseDetails) (resObj *LicenseDetails, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MemberOf returns request builder for DirectoryObject collection
+func (b *ServicePrincipalRequestBuilder) MemberOf() *ServicePrincipalMemberOfCollectionRequestBuilder {
+ bb := &ServicePrincipalMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/memberOf"
+ return bb
+}
+
+// ServicePrincipalMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type ServicePrincipalMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *ServicePrincipalMemberOfCollectionRequestBuilder) Request() *ServicePrincipalMemberOfCollectionRequest {
+ return &ServicePrincipalMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *ServicePrincipalMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalMemberOfCollectionRequest is request for DirectoryObject collection
+type ServicePrincipalMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *ServicePrincipalMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *ServicePrincipalMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Oauth2PermissionGrants returns request builder for OAuth2PermissionGrant collection
+func (b *ServicePrincipalRequestBuilder) Oauth2PermissionGrants() *ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder {
+ bb := &ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/oauth2PermissionGrants"
+ return bb
+}
+
+// ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder is request builder for OAuth2PermissionGrant collection
+type ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OAuth2PermissionGrant collection
+func (b *ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder) Request() *ServicePrincipalOauth2PermissionGrantsCollectionRequest {
+ return &ServicePrincipalOauth2PermissionGrantsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OAuth2PermissionGrant item
+func (b *ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder) ID(id string) *OAuth2PermissionGrantRequestBuilder {
+ bb := &OAuth2PermissionGrantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalOauth2PermissionGrantsCollectionRequest is request for OAuth2PermissionGrant collection
+type ServicePrincipalOauth2PermissionGrantsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OAuth2PermissionGrant collection
+func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OAuth2PermissionGrant, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OAuth2PermissionGrant
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OAuth2PermissionGrant
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OAuth2PermissionGrant collection
+func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) Get(ctx context.Context) ([]OAuth2PermissionGrant, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OAuth2PermissionGrant collection
+func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) Add(ctx context.Context, reqObj *OAuth2PermissionGrant) (resObj *OAuth2PermissionGrant, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// OwnedObjects returns request builder for DirectoryObject collection
+func (b *ServicePrincipalRequestBuilder) OwnedObjects() *ServicePrincipalOwnedObjectsCollectionRequestBuilder {
+ bb := &ServicePrincipalOwnedObjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/ownedObjects"
+ return bb
+}
+
+// ServicePrincipalOwnedObjectsCollectionRequestBuilder is request builder for DirectoryObject collection
+type ServicePrincipalOwnedObjectsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *ServicePrincipalOwnedObjectsCollectionRequestBuilder) Request() *ServicePrincipalOwnedObjectsCollectionRequest {
+ return &ServicePrincipalOwnedObjectsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *ServicePrincipalOwnedObjectsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalOwnedObjectsCollectionRequest is request for DirectoryObject collection
+type ServicePrincipalOwnedObjectsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *ServicePrincipalOwnedObjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalOwnedObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *ServicePrincipalOwnedObjectsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Owners returns request builder for DirectoryObject collection
+func (b *ServicePrincipalRequestBuilder) Owners() *ServicePrincipalOwnersCollectionRequestBuilder {
+ bb := &ServicePrincipalOwnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/owners"
+ return bb
+}
+
+// ServicePrincipalOwnersCollectionRequestBuilder is request builder for DirectoryObject collection
+type ServicePrincipalOwnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *ServicePrincipalOwnersCollectionRequestBuilder) Request() *ServicePrincipalOwnersCollectionRequest {
+ return &ServicePrincipalOwnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *ServicePrincipalOwnersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalOwnersCollectionRequest is request for DirectoryObject collection
+type ServicePrincipalOwnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *ServicePrincipalOwnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalOwnersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *ServicePrincipalOwnersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Policies returns request builder for DirectoryObject collection
+func (b *ServicePrincipalRequestBuilder) Policies() *ServicePrincipalPoliciesCollectionRequestBuilder {
+ bb := &ServicePrincipalPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policies"
+ return bb
+}
+
+// ServicePrincipalPoliciesCollectionRequestBuilder is request builder for DirectoryObject collection
+type ServicePrincipalPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *ServicePrincipalPoliciesCollectionRequestBuilder) Request() *ServicePrincipalPoliciesCollectionRequest {
+ return &ServicePrincipalPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *ServicePrincipalPoliciesCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalPoliciesCollectionRequest is request for DirectoryObject collection
+type ServicePrincipalPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *ServicePrincipalPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalPoliciesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *ServicePrincipalPoliciesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Synchronization is navigation property
+func (b *ServicePrincipalRequestBuilder) Synchronization() *SynchronizationRequestBuilder {
+ bb := &SynchronizationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/synchronization"
+ return bb
+}
+
+// TransitiveMemberOf returns request builder for DirectoryObject collection
+func (b *ServicePrincipalRequestBuilder) TransitiveMemberOf() *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder {
+ bb := &ServicePrincipalTransitiveMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/transitiveMemberOf"
+ return bb
+}
+
+// ServicePrincipalTransitiveMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type ServicePrincipalTransitiveMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder) Request() *ServicePrincipalTransitiveMemberOfCollectionRequest {
+ return &ServicePrincipalTransitiveMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalTransitiveMemberOfCollectionRequest is request for DirectoryObject collection
+type ServicePrincipalTransitiveMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *ServicePrincipalTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *ServicePrincipalTransitiveMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ServiceStartTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ServiceStartTypeEnum.go
new file mode 100644
index 00000000..08f0cd31
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ServiceStartTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ServiceStartType undocumented
+type ServiceStartType int
+
+const (
+ // ServiceStartTypeVManual undocumented
+ ServiceStartTypeVManual ServiceStartType = 0
+ // ServiceStartTypeVAutomatic undocumented
+ ServiceStartTypeVAutomatic ServiceStartType = 1
+ // ServiceStartTypeVDisabled undocumented
+ ServiceStartTypeVDisabled ServiceStartType = 2
+)
+
+// ServiceStartTypePManual returns a pointer to ServiceStartTypeVManual
+func ServiceStartTypePManual() *ServiceStartType {
+ v := ServiceStartTypeVManual
+ return &v
+}
+
+// ServiceStartTypePAutomatic returns a pointer to ServiceStartTypeVAutomatic
+func ServiceStartTypePAutomatic() *ServiceStartType {
+ v := ServiceStartTypeVAutomatic
+ return &v
+}
+
+// ServiceStartTypePDisabled returns a pointer to ServiceStartTypeVDisabled
+func ServiceStartTypePDisabled() *ServiceStartType {
+ v := ServiceStartTypeVDisabled
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SettingSourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SettingSourceModel.go
new file mode 100644
index 00000000..d136884e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SettingSourceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SettingSource undocumented
+type SettingSource struct {
+ // Object is the base model of SettingSource
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SettingStateDeviceSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SettingStateDeviceSummaryModel.go
new file mode 100644
index 00000000..27a85e76
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SettingStateDeviceSummaryModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SettingStateDeviceSummary Device Compilance Policy and Configuration for a Setting State summary
+type SettingStateDeviceSummary struct {
+ // Entity is the base model of SettingStateDeviceSummary
+ Entity
+ // SettingName Name of the setting
+ SettingName *string `json:"settingName,omitempty"`
+ // InstancePath Name of the InstancePath for the setting
+ InstancePath *string `json:"instancePath,omitempty"`
+ // UnknownDeviceCount Device Unkown count for the setting
+ UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"`
+ // NotApplicableDeviceCount Device Not Applicable count for the setting
+ NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"`
+ // CompliantDeviceCount Device Compliant count for the setting
+ CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"`
+ // RemediatedDeviceCount Device Compliant count for the setting
+ RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"`
+ // NonCompliantDeviceCount Device NonCompliant count for the setting
+ NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"`
+ // ErrorDeviceCount Device error count for the setting
+ ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"`
+ // ConflictDeviceCount Device conflict error count for the setting
+ ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SettingStateDeviceSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SettingStateDeviceSummaryRequest.go
new file mode 100644
index 00000000..f7612727
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SettingStateDeviceSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SettingStateDeviceSummaryRequestBuilder is request builder for SettingStateDeviceSummary
+type SettingStateDeviceSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SettingStateDeviceSummaryRequest
+func (b *SettingStateDeviceSummaryRequestBuilder) Request() *SettingStateDeviceSummaryRequest {
+ return &SettingStateDeviceSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SettingStateDeviceSummaryRequest is request for SettingStateDeviceSummary
+type SettingStateDeviceSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for SettingStateDeviceSummary
+func (r *SettingStateDeviceSummaryRequest) Get(ctx context.Context) (resObj *SettingStateDeviceSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SettingStateDeviceSummary
+func (r *SettingStateDeviceSummaryRequest) Update(ctx context.Context, reqObj *SettingStateDeviceSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SettingStateDeviceSummary
+func (r *SettingStateDeviceSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SettingTemplateValueModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SettingTemplateValueModel.go
new file mode 100644
index 00000000..be0e77b2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SettingTemplateValueModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SettingTemplateValue undocumented
+type SettingTemplateValue struct {
+ // Object is the base model of SettingTemplateValue
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // DefaultValue undocumented
+ DefaultValue *string `json:"defaultValue,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SettingValueModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SettingValueModel.go
new file mode 100644
index 00000000..5eb31390
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SettingValueModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SettingValue undocumented
+type SettingValue struct {
+ // Object is the base model of SettingValue
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SettingsModel.go
new file mode 100644
index 00000000..fb153674
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SettingsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Settings undocumented
+type Settings struct {
+ // Object is the base model of Settings
+ Object
+ // HasLicense undocumented
+ HasLicense *bool `json:"hasLicense,omitempty"`
+ // HasOptedOut undocumented
+ HasOptedOut *bool `json:"hasOptedOut,omitempty"`
+ // HasGraphMailbox undocumented
+ HasGraphMailbox *bool `json:"hasGraphMailbox,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SetupStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SetupStatusEnum.go
new file mode 100644
index 00000000..9d80d981
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SetupStatusEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SetupStatus undocumented
+type SetupStatus int
+
+const (
+ // SetupStatusVUnknown undocumented
+ SetupStatusVUnknown SetupStatus = 0
+ // SetupStatusVNotRegisteredYet undocumented
+ SetupStatusVNotRegisteredYet SetupStatus = 1
+ // SetupStatusVRegisteredSetupNotStarted undocumented
+ SetupStatusVRegisteredSetupNotStarted SetupStatus = 2
+ // SetupStatusVRegisteredSetupInProgress undocumented
+ SetupStatusVRegisteredSetupInProgress SetupStatus = 3
+ // SetupStatusVRegistrationAndSetupCompleted undocumented
+ SetupStatusVRegistrationAndSetupCompleted SetupStatus = 4
+ // SetupStatusVRegistrationFailed undocumented
+ SetupStatusVRegistrationFailed SetupStatus = 5
+ // SetupStatusVRegistrationTimedOut undocumented
+ SetupStatusVRegistrationTimedOut SetupStatus = 6
+ // SetupStatusVDisabled undocumented
+ SetupStatusVDisabled SetupStatus = 7
+)
+
+// SetupStatusPUnknown returns a pointer to SetupStatusVUnknown
+func SetupStatusPUnknown() *SetupStatus {
+ v := SetupStatusVUnknown
+ return &v
+}
+
+// SetupStatusPNotRegisteredYet returns a pointer to SetupStatusVNotRegisteredYet
+func SetupStatusPNotRegisteredYet() *SetupStatus {
+ v := SetupStatusVNotRegisteredYet
+ return &v
+}
+
+// SetupStatusPRegisteredSetupNotStarted returns a pointer to SetupStatusVRegisteredSetupNotStarted
+func SetupStatusPRegisteredSetupNotStarted() *SetupStatus {
+ v := SetupStatusVRegisteredSetupNotStarted
+ return &v
+}
+
+// SetupStatusPRegisteredSetupInProgress returns a pointer to SetupStatusVRegisteredSetupInProgress
+func SetupStatusPRegisteredSetupInProgress() *SetupStatus {
+ v := SetupStatusVRegisteredSetupInProgress
+ return &v
+}
+
+// SetupStatusPRegistrationAndSetupCompleted returns a pointer to SetupStatusVRegistrationAndSetupCompleted
+func SetupStatusPRegistrationAndSetupCompleted() *SetupStatus {
+ v := SetupStatusVRegistrationAndSetupCompleted
+ return &v
+}
+
+// SetupStatusPRegistrationFailed returns a pointer to SetupStatusVRegistrationFailed
+func SetupStatusPRegistrationFailed() *SetupStatus {
+ v := SetupStatusVRegistrationFailed
+ return &v
+}
+
+// SetupStatusPRegistrationTimedOut returns a pointer to SetupStatusVRegistrationTimedOut
+func SetupStatusPRegistrationTimedOut() *SetupStatus {
+ v := SetupStatusVRegistrationTimedOut
+ return &v
+}
+
+// SetupStatusPDisabled returns a pointer to SetupStatusVDisabled
+func SetupStatusPDisabled() *SetupStatus {
+ v := SetupStatusVDisabled
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ShareActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ShareActionModel.go
new file mode 100644
index 00000000..daaaea45
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ShareActionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ShareAction undocumented
+type ShareAction struct {
+ // Object is the base model of ShareAction
+ Object
+ // Recipients undocumented
+ Recipients []IdentitySet `json:"recipients,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharePointActivityPagesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharePointActivityPagesModel.go
new file mode 100644
index 00000000..7c11cd37
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharePointActivityPagesModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SharePointActivityPages undocumented
+type SharePointActivityPages struct {
+ // Entity is the base model of SharePointActivityPages
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // VisitedPageCount undocumented
+ VisitedPageCount *int `json:"visitedPageCount,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharePointActivityUserCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharePointActivityUserCountsModel.go
new file mode 100644
index 00000000..b85ae65c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharePointActivityUserCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SharePointActivityUserCounts undocumented
+type SharePointActivityUserCounts struct {
+ // Entity is the base model of SharePointActivityUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // VisitedPage undocumented
+ VisitedPage *int `json:"visitedPage,omitempty"`
+ // ViewedOrEdited undocumented
+ ViewedOrEdited *int `json:"viewedOrEdited,omitempty"`
+ // Synced undocumented
+ Synced *int `json:"synced,omitempty"`
+ // SharedInternally undocumented
+ SharedInternally *int `json:"sharedInternally,omitempty"`
+ // SharedExternally undocumented
+ SharedExternally *int `json:"sharedExternally,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharePointActivityUserDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharePointActivityUserDetailModel.go
new file mode 100644
index 00000000..89f755d9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharePointActivityUserDetailModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SharePointActivityUserDetail undocumented
+type SharePointActivityUserDetail struct {
+ // Entity is the base model of SharePointActivityUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *time.Time `json:"deletedDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `json:"lastActivityDate,omitempty"`
+ // ViewedOrEditedFileCount undocumented
+ ViewedOrEditedFileCount *int `json:"viewedOrEditedFileCount,omitempty"`
+ // SyncedFileCount undocumented
+ SyncedFileCount *int `json:"syncedFileCount,omitempty"`
+ // SharedInternallyFileCount undocumented
+ SharedInternallyFileCount *int `json:"sharedInternallyFileCount,omitempty"`
+ // SharedExternallyFileCount undocumented
+ SharedExternallyFileCount *int `json:"sharedExternallyFileCount,omitempty"`
+ // VisitedPageCount undocumented
+ VisitedPageCount *int `json:"visitedPageCount,omitempty"`
+ // AssignedProducts undocumented
+ AssignedProducts []string `json:"assignedProducts,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharePointSiteUsageDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharePointSiteUsageDetailModel.go
new file mode 100644
index 00000000..0e7ea2c5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharePointSiteUsageDetailModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SharePointSiteUsageDetail undocumented
+type SharePointSiteUsageDetail struct {
+ // Entity is the base model of SharePointSiteUsageDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // SiteID undocumented
+ SiteID *UUID `json:"siteId,omitempty"`
+ // SiteURL undocumented
+ SiteURL *string `json:"siteUrl,omitempty"`
+ // OwnerDisplayName undocumented
+ OwnerDisplayName *string `json:"ownerDisplayName,omitempty"`
+ // OwnerPrincipalName undocumented
+ OwnerPrincipalName *string `json:"ownerPrincipalName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `json:"lastActivityDate,omitempty"`
+ // FileCount undocumented
+ FileCount *int `json:"fileCount,omitempty"`
+ // ActiveFileCount undocumented
+ ActiveFileCount *int `json:"activeFileCount,omitempty"`
+ // PageViewCount undocumented
+ PageViewCount *int `json:"pageViewCount,omitempty"`
+ // VisitedPageCount undocumented
+ VisitedPageCount *int `json:"visitedPageCount,omitempty"`
+ // StorageUsedInBytes undocumented
+ StorageUsedInBytes *int `json:"storageUsedInBytes,omitempty"`
+ // StorageAllocatedInBytes undocumented
+ StorageAllocatedInBytes *int `json:"storageAllocatedInBytes,omitempty"`
+ // RootWebTemplate undocumented
+ RootWebTemplate *string `json:"rootWebTemplate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharePointSiteUsageFileCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharePointSiteUsageFileCountsModel.go
new file mode 100644
index 00000000..26b20898
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharePointSiteUsageFileCountsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SharePointSiteUsageFileCounts undocumented
+type SharePointSiteUsageFileCounts struct {
+ // Entity is the base model of SharePointSiteUsageFileCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // SiteType undocumented
+ SiteType *string `json:"siteType,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharePointSiteUsagePagesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharePointSiteUsagePagesModel.go
new file mode 100644
index 00000000..6e5257c7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharePointSiteUsagePagesModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SharePointSiteUsagePages undocumented
+type SharePointSiteUsagePages struct {
+ // Entity is the base model of SharePointSiteUsagePages
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // SiteType undocumented
+ SiteType *string `json:"siteType,omitempty"`
+ // PageViewCount undocumented
+ PageViewCount *int `json:"pageViewCount,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharePointSiteUsageSiteCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharePointSiteUsageSiteCountsModel.go
new file mode 100644
index 00000000..cb80a5db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharePointSiteUsageSiteCountsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SharePointSiteUsageSiteCounts undocumented
+type SharePointSiteUsageSiteCounts struct {
+ // Entity is the base model of SharePointSiteUsageSiteCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // SiteType undocumented
+ SiteType *string `json:"siteType,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharedAppleDeviceUserModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharedAppleDeviceUserModel.go
new file mode 100644
index 00000000..9d3e9036
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharedAppleDeviceUserModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SharedAppleDeviceUser undocumented
+type SharedAppleDeviceUser struct {
+ // Object is the base model of SharedAppleDeviceUser
+ Object
+ // UserPrincipalName User name
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DataToSync Data to sync
+ DataToSync *bool `json:"dataToSync,omitempty"`
+ // DataQuota Data quota
+ DataQuota *int `json:"dataQuota,omitempty"`
+ // DataUsed Data quota
+ DataUsed *int `json:"dataUsed,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharedDriveItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharedDriveItemModel.go
new file mode 100644
index 00000000..eccdd6c0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharedDriveItemModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SharedDriveItem undocumented
+type SharedDriveItem struct {
+ // BaseItem is the base model of SharedDriveItem
+ BaseItem
+ // Owner undocumented
+ Owner *IdentitySet `json:"owner,omitempty"`
+ // DriveItem undocumented
+ DriveItem *DriveItem `json:"driveItem,omitempty"`
+ // Items undocumented
+ Items []DriveItem `json:"items,omitempty"`
+ // List undocumented
+ List *List `json:"list,omitempty"`
+ // ListItem undocumented
+ ListItem *ListItem `json:"listItem,omitempty"`
+ // Permission undocumented
+ Permission *Permission `json:"permission,omitempty"`
+ // Root undocumented
+ Root *DriveItem `json:"root,omitempty"`
+ // Site undocumented
+ Site *Site `json:"site,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharedDriveItemRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharedDriveItemRequest.go
new file mode 100644
index 00000000..644b620a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharedDriveItemRequest.go
@@ -0,0 +1,181 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SharedDriveItemRequestBuilder is request builder for SharedDriveItem
+type SharedDriveItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SharedDriveItemRequest
+func (b *SharedDriveItemRequestBuilder) Request() *SharedDriveItemRequest {
+ return &SharedDriveItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SharedDriveItemRequest is request for SharedDriveItem
+type SharedDriveItemRequest struct{ BaseRequest }
+
+// Get performs GET request for SharedDriveItem
+func (r *SharedDriveItemRequest) Get(ctx context.Context) (resObj *SharedDriveItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SharedDriveItem
+func (r *SharedDriveItemRequest) Update(ctx context.Context, reqObj *SharedDriveItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SharedDriveItem
+func (r *SharedDriveItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DriveItem is navigation property
+func (b *SharedDriveItemRequestBuilder) DriveItem() *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/driveItem"
+ return bb
+}
+
+// Items returns request builder for DriveItem collection
+func (b *SharedDriveItemRequestBuilder) Items() *SharedDriveItemItemsCollectionRequestBuilder {
+ bb := &SharedDriveItemItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/items"
+ return bb
+}
+
+// SharedDriveItemItemsCollectionRequestBuilder is request builder for DriveItem collection
+type SharedDriveItemItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DriveItem collection
+func (b *SharedDriveItemItemsCollectionRequestBuilder) Request() *SharedDriveItemItemsCollectionRequest {
+ return &SharedDriveItemItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DriveItem item
+func (b *SharedDriveItemItemsCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SharedDriveItemItemsCollectionRequest is request for DriveItem collection
+type SharedDriveItemItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DriveItem collection
+func (r *SharedDriveItemItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DriveItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DriveItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DriveItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DriveItem collection
+func (r *SharedDriveItemItemsCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DriveItem collection
+func (r *SharedDriveItemItemsCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// List is navigation property
+func (b *SharedDriveItemRequestBuilder) List() *ListRequestBuilder {
+ bb := &ListRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/list"
+ return bb
+}
+
+// ListItem is navigation property
+func (b *SharedDriveItemRequestBuilder) ListItem() *ListItemRequestBuilder {
+ bb := &ListItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/listItem"
+ return bb
+}
+
+// Permission is navigation property
+func (b *SharedDriveItemRequestBuilder) Permission() *PermissionRequestBuilder {
+ bb := &PermissionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/permission"
+ return bb
+}
+
+// Root is navigation property
+func (b *SharedDriveItemRequestBuilder) Root() *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/root"
+ return bb
+}
+
+// Site is navigation property
+func (b *SharedDriveItemRequestBuilder) Site() *SiteRequestBuilder {
+ bb := &SiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/site"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharedInsightModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharedInsightModel.go
new file mode 100644
index 00000000..9919f412
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharedInsightModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SharedInsight undocumented
+type SharedInsight struct {
+ // Entity is the base model of SharedInsight
+ Entity
+ // LastShared undocumented
+ LastShared *SharingDetail `json:"lastShared,omitempty"`
+ // SharingHistory undocumented
+ SharingHistory []SharingDetail `json:"sharingHistory,omitempty"`
+ // ResourceVisualization undocumented
+ ResourceVisualization *ResourceVisualization `json:"resourceVisualization,omitempty"`
+ // ResourceReference undocumented
+ ResourceReference *ResourceReference `json:"resourceReference,omitempty"`
+ // LastSharedMethod undocumented
+ LastSharedMethod *Entity `json:"lastSharedMethod,omitempty"`
+ // Resource undocumented
+ Resource *Entity `json:"resource,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharedInsightRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharedInsightRequest.go
new file mode 100644
index 00000000..0065f4f4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharedInsightRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SharedInsightRequestBuilder is request builder for SharedInsight
+type SharedInsightRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SharedInsightRequest
+func (b *SharedInsightRequestBuilder) Request() *SharedInsightRequest {
+ return &SharedInsightRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SharedInsightRequest is request for SharedInsight
+type SharedInsightRequest struct{ BaseRequest }
+
+// Get performs GET request for SharedInsight
+func (r *SharedInsightRequest) Get(ctx context.Context) (resObj *SharedInsight, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SharedInsight
+func (r *SharedInsightRequest) Update(ctx context.Context, reqObj *SharedInsight) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SharedInsight
+func (r *SharedInsightRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// LastSharedMethod is navigation property
+func (b *SharedInsightRequestBuilder) LastSharedMethod() *EntityRequestBuilder {
+ bb := &EntityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/lastSharedMethod"
+ return bb
+}
+
+// Resource is navigation property
+func (b *SharedInsightRequestBuilder) Resource() *EntityRequestBuilder {
+ bb := &EntityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resource"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharedModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharedModel.go
new file mode 100644
index 00000000..add0c749
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharedModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Shared undocumented
+type Shared struct {
+ // Object is the base model of Shared
+ Object
+ // Owner undocumented
+ Owner *IdentitySet `json:"owner,omitempty"`
+ // Scope undocumented
+ Scope *string `json:"scope,omitempty"`
+ // SharedBy undocumented
+ SharedBy *IdentitySet `json:"sharedBy,omitempty"`
+ // SharedDateTime undocumented
+ SharedDateTime *time.Time `json:"sharedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharedPCAccountDeletionPolicyTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharedPCAccountDeletionPolicyTypeEnum.go
new file mode 100644
index 00000000..ccadb6db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharedPCAccountDeletionPolicyTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SharedPCAccountDeletionPolicyType undocumented
+type SharedPCAccountDeletionPolicyType int
+
+const (
+ // SharedPCAccountDeletionPolicyTypeVImmediate undocumented
+ SharedPCAccountDeletionPolicyTypeVImmediate SharedPCAccountDeletionPolicyType = 0
+ // SharedPCAccountDeletionPolicyTypeVDiskSpaceThreshold undocumented
+ SharedPCAccountDeletionPolicyTypeVDiskSpaceThreshold SharedPCAccountDeletionPolicyType = 1
+ // SharedPCAccountDeletionPolicyTypeVDiskSpaceThresholdOrInactiveThreshold undocumented
+ SharedPCAccountDeletionPolicyTypeVDiskSpaceThresholdOrInactiveThreshold SharedPCAccountDeletionPolicyType = 2
+)
+
+// SharedPCAccountDeletionPolicyTypePImmediate returns a pointer to SharedPCAccountDeletionPolicyTypeVImmediate
+func SharedPCAccountDeletionPolicyTypePImmediate() *SharedPCAccountDeletionPolicyType {
+ v := SharedPCAccountDeletionPolicyTypeVImmediate
+ return &v
+}
+
+// SharedPCAccountDeletionPolicyTypePDiskSpaceThreshold returns a pointer to SharedPCAccountDeletionPolicyTypeVDiskSpaceThreshold
+func SharedPCAccountDeletionPolicyTypePDiskSpaceThreshold() *SharedPCAccountDeletionPolicyType {
+ v := SharedPCAccountDeletionPolicyTypeVDiskSpaceThreshold
+ return &v
+}
+
+// SharedPCAccountDeletionPolicyTypePDiskSpaceThresholdOrInactiveThreshold returns a pointer to SharedPCAccountDeletionPolicyTypeVDiskSpaceThresholdOrInactiveThreshold
+func SharedPCAccountDeletionPolicyTypePDiskSpaceThresholdOrInactiveThreshold() *SharedPCAccountDeletionPolicyType {
+ v := SharedPCAccountDeletionPolicyTypeVDiskSpaceThresholdOrInactiveThreshold
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharedPCAccountManagerPolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharedPCAccountManagerPolicyModel.go
new file mode 100644
index 00000000..ead9f7d3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharedPCAccountManagerPolicyModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SharedPCAccountManagerPolicy undocumented
+type SharedPCAccountManagerPolicy struct {
+ // Object is the base model of SharedPCAccountManagerPolicy
+ Object
+ // AccountDeletionPolicy Configures when accounts are deleted.
+ AccountDeletionPolicy *SharedPCAccountDeletionPolicyType `json:"accountDeletionPolicy,omitempty"`
+ // CacheAccountsAboveDiskFreePercentage Sets the percentage of available disk space a PC should have before it stops deleting cached shared PC accounts. Only applies when AccountDeletionPolicy is DiskSpaceThreshold or DiskSpaceThresholdOrInactiveThreshold. Valid values 0 to 100
+ CacheAccountsAboveDiskFreePercentage *int `json:"cacheAccountsAboveDiskFreePercentage,omitempty"`
+ // InactiveThresholdDays Specifies when the accounts will start being deleted when they have not been logged on during the specified period, given as number of days. Only applies when AccountDeletionPolicy is DiskSpaceThreshold or DiskSpaceThresholdOrInactiveThreshold.
+ InactiveThresholdDays *int `json:"inactiveThresholdDays,omitempty"`
+ // RemoveAccountsBelowDiskFreePercentage Sets the percentage of disk space remaining on a PC before cached accounts will be deleted to free disk space. Accounts that have been inactive the longest will be deleted first. Only applies when AccountDeletionPolicy is DiskSpaceThresholdOrInactiveThreshold. Valid values 0 to 100
+ RemoveAccountsBelowDiskFreePercentage *int `json:"removeAccountsBelowDiskFreePercentage,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharedPCAllowedAccountTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharedPCAllowedAccountTypeEnum.go
new file mode 100644
index 00000000..2ec0ae8e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharedPCAllowedAccountTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SharedPCAllowedAccountType undocumented
+type SharedPCAllowedAccountType int
+
+const (
+ // SharedPCAllowedAccountTypeVNotConfigured undocumented
+ SharedPCAllowedAccountTypeVNotConfigured SharedPCAllowedAccountType = 0
+ // SharedPCAllowedAccountTypeVGuest undocumented
+ SharedPCAllowedAccountTypeVGuest SharedPCAllowedAccountType = 1
+ // SharedPCAllowedAccountTypeVDomain undocumented
+ SharedPCAllowedAccountTypeVDomain SharedPCAllowedAccountType = 2
+)
+
+// SharedPCAllowedAccountTypePNotConfigured returns a pointer to SharedPCAllowedAccountTypeVNotConfigured
+func SharedPCAllowedAccountTypePNotConfigured() *SharedPCAllowedAccountType {
+ v := SharedPCAllowedAccountTypeVNotConfigured
+ return &v
+}
+
+// SharedPCAllowedAccountTypePGuest returns a pointer to SharedPCAllowedAccountTypeVGuest
+func SharedPCAllowedAccountTypePGuest() *SharedPCAllowedAccountType {
+ v := SharedPCAllowedAccountTypeVGuest
+ return &v
+}
+
+// SharedPCAllowedAccountTypePDomain returns a pointer to SharedPCAllowedAccountTypeVDomain
+func SharedPCAllowedAccountTypePDomain() *SharedPCAllowedAccountType {
+ v := SharedPCAllowedAccountTypeVDomain
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharedPCConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharedPCConfigurationModel.go
new file mode 100644
index 00000000..597001c5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharedPCConfigurationModel.go
@@ -0,0 +1,47 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SharedPCConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the sharedPCConfiguration resource.
+type SharedPCConfiguration struct {
+ // DeviceConfiguration is the base model of SharedPCConfiguration
+ DeviceConfiguration
+ // AccountManagerPolicy Specifies how accounts are managed on a shared PC. Only applies when disableAccountManager is false.
+ AccountManagerPolicy *SharedPCAccountManagerPolicy `json:"accountManagerPolicy,omitempty"`
+ // AllowedAccounts Indicates which type of accounts are allowed to use on a shared PC.
+ AllowedAccounts *SharedPCAllowedAccountType `json:"allowedAccounts,omitempty"`
+ // LocalStorage Specifies whether local storage is allowed on a shared PC.
+ LocalStorage *Enablement `json:"localStorage,omitempty"`
+ // AllowLocalStorage Specifies whether local storage is allowed on a shared PC.
+ AllowLocalStorage *bool `json:"allowLocalStorage,omitempty"`
+ // SetAccountManager Disables the account manager for shared PC mode.
+ SetAccountManager *Enablement `json:"setAccountManager,omitempty"`
+ // DisableAccountManager Disables the account manager for shared PC mode.
+ DisableAccountManager *bool `json:"disableAccountManager,omitempty"`
+ // SetEduPolicies Specifies whether the default shared PC education environment policies should be enabled/disabled/not configured. For Windows 10 RS2 and later, this policy will be applied without setting Enabled to true.
+ SetEduPolicies *Enablement `json:"setEduPolicies,omitempty"`
+ // DisableEduPolicies Specifies whether the default shared PC education environment policies should be disabled. For Windows 10 RS2 and later, this policy will be applied without setting Enabled to true.
+ DisableEduPolicies *bool `json:"disableEduPolicies,omitempty"`
+ // SetPowerPolicies Specifies whether the default shared PC power policies should be enabled/disabled.
+ SetPowerPolicies *Enablement `json:"setPowerPolicies,omitempty"`
+ // DisablePowerPolicies Specifies whether the default shared PC power policies should be disabled.
+ DisablePowerPolicies *bool `json:"disablePowerPolicies,omitempty"`
+ // SignInOnResume Specifies the requirement to sign in whenever the device wakes up from sleep mode.
+ SignInOnResume *Enablement `json:"signInOnResume,omitempty"`
+ // DisableSignInOnResume Disables the requirement to sign in whenever the device wakes up from sleep mode.
+ DisableSignInOnResume *bool `json:"disableSignInOnResume,omitempty"`
+ // Enabled Enables shared PC mode and applies the shared pc policies.
+ Enabled *bool `json:"enabled,omitempty"`
+ // IdleTimeBeforeSleepInSeconds Specifies the time in seconds that a device must sit idle before the PC goes to sleep. Setting this value to 0 prevents the sleep timeout from occurring.
+ IdleTimeBeforeSleepInSeconds *int `json:"idleTimeBeforeSleepInSeconds,omitempty"`
+ // KioskAppDisplayName Specifies the display text for the account shown on the sign-in screen which launches the app specified by SetKioskAppUserModelId. Only applies when KioskAppUserModelId is set.
+ KioskAppDisplayName *string `json:"kioskAppDisplayName,omitempty"`
+ // KioskAppUserModelID Specifies the application user model ID of the app to use with assigned access.
+ KioskAppUserModelID *string `json:"kioskAppUserModelId,omitempty"`
+ // MaintenanceStartTime Specifies the daily start time of maintenance hour.
+ MaintenanceStartTime *time.Time `json:"maintenanceStartTime,omitempty"`
+ // FastFirstSignIn Specifies whether to auto connect new non-admin Azure AD accounts to pre-configured candidate local accounts
+ FastFirstSignIn *Enablement `json:"fastFirstSignIn,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharepointIDsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharepointIDsModel.go
new file mode 100644
index 00000000..a2d419ad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharepointIDsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SharepointIDs undocumented
+type SharepointIDs struct {
+ // Object is the base model of SharepointIDs
+ Object
+ // ListID undocumented
+ ListID *string `json:"listId,omitempty"`
+ // ListItemID undocumented
+ ListItemID *string `json:"listItemId,omitempty"`
+ // ListItemUniqueID undocumented
+ ListItemUniqueID *string `json:"listItemUniqueId,omitempty"`
+ // SiteID undocumented
+ SiteID *string `json:"siteId,omitempty"`
+ // SiteURL undocumented
+ SiteURL *string `json:"siteUrl,omitempty"`
+ // TenantID undocumented
+ TenantID *string `json:"tenantId,omitempty"`
+ // WebID undocumented
+ WebID *string `json:"webId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharingDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharingDetailModel.go
new file mode 100644
index 00000000..11f7737f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharingDetailModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SharingDetail undocumented
+type SharingDetail struct {
+ // Object is the base model of SharingDetail
+ Object
+ // SharedBy undocumented
+ SharedBy *InsightIdentity `json:"sharedBy,omitempty"`
+ // SharedDateTime undocumented
+ SharedDateTime *time.Time `json:"sharedDateTime,omitempty"`
+ // SharingSubject undocumented
+ SharingSubject *string `json:"sharingSubject,omitempty"`
+ // SharingType undocumented
+ SharingType *string `json:"sharingType,omitempty"`
+ // SharingReference undocumented
+ SharingReference *ResourceReference `json:"sharingReference,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharingInvitationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharingInvitationModel.go
new file mode 100644
index 00000000..114d9300
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharingInvitationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SharingInvitation undocumented
+type SharingInvitation struct {
+ // Object is the base model of SharingInvitation
+ Object
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // InvitedBy undocumented
+ InvitedBy *IdentitySet `json:"invitedBy,omitempty"`
+ // RedeemedBy undocumented
+ RedeemedBy *string `json:"redeemedBy,omitempty"`
+ // SignInRequired undocumented
+ SignInRequired *bool `json:"signInRequired,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SharingLinkModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SharingLinkModel.go
new file mode 100644
index 00000000..7e68294f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SharingLinkModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SharingLink undocumented
+type SharingLink struct {
+ // Object is the base model of SharingLink
+ Object
+ // Application undocumented
+ Application *Identity `json:"application,omitempty"`
+ // PreventsDownload undocumented
+ PreventsDownload *bool `json:"preventsDownload,omitempty"`
+ // ConfiguratorURL undocumented
+ ConfiguratorURL *string `json:"configuratorUrl,omitempty"`
+ // Scope undocumented
+ Scope *string `json:"scope,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // WebHTML undocumented
+ WebHTML *string `json:"webHtml,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ShiftActivityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ShiftActivityModel.go
new file mode 100644
index 00000000..9119998d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ShiftActivityModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ShiftActivity undocumented
+type ShiftActivity struct {
+ // Object is the base model of ShiftActivity
+ Object
+ // IsPaid undocumented
+ IsPaid *bool `json:"isPaid,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Theme undocumented
+ Theme *ScheduleEntityTheme `json:"theme,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ShiftChangeRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ShiftChangeRequestObjectModel.go
new file mode 100644
index 00000000..4cedc851
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ShiftChangeRequestObjectModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ShiftChangeRequestObject undocumented
+type ShiftChangeRequestObject struct {
+ // ScheduleChangeRequestObject is the base model of ShiftChangeRequestObject
+ ScheduleChangeRequestObject
+ // RecipientActionMessage undocumented
+ RecipientActionMessage *string `json:"recipientActionMessage,omitempty"`
+ // RecipientActionDateTime undocumented
+ RecipientActionDateTime *time.Time `json:"recipientActionDateTime,omitempty"`
+ // SenderShiftID undocumented
+ SenderShiftID *string `json:"senderShiftId,omitempty"`
+ // RecipientUserID undocumented
+ RecipientUserID *string `json:"recipientUserId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ShiftItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ShiftItemModel.go
new file mode 100644
index 00000000..c9486d12
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ShiftItemModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ShiftItem undocumented
+type ShiftItem struct {
+ // ScheduleEntity is the base model of ShiftItem
+ ScheduleEntity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Notes undocumented
+ Notes *string `json:"notes,omitempty"`
+ // Activities undocumented
+ Activities []ShiftActivity `json:"activities,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ShiftModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ShiftModel.go
new file mode 100644
index 00000000..c6473680
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ShiftModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Shift undocumented
+type Shift struct {
+ // ChangeTrackedEntity is the base model of Shift
+ ChangeTrackedEntity
+ // SharedShift undocumented
+ SharedShift *ShiftItem `json:"sharedShift,omitempty"`
+ // DraftShift undocumented
+ DraftShift *ShiftItem `json:"draftShift,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // SchedulingGroupID undocumented
+ SchedulingGroupID *string `json:"schedulingGroupId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ShiftRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ShiftRequest.go
new file mode 100644
index 00000000..efe3a1ba
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ShiftRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ShiftRequestBuilder is request builder for Shift
+type ShiftRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ShiftRequest
+func (b *ShiftRequestBuilder) Request() *ShiftRequest {
+ return &ShiftRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ShiftRequest is request for Shift
+type ShiftRequest struct{ BaseRequest }
+
+// Get performs GET request for Shift
+func (r *ShiftRequest) Get(ctx context.Context) (resObj *Shift, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Shift
+func (r *ShiftRequest) Update(ctx context.Context, reqObj *Shift) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Shift
+func (r *ShiftRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ShipmentMethodModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ShipmentMethodModel.go
new file mode 100644
index 00000000..06a0985c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ShipmentMethodModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ShipmentMethod undocumented
+type ShipmentMethod struct {
+ // Entity is the base model of ShipmentMethod
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ShipmentMethodRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ShipmentMethodRequest.go
new file mode 100644
index 00000000..a9c6c10c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ShipmentMethodRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ShipmentMethodRequestBuilder is request builder for ShipmentMethod
+type ShipmentMethodRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ShipmentMethodRequest
+func (b *ShipmentMethodRequestBuilder) Request() *ShipmentMethodRequest {
+ return &ShipmentMethodRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ShipmentMethodRequest is request for ShipmentMethod
+type ShipmentMethodRequest struct{ BaseRequest }
+
+// Get performs GET request for ShipmentMethod
+func (r *ShipmentMethodRequest) Get(ctx context.Context) (resObj *ShipmentMethod, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ShipmentMethod
+func (r *ShipmentMethodRequest) Update(ctx context.Context, reqObj *ShipmentMethod) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ShipmentMethod
+func (r *ShipmentMethodRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SideLoadingKeyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SideLoadingKeyModel.go
new file mode 100644
index 00000000..13e64b1b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SideLoadingKeyModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SideLoadingKey SideLoadingKey entity is required for Windows 8 and 8.1 devices to intall Line Of Business Apps for a tenant.
+type SideLoadingKey struct {
+ // Entity is the base model of SideLoadingKey
+ Entity
+ // Value Side Loading Key Value, it is 5x5 value, seperated by hiphens.
+ Value *string `json:"value,omitempty"`
+ // DisplayName Side Loading Key Name displayed to the ITPro Admins.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Side Loading Key description displayed to the ITPro Admins..
+ Description *string `json:"description,omitempty"`
+ // TotalActivation Side Loading Key Total Activation displayed to the ITPro Admins.
+ TotalActivation *int `json:"totalActivation,omitempty"`
+ // LastUpdatedDateTime Side Loading Key Last Updated Date displayed to the ITPro Admins.
+ LastUpdatedDateTime *string `json:"lastUpdatedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SideLoadingKeyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SideLoadingKeyRequest.go
new file mode 100644
index 00000000..9bc07030
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SideLoadingKeyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SideLoadingKeyRequestBuilder is request builder for SideLoadingKey
+type SideLoadingKeyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SideLoadingKeyRequest
+func (b *SideLoadingKeyRequestBuilder) Request() *SideLoadingKeyRequest {
+ return &SideLoadingKeyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SideLoadingKeyRequest is request for SideLoadingKey
+type SideLoadingKeyRequest struct{ BaseRequest }
+
+// Get performs GET request for SideLoadingKey
+func (r *SideLoadingKeyRequest) Get(ctx context.Context) (resObj *SideLoadingKey, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SideLoadingKey
+func (r *SideLoadingKeyRequest) Update(ctx context.Context, reqObj *SideLoadingKey) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SideLoadingKey
+func (r *SideLoadingKeyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SignInActivityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SignInActivityModel.go
new file mode 100644
index 00000000..199ccc67
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SignInActivityModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SignInActivity undocumented
+type SignInActivity struct {
+ // Object is the base model of SignInActivity
+ Object
+ // LastSignInDateTime undocumented
+ LastSignInDateTime *time.Time `json:"lastSignInDateTime,omitempty"`
+ // LastSignInRequestID undocumented
+ LastSignInRequestID *string `json:"lastSignInRequestId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SignInAssistantOptionsEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SignInAssistantOptionsEnum.go
new file mode 100644
index 00000000..8838651d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SignInAssistantOptionsEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SignInAssistantOptions undocumented
+type SignInAssistantOptions int
+
+const (
+ // SignInAssistantOptionsVNotConfigured undocumented
+ SignInAssistantOptionsVNotConfigured SignInAssistantOptions = 0
+ // SignInAssistantOptionsVDisabled undocumented
+ SignInAssistantOptionsVDisabled SignInAssistantOptions = 1
+)
+
+// SignInAssistantOptionsPNotConfigured returns a pointer to SignInAssistantOptionsVNotConfigured
+func SignInAssistantOptionsPNotConfigured() *SignInAssistantOptions {
+ v := SignInAssistantOptionsVNotConfigured
+ return &v
+}
+
+// SignInAssistantOptionsPDisabled returns a pointer to SignInAssistantOptionsVDisabled
+func SignInAssistantOptionsPDisabled() *SignInAssistantOptions {
+ v := SignInAssistantOptionsVDisabled
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SignInFrequencySessionControlModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SignInFrequencySessionControlModel.go
new file mode 100644
index 00000000..0d0452e2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SignInFrequencySessionControlModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SignInFrequencySessionControl undocumented
+type SignInFrequencySessionControl struct {
+ // ConditionalAccessSessionControl is the base model of SignInFrequencySessionControl
+ ConditionalAccessSessionControl
+ // Value undocumented
+ Value *int `json:"value,omitempty"`
+ // Type undocumented
+ Type *SigninFrequencyType `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SignInLocationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SignInLocationModel.go
new file mode 100644
index 00000000..78e5cd48
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SignInLocationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SignInLocation undocumented
+type SignInLocation struct {
+ // Object is the base model of SignInLocation
+ Object
+ // City undocumented
+ City *string `json:"city,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // CountryOrRegion undocumented
+ CountryOrRegion *string `json:"countryOrRegion,omitempty"`
+ // GeoCoordinates undocumented
+ GeoCoordinates *GeoCoordinates `json:"geoCoordinates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SignInModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SignInModel.go
new file mode 100644
index 00000000..d351dca0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SignInModel.go
@@ -0,0 +1,83 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SignIn undocumented
+type SignIn struct {
+ // Entity is the base model of SignIn
+ Entity
+ // AlternateSignInName undocumented
+ AlternateSignInName *string `json:"alternateSignInName,omitempty"`
+ // AppDisplayName undocumented
+ AppDisplayName *string `json:"appDisplayName,omitempty"`
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // AppliedConditionalAccessPolicies undocumented
+ AppliedConditionalAccessPolicies []AppliedConditionalAccessPolicy `json:"appliedConditionalAccessPolicies,omitempty"`
+ // AuthenticationDetails undocumented
+ AuthenticationDetails []AuthenticationDetail `json:"authenticationDetails,omitempty"`
+ // AuthenticationMethodsUsed undocumented
+ AuthenticationMethodsUsed []string `json:"authenticationMethodsUsed,omitempty"`
+ // AuthenticationProcessingDetails undocumented
+ AuthenticationProcessingDetails []KeyValue `json:"authenticationProcessingDetails,omitempty"`
+ // AuthenticationRequirementPolicies undocumented
+ AuthenticationRequirementPolicies []AuthenticationRequirementPolicy `json:"authenticationRequirementPolicies,omitempty"`
+ // ClientAppUsed undocumented
+ ClientAppUsed *string `json:"clientAppUsed,omitempty"`
+ // ConditionalAccessStatus undocumented
+ ConditionalAccessStatus *ConditionalAccessStatus `json:"conditionalAccessStatus,omitempty"`
+ // CorrelationID undocumented
+ CorrelationID *string `json:"correlationId,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DeviceDetail undocumented
+ DeviceDetail *DeviceDetail `json:"deviceDetail,omitempty"`
+ // IsInteractive undocumented
+ IsInteractive *bool `json:"isInteractive,omitempty"`
+ // IPAddress undocumented
+ IPAddress *string `json:"ipAddress,omitempty"`
+ // Location undocumented
+ Location *SignInLocation `json:"location,omitempty"`
+ // MFADetail undocumented
+ MFADetail *MFADetail `json:"mfaDetail,omitempty"`
+ // NetworkLocationDetails undocumented
+ NetworkLocationDetails []NetworkLocationDetail `json:"networkLocationDetails,omitempty"`
+ // OriginalRequestID undocumented
+ OriginalRequestID *string `json:"originalRequestId,omitempty"`
+ // ProcessingTimeInMilliseconds undocumented
+ ProcessingTimeInMilliseconds *int `json:"processingTimeInMilliseconds,omitempty"`
+ // RiskDetail undocumented
+ RiskDetail *RiskDetail `json:"riskDetail,omitempty"`
+ // RiskEventTypes undocumented
+ RiskEventTypes []RiskEventType `json:"riskEventTypes,omitempty"`
+ // RiskLevelAggregated undocumented
+ RiskLevelAggregated *RiskLevel `json:"riskLevelAggregated,omitempty"`
+ // RiskLevelDuringSignIn undocumented
+ RiskLevelDuringSignIn *RiskLevel `json:"riskLevelDuringSignIn,omitempty"`
+ // RiskState undocumented
+ RiskState *RiskState `json:"riskState,omitempty"`
+ // ResourceDisplayName undocumented
+ ResourceDisplayName *string `json:"resourceDisplayName,omitempty"`
+ // ResourceID undocumented
+ ResourceID *string `json:"resourceId,omitempty"`
+ // ServicePrincipalID undocumented
+ ServicePrincipalID *string `json:"servicePrincipalId,omitempty"`
+ // ServicePrincipalName undocumented
+ ServicePrincipalName *string `json:"servicePrincipalName,omitempty"`
+ // Status undocumented
+ Status *SignInStatus `json:"status,omitempty"`
+ // TokenIssuerName undocumented
+ TokenIssuerName *string `json:"tokenIssuerName,omitempty"`
+ // TokenIssuerType undocumented
+ TokenIssuerType *TokenIssuerType `json:"tokenIssuerType,omitempty"`
+ // UserAgent undocumented
+ UserAgent *string `json:"userAgent,omitempty"`
+ // UserDisplayName undocumented
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SignInRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SignInRequest.go
new file mode 100644
index 00000000..9e0df0a2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SignInRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SignInRequestBuilder is request builder for SignIn
+type SignInRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SignInRequest
+func (b *SignInRequestBuilder) Request() *SignInRequest {
+ return &SignInRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SignInRequest is request for SignIn
+type SignInRequest struct{ BaseRequest }
+
+// Get performs GET request for SignIn
+func (r *SignInRequest) Get(ctx context.Context) (resObj *SignIn, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SignIn
+func (r *SignInRequest) Update(ctx context.Context, reqObj *SignIn) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SignIn
+func (r *SignInRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SignInStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SignInStatusModel.go
new file mode 100644
index 00000000..d465764c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SignInStatusModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SignInStatus undocumented
+type SignInStatus struct {
+ // Object is the base model of SignInStatus
+ Object
+ // ErrorCode undocumented
+ ErrorCode *int `json:"errorCode,omitempty"`
+ // FailureReason undocumented
+ FailureReason *string `json:"failureReason,omitempty"`
+ // AdditionalDetails undocumented
+ AdditionalDetails *string `json:"additionalDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SigninFrequencyTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SigninFrequencyTypeEnum.go
new file mode 100644
index 00000000..49e5211b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SigninFrequencyTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SigninFrequencyType undocumented
+type SigninFrequencyType int
+
+const (
+ // SigninFrequencyTypeVDays undocumented
+ SigninFrequencyTypeVDays SigninFrequencyType = 0
+ // SigninFrequencyTypeVHours undocumented
+ SigninFrequencyTypeVHours SigninFrequencyType = 1
+)
+
+// SigninFrequencyTypePDays returns a pointer to SigninFrequencyTypeVDays
+func SigninFrequencyTypePDays() *SigninFrequencyType {
+ v := SigninFrequencyTypeVDays
+ return &v
+}
+
+// SigninFrequencyTypePHours returns a pointer to SigninFrequencyTypeVHours
+func SigninFrequencyTypePHours() *SigninFrequencyType {
+ v := SigninFrequencyTypeVHours
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SingleSignOnExtensionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SingleSignOnExtensionModel.go
new file mode 100644
index 00000000..269868eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SingleSignOnExtensionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SingleSignOnExtension undocumented
+type SingleSignOnExtension struct {
+ // Object is the base model of SingleSignOnExtension
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SingleValueLegacyExtendedPropertyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SingleValueLegacyExtendedPropertyModel.go
new file mode 100644
index 00000000..6107ba5a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SingleValueLegacyExtendedPropertyModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SingleValueLegacyExtendedProperty undocumented
+type SingleValueLegacyExtendedProperty struct {
+ // Entity is the base model of SingleValueLegacyExtendedProperty
+ Entity
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SingleValueLegacyExtendedPropertyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SingleValueLegacyExtendedPropertyRequest.go
new file mode 100644
index 00000000..f5659f59
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SingleValueLegacyExtendedPropertyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SingleValueLegacyExtendedPropertyRequestBuilder is request builder for SingleValueLegacyExtendedProperty
+type SingleValueLegacyExtendedPropertyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SingleValueLegacyExtendedPropertyRequest
+func (b *SingleValueLegacyExtendedPropertyRequestBuilder) Request() *SingleValueLegacyExtendedPropertyRequest {
+ return &SingleValueLegacyExtendedPropertyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SingleValueLegacyExtendedPropertyRequest is request for SingleValueLegacyExtendedProperty
+type SingleValueLegacyExtendedPropertyRequest struct{ BaseRequest }
+
+// Get performs GET request for SingleValueLegacyExtendedProperty
+func (r *SingleValueLegacyExtendedPropertyRequest) Get(ctx context.Context) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SingleValueLegacyExtendedProperty
+func (r *SingleValueLegacyExtendedPropertyRequest) Update(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SingleValueLegacyExtendedProperty
+func (r *SingleValueLegacyExtendedPropertyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SiteAccessTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SiteAccessTypeEnum.go
new file mode 100644
index 00000000..c8c508b5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SiteAccessTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SiteAccessType undocumented
+type SiteAccessType int
+
+const (
+ // SiteAccessTypeVBlock undocumented
+ SiteAccessTypeVBlock SiteAccessType = 0
+ // SiteAccessTypeVFull undocumented
+ SiteAccessTypeVFull SiteAccessType = 1
+ // SiteAccessTypeVLimited undocumented
+ SiteAccessTypeVLimited SiteAccessType = 2
+)
+
+// SiteAccessTypePBlock returns a pointer to SiteAccessTypeVBlock
+func SiteAccessTypePBlock() *SiteAccessType {
+ v := SiteAccessTypeVBlock
+ return &v
+}
+
+// SiteAccessTypePFull returns a pointer to SiteAccessTypeVFull
+func SiteAccessTypePFull() *SiteAccessType {
+ v := SiteAccessTypeVFull
+ return &v
+}
+
+// SiteAccessTypePLimited returns a pointer to SiteAccessTypeVLimited
+func SiteAccessTypePLimited() *SiteAccessType {
+ v := SiteAccessTypeVLimited
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SiteAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/SiteAction.go
new file mode 100644
index 00000000..ee558369
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SiteAction.go
@@ -0,0 +1,220 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SiteCollectionAddRequestParameter undocumented
+type SiteCollectionAddRequestParameter struct {
+ // Value undocumented
+ Value []Site `json:"value,omitempty"`
+}
+
+// SiteCollectionRemoveRequestParameter undocumented
+type SiteCollectionRemoveRequestParameter struct {
+ // Value undocumented
+ Value []Site `json:"value,omitempty"`
+}
+
+//
+type SiteCollectionAddRequestBuilder struct{ BaseRequestBuilder }
+
+// Add action undocumented
+func (b *GroupSitesCollectionRequestBuilder) Add(reqObj *SiteCollectionAddRequestParameter) *SiteCollectionAddRequestBuilder {
+ bb := &SiteCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/add"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// Add action undocumented
+func (b *SiteSitesCollectionRequestBuilder) Add(reqObj *SiteCollectionAddRequestParameter) *SiteCollectionAddRequestBuilder {
+ bb := &SiteCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/add"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// Add action undocumented
+func (b *UserFollowedSitesCollectionRequestBuilder) Add(reqObj *SiteCollectionAddRequestParameter) *SiteCollectionAddRequestBuilder {
+ bb := &SiteCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/add"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SiteCollectionAddRequest struct{ BaseRequest }
+
+//
+func (b *SiteCollectionAddRequestBuilder) Request() *SiteCollectionAddRequest {
+ return &SiteCollectionAddRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SiteCollectionAddRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]Site, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]Site
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]Site
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *SiteCollectionAddRequest) Get(ctx context.Context) ([][]Site, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type SiteCollectionRemoveRequestBuilder struct{ BaseRequestBuilder }
+
+// Remove action undocumented
+func (b *GroupSitesCollectionRequestBuilder) Remove(reqObj *SiteCollectionRemoveRequestParameter) *SiteCollectionRemoveRequestBuilder {
+ bb := &SiteCollectionRemoveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/remove"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// Remove action undocumented
+func (b *SiteSitesCollectionRequestBuilder) Remove(reqObj *SiteCollectionRemoveRequestParameter) *SiteCollectionRemoveRequestBuilder {
+ bb := &SiteCollectionRemoveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/remove"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// Remove action undocumented
+func (b *UserFollowedSitesCollectionRequestBuilder) Remove(reqObj *SiteCollectionRemoveRequestParameter) *SiteCollectionRemoveRequestBuilder {
+ bb := &SiteCollectionRemoveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/remove"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SiteCollectionRemoveRequest struct{ BaseRequest }
+
+//
+func (b *SiteCollectionRemoveRequestBuilder) Request() *SiteCollectionRemoveRequest {
+ return &SiteCollectionRemoveRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SiteCollectionRemoveRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]Site, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]Site
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]Site
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *SiteCollectionRemoveRequest) Get(ctx context.Context) ([][]Site, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SiteActivitySummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SiteActivitySummaryModel.go
new file mode 100644
index 00000000..dfd61016
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SiteActivitySummaryModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SiteActivitySummary undocumented
+type SiteActivitySummary struct {
+ // Entity is the base model of SiteActivitySummary
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ViewedOrEdited undocumented
+ ViewedOrEdited *int `json:"viewedOrEdited,omitempty"`
+ // Synced undocumented
+ Synced *int `json:"synced,omitempty"`
+ // SharedInternally undocumented
+ SharedInternally *int `json:"sharedInternally,omitempty"`
+ // SharedExternally undocumented
+ SharedExternally *int `json:"sharedExternally,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SiteCollectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SiteCollectionModel.go
new file mode 100644
index 00000000..5e5a7d89
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SiteCollectionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SiteCollection undocumented
+type SiteCollection struct {
+ // Object is the base model of SiteCollection
+ Object
+ // DataLocationCode undocumented
+ DataLocationCode *string `json:"dataLocationCode,omitempty"`
+ // Hostname undocumented
+ Hostname *string `json:"hostname,omitempty"`
+ // Root undocumented
+ Root *Root `json:"root,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SiteModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SiteModel.go
new file mode 100644
index 00000000..aa3f845d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SiteModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Site undocumented
+type Site struct {
+ // BaseItem is the base model of Site
+ BaseItem
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Root undocumented
+ Root *Root `json:"root,omitempty"`
+ // SharepointIDs undocumented
+ SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"`
+ // SiteCollection undocumented
+ SiteCollection *SiteCollection `json:"siteCollection,omitempty"`
+ // Analytics undocumented
+ Analytics *ItemAnalytics `json:"analytics,omitempty"`
+ // Columns undocumented
+ Columns []ColumnDefinition `json:"columns,omitempty"`
+ // ContentTypes undocumented
+ ContentTypes []ContentType `json:"contentTypes,omitempty"`
+ // Drive undocumented
+ Drive *Drive `json:"drive,omitempty"`
+ // Drives undocumented
+ Drives []Drive `json:"drives,omitempty"`
+ // Items undocumented
+ Items []BaseItem `json:"items,omitempty"`
+ // Lists undocumented
+ Lists []List `json:"lists,omitempty"`
+ // Pages undocumented
+ Pages []SitePage `json:"pages,omitempty"`
+ // Sites undocumented
+ Sites []Site `json:"sites,omitempty"`
+ // Onenote undocumented
+ Onenote *Onenote `json:"onenote,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SitePageAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/SitePageAction.go
new file mode 100644
index 00000000..772557f7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SitePageAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SitePagePublishRequestParameter undocumented
+type SitePagePublishRequestParameter struct {
+}
+
+//
+type SitePagePublishRequestBuilder struct{ BaseRequestBuilder }
+
+// Publish action undocumented
+func (b *SitePageRequestBuilder) Publish(reqObj *SitePagePublishRequestParameter) *SitePagePublishRequestBuilder {
+ bb := &SitePagePublishRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/publish"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SitePagePublishRequest struct{ BaseRequest }
+
+//
+func (b *SitePagePublishRequestBuilder) Request() *SitePagePublishRequest {
+ return &SitePagePublishRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SitePagePublishRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SitePageDataModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SitePageDataModel.go
new file mode 100644
index 00000000..a3aacb22
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SitePageDataModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SitePageData undocumented
+type SitePageData struct {
+ // Object is the base model of SitePageData
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SitePageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SitePageModel.go
new file mode 100644
index 00000000..d086f204
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SitePageModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SitePage undocumented
+type SitePage struct {
+ // BaseItem is the base model of SitePage
+ BaseItem
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // ContentType undocumented
+ ContentType *ContentTypeInfo `json:"contentType,omitempty"`
+ // PageLayoutType undocumented
+ PageLayoutType *string `json:"pageLayoutType,omitempty"`
+ // WebParts undocumented
+ WebParts []WebPart `json:"webParts,omitempty"`
+ // PublishingState undocumented
+ PublishingState *PublicationFacet `json:"publishingState,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SitePageRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SitePageRequest.go
new file mode 100644
index 00000000..42fd9c42
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SitePageRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SitePageRequestBuilder is request builder for SitePage
+type SitePageRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SitePageRequest
+func (b *SitePageRequestBuilder) Request() *SitePageRequest {
+ return &SitePageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SitePageRequest is request for SitePage
+type SitePageRequest struct{ BaseRequest }
+
+// Get performs GET request for SitePage
+func (r *SitePageRequest) Get(ctx context.Context) (resObj *SitePage, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SitePage
+func (r *SitePageRequest) Update(ctx context.Context, reqObj *SitePage) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SitePage
+func (r *SitePageRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SiteRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SiteRequest.go
new file mode 100644
index 00000000..ef5005a0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SiteRequest.go
@@ -0,0 +1,724 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SiteRequestBuilder is request builder for Site
+type SiteRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SiteRequest
+func (b *SiteRequestBuilder) Request() *SiteRequest {
+ return &SiteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SiteRequest is request for Site
+type SiteRequest struct{ BaseRequest }
+
+// Get performs GET request for Site
+func (r *SiteRequest) Get(ctx context.Context) (resObj *Site, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Site
+func (r *SiteRequest) Update(ctx context.Context, reqObj *Site) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Site
+func (r *SiteRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Analytics is navigation property
+func (b *SiteRequestBuilder) Analytics() *ItemAnalyticsRequestBuilder {
+ bb := &ItemAnalyticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/analytics"
+ return bb
+}
+
+// Columns returns request builder for ColumnDefinition collection
+func (b *SiteRequestBuilder) Columns() *SiteColumnsCollectionRequestBuilder {
+ bb := &SiteColumnsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/columns"
+ return bb
+}
+
+// SiteColumnsCollectionRequestBuilder is request builder for ColumnDefinition collection
+type SiteColumnsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ColumnDefinition collection
+func (b *SiteColumnsCollectionRequestBuilder) Request() *SiteColumnsCollectionRequest {
+ return &SiteColumnsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ColumnDefinition item
+func (b *SiteColumnsCollectionRequestBuilder) ID(id string) *ColumnDefinitionRequestBuilder {
+ bb := &ColumnDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SiteColumnsCollectionRequest is request for ColumnDefinition collection
+type SiteColumnsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ColumnDefinition collection
+func (r *SiteColumnsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ColumnDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ColumnDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ColumnDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ColumnDefinition collection
+func (r *SiteColumnsCollectionRequest) Get(ctx context.Context) ([]ColumnDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ColumnDefinition collection
+func (r *SiteColumnsCollectionRequest) Add(ctx context.Context, reqObj *ColumnDefinition) (resObj *ColumnDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ContentTypes returns request builder for ContentType collection
+func (b *SiteRequestBuilder) ContentTypes() *SiteContentTypesCollectionRequestBuilder {
+ bb := &SiteContentTypesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contentTypes"
+ return bb
+}
+
+// SiteContentTypesCollectionRequestBuilder is request builder for ContentType collection
+type SiteContentTypesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ContentType collection
+func (b *SiteContentTypesCollectionRequestBuilder) Request() *SiteContentTypesCollectionRequest {
+ return &SiteContentTypesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ContentType item
+func (b *SiteContentTypesCollectionRequestBuilder) ID(id string) *ContentTypeRequestBuilder {
+ bb := &ContentTypeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SiteContentTypesCollectionRequest is request for ContentType collection
+type SiteContentTypesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ContentType collection
+func (r *SiteContentTypesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ContentType, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ContentType
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ContentType
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ContentType collection
+func (r *SiteContentTypesCollectionRequest) Get(ctx context.Context) ([]ContentType, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ContentType collection
+func (r *SiteContentTypesCollectionRequest) Add(ctx context.Context, reqObj *ContentType) (resObj *ContentType, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Drive is navigation property
+func (b *SiteRequestBuilder) Drive() *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drive"
+ return bb
+}
+
+// Drives returns request builder for Drive collection
+func (b *SiteRequestBuilder) Drives() *SiteDrivesCollectionRequestBuilder {
+ bb := &SiteDrivesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drives"
+ return bb
+}
+
+// SiteDrivesCollectionRequestBuilder is request builder for Drive collection
+type SiteDrivesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Drive collection
+func (b *SiteDrivesCollectionRequestBuilder) Request() *SiteDrivesCollectionRequest {
+ return &SiteDrivesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Drive item
+func (b *SiteDrivesCollectionRequestBuilder) ID(id string) *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SiteDrivesCollectionRequest is request for Drive collection
+type SiteDrivesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Drive collection
+func (r *SiteDrivesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Drive, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Drive
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Drive
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Drive collection
+func (r *SiteDrivesCollectionRequest) Get(ctx context.Context) ([]Drive, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Drive collection
+func (r *SiteDrivesCollectionRequest) Add(ctx context.Context, reqObj *Drive) (resObj *Drive, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Items returns request builder for BaseItem collection
+func (b *SiteRequestBuilder) Items() *SiteItemsCollectionRequestBuilder {
+ bb := &SiteItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/items"
+ return bb
+}
+
+// SiteItemsCollectionRequestBuilder is request builder for BaseItem collection
+type SiteItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BaseItem collection
+func (b *SiteItemsCollectionRequestBuilder) Request() *SiteItemsCollectionRequest {
+ return &SiteItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BaseItem item
+func (b *SiteItemsCollectionRequestBuilder) ID(id string) *BaseItemRequestBuilder {
+ bb := &BaseItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SiteItemsCollectionRequest is request for BaseItem collection
+type SiteItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BaseItem collection
+func (r *SiteItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]BaseItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BaseItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BaseItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for BaseItem collection
+func (r *SiteItemsCollectionRequest) Get(ctx context.Context) ([]BaseItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for BaseItem collection
+func (r *SiteItemsCollectionRequest) Add(ctx context.Context, reqObj *BaseItem) (resObj *BaseItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Lists returns request builder for List collection
+func (b *SiteRequestBuilder) Lists() *SiteListsCollectionRequestBuilder {
+ bb := &SiteListsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/lists"
+ return bb
+}
+
+// SiteListsCollectionRequestBuilder is request builder for List collection
+type SiteListsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for List collection
+func (b *SiteListsCollectionRequestBuilder) Request() *SiteListsCollectionRequest {
+ return &SiteListsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for List item
+func (b *SiteListsCollectionRequestBuilder) ID(id string) *ListRequestBuilder {
+ bb := &ListRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SiteListsCollectionRequest is request for List collection
+type SiteListsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for List collection
+func (r *SiteListsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]List, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []List
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []List
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for List collection
+func (r *SiteListsCollectionRequest) Get(ctx context.Context) ([]List, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for List collection
+func (r *SiteListsCollectionRequest) Add(ctx context.Context, reqObj *List) (resObj *List, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Onenote is navigation property
+func (b *SiteRequestBuilder) Onenote() *OnenoteRequestBuilder {
+ bb := &OnenoteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/onenote"
+ return bb
+}
+
+// Pages returns request builder for SitePage collection
+func (b *SiteRequestBuilder) Pages() *SitePagesCollectionRequestBuilder {
+ bb := &SitePagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/pages"
+ return bb
+}
+
+// SitePagesCollectionRequestBuilder is request builder for SitePage collection
+type SitePagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SitePage collection
+func (b *SitePagesCollectionRequestBuilder) Request() *SitePagesCollectionRequest {
+ return &SitePagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SitePage item
+func (b *SitePagesCollectionRequestBuilder) ID(id string) *SitePageRequestBuilder {
+ bb := &SitePageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SitePagesCollectionRequest is request for SitePage collection
+type SitePagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SitePage collection
+func (r *SitePagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SitePage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SitePage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SitePage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SitePage collection
+func (r *SitePagesCollectionRequest) Get(ctx context.Context) ([]SitePage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SitePage collection
+func (r *SitePagesCollectionRequest) Add(ctx context.Context, reqObj *SitePage) (resObj *SitePage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Sites returns request builder for Site collection
+func (b *SiteRequestBuilder) Sites() *SiteSitesCollectionRequestBuilder {
+ bb := &SiteSitesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sites"
+ return bb
+}
+
+// SiteSitesCollectionRequestBuilder is request builder for Site collection
+type SiteSitesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Site collection
+func (b *SiteSitesCollectionRequestBuilder) Request() *SiteSitesCollectionRequest {
+ return &SiteSitesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Site item
+func (b *SiteSitesCollectionRequestBuilder) ID(id string) *SiteRequestBuilder {
+ bb := &SiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SiteSitesCollectionRequest is request for Site collection
+type SiteSitesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Site collection
+func (r *SiteSitesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Site, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Site
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Site
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Site collection
+func (r *SiteSitesCollectionRequest) Get(ctx context.Context) ([]Site, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Site collection
+func (r *SiteSitesCollectionRequest) Add(ctx context.Context, reqObj *Site) (resObj *Site, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SiteSecurityLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SiteSecurityLevelEnum.go
new file mode 100644
index 00000000..585c0d7a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SiteSecurityLevelEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SiteSecurityLevel undocumented
+type SiteSecurityLevel int
+
+const (
+ // SiteSecurityLevelVUserDefined undocumented
+ SiteSecurityLevelVUserDefined SiteSecurityLevel = 0
+ // SiteSecurityLevelVLow undocumented
+ SiteSecurityLevelVLow SiteSecurityLevel = 1
+ // SiteSecurityLevelVMediumLow undocumented
+ SiteSecurityLevelVMediumLow SiteSecurityLevel = 2
+ // SiteSecurityLevelVMedium undocumented
+ SiteSecurityLevelVMedium SiteSecurityLevel = 3
+ // SiteSecurityLevelVMediumHigh undocumented
+ SiteSecurityLevelVMediumHigh SiteSecurityLevel = 4
+ // SiteSecurityLevelVHigh undocumented
+ SiteSecurityLevelVHigh SiteSecurityLevel = 5
+)
+
+// SiteSecurityLevelPUserDefined returns a pointer to SiteSecurityLevelVUserDefined
+func SiteSecurityLevelPUserDefined() *SiteSecurityLevel {
+ v := SiteSecurityLevelVUserDefined
+ return &v
+}
+
+// SiteSecurityLevelPLow returns a pointer to SiteSecurityLevelVLow
+func SiteSecurityLevelPLow() *SiteSecurityLevel {
+ v := SiteSecurityLevelVLow
+ return &v
+}
+
+// SiteSecurityLevelPMediumLow returns a pointer to SiteSecurityLevelVMediumLow
+func SiteSecurityLevelPMediumLow() *SiteSecurityLevel {
+ v := SiteSecurityLevelVMediumLow
+ return &v
+}
+
+// SiteSecurityLevelPMedium returns a pointer to SiteSecurityLevelVMedium
+func SiteSecurityLevelPMedium() *SiteSecurityLevel {
+ v := SiteSecurityLevelVMedium
+ return &v
+}
+
+// SiteSecurityLevelPMediumHigh returns a pointer to SiteSecurityLevelVMediumHigh
+func SiteSecurityLevelPMediumHigh() *SiteSecurityLevel {
+ v := SiteSecurityLevelVMediumHigh
+ return &v
+}
+
+// SiteSecurityLevelPHigh returns a pointer to SiteSecurityLevelVHigh
+func SiteSecurityLevelPHigh() *SiteSecurityLevel {
+ v := SiteSecurityLevelVHigh
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SiteUsageStorageModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SiteUsageStorageModel.go
new file mode 100644
index 00000000..a7b7e1b1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SiteUsageStorageModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SiteUsageStorage undocumented
+type SiteUsageStorage struct {
+ // Entity is the base model of SiteUsageStorage
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // SiteType undocumented
+ SiteType *string `json:"siteType,omitempty"`
+ // StorageUsedInBytes undocumented
+ StorageUsedInBytes *int `json:"storageUsedInBytes,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SizeRangeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SizeRangeModel.go
new file mode 100644
index 00000000..18580abd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SizeRangeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SizeRange undocumented
+type SizeRange struct {
+ // Object is the base model of SizeRange
+ Object
+ // MinimumSize undocumented
+ MinimumSize *int `json:"minimumSize,omitempty"`
+ // MaximumSize undocumented
+ MaximumSize *int `json:"maximumSize,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkillProficiencyLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkillProficiencyLevelEnum.go
new file mode 100644
index 00000000..60747247
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkillProficiencyLevelEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SkillProficiencyLevel undocumented
+type SkillProficiencyLevel int
+
+const (
+ // SkillProficiencyLevelVElementary undocumented
+ SkillProficiencyLevelVElementary SkillProficiencyLevel = 0
+ // SkillProficiencyLevelVLimitedWorking undocumented
+ SkillProficiencyLevelVLimitedWorking SkillProficiencyLevel = 1
+ // SkillProficiencyLevelVGeneralProfessional undocumented
+ SkillProficiencyLevelVGeneralProfessional SkillProficiencyLevel = 2
+ // SkillProficiencyLevelVAdvancedProfessional undocumented
+ SkillProficiencyLevelVAdvancedProfessional SkillProficiencyLevel = 3
+ // SkillProficiencyLevelVExpert undocumented
+ SkillProficiencyLevelVExpert SkillProficiencyLevel = 4
+ // SkillProficiencyLevelVUnknownFutureValue undocumented
+ SkillProficiencyLevelVUnknownFutureValue SkillProficiencyLevel = 5
+)
+
+// SkillProficiencyLevelPElementary returns a pointer to SkillProficiencyLevelVElementary
+func SkillProficiencyLevelPElementary() *SkillProficiencyLevel {
+ v := SkillProficiencyLevelVElementary
+ return &v
+}
+
+// SkillProficiencyLevelPLimitedWorking returns a pointer to SkillProficiencyLevelVLimitedWorking
+func SkillProficiencyLevelPLimitedWorking() *SkillProficiencyLevel {
+ v := SkillProficiencyLevelVLimitedWorking
+ return &v
+}
+
+// SkillProficiencyLevelPGeneralProfessional returns a pointer to SkillProficiencyLevelVGeneralProfessional
+func SkillProficiencyLevelPGeneralProfessional() *SkillProficiencyLevel {
+ v := SkillProficiencyLevelVGeneralProfessional
+ return &v
+}
+
+// SkillProficiencyLevelPAdvancedProfessional returns a pointer to SkillProficiencyLevelVAdvancedProfessional
+func SkillProficiencyLevelPAdvancedProfessional() *SkillProficiencyLevel {
+ v := SkillProficiencyLevelVAdvancedProfessional
+ return &v
+}
+
+// SkillProficiencyLevelPExpert returns a pointer to SkillProficiencyLevelVExpert
+func SkillProficiencyLevelPExpert() *SkillProficiencyLevel {
+ v := SkillProficiencyLevelVExpert
+ return &v
+}
+
+// SkillProficiencyLevelPUnknownFutureValue returns a pointer to SkillProficiencyLevelVUnknownFutureValue
+func SkillProficiencyLevelPUnknownFutureValue() *SkillProficiencyLevel {
+ v := SkillProficiencyLevelVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkillProficiencyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkillProficiencyModel.go
new file mode 100644
index 00000000..6ea43aa2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkillProficiencyModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SkillProficiency undocumented
+type SkillProficiency struct {
+ // ItemFacet is the base model of SkillProficiency
+ ItemFacet
+ // Categories undocumented
+ Categories []string `json:"categories,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Proficiency undocumented
+ Proficiency *SkillProficiencyLevel `json:"proficiency,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkillProficiencyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkillProficiencyRequest.go
new file mode 100644
index 00000000..44f4462e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkillProficiencyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SkillProficiencyRequestBuilder is request builder for SkillProficiency
+type SkillProficiencyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SkillProficiencyRequest
+func (b *SkillProficiencyRequestBuilder) Request() *SkillProficiencyRequest {
+ return &SkillProficiencyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SkillProficiencyRequest is request for SkillProficiency
+type SkillProficiencyRequest struct{ BaseRequest }
+
+// Get performs GET request for SkillProficiency
+func (r *SkillProficiencyRequest) Get(ctx context.Context) (resObj *SkillProficiency, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SkillProficiency
+func (r *SkillProficiencyRequest) Update(ctx context.Context, reqObj *SkillProficiency) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SkillProficiency
+func (r *SkillProficiencyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessActivityCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessActivityCountsModel.go
new file mode 100644
index 00000000..6e624580
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessActivityCountsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessActivityCounts undocumented
+type SkypeForBusinessActivityCounts struct {
+ // Entity is the base model of SkypeForBusinessActivityCounts
+ Entity
+ // PeerToPeer undocumented
+ PeerToPeer *int `json:"peerToPeer,omitempty"`
+ // Organized undocumented
+ Organized *int `json:"organized,omitempty"`
+ // Participated undocumented
+ Participated *int `json:"participated,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessActivityUserCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessActivityUserCountsModel.go
new file mode 100644
index 00000000..643c4aa5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessActivityUserCountsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessActivityUserCounts undocumented
+type SkypeForBusinessActivityUserCounts struct {
+ // Entity is the base model of SkypeForBusinessActivityUserCounts
+ Entity
+ // PeerToPeer undocumented
+ PeerToPeer *int `json:"peerToPeer,omitempty"`
+ // Organized undocumented
+ Organized *int `json:"organized,omitempty"`
+ // Participated undocumented
+ Participated *int `json:"participated,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessActivityUserDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessActivityUserDetailModel.go
new file mode 100644
index 00000000..5fc685f1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessActivityUserDetailModel.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessActivityUserDetail undocumented
+type SkypeForBusinessActivityUserDetail struct {
+ // Entity is the base model of SkypeForBusinessActivityUserDetail
+ Entity
+ // TotalPeerToPeerSessionCount undocumented
+ TotalPeerToPeerSessionCount *int `json:"totalPeerToPeerSessionCount,omitempty"`
+ // TotalOrganizedConferenceCount undocumented
+ TotalOrganizedConferenceCount *int `json:"totalOrganizedConferenceCount,omitempty"`
+ // TotalParticipatedConferenceCount undocumented
+ TotalParticipatedConferenceCount *int `json:"totalParticipatedConferenceCount,omitempty"`
+ // PeerToPeerLastActivityDate undocumented
+ PeerToPeerLastActivityDate *time.Time `json:"peerToPeerLastActivityDate,omitempty"`
+ // OrganizedConferenceLastActivityDate undocumented
+ OrganizedConferenceLastActivityDate *time.Time `json:"organizedConferenceLastActivityDate,omitempty"`
+ // ParticipatedConferenceLastActivityDate undocumented
+ ParticipatedConferenceLastActivityDate *time.Time `json:"participatedConferenceLastActivityDate,omitempty"`
+ // PeerToPeerIMCount undocumented
+ PeerToPeerIMCount *int `json:"peerToPeerIMCount,omitempty"`
+ // PeerToPeerAudioCount undocumented
+ PeerToPeerAudioCount *int `json:"peerToPeerAudioCount,omitempty"`
+ // PeerToPeerAudioMinutes undocumented
+ PeerToPeerAudioMinutes *int `json:"peerToPeerAudioMinutes,omitempty"`
+ // PeerToPeerVideoCount undocumented
+ PeerToPeerVideoCount *int `json:"peerToPeerVideoCount,omitempty"`
+ // PeerToPeerVideoMinutes undocumented
+ PeerToPeerVideoMinutes *int `json:"peerToPeerVideoMinutes,omitempty"`
+ // PeerToPeerAppSharingCount undocumented
+ PeerToPeerAppSharingCount *int `json:"peerToPeerAppSharingCount,omitempty"`
+ // PeerToPeerFileTransferCount undocumented
+ PeerToPeerFileTransferCount *int `json:"peerToPeerFileTransferCount,omitempty"`
+ // OrganizedConferenceIMCount undocumented
+ OrganizedConferenceIMCount *int `json:"organizedConferenceIMCount,omitempty"`
+ // OrganizedConferenceAudioVideoCount undocumented
+ OrganizedConferenceAudioVideoCount *int `json:"organizedConferenceAudioVideoCount,omitempty"`
+ // OrganizedConferenceAudioVideoMinutes undocumented
+ OrganizedConferenceAudioVideoMinutes *int `json:"organizedConferenceAudioVideoMinutes,omitempty"`
+ // OrganizedConferenceAppSharingCount undocumented
+ OrganizedConferenceAppSharingCount *int `json:"organizedConferenceAppSharingCount,omitempty"`
+ // OrganizedConferenceWebCount undocumented
+ OrganizedConferenceWebCount *int `json:"organizedConferenceWebCount,omitempty"`
+ // OrganizedConferenceDialInOut3rdPartyCount undocumented
+ OrganizedConferenceDialInOut3rdPartyCount *int `json:"organizedConferenceDialInOut3rdPartyCount,omitempty"`
+ // OrganizedConferenceCloudDialInOutMicrosoftCount undocumented
+ OrganizedConferenceCloudDialInOutMicrosoftCount *int `json:"organizedConferenceCloudDialInOutMicrosoftCount,omitempty"`
+ // OrganizedConferenceCloudDialInMicrosoftMinutes undocumented
+ OrganizedConferenceCloudDialInMicrosoftMinutes *int `json:"organizedConferenceCloudDialInMicrosoftMinutes,omitempty"`
+ // OrganizedConferenceCloudDialOutMicrosoftMinutes undocumented
+ OrganizedConferenceCloudDialOutMicrosoftMinutes *int `json:"organizedConferenceCloudDialOutMicrosoftMinutes,omitempty"`
+ // ParticipatedConferenceIMCount undocumented
+ ParticipatedConferenceIMCount *int `json:"participatedConferenceIMCount,omitempty"`
+ // ParticipatedConferenceAudioVideoCount undocumented
+ ParticipatedConferenceAudioVideoCount *int `json:"participatedConferenceAudioVideoCount,omitempty"`
+ // ParticipatedConferenceAudioVideoMinutes undocumented
+ ParticipatedConferenceAudioVideoMinutes *int `json:"participatedConferenceAudioVideoMinutes,omitempty"`
+ // ParticipatedConferenceAppSharingCount undocumented
+ ParticipatedConferenceAppSharingCount *int `json:"participatedConferenceAppSharingCount,omitempty"`
+ // ParticipatedConferenceWebCount undocumented
+ ParticipatedConferenceWebCount *int `json:"participatedConferenceWebCount,omitempty"`
+ // ParticipatedConferenceDialInOut3rdPartyCount undocumented
+ ParticipatedConferenceDialInOut3rdPartyCount *int `json:"participatedConferenceDialInOut3rdPartyCount,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *time.Time `json:"deletedDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `json:"lastActivityDate,omitempty"`
+ // AssignedProducts undocumented
+ AssignedProducts []string `json:"assignedProducts,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessDeviceUsageDistributionUserCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessDeviceUsageDistributionUserCountsModel.go
new file mode 100644
index 00000000..4545572c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessDeviceUsageDistributionUserCountsModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessDeviceUsageDistributionUserCounts undocumented
+type SkypeForBusinessDeviceUsageDistributionUserCounts struct {
+ // Entity is the base model of SkypeForBusinessDeviceUsageDistributionUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // Windows undocumented
+ Windows *int `json:"windows,omitempty"`
+ // WindowsPhone undocumented
+ WindowsPhone *int `json:"windowsPhone,omitempty"`
+ // AndroidPhone undocumented
+ AndroidPhone *int `json:"androidPhone,omitempty"`
+ // IPhone undocumented
+ IPhone *int `json:"iPhone,omitempty"`
+ // IPad undocumented
+ IPad *int `json:"iPad,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessDeviceUsageUserCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessDeviceUsageUserCountsModel.go
new file mode 100644
index 00000000..d2f5c8d0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessDeviceUsageUserCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessDeviceUsageUserCounts undocumented
+type SkypeForBusinessDeviceUsageUserCounts struct {
+ // Entity is the base model of SkypeForBusinessDeviceUsageUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // Windows undocumented
+ Windows *int `json:"windows,omitempty"`
+ // WindowsPhone undocumented
+ WindowsPhone *int `json:"windowsPhone,omitempty"`
+ // AndroidPhone undocumented
+ AndroidPhone *int `json:"androidPhone,omitempty"`
+ // IPhone undocumented
+ IPhone *int `json:"iPhone,omitempty"`
+ // IPad undocumented
+ IPad *int `json:"iPad,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessDeviceUsageUserDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessDeviceUsageUserDetailModel.go
new file mode 100644
index 00000000..ff242698
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessDeviceUsageUserDetailModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessDeviceUsageUserDetail undocumented
+type SkypeForBusinessDeviceUsageUserDetail struct {
+ // Entity is the base model of SkypeForBusinessDeviceUsageUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `json:"lastActivityDate,omitempty"`
+ // UsedWindows undocumented
+ UsedWindows *bool `json:"usedWindows,omitempty"`
+ // UsedWindowsPhone undocumented
+ UsedWindowsPhone *bool `json:"usedWindowsPhone,omitempty"`
+ // UsedAndroidPhone undocumented
+ UsedAndroidPhone *bool `json:"usedAndroidPhone,omitempty"`
+ // UsediPhone undocumented
+ UsediPhone *bool `json:"usediPhone,omitempty"`
+ // UsediPad undocumented
+ UsediPad *bool `json:"usediPad,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessOrganizerActivityCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessOrganizerActivityCountsModel.go
new file mode 100644
index 00000000..71e84d14
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessOrganizerActivityCountsModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessOrganizerActivityCounts undocumented
+type SkypeForBusinessOrganizerActivityCounts struct {
+ // Entity is the base model of SkypeForBusinessOrganizerActivityCounts
+ Entity
+ // Im undocumented
+ Im *int `json:"im,omitempty"`
+ // AudioVideo undocumented
+ AudioVideo *int `json:"audioVideo,omitempty"`
+ // AppSharing undocumented
+ AppSharing *int `json:"appSharing,omitempty"`
+ // Web undocumented
+ Web *int `json:"web,omitempty"`
+ // DialInOut3rdParty undocumented
+ DialInOut3rdParty *int `json:"dialInOut3rdParty,omitempty"`
+ // DialInOutMicrosoft undocumented
+ DialInOutMicrosoft *int `json:"dialInOutMicrosoft,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessOrganizerActivityMinuteCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessOrganizerActivityMinuteCountsModel.go
new file mode 100644
index 00000000..b042a86b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessOrganizerActivityMinuteCountsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessOrganizerActivityMinuteCounts undocumented
+type SkypeForBusinessOrganizerActivityMinuteCounts struct {
+ // Entity is the base model of SkypeForBusinessOrganizerActivityMinuteCounts
+ Entity
+ // AudioVideo undocumented
+ AudioVideo *int `json:"audioVideo,omitempty"`
+ // DialInMicrosoft undocumented
+ DialInMicrosoft *int `json:"dialInMicrosoft,omitempty"`
+ // DialOutMicrosoft undocumented
+ DialOutMicrosoft *int `json:"dialOutMicrosoft,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessOrganizerActivityUserCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessOrganizerActivityUserCountsModel.go
new file mode 100644
index 00000000..8bd2343a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessOrganizerActivityUserCountsModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessOrganizerActivityUserCounts undocumented
+type SkypeForBusinessOrganizerActivityUserCounts struct {
+ // Entity is the base model of SkypeForBusinessOrganizerActivityUserCounts
+ Entity
+ // Im undocumented
+ Im *int `json:"im,omitempty"`
+ // AudioVideo undocumented
+ AudioVideo *int `json:"audioVideo,omitempty"`
+ // AppSharing undocumented
+ AppSharing *int `json:"appSharing,omitempty"`
+ // Web undocumented
+ Web *int `json:"web,omitempty"`
+ // DialInOut3rdParty undocumented
+ DialInOut3rdParty *int `json:"dialInOut3rdParty,omitempty"`
+ // DialInOutMicrosoft undocumented
+ DialInOutMicrosoft *int `json:"dialInOutMicrosoft,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessParticipantActivityCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessParticipantActivityCountsModel.go
new file mode 100644
index 00000000..b5fa3ff8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessParticipantActivityCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessParticipantActivityCounts undocumented
+type SkypeForBusinessParticipantActivityCounts struct {
+ // Entity is the base model of SkypeForBusinessParticipantActivityCounts
+ Entity
+ // Im undocumented
+ Im *int `json:"im,omitempty"`
+ // AudioVideo undocumented
+ AudioVideo *int `json:"audioVideo,omitempty"`
+ // AppSharing undocumented
+ AppSharing *int `json:"appSharing,omitempty"`
+ // Web undocumented
+ Web *int `json:"web,omitempty"`
+ // DialInOut3rdParty undocumented
+ DialInOut3rdParty *int `json:"dialInOut3rdParty,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessParticipantActivityMinuteCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessParticipantActivityMinuteCountsModel.go
new file mode 100644
index 00000000..dd691722
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessParticipantActivityMinuteCountsModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessParticipantActivityMinuteCounts undocumented
+type SkypeForBusinessParticipantActivityMinuteCounts struct {
+ // Entity is the base model of SkypeForBusinessParticipantActivityMinuteCounts
+ Entity
+ // Audiovideo undocumented
+ Audiovideo *int `json:"audiovideo,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessParticipantActivityUserCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessParticipantActivityUserCountsModel.go
new file mode 100644
index 00000000..54f9c284
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessParticipantActivityUserCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessParticipantActivityUserCounts undocumented
+type SkypeForBusinessParticipantActivityUserCounts struct {
+ // Entity is the base model of SkypeForBusinessParticipantActivityUserCounts
+ Entity
+ // Im undocumented
+ Im *int `json:"im,omitempty"`
+ // AudioVideo undocumented
+ AudioVideo *int `json:"audioVideo,omitempty"`
+ // AppSharing undocumented
+ AppSharing *int `json:"appSharing,omitempty"`
+ // Web undocumented
+ Web *int `json:"web,omitempty"`
+ // DialInOut3rdParty undocumented
+ DialInOut3rdParty *int `json:"dialInOut3rdParty,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityCountsModel.go
new file mode 100644
index 00000000..ed2045fa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessPeerToPeerActivityCounts undocumented
+type SkypeForBusinessPeerToPeerActivityCounts struct {
+ // Entity is the base model of SkypeForBusinessPeerToPeerActivityCounts
+ Entity
+ // Im undocumented
+ Im *int `json:"im,omitempty"`
+ // Audio undocumented
+ Audio *int `json:"audio,omitempty"`
+ // Video undocumented
+ Video *int `json:"video,omitempty"`
+ // AppSharing undocumented
+ AppSharing *int `json:"appSharing,omitempty"`
+ // FileTransfer undocumented
+ FileTransfer *int `json:"fileTransfer,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityMinuteCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityMinuteCountsModel.go
new file mode 100644
index 00000000..efdeb3b6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityMinuteCountsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessPeerToPeerActivityMinuteCounts undocumented
+type SkypeForBusinessPeerToPeerActivityMinuteCounts struct {
+ // Entity is the base model of SkypeForBusinessPeerToPeerActivityMinuteCounts
+ Entity
+ // Audio undocumented
+ Audio *int `json:"audio,omitempty"`
+ // Video undocumented
+ Video *int `json:"video,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityUserCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityUserCountsModel.go
new file mode 100644
index 00000000..b24c3036
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SkypeForBusinessPeerToPeerActivityUserCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SkypeForBusinessPeerToPeerActivityUserCounts undocumented
+type SkypeForBusinessPeerToPeerActivityUserCounts struct {
+ // Entity is the base model of SkypeForBusinessPeerToPeerActivityUserCounts
+ Entity
+ // Im undocumented
+ Im *int `json:"im,omitempty"`
+ // Audio undocumented
+ Audio *int `json:"audio,omitempty"`
+ // Video undocumented
+ Video *int `json:"video,omitempty"`
+ // AppSharing undocumented
+ AppSharing *int `json:"appSharing,omitempty"`
+ // FileTransfer undocumented
+ FileTransfer *int `json:"fileTransfer,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SoftwareUpdateStatusSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SoftwareUpdateStatusSummaryModel.go
new file mode 100644
index 00000000..df8638a8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SoftwareUpdateStatusSummaryModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SoftwareUpdateStatusSummary undocumented
+type SoftwareUpdateStatusSummary struct {
+ // Entity is the base model of SoftwareUpdateStatusSummary
+ Entity
+ // DisplayName The name of the policy.
+ DisplayName *string `json:"displayName,omitempty"`
+ // CompliantDeviceCount Number of compliant devices.
+ CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"`
+ // NonCompliantDeviceCount Number of non compliant devices.
+ NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"`
+ // RemediatedDeviceCount Number of remediated devices.
+ RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"`
+ // ErrorDeviceCount Number of devices had error.
+ ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"`
+ // UnknownDeviceCount Number of unknown devices.
+ UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"`
+ // ConflictDeviceCount Number of conflict devices.
+ ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"`
+ // NotApplicableDeviceCount Number of not applicable devices.
+ NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"`
+ // CompliantUserCount Number of compliant users.
+ CompliantUserCount *int `json:"compliantUserCount,omitempty"`
+ // NonCompliantUserCount Number of non compliant users.
+ NonCompliantUserCount *int `json:"nonCompliantUserCount,omitempty"`
+ // RemediatedUserCount Number of remediated users.
+ RemediatedUserCount *int `json:"remediatedUserCount,omitempty"`
+ // ErrorUserCount Number of users had error.
+ ErrorUserCount *int `json:"errorUserCount,omitempty"`
+ // UnknownUserCount Number of unknown users.
+ UnknownUserCount *int `json:"unknownUserCount,omitempty"`
+ // ConflictUserCount Number of conflict users.
+ ConflictUserCount *int `json:"conflictUserCount,omitempty"`
+ // NotApplicableUserCount Number of not applicable users.
+ NotApplicableUserCount *int `json:"notApplicableUserCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SoftwareUpdateStatusSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SoftwareUpdateStatusSummaryRequest.go
new file mode 100644
index 00000000..5e20be15
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SoftwareUpdateStatusSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SoftwareUpdateStatusSummaryRequestBuilder is request builder for SoftwareUpdateStatusSummary
+type SoftwareUpdateStatusSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SoftwareUpdateStatusSummaryRequest
+func (b *SoftwareUpdateStatusSummaryRequestBuilder) Request() *SoftwareUpdateStatusSummaryRequest {
+ return &SoftwareUpdateStatusSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SoftwareUpdateStatusSummaryRequest is request for SoftwareUpdateStatusSummary
+type SoftwareUpdateStatusSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for SoftwareUpdateStatusSummary
+func (r *SoftwareUpdateStatusSummaryRequest) Get(ctx context.Context) (resObj *SoftwareUpdateStatusSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SoftwareUpdateStatusSummary
+func (r *SoftwareUpdateStatusSummaryRequest) Update(ctx context.Context, reqObj *SoftwareUpdateStatusSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SoftwareUpdateStatusSummary
+func (r *SoftwareUpdateStatusSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SpecialFolderModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SpecialFolderModel.go
new file mode 100644
index 00000000..68793e68
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SpecialFolderModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SpecialFolder undocumented
+type SpecialFolder struct {
+ // Object is the base model of SpecialFolder
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/StagedFeatureNameEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/StagedFeatureNameEnum.go
new file mode 100644
index 00000000..06280b49
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/StagedFeatureNameEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StagedFeatureName undocumented
+type StagedFeatureName int
+
+const (
+ // StagedFeatureNameVPassthroughAuthentication undocumented
+ StagedFeatureNameVPassthroughAuthentication StagedFeatureName = 0
+ // StagedFeatureNameVSeamlessSso undocumented
+ StagedFeatureNameVSeamlessSso StagedFeatureName = 1
+ // StagedFeatureNameVPasswordHashSync undocumented
+ StagedFeatureNameVPasswordHashSync StagedFeatureName = 2
+ // StagedFeatureNameVUnknownFutureValue undocumented
+ StagedFeatureNameVUnknownFutureValue StagedFeatureName = 3
+)
+
+// StagedFeatureNamePPassthroughAuthentication returns a pointer to StagedFeatureNameVPassthroughAuthentication
+func StagedFeatureNamePPassthroughAuthentication() *StagedFeatureName {
+ v := StagedFeatureNameVPassthroughAuthentication
+ return &v
+}
+
+// StagedFeatureNamePSeamlessSso returns a pointer to StagedFeatureNameVSeamlessSso
+func StagedFeatureNamePSeamlessSso() *StagedFeatureName {
+ v := StagedFeatureNameVSeamlessSso
+ return &v
+}
+
+// StagedFeatureNamePPasswordHashSync returns a pointer to StagedFeatureNameVPasswordHashSync
+func StagedFeatureNamePPasswordHashSync() *StagedFeatureName {
+ v := StagedFeatureNameVPasswordHashSync
+ return &v
+}
+
+// StagedFeatureNamePUnknownFutureValue returns a pointer to StagedFeatureNameVUnknownFutureValue
+func StagedFeatureNamePUnknownFutureValue() *StagedFeatureName {
+ v := StagedFeatureNameVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/StandardTimeZoneOffsetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/StandardTimeZoneOffsetModel.go
new file mode 100644
index 00000000..a3bc5cc2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/StandardTimeZoneOffsetModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// StandardTimeZoneOffset undocumented
+type StandardTimeZoneOffset struct {
+ // Object is the base model of StandardTimeZoneOffset
+ Object
+ // Time undocumented
+ Time *time.Time `json:"time,omitempty"`
+ // DayOccurrence undocumented
+ DayOccurrence *int `json:"dayOccurrence,omitempty"`
+ // DayOfWeek undocumented
+ DayOfWeek *DayOfWeek `json:"dayOfWeek,omitempty"`
+ // Month undocumented
+ Month *int `json:"month,omitempty"`
+ // Year undocumented
+ Year *int `json:"year,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/StateManagementSettingEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/StateManagementSettingEnum.go
new file mode 100644
index 00000000..792b8625
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/StateManagementSettingEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StateManagementSetting undocumented
+type StateManagementSetting int
+
+const (
+ // StateManagementSettingVNotConfigured undocumented
+ StateManagementSettingVNotConfigured StateManagementSetting = 0
+ // StateManagementSettingVBlocked undocumented
+ StateManagementSettingVBlocked StateManagementSetting = 1
+ // StateManagementSettingVAllowed undocumented
+ StateManagementSettingVAllowed StateManagementSetting = 2
+)
+
+// StateManagementSettingPNotConfigured returns a pointer to StateManagementSettingVNotConfigured
+func StateManagementSettingPNotConfigured() *StateManagementSetting {
+ v := StateManagementSettingVNotConfigured
+ return &v
+}
+
+// StateManagementSettingPBlocked returns a pointer to StateManagementSettingVBlocked
+func StateManagementSettingPBlocked() *StateManagementSetting {
+ v := StateManagementSettingVBlocked
+ return &v
+}
+
+// StateManagementSettingPAllowed returns a pointer to StateManagementSettingVAllowed
+func StateManagementSettingPAllowed() *StateManagementSetting {
+ v := StateManagementSettingVAllowed
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/StatusBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/StatusBaseModel.go
new file mode 100644
index 00000000..70bb3fd1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/StatusBaseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StatusBase undocumented
+type StatusBase struct {
+ // Object is the base model of StatusBase
+ Object
+ // Status undocumented
+ Status *ProvisioningResult `json:"status,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/StatusDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/StatusDetailsModel.go
new file mode 100644
index 00000000..56d0342b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/StatusDetailsModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StatusDetails undocumented
+type StatusDetails struct {
+ // StatusBase is the base model of StatusDetails
+ StatusBase
+ // ErrorCode undocumented
+ ErrorCode *string `json:"errorCode,omitempty"`
+ // Reason undocumented
+ Reason *string `json:"reason,omitempty"`
+ // AdditionalDetails undocumented
+ AdditionalDetails *string `json:"additionalDetails,omitempty"`
+ // ErrorCategory undocumented
+ ErrorCategory *string `json:"errorCategory,omitempty"`
+ // RecommendedAction undocumented
+ RecommendedAction *string `json:"recommendedAction,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/StatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/StatusEnum.go
new file mode 100644
index 00000000..5678a333
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/StatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Status undocumented
+type Status int
+
+const (
+ // StatusVActive undocumented
+ StatusVActive Status = 0
+ // StatusVUpdated undocumented
+ StatusVUpdated Status = 1
+ // StatusVDeleted undocumented
+ StatusVDeleted Status = 2
+ // StatusVIgnored undocumented
+ StatusVIgnored Status = 3
+ // StatusVUnknownFutureValue undocumented
+ StatusVUnknownFutureValue Status = 4
+)
+
+// StatusPActive returns a pointer to StatusVActive
+func StatusPActive() *Status {
+ v := StatusVActive
+ return &v
+}
+
+// StatusPUpdated returns a pointer to StatusVUpdated
+func StatusPUpdated() *Status {
+ v := StatusVUpdated
+ return &v
+}
+
+// StatusPDeleted returns a pointer to StatusVDeleted
+func StatusPDeleted() *Status {
+ v := StatusVDeleted
+ return &v
+}
+
+// StatusPIgnored returns a pointer to StatusVIgnored
+func StatusPIgnored() *Status {
+ v := StatusVIgnored
+ return &v
+}
+
+// StatusPUnknownFutureValue returns a pointer to StatusVUnknownFutureValue
+func StatusPUnknownFutureValue() *Status {
+ v := StatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/StoragePlanInformationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/StoragePlanInformationModel.go
new file mode 100644
index 00000000..95a52ce8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/StoragePlanInformationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StoragePlanInformation undocumented
+type StoragePlanInformation struct {
+ // Object is the base model of StoragePlanInformation
+ Object
+ // UpgradeAvailable undocumented
+ UpgradeAvailable *bool `json:"upgradeAvailable,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/StringKeyAttributeMappingSourceValuePairModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/StringKeyAttributeMappingSourceValuePairModel.go
new file mode 100644
index 00000000..02493ed5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/StringKeyAttributeMappingSourceValuePairModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StringKeyAttributeMappingSourceValuePair undocumented
+type StringKeyAttributeMappingSourceValuePair struct {
+ // Object is the base model of StringKeyAttributeMappingSourceValuePair
+ Object
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+ // Value undocumented
+ Value *AttributeMappingSource `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/StringKeyLongValuePairModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/StringKeyLongValuePairModel.go
new file mode 100644
index 00000000..e449961f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/StringKeyLongValuePairModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StringKeyLongValuePair undocumented
+type StringKeyLongValuePair struct {
+ // Object is the base model of StringKeyLongValuePair
+ Object
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+ // Value undocumented
+ Value *int `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/StringKeyObjectValuePairModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/StringKeyObjectValuePairModel.go
new file mode 100644
index 00000000..920fc605
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/StringKeyObjectValuePairModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StringKeyObjectValuePair undocumented
+type StringKeyObjectValuePair struct {
+ // Object is the base model of StringKeyObjectValuePair
+ Object
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/StringKeyStringValuePairModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/StringKeyStringValuePairModel.go
new file mode 100644
index 00000000..833d298f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/StringKeyStringValuePairModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StringKeyStringValuePair undocumented
+type StringKeyStringValuePair struct {
+ // Object is the base model of StringKeyStringValuePair
+ Object
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SubjectAlternativeNameTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SubjectAlternativeNameTypeEnum.go
new file mode 100644
index 00000000..e9bd9e07
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SubjectAlternativeNameTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SubjectAlternativeNameType undocumented
+type SubjectAlternativeNameType int
+
+const (
+ // SubjectAlternativeNameTypeVNone undocumented
+ SubjectAlternativeNameTypeVNone SubjectAlternativeNameType = 0
+ // SubjectAlternativeNameTypeVEmailAddress undocumented
+ SubjectAlternativeNameTypeVEmailAddress SubjectAlternativeNameType = 1
+ // SubjectAlternativeNameTypeVUserPrincipalName undocumented
+ SubjectAlternativeNameTypeVUserPrincipalName SubjectAlternativeNameType = 2
+ // SubjectAlternativeNameTypeVCustomAzureADAttribute undocumented
+ SubjectAlternativeNameTypeVCustomAzureADAttribute SubjectAlternativeNameType = 4
+ // SubjectAlternativeNameTypeVDomainNameService undocumented
+ SubjectAlternativeNameTypeVDomainNameService SubjectAlternativeNameType = 8
+)
+
+// SubjectAlternativeNameTypePNone returns a pointer to SubjectAlternativeNameTypeVNone
+func SubjectAlternativeNameTypePNone() *SubjectAlternativeNameType {
+ v := SubjectAlternativeNameTypeVNone
+ return &v
+}
+
+// SubjectAlternativeNameTypePEmailAddress returns a pointer to SubjectAlternativeNameTypeVEmailAddress
+func SubjectAlternativeNameTypePEmailAddress() *SubjectAlternativeNameType {
+ v := SubjectAlternativeNameTypeVEmailAddress
+ return &v
+}
+
+// SubjectAlternativeNameTypePUserPrincipalName returns a pointer to SubjectAlternativeNameTypeVUserPrincipalName
+func SubjectAlternativeNameTypePUserPrincipalName() *SubjectAlternativeNameType {
+ v := SubjectAlternativeNameTypeVUserPrincipalName
+ return &v
+}
+
+// SubjectAlternativeNameTypePCustomAzureADAttribute returns a pointer to SubjectAlternativeNameTypeVCustomAzureADAttribute
+func SubjectAlternativeNameTypePCustomAzureADAttribute() *SubjectAlternativeNameType {
+ v := SubjectAlternativeNameTypeVCustomAzureADAttribute
+ return &v
+}
+
+// SubjectAlternativeNameTypePDomainNameService returns a pointer to SubjectAlternativeNameTypeVDomainNameService
+func SubjectAlternativeNameTypePDomainNameService() *SubjectAlternativeNameType {
+ v := SubjectAlternativeNameTypeVDomainNameService
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SubjectNameFormatEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SubjectNameFormatEnum.go
new file mode 100644
index 00000000..bb9a5725
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SubjectNameFormatEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SubjectNameFormat undocumented
+type SubjectNameFormat int
+
+const (
+ // SubjectNameFormatVCommonName undocumented
+ SubjectNameFormatVCommonName SubjectNameFormat = 0
+ // SubjectNameFormatVCommonNameIncludingEmail undocumented
+ SubjectNameFormatVCommonNameIncludingEmail SubjectNameFormat = 1
+ // SubjectNameFormatVCommonNameAsEmail undocumented
+ SubjectNameFormatVCommonNameAsEmail SubjectNameFormat = 2
+ // SubjectNameFormatVCustom undocumented
+ SubjectNameFormatVCustom SubjectNameFormat = 3
+ // SubjectNameFormatVCommonNameAsIMEI undocumented
+ SubjectNameFormatVCommonNameAsIMEI SubjectNameFormat = 5
+ // SubjectNameFormatVCommonNameAsSerialNumber undocumented
+ SubjectNameFormatVCommonNameAsSerialNumber SubjectNameFormat = 6
+ // SubjectNameFormatVCommonNameAsAadDeviceID undocumented
+ SubjectNameFormatVCommonNameAsAadDeviceID SubjectNameFormat = 7
+ // SubjectNameFormatVCommonNameAsIntuneDeviceID undocumented
+ SubjectNameFormatVCommonNameAsIntuneDeviceID SubjectNameFormat = 8
+ // SubjectNameFormatVCommonNameAsDurableDeviceID undocumented
+ SubjectNameFormatVCommonNameAsDurableDeviceID SubjectNameFormat = 9
+)
+
+// SubjectNameFormatPCommonName returns a pointer to SubjectNameFormatVCommonName
+func SubjectNameFormatPCommonName() *SubjectNameFormat {
+ v := SubjectNameFormatVCommonName
+ return &v
+}
+
+// SubjectNameFormatPCommonNameIncludingEmail returns a pointer to SubjectNameFormatVCommonNameIncludingEmail
+func SubjectNameFormatPCommonNameIncludingEmail() *SubjectNameFormat {
+ v := SubjectNameFormatVCommonNameIncludingEmail
+ return &v
+}
+
+// SubjectNameFormatPCommonNameAsEmail returns a pointer to SubjectNameFormatVCommonNameAsEmail
+func SubjectNameFormatPCommonNameAsEmail() *SubjectNameFormat {
+ v := SubjectNameFormatVCommonNameAsEmail
+ return &v
+}
+
+// SubjectNameFormatPCustom returns a pointer to SubjectNameFormatVCustom
+func SubjectNameFormatPCustom() *SubjectNameFormat {
+ v := SubjectNameFormatVCustom
+ return &v
+}
+
+// SubjectNameFormatPCommonNameAsIMEI returns a pointer to SubjectNameFormatVCommonNameAsIMEI
+func SubjectNameFormatPCommonNameAsIMEI() *SubjectNameFormat {
+ v := SubjectNameFormatVCommonNameAsIMEI
+ return &v
+}
+
+// SubjectNameFormatPCommonNameAsSerialNumber returns a pointer to SubjectNameFormatVCommonNameAsSerialNumber
+func SubjectNameFormatPCommonNameAsSerialNumber() *SubjectNameFormat {
+ v := SubjectNameFormatVCommonNameAsSerialNumber
+ return &v
+}
+
+// SubjectNameFormatPCommonNameAsAadDeviceID returns a pointer to SubjectNameFormatVCommonNameAsAadDeviceID
+func SubjectNameFormatPCommonNameAsAadDeviceID() *SubjectNameFormat {
+ v := SubjectNameFormatVCommonNameAsAadDeviceID
+ return &v
+}
+
+// SubjectNameFormatPCommonNameAsIntuneDeviceID returns a pointer to SubjectNameFormatVCommonNameAsIntuneDeviceID
+func SubjectNameFormatPCommonNameAsIntuneDeviceID() *SubjectNameFormat {
+ v := SubjectNameFormatVCommonNameAsIntuneDeviceID
+ return &v
+}
+
+// SubjectNameFormatPCommonNameAsDurableDeviceID returns a pointer to SubjectNameFormatVCommonNameAsDurableDeviceID
+func SubjectNameFormatPCommonNameAsDurableDeviceID() *SubjectNameFormat {
+ v := SubjectNameFormatVCommonNameAsDurableDeviceID
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SubscribeToToneOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SubscribeToToneOperationModel.go
new file mode 100644
index 00000000..e7c70138
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SubscribeToToneOperationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SubscribeToToneOperation undocumented
+type SubscribeToToneOperation struct {
+ // CommsOperation is the base model of SubscribeToToneOperation
+ CommsOperation
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SubscribedSKUModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SubscribedSKUModel.go
new file mode 100644
index 00000000..45947da3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SubscribedSKUModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SubscribedSKU undocumented
+type SubscribedSKU struct {
+ // Entity is the base model of SubscribedSKU
+ Entity
+ // CapabilityStatus undocumented
+ CapabilityStatus *string `json:"capabilityStatus,omitempty"`
+ // ConsumedUnits undocumented
+ ConsumedUnits *int `json:"consumedUnits,omitempty"`
+ // PrepaidUnits undocumented
+ PrepaidUnits *LicenseUnitsDetail `json:"prepaidUnits,omitempty"`
+ // ServicePlans undocumented
+ ServicePlans []ServicePlanInfo `json:"servicePlans,omitempty"`
+ // SKUID undocumented
+ SKUID *UUID `json:"skuId,omitempty"`
+ // SKUPartNumber undocumented
+ SKUPartNumber *string `json:"skuPartNumber,omitempty"`
+ // AppliesTo undocumented
+ AppliesTo *string `json:"appliesTo,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SubscribedSKURequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SubscribedSKURequest.go
new file mode 100644
index 00000000..2f446f06
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SubscribedSKURequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SubscribedSKURequestBuilder is request builder for SubscribedSKU
+type SubscribedSKURequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SubscribedSKURequest
+func (b *SubscribedSKURequestBuilder) Request() *SubscribedSKURequest {
+ return &SubscribedSKURequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SubscribedSKURequest is request for SubscribedSKU
+type SubscribedSKURequest struct{ BaseRequest }
+
+// Get performs GET request for SubscribedSKU
+func (r *SubscribedSKURequest) Get(ctx context.Context) (resObj *SubscribedSKU, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SubscribedSKU
+func (r *SubscribedSKURequest) Update(ctx context.Context, reqObj *SubscribedSKU) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SubscribedSKU
+func (r *SubscribedSKURequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SubscriptionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SubscriptionModel.go
new file mode 100644
index 00000000..b36cb605
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SubscriptionModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Subscription undocumented
+type Subscription struct {
+ // Entity is the base model of Subscription
+ Entity
+ // Resource undocumented
+ Resource *string `json:"resource,omitempty"`
+ // ChangeType undocumented
+ ChangeType *string `json:"changeType,omitempty"`
+ // ClientState undocumented
+ ClientState *string `json:"clientState,omitempty"`
+ // NotificationURL undocumented
+ NotificationURL *string `json:"notificationUrl,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // ApplicationID undocumented
+ ApplicationID *string `json:"applicationId,omitempty"`
+ // CreatorID undocumented
+ CreatorID *string `json:"creatorId,omitempty"`
+ // IncludeProperties undocumented
+ IncludeProperties *bool `json:"includeProperties,omitempty"`
+ // IncludeResourceData undocumented
+ IncludeResourceData *bool `json:"includeResourceData,omitempty"`
+ // LifecycleNotificationURL undocumented
+ LifecycleNotificationURL *string `json:"lifecycleNotificationUrl,omitempty"`
+ // EncryptionCertificate undocumented
+ EncryptionCertificate *string `json:"encryptionCertificate,omitempty"`
+ // EncryptionCertificateID undocumented
+ EncryptionCertificateID *string `json:"encryptionCertificateId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SubscriptionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SubscriptionRequest.go
new file mode 100644
index 00000000..8cc22431
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SubscriptionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SubscriptionRequestBuilder is request builder for Subscription
+type SubscriptionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SubscriptionRequest
+func (b *SubscriptionRequestBuilder) Request() *SubscriptionRequest {
+ return &SubscriptionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SubscriptionRequest is request for Subscription
+type SubscriptionRequest struct{ BaseRequest }
+
+// Get performs GET request for Subscription
+func (r *SubscriptionRequest) Get(ctx context.Context) (resObj *Subscription, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Subscription
+func (r *SubscriptionRequest) Update(ctx context.Context, reqObj *Subscription) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Subscription
+func (r *SubscriptionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SuspiciousIPRiskEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SuspiciousIPRiskEventModel.go
new file mode 100644
index 00000000..11870b5e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SuspiciousIPRiskEventModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SuspiciousIPRiskEvent undocumented
+type SuspiciousIPRiskEvent struct {
+ // LocatedRiskEvent is the base model of SuspiciousIPRiskEvent
+ LocatedRiskEvent
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SuspiciousIPRiskEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SuspiciousIPRiskEventRequest.go
new file mode 100644
index 00000000..e79d0d72
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SuspiciousIPRiskEventRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SuspiciousIPRiskEventRequestBuilder is request builder for SuspiciousIPRiskEvent
+type SuspiciousIPRiskEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SuspiciousIPRiskEventRequest
+func (b *SuspiciousIPRiskEventRequestBuilder) Request() *SuspiciousIPRiskEventRequest {
+ return &SuspiciousIPRiskEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SuspiciousIPRiskEventRequest is request for SuspiciousIPRiskEvent
+type SuspiciousIPRiskEventRequest struct{ BaseRequest }
+
+// Get performs GET request for SuspiciousIPRiskEvent
+func (r *SuspiciousIPRiskEventRequest) Get(ctx context.Context) (resObj *SuspiciousIPRiskEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SuspiciousIPRiskEvent
+func (r *SuspiciousIPRiskEventRequest) Update(ctx context.Context, reqObj *SuspiciousIPRiskEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SuspiciousIPRiskEvent
+func (r *SuspiciousIPRiskEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SwapShiftsChangeRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SwapShiftsChangeRequestObjectModel.go
new file mode 100644
index 00000000..a8fffde0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SwapShiftsChangeRequestObjectModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SwapShiftsChangeRequestObject undocumented
+type SwapShiftsChangeRequestObject struct {
+ // ShiftChangeRequestObject is the base model of SwapShiftsChangeRequestObject
+ ShiftChangeRequestObject
+ // RecipientShiftID undocumented
+ RecipientShiftID *string `json:"recipientShiftId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SwapShiftsChangeRequestObjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SwapShiftsChangeRequestObjectRequest.go
new file mode 100644
index 00000000..717cc288
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SwapShiftsChangeRequestObjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SwapShiftsChangeRequestObjectRequestBuilder is request builder for SwapShiftsChangeRequestObject
+type SwapShiftsChangeRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SwapShiftsChangeRequestObjectRequest
+func (b *SwapShiftsChangeRequestObjectRequestBuilder) Request() *SwapShiftsChangeRequestObjectRequest {
+ return &SwapShiftsChangeRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SwapShiftsChangeRequestObjectRequest is request for SwapShiftsChangeRequestObject
+type SwapShiftsChangeRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for SwapShiftsChangeRequestObject
+func (r *SwapShiftsChangeRequestObjectRequest) Get(ctx context.Context) (resObj *SwapShiftsChangeRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SwapShiftsChangeRequestObject
+func (r *SwapShiftsChangeRequestObjectRequest) Update(ctx context.Context, reqObj *SwapShiftsChangeRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SwapShiftsChangeRequestObject
+func (r *SwapShiftsChangeRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SymantecCodeSigningCertificateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SymantecCodeSigningCertificateModel.go
new file mode 100644
index 00000000..3588802b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SymantecCodeSigningCertificateModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SymantecCodeSigningCertificate undocumented
+type SymantecCodeSigningCertificate struct {
+ // Entity is the base model of SymantecCodeSigningCertificate
+ Entity
+ // Content The Windows Symantec Code-Signing Certificate in the raw data format.
+ Content *Binary `json:"content,omitempty"`
+ // Status The Cert Status Provisioned or not Provisioned.
+ Status *CertificateStatus `json:"status,omitempty"`
+ // Password The Password required for .pfx file.
+ Password *string `json:"password,omitempty"`
+ // SubjectName The Subject Name for the cert.
+ SubjectName *string `json:"subjectName,omitempty"`
+ // Subject The Subject value for the cert.
+ Subject *string `json:"subject,omitempty"`
+ // IssuerName The Issuer Name for the cert.
+ IssuerName *string `json:"issuerName,omitempty"`
+ // Issuer The Issuer value for the cert.
+ Issuer *string `json:"issuer,omitempty"`
+ // ExpirationDateTime The Cert Expiration Date.
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // UploadDateTime The Type of the CodeSigning Cert as Symantec Cert.
+ UploadDateTime *time.Time `json:"uploadDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SymantecCodeSigningCertificateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SymantecCodeSigningCertificateRequest.go
new file mode 100644
index 00000000..acd23845
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SymantecCodeSigningCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SymantecCodeSigningCertificateRequestBuilder is request builder for SymantecCodeSigningCertificate
+type SymantecCodeSigningCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SymantecCodeSigningCertificateRequest
+func (b *SymantecCodeSigningCertificateRequestBuilder) Request() *SymantecCodeSigningCertificateRequest {
+ return &SymantecCodeSigningCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SymantecCodeSigningCertificateRequest is request for SymantecCodeSigningCertificate
+type SymantecCodeSigningCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for SymantecCodeSigningCertificate
+func (r *SymantecCodeSigningCertificateRequest) Get(ctx context.Context) (resObj *SymantecCodeSigningCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SymantecCodeSigningCertificate
+func (r *SymantecCodeSigningCertificateRequest) Update(ctx context.Context, reqObj *SymantecCodeSigningCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SymantecCodeSigningCertificate
+func (r *SymantecCodeSigningCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationErrorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationErrorModel.go
new file mode 100644
index 00000000..645c33f1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationErrorModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationError undocumented
+type SynchronizationError struct {
+ // Object is the base model of SynchronizationError
+ Object
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // TenantActionable undocumented
+ TenantActionable *bool `json:"tenantActionable,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationJobAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationJobAction.go
new file mode 100644
index 00000000..f9d36e41
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationJobAction.go
@@ -0,0 +1,239 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SynchronizationJobCollectionValidateCredentialsRequestParameter undocumented
+type SynchronizationJobCollectionValidateCredentialsRequestParameter struct {
+ // ApplicationIdentifier undocumented
+ ApplicationIdentifier *string `json:"applicationIdentifier,omitempty"`
+ // TemplateID undocumented
+ TemplateID *string `json:"templateId,omitempty"`
+ // UseSavedCredentials undocumented
+ UseSavedCredentials *bool `json:"useSavedCredentials,omitempty"`
+ // Credentials undocumented
+ Credentials []SynchronizationSecretKeyStringValuePair `json:"credentials,omitempty"`
+}
+
+// SynchronizationJobPauseRequestParameter undocumented
+type SynchronizationJobPauseRequestParameter struct {
+}
+
+// SynchronizationJobStartRequestParameter undocumented
+type SynchronizationJobStartRequestParameter struct {
+}
+
+// SynchronizationJobStopRequestParameter undocumented
+type SynchronizationJobStopRequestParameter struct {
+}
+
+// SynchronizationJobApplyRequestParameter undocumented
+type SynchronizationJobApplyRequestParameter struct {
+ // ObjectID undocumented
+ ObjectID *string `json:"objectId,omitempty"`
+ // TypeName undocumented
+ TypeName *string `json:"typeName,omitempty"`
+ // RuleID undocumented
+ RuleID *string `json:"ruleId,omitempty"`
+}
+
+// SynchronizationJobRestartRequestParameter undocumented
+type SynchronizationJobRestartRequestParameter struct {
+ // Criteria undocumented
+ Criteria *SynchronizationJobRestartCriteria `json:"criteria,omitempty"`
+}
+
+// SynchronizationJobValidateCredentialsRequestParameter undocumented
+type SynchronizationJobValidateCredentialsRequestParameter struct {
+ // ApplicationIdentifier undocumented
+ ApplicationIdentifier *string `json:"applicationIdentifier,omitempty"`
+ // TemplateID undocumented
+ TemplateID *string `json:"templateId,omitempty"`
+ // UseSavedCredentials undocumented
+ UseSavedCredentials *bool `json:"useSavedCredentials,omitempty"`
+ // Credentials undocumented
+ Credentials []SynchronizationSecretKeyStringValuePair `json:"credentials,omitempty"`
+}
+
+//
+type SynchronizationJobCollectionValidateCredentialsRequestBuilder struct{ BaseRequestBuilder }
+
+// ValidateCredentials action undocumented
+func (b *SynchronizationJobsCollectionRequestBuilder) ValidateCredentials(reqObj *SynchronizationJobCollectionValidateCredentialsRequestParameter) *SynchronizationJobCollectionValidateCredentialsRequestBuilder {
+ bb := &SynchronizationJobCollectionValidateCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateCredentials"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SynchronizationJobCollectionValidateCredentialsRequest struct{ BaseRequest }
+
+//
+func (b *SynchronizationJobCollectionValidateCredentialsRequestBuilder) Request() *SynchronizationJobCollectionValidateCredentialsRequest {
+ return &SynchronizationJobCollectionValidateCredentialsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SynchronizationJobCollectionValidateCredentialsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SynchronizationJobPauseRequestBuilder struct{ BaseRequestBuilder }
+
+// Pause action undocumented
+func (b *SynchronizationJobRequestBuilder) Pause(reqObj *SynchronizationJobPauseRequestParameter) *SynchronizationJobPauseRequestBuilder {
+ bb := &SynchronizationJobPauseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/pause"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SynchronizationJobPauseRequest struct{ BaseRequest }
+
+//
+func (b *SynchronizationJobPauseRequestBuilder) Request() *SynchronizationJobPauseRequest {
+ return &SynchronizationJobPauseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SynchronizationJobPauseRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SynchronizationJobStartRequestBuilder struct{ BaseRequestBuilder }
+
+// Start action undocumented
+func (b *SynchronizationJobRequestBuilder) Start(reqObj *SynchronizationJobStartRequestParameter) *SynchronizationJobStartRequestBuilder {
+ bb := &SynchronizationJobStartRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/start"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SynchronizationJobStartRequest struct{ BaseRequest }
+
+//
+func (b *SynchronizationJobStartRequestBuilder) Request() *SynchronizationJobStartRequest {
+ return &SynchronizationJobStartRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SynchronizationJobStartRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SynchronizationJobStopRequestBuilder struct{ BaseRequestBuilder }
+
+// Stop action undocumented
+func (b *SynchronizationJobRequestBuilder) Stop(reqObj *SynchronizationJobStopRequestParameter) *SynchronizationJobStopRequestBuilder {
+ bb := &SynchronizationJobStopRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/stop"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SynchronizationJobStopRequest struct{ BaseRequest }
+
+//
+func (b *SynchronizationJobStopRequestBuilder) Request() *SynchronizationJobStopRequest {
+ return &SynchronizationJobStopRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SynchronizationJobStopRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SynchronizationJobApplyRequestBuilder struct{ BaseRequestBuilder }
+
+// Apply action undocumented
+func (b *SynchronizationJobRequestBuilder) Apply(reqObj *SynchronizationJobApplyRequestParameter) *SynchronizationJobApplyRequestBuilder {
+ bb := &SynchronizationJobApplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/apply"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SynchronizationJobApplyRequest struct{ BaseRequest }
+
+//
+func (b *SynchronizationJobApplyRequestBuilder) Request() *SynchronizationJobApplyRequest {
+ return &SynchronizationJobApplyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SynchronizationJobApplyRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SynchronizationJobRestartRequestBuilder struct{ BaseRequestBuilder }
+
+// Restart action undocumented
+func (b *SynchronizationJobRequestBuilder) Restart(reqObj *SynchronizationJobRestartRequestParameter) *SynchronizationJobRestartRequestBuilder {
+ bb := &SynchronizationJobRestartRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/restart"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SynchronizationJobRestartRequest struct{ BaseRequest }
+
+//
+func (b *SynchronizationJobRestartRequestBuilder) Request() *SynchronizationJobRestartRequest {
+ return &SynchronizationJobRestartRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SynchronizationJobRestartRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SynchronizationJobValidateCredentialsRequestBuilder struct{ BaseRequestBuilder }
+
+// ValidateCredentials action undocumented
+func (b *SynchronizationJobRequestBuilder) ValidateCredentials(reqObj *SynchronizationJobValidateCredentialsRequestParameter) *SynchronizationJobValidateCredentialsRequestBuilder {
+ bb := &SynchronizationJobValidateCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateCredentials"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SynchronizationJobValidateCredentialsRequest struct{ BaseRequest }
+
+//
+func (b *SynchronizationJobValidateCredentialsRequestBuilder) Request() *SynchronizationJobValidateCredentialsRequest {
+ return &SynchronizationJobValidateCredentialsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SynchronizationJobValidateCredentialsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationJobModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationJobModel.go
new file mode 100644
index 00000000..3c018828
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationJobModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationJob undocumented
+type SynchronizationJob struct {
+ // Entity is the base model of SynchronizationJob
+ Entity
+ // TemplateID undocumented
+ TemplateID *string `json:"templateId,omitempty"`
+ // Schedule undocumented
+ Schedule *SynchronizationSchedule `json:"schedule,omitempty"`
+ // Status undocumented
+ Status *SynchronizationStatus `json:"status,omitempty"`
+ // SynchronizationJobSettings undocumented
+ SynchronizationJobSettings []KeyValuePair `json:"synchronizationJobSettings,omitempty"`
+ // Schema undocumented
+ Schema *SynchronizationSchema `json:"schema,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationJobRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationJobRequest.go
new file mode 100644
index 00000000..e805af59
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationJobRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SynchronizationJobRequestBuilder is request builder for SynchronizationJob
+type SynchronizationJobRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SynchronizationJobRequest
+func (b *SynchronizationJobRequestBuilder) Request() *SynchronizationJobRequest {
+ return &SynchronizationJobRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SynchronizationJobRequest is request for SynchronizationJob
+type SynchronizationJobRequest struct{ BaseRequest }
+
+// Get performs GET request for SynchronizationJob
+func (r *SynchronizationJobRequest) Get(ctx context.Context) (resObj *SynchronizationJob, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SynchronizationJob
+func (r *SynchronizationJobRequest) Update(ctx context.Context, reqObj *SynchronizationJob) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SynchronizationJob
+func (r *SynchronizationJobRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Schema is navigation property
+func (b *SynchronizationJobRequestBuilder) Schema() *SynchronizationSchemaRequestBuilder {
+ bb := &SynchronizationSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schema"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationJobRestartCriteriaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationJobRestartCriteriaModel.go
new file mode 100644
index 00000000..5b1ef836
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationJobRestartCriteriaModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationJobRestartCriteria undocumented
+type SynchronizationJobRestartCriteria struct {
+ // Object is the base model of SynchronizationJobRestartCriteria
+ Object
+ // ResetScope undocumented
+ ResetScope *SynchronizationJobRestartScope `json:"resetScope,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationJobRestartScopeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationJobRestartScopeEnum.go
new file mode 100644
index 00000000..225deaab
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationJobRestartScopeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationJobRestartScope undocumented
+type SynchronizationJobRestartScope int
+
+const (
+ // SynchronizationJobRestartScopeVForceDeletes undocumented
+ SynchronizationJobRestartScopeVForceDeletes SynchronizationJobRestartScope = 32
+ // SynchronizationJobRestartScopeVFull undocumented
+ SynchronizationJobRestartScopeVFull SynchronizationJobRestartScope = 15
+ // SynchronizationJobRestartScopeVQuarantineState undocumented
+ SynchronizationJobRestartScopeVQuarantineState SynchronizationJobRestartScope = 8
+ // SynchronizationJobRestartScopeVWatermark undocumented
+ SynchronizationJobRestartScopeVWatermark SynchronizationJobRestartScope = 4
+ // SynchronizationJobRestartScopeVEscrows undocumented
+ SynchronizationJobRestartScopeVEscrows SynchronizationJobRestartScope = 2
+ // SynchronizationJobRestartScopeVConnectorDataStore undocumented
+ SynchronizationJobRestartScopeVConnectorDataStore SynchronizationJobRestartScope = 1
+ // SynchronizationJobRestartScopeVNone undocumented
+ SynchronizationJobRestartScopeVNone SynchronizationJobRestartScope = 0
+)
+
+// SynchronizationJobRestartScopePForceDeletes returns a pointer to SynchronizationJobRestartScopeVForceDeletes
+func SynchronizationJobRestartScopePForceDeletes() *SynchronizationJobRestartScope {
+ v := SynchronizationJobRestartScopeVForceDeletes
+ return &v
+}
+
+// SynchronizationJobRestartScopePFull returns a pointer to SynchronizationJobRestartScopeVFull
+func SynchronizationJobRestartScopePFull() *SynchronizationJobRestartScope {
+ v := SynchronizationJobRestartScopeVFull
+ return &v
+}
+
+// SynchronizationJobRestartScopePQuarantineState returns a pointer to SynchronizationJobRestartScopeVQuarantineState
+func SynchronizationJobRestartScopePQuarantineState() *SynchronizationJobRestartScope {
+ v := SynchronizationJobRestartScopeVQuarantineState
+ return &v
+}
+
+// SynchronizationJobRestartScopePWatermark returns a pointer to SynchronizationJobRestartScopeVWatermark
+func SynchronizationJobRestartScopePWatermark() *SynchronizationJobRestartScope {
+ v := SynchronizationJobRestartScopeVWatermark
+ return &v
+}
+
+// SynchronizationJobRestartScopePEscrows returns a pointer to SynchronizationJobRestartScopeVEscrows
+func SynchronizationJobRestartScopePEscrows() *SynchronizationJobRestartScope {
+ v := SynchronizationJobRestartScopeVEscrows
+ return &v
+}
+
+// SynchronizationJobRestartScopePConnectorDataStore returns a pointer to SynchronizationJobRestartScopeVConnectorDataStore
+func SynchronizationJobRestartScopePConnectorDataStore() *SynchronizationJobRestartScope {
+ v := SynchronizationJobRestartScopeVConnectorDataStore
+ return &v
+}
+
+// SynchronizationJobRestartScopePNone returns a pointer to SynchronizationJobRestartScopeVNone
+func SynchronizationJobRestartScopePNone() *SynchronizationJobRestartScope {
+ v := SynchronizationJobRestartScopeVNone
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationModel.go
new file mode 100644
index 00000000..af84ca87
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Synchronization undocumented
+type Synchronization struct {
+ // Entity is the base model of Synchronization
+ Entity
+ // Secrets undocumented
+ Secrets []SynchronizationSecretKeyStringValuePair `json:"secrets,omitempty"`
+ // Jobs undocumented
+ Jobs []SynchronizationJob `json:"jobs,omitempty"`
+ // Templates undocumented
+ Templates []SynchronizationTemplate `json:"templates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationProgressModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationProgressModel.go
new file mode 100644
index 00000000..841ea485
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationProgressModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SynchronizationProgress undocumented
+type SynchronizationProgress struct {
+ // Object is the base model of SynchronizationProgress
+ Object
+ // CompletedUnits undocumented
+ CompletedUnits *int `json:"completedUnits,omitempty"`
+ // ProgressObservationDateTime undocumented
+ ProgressObservationDateTime *time.Time `json:"progressObservationDateTime,omitempty"`
+ // TotalUnits undocumented
+ TotalUnits *int `json:"totalUnits,omitempty"`
+ // Units undocumented
+ Units *string `json:"units,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationQuarantineModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationQuarantineModel.go
new file mode 100644
index 00000000..523317bc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationQuarantineModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SynchronizationQuarantine undocumented
+type SynchronizationQuarantine struct {
+ // Object is the base model of SynchronizationQuarantine
+ Object
+ // CurrentBegan undocumented
+ CurrentBegan *time.Time `json:"currentBegan,omitempty"`
+ // NextAttempt undocumented
+ NextAttempt *time.Time `json:"nextAttempt,omitempty"`
+ // Reason undocumented
+ Reason *QuarantineReason `json:"reason,omitempty"`
+ // SeriesBegan undocumented
+ SeriesBegan *time.Time `json:"seriesBegan,omitempty"`
+ // SeriesCount undocumented
+ SeriesCount *int `json:"seriesCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationRequest.go
new file mode 100644
index 00000000..6fa8ed02
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SynchronizationRequestBuilder is request builder for Synchronization
+type SynchronizationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SynchronizationRequest
+func (b *SynchronizationRequestBuilder) Request() *SynchronizationRequest {
+ return &SynchronizationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SynchronizationRequest is request for Synchronization
+type SynchronizationRequest struct{ BaseRequest }
+
+// Get performs GET request for Synchronization
+func (r *SynchronizationRequest) Get(ctx context.Context) (resObj *Synchronization, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Synchronization
+func (r *SynchronizationRequest) Update(ctx context.Context, reqObj *Synchronization) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Synchronization
+func (r *SynchronizationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Jobs returns request builder for SynchronizationJob collection
+func (b *SynchronizationRequestBuilder) Jobs() *SynchronizationJobsCollectionRequestBuilder {
+ bb := &SynchronizationJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/jobs"
+ return bb
+}
+
+// SynchronizationJobsCollectionRequestBuilder is request builder for SynchronizationJob collection
+type SynchronizationJobsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SynchronizationJob collection
+func (b *SynchronizationJobsCollectionRequestBuilder) Request() *SynchronizationJobsCollectionRequest {
+ return &SynchronizationJobsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SynchronizationJob item
+func (b *SynchronizationJobsCollectionRequestBuilder) ID(id string) *SynchronizationJobRequestBuilder {
+ bb := &SynchronizationJobRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SynchronizationJobsCollectionRequest is request for SynchronizationJob collection
+type SynchronizationJobsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SynchronizationJob collection
+func (r *SynchronizationJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SynchronizationJob, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SynchronizationJob
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SynchronizationJob
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SynchronizationJob collection
+func (r *SynchronizationJobsCollectionRequest) Get(ctx context.Context) ([]SynchronizationJob, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SynchronizationJob collection
+func (r *SynchronizationJobsCollectionRequest) Add(ctx context.Context, reqObj *SynchronizationJob) (resObj *SynchronizationJob, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Templates returns request builder for SynchronizationTemplate collection
+func (b *SynchronizationRequestBuilder) Templates() *SynchronizationTemplatesCollectionRequestBuilder {
+ bb := &SynchronizationTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/templates"
+ return bb
+}
+
+// SynchronizationTemplatesCollectionRequestBuilder is request builder for SynchronizationTemplate collection
+type SynchronizationTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SynchronizationTemplate collection
+func (b *SynchronizationTemplatesCollectionRequestBuilder) Request() *SynchronizationTemplatesCollectionRequest {
+ return &SynchronizationTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SynchronizationTemplate item
+func (b *SynchronizationTemplatesCollectionRequestBuilder) ID(id string) *SynchronizationTemplateRequestBuilder {
+ bb := &SynchronizationTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SynchronizationTemplatesCollectionRequest is request for SynchronizationTemplate collection
+type SynchronizationTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SynchronizationTemplate collection
+func (r *SynchronizationTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]SynchronizationTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SynchronizationTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SynchronizationTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for SynchronizationTemplate collection
+func (r *SynchronizationTemplatesCollectionRequest) Get(ctx context.Context) ([]SynchronizationTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for SynchronizationTemplate collection
+func (r *SynchronizationTemplatesCollectionRequest) Add(ctx context.Context, reqObj *SynchronizationTemplate) (resObj *SynchronizationTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationRuleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationRuleModel.go
new file mode 100644
index 00000000..cd397621
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationRuleModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationRule undocumented
+type SynchronizationRule struct {
+ // Object is the base model of SynchronizationRule
+ Object
+ // Editable undocumented
+ Editable *bool `json:"editable,omitempty"`
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Metadata undocumented
+ Metadata []StringKeyStringValuePair `json:"metadata,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ObjectMappings undocumented
+ ObjectMappings []ObjectMapping `json:"objectMappings,omitempty"`
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+ // SourceDirectoryName undocumented
+ SourceDirectoryName *string `json:"sourceDirectoryName,omitempty"`
+ // TargetDirectoryName undocumented
+ TargetDirectoryName *string `json:"targetDirectoryName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationScheduleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationScheduleModel.go
new file mode 100644
index 00000000..94d81fc5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationScheduleModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SynchronizationSchedule undocumented
+type SynchronizationSchedule struct {
+ // Object is the base model of SynchronizationSchedule
+ Object
+ // Expiration undocumented
+ Expiration *time.Time `json:"expiration,omitempty"`
+ // Interval undocumented
+ Interval *time.Duration `json:"interval,omitempty"`
+ // State undocumented
+ State *SynchronizationScheduleState `json:"state,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationScheduleStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationScheduleStateEnum.go
new file mode 100644
index 00000000..4646c96c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationScheduleStateEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationScheduleState undocumented
+type SynchronizationScheduleState int
+
+const (
+ // SynchronizationScheduleStateVActive undocumented
+ SynchronizationScheduleStateVActive SynchronizationScheduleState = 0
+ // SynchronizationScheduleStateVDisabled undocumented
+ SynchronizationScheduleStateVDisabled SynchronizationScheduleState = 1
+)
+
+// SynchronizationScheduleStatePActive returns a pointer to SynchronizationScheduleStateVActive
+func SynchronizationScheduleStatePActive() *SynchronizationScheduleState {
+ v := SynchronizationScheduleStateVActive
+ return &v
+}
+
+// SynchronizationScheduleStatePDisabled returns a pointer to SynchronizationScheduleStateVDisabled
+func SynchronizationScheduleStatePDisabled() *SynchronizationScheduleState {
+ v := SynchronizationScheduleStateVDisabled
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationSchemaAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationSchemaAction.go
new file mode 100644
index 00000000..2023d320
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationSchemaAction.go
@@ -0,0 +1,42 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SynchronizationSchemaParseExpressionRequestParameter undocumented
+type SynchronizationSchemaParseExpressionRequestParameter struct {
+ // Expression undocumented
+ Expression *string `json:"expression,omitempty"`
+ // TestInputObject undocumented
+ TestInputObject *ExpressionInputObject `json:"testInputObject,omitempty"`
+ // TargetAttributeDefinition undocumented
+ TargetAttributeDefinition *AttributeDefinition `json:"targetAttributeDefinition,omitempty"`
+}
+
+//
+type SynchronizationSchemaParseExpressionRequestBuilder struct{ BaseRequestBuilder }
+
+// ParseExpression action undocumented
+func (b *SynchronizationSchemaRequestBuilder) ParseExpression(reqObj *SynchronizationSchemaParseExpressionRequestParameter) *SynchronizationSchemaParseExpressionRequestBuilder {
+ bb := &SynchronizationSchemaParseExpressionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/parseExpression"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SynchronizationSchemaParseExpressionRequest struct{ BaseRequest }
+
+//
+func (b *SynchronizationSchemaParseExpressionRequestBuilder) Request() *SynchronizationSchemaParseExpressionRequest {
+ return &SynchronizationSchemaParseExpressionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SynchronizationSchemaParseExpressionRequest) Post(ctx context.Context) (resObj *ParseExpressionResponse, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationSchemaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationSchemaModel.go
new file mode 100644
index 00000000..181e87b5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationSchemaModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationSchema undocumented
+type SynchronizationSchema struct {
+ // Entity is the base model of SynchronizationSchema
+ Entity
+ // ProvisioningTaskIdentifier undocumented
+ ProvisioningTaskIdentifier *string `json:"provisioningTaskIdentifier,omitempty"`
+ // SynchronizationRules undocumented
+ SynchronizationRules []SynchronizationRule `json:"synchronizationRules,omitempty"`
+ // Version undocumented
+ Version *string `json:"version,omitempty"`
+ // Directories undocumented
+ Directories []DirectoryDefinition `json:"directories,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationSchemaRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationSchemaRequest.go
new file mode 100644
index 00000000..303a9ede
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationSchemaRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SynchronizationSchemaRequestBuilder is request builder for SynchronizationSchema
+type SynchronizationSchemaRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SynchronizationSchemaRequest
+func (b *SynchronizationSchemaRequestBuilder) Request() *SynchronizationSchemaRequest {
+ return &SynchronizationSchemaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SynchronizationSchemaRequest is request for SynchronizationSchema
+type SynchronizationSchemaRequest struct{ BaseRequest }
+
+// Get performs GET request for SynchronizationSchema
+func (r *SynchronizationSchemaRequest) Get(ctx context.Context) (resObj *SynchronizationSchema, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SynchronizationSchema
+func (r *SynchronizationSchemaRequest) Update(ctx context.Context, reqObj *SynchronizationSchema) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SynchronizationSchema
+func (r *SynchronizationSchemaRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Directories returns request builder for DirectoryDefinition collection
+func (b *SynchronizationSchemaRequestBuilder) Directories() *SynchronizationSchemaDirectoriesCollectionRequestBuilder {
+ bb := &SynchronizationSchemaDirectoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directories"
+ return bb
+}
+
+// SynchronizationSchemaDirectoriesCollectionRequestBuilder is request builder for DirectoryDefinition collection
+type SynchronizationSchemaDirectoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryDefinition collection
+func (b *SynchronizationSchemaDirectoriesCollectionRequestBuilder) Request() *SynchronizationSchemaDirectoriesCollectionRequest {
+ return &SynchronizationSchemaDirectoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryDefinition item
+func (b *SynchronizationSchemaDirectoriesCollectionRequestBuilder) ID(id string) *DirectoryDefinitionRequestBuilder {
+ bb := &DirectoryDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SynchronizationSchemaDirectoriesCollectionRequest is request for DirectoryDefinition collection
+type SynchronizationSchemaDirectoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryDefinition collection
+func (r *SynchronizationSchemaDirectoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryDefinition collection
+func (r *SynchronizationSchemaDirectoriesCollectionRequest) Get(ctx context.Context) ([]DirectoryDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryDefinition collection
+func (r *SynchronizationSchemaDirectoriesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryDefinition) (resObj *DirectoryDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationSecretEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationSecretEnum.go
new file mode 100644
index 00000000..5ce97939
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationSecretEnum.go
@@ -0,0 +1,305 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationSecret undocumented
+type SynchronizationSecret int
+
+const (
+ // SynchronizationSecretVNone undocumented
+ SynchronizationSecretVNone SynchronizationSecret = 0
+ // SynchronizationSecretVUserName undocumented
+ SynchronizationSecretVUserName SynchronizationSecret = 1
+ // SynchronizationSecretVPassword undocumented
+ SynchronizationSecretVPassword SynchronizationSecret = 2
+ // SynchronizationSecretVSecretToken undocumented
+ SynchronizationSecretVSecretToken SynchronizationSecret = 3
+ // SynchronizationSecretVAppKey undocumented
+ SynchronizationSecretVAppKey SynchronizationSecret = 4
+ // SynchronizationSecretVBaseAddress undocumented
+ SynchronizationSecretVBaseAddress SynchronizationSecret = 5
+ // SynchronizationSecretVClientIdentifier undocumented
+ SynchronizationSecretVClientIdentifier SynchronizationSecret = 6
+ // SynchronizationSecretVClientSecret undocumented
+ SynchronizationSecretVClientSecret SynchronizationSecret = 7
+ // SynchronizationSecretVSingleSignOnType undocumented
+ SynchronizationSecretVSingleSignOnType SynchronizationSecret = 11
+ // SynchronizationSecretVSandbox undocumented
+ SynchronizationSecretVSandbox SynchronizationSecret = 12
+ // SynchronizationSecretVURL undocumented
+ SynchronizationSecretVURL SynchronizationSecret = 13
+ // SynchronizationSecretVDomain undocumented
+ SynchronizationSecretVDomain SynchronizationSecret = 14
+ // SynchronizationSecretVConsumerKey undocumented
+ SynchronizationSecretVConsumerKey SynchronizationSecret = 15
+ // SynchronizationSecretVConsumerSecret undocumented
+ SynchronizationSecretVConsumerSecret SynchronizationSecret = 16
+ // SynchronizationSecretVTokenKey undocumented
+ SynchronizationSecretVTokenKey SynchronizationSecret = 17
+ // SynchronizationSecretVTokenExpiration undocumented
+ SynchronizationSecretVTokenExpiration SynchronizationSecret = 18
+ // SynchronizationSecretVOauth2AccessToken undocumented
+ SynchronizationSecretVOauth2AccessToken SynchronizationSecret = 19
+ // SynchronizationSecretVOauth2AccessTokenCreationTime undocumented
+ SynchronizationSecretVOauth2AccessTokenCreationTime SynchronizationSecret = 20
+ // SynchronizationSecretVOauth2RefreshToken undocumented
+ SynchronizationSecretVOauth2RefreshToken SynchronizationSecret = 21
+ // SynchronizationSecretVSyncAll undocumented
+ SynchronizationSecretVSyncAll SynchronizationSecret = 22
+ // SynchronizationSecretVInstanceName undocumented
+ SynchronizationSecretVInstanceName SynchronizationSecret = 24
+ // SynchronizationSecretVOauth2ClientID undocumented
+ SynchronizationSecretVOauth2ClientID SynchronizationSecret = 27
+ // SynchronizationSecretVOauth2ClientSecret undocumented
+ SynchronizationSecretVOauth2ClientSecret SynchronizationSecret = 28
+ // SynchronizationSecretVCompanyID undocumented
+ SynchronizationSecretVCompanyID SynchronizationSecret = 29
+ // SynchronizationSecretVUpdateKeyOnSoftDelete undocumented
+ SynchronizationSecretVUpdateKeyOnSoftDelete SynchronizationSecret = 30
+ // SynchronizationSecretVSynchronizationSchedule undocumented
+ SynchronizationSecretVSynchronizationSchedule SynchronizationSecret = 33
+ // SynchronizationSecretVSystemOfRecord undocumented
+ SynchronizationSecretVSystemOfRecord SynchronizationSecret = 34
+ // SynchronizationSecretVSandboxName undocumented
+ SynchronizationSecretVSandboxName SynchronizationSecret = 35
+ // SynchronizationSecretVEnforceDomain undocumented
+ SynchronizationSecretVEnforceDomain SynchronizationSecret = 36
+ // SynchronizationSecretVSyncNotificationSettings undocumented
+ SynchronizationSecretVSyncNotificationSettings SynchronizationSecret = 37
+ // SynchronizationSecretVServer undocumented
+ SynchronizationSecretVServer SynchronizationSecret = 70
+ // SynchronizationSecretVPerformInboundEntitlementGrants undocumented
+ SynchronizationSecretVPerformInboundEntitlementGrants SynchronizationSecret = 100
+ // SynchronizationSecretVHardDeletesEnabled undocumented
+ SynchronizationSecretVHardDeletesEnabled SynchronizationSecret = 101
+ // SynchronizationSecretVSyncAgentCompatibilityKey undocumented
+ SynchronizationSecretVSyncAgentCompatibilityKey SynchronizationSecret = 102
+ // SynchronizationSecretVSyncAgentADContainer undocumented
+ SynchronizationSecretVSyncAgentADContainer SynchronizationSecret = 103
+ // SynchronizationSecretVValidateDomain undocumented
+ SynchronizationSecretVValidateDomain SynchronizationSecret = 206
+ // SynchronizationSecretVTestReferences undocumented
+ SynchronizationSecretVTestReferences SynchronizationSecret = 207
+)
+
+// SynchronizationSecretPNone returns a pointer to SynchronizationSecretVNone
+func SynchronizationSecretPNone() *SynchronizationSecret {
+ v := SynchronizationSecretVNone
+ return &v
+}
+
+// SynchronizationSecretPUserName returns a pointer to SynchronizationSecretVUserName
+func SynchronizationSecretPUserName() *SynchronizationSecret {
+ v := SynchronizationSecretVUserName
+ return &v
+}
+
+// SynchronizationSecretPPassword returns a pointer to SynchronizationSecretVPassword
+func SynchronizationSecretPPassword() *SynchronizationSecret {
+ v := SynchronizationSecretVPassword
+ return &v
+}
+
+// SynchronizationSecretPSecretToken returns a pointer to SynchronizationSecretVSecretToken
+func SynchronizationSecretPSecretToken() *SynchronizationSecret {
+ v := SynchronizationSecretVSecretToken
+ return &v
+}
+
+// SynchronizationSecretPAppKey returns a pointer to SynchronizationSecretVAppKey
+func SynchronizationSecretPAppKey() *SynchronizationSecret {
+ v := SynchronizationSecretVAppKey
+ return &v
+}
+
+// SynchronizationSecretPBaseAddress returns a pointer to SynchronizationSecretVBaseAddress
+func SynchronizationSecretPBaseAddress() *SynchronizationSecret {
+ v := SynchronizationSecretVBaseAddress
+ return &v
+}
+
+// SynchronizationSecretPClientIdentifier returns a pointer to SynchronizationSecretVClientIdentifier
+func SynchronizationSecretPClientIdentifier() *SynchronizationSecret {
+ v := SynchronizationSecretVClientIdentifier
+ return &v
+}
+
+// SynchronizationSecretPClientSecret returns a pointer to SynchronizationSecretVClientSecret
+func SynchronizationSecretPClientSecret() *SynchronizationSecret {
+ v := SynchronizationSecretVClientSecret
+ return &v
+}
+
+// SynchronizationSecretPSingleSignOnType returns a pointer to SynchronizationSecretVSingleSignOnType
+func SynchronizationSecretPSingleSignOnType() *SynchronizationSecret {
+ v := SynchronizationSecretVSingleSignOnType
+ return &v
+}
+
+// SynchronizationSecretPSandbox returns a pointer to SynchronizationSecretVSandbox
+func SynchronizationSecretPSandbox() *SynchronizationSecret {
+ v := SynchronizationSecretVSandbox
+ return &v
+}
+
+// SynchronizationSecretPURL returns a pointer to SynchronizationSecretVURL
+func SynchronizationSecretPURL() *SynchronizationSecret {
+ v := SynchronizationSecretVURL
+ return &v
+}
+
+// SynchronizationSecretPDomain returns a pointer to SynchronizationSecretVDomain
+func SynchronizationSecretPDomain() *SynchronizationSecret {
+ v := SynchronizationSecretVDomain
+ return &v
+}
+
+// SynchronizationSecretPConsumerKey returns a pointer to SynchronizationSecretVConsumerKey
+func SynchronizationSecretPConsumerKey() *SynchronizationSecret {
+ v := SynchronizationSecretVConsumerKey
+ return &v
+}
+
+// SynchronizationSecretPConsumerSecret returns a pointer to SynchronizationSecretVConsumerSecret
+func SynchronizationSecretPConsumerSecret() *SynchronizationSecret {
+ v := SynchronizationSecretVConsumerSecret
+ return &v
+}
+
+// SynchronizationSecretPTokenKey returns a pointer to SynchronizationSecretVTokenKey
+func SynchronizationSecretPTokenKey() *SynchronizationSecret {
+ v := SynchronizationSecretVTokenKey
+ return &v
+}
+
+// SynchronizationSecretPTokenExpiration returns a pointer to SynchronizationSecretVTokenExpiration
+func SynchronizationSecretPTokenExpiration() *SynchronizationSecret {
+ v := SynchronizationSecretVTokenExpiration
+ return &v
+}
+
+// SynchronizationSecretPOauth2AccessToken returns a pointer to SynchronizationSecretVOauth2AccessToken
+func SynchronizationSecretPOauth2AccessToken() *SynchronizationSecret {
+ v := SynchronizationSecretVOauth2AccessToken
+ return &v
+}
+
+// SynchronizationSecretPOauth2AccessTokenCreationTime returns a pointer to SynchronizationSecretVOauth2AccessTokenCreationTime
+func SynchronizationSecretPOauth2AccessTokenCreationTime() *SynchronizationSecret {
+ v := SynchronizationSecretVOauth2AccessTokenCreationTime
+ return &v
+}
+
+// SynchronizationSecretPOauth2RefreshToken returns a pointer to SynchronizationSecretVOauth2RefreshToken
+func SynchronizationSecretPOauth2RefreshToken() *SynchronizationSecret {
+ v := SynchronizationSecretVOauth2RefreshToken
+ return &v
+}
+
+// SynchronizationSecretPSyncAll returns a pointer to SynchronizationSecretVSyncAll
+func SynchronizationSecretPSyncAll() *SynchronizationSecret {
+ v := SynchronizationSecretVSyncAll
+ return &v
+}
+
+// SynchronizationSecretPInstanceName returns a pointer to SynchronizationSecretVInstanceName
+func SynchronizationSecretPInstanceName() *SynchronizationSecret {
+ v := SynchronizationSecretVInstanceName
+ return &v
+}
+
+// SynchronizationSecretPOauth2ClientID returns a pointer to SynchronizationSecretVOauth2ClientID
+func SynchronizationSecretPOauth2ClientID() *SynchronizationSecret {
+ v := SynchronizationSecretVOauth2ClientID
+ return &v
+}
+
+// SynchronizationSecretPOauth2ClientSecret returns a pointer to SynchronizationSecretVOauth2ClientSecret
+func SynchronizationSecretPOauth2ClientSecret() *SynchronizationSecret {
+ v := SynchronizationSecretVOauth2ClientSecret
+ return &v
+}
+
+// SynchronizationSecretPCompanyID returns a pointer to SynchronizationSecretVCompanyID
+func SynchronizationSecretPCompanyID() *SynchronizationSecret {
+ v := SynchronizationSecretVCompanyID
+ return &v
+}
+
+// SynchronizationSecretPUpdateKeyOnSoftDelete returns a pointer to SynchronizationSecretVUpdateKeyOnSoftDelete
+func SynchronizationSecretPUpdateKeyOnSoftDelete() *SynchronizationSecret {
+ v := SynchronizationSecretVUpdateKeyOnSoftDelete
+ return &v
+}
+
+// SynchronizationSecretPSynchronizationSchedule returns a pointer to SynchronizationSecretVSynchronizationSchedule
+func SynchronizationSecretPSynchronizationSchedule() *SynchronizationSecret {
+ v := SynchronizationSecretVSynchronizationSchedule
+ return &v
+}
+
+// SynchronizationSecretPSystemOfRecord returns a pointer to SynchronizationSecretVSystemOfRecord
+func SynchronizationSecretPSystemOfRecord() *SynchronizationSecret {
+ v := SynchronizationSecretVSystemOfRecord
+ return &v
+}
+
+// SynchronizationSecretPSandboxName returns a pointer to SynchronizationSecretVSandboxName
+func SynchronizationSecretPSandboxName() *SynchronizationSecret {
+ v := SynchronizationSecretVSandboxName
+ return &v
+}
+
+// SynchronizationSecretPEnforceDomain returns a pointer to SynchronizationSecretVEnforceDomain
+func SynchronizationSecretPEnforceDomain() *SynchronizationSecret {
+ v := SynchronizationSecretVEnforceDomain
+ return &v
+}
+
+// SynchronizationSecretPSyncNotificationSettings returns a pointer to SynchronizationSecretVSyncNotificationSettings
+func SynchronizationSecretPSyncNotificationSettings() *SynchronizationSecret {
+ v := SynchronizationSecretVSyncNotificationSettings
+ return &v
+}
+
+// SynchronizationSecretPServer returns a pointer to SynchronizationSecretVServer
+func SynchronizationSecretPServer() *SynchronizationSecret {
+ v := SynchronizationSecretVServer
+ return &v
+}
+
+// SynchronizationSecretPPerformInboundEntitlementGrants returns a pointer to SynchronizationSecretVPerformInboundEntitlementGrants
+func SynchronizationSecretPPerformInboundEntitlementGrants() *SynchronizationSecret {
+ v := SynchronizationSecretVPerformInboundEntitlementGrants
+ return &v
+}
+
+// SynchronizationSecretPHardDeletesEnabled returns a pointer to SynchronizationSecretVHardDeletesEnabled
+func SynchronizationSecretPHardDeletesEnabled() *SynchronizationSecret {
+ v := SynchronizationSecretVHardDeletesEnabled
+ return &v
+}
+
+// SynchronizationSecretPSyncAgentCompatibilityKey returns a pointer to SynchronizationSecretVSyncAgentCompatibilityKey
+func SynchronizationSecretPSyncAgentCompatibilityKey() *SynchronizationSecret {
+ v := SynchronizationSecretVSyncAgentCompatibilityKey
+ return &v
+}
+
+// SynchronizationSecretPSyncAgentADContainer returns a pointer to SynchronizationSecretVSyncAgentADContainer
+func SynchronizationSecretPSyncAgentADContainer() *SynchronizationSecret {
+ v := SynchronizationSecretVSyncAgentADContainer
+ return &v
+}
+
+// SynchronizationSecretPValidateDomain returns a pointer to SynchronizationSecretVValidateDomain
+func SynchronizationSecretPValidateDomain() *SynchronizationSecret {
+ v := SynchronizationSecretVValidateDomain
+ return &v
+}
+
+// SynchronizationSecretPTestReferences returns a pointer to SynchronizationSecretVTestReferences
+func SynchronizationSecretPTestReferences() *SynchronizationSecret {
+ v := SynchronizationSecretVTestReferences
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationSecretKeyStringValuePairModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationSecretKeyStringValuePairModel.go
new file mode 100644
index 00000000..e20e91c1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationSecretKeyStringValuePairModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationSecretKeyStringValuePair undocumented
+type SynchronizationSecretKeyStringValuePair struct {
+ // Object is the base model of SynchronizationSecretKeyStringValuePair
+ Object
+ // Key undocumented
+ Key *SynchronizationSecret `json:"key,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationStatusCodeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationStatusCodeEnum.go
new file mode 100644
index 00000000..e99bfd22
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationStatusCodeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationStatusCode undocumented
+type SynchronizationStatusCode int
+
+const (
+ // SynchronizationStatusCodeVNotConfigured undocumented
+ SynchronizationStatusCodeVNotConfigured SynchronizationStatusCode = 0
+ // SynchronizationStatusCodeVNotRun undocumented
+ SynchronizationStatusCodeVNotRun SynchronizationStatusCode = 1
+ // SynchronizationStatusCodeVActive undocumented
+ SynchronizationStatusCodeVActive SynchronizationStatusCode = 2
+ // SynchronizationStatusCodeVPaused undocumented
+ SynchronizationStatusCodeVPaused SynchronizationStatusCode = 3
+ // SynchronizationStatusCodeVQuarantine undocumented
+ SynchronizationStatusCodeVQuarantine SynchronizationStatusCode = 4
+)
+
+// SynchronizationStatusCodePNotConfigured returns a pointer to SynchronizationStatusCodeVNotConfigured
+func SynchronizationStatusCodePNotConfigured() *SynchronizationStatusCode {
+ v := SynchronizationStatusCodeVNotConfigured
+ return &v
+}
+
+// SynchronizationStatusCodePNotRun returns a pointer to SynchronizationStatusCodeVNotRun
+func SynchronizationStatusCodePNotRun() *SynchronizationStatusCode {
+ v := SynchronizationStatusCodeVNotRun
+ return &v
+}
+
+// SynchronizationStatusCodePActive returns a pointer to SynchronizationStatusCodeVActive
+func SynchronizationStatusCodePActive() *SynchronizationStatusCode {
+ v := SynchronizationStatusCodeVActive
+ return &v
+}
+
+// SynchronizationStatusCodePPaused returns a pointer to SynchronizationStatusCodeVPaused
+func SynchronizationStatusCodePPaused() *SynchronizationStatusCode {
+ v := SynchronizationStatusCodeVPaused
+ return &v
+}
+
+// SynchronizationStatusCodePQuarantine returns a pointer to SynchronizationStatusCodeVQuarantine
+func SynchronizationStatusCodePQuarantine() *SynchronizationStatusCode {
+ v := SynchronizationStatusCodeVQuarantine
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationStatusModel.go
new file mode 100644
index 00000000..8438dc04
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationStatusModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SynchronizationStatus undocumented
+type SynchronizationStatus struct {
+ // Object is the base model of SynchronizationStatus
+ Object
+ // CountSuccessiveCompleteFailures undocumented
+ CountSuccessiveCompleteFailures *int `json:"countSuccessiveCompleteFailures,omitempty"`
+ // EscrowsPruned undocumented
+ EscrowsPruned *bool `json:"escrowsPruned,omitempty"`
+ // Code undocumented
+ Code *SynchronizationStatusCode `json:"code,omitempty"`
+ // LastExecution undocumented
+ LastExecution *SynchronizationTaskExecution `json:"lastExecution,omitempty"`
+ // LastSuccessfulExecution undocumented
+ LastSuccessfulExecution *SynchronizationTaskExecution `json:"lastSuccessfulExecution,omitempty"`
+ // LastSuccessfulExecutionWithExports undocumented
+ LastSuccessfulExecutionWithExports *SynchronizationTaskExecution `json:"lastSuccessfulExecutionWithExports,omitempty"`
+ // Progress undocumented
+ Progress []SynchronizationProgress `json:"progress,omitempty"`
+ // Quarantine undocumented
+ Quarantine *SynchronizationQuarantine `json:"quarantine,omitempty"`
+ // SteadyStateFirstAchievedTime undocumented
+ SteadyStateFirstAchievedTime *time.Time `json:"steadyStateFirstAchievedTime,omitempty"`
+ // SteadyStateLastAchievedTime undocumented
+ SteadyStateLastAchievedTime *time.Time `json:"steadyStateLastAchievedTime,omitempty"`
+ // SynchronizedEntryCountByType undocumented
+ SynchronizedEntryCountByType []StringKeyLongValuePair `json:"synchronizedEntryCountByType,omitempty"`
+ // TroubleshootingURL undocumented
+ TroubleshootingURL *string `json:"troubleshootingUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationTaskExecutionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationTaskExecutionModel.go
new file mode 100644
index 00000000..6a453e9c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationTaskExecutionModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SynchronizationTaskExecution undocumented
+type SynchronizationTaskExecution struct {
+ // Object is the base model of SynchronizationTaskExecution
+ Object
+ // ActivityIdentifier undocumented
+ ActivityIdentifier *string `json:"activityIdentifier,omitempty"`
+ // CountEntitled undocumented
+ CountEntitled *int `json:"countEntitled,omitempty"`
+ // CountEntitledForProvisioning undocumented
+ CountEntitledForProvisioning *int `json:"countEntitledForProvisioning,omitempty"`
+ // CountEscrowed undocumented
+ CountEscrowed *int `json:"countEscrowed,omitempty"`
+ // CountEscrowedRaw undocumented
+ CountEscrowedRaw *int `json:"countEscrowedRaw,omitempty"`
+ // CountExported undocumented
+ CountExported *int `json:"countExported,omitempty"`
+ // CountExports undocumented
+ CountExports *int `json:"countExports,omitempty"`
+ // CountImported undocumented
+ CountImported *int `json:"countImported,omitempty"`
+ // CountImportedDeltas undocumented
+ CountImportedDeltas *int `json:"countImportedDeltas,omitempty"`
+ // CountImportedReferenceDeltas undocumented
+ CountImportedReferenceDeltas *int `json:"countImportedReferenceDeltas,omitempty"`
+ // State undocumented
+ State *SynchronizationTaskExecutionResult `json:"state,omitempty"`
+ // Error undocumented
+ Error *SynchronizationError `json:"error,omitempty"`
+ // TimeBegan undocumented
+ TimeBegan *time.Time `json:"timeBegan,omitempty"`
+ // TimeEnded undocumented
+ TimeEnded *time.Time `json:"timeEnded,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationTaskExecutionResultEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationTaskExecutionResultEnum.go
new file mode 100644
index 00000000..c1f8d40b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationTaskExecutionResultEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationTaskExecutionResult undocumented
+type SynchronizationTaskExecutionResult int
+
+const (
+ // SynchronizationTaskExecutionResultVSucceeded undocumented
+ SynchronizationTaskExecutionResultVSucceeded SynchronizationTaskExecutionResult = 0
+ // SynchronizationTaskExecutionResultVFailed undocumented
+ SynchronizationTaskExecutionResultVFailed SynchronizationTaskExecutionResult = 1
+ // SynchronizationTaskExecutionResultVEntryLevelErrors undocumented
+ SynchronizationTaskExecutionResultVEntryLevelErrors SynchronizationTaskExecutionResult = 2
+)
+
+// SynchronizationTaskExecutionResultPSucceeded returns a pointer to SynchronizationTaskExecutionResultVSucceeded
+func SynchronizationTaskExecutionResultPSucceeded() *SynchronizationTaskExecutionResult {
+ v := SynchronizationTaskExecutionResultVSucceeded
+ return &v
+}
+
+// SynchronizationTaskExecutionResultPFailed returns a pointer to SynchronizationTaskExecutionResultVFailed
+func SynchronizationTaskExecutionResultPFailed() *SynchronizationTaskExecutionResult {
+ v := SynchronizationTaskExecutionResultVFailed
+ return &v
+}
+
+// SynchronizationTaskExecutionResultPEntryLevelErrors returns a pointer to SynchronizationTaskExecutionResultVEntryLevelErrors
+func SynchronizationTaskExecutionResultPEntryLevelErrors() *SynchronizationTaskExecutionResult {
+ v := SynchronizationTaskExecutionResultVEntryLevelErrors
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationTemplateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationTemplateModel.go
new file mode 100644
index 00000000..2455343b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationTemplateModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationTemplate undocumented
+type SynchronizationTemplate struct {
+ // Entity is the base model of SynchronizationTemplate
+ Entity
+ // ApplicationID undocumented
+ ApplicationID *UUID `json:"applicationId,omitempty"`
+ // Default undocumented
+ Default *bool `json:"default,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Discoverable undocumented
+ Discoverable *bool `json:"discoverable,omitempty"`
+ // FactoryTag undocumented
+ FactoryTag *string `json:"factoryTag,omitempty"`
+ // Metadata undocumented
+ Metadata []MetadataEntry `json:"metadata,omitempty"`
+ // Schema undocumented
+ Schema *SynchronizationSchema `json:"schema,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationTemplateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationTemplateRequest.go
new file mode 100644
index 00000000..768685bc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SynchronizationTemplateRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SynchronizationTemplateRequestBuilder is request builder for SynchronizationTemplate
+type SynchronizationTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SynchronizationTemplateRequest
+func (b *SynchronizationTemplateRequestBuilder) Request() *SynchronizationTemplateRequest {
+ return &SynchronizationTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SynchronizationTemplateRequest is request for SynchronizationTemplate
+type SynchronizationTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for SynchronizationTemplate
+func (r *SynchronizationTemplateRequest) Get(ctx context.Context) (resObj *SynchronizationTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SynchronizationTemplate
+func (r *SynchronizationTemplateRequest) Update(ctx context.Context, reqObj *SynchronizationTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SynchronizationTemplate
+func (r *SynchronizationTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Schema is navigation property
+func (b *SynchronizationTemplateRequestBuilder) Schema() *SynchronizationSchemaRequestBuilder {
+ bb := &SynchronizationSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schema"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/SystemFacetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/SystemFacetModel.go
new file mode 100644
index 00000000..0b0de01c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/SystemFacetModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SystemFacet undocumented
+type SystemFacet struct {
+ // Object is the base model of SystemFacet
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TargetPolicyEndpointsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TargetPolicyEndpointsModel.go
new file mode 100644
index 00000000..8b29b97f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TargetPolicyEndpointsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TargetPolicyEndpoints undocumented
+type TargetPolicyEndpoints struct {
+ // Object is the base model of TargetPolicyEndpoints
+ Object
+ // PlatformTypes undocumented
+ PlatformTypes []string `json:"platformTypes,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TargetResourceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TargetResourceModel.go
new file mode 100644
index 00000000..3e9b15d0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TargetResourceModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TargetResource undocumented
+type TargetResource struct {
+ // Object is the base model of TargetResource
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // GroupType undocumented
+ GroupType *GroupType `json:"groupType,omitempty"`
+ // ModifiedProperties undocumented
+ ModifiedProperties []ModifiedProperty `json:"modifiedProperties,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppConfigurationAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppConfigurationAction.go
new file mode 100644
index 00000000..7b81167d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppConfigurationAction.go
@@ -0,0 +1,164 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestParameter undocumented
+type TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// TargetedManagedAppConfigurationAssignRequestParameter undocumented
+type TargetedManagedAppConfigurationAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"`
+}
+
+// TargetedManagedAppConfigurationTargetAppsRequestParameter undocumented
+type TargetedManagedAppConfigurationTargetAppsRequestParameter struct {
+ // Apps undocumented
+ Apps []ManagedMobileApp `json:"apps,omitempty"`
+}
+
+//
+type TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestParameter) *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestBuilder {
+ bb := &TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TargetedManagedAppConfigurationCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestBuilder) Request() *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequest {
+ return &TargetedManagedAppConfigurationCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequest) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type TargetedManagedAppConfigurationAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *TargetedManagedAppConfigurationRequestBuilder) Assign(reqObj *TargetedManagedAppConfigurationAssignRequestParameter) *TargetedManagedAppConfigurationAssignRequestBuilder {
+ bb := &TargetedManagedAppConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TargetedManagedAppConfigurationAssignRequest struct{ BaseRequest }
+
+//
+func (b *TargetedManagedAppConfigurationAssignRequestBuilder) Request() *TargetedManagedAppConfigurationAssignRequest {
+ return &TargetedManagedAppConfigurationAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TargetedManagedAppConfigurationAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type TargetedManagedAppConfigurationTargetAppsRequestBuilder struct{ BaseRequestBuilder }
+
+// TargetApps action undocumented
+func (b *TargetedManagedAppConfigurationRequestBuilder) TargetApps(reqObj *TargetedManagedAppConfigurationTargetAppsRequestParameter) *TargetedManagedAppConfigurationTargetAppsRequestBuilder {
+ bb := &TargetedManagedAppConfigurationTargetAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/targetApps"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TargetedManagedAppConfigurationTargetAppsRequest struct{ BaseRequest }
+
+//
+func (b *TargetedManagedAppConfigurationTargetAppsRequestBuilder) Request() *TargetedManagedAppConfigurationTargetAppsRequest {
+ return &TargetedManagedAppConfigurationTargetAppsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TargetedManagedAppConfigurationTargetAppsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppConfigurationModel.go
new file mode 100644
index 00000000..404acfd7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppConfigurationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TargetedManagedAppConfiguration Configuration used to deliver a set of custom settings as-is to all users in the targeted security group
+type TargetedManagedAppConfiguration struct {
+ // ManagedAppConfiguration is the base model of TargetedManagedAppConfiguration
+ ManagedAppConfiguration
+ // DeployedAppCount Count of apps to which the current policy is deployed.
+ DeployedAppCount *int `json:"deployedAppCount,omitempty"`
+ // IsAssigned Indicates if the policy is deployed to any inclusion groups or not.
+ IsAssigned *bool `json:"isAssigned,omitempty"`
+ // Apps undocumented
+ Apps []ManagedMobileApp `json:"apps,omitempty"`
+ // DeploymentSummary undocumented
+ DeploymentSummary *ManagedAppPolicyDeploymentSummary `json:"deploymentSummary,omitempty"`
+ // Assignments undocumented
+ Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppConfigurationPolicySetItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppConfigurationPolicySetItemModel.go
new file mode 100644
index 00000000..a0d57d32
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppConfigurationPolicySetItemModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TargetedManagedAppConfigurationPolicySetItem A class containing the properties used for Targeted managed app configuration PolicySetItem.
+type TargetedManagedAppConfigurationPolicySetItem struct {
+ // PolicySetItem is the base model of TargetedManagedAppConfigurationPolicySetItem
+ PolicySetItem
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppConfigurationRequest.go
new file mode 100644
index 00000000..fe832827
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppConfigurationRequest.go
@@ -0,0 +1,240 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// TargetedManagedAppConfigurationRequestBuilder is request builder for TargetedManagedAppConfiguration
+type TargetedManagedAppConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TargetedManagedAppConfigurationRequest
+func (b *TargetedManagedAppConfigurationRequestBuilder) Request() *TargetedManagedAppConfigurationRequest {
+ return &TargetedManagedAppConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TargetedManagedAppConfigurationRequest is request for TargetedManagedAppConfiguration
+type TargetedManagedAppConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for TargetedManagedAppConfiguration
+func (r *TargetedManagedAppConfigurationRequest) Get(ctx context.Context) (resObj *TargetedManagedAppConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TargetedManagedAppConfiguration
+func (r *TargetedManagedAppConfigurationRequest) Update(ctx context.Context, reqObj *TargetedManagedAppConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TargetedManagedAppConfiguration
+func (r *TargetedManagedAppConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Apps returns request builder for ManagedMobileApp collection
+func (b *TargetedManagedAppConfigurationRequestBuilder) Apps() *TargetedManagedAppConfigurationAppsCollectionRequestBuilder {
+ bb := &TargetedManagedAppConfigurationAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/apps"
+ return bb
+}
+
+// TargetedManagedAppConfigurationAppsCollectionRequestBuilder is request builder for ManagedMobileApp collection
+type TargetedManagedAppConfigurationAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedMobileApp collection
+func (b *TargetedManagedAppConfigurationAppsCollectionRequestBuilder) Request() *TargetedManagedAppConfigurationAppsCollectionRequest {
+ return &TargetedManagedAppConfigurationAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedMobileApp item
+func (b *TargetedManagedAppConfigurationAppsCollectionRequestBuilder) ID(id string) *ManagedMobileAppRequestBuilder {
+ bb := &ManagedMobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TargetedManagedAppConfigurationAppsCollectionRequest is request for ManagedMobileApp collection
+type TargetedManagedAppConfigurationAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedMobileApp collection
+func (r *TargetedManagedAppConfigurationAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedMobileApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedMobileApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedMobileApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedMobileApp collection
+func (r *TargetedManagedAppConfigurationAppsCollectionRequest) Get(ctx context.Context) ([]ManagedMobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedMobileApp collection
+func (r *TargetedManagedAppConfigurationAppsCollectionRequest) Add(ctx context.Context, reqObj *ManagedMobileApp) (resObj *ManagedMobileApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Assignments returns request builder for TargetedManagedAppPolicyAssignment collection
+func (b *TargetedManagedAppConfigurationRequestBuilder) Assignments() *TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder {
+ bb := &TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder is request builder for TargetedManagedAppPolicyAssignment collection
+type TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TargetedManagedAppPolicyAssignment collection
+func (b *TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder) Request() *TargetedManagedAppConfigurationAssignmentsCollectionRequest {
+ return &TargetedManagedAppConfigurationAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TargetedManagedAppPolicyAssignment item
+func (b *TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *TargetedManagedAppPolicyAssignmentRequestBuilder {
+ bb := &TargetedManagedAppPolicyAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TargetedManagedAppConfigurationAssignmentsCollectionRequest is request for TargetedManagedAppPolicyAssignment collection
+type TargetedManagedAppConfigurationAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TargetedManagedAppPolicyAssignment collection
+func (r *TargetedManagedAppConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TargetedManagedAppPolicyAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TargetedManagedAppPolicyAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TargetedManagedAppPolicyAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TargetedManagedAppPolicyAssignment collection
+func (r *TargetedManagedAppConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]TargetedManagedAppPolicyAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TargetedManagedAppPolicyAssignment collection
+func (r *TargetedManagedAppConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *TargetedManagedAppPolicyAssignment) (resObj *TargetedManagedAppPolicyAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeploymentSummary is navigation property
+func (b *TargetedManagedAppConfigurationRequestBuilder) DeploymentSummary() *ManagedAppPolicyDeploymentSummaryRequestBuilder {
+ bb := &ManagedAppPolicyDeploymentSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deploymentSummary"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppPolicyAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppPolicyAssignmentModel.go
new file mode 100644
index 00000000..7b355662
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppPolicyAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TargetedManagedAppPolicyAssignment The type for deployment of groups or apps.
+type TargetedManagedAppPolicyAssignment struct {
+ // Entity is the base model of TargetedManagedAppPolicyAssignment
+ Entity
+ // Target Identifier for deployment to a group or app
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+ // Source Type of resource used for deployment to a group, direct or parcel/policySet
+ Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"`
+ // SourceID Identifier for resource used for deployment to a group
+ SourceID *string `json:"sourceId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppPolicyAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppPolicyAssignmentRequest.go
new file mode 100644
index 00000000..6f7ccb91
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppPolicyAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TargetedManagedAppPolicyAssignmentRequestBuilder is request builder for TargetedManagedAppPolicyAssignment
+type TargetedManagedAppPolicyAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TargetedManagedAppPolicyAssignmentRequest
+func (b *TargetedManagedAppPolicyAssignmentRequestBuilder) Request() *TargetedManagedAppPolicyAssignmentRequest {
+ return &TargetedManagedAppPolicyAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TargetedManagedAppPolicyAssignmentRequest is request for TargetedManagedAppPolicyAssignment
+type TargetedManagedAppPolicyAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for TargetedManagedAppPolicyAssignment
+func (r *TargetedManagedAppPolicyAssignmentRequest) Get(ctx context.Context) (resObj *TargetedManagedAppPolicyAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TargetedManagedAppPolicyAssignment
+func (r *TargetedManagedAppPolicyAssignmentRequest) Update(ctx context.Context, reqObj *TargetedManagedAppPolicyAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TargetedManagedAppPolicyAssignment
+func (r *TargetedManagedAppPolicyAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppProtectionAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppProtectionAction.go
new file mode 100644
index 00000000..70dc8a1b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppProtectionAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TargetedManagedAppProtectionAssignRequestParameter undocumented
+type TargetedManagedAppProtectionAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"`
+}
+
+//
+type TargetedManagedAppProtectionAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *TargetedManagedAppProtectionRequestBuilder) Assign(reqObj *TargetedManagedAppProtectionAssignRequestParameter) *TargetedManagedAppProtectionAssignRequestBuilder {
+ bb := &TargetedManagedAppProtectionAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TargetedManagedAppProtectionAssignRequest struct{ BaseRequest }
+
+//
+func (b *TargetedManagedAppProtectionAssignRequestBuilder) Request() *TargetedManagedAppProtectionAssignRequest {
+ return &TargetedManagedAppProtectionAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TargetedManagedAppProtectionAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppProtectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppProtectionModel.go
new file mode 100644
index 00000000..15ed5d6b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppProtectionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TargetedManagedAppProtection Policy used to configure detailed management settings targeted to specific security groups
+type TargetedManagedAppProtection struct {
+ // ManagedAppProtection is the base model of TargetedManagedAppProtection
+ ManagedAppProtection
+ // IsAssigned Indicates if the policy is deployed to any inclusion groups or not.
+ IsAssigned *bool `json:"isAssigned,omitempty"`
+ // TargetedAppManagementLevels The intended app management levels for this policy
+ TargetedAppManagementLevels *AppManagementLevel `json:"targetedAppManagementLevels,omitempty"`
+ // Assignments undocumented
+ Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppProtectionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppProtectionRequest.go
new file mode 100644
index 00000000..fdc2574c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TargetedManagedAppProtectionRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// TargetedManagedAppProtectionRequestBuilder is request builder for TargetedManagedAppProtection
+type TargetedManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TargetedManagedAppProtectionRequest
+func (b *TargetedManagedAppProtectionRequestBuilder) Request() *TargetedManagedAppProtectionRequest {
+ return &TargetedManagedAppProtectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TargetedManagedAppProtectionRequest is request for TargetedManagedAppProtection
+type TargetedManagedAppProtectionRequest struct{ BaseRequest }
+
+// Get performs GET request for TargetedManagedAppProtection
+func (r *TargetedManagedAppProtectionRequest) Get(ctx context.Context) (resObj *TargetedManagedAppProtection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TargetedManagedAppProtection
+func (r *TargetedManagedAppProtectionRequest) Update(ctx context.Context, reqObj *TargetedManagedAppProtection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TargetedManagedAppProtection
+func (r *TargetedManagedAppProtectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for TargetedManagedAppPolicyAssignment collection
+func (b *TargetedManagedAppProtectionRequestBuilder) Assignments() *TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder {
+ bb := &TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder is request builder for TargetedManagedAppPolicyAssignment collection
+type TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TargetedManagedAppPolicyAssignment collection
+func (b *TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder) Request() *TargetedManagedAppProtectionAssignmentsCollectionRequest {
+ return &TargetedManagedAppProtectionAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TargetedManagedAppPolicyAssignment item
+func (b *TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder) ID(id string) *TargetedManagedAppPolicyAssignmentRequestBuilder {
+ bb := &TargetedManagedAppPolicyAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TargetedManagedAppProtectionAssignmentsCollectionRequest is request for TargetedManagedAppPolicyAssignment collection
+type TargetedManagedAppProtectionAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TargetedManagedAppPolicyAssignment collection
+func (r *TargetedManagedAppProtectionAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TargetedManagedAppPolicyAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TargetedManagedAppPolicyAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TargetedManagedAppPolicyAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TargetedManagedAppPolicyAssignment collection
+func (r *TargetedManagedAppProtectionAssignmentsCollectionRequest) Get(ctx context.Context) ([]TargetedManagedAppPolicyAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TargetedManagedAppPolicyAssignment collection
+func (r *TargetedManagedAppProtectionAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *TargetedManagedAppPolicyAssignment) (resObj *TargetedManagedAppPolicyAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TaskStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/TaskStatusEnum.go
new file mode 100644
index 00000000..9bf968be
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TaskStatusEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TaskStatus undocumented
+type TaskStatus int
+
+const (
+ // TaskStatusVNotStarted undocumented
+ TaskStatusVNotStarted TaskStatus = 0
+ // TaskStatusVInProgress undocumented
+ TaskStatusVInProgress TaskStatus = 1
+ // TaskStatusVCompleted undocumented
+ TaskStatusVCompleted TaskStatus = 2
+ // TaskStatusVWaitingOnOthers undocumented
+ TaskStatusVWaitingOnOthers TaskStatus = 3
+ // TaskStatusVDeferred undocumented
+ TaskStatusVDeferred TaskStatus = 4
+)
+
+// TaskStatusPNotStarted returns a pointer to TaskStatusVNotStarted
+func TaskStatusPNotStarted() *TaskStatus {
+ v := TaskStatusVNotStarted
+ return &v
+}
+
+// TaskStatusPInProgress returns a pointer to TaskStatusVInProgress
+func TaskStatusPInProgress() *TaskStatus {
+ v := TaskStatusVInProgress
+ return &v
+}
+
+// TaskStatusPCompleted returns a pointer to TaskStatusVCompleted
+func TaskStatusPCompleted() *TaskStatus {
+ v := TaskStatusVCompleted
+ return &v
+}
+
+// TaskStatusPWaitingOnOthers returns a pointer to TaskStatusVWaitingOnOthers
+func TaskStatusPWaitingOnOthers() *TaskStatus {
+ v := TaskStatusVWaitingOnOthers
+ return &v
+}
+
+// TaskStatusPDeferred returns a pointer to TaskStatusVDeferred
+func TaskStatusPDeferred() *TaskStatus {
+ v := TaskStatusVDeferred
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TaxAreaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TaxAreaModel.go
new file mode 100644
index 00000000..b9ba71bf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TaxAreaModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TaxArea undocumented
+type TaxArea struct {
+ // Entity is the base model of TaxArea
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // TaxType undocumented
+ TaxType *string `json:"taxType,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TaxAreaRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TaxAreaRequest.go
new file mode 100644
index 00000000..7b1d7e7d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TaxAreaRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TaxAreaRequestBuilder is request builder for TaxArea
+type TaxAreaRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TaxAreaRequest
+func (b *TaxAreaRequestBuilder) Request() *TaxAreaRequest {
+ return &TaxAreaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TaxAreaRequest is request for TaxArea
+type TaxAreaRequest struct{ BaseRequest }
+
+// Get performs GET request for TaxArea
+func (r *TaxAreaRequest) Get(ctx context.Context) (resObj *TaxArea, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TaxArea
+func (r *TaxAreaRequest) Update(ctx context.Context, reqObj *TaxArea) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TaxArea
+func (r *TaxAreaRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TaxGroupModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TaxGroupModel.go
new file mode 100644
index 00000000..c10642df
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TaxGroupModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TaxGroup undocumented
+type TaxGroup struct {
+ // Entity is the base model of TaxGroup
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // TaxType undocumented
+ TaxType *string `json:"taxType,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TaxGroupRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TaxGroupRequest.go
new file mode 100644
index 00000000..4564f59c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TaxGroupRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TaxGroupRequestBuilder is request builder for TaxGroup
+type TaxGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TaxGroupRequest
+func (b *TaxGroupRequestBuilder) Request() *TaxGroupRequest {
+ return &TaxGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TaxGroupRequest is request for TaxGroup
+type TaxGroupRequest struct{ BaseRequest }
+
+// Get performs GET request for TaxGroup
+func (r *TaxGroupRequest) Get(ctx context.Context) (resObj *TaxGroup, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TaxGroup
+func (r *TaxGroupRequest) Update(ctx context.Context, reqObj *TaxGroup) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TaxGroup
+func (r *TaxGroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamAction.go
new file mode 100644
index 00000000..88e9862e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamAction.go
@@ -0,0 +1,109 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TeamCloneRequestParameter undocumented
+type TeamCloneRequestParameter struct {
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // MailNickname undocumented
+ MailNickname *string `json:"mailNickname,omitempty"`
+ // Classification undocumented
+ Classification *string `json:"classification,omitempty"`
+ // Visibility undocumented
+ Visibility *TeamVisibilityType `json:"visibility,omitempty"`
+ // PartsToClone undocumented
+ PartsToClone *ClonableTeamParts `json:"partsToClone,omitempty"`
+}
+
+// TeamArchiveRequestParameter undocumented
+type TeamArchiveRequestParameter struct {
+ // ShouldSetSpoSiteReadOnlyForMembers undocumented
+ ShouldSetSpoSiteReadOnlyForMembers *bool `json:"shouldSetSpoSiteReadOnlyForMembers,omitempty"`
+}
+
+// TeamUnarchiveRequestParameter undocumented
+type TeamUnarchiveRequestParameter struct {
+}
+
+//
+type TeamCloneRequestBuilder struct{ BaseRequestBuilder }
+
+// Clone action undocumented
+func (b *TeamRequestBuilder) Clone(reqObj *TeamCloneRequestParameter) *TeamCloneRequestBuilder {
+ bb := &TeamCloneRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/clone"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TeamCloneRequest struct{ BaseRequest }
+
+//
+func (b *TeamCloneRequestBuilder) Request() *TeamCloneRequest {
+ return &TeamCloneRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TeamCloneRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type TeamArchiveRequestBuilder struct{ BaseRequestBuilder }
+
+// Archive action undocumented
+func (b *TeamRequestBuilder) Archive(reqObj *TeamArchiveRequestParameter) *TeamArchiveRequestBuilder {
+ bb := &TeamArchiveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/archive"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TeamArchiveRequest struct{ BaseRequest }
+
+//
+func (b *TeamArchiveRequestBuilder) Request() *TeamArchiveRequest {
+ return &TeamArchiveRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TeamArchiveRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type TeamUnarchiveRequestBuilder struct{ BaseRequestBuilder }
+
+// Unarchive action undocumented
+func (b *TeamRequestBuilder) Unarchive(reqObj *TeamUnarchiveRequestParameter) *TeamUnarchiveRequestBuilder {
+ bb := &TeamUnarchiveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unarchive"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TeamUnarchiveRequest struct{ BaseRequest }
+
+//
+func (b *TeamUnarchiveRequestBuilder) Request() *TeamUnarchiveRequest {
+ return &TeamUnarchiveRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TeamUnarchiveRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamClassSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamClassSettingsModel.go
new file mode 100644
index 00000000..a603d37a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamClassSettingsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamClassSettings undocumented
+type TeamClassSettings struct {
+ // Object is the base model of TeamClassSettings
+ Object
+ // NotifyGuardiansAboutAssignments undocumented
+ NotifyGuardiansAboutAssignments *bool `json:"notifyGuardiansAboutAssignments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamDiscoverySettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamDiscoverySettingsModel.go
new file mode 100644
index 00000000..913d9a60
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamDiscoverySettingsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamDiscoverySettings undocumented
+type TeamDiscoverySettings struct {
+ // Object is the base model of TeamDiscoverySettings
+ Object
+ // ShowInTeamsSearchAndSuggestions undocumented
+ ShowInTeamsSearchAndSuggestions *bool `json:"showInTeamsSearchAndSuggestions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamFunSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamFunSettingsModel.go
new file mode 100644
index 00000000..6efc8cda
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamFunSettingsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamFunSettings undocumented
+type TeamFunSettings struct {
+ // Object is the base model of TeamFunSettings
+ Object
+ // AllowGiphy undocumented
+ AllowGiphy *bool `json:"allowGiphy,omitempty"`
+ // GiphyContentRating undocumented
+ GiphyContentRating *GiphyRatingType `json:"giphyContentRating,omitempty"`
+ // AllowStickersAndMemes undocumented
+ AllowStickersAndMemes *bool `json:"allowStickersAndMemes,omitempty"`
+ // AllowCustomMemes undocumented
+ AllowCustomMemes *bool `json:"allowCustomMemes,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamGuestSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamGuestSettingsModel.go
new file mode 100644
index 00000000..d343a43c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamGuestSettingsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamGuestSettings undocumented
+type TeamGuestSettings struct {
+ // Object is the base model of TeamGuestSettings
+ Object
+ // AllowCreateUpdateChannels undocumented
+ AllowCreateUpdateChannels *bool `json:"allowCreateUpdateChannels,omitempty"`
+ // AllowDeleteChannels undocumented
+ AllowDeleteChannels *bool `json:"allowDeleteChannels,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamMemberSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamMemberSettingsModel.go
new file mode 100644
index 00000000..843c0b7e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamMemberSettingsModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamMemberSettings undocumented
+type TeamMemberSettings struct {
+ // Object is the base model of TeamMemberSettings
+ Object
+ // AllowCreateUpdateChannels undocumented
+ AllowCreateUpdateChannels *bool `json:"allowCreateUpdateChannels,omitempty"`
+ // AllowCreatePrivateChannels undocumented
+ AllowCreatePrivateChannels *bool `json:"allowCreatePrivateChannels,omitempty"`
+ // AllowDeleteChannels undocumented
+ AllowDeleteChannels *bool `json:"allowDeleteChannels,omitempty"`
+ // AllowAddRemoveApps undocumented
+ AllowAddRemoveApps *bool `json:"allowAddRemoveApps,omitempty"`
+ // AllowCreateUpdateRemoveTabs undocumented
+ AllowCreateUpdateRemoveTabs *bool `json:"allowCreateUpdateRemoveTabs,omitempty"`
+ // AllowCreateUpdateRemoveConnectors undocumented
+ AllowCreateUpdateRemoveConnectors *bool `json:"allowCreateUpdateRemoveConnectors,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamMessagingSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamMessagingSettingsModel.go
new file mode 100644
index 00000000..0adb0b4f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamMessagingSettingsModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamMessagingSettings undocumented
+type TeamMessagingSettings struct {
+ // Object is the base model of TeamMessagingSettings
+ Object
+ // AllowUserEditMessages undocumented
+ AllowUserEditMessages *bool `json:"allowUserEditMessages,omitempty"`
+ // AllowUserDeleteMessages undocumented
+ AllowUserDeleteMessages *bool `json:"allowUserDeleteMessages,omitempty"`
+ // AllowOwnerDeleteMessages undocumented
+ AllowOwnerDeleteMessages *bool `json:"allowOwnerDeleteMessages,omitempty"`
+ // AllowTeamMentions undocumented
+ AllowTeamMentions *bool `json:"allowTeamMentions,omitempty"`
+ // AllowChannelMentions undocumented
+ AllowChannelMentions *bool `json:"allowChannelMentions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamModel.go
new file mode 100644
index 00000000..b1a90fc0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamModel.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Team undocumented
+type Team struct {
+ // Entity is the base model of Team
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // InternalID undocumented
+ InternalID *string `json:"internalId,omitempty"`
+ // Classification undocumented
+ Classification *string `json:"classification,omitempty"`
+ // Specialization undocumented
+ Specialization *TeamSpecialization `json:"specialization,omitempty"`
+ // Visibility undocumented
+ Visibility *TeamVisibilityType `json:"visibility,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+ // MemberSettings undocumented
+ MemberSettings *TeamMemberSettings `json:"memberSettings,omitempty"`
+ // GuestSettings undocumented
+ GuestSettings *TeamGuestSettings `json:"guestSettings,omitempty"`
+ // MessagingSettings undocumented
+ MessagingSettings *TeamMessagingSettings `json:"messagingSettings,omitempty"`
+ // FunSettings undocumented
+ FunSettings *TeamFunSettings `json:"funSettings,omitempty"`
+ // DiscoverySettings undocumented
+ DiscoverySettings *TeamDiscoverySettings `json:"discoverySettings,omitempty"`
+ // IsArchived undocumented
+ IsArchived *bool `json:"isArchived,omitempty"`
+ // Schedule undocumented
+ Schedule *Schedule `json:"schedule,omitempty"`
+ // Group undocumented
+ Group *Group `json:"group,omitempty"`
+ // Template undocumented
+ Template *TeamsTemplate `json:"template,omitempty"`
+ // Photo undocumented
+ Photo *ProfilePhoto `json:"photo,omitempty"`
+ // Owners undocumented
+ Owners []User `json:"owners,omitempty"`
+ // Channels undocumented
+ Channels []Channel `json:"channels,omitempty"`
+ // PrimaryChannel undocumented
+ PrimaryChannel *Channel `json:"primaryChannel,omitempty"`
+ // Apps undocumented
+ Apps []TeamsCatalogApp `json:"apps,omitempty"`
+ // InstalledApps undocumented
+ InstalledApps []TeamsAppInstallation `json:"installedApps,omitempty"`
+ // Operations undocumented
+ Operations []TeamsAsyncOperation `json:"operations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamRequest.go
new file mode 100644
index 00000000..38b07592
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamRequest.go
@@ -0,0 +1,550 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// TeamRequestBuilder is request builder for Team
+type TeamRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamRequest
+func (b *TeamRequestBuilder) Request() *TeamRequest {
+ return &TeamRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamRequest is request for Team
+type TeamRequest struct{ BaseRequest }
+
+// Get performs GET request for Team
+func (r *TeamRequest) Get(ctx context.Context) (resObj *Team, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Team
+func (r *TeamRequest) Update(ctx context.Context, reqObj *Team) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Team
+func (r *TeamRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Apps returns request builder for TeamsCatalogApp collection
+func (b *TeamRequestBuilder) Apps() *TeamAppsCollectionRequestBuilder {
+ bb := &TeamAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/apps"
+ return bb
+}
+
+// TeamAppsCollectionRequestBuilder is request builder for TeamsCatalogApp collection
+type TeamAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsCatalogApp collection
+func (b *TeamAppsCollectionRequestBuilder) Request() *TeamAppsCollectionRequest {
+ return &TeamAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsCatalogApp item
+func (b *TeamAppsCollectionRequestBuilder) ID(id string) *TeamsCatalogAppRequestBuilder {
+ bb := &TeamsCatalogAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TeamAppsCollectionRequest is request for TeamsCatalogApp collection
+type TeamAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsCatalogApp collection
+func (r *TeamAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TeamsCatalogApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsCatalogApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsCatalogApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsCatalogApp collection
+func (r *TeamAppsCollectionRequest) Get(ctx context.Context) ([]TeamsCatalogApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TeamsCatalogApp collection
+func (r *TeamAppsCollectionRequest) Add(ctx context.Context, reqObj *TeamsCatalogApp) (resObj *TeamsCatalogApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Channels returns request builder for Channel collection
+func (b *TeamRequestBuilder) Channels() *TeamChannelsCollectionRequestBuilder {
+ bb := &TeamChannelsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/channels"
+ return bb
+}
+
+// TeamChannelsCollectionRequestBuilder is request builder for Channel collection
+type TeamChannelsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Channel collection
+func (b *TeamChannelsCollectionRequestBuilder) Request() *TeamChannelsCollectionRequest {
+ return &TeamChannelsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Channel item
+func (b *TeamChannelsCollectionRequestBuilder) ID(id string) *ChannelRequestBuilder {
+ bb := &ChannelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TeamChannelsCollectionRequest is request for Channel collection
+type TeamChannelsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Channel collection
+func (r *TeamChannelsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Channel, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Channel
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Channel
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Channel collection
+func (r *TeamChannelsCollectionRequest) Get(ctx context.Context) ([]Channel, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Channel collection
+func (r *TeamChannelsCollectionRequest) Add(ctx context.Context, reqObj *Channel) (resObj *Channel, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Group is navigation property
+func (b *TeamRequestBuilder) Group() *GroupRequestBuilder {
+ bb := &GroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/group"
+ return bb
+}
+
+// InstalledApps returns request builder for TeamsAppInstallation collection
+func (b *TeamRequestBuilder) InstalledApps() *TeamInstalledAppsCollectionRequestBuilder {
+ bb := &TeamInstalledAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/installedApps"
+ return bb
+}
+
+// TeamInstalledAppsCollectionRequestBuilder is request builder for TeamsAppInstallation collection
+type TeamInstalledAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsAppInstallation collection
+func (b *TeamInstalledAppsCollectionRequestBuilder) Request() *TeamInstalledAppsCollectionRequest {
+ return &TeamInstalledAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsAppInstallation item
+func (b *TeamInstalledAppsCollectionRequestBuilder) ID(id string) *TeamsAppInstallationRequestBuilder {
+ bb := &TeamsAppInstallationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TeamInstalledAppsCollectionRequest is request for TeamsAppInstallation collection
+type TeamInstalledAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsAppInstallation collection
+func (r *TeamInstalledAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TeamsAppInstallation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsAppInstallation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsAppInstallation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsAppInstallation collection
+func (r *TeamInstalledAppsCollectionRequest) Get(ctx context.Context) ([]TeamsAppInstallation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TeamsAppInstallation collection
+func (r *TeamInstalledAppsCollectionRequest) Add(ctx context.Context, reqObj *TeamsAppInstallation) (resObj *TeamsAppInstallation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Operations returns request builder for TeamsAsyncOperation collection
+func (b *TeamRequestBuilder) Operations() *TeamOperationsCollectionRequestBuilder {
+ bb := &TeamOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/operations"
+ return bb
+}
+
+// TeamOperationsCollectionRequestBuilder is request builder for TeamsAsyncOperation collection
+type TeamOperationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsAsyncOperation collection
+func (b *TeamOperationsCollectionRequestBuilder) Request() *TeamOperationsCollectionRequest {
+ return &TeamOperationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsAsyncOperation item
+func (b *TeamOperationsCollectionRequestBuilder) ID(id string) *TeamsAsyncOperationRequestBuilder {
+ bb := &TeamsAsyncOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TeamOperationsCollectionRequest is request for TeamsAsyncOperation collection
+type TeamOperationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsAsyncOperation collection
+func (r *TeamOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TeamsAsyncOperation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsAsyncOperation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsAsyncOperation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsAsyncOperation collection
+func (r *TeamOperationsCollectionRequest) Get(ctx context.Context) ([]TeamsAsyncOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TeamsAsyncOperation collection
+func (r *TeamOperationsCollectionRequest) Add(ctx context.Context, reqObj *TeamsAsyncOperation) (resObj *TeamsAsyncOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Owners returns request builder for User collection
+func (b *TeamRequestBuilder) Owners() *TeamOwnersCollectionRequestBuilder {
+ bb := &TeamOwnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/owners"
+ return bb
+}
+
+// TeamOwnersCollectionRequestBuilder is request builder for User collection
+type TeamOwnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for User collection
+func (b *TeamOwnersCollectionRequestBuilder) Request() *TeamOwnersCollectionRequest {
+ return &TeamOwnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for User item
+func (b *TeamOwnersCollectionRequestBuilder) ID(id string) *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TeamOwnersCollectionRequest is request for User collection
+type TeamOwnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for User collection
+func (r *TeamOwnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]User, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []User
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []User
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for User collection
+func (r *TeamOwnersCollectionRequest) Get(ctx context.Context) ([]User, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for User collection
+func (r *TeamOwnersCollectionRequest) Add(ctx context.Context, reqObj *User) (resObj *User, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Photo is navigation property
+func (b *TeamRequestBuilder) Photo() *ProfilePhotoRequestBuilder {
+ bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/photo"
+ return bb
+}
+
+// PrimaryChannel is navigation property
+func (b *TeamRequestBuilder) PrimaryChannel() *ChannelRequestBuilder {
+ bb := &ChannelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/primaryChannel"
+ return bb
+}
+
+// Schedule is navigation property
+func (b *TeamRequestBuilder) Schedule() *ScheduleRequestBuilder {
+ bb := &ScheduleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schedule"
+ return bb
+}
+
+// Template is navigation property
+func (b *TeamRequestBuilder) Template() *TeamsTemplateRequestBuilder {
+ bb := &TeamsTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/template"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamSpecializationEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamSpecializationEnum.go
new file mode 100644
index 00000000..6ee244bb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamSpecializationEnum.go
@@ -0,0 +1,73 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamSpecialization undocumented
+type TeamSpecialization int
+
+const (
+ // TeamSpecializationVNone undocumented
+ TeamSpecializationVNone TeamSpecialization = 0
+ // TeamSpecializationVEducationStandard undocumented
+ TeamSpecializationVEducationStandard TeamSpecialization = 1
+ // TeamSpecializationVEducationClass undocumented
+ TeamSpecializationVEducationClass TeamSpecialization = 2
+ // TeamSpecializationVEducationProfessionalLearningCommunity undocumented
+ TeamSpecializationVEducationProfessionalLearningCommunity TeamSpecialization = 3
+ // TeamSpecializationVEducationStaff undocumented
+ TeamSpecializationVEducationStaff TeamSpecialization = 4
+ // TeamSpecializationVHealthcareStandard undocumented
+ TeamSpecializationVHealthcareStandard TeamSpecialization = 5
+ // TeamSpecializationVHealthcareCareCoordination undocumented
+ TeamSpecializationVHealthcareCareCoordination TeamSpecialization = 6
+ // TeamSpecializationVUnknownFutureValue undocumented
+ TeamSpecializationVUnknownFutureValue TeamSpecialization = 7
+)
+
+// TeamSpecializationPNone returns a pointer to TeamSpecializationVNone
+func TeamSpecializationPNone() *TeamSpecialization {
+ v := TeamSpecializationVNone
+ return &v
+}
+
+// TeamSpecializationPEducationStandard returns a pointer to TeamSpecializationVEducationStandard
+func TeamSpecializationPEducationStandard() *TeamSpecialization {
+ v := TeamSpecializationVEducationStandard
+ return &v
+}
+
+// TeamSpecializationPEducationClass returns a pointer to TeamSpecializationVEducationClass
+func TeamSpecializationPEducationClass() *TeamSpecialization {
+ v := TeamSpecializationVEducationClass
+ return &v
+}
+
+// TeamSpecializationPEducationProfessionalLearningCommunity returns a pointer to TeamSpecializationVEducationProfessionalLearningCommunity
+func TeamSpecializationPEducationProfessionalLearningCommunity() *TeamSpecialization {
+ v := TeamSpecializationVEducationProfessionalLearningCommunity
+ return &v
+}
+
+// TeamSpecializationPEducationStaff returns a pointer to TeamSpecializationVEducationStaff
+func TeamSpecializationPEducationStaff() *TeamSpecialization {
+ v := TeamSpecializationVEducationStaff
+ return &v
+}
+
+// TeamSpecializationPHealthcareStandard returns a pointer to TeamSpecializationVHealthcareStandard
+func TeamSpecializationPHealthcareStandard() *TeamSpecialization {
+ v := TeamSpecializationVHealthcareStandard
+ return &v
+}
+
+// TeamSpecializationPHealthcareCareCoordination returns a pointer to TeamSpecializationVHealthcareCareCoordination
+func TeamSpecializationPHealthcareCareCoordination() *TeamSpecialization {
+ v := TeamSpecializationVHealthcareCareCoordination
+ return &v
+}
+
+// TeamSpecializationPUnknownFutureValue returns a pointer to TeamSpecializationVUnknownFutureValue
+func TeamSpecializationPUnknownFutureValue() *TeamSpecialization {
+ v := TeamSpecializationVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamVisibilityTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamVisibilityTypeEnum.go
new file mode 100644
index 00000000..592c139b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamVisibilityTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamVisibilityType undocumented
+type TeamVisibilityType int
+
+const (
+ // TeamVisibilityTypeVPrivate undocumented
+ TeamVisibilityTypeVPrivate TeamVisibilityType = 0
+ // TeamVisibilityTypeVPublic undocumented
+ TeamVisibilityTypeVPublic TeamVisibilityType = 1
+ // TeamVisibilityTypeVHiddenMembership undocumented
+ TeamVisibilityTypeVHiddenMembership TeamVisibilityType = 2
+ // TeamVisibilityTypeVUnknownFutureValue undocumented
+ TeamVisibilityTypeVUnknownFutureValue TeamVisibilityType = 3
+)
+
+// TeamVisibilityTypePPrivate returns a pointer to TeamVisibilityTypeVPrivate
+func TeamVisibilityTypePPrivate() *TeamVisibilityType {
+ v := TeamVisibilityTypeVPrivate
+ return &v
+}
+
+// TeamVisibilityTypePPublic returns a pointer to TeamVisibilityTypeVPublic
+func TeamVisibilityTypePPublic() *TeamVisibilityType {
+ v := TeamVisibilityTypeVPublic
+ return &v
+}
+
+// TeamVisibilityTypePHiddenMembership returns a pointer to TeamVisibilityTypeVHiddenMembership
+func TeamVisibilityTypePHiddenMembership() *TeamVisibilityType {
+ v := TeamVisibilityTypeVHiddenMembership
+ return &v
+}
+
+// TeamVisibilityTypePUnknownFutureValue returns a pointer to TeamVisibilityTypeVUnknownFutureValue
+func TeamVisibilityTypePUnknownFutureValue() *TeamVisibilityType {
+ v := TeamVisibilityTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppDefinitionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppDefinitionModel.go
new file mode 100644
index 00000000..d5c6c771
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppDefinitionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamsAppDefinition undocumented
+type TeamsAppDefinition struct {
+ // Entity is the base model of TeamsAppDefinition
+ Entity
+ // TeamsAppID undocumented
+ TeamsAppID *string `json:"teamsAppId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version undocumented
+ Version *string `json:"version,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppDefinitionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppDefinitionRequest.go
new file mode 100644
index 00000000..1177a74d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppDefinitionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TeamsAppDefinitionRequestBuilder is request builder for TeamsAppDefinition
+type TeamsAppDefinitionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamsAppDefinitionRequest
+func (b *TeamsAppDefinitionRequestBuilder) Request() *TeamsAppDefinitionRequest {
+ return &TeamsAppDefinitionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamsAppDefinitionRequest is request for TeamsAppDefinition
+type TeamsAppDefinitionRequest struct{ BaseRequest }
+
+// Get performs GET request for TeamsAppDefinition
+func (r *TeamsAppDefinitionRequest) Get(ctx context.Context) (resObj *TeamsAppDefinition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TeamsAppDefinition
+func (r *TeamsAppDefinitionRequest) Update(ctx context.Context, reqObj *TeamsAppDefinition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TeamsAppDefinition
+func (r *TeamsAppDefinitionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppDistributionMethodEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppDistributionMethodEnum.go
new file mode 100644
index 00000000..184f3a2f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppDistributionMethodEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamsAppDistributionMethod undocumented
+type TeamsAppDistributionMethod int
+
+const (
+ // TeamsAppDistributionMethodVStore undocumented
+ TeamsAppDistributionMethodVStore TeamsAppDistributionMethod = 0
+ // TeamsAppDistributionMethodVOrganization undocumented
+ TeamsAppDistributionMethodVOrganization TeamsAppDistributionMethod = 1
+ // TeamsAppDistributionMethodVSideloaded undocumented
+ TeamsAppDistributionMethodVSideloaded TeamsAppDistributionMethod = 2
+ // TeamsAppDistributionMethodVUnknownFutureValue undocumented
+ TeamsAppDistributionMethodVUnknownFutureValue TeamsAppDistributionMethod = 3
+)
+
+// TeamsAppDistributionMethodPStore returns a pointer to TeamsAppDistributionMethodVStore
+func TeamsAppDistributionMethodPStore() *TeamsAppDistributionMethod {
+ v := TeamsAppDistributionMethodVStore
+ return &v
+}
+
+// TeamsAppDistributionMethodPOrganization returns a pointer to TeamsAppDistributionMethodVOrganization
+func TeamsAppDistributionMethodPOrganization() *TeamsAppDistributionMethod {
+ v := TeamsAppDistributionMethodVOrganization
+ return &v
+}
+
+// TeamsAppDistributionMethodPSideloaded returns a pointer to TeamsAppDistributionMethodVSideloaded
+func TeamsAppDistributionMethodPSideloaded() *TeamsAppDistributionMethod {
+ v := TeamsAppDistributionMethodVSideloaded
+ return &v
+}
+
+// TeamsAppDistributionMethodPUnknownFutureValue returns a pointer to TeamsAppDistributionMethodVUnknownFutureValue
+func TeamsAppDistributionMethodPUnknownFutureValue() *TeamsAppDistributionMethod {
+ v := TeamsAppDistributionMethodVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppInstallationAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppInstallationAction.go
new file mode 100644
index 00000000..5e67c216
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppInstallationAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TeamsAppInstallationUpgradeRequestParameter undocumented
+type TeamsAppInstallationUpgradeRequestParameter struct {
+}
+
+//
+type TeamsAppInstallationUpgradeRequestBuilder struct{ BaseRequestBuilder }
+
+// Upgrade action undocumented
+func (b *TeamsAppInstallationRequestBuilder) Upgrade(reqObj *TeamsAppInstallationUpgradeRequestParameter) *TeamsAppInstallationUpgradeRequestBuilder {
+ bb := &TeamsAppInstallationUpgradeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/upgrade"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TeamsAppInstallationUpgradeRequest struct{ BaseRequest }
+
+//
+func (b *TeamsAppInstallationUpgradeRequestBuilder) Request() *TeamsAppInstallationUpgradeRequest {
+ return &TeamsAppInstallationUpgradeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TeamsAppInstallationUpgradeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppInstallationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppInstallationModel.go
new file mode 100644
index 00000000..fa3e3243
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppInstallationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamsAppInstallation undocumented
+type TeamsAppInstallation struct {
+ // Entity is the base model of TeamsAppInstallation
+ Entity
+ // TeamsApp undocumented
+ TeamsApp *TeamsApp `json:"teamsApp,omitempty"`
+ // TeamsAppDefinition undocumented
+ TeamsAppDefinition *TeamsAppDefinition `json:"teamsAppDefinition,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppInstallationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppInstallationRequest.go
new file mode 100644
index 00000000..29e4a308
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppInstallationRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TeamsAppInstallationRequestBuilder is request builder for TeamsAppInstallation
+type TeamsAppInstallationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamsAppInstallationRequest
+func (b *TeamsAppInstallationRequestBuilder) Request() *TeamsAppInstallationRequest {
+ return &TeamsAppInstallationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamsAppInstallationRequest is request for TeamsAppInstallation
+type TeamsAppInstallationRequest struct{ BaseRequest }
+
+// Get performs GET request for TeamsAppInstallation
+func (r *TeamsAppInstallationRequest) Get(ctx context.Context) (resObj *TeamsAppInstallation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TeamsAppInstallation
+func (r *TeamsAppInstallationRequest) Update(ctx context.Context, reqObj *TeamsAppInstallation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TeamsAppInstallation
+func (r *TeamsAppInstallationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TeamsApp is navigation property
+func (b *TeamsAppInstallationRequestBuilder) TeamsApp() *TeamsAppRequestBuilder {
+ bb := &TeamsAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teamsApp"
+ return bb
+}
+
+// TeamsAppDefinition is navigation property
+func (b *TeamsAppInstallationRequestBuilder) TeamsAppDefinition() *TeamsAppDefinitionRequestBuilder {
+ bb := &TeamsAppDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teamsAppDefinition"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppModel.go
new file mode 100644
index 00000000..eb9c0a83
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamsApp undocumented
+type TeamsApp struct {
+ // Entity is the base model of TeamsApp
+ Entity
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // DistributionMethod undocumented
+ DistributionMethod *TeamsAppDistributionMethod `json:"distributionMethod,omitempty"`
+ // AppDefinitions undocumented
+ AppDefinitions []TeamsAppDefinition `json:"appDefinitions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppRequest.go
new file mode 100644
index 00000000..06393b1e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAppRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// TeamsAppRequestBuilder is request builder for TeamsApp
+type TeamsAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamsAppRequest
+func (b *TeamsAppRequestBuilder) Request() *TeamsAppRequest {
+ return &TeamsAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamsAppRequest is request for TeamsApp
+type TeamsAppRequest struct{ BaseRequest }
+
+// Get performs GET request for TeamsApp
+func (r *TeamsAppRequest) Get(ctx context.Context) (resObj *TeamsApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TeamsApp
+func (r *TeamsAppRequest) Update(ctx context.Context, reqObj *TeamsApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TeamsApp
+func (r *TeamsAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AppDefinitions returns request builder for TeamsAppDefinition collection
+func (b *TeamsAppRequestBuilder) AppDefinitions() *TeamsAppAppDefinitionsCollectionRequestBuilder {
+ bb := &TeamsAppAppDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appDefinitions"
+ return bb
+}
+
+// TeamsAppAppDefinitionsCollectionRequestBuilder is request builder for TeamsAppDefinition collection
+type TeamsAppAppDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsAppDefinition collection
+func (b *TeamsAppAppDefinitionsCollectionRequestBuilder) Request() *TeamsAppAppDefinitionsCollectionRequest {
+ return &TeamsAppAppDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsAppDefinition item
+func (b *TeamsAppAppDefinitionsCollectionRequestBuilder) ID(id string) *TeamsAppDefinitionRequestBuilder {
+ bb := &TeamsAppDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TeamsAppAppDefinitionsCollectionRequest is request for TeamsAppDefinition collection
+type TeamsAppAppDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsAppDefinition collection
+func (r *TeamsAppAppDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TeamsAppDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsAppDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsAppDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsAppDefinition collection
+func (r *TeamsAppAppDefinitionsCollectionRequest) Get(ctx context.Context) ([]TeamsAppDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TeamsAppDefinition collection
+func (r *TeamsAppAppDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *TeamsAppDefinition) (resObj *TeamsAppDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAsyncOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAsyncOperationModel.go
new file mode 100644
index 00000000..b1ed964d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAsyncOperationModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TeamsAsyncOperation undocumented
+type TeamsAsyncOperation struct {
+ // Entity is the base model of TeamsAsyncOperation
+ Entity
+ // OperationType undocumented
+ OperationType *TeamsAsyncOperationType `json:"operationType,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Status undocumented
+ Status *TeamsAsyncOperationStatus `json:"status,omitempty"`
+ // LastActionDateTime undocumented
+ LastActionDateTime *time.Time `json:"lastActionDateTime,omitempty"`
+ // AttemptsCount undocumented
+ AttemptsCount *int `json:"attemptsCount,omitempty"`
+ // TargetResourceID undocumented
+ TargetResourceID *string `json:"targetResourceId,omitempty"`
+ // TargetResourceLocation undocumented
+ TargetResourceLocation *string `json:"targetResourceLocation,omitempty"`
+ // Error undocumented
+ Error *OperationError `json:"error,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAsyncOperationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAsyncOperationRequest.go
new file mode 100644
index 00000000..4a239ca8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAsyncOperationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TeamsAsyncOperationRequestBuilder is request builder for TeamsAsyncOperation
+type TeamsAsyncOperationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamsAsyncOperationRequest
+func (b *TeamsAsyncOperationRequestBuilder) Request() *TeamsAsyncOperationRequest {
+ return &TeamsAsyncOperationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamsAsyncOperationRequest is request for TeamsAsyncOperation
+type TeamsAsyncOperationRequest struct{ BaseRequest }
+
+// Get performs GET request for TeamsAsyncOperation
+func (r *TeamsAsyncOperationRequest) Get(ctx context.Context) (resObj *TeamsAsyncOperation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TeamsAsyncOperation
+func (r *TeamsAsyncOperationRequest) Update(ctx context.Context, reqObj *TeamsAsyncOperation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TeamsAsyncOperation
+func (r *TeamsAsyncOperationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAsyncOperationStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAsyncOperationStatusEnum.go
new file mode 100644
index 00000000..f1741240
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAsyncOperationStatusEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamsAsyncOperationStatus undocumented
+type TeamsAsyncOperationStatus int
+
+const (
+ // TeamsAsyncOperationStatusVInvalid undocumented
+ TeamsAsyncOperationStatusVInvalid TeamsAsyncOperationStatus = 0
+ // TeamsAsyncOperationStatusVNotStarted undocumented
+ TeamsAsyncOperationStatusVNotStarted TeamsAsyncOperationStatus = 1
+ // TeamsAsyncOperationStatusVInProgress undocumented
+ TeamsAsyncOperationStatusVInProgress TeamsAsyncOperationStatus = 2
+ // TeamsAsyncOperationStatusVSucceeded undocumented
+ TeamsAsyncOperationStatusVSucceeded TeamsAsyncOperationStatus = 3
+ // TeamsAsyncOperationStatusVFailed undocumented
+ TeamsAsyncOperationStatusVFailed TeamsAsyncOperationStatus = 4
+ // TeamsAsyncOperationStatusVUnknownFutureValue undocumented
+ TeamsAsyncOperationStatusVUnknownFutureValue TeamsAsyncOperationStatus = 5
+)
+
+// TeamsAsyncOperationStatusPInvalid returns a pointer to TeamsAsyncOperationStatusVInvalid
+func TeamsAsyncOperationStatusPInvalid() *TeamsAsyncOperationStatus {
+ v := TeamsAsyncOperationStatusVInvalid
+ return &v
+}
+
+// TeamsAsyncOperationStatusPNotStarted returns a pointer to TeamsAsyncOperationStatusVNotStarted
+func TeamsAsyncOperationStatusPNotStarted() *TeamsAsyncOperationStatus {
+ v := TeamsAsyncOperationStatusVNotStarted
+ return &v
+}
+
+// TeamsAsyncOperationStatusPInProgress returns a pointer to TeamsAsyncOperationStatusVInProgress
+func TeamsAsyncOperationStatusPInProgress() *TeamsAsyncOperationStatus {
+ v := TeamsAsyncOperationStatusVInProgress
+ return &v
+}
+
+// TeamsAsyncOperationStatusPSucceeded returns a pointer to TeamsAsyncOperationStatusVSucceeded
+func TeamsAsyncOperationStatusPSucceeded() *TeamsAsyncOperationStatus {
+ v := TeamsAsyncOperationStatusVSucceeded
+ return &v
+}
+
+// TeamsAsyncOperationStatusPFailed returns a pointer to TeamsAsyncOperationStatusVFailed
+func TeamsAsyncOperationStatusPFailed() *TeamsAsyncOperationStatus {
+ v := TeamsAsyncOperationStatusVFailed
+ return &v
+}
+
+// TeamsAsyncOperationStatusPUnknownFutureValue returns a pointer to TeamsAsyncOperationStatusVUnknownFutureValue
+func TeamsAsyncOperationStatusPUnknownFutureValue() *TeamsAsyncOperationStatus {
+ v := TeamsAsyncOperationStatusVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAsyncOperationTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAsyncOperationTypeEnum.go
new file mode 100644
index 00000000..beaf7756
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsAsyncOperationTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamsAsyncOperationType undocumented
+type TeamsAsyncOperationType int
+
+const (
+ // TeamsAsyncOperationTypeVInvalid undocumented
+ TeamsAsyncOperationTypeVInvalid TeamsAsyncOperationType = 0
+ // TeamsAsyncOperationTypeVCloneTeam undocumented
+ TeamsAsyncOperationTypeVCloneTeam TeamsAsyncOperationType = 1
+ // TeamsAsyncOperationTypeVArchiveTeam undocumented
+ TeamsAsyncOperationTypeVArchiveTeam TeamsAsyncOperationType = 2
+ // TeamsAsyncOperationTypeVUnarchiveTeam undocumented
+ TeamsAsyncOperationTypeVUnarchiveTeam TeamsAsyncOperationType = 3
+ // TeamsAsyncOperationTypeVCreateTeam undocumented
+ TeamsAsyncOperationTypeVCreateTeam TeamsAsyncOperationType = 4
+ // TeamsAsyncOperationTypeVUnknownFutureValue undocumented
+ TeamsAsyncOperationTypeVUnknownFutureValue TeamsAsyncOperationType = 5
+)
+
+// TeamsAsyncOperationTypePInvalid returns a pointer to TeamsAsyncOperationTypeVInvalid
+func TeamsAsyncOperationTypePInvalid() *TeamsAsyncOperationType {
+ v := TeamsAsyncOperationTypeVInvalid
+ return &v
+}
+
+// TeamsAsyncOperationTypePCloneTeam returns a pointer to TeamsAsyncOperationTypeVCloneTeam
+func TeamsAsyncOperationTypePCloneTeam() *TeamsAsyncOperationType {
+ v := TeamsAsyncOperationTypeVCloneTeam
+ return &v
+}
+
+// TeamsAsyncOperationTypePArchiveTeam returns a pointer to TeamsAsyncOperationTypeVArchiveTeam
+func TeamsAsyncOperationTypePArchiveTeam() *TeamsAsyncOperationType {
+ v := TeamsAsyncOperationTypeVArchiveTeam
+ return &v
+}
+
+// TeamsAsyncOperationTypePUnarchiveTeam returns a pointer to TeamsAsyncOperationTypeVUnarchiveTeam
+func TeamsAsyncOperationTypePUnarchiveTeam() *TeamsAsyncOperationType {
+ v := TeamsAsyncOperationTypeVUnarchiveTeam
+ return &v
+}
+
+// TeamsAsyncOperationTypePCreateTeam returns a pointer to TeamsAsyncOperationTypeVCreateTeam
+func TeamsAsyncOperationTypePCreateTeam() *TeamsAsyncOperationType {
+ v := TeamsAsyncOperationTypeVCreateTeam
+ return &v
+}
+
+// TeamsAsyncOperationTypePUnknownFutureValue returns a pointer to TeamsAsyncOperationTypeVUnknownFutureValue
+func TeamsAsyncOperationTypePUnknownFutureValue() *TeamsAsyncOperationType {
+ v := TeamsAsyncOperationTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsCatalogAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsCatalogAppModel.go
new file mode 100644
index 00000000..136620db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsCatalogAppModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamsCatalogApp undocumented
+type TeamsCatalogApp struct {
+ // Entity is the base model of TeamsCatalogApp
+ Entity
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // DistributionMethod undocumented
+ DistributionMethod *TeamsAppDistributionMethod `json:"distributionMethod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsCatalogAppRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsCatalogAppRequest.go
new file mode 100644
index 00000000..ee72b524
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsCatalogAppRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TeamsCatalogAppRequestBuilder is request builder for TeamsCatalogApp
+type TeamsCatalogAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamsCatalogAppRequest
+func (b *TeamsCatalogAppRequestBuilder) Request() *TeamsCatalogAppRequest {
+ return &TeamsCatalogAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamsCatalogAppRequest is request for TeamsCatalogApp
+type TeamsCatalogAppRequest struct{ BaseRequest }
+
+// Get performs GET request for TeamsCatalogApp
+func (r *TeamsCatalogAppRequest) Get(ctx context.Context) (resObj *TeamsCatalogApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TeamsCatalogApp
+func (r *TeamsCatalogAppRequest) Update(ctx context.Context, reqObj *TeamsCatalogApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TeamsCatalogApp
+func (r *TeamsCatalogAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsDeviceUsageDistributionUserCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsDeviceUsageDistributionUserCountsModel.go
new file mode 100644
index 00000000..d57c14ea
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsDeviceUsageDistributionUserCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TeamsDeviceUsageDistributionUserCounts undocumented
+type TeamsDeviceUsageDistributionUserCounts struct {
+ // Entity is the base model of TeamsDeviceUsageDistributionUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // Web undocumented
+ Web *int `json:"web,omitempty"`
+ // WindowsPhone undocumented
+ WindowsPhone *int `json:"windowsPhone,omitempty"`
+ // AndroidPhone undocumented
+ AndroidPhone *int `json:"androidPhone,omitempty"`
+ // IOS undocumented
+ IOS *int `json:"ios,omitempty"`
+ // Mac undocumented
+ Mac *int `json:"mac,omitempty"`
+ // Windows undocumented
+ Windows *int `json:"windows,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsDeviceUsageUserCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsDeviceUsageUserCountsModel.go
new file mode 100644
index 00000000..2c48258c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsDeviceUsageUserCountsModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TeamsDeviceUsageUserCounts undocumented
+type TeamsDeviceUsageUserCounts struct {
+ // Entity is the base model of TeamsDeviceUsageUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // Web undocumented
+ Web *int `json:"web,omitempty"`
+ // WindowsPhone undocumented
+ WindowsPhone *int `json:"windowsPhone,omitempty"`
+ // AndroidPhone undocumented
+ AndroidPhone *int `json:"androidPhone,omitempty"`
+ // IOS undocumented
+ IOS *int `json:"ios,omitempty"`
+ // Mac undocumented
+ Mac *int `json:"mac,omitempty"`
+ // Windows undocumented
+ Windows *int `json:"windows,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsDeviceUsageUserDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsDeviceUsageUserDetailModel.go
new file mode 100644
index 00000000..d693c812
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsDeviceUsageUserDetailModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TeamsDeviceUsageUserDetail undocumented
+type TeamsDeviceUsageUserDetail struct {
+ // Entity is the base model of TeamsDeviceUsageUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `json:"lastActivityDate,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *time.Time `json:"deletedDate,omitempty"`
+ // UsedWeb undocumented
+ UsedWeb *bool `json:"usedWeb,omitempty"`
+ // UsedWindowsPhone undocumented
+ UsedWindowsPhone *bool `json:"usedWindowsPhone,omitempty"`
+ // UsediOS undocumented
+ UsediOS *bool `json:"usediOS,omitempty"`
+ // UsedMac undocumented
+ UsedMac *bool `json:"usedMac,omitempty"`
+ // UsedAndroidPhone undocumented
+ UsedAndroidPhone *bool `json:"usedAndroidPhone,omitempty"`
+ // UsedWindows undocumented
+ UsedWindows *bool `json:"usedWindows,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsTabConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsTabConfigurationModel.go
new file mode 100644
index 00000000..063948dc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsTabConfigurationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamsTabConfiguration undocumented
+type TeamsTabConfiguration struct {
+ // Object is the base model of TeamsTabConfiguration
+ Object
+ // EntityID undocumented
+ EntityID *string `json:"entityId,omitempty"`
+ // ContentURL undocumented
+ ContentURL *string `json:"contentUrl,omitempty"`
+ // RemoveURL undocumented
+ RemoveURL *string `json:"removeUrl,omitempty"`
+ // WebsiteURL undocumented
+ WebsiteURL *string `json:"websiteUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsTabModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsTabModel.go
new file mode 100644
index 00000000..d5de3c0a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsTabModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamsTab undocumented
+type TeamsTab struct {
+ // Entity is the base model of TeamsTab
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // TeamsAppID undocumented
+ TeamsAppID *string `json:"teamsAppId,omitempty"`
+ // SortOrderIndex undocumented
+ SortOrderIndex *string `json:"sortOrderIndex,omitempty"`
+ // MessageID undocumented
+ MessageID *string `json:"messageId,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+ // Configuration undocumented
+ Configuration *TeamsTabConfiguration `json:"configuration,omitempty"`
+ // TeamsApp undocumented
+ TeamsApp *TeamsApp `json:"teamsApp,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsTabRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsTabRequest.go
new file mode 100644
index 00000000..8557856c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsTabRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TeamsTabRequestBuilder is request builder for TeamsTab
+type TeamsTabRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamsTabRequest
+func (b *TeamsTabRequestBuilder) Request() *TeamsTabRequest {
+ return &TeamsTabRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamsTabRequest is request for TeamsTab
+type TeamsTabRequest struct{ BaseRequest }
+
+// Get performs GET request for TeamsTab
+func (r *TeamsTabRequest) Get(ctx context.Context) (resObj *TeamsTab, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TeamsTab
+func (r *TeamsTabRequest) Update(ctx context.Context, reqObj *TeamsTab) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TeamsTab
+func (r *TeamsTabRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TeamsApp is navigation property
+func (b *TeamsTabRequestBuilder) TeamsApp() *TeamsAppRequestBuilder {
+ bb := &TeamsAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teamsApp"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsTemplateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsTemplateModel.go
new file mode 100644
index 00000000..180db147
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsTemplateModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamsTemplate undocumented
+type TeamsTemplate struct {
+ // Entity is the base model of TeamsTemplate
+ Entity
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsTemplateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsTemplateRequest.go
new file mode 100644
index 00000000..79208af9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsTemplateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TeamsTemplateRequestBuilder is request builder for TeamsTemplate
+type TeamsTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamsTemplateRequest
+func (b *TeamsTemplateRequestBuilder) Request() *TeamsTemplateRequest {
+ return &TeamsTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamsTemplateRequest is request for TeamsTemplate
+type TeamsTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for TeamsTemplate
+func (r *TeamsTemplateRequest) Get(ctx context.Context) (resObj *TeamsTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TeamsTemplate
+func (r *TeamsTemplateRequest) Update(ctx context.Context, reqObj *TeamsTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TeamsTemplate
+func (r *TeamsTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsUserActivityCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsUserActivityCountsModel.go
new file mode 100644
index 00000000..55c1e475
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsUserActivityCountsModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TeamsUserActivityCounts undocumented
+type TeamsUserActivityCounts struct {
+ // Entity is the base model of TeamsUserActivityCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // TeamChatMessages undocumented
+ TeamChatMessages *int `json:"teamChatMessages,omitempty"`
+ // PrivateChatMessages undocumented
+ PrivateChatMessages *int `json:"privateChatMessages,omitempty"`
+ // Calls undocumented
+ Calls *int `json:"calls,omitempty"`
+ // Meetings undocumented
+ Meetings *int `json:"meetings,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsUserActivityUserCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsUserActivityUserCountsModel.go
new file mode 100644
index 00000000..1b736691
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsUserActivityUserCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TeamsUserActivityUserCounts undocumented
+type TeamsUserActivityUserCounts struct {
+ // Entity is the base model of TeamsUserActivityUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *time.Time `json:"reportDate,omitempty"`
+ // TeamChatMessages undocumented
+ TeamChatMessages *int `json:"teamChatMessages,omitempty"`
+ // PrivateChatMessages undocumented
+ PrivateChatMessages *int `json:"privateChatMessages,omitempty"`
+ // Calls undocumented
+ Calls *int `json:"calls,omitempty"`
+ // Meetings undocumented
+ Meetings *int `json:"meetings,omitempty"`
+ // OtherActions undocumented
+ OtherActions *int `json:"otherActions,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamsUserActivityUserDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsUserActivityUserDetailModel.go
new file mode 100644
index 00000000..ffe9cd61
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamsUserActivityUserDetailModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TeamsUserActivityUserDetail undocumented
+type TeamsUserActivityUserDetail struct {
+ // Entity is the base model of TeamsUserActivityUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *time.Time `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *time.Time `json:"lastActivityDate,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *time.Time `json:"deletedDate,omitempty"`
+ // AssignedProducts undocumented
+ AssignedProducts []string `json:"assignedProducts,omitempty"`
+ // TeamChatMessageCount undocumented
+ TeamChatMessageCount *int `json:"teamChatMessageCount,omitempty"`
+ // PrivateChatMessageCount undocumented
+ PrivateChatMessageCount *int `json:"privateChatMessageCount,omitempty"`
+ // CallCount undocumented
+ CallCount *int `json:"callCount,omitempty"`
+ // MeetingCount undocumented
+ MeetingCount *int `json:"meetingCount,omitempty"`
+ // HasOtherAction undocumented
+ HasOtherAction *bool `json:"hasOtherAction,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamworkModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamworkModel.go
new file mode 100644
index 00000000..78a4196a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamworkModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Teamwork undocumented
+type Teamwork struct {
+ // Entity is the base model of Teamwork
+ Entity
+ // WorkforceIntegrations undocumented
+ WorkforceIntegrations []WorkforceIntegration `json:"workforceIntegrations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TeamworkRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TeamworkRequest.go
new file mode 100644
index 00000000..e223181e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TeamworkRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// TeamworkRequestBuilder is request builder for Teamwork
+type TeamworkRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamworkRequest
+func (b *TeamworkRequestBuilder) Request() *TeamworkRequest {
+ return &TeamworkRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamworkRequest is request for Teamwork
+type TeamworkRequest struct{ BaseRequest }
+
+// Get performs GET request for Teamwork
+func (r *TeamworkRequest) Get(ctx context.Context) (resObj *Teamwork, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Teamwork
+func (r *TeamworkRequest) Update(ctx context.Context, reqObj *Teamwork) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Teamwork
+func (r *TeamworkRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkforceIntegrations returns request builder for WorkforceIntegration collection
+func (b *TeamworkRequestBuilder) WorkforceIntegrations() *TeamworkWorkforceIntegrationsCollectionRequestBuilder {
+ bb := &TeamworkWorkforceIntegrationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/workforceIntegrations"
+ return bb
+}
+
+// TeamworkWorkforceIntegrationsCollectionRequestBuilder is request builder for WorkforceIntegration collection
+type TeamworkWorkforceIntegrationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkforceIntegration collection
+func (b *TeamworkWorkforceIntegrationsCollectionRequestBuilder) Request() *TeamworkWorkforceIntegrationsCollectionRequest {
+ return &TeamworkWorkforceIntegrationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkforceIntegration item
+func (b *TeamworkWorkforceIntegrationsCollectionRequestBuilder) ID(id string) *WorkforceIntegrationRequestBuilder {
+ bb := &WorkforceIntegrationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TeamworkWorkforceIntegrationsCollectionRequest is request for WorkforceIntegration collection
+type TeamworkWorkforceIntegrationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkforceIntegration collection
+func (r *TeamworkWorkforceIntegrationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WorkforceIntegration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkforceIntegration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkforceIntegration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WorkforceIntegration collection
+func (r *TeamworkWorkforceIntegrationsCollectionRequest) Get(ctx context.Context) ([]WorkforceIntegration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WorkforceIntegration collection
+func (r *TeamworkWorkforceIntegrationsCollectionRequest) Add(ctx context.Context, reqObj *WorkforceIntegration) (resObj *WorkforceIntegration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TelecomExpenseManagementPartnerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TelecomExpenseManagementPartnerModel.go
new file mode 100644
index 00000000..5b0e13f4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TelecomExpenseManagementPartnerModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TelecomExpenseManagementPartner telecomExpenseManagementPartner resources represent the metadata and status of a given TEM service. Once your organization has onboarded with a partner, the partner can be enabled or disabled to switch TEM functionality on or off.
+type TelecomExpenseManagementPartner struct {
+ // Entity is the base model of TelecomExpenseManagementPartner
+ Entity
+ // DisplayName Display name of the TEM partner.
+ DisplayName *string `json:"displayName,omitempty"`
+ // URL URL of the TEM partner's administrative control panel, where an administrator can configure their TEM service.
+ URL *string `json:"url,omitempty"`
+ // AppAuthorized Whether the partner's AAD app has been authorized to access Intune.
+ AppAuthorized *bool `json:"appAuthorized,omitempty"`
+ // Enabled Whether Intune's connection to the TEM service is currently enabled or disabled.
+ Enabled *bool `json:"enabled,omitempty"`
+ // LastConnectionDateTime Timestamp of the last request sent to Intune by the TEM partner.
+ LastConnectionDateTime *time.Time `json:"lastConnectionDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TelecomExpenseManagementPartnerRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TelecomExpenseManagementPartnerRequest.go
new file mode 100644
index 00000000..d2523408
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TelecomExpenseManagementPartnerRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TelecomExpenseManagementPartnerRequestBuilder is request builder for TelecomExpenseManagementPartner
+type TelecomExpenseManagementPartnerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TelecomExpenseManagementPartnerRequest
+func (b *TelecomExpenseManagementPartnerRequestBuilder) Request() *TelecomExpenseManagementPartnerRequest {
+ return &TelecomExpenseManagementPartnerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TelecomExpenseManagementPartnerRequest is request for TelecomExpenseManagementPartner
+type TelecomExpenseManagementPartnerRequest struct{ BaseRequest }
+
+// Get performs GET request for TelecomExpenseManagementPartner
+func (r *TelecomExpenseManagementPartnerRequest) Get(ctx context.Context) (resObj *TelecomExpenseManagementPartner, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TelecomExpenseManagementPartner
+func (r *TelecomExpenseManagementPartnerRequest) Update(ctx context.Context, reqObj *TelecomExpenseManagementPartner) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TelecomExpenseManagementPartner
+func (r *TelecomExpenseManagementPartnerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TenantSetupInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TenantSetupInfoModel.go
new file mode 100644
index 00000000..6aac0c67
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TenantSetupInfoModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TenantSetupInfo undocumented
+type TenantSetupInfo struct {
+ // Entity is the base model of TenantSetupInfo
+ Entity
+ // UserRolesActions undocumented
+ UserRolesActions *string `json:"userRolesActions,omitempty"`
+ // FirstTimeSetup undocumented
+ FirstTimeSetup *bool `json:"firstTimeSetup,omitempty"`
+ // RelevantRolesSettings undocumented
+ RelevantRolesSettings []string `json:"relevantRolesSettings,omitempty"`
+ // SkipSetup undocumented
+ SkipSetup *bool `json:"skipSetup,omitempty"`
+ // SetupStatus undocumented
+ SetupStatus *SetupStatus `json:"setupStatus,omitempty"`
+ // DefaultRolesSettings undocumented
+ DefaultRolesSettings *PrivilegedRoleSettings `json:"defaultRolesSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TenantSetupInfoRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TenantSetupInfoRequest.go
new file mode 100644
index 00000000..294fe792
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TenantSetupInfoRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TenantSetupInfoRequestBuilder is request builder for TenantSetupInfo
+type TenantSetupInfoRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TenantSetupInfoRequest
+func (b *TenantSetupInfoRequestBuilder) Request() *TenantSetupInfoRequest {
+ return &TenantSetupInfoRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TenantSetupInfoRequest is request for TenantSetupInfo
+type TenantSetupInfoRequest struct{ BaseRequest }
+
+// Get performs GET request for TenantSetupInfo
+func (r *TenantSetupInfoRequest) Get(ctx context.Context) (resObj *TenantSetupInfo, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TenantSetupInfo
+func (r *TenantSetupInfoRequest) Update(ctx context.Context, reqObj *TenantSetupInfo) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TenantSetupInfo
+func (r *TenantSetupInfoRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DefaultRolesSettings is navigation property
+func (b *TenantSetupInfoRequestBuilder) DefaultRolesSettings() *PrivilegedRoleSettingsRequestBuilder {
+ bb := &PrivilegedRoleSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/defaultRolesSettings"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsAcceptanceStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsAcceptanceStatusModel.go
new file mode 100644
index 00000000..9dc62015
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsAcceptanceStatusModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TermsAndConditionsAcceptanceStatus A termsAndConditionsAcceptanceStatus entity represents the acceptance status of a given Terms and Conditions (T&C) policy by a given user. Users must accept the most up-to-date version of the terms in order to retain access to the Company Portal.
+type TermsAndConditionsAcceptanceStatus struct {
+ // Entity is the base model of TermsAndConditionsAcceptanceStatus
+ Entity
+ // UserDisplayName Display name of the user whose acceptance the entity represents.
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // AcceptedVersion Most recent version number of the T&C accepted by the user.
+ AcceptedVersion *int `json:"acceptedVersion,omitempty"`
+ // AcceptedDateTime DateTime when the terms were last accepted by the user.
+ AcceptedDateTime *time.Time `json:"acceptedDateTime,omitempty"`
+ // TermsAndConditions undocumented
+ TermsAndConditions *TermsAndConditions `json:"termsAndConditions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsAcceptanceStatusRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsAcceptanceStatusRequest.go
new file mode 100644
index 00000000..caab6625
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsAcceptanceStatusRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TermsAndConditionsAcceptanceStatusRequestBuilder is request builder for TermsAndConditionsAcceptanceStatus
+type TermsAndConditionsAcceptanceStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TermsAndConditionsAcceptanceStatusRequest
+func (b *TermsAndConditionsAcceptanceStatusRequestBuilder) Request() *TermsAndConditionsAcceptanceStatusRequest {
+ return &TermsAndConditionsAcceptanceStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TermsAndConditionsAcceptanceStatusRequest is request for TermsAndConditionsAcceptanceStatus
+type TermsAndConditionsAcceptanceStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for TermsAndConditionsAcceptanceStatus
+func (r *TermsAndConditionsAcceptanceStatusRequest) Get(ctx context.Context) (resObj *TermsAndConditionsAcceptanceStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TermsAndConditionsAcceptanceStatus
+func (r *TermsAndConditionsAcceptanceStatusRequest) Update(ctx context.Context, reqObj *TermsAndConditionsAcceptanceStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TermsAndConditionsAcceptanceStatus
+func (r *TermsAndConditionsAcceptanceStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TermsAndConditions is navigation property
+func (b *TermsAndConditionsAcceptanceStatusRequestBuilder) TermsAndConditions() *TermsAndConditionsRequestBuilder {
+ bb := &TermsAndConditionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/termsAndConditions"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsAssignmentModel.go
new file mode 100644
index 00000000..e2727c9d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TermsAndConditionsAssignment A termsAndConditionsAssignment entity represents the assignment of a given Terms and Conditions (T&C) policy to a given group. Users in the group will be required to accept the terms in order to have devices enrolled into Intune.
+type TermsAndConditionsAssignment struct {
+ // Entity is the base model of TermsAndConditionsAssignment
+ Entity
+ // Target Assignment target that the T&C policy is assigned to.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsAssignmentRequest.go
new file mode 100644
index 00000000..47f99bc8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TermsAndConditionsAssignmentRequestBuilder is request builder for TermsAndConditionsAssignment
+type TermsAndConditionsAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TermsAndConditionsAssignmentRequest
+func (b *TermsAndConditionsAssignmentRequestBuilder) Request() *TermsAndConditionsAssignmentRequest {
+ return &TermsAndConditionsAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TermsAndConditionsAssignmentRequest is request for TermsAndConditionsAssignment
+type TermsAndConditionsAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for TermsAndConditionsAssignment
+func (r *TermsAndConditionsAssignmentRequest) Get(ctx context.Context) (resObj *TermsAndConditionsAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TermsAndConditionsAssignment
+func (r *TermsAndConditionsAssignmentRequest) Update(ctx context.Context, reqObj *TermsAndConditionsAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TermsAndConditionsAssignment
+func (r *TermsAndConditionsAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsGroupAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsGroupAssignmentModel.go
new file mode 100644
index 00000000..54b49722
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsGroupAssignmentModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TermsAndConditionsGroupAssignment A termsAndConditionsGroupAssignment entity represents the assignment of a given Terms and Conditions (T&C) policy to a given group. Users in the group will be required to accept the terms in order to have devices enrolled into Intune.
+type TermsAndConditionsGroupAssignment struct {
+ // Entity is the base model of TermsAndConditionsGroupAssignment
+ Entity
+ // TargetGroupID Unique identifier of a group that the T&C policy is assigned to.
+ TargetGroupID *string `json:"targetGroupId,omitempty"`
+ // TermsAndConditions undocumented
+ TermsAndConditions *TermsAndConditions `json:"termsAndConditions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsGroupAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsGroupAssignmentRequest.go
new file mode 100644
index 00000000..8739b112
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsGroupAssignmentRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TermsAndConditionsGroupAssignmentRequestBuilder is request builder for TermsAndConditionsGroupAssignment
+type TermsAndConditionsGroupAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TermsAndConditionsGroupAssignmentRequest
+func (b *TermsAndConditionsGroupAssignmentRequestBuilder) Request() *TermsAndConditionsGroupAssignmentRequest {
+ return &TermsAndConditionsGroupAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TermsAndConditionsGroupAssignmentRequest is request for TermsAndConditionsGroupAssignment
+type TermsAndConditionsGroupAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for TermsAndConditionsGroupAssignment
+func (r *TermsAndConditionsGroupAssignmentRequest) Get(ctx context.Context) (resObj *TermsAndConditionsGroupAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TermsAndConditionsGroupAssignment
+func (r *TermsAndConditionsGroupAssignmentRequest) Update(ctx context.Context, reqObj *TermsAndConditionsGroupAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TermsAndConditionsGroupAssignment
+func (r *TermsAndConditionsGroupAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TermsAndConditions is navigation property
+func (b *TermsAndConditionsGroupAssignmentRequestBuilder) TermsAndConditions() *TermsAndConditionsRequestBuilder {
+ bb := &TermsAndConditionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/termsAndConditions"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsModel.go
new file mode 100644
index 00000000..92a2d7ba
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TermsAndConditions A termsAndConditions entity represents the metadata and contents of a given Terms and Conditions (T&C) policy. T&C policies’ contents are presented to users upon their first attempt to enroll into Intune and subsequently upon edits where an administrator has required re-acceptance. They enable administrators to communicate the provisions to which a user must agree in order to have devices enrolled into Intune.
+type TermsAndConditions struct {
+ // Entity is the base model of TermsAndConditions
+ Entity
+ // CreatedDateTime DateTime the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedDateTime DateTime the object was last modified.
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DisplayName Administrator-supplied name for the T&C policy.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Administrator-supplied description of the T&C policy.
+ Description *string `json:"description,omitempty"`
+ // Title Administrator-supplied title of the terms and conditions. This is shown to the user on prompts to accept the T&C policy.
+ Title *string `json:"title,omitempty"`
+ // BodyText Administrator-supplied body text of the terms and conditions, typically the terms themselves. This is shown to the user on prompts to accept the T&C policy.
+ BodyText *string `json:"bodyText,omitempty"`
+ // AcceptanceStatement Administrator-supplied explanation of the terms and conditions, typically describing what it means to accept the terms and conditions set out in the T&C policy. This is shown to the user on prompts to accept the T&C policy.
+ AcceptanceStatement *string `json:"acceptanceStatement,omitempty"`
+ // Version Integer indicating the current version of the terms. Incremented when an administrator makes a change to the terms and wishes to require users to re-accept the modified T&C policy.
+ Version *int `json:"version,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // GroupAssignments undocumented
+ GroupAssignments []TermsAndConditionsGroupAssignment `json:"groupAssignments,omitempty"`
+ // Assignments undocumented
+ Assignments []TermsAndConditionsAssignment `json:"assignments,omitempty"`
+ // AcceptanceStatuses undocumented
+ AcceptanceStatuses []TermsAndConditionsAcceptanceStatus `json:"acceptanceStatuses,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsRequest.go
new file mode 100644
index 00000000..77939caa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TermsAndConditionsRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// TermsAndConditionsRequestBuilder is request builder for TermsAndConditions
+type TermsAndConditionsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TermsAndConditionsRequest
+func (b *TermsAndConditionsRequestBuilder) Request() *TermsAndConditionsRequest {
+ return &TermsAndConditionsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TermsAndConditionsRequest is request for TermsAndConditions
+type TermsAndConditionsRequest struct{ BaseRequest }
+
+// Get performs GET request for TermsAndConditions
+func (r *TermsAndConditionsRequest) Get(ctx context.Context) (resObj *TermsAndConditions, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TermsAndConditions
+func (r *TermsAndConditionsRequest) Update(ctx context.Context, reqObj *TermsAndConditions) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TermsAndConditions
+func (r *TermsAndConditionsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AcceptanceStatuses returns request builder for TermsAndConditionsAcceptanceStatus collection
+func (b *TermsAndConditionsRequestBuilder) AcceptanceStatuses() *TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder {
+ bb := &TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/acceptanceStatuses"
+ return bb
+}
+
+// TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder is request builder for TermsAndConditionsAcceptanceStatus collection
+type TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TermsAndConditionsAcceptanceStatus collection
+func (b *TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder) Request() *TermsAndConditionsAcceptanceStatusesCollectionRequest {
+ return &TermsAndConditionsAcceptanceStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TermsAndConditionsAcceptanceStatus item
+func (b *TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder) ID(id string) *TermsAndConditionsAcceptanceStatusRequestBuilder {
+ bb := &TermsAndConditionsAcceptanceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TermsAndConditionsAcceptanceStatusesCollectionRequest is request for TermsAndConditionsAcceptanceStatus collection
+type TermsAndConditionsAcceptanceStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TermsAndConditionsAcceptanceStatus collection
+func (r *TermsAndConditionsAcceptanceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TermsAndConditionsAcceptanceStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TermsAndConditionsAcceptanceStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TermsAndConditionsAcceptanceStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TermsAndConditionsAcceptanceStatus collection
+func (r *TermsAndConditionsAcceptanceStatusesCollectionRequest) Get(ctx context.Context) ([]TermsAndConditionsAcceptanceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TermsAndConditionsAcceptanceStatus collection
+func (r *TermsAndConditionsAcceptanceStatusesCollectionRequest) Add(ctx context.Context, reqObj *TermsAndConditionsAcceptanceStatus) (resObj *TermsAndConditionsAcceptanceStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Assignments returns request builder for TermsAndConditionsAssignment collection
+func (b *TermsAndConditionsRequestBuilder) Assignments() *TermsAndConditionsAssignmentsCollectionRequestBuilder {
+ bb := &TermsAndConditionsAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// TermsAndConditionsAssignmentsCollectionRequestBuilder is request builder for TermsAndConditionsAssignment collection
+type TermsAndConditionsAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TermsAndConditionsAssignment collection
+func (b *TermsAndConditionsAssignmentsCollectionRequestBuilder) Request() *TermsAndConditionsAssignmentsCollectionRequest {
+ return &TermsAndConditionsAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TermsAndConditionsAssignment item
+func (b *TermsAndConditionsAssignmentsCollectionRequestBuilder) ID(id string) *TermsAndConditionsAssignmentRequestBuilder {
+ bb := &TermsAndConditionsAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TermsAndConditionsAssignmentsCollectionRequest is request for TermsAndConditionsAssignment collection
+type TermsAndConditionsAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TermsAndConditionsAssignment collection
+func (r *TermsAndConditionsAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TermsAndConditionsAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TermsAndConditionsAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TermsAndConditionsAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TermsAndConditionsAssignment collection
+func (r *TermsAndConditionsAssignmentsCollectionRequest) Get(ctx context.Context) ([]TermsAndConditionsAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TermsAndConditionsAssignment collection
+func (r *TermsAndConditionsAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *TermsAndConditionsAssignment) (resObj *TermsAndConditionsAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupAssignments returns request builder for TermsAndConditionsGroupAssignment collection
+func (b *TermsAndConditionsRequestBuilder) GroupAssignments() *TermsAndConditionsGroupAssignmentsCollectionRequestBuilder {
+ bb := &TermsAndConditionsGroupAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupAssignments"
+ return bb
+}
+
+// TermsAndConditionsGroupAssignmentsCollectionRequestBuilder is request builder for TermsAndConditionsGroupAssignment collection
+type TermsAndConditionsGroupAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TermsAndConditionsGroupAssignment collection
+func (b *TermsAndConditionsGroupAssignmentsCollectionRequestBuilder) Request() *TermsAndConditionsGroupAssignmentsCollectionRequest {
+ return &TermsAndConditionsGroupAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TermsAndConditionsGroupAssignment item
+func (b *TermsAndConditionsGroupAssignmentsCollectionRequestBuilder) ID(id string) *TermsAndConditionsGroupAssignmentRequestBuilder {
+ bb := &TermsAndConditionsGroupAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TermsAndConditionsGroupAssignmentsCollectionRequest is request for TermsAndConditionsGroupAssignment collection
+type TermsAndConditionsGroupAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TermsAndConditionsGroupAssignment collection
+func (r *TermsAndConditionsGroupAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TermsAndConditionsGroupAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TermsAndConditionsGroupAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TermsAndConditionsGroupAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TermsAndConditionsGroupAssignment collection
+func (r *TermsAndConditionsGroupAssignmentsCollectionRequest) Get(ctx context.Context) ([]TermsAndConditionsGroupAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TermsAndConditionsGroupAssignment collection
+func (r *TermsAndConditionsGroupAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *TermsAndConditionsGroupAssignment) (resObj *TermsAndConditionsGroupAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TextClassificationRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TextClassificationRequestObjectModel.go
new file mode 100644
index 00000000..4adfaaa4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TextClassificationRequestObjectModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TextClassificationRequestObject undocumented
+type TextClassificationRequestObject struct {
+ // Entity is the base model of TextClassificationRequestObject
+ Entity
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+ // SensitiveTypeIDs undocumented
+ SensitiveTypeIDs []string `json:"sensitiveTypeIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TextClassificationRequestObjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TextClassificationRequestObjectRequest.go
new file mode 100644
index 00000000..b0954e8e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TextClassificationRequestObjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TextClassificationRequestObjectRequestBuilder is request builder for TextClassificationRequestObject
+type TextClassificationRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TextClassificationRequestObjectRequest
+func (b *TextClassificationRequestObjectRequestBuilder) Request() *TextClassificationRequestObjectRequest {
+ return &TextClassificationRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TextClassificationRequestObjectRequest is request for TextClassificationRequestObject
+type TextClassificationRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for TextClassificationRequestObject
+func (r *TextClassificationRequestObjectRequest) Get(ctx context.Context) (resObj *TextClassificationRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TextClassificationRequestObject
+func (r *TextClassificationRequestObjectRequest) Update(ctx context.Context, reqObj *TextClassificationRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TextClassificationRequestObject
+func (r *TextClassificationRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TextColumnModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TextColumnModel.go
new file mode 100644
index 00000000..c8d284da
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TextColumnModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TextColumn undocumented
+type TextColumn struct {
+ // Object is the base model of TextColumn
+ Object
+ // AllowMultipleLines undocumented
+ AllowMultipleLines *bool `json:"allowMultipleLines,omitempty"`
+ // AppendChangesToExistingText undocumented
+ AppendChangesToExistingText *bool `json:"appendChangesToExistingText,omitempty"`
+ // LinesForEditing undocumented
+ LinesForEditing *int `json:"linesForEditing,omitempty"`
+ // MaxLength undocumented
+ MaxLength *int `json:"maxLength,omitempty"`
+ // TextType undocumented
+ TextType *string `json:"textType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentContentTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentContentTypeEnum.go
new file mode 100644
index 00000000..a1f72d5d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentContentTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ThreatAssessmentContentType undocumented
+type ThreatAssessmentContentType int
+
+const (
+ // ThreatAssessmentContentTypeVMail undocumented
+ ThreatAssessmentContentTypeVMail ThreatAssessmentContentType = 1
+ // ThreatAssessmentContentTypeVURL undocumented
+ ThreatAssessmentContentTypeVURL ThreatAssessmentContentType = 2
+ // ThreatAssessmentContentTypeVFile undocumented
+ ThreatAssessmentContentTypeVFile ThreatAssessmentContentType = 3
+)
+
+// ThreatAssessmentContentTypePMail returns a pointer to ThreatAssessmentContentTypeVMail
+func ThreatAssessmentContentTypePMail() *ThreatAssessmentContentType {
+ v := ThreatAssessmentContentTypeVMail
+ return &v
+}
+
+// ThreatAssessmentContentTypePURL returns a pointer to ThreatAssessmentContentTypeVURL
+func ThreatAssessmentContentTypePURL() *ThreatAssessmentContentType {
+ v := ThreatAssessmentContentTypeVURL
+ return &v
+}
+
+// ThreatAssessmentContentTypePFile returns a pointer to ThreatAssessmentContentTypeVFile
+func ThreatAssessmentContentTypePFile() *ThreatAssessmentContentType {
+ v := ThreatAssessmentContentTypeVFile
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentRequestObjectModel.go
new file mode 100644
index 00000000..72065bf2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentRequestObjectModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ThreatAssessmentRequestObject undocumented
+type ThreatAssessmentRequestObject struct {
+ // Entity is the base model of ThreatAssessmentRequestObject
+ Entity
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ContentType undocumented
+ ContentType *ThreatAssessmentContentType `json:"contentType,omitempty"`
+ // ExpectedAssessment undocumented
+ ExpectedAssessment *ThreatExpectedAssessment `json:"expectedAssessment,omitempty"`
+ // Category undocumented
+ Category *ThreatCategory `json:"category,omitempty"`
+ // Status undocumented
+ Status *ThreatAssessmentStatus `json:"status,omitempty"`
+ // RequestSource undocumented
+ RequestSource *ThreatAssessmentRequestSource `json:"requestSource,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // Results undocumented
+ Results []ThreatAssessmentResult `json:"results,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentRequestObjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentRequestObjectRequest.go
new file mode 100644
index 00000000..679c884d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentRequestObjectRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ThreatAssessmentRequestObjectRequestBuilder is request builder for ThreatAssessmentRequestObject
+type ThreatAssessmentRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ThreatAssessmentRequestObjectRequest
+func (b *ThreatAssessmentRequestObjectRequestBuilder) Request() *ThreatAssessmentRequestObjectRequest {
+ return &ThreatAssessmentRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ThreatAssessmentRequestObjectRequest is request for ThreatAssessmentRequestObject
+type ThreatAssessmentRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for ThreatAssessmentRequestObject
+func (r *ThreatAssessmentRequestObjectRequest) Get(ctx context.Context) (resObj *ThreatAssessmentRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ThreatAssessmentRequestObject
+func (r *ThreatAssessmentRequestObjectRequest) Update(ctx context.Context, reqObj *ThreatAssessmentRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ThreatAssessmentRequestObject
+func (r *ThreatAssessmentRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Results returns request builder for ThreatAssessmentResult collection
+func (b *ThreatAssessmentRequestObjectRequestBuilder) Results() *ThreatAssessmentRequestObjectResultsCollectionRequestBuilder {
+ bb := &ThreatAssessmentRequestObjectResultsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/results"
+ return bb
+}
+
+// ThreatAssessmentRequestObjectResultsCollectionRequestBuilder is request builder for ThreatAssessmentResult collection
+type ThreatAssessmentRequestObjectResultsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ThreatAssessmentResult collection
+func (b *ThreatAssessmentRequestObjectResultsCollectionRequestBuilder) Request() *ThreatAssessmentRequestObjectResultsCollectionRequest {
+ return &ThreatAssessmentRequestObjectResultsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ThreatAssessmentResult item
+func (b *ThreatAssessmentRequestObjectResultsCollectionRequestBuilder) ID(id string) *ThreatAssessmentResultRequestBuilder {
+ bb := &ThreatAssessmentResultRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ThreatAssessmentRequestObjectResultsCollectionRequest is request for ThreatAssessmentResult collection
+type ThreatAssessmentRequestObjectResultsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ThreatAssessmentResult collection
+func (r *ThreatAssessmentRequestObjectResultsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ThreatAssessmentResult, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ThreatAssessmentResult
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ThreatAssessmentResult
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ThreatAssessmentResult collection
+func (r *ThreatAssessmentRequestObjectResultsCollectionRequest) Get(ctx context.Context) ([]ThreatAssessmentResult, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ThreatAssessmentResult collection
+func (r *ThreatAssessmentRequestObjectResultsCollectionRequest) Add(ctx context.Context, reqObj *ThreatAssessmentResult) (resObj *ThreatAssessmentResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentRequestPivotPropertyEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentRequestPivotPropertyEnum.go
new file mode 100644
index 00000000..8fb4340f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentRequestPivotPropertyEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ThreatAssessmentRequestPivotProperty undocumented
+type ThreatAssessmentRequestPivotProperty int
+
+const (
+ // ThreatAssessmentRequestPivotPropertyVThreatCategory undocumented
+ ThreatAssessmentRequestPivotPropertyVThreatCategory ThreatAssessmentRequestPivotProperty = 1
+ // ThreatAssessmentRequestPivotPropertyVMailDestinationRoutingReason undocumented
+ ThreatAssessmentRequestPivotPropertyVMailDestinationRoutingReason ThreatAssessmentRequestPivotProperty = 2
+)
+
+// ThreatAssessmentRequestPivotPropertyPThreatCategory returns a pointer to ThreatAssessmentRequestPivotPropertyVThreatCategory
+func ThreatAssessmentRequestPivotPropertyPThreatCategory() *ThreatAssessmentRequestPivotProperty {
+ v := ThreatAssessmentRequestPivotPropertyVThreatCategory
+ return &v
+}
+
+// ThreatAssessmentRequestPivotPropertyPMailDestinationRoutingReason returns a pointer to ThreatAssessmentRequestPivotPropertyVMailDestinationRoutingReason
+func ThreatAssessmentRequestPivotPropertyPMailDestinationRoutingReason() *ThreatAssessmentRequestPivotProperty {
+ v := ThreatAssessmentRequestPivotPropertyVMailDestinationRoutingReason
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentRequestSourceEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentRequestSourceEnum.go
new file mode 100644
index 00000000..8adcd2e2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentRequestSourceEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ThreatAssessmentRequestSource undocumented
+type ThreatAssessmentRequestSource int
+
+const (
+ // ThreatAssessmentRequestSourceVUndefined undocumented
+ ThreatAssessmentRequestSourceVUndefined ThreatAssessmentRequestSource = 0
+ // ThreatAssessmentRequestSourceVUser undocumented
+ ThreatAssessmentRequestSourceVUser ThreatAssessmentRequestSource = 1
+ // ThreatAssessmentRequestSourceVAdministrator undocumented
+ ThreatAssessmentRequestSourceVAdministrator ThreatAssessmentRequestSource = 2
+)
+
+// ThreatAssessmentRequestSourcePUndefined returns a pointer to ThreatAssessmentRequestSourceVUndefined
+func ThreatAssessmentRequestSourcePUndefined() *ThreatAssessmentRequestSource {
+ v := ThreatAssessmentRequestSourceVUndefined
+ return &v
+}
+
+// ThreatAssessmentRequestSourcePUser returns a pointer to ThreatAssessmentRequestSourceVUser
+func ThreatAssessmentRequestSourcePUser() *ThreatAssessmentRequestSource {
+ v := ThreatAssessmentRequestSourceVUser
+ return &v
+}
+
+// ThreatAssessmentRequestSourcePAdministrator returns a pointer to ThreatAssessmentRequestSourceVAdministrator
+func ThreatAssessmentRequestSourcePAdministrator() *ThreatAssessmentRequestSource {
+ v := ThreatAssessmentRequestSourceVAdministrator
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentRequestsCountModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentRequestsCountModel.go
new file mode 100644
index 00000000..320bfa71
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentRequestsCountModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ThreatAssessmentRequestsCount undocumented
+type ThreatAssessmentRequestsCount struct {
+ // Object is the base model of ThreatAssessmentRequestsCount
+ Object
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // PivotValue undocumented
+ PivotValue *string `json:"pivotValue,omitempty"`
+ // Count undocumented
+ Count *int `json:"count,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentResultModel.go
new file mode 100644
index 00000000..a30099d3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentResultModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ThreatAssessmentResult undocumented
+type ThreatAssessmentResult struct {
+ // Entity is the base model of ThreatAssessmentResult
+ Entity
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ResultType undocumented
+ ResultType *ThreatAssessmentResultType `json:"resultType,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentResultRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentResultRequest.go
new file mode 100644
index 00000000..40f9f6df
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentResultRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ThreatAssessmentResultRequestBuilder is request builder for ThreatAssessmentResult
+type ThreatAssessmentResultRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ThreatAssessmentResultRequest
+func (b *ThreatAssessmentResultRequestBuilder) Request() *ThreatAssessmentResultRequest {
+ return &ThreatAssessmentResultRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ThreatAssessmentResultRequest is request for ThreatAssessmentResult
+type ThreatAssessmentResultRequest struct{ BaseRequest }
+
+// Get performs GET request for ThreatAssessmentResult
+func (r *ThreatAssessmentResultRequest) Get(ctx context.Context) (resObj *ThreatAssessmentResult, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ThreatAssessmentResult
+func (r *ThreatAssessmentResultRequest) Update(ctx context.Context, reqObj *ThreatAssessmentResult) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ThreatAssessmentResult
+func (r *ThreatAssessmentResultRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentResultTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentResultTypeEnum.go
new file mode 100644
index 00000000..d1b862b6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentResultTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ThreatAssessmentResultType undocumented
+type ThreatAssessmentResultType int
+
+const (
+ // ThreatAssessmentResultTypeVCheckPolicy undocumented
+ ThreatAssessmentResultTypeVCheckPolicy ThreatAssessmentResultType = 1
+ // ThreatAssessmentResultTypeVRescan undocumented
+ ThreatAssessmentResultTypeVRescan ThreatAssessmentResultType = 2
+ // ThreatAssessmentResultTypeVUnknownFutureValue undocumented
+ ThreatAssessmentResultTypeVUnknownFutureValue ThreatAssessmentResultType = 3
+)
+
+// ThreatAssessmentResultTypePCheckPolicy returns a pointer to ThreatAssessmentResultTypeVCheckPolicy
+func ThreatAssessmentResultTypePCheckPolicy() *ThreatAssessmentResultType {
+ v := ThreatAssessmentResultTypeVCheckPolicy
+ return &v
+}
+
+// ThreatAssessmentResultTypePRescan returns a pointer to ThreatAssessmentResultTypeVRescan
+func ThreatAssessmentResultTypePRescan() *ThreatAssessmentResultType {
+ v := ThreatAssessmentResultTypeVRescan
+ return &v
+}
+
+// ThreatAssessmentResultTypePUnknownFutureValue returns a pointer to ThreatAssessmentResultTypeVUnknownFutureValue
+func ThreatAssessmentResultTypePUnknownFutureValue() *ThreatAssessmentResultType {
+ v := ThreatAssessmentResultTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentStatusEnum.go
new file mode 100644
index 00000000..55b3f148
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatAssessmentStatusEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ThreatAssessmentStatus undocumented
+type ThreatAssessmentStatus int
+
+const (
+ // ThreatAssessmentStatusVPending undocumented
+ ThreatAssessmentStatusVPending ThreatAssessmentStatus = 1
+ // ThreatAssessmentStatusVCompleted undocumented
+ ThreatAssessmentStatusVCompleted ThreatAssessmentStatus = 2
+)
+
+// ThreatAssessmentStatusPPending returns a pointer to ThreatAssessmentStatusVPending
+func ThreatAssessmentStatusPPending() *ThreatAssessmentStatus {
+ v := ThreatAssessmentStatusVPending
+ return &v
+}
+
+// ThreatAssessmentStatusPCompleted returns a pointer to ThreatAssessmentStatusVCompleted
+func ThreatAssessmentStatusPCompleted() *ThreatAssessmentStatus {
+ v := ThreatAssessmentStatusVCompleted
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ThreatCategoryEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatCategoryEnum.go
new file mode 100644
index 00000000..d3a2854f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatCategoryEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ThreatCategory undocumented
+type ThreatCategory int
+
+const (
+ // ThreatCategoryVSpam undocumented
+ ThreatCategoryVSpam ThreatCategory = 1
+ // ThreatCategoryVPhishing undocumented
+ ThreatCategoryVPhishing ThreatCategory = 2
+ // ThreatCategoryVMalware undocumented
+ ThreatCategoryVMalware ThreatCategory = 3
+ // ThreatCategoryVUnknownFutureValue undocumented
+ ThreatCategoryVUnknownFutureValue ThreatCategory = 4
+)
+
+// ThreatCategoryPSpam returns a pointer to ThreatCategoryVSpam
+func ThreatCategoryPSpam() *ThreatCategory {
+ v := ThreatCategoryVSpam
+ return &v
+}
+
+// ThreatCategoryPPhishing returns a pointer to ThreatCategoryVPhishing
+func ThreatCategoryPPhishing() *ThreatCategory {
+ v := ThreatCategoryVPhishing
+ return &v
+}
+
+// ThreatCategoryPMalware returns a pointer to ThreatCategoryVMalware
+func ThreatCategoryPMalware() *ThreatCategory {
+ v := ThreatCategoryVMalware
+ return &v
+}
+
+// ThreatCategoryPUnknownFutureValue returns a pointer to ThreatCategoryVUnknownFutureValue
+func ThreatCategoryPUnknownFutureValue() *ThreatCategory {
+ v := ThreatCategoryVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ThreatExpectedAssessmentEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatExpectedAssessmentEnum.go
new file mode 100644
index 00000000..471bd828
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ThreatExpectedAssessmentEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ThreatExpectedAssessment undocumented
+type ThreatExpectedAssessment int
+
+const (
+ // ThreatExpectedAssessmentVBlock undocumented
+ ThreatExpectedAssessmentVBlock ThreatExpectedAssessment = 1
+ // ThreatExpectedAssessmentVUnblock undocumented
+ ThreatExpectedAssessmentVUnblock ThreatExpectedAssessment = 2
+)
+
+// ThreatExpectedAssessmentPBlock returns a pointer to ThreatExpectedAssessmentVBlock
+func ThreatExpectedAssessmentPBlock() *ThreatExpectedAssessment {
+ v := ThreatExpectedAssessmentVBlock
+ return &v
+}
+
+// ThreatExpectedAssessmentPUnblock returns a pointer to ThreatExpectedAssessmentVUnblock
+func ThreatExpectedAssessmentPUnblock() *ThreatExpectedAssessment {
+ v := ThreatExpectedAssessmentVUnblock
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ThumbnailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ThumbnailModel.go
new file mode 100644
index 00000000..db281c1c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ThumbnailModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Thumbnail undocumented
+type Thumbnail struct {
+ // Object is the base model of Thumbnail
+ Object
+ // Content undocumented
+ Content *Stream `json:"content,omitempty"`
+ // Height undocumented
+ Height *int `json:"height,omitempty"`
+ // SourceItemID undocumented
+ SourceItemID *string `json:"sourceItemId,omitempty"`
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+ // Width undocumented
+ Width *int `json:"width,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ThumbnailSetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ThumbnailSetModel.go
new file mode 100644
index 00000000..441fa92e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ThumbnailSetModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ThumbnailSet undocumented
+type ThumbnailSet struct {
+ // Entity is the base model of ThumbnailSet
+ Entity
+ // Large undocumented
+ Large *Thumbnail `json:"large,omitempty"`
+ // Medium undocumented
+ Medium *Thumbnail `json:"medium,omitempty"`
+ // Small undocumented
+ Small *Thumbnail `json:"small,omitempty"`
+ // Source undocumented
+ Source *Thumbnail `json:"source,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ThumbnailSetRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ThumbnailSetRequest.go
new file mode 100644
index 00000000..d028a8d6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ThumbnailSetRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ThumbnailSetRequestBuilder is request builder for ThumbnailSet
+type ThumbnailSetRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ThumbnailSetRequest
+func (b *ThumbnailSetRequestBuilder) Request() *ThumbnailSetRequest {
+ return &ThumbnailSetRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ThumbnailSetRequest is request for ThumbnailSet
+type ThumbnailSetRequest struct{ BaseRequest }
+
+// Get performs GET request for ThumbnailSet
+func (r *ThumbnailSetRequest) Get(ctx context.Context) (resObj *ThumbnailSet, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ThumbnailSet
+func (r *ThumbnailSetRequest) Update(ctx context.Context, reqObj *ThumbnailSet) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ThumbnailSet
+func (r *ThumbnailSetRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TiActionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/TiActionEnum.go
new file mode 100644
index 00000000..10aa74b0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TiActionEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TiAction undocumented
+type TiAction int
+
+const (
+ // TiActionVUnknown undocumented
+ TiActionVUnknown TiAction = 0
+ // TiActionVAllow undocumented
+ TiActionVAllow TiAction = 1
+ // TiActionVBlock undocumented
+ TiActionVBlock TiAction = 2
+ // TiActionVAlert undocumented
+ TiActionVAlert TiAction = 3
+ // TiActionVUnknownFutureValue undocumented
+ TiActionVUnknownFutureValue TiAction = 127
+)
+
+// TiActionPUnknown returns a pointer to TiActionVUnknown
+func TiActionPUnknown() *TiAction {
+ v := TiActionVUnknown
+ return &v
+}
+
+// TiActionPAllow returns a pointer to TiActionVAllow
+func TiActionPAllow() *TiAction {
+ v := TiActionVAllow
+ return &v
+}
+
+// TiActionPBlock returns a pointer to TiActionVBlock
+func TiActionPBlock() *TiAction {
+ v := TiActionVBlock
+ return &v
+}
+
+// TiActionPAlert returns a pointer to TiActionVAlert
+func TiActionPAlert() *TiAction {
+ v := TiActionVAlert
+ return &v
+}
+
+// TiActionPUnknownFutureValue returns a pointer to TiActionVUnknownFutureValue
+func TiActionPUnknownFutureValue() *TiAction {
+ v := TiActionVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TiIndicatorAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/TiIndicatorAction.go
new file mode 100644
index 00000000..c65fe952
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TiIndicatorAction.go
@@ -0,0 +1,364 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// TiIndicatorCollectionSubmitTiIndicatorsRequestParameter undocumented
+type TiIndicatorCollectionSubmitTiIndicatorsRequestParameter struct {
+ // Value undocumented
+ Value []TiIndicator `json:"value,omitempty"`
+}
+
+// TiIndicatorCollectionUpdateTiIndicatorsRequestParameter undocumented
+type TiIndicatorCollectionUpdateTiIndicatorsRequestParameter struct {
+ // Value undocumented
+ Value []TiIndicator `json:"value,omitempty"`
+}
+
+// TiIndicatorCollectionDeleteTiIndicatorsRequestParameter undocumented
+type TiIndicatorCollectionDeleteTiIndicatorsRequestParameter struct {
+ // Value undocumented
+ Value []string `json:"value,omitempty"`
+}
+
+// TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestParameter undocumented
+type TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestParameter struct {
+ // Value undocumented
+ Value []string `json:"value,omitempty"`
+}
+
+//
+type TiIndicatorCollectionSubmitTiIndicatorsRequestBuilder struct{ BaseRequestBuilder }
+
+// SubmitTiIndicators action undocumented
+func (b *SecurityTiIndicatorsCollectionRequestBuilder) SubmitTiIndicators(reqObj *TiIndicatorCollectionSubmitTiIndicatorsRequestParameter) *TiIndicatorCollectionSubmitTiIndicatorsRequestBuilder {
+ bb := &TiIndicatorCollectionSubmitTiIndicatorsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/submitTiIndicators"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TiIndicatorCollectionSubmitTiIndicatorsRequest struct{ BaseRequest }
+
+//
+func (b *TiIndicatorCollectionSubmitTiIndicatorsRequestBuilder) Request() *TiIndicatorCollectionSubmitTiIndicatorsRequest {
+ return &TiIndicatorCollectionSubmitTiIndicatorsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TiIndicatorCollectionSubmitTiIndicatorsRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]TiIndicator, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]TiIndicator
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]TiIndicator
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *TiIndicatorCollectionSubmitTiIndicatorsRequest) Get(ctx context.Context) ([][]TiIndicator, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type TiIndicatorCollectionUpdateTiIndicatorsRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateTiIndicators action undocumented
+func (b *SecurityTiIndicatorsCollectionRequestBuilder) UpdateTiIndicators(reqObj *TiIndicatorCollectionUpdateTiIndicatorsRequestParameter) *TiIndicatorCollectionUpdateTiIndicatorsRequestBuilder {
+ bb := &TiIndicatorCollectionUpdateTiIndicatorsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateTiIndicators"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TiIndicatorCollectionUpdateTiIndicatorsRequest struct{ BaseRequest }
+
+//
+func (b *TiIndicatorCollectionUpdateTiIndicatorsRequestBuilder) Request() *TiIndicatorCollectionUpdateTiIndicatorsRequest {
+ return &TiIndicatorCollectionUpdateTiIndicatorsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TiIndicatorCollectionUpdateTiIndicatorsRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]TiIndicator, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]TiIndicator
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]TiIndicator
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *TiIndicatorCollectionUpdateTiIndicatorsRequest) Get(ctx context.Context) ([][]TiIndicator, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type TiIndicatorCollectionDeleteTiIndicatorsRequestBuilder struct{ BaseRequestBuilder }
+
+// DeleteTiIndicators action undocumented
+func (b *SecurityTiIndicatorsCollectionRequestBuilder) DeleteTiIndicators(reqObj *TiIndicatorCollectionDeleteTiIndicatorsRequestParameter) *TiIndicatorCollectionDeleteTiIndicatorsRequestBuilder {
+ bb := &TiIndicatorCollectionDeleteTiIndicatorsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/deleteTiIndicators"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TiIndicatorCollectionDeleteTiIndicatorsRequest struct{ BaseRequest }
+
+//
+func (b *TiIndicatorCollectionDeleteTiIndicatorsRequestBuilder) Request() *TiIndicatorCollectionDeleteTiIndicatorsRequest {
+ return &TiIndicatorCollectionDeleteTiIndicatorsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TiIndicatorCollectionDeleteTiIndicatorsRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]ResultInfo, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]ResultInfo
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]ResultInfo
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *TiIndicatorCollectionDeleteTiIndicatorsRequest) Get(ctx context.Context) ([][]ResultInfo, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestBuilder struct{ BaseRequestBuilder }
+
+// DeleteTiIndicatorsByExternalID action undocumented
+func (b *SecurityTiIndicatorsCollectionRequestBuilder) DeleteTiIndicatorsByExternalID(reqObj *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestParameter) *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestBuilder {
+ bb := &TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/deleteTiIndicatorsByExternalId"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequest struct{ BaseRequest }
+
+//
+func (b *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestBuilder) Request() *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequest {
+ return &TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]ResultInfo, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]ResultInfo
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]ResultInfo
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequest) Get(ctx context.Context) ([][]ResultInfo, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TiIndicatorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TiIndicatorModel.go
new file mode 100644
index 00000000..deb8a11c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TiIndicatorModel.go
@@ -0,0 +1,127 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TiIndicator undocumented
+type TiIndicator struct {
+ // Entity is the base model of TiIndicator
+ Entity
+ // Action undocumented
+ Action *TiAction `json:"action,omitempty"`
+ // ActivityGroupNames undocumented
+ ActivityGroupNames []string `json:"activityGroupNames,omitempty"`
+ // AdditionalInformation undocumented
+ AdditionalInformation *string `json:"additionalInformation,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // Confidence undocumented
+ Confidence *int `json:"confidence,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DiamondModel undocumented
+ DiamondModel *DiamondModel `json:"diamondModel,omitempty"`
+ // DomainName undocumented
+ DomainName *string `json:"domainName,omitempty"`
+ // EmailEncoding undocumented
+ EmailEncoding *string `json:"emailEncoding,omitempty"`
+ // EmailLanguage undocumented
+ EmailLanguage *string `json:"emailLanguage,omitempty"`
+ // EmailRecipient undocumented
+ EmailRecipient *string `json:"emailRecipient,omitempty"`
+ // EmailSenderAddress undocumented
+ EmailSenderAddress *string `json:"emailSenderAddress,omitempty"`
+ // EmailSenderName undocumented
+ EmailSenderName *string `json:"emailSenderName,omitempty"`
+ // EmailSourceDomain undocumented
+ EmailSourceDomain *string `json:"emailSourceDomain,omitempty"`
+ // EmailSourceIPAddress undocumented
+ EmailSourceIPAddress *string `json:"emailSourceIpAddress,omitempty"`
+ // EmailSubject undocumented
+ EmailSubject *string `json:"emailSubject,omitempty"`
+ // EmailXMailer undocumented
+ EmailXMailer *string `json:"emailXMailer,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // FileCompileDateTime undocumented
+ FileCompileDateTime *time.Time `json:"fileCompileDateTime,omitempty"`
+ // FileCreatedDateTime undocumented
+ FileCreatedDateTime *time.Time `json:"fileCreatedDateTime,omitempty"`
+ // FileHashType undocumented
+ FileHashType *FileHashType `json:"fileHashType,omitempty"`
+ // FileHashValue undocumented
+ FileHashValue *string `json:"fileHashValue,omitempty"`
+ // FileMutexName undocumented
+ FileMutexName *string `json:"fileMutexName,omitempty"`
+ // FileName undocumented
+ FileName *string `json:"fileName,omitempty"`
+ // FilePacker undocumented
+ FilePacker *string `json:"filePacker,omitempty"`
+ // FilePath undocumented
+ FilePath *string `json:"filePath,omitempty"`
+ // FileSize undocumented
+ FileSize *int `json:"fileSize,omitempty"`
+ // FileType undocumented
+ FileType *string `json:"fileType,omitempty"`
+ // IngestedDateTime undocumented
+ IngestedDateTime *time.Time `json:"ingestedDateTime,omitempty"`
+ // IsActive undocumented
+ IsActive *bool `json:"isActive,omitempty"`
+ // KillChain undocumented
+ KillChain []string `json:"killChain,omitempty"`
+ // KnownFalsePositives undocumented
+ KnownFalsePositives *string `json:"knownFalsePositives,omitempty"`
+ // LastReportedDateTime undocumented
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // MalwareFamilyNames undocumented
+ MalwareFamilyNames []string `json:"malwareFamilyNames,omitempty"`
+ // NetworkCidrBlock undocumented
+ NetworkCidrBlock *string `json:"networkCidrBlock,omitempty"`
+ // NetworkDestinationAsn undocumented
+ NetworkDestinationAsn *int `json:"networkDestinationAsn,omitempty"`
+ // NetworkDestinationCidrBlock undocumented
+ NetworkDestinationCidrBlock *string `json:"networkDestinationCidrBlock,omitempty"`
+ // NetworkDestinationIPv4 undocumented
+ NetworkDestinationIPv4 *string `json:"networkDestinationIPv4,omitempty"`
+ // NetworkDestinationIPv6 undocumented
+ NetworkDestinationIPv6 *string `json:"networkDestinationIPv6,omitempty"`
+ // NetworkDestinationPort undocumented
+ NetworkDestinationPort *int `json:"networkDestinationPort,omitempty"`
+ // NetworkIPv4 undocumented
+ NetworkIPv4 *string `json:"networkIPv4,omitempty"`
+ // NetworkIPv6 undocumented
+ NetworkIPv6 *string `json:"networkIPv6,omitempty"`
+ // NetworkPort undocumented
+ NetworkPort *int `json:"networkPort,omitempty"`
+ // NetworkProtocol undocumented
+ NetworkProtocol *int `json:"networkProtocol,omitempty"`
+ // NetworkSourceAsn undocumented
+ NetworkSourceAsn *int `json:"networkSourceAsn,omitempty"`
+ // NetworkSourceCidrBlock undocumented
+ NetworkSourceCidrBlock *string `json:"networkSourceCidrBlock,omitempty"`
+ // NetworkSourceIPv4 undocumented
+ NetworkSourceIPv4 *string `json:"networkSourceIPv4,omitempty"`
+ // NetworkSourceIPv6 undocumented
+ NetworkSourceIPv6 *string `json:"networkSourceIPv6,omitempty"`
+ // NetworkSourcePort undocumented
+ NetworkSourcePort *int `json:"networkSourcePort,omitempty"`
+ // PassiveOnly undocumented
+ PassiveOnly *bool `json:"passiveOnly,omitempty"`
+ // Severity undocumented
+ Severity *int `json:"severity,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // TargetProduct undocumented
+ TargetProduct *string `json:"targetProduct,omitempty"`
+ // ThreatType undocumented
+ ThreatType *string `json:"threatType,omitempty"`
+ // TlpLevel undocumented
+ TlpLevel *TlpLevel `json:"tlpLevel,omitempty"`
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+ // UserAgent undocumented
+ UserAgent *string `json:"userAgent,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TiIndicatorRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TiIndicatorRequest.go
new file mode 100644
index 00000000..563d9665
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TiIndicatorRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TiIndicatorRequestBuilder is request builder for TiIndicator
+type TiIndicatorRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TiIndicatorRequest
+func (b *TiIndicatorRequestBuilder) Request() *TiIndicatorRequest {
+ return &TiIndicatorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TiIndicatorRequest is request for TiIndicator
+type TiIndicatorRequest struct{ BaseRequest }
+
+// Get performs GET request for TiIndicator
+func (r *TiIndicatorRequest) Get(ctx context.Context) (resObj *TiIndicator, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TiIndicator
+func (r *TiIndicatorRequest) Update(ctx context.Context, reqObj *TiIndicator) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TiIndicator
+func (r *TiIndicatorRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TimeConstraintModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TimeConstraintModel.go
new file mode 100644
index 00000000..34876da7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TimeConstraintModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TimeConstraint undocumented
+type TimeConstraint struct {
+ // Object is the base model of TimeConstraint
+ Object
+ // ActivityDomain undocumented
+ ActivityDomain *ActivityDomain `json:"activityDomain,omitempty"`
+ // TimeSlots undocumented
+ TimeSlots []TimeSlot `json:"timeSlots,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffItemModel.go
new file mode 100644
index 00000000..acbb9a9d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffItemModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TimeOffItem undocumented
+type TimeOffItem struct {
+ // ScheduleEntity is the base model of TimeOffItem
+ ScheduleEntity
+ // TimeOffReasonID undocumented
+ TimeOffReasonID *string `json:"timeOffReasonId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffModel.go
new file mode 100644
index 00000000..76614c69
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TimeOff undocumented
+type TimeOff struct {
+ // ChangeTrackedEntity is the base model of TimeOff
+ ChangeTrackedEntity
+ // SharedTimeOff undocumented
+ SharedTimeOff *TimeOffItem `json:"sharedTimeOff,omitempty"`
+ // DraftTimeOff undocumented
+ DraftTimeOff *TimeOffItem `json:"draftTimeOff,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffReasonIconTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffReasonIconTypeEnum.go
new file mode 100644
index 00000000..0b44300d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffReasonIconTypeEnum.go
@@ -0,0 +1,185 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TimeOffReasonIconType undocumented
+type TimeOffReasonIconType int
+
+const (
+ // TimeOffReasonIconTypeVNone undocumented
+ TimeOffReasonIconTypeVNone TimeOffReasonIconType = 0
+ // TimeOffReasonIconTypeVCar undocumented
+ TimeOffReasonIconTypeVCar TimeOffReasonIconType = 1
+ // TimeOffReasonIconTypeVCalendar undocumented
+ TimeOffReasonIconTypeVCalendar TimeOffReasonIconType = 2
+ // TimeOffReasonIconTypeVRunning undocumented
+ TimeOffReasonIconTypeVRunning TimeOffReasonIconType = 3
+ // TimeOffReasonIconTypeVPlane undocumented
+ TimeOffReasonIconTypeVPlane TimeOffReasonIconType = 4
+ // TimeOffReasonIconTypeVFirstAid undocumented
+ TimeOffReasonIconTypeVFirstAid TimeOffReasonIconType = 5
+ // TimeOffReasonIconTypeVDoctor undocumented
+ TimeOffReasonIconTypeVDoctor TimeOffReasonIconType = 6
+ // TimeOffReasonIconTypeVNotWorking undocumented
+ TimeOffReasonIconTypeVNotWorking TimeOffReasonIconType = 7
+ // TimeOffReasonIconTypeVClock undocumented
+ TimeOffReasonIconTypeVClock TimeOffReasonIconType = 8
+ // TimeOffReasonIconTypeVJuryDuty undocumented
+ TimeOffReasonIconTypeVJuryDuty TimeOffReasonIconType = 9
+ // TimeOffReasonIconTypeVGlobe undocumented
+ TimeOffReasonIconTypeVGlobe TimeOffReasonIconType = 10
+ // TimeOffReasonIconTypeVCup undocumented
+ TimeOffReasonIconTypeVCup TimeOffReasonIconType = 11
+ // TimeOffReasonIconTypeVPhone undocumented
+ TimeOffReasonIconTypeVPhone TimeOffReasonIconType = 12
+ // TimeOffReasonIconTypeVWeather undocumented
+ TimeOffReasonIconTypeVWeather TimeOffReasonIconType = 13
+ // TimeOffReasonIconTypeVUmbrella undocumented
+ TimeOffReasonIconTypeVUmbrella TimeOffReasonIconType = 14
+ // TimeOffReasonIconTypeVPiggyBank undocumented
+ TimeOffReasonIconTypeVPiggyBank TimeOffReasonIconType = 15
+ // TimeOffReasonIconTypeVDog undocumented
+ TimeOffReasonIconTypeVDog TimeOffReasonIconType = 16
+ // TimeOffReasonIconTypeVCake undocumented
+ TimeOffReasonIconTypeVCake TimeOffReasonIconType = 17
+ // TimeOffReasonIconTypeVTrafficCone undocumented
+ TimeOffReasonIconTypeVTrafficCone TimeOffReasonIconType = 18
+ // TimeOffReasonIconTypeVPin undocumented
+ TimeOffReasonIconTypeVPin TimeOffReasonIconType = 19
+ // TimeOffReasonIconTypeVSunny undocumented
+ TimeOffReasonIconTypeVSunny TimeOffReasonIconType = 20
+ // TimeOffReasonIconTypeVUnknownFutureValue undocumented
+ TimeOffReasonIconTypeVUnknownFutureValue TimeOffReasonIconType = 21
+)
+
+// TimeOffReasonIconTypePNone returns a pointer to TimeOffReasonIconTypeVNone
+func TimeOffReasonIconTypePNone() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVNone
+ return &v
+}
+
+// TimeOffReasonIconTypePCar returns a pointer to TimeOffReasonIconTypeVCar
+func TimeOffReasonIconTypePCar() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVCar
+ return &v
+}
+
+// TimeOffReasonIconTypePCalendar returns a pointer to TimeOffReasonIconTypeVCalendar
+func TimeOffReasonIconTypePCalendar() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVCalendar
+ return &v
+}
+
+// TimeOffReasonIconTypePRunning returns a pointer to TimeOffReasonIconTypeVRunning
+func TimeOffReasonIconTypePRunning() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVRunning
+ return &v
+}
+
+// TimeOffReasonIconTypePPlane returns a pointer to TimeOffReasonIconTypeVPlane
+func TimeOffReasonIconTypePPlane() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVPlane
+ return &v
+}
+
+// TimeOffReasonIconTypePFirstAid returns a pointer to TimeOffReasonIconTypeVFirstAid
+func TimeOffReasonIconTypePFirstAid() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVFirstAid
+ return &v
+}
+
+// TimeOffReasonIconTypePDoctor returns a pointer to TimeOffReasonIconTypeVDoctor
+func TimeOffReasonIconTypePDoctor() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVDoctor
+ return &v
+}
+
+// TimeOffReasonIconTypePNotWorking returns a pointer to TimeOffReasonIconTypeVNotWorking
+func TimeOffReasonIconTypePNotWorking() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVNotWorking
+ return &v
+}
+
+// TimeOffReasonIconTypePClock returns a pointer to TimeOffReasonIconTypeVClock
+func TimeOffReasonIconTypePClock() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVClock
+ return &v
+}
+
+// TimeOffReasonIconTypePJuryDuty returns a pointer to TimeOffReasonIconTypeVJuryDuty
+func TimeOffReasonIconTypePJuryDuty() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVJuryDuty
+ return &v
+}
+
+// TimeOffReasonIconTypePGlobe returns a pointer to TimeOffReasonIconTypeVGlobe
+func TimeOffReasonIconTypePGlobe() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVGlobe
+ return &v
+}
+
+// TimeOffReasonIconTypePCup returns a pointer to TimeOffReasonIconTypeVCup
+func TimeOffReasonIconTypePCup() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVCup
+ return &v
+}
+
+// TimeOffReasonIconTypePPhone returns a pointer to TimeOffReasonIconTypeVPhone
+func TimeOffReasonIconTypePPhone() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVPhone
+ return &v
+}
+
+// TimeOffReasonIconTypePWeather returns a pointer to TimeOffReasonIconTypeVWeather
+func TimeOffReasonIconTypePWeather() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVWeather
+ return &v
+}
+
+// TimeOffReasonIconTypePUmbrella returns a pointer to TimeOffReasonIconTypeVUmbrella
+func TimeOffReasonIconTypePUmbrella() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVUmbrella
+ return &v
+}
+
+// TimeOffReasonIconTypePPiggyBank returns a pointer to TimeOffReasonIconTypeVPiggyBank
+func TimeOffReasonIconTypePPiggyBank() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVPiggyBank
+ return &v
+}
+
+// TimeOffReasonIconTypePDog returns a pointer to TimeOffReasonIconTypeVDog
+func TimeOffReasonIconTypePDog() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVDog
+ return &v
+}
+
+// TimeOffReasonIconTypePCake returns a pointer to TimeOffReasonIconTypeVCake
+func TimeOffReasonIconTypePCake() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVCake
+ return &v
+}
+
+// TimeOffReasonIconTypePTrafficCone returns a pointer to TimeOffReasonIconTypeVTrafficCone
+func TimeOffReasonIconTypePTrafficCone() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVTrafficCone
+ return &v
+}
+
+// TimeOffReasonIconTypePPin returns a pointer to TimeOffReasonIconTypeVPin
+func TimeOffReasonIconTypePPin() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVPin
+ return &v
+}
+
+// TimeOffReasonIconTypePSunny returns a pointer to TimeOffReasonIconTypeVSunny
+func TimeOffReasonIconTypePSunny() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVSunny
+ return &v
+}
+
+// TimeOffReasonIconTypePUnknownFutureValue returns a pointer to TimeOffReasonIconTypeVUnknownFutureValue
+func TimeOffReasonIconTypePUnknownFutureValue() *TimeOffReasonIconType {
+ v := TimeOffReasonIconTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffReasonModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffReasonModel.go
new file mode 100644
index 00000000..5ba669e4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffReasonModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TimeOffReason undocumented
+type TimeOffReason struct {
+ // ChangeTrackedEntity is the base model of TimeOffReason
+ ChangeTrackedEntity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IconType undocumented
+ IconType *TimeOffReasonIconType `json:"iconType,omitempty"`
+ // IsActive undocumented
+ IsActive *bool `json:"isActive,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffReasonRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffReasonRequest.go
new file mode 100644
index 00000000..8baa5c95
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffReasonRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TimeOffReasonRequestBuilder is request builder for TimeOffReason
+type TimeOffReasonRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TimeOffReasonRequest
+func (b *TimeOffReasonRequestBuilder) Request() *TimeOffReasonRequest {
+ return &TimeOffReasonRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TimeOffReasonRequest is request for TimeOffReason
+type TimeOffReasonRequest struct{ BaseRequest }
+
+// Get performs GET request for TimeOffReason
+func (r *TimeOffReasonRequest) Get(ctx context.Context) (resObj *TimeOffReason, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TimeOffReason
+func (r *TimeOffReasonRequest) Update(ctx context.Context, reqObj *TimeOffReason) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TimeOffReason
+func (r *TimeOffReasonRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffRequest.go
new file mode 100644
index 00000000..7f5c8862
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TimeOffRequestBuilder is request builder for TimeOff
+type TimeOffRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TimeOffRequest
+func (b *TimeOffRequestBuilder) Request() *TimeOffRequest {
+ return &TimeOffRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TimeOffRequest is request for TimeOff
+type TimeOffRequest struct{ BaseRequest }
+
+// Get performs GET request for TimeOff
+func (r *TimeOffRequest) Get(ctx context.Context) (resObj *TimeOff, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TimeOff
+func (r *TimeOffRequest) Update(ctx context.Context, reqObj *TimeOff) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TimeOff
+func (r *TimeOffRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffRequestObjectModel.go
new file mode 100644
index 00000000..bc727be6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffRequestObjectModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TimeOffRequestObject undocumented
+type TimeOffRequestObject struct {
+ // ScheduleChangeRequestObject is the base model of TimeOffRequestObject
+ ScheduleChangeRequestObject
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // TimeOffReasonID undocumented
+ TimeOffReasonID *string `json:"timeOffReasonId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffRequestObjectRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffRequestObjectRequest.go
new file mode 100644
index 00000000..f41541f5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TimeOffRequestObjectRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TimeOffRequestObjectRequestBuilder is request builder for TimeOffRequestObject
+type TimeOffRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TimeOffRequestObjectRequest
+func (b *TimeOffRequestObjectRequestBuilder) Request() *TimeOffRequestObjectRequest {
+ return &TimeOffRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TimeOffRequestObjectRequest is request for TimeOffRequestObject
+type TimeOffRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for TimeOffRequestObject
+func (r *TimeOffRequestObjectRequest) Get(ctx context.Context) (resObj *TimeOffRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TimeOffRequestObject
+func (r *TimeOffRequestObjectRequest) Update(ctx context.Context, reqObj *TimeOffRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TimeOffRequestObject
+func (r *TimeOffRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TimeSlotModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TimeSlotModel.go
new file mode 100644
index 00000000..fc54d99f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TimeSlotModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TimeSlot undocumented
+type TimeSlot struct {
+ // Object is the base model of TimeSlot
+ Object
+ // Start undocumented
+ Start *DateTimeTimeZone `json:"start,omitempty"`
+ // End undocumented
+ End *DateTimeTimeZone `json:"end,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TimeZoneBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TimeZoneBaseModel.go
new file mode 100644
index 00000000..0bf69046
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TimeZoneBaseModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TimeZoneBase undocumented
+type TimeZoneBase struct {
+ // Object is the base model of TimeZoneBase
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TimeZoneInformationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TimeZoneInformationModel.go
new file mode 100644
index 00000000..7295be71
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TimeZoneInformationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TimeZoneInformation undocumented
+type TimeZoneInformation struct {
+ // Object is the base model of TimeZoneInformation
+ Object
+ // Alias undocumented
+ Alias *string `json:"alias,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TimeZoneStandardEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/TimeZoneStandardEnum.go
new file mode 100644
index 00000000..8b433178
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TimeZoneStandardEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TimeZoneStandard undocumented
+type TimeZoneStandard int
+
+const (
+ // TimeZoneStandardVWindows undocumented
+ TimeZoneStandardVWindows TimeZoneStandard = 0
+ // TimeZoneStandardVIana undocumented
+ TimeZoneStandardVIana TimeZoneStandard = 1
+)
+
+// TimeZoneStandardPWindows returns a pointer to TimeZoneStandardVWindows
+func TimeZoneStandardPWindows() *TimeZoneStandard {
+ v := TimeZoneStandardVWindows
+ return &v
+}
+
+// TimeZoneStandardPIana returns a pointer to TimeZoneStandardVIana
+func TimeZoneStandardPIana() *TimeZoneStandard {
+ v := TimeZoneStandardVIana
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TlpLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/TlpLevelEnum.go
new file mode 100644
index 00000000..0bd21839
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TlpLevelEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TlpLevel undocumented
+type TlpLevel int
+
+const (
+ // TlpLevelVUnknown undocumented
+ TlpLevelVUnknown TlpLevel = 0
+ // TlpLevelVWhite undocumented
+ TlpLevelVWhite TlpLevel = 1
+ // TlpLevelVGreen undocumented
+ TlpLevelVGreen TlpLevel = 2
+ // TlpLevelVAmber undocumented
+ TlpLevelVAmber TlpLevel = 3
+ // TlpLevelVRed undocumented
+ TlpLevelVRed TlpLevel = 4
+ // TlpLevelVUnknownFutureValue undocumented
+ TlpLevelVUnknownFutureValue TlpLevel = 127
+)
+
+// TlpLevelPUnknown returns a pointer to TlpLevelVUnknown
+func TlpLevelPUnknown() *TlpLevel {
+ v := TlpLevelVUnknown
+ return &v
+}
+
+// TlpLevelPWhite returns a pointer to TlpLevelVWhite
+func TlpLevelPWhite() *TlpLevel {
+ v := TlpLevelVWhite
+ return &v
+}
+
+// TlpLevelPGreen returns a pointer to TlpLevelVGreen
+func TlpLevelPGreen() *TlpLevel {
+ v := TlpLevelVGreen
+ return &v
+}
+
+// TlpLevelPAmber returns a pointer to TlpLevelVAmber
+func TlpLevelPAmber() *TlpLevel {
+ v := TlpLevelVAmber
+ return &v
+}
+
+// TlpLevelPRed returns a pointer to TlpLevelVRed
+func TlpLevelPRed() *TlpLevel {
+ v := TlpLevelVRed
+ return &v
+}
+
+// TlpLevelPUnknownFutureValue returns a pointer to TlpLevelVUnknownFutureValue
+func TlpLevelPUnknownFutureValue() *TlpLevel {
+ v := TlpLevelVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TokenIssuerTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/TokenIssuerTypeEnum.go
new file mode 100644
index 00000000..75ba556a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TokenIssuerTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TokenIssuerType undocumented
+type TokenIssuerType int
+
+const (
+ // TokenIssuerTypeVAzureAD undocumented
+ TokenIssuerTypeVAzureAD TokenIssuerType = 0
+ // TokenIssuerTypeVADFederationServices undocumented
+ TokenIssuerTypeVADFederationServices TokenIssuerType = 1
+ // TokenIssuerTypeVUnknownFutureValue undocumented
+ TokenIssuerTypeVUnknownFutureValue TokenIssuerType = 2
+)
+
+// TokenIssuerTypePAzureAD returns a pointer to TokenIssuerTypeVAzureAD
+func TokenIssuerTypePAzureAD() *TokenIssuerType {
+ v := TokenIssuerTypeVAzureAD
+ return &v
+}
+
+// TokenIssuerTypePADFederationServices returns a pointer to TokenIssuerTypeVADFederationServices
+func TokenIssuerTypePADFederationServices() *TokenIssuerType {
+ v := TokenIssuerTypeVADFederationServices
+ return &v
+}
+
+// TokenIssuerTypePUnknownFutureValue returns a pointer to TokenIssuerTypeVUnknownFutureValue
+func TokenIssuerTypePUnknownFutureValue() *TokenIssuerType {
+ v := TokenIssuerTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TokenMeetingInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TokenMeetingInfoModel.go
new file mode 100644
index 00000000..bdc1164c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TokenMeetingInfoModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TokenMeetingInfo undocumented
+type TokenMeetingInfo struct {
+ // MeetingInfo is the base model of TokenMeetingInfo
+ MeetingInfo
+ // Token undocumented
+ Token *string `json:"token,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ToneEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ToneEnum.go
new file mode 100644
index 00000000..1af29b07
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ToneEnum.go
@@ -0,0 +1,145 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Tone undocumented
+type Tone int
+
+const (
+ // ToneVTone0 undocumented
+ ToneVTone0 Tone = 0
+ // ToneVTone1 undocumented
+ ToneVTone1 Tone = 1
+ // ToneVTone2 undocumented
+ ToneVTone2 Tone = 2
+ // ToneVTone3 undocumented
+ ToneVTone3 Tone = 3
+ // ToneVTone4 undocumented
+ ToneVTone4 Tone = 4
+ // ToneVTone5 undocumented
+ ToneVTone5 Tone = 5
+ // ToneVTone6 undocumented
+ ToneVTone6 Tone = 6
+ // ToneVTone7 undocumented
+ ToneVTone7 Tone = 7
+ // ToneVTone8 undocumented
+ ToneVTone8 Tone = 8
+ // ToneVTone9 undocumented
+ ToneVTone9 Tone = 9
+ // ToneVStar undocumented
+ ToneVStar Tone = 10
+ // ToneVPound undocumented
+ ToneVPound Tone = 11
+ // ToneVA undocumented
+ ToneVA Tone = 12
+ // ToneVB undocumented
+ ToneVB Tone = 13
+ // ToneVC undocumented
+ ToneVC Tone = 14
+ // ToneVD undocumented
+ ToneVD Tone = 15
+ // ToneVFlash undocumented
+ ToneVFlash Tone = 16
+)
+
+// TonePTone0 returns a pointer to ToneVTone0
+func TonePTone0() *Tone {
+ v := ToneVTone0
+ return &v
+}
+
+// TonePTone1 returns a pointer to ToneVTone1
+func TonePTone1() *Tone {
+ v := ToneVTone1
+ return &v
+}
+
+// TonePTone2 returns a pointer to ToneVTone2
+func TonePTone2() *Tone {
+ v := ToneVTone2
+ return &v
+}
+
+// TonePTone3 returns a pointer to ToneVTone3
+func TonePTone3() *Tone {
+ v := ToneVTone3
+ return &v
+}
+
+// TonePTone4 returns a pointer to ToneVTone4
+func TonePTone4() *Tone {
+ v := ToneVTone4
+ return &v
+}
+
+// TonePTone5 returns a pointer to ToneVTone5
+func TonePTone5() *Tone {
+ v := ToneVTone5
+ return &v
+}
+
+// TonePTone6 returns a pointer to ToneVTone6
+func TonePTone6() *Tone {
+ v := ToneVTone6
+ return &v
+}
+
+// TonePTone7 returns a pointer to ToneVTone7
+func TonePTone7() *Tone {
+ v := ToneVTone7
+ return &v
+}
+
+// TonePTone8 returns a pointer to ToneVTone8
+func TonePTone8() *Tone {
+ v := ToneVTone8
+ return &v
+}
+
+// TonePTone9 returns a pointer to ToneVTone9
+func TonePTone9() *Tone {
+ v := ToneVTone9
+ return &v
+}
+
+// TonePStar returns a pointer to ToneVStar
+func TonePStar() *Tone {
+ v := ToneVStar
+ return &v
+}
+
+// TonePPound returns a pointer to ToneVPound
+func TonePPound() *Tone {
+ v := ToneVPound
+ return &v
+}
+
+// TonePA returns a pointer to ToneVA
+func TonePA() *Tone {
+ v := ToneVA
+ return &v
+}
+
+// TonePB returns a pointer to ToneVB
+func TonePB() *Tone {
+ v := ToneVB
+ return &v
+}
+
+// TonePC returns a pointer to ToneVC
+func TonePC() *Tone {
+ v := ToneVC
+ return &v
+}
+
+// TonePD returns a pointer to ToneVD
+func TonePD() *Tone {
+ v := ToneVD
+ return &v
+}
+
+// TonePFlash returns a pointer to ToneVFlash
+func TonePFlash() *Tone {
+ v := ToneVFlash
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ToneInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ToneInfoModel.go
new file mode 100644
index 00000000..5675acba
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ToneInfoModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ToneInfo undocumented
+type ToneInfo struct {
+ // Object is the base model of ToneInfo
+ Object
+ // SequenceID undocumented
+ SequenceID *int `json:"sequenceId,omitempty"`
+ // Tone undocumented
+ Tone *Tone `json:"tone,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TrendingModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TrendingModel.go
new file mode 100644
index 00000000..e7b979f3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TrendingModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Trending undocumented
+type Trending struct {
+ // Entity is the base model of Trending
+ Entity
+ // Weight undocumented
+ Weight *float64 `json:"weight,omitempty"`
+ // ResourceVisualization undocumented
+ ResourceVisualization *ResourceVisualization `json:"resourceVisualization,omitempty"`
+ // ResourceReference undocumented
+ ResourceReference *ResourceReference `json:"resourceReference,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Resource undocumented
+ Resource *Entity `json:"resource,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TrendingRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TrendingRequest.go
new file mode 100644
index 00000000..22148260
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TrendingRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TrendingRequestBuilder is request builder for Trending
+type TrendingRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TrendingRequest
+func (b *TrendingRequestBuilder) Request() *TrendingRequest {
+ return &TrendingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TrendingRequest is request for Trending
+type TrendingRequest struct{ BaseRequest }
+
+// Get performs GET request for Trending
+func (r *TrendingRequest) Get(ctx context.Context) (resObj *Trending, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Trending
+func (r *TrendingRequest) Update(ctx context.Context, reqObj *Trending) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Trending
+func (r *TrendingRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Resource is navigation property
+func (b *TrendingRequestBuilder) Resource() *EntityRequestBuilder {
+ bb := &EntityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resource"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkKeyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkKeyModel.go
new file mode 100644
index 00000000..be5403fe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkKeyModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TrustFrameworkKey undocumented
+type TrustFrameworkKey struct {
+ // Object is the base model of TrustFrameworkKey
+ Object
+ // K undocumented
+ K *string `json:"k,omitempty"`
+ // X5c undocumented
+ X5c []string `json:"x5c,omitempty"`
+ // X5t undocumented
+ X5t *string `json:"x5t,omitempty"`
+ // Kty undocumented
+ Kty *string `json:"kty,omitempty"`
+ // Use undocumented
+ Use *string `json:"use,omitempty"`
+ // Exp undocumented
+ Exp *int `json:"exp,omitempty"`
+ // Nbf undocumented
+ Nbf *int `json:"nbf,omitempty"`
+ // Kid undocumented
+ Kid *string `json:"kid,omitempty"`
+ // E undocumented
+ E *string `json:"e,omitempty"`
+ // N undocumented
+ N *string `json:"n,omitempty"`
+ // D undocumented
+ D *string `json:"d,omitempty"`
+ // P undocumented
+ P *string `json:"p,omitempty"`
+ // Q undocumented
+ Q *string `json:"q,omitempty"`
+ // Dp undocumented
+ Dp *string `json:"dp,omitempty"`
+ // Dq undocumented
+ Dq *string `json:"dq,omitempty"`
+ // Qi undocumented
+ Qi *string `json:"qi,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkKeySetAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkKeySetAction.go
new file mode 100644
index 00000000..7a46b522
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkKeySetAction.go
@@ -0,0 +1,151 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TrustFrameworkKeySetGenerateKeyRequestParameter undocumented
+type TrustFrameworkKeySetGenerateKeyRequestParameter struct {
+ // Use undocumented
+ Use *string `json:"use,omitempty"`
+ // Kty undocumented
+ Kty *string `json:"kty,omitempty"`
+ // Nbf undocumented
+ Nbf *int `json:"nbf,omitempty"`
+ // Exp undocumented
+ Exp *int `json:"exp,omitempty"`
+}
+
+// TrustFrameworkKeySetUploadSecretRequestParameter undocumented
+type TrustFrameworkKeySetUploadSecretRequestParameter struct {
+ // Use undocumented
+ Use *string `json:"use,omitempty"`
+ // K undocumented
+ K *string `json:"k,omitempty"`
+ // Nbf undocumented
+ Nbf *int `json:"nbf,omitempty"`
+ // Exp undocumented
+ Exp *int `json:"exp,omitempty"`
+}
+
+// TrustFrameworkKeySetUploadCertificateRequestParameter undocumented
+type TrustFrameworkKeySetUploadCertificateRequestParameter struct {
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+}
+
+// TrustFrameworkKeySetUploadPkcs12RequestParameter undocumented
+type TrustFrameworkKeySetUploadPkcs12RequestParameter struct {
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+ // Password undocumented
+ Password *string `json:"password,omitempty"`
+}
+
+//
+type TrustFrameworkKeySetGenerateKeyRequestBuilder struct{ BaseRequestBuilder }
+
+// GenerateKey action undocumented
+func (b *TrustFrameworkKeySetRequestBuilder) GenerateKey(reqObj *TrustFrameworkKeySetGenerateKeyRequestParameter) *TrustFrameworkKeySetGenerateKeyRequestBuilder {
+ bb := &TrustFrameworkKeySetGenerateKeyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/generateKey"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TrustFrameworkKeySetGenerateKeyRequest struct{ BaseRequest }
+
+//
+func (b *TrustFrameworkKeySetGenerateKeyRequestBuilder) Request() *TrustFrameworkKeySetGenerateKeyRequest {
+ return &TrustFrameworkKeySetGenerateKeyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TrustFrameworkKeySetGenerateKeyRequest) Post(ctx context.Context) (resObj *TrustFrameworkKey, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type TrustFrameworkKeySetUploadSecretRequestBuilder struct{ BaseRequestBuilder }
+
+// UploadSecret action undocumented
+func (b *TrustFrameworkKeySetRequestBuilder) UploadSecret(reqObj *TrustFrameworkKeySetUploadSecretRequestParameter) *TrustFrameworkKeySetUploadSecretRequestBuilder {
+ bb := &TrustFrameworkKeySetUploadSecretRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/uploadSecret"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TrustFrameworkKeySetUploadSecretRequest struct{ BaseRequest }
+
+//
+func (b *TrustFrameworkKeySetUploadSecretRequestBuilder) Request() *TrustFrameworkKeySetUploadSecretRequest {
+ return &TrustFrameworkKeySetUploadSecretRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TrustFrameworkKeySetUploadSecretRequest) Post(ctx context.Context) (resObj *TrustFrameworkKey, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type TrustFrameworkKeySetUploadCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// UploadCertificate action undocumented
+func (b *TrustFrameworkKeySetRequestBuilder) UploadCertificate(reqObj *TrustFrameworkKeySetUploadCertificateRequestParameter) *TrustFrameworkKeySetUploadCertificateRequestBuilder {
+ bb := &TrustFrameworkKeySetUploadCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/uploadCertificate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TrustFrameworkKeySetUploadCertificateRequest struct{ BaseRequest }
+
+//
+func (b *TrustFrameworkKeySetUploadCertificateRequestBuilder) Request() *TrustFrameworkKeySetUploadCertificateRequest {
+ return &TrustFrameworkKeySetUploadCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TrustFrameworkKeySetUploadCertificateRequest) Post(ctx context.Context) (resObj *TrustFrameworkKey, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type TrustFrameworkKeySetUploadPkcs12RequestBuilder struct{ BaseRequestBuilder }
+
+// UploadPkcs12 action undocumented
+func (b *TrustFrameworkKeySetRequestBuilder) UploadPkcs12(reqObj *TrustFrameworkKeySetUploadPkcs12RequestParameter) *TrustFrameworkKeySetUploadPkcs12RequestBuilder {
+ bb := &TrustFrameworkKeySetUploadPkcs12RequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/uploadPkcs12"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TrustFrameworkKeySetUploadPkcs12Request struct{ BaseRequest }
+
+//
+func (b *TrustFrameworkKeySetUploadPkcs12RequestBuilder) Request() *TrustFrameworkKeySetUploadPkcs12Request {
+ return &TrustFrameworkKeySetUploadPkcs12Request{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TrustFrameworkKeySetUploadPkcs12Request) Post(ctx context.Context) (resObj *TrustFrameworkKey, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkKeySetModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkKeySetModel.go
new file mode 100644
index 00000000..da6ef35f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkKeySetModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TrustFrameworkKeySet undocumented
+type TrustFrameworkKeySet struct {
+ // Entity is the base model of TrustFrameworkKeySet
+ Entity
+ // Keys undocumented
+ Keys []TrustFrameworkKey `json:"keys,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkKeySetRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkKeySetRequest.go
new file mode 100644
index 00000000..e98ae8a3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkKeySetRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TrustFrameworkKeySetRequestBuilder is request builder for TrustFrameworkKeySet
+type TrustFrameworkKeySetRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TrustFrameworkKeySetRequest
+func (b *TrustFrameworkKeySetRequestBuilder) Request() *TrustFrameworkKeySetRequest {
+ return &TrustFrameworkKeySetRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TrustFrameworkKeySetRequest is request for TrustFrameworkKeySet
+type TrustFrameworkKeySetRequest struct{ BaseRequest }
+
+// Get performs GET request for TrustFrameworkKeySet
+func (r *TrustFrameworkKeySetRequest) Get(ctx context.Context) (resObj *TrustFrameworkKeySet, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TrustFrameworkKeySet
+func (r *TrustFrameworkKeySetRequest) Update(ctx context.Context, reqObj *TrustFrameworkKeySet) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TrustFrameworkKeySet
+func (r *TrustFrameworkKeySetRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkModel.go
new file mode 100644
index 00000000..919b6315
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TrustFramework undocumented
+type TrustFramework struct {
+ // Entity is the base model of TrustFramework
+ Entity
+ // Policies undocumented
+ Policies []TrustFrameworkPolicy `json:"policies,omitempty"`
+ // KeySets undocumented
+ KeySets []TrustFrameworkKeySet `json:"keySets,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkPolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkPolicyModel.go
new file mode 100644
index 00000000..27d394b0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkPolicyModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TrustFrameworkPolicy undocumented
+type TrustFrameworkPolicy struct {
+ // Entity is the base model of TrustFrameworkPolicy
+ Entity
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkPolicyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkPolicyRequest.go
new file mode 100644
index 00000000..683bd14d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkPolicyRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TrustFrameworkPolicyRequestBuilder is request builder for TrustFrameworkPolicy
+type TrustFrameworkPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TrustFrameworkPolicyRequest
+func (b *TrustFrameworkPolicyRequestBuilder) Request() *TrustFrameworkPolicyRequest {
+ return &TrustFrameworkPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TrustFrameworkPolicyRequest is request for TrustFrameworkPolicy
+type TrustFrameworkPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for TrustFrameworkPolicy
+func (r *TrustFrameworkPolicyRequest) Get(ctx context.Context) (resObj *TrustFrameworkPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TrustFrameworkPolicy
+func (r *TrustFrameworkPolicyRequest) Update(ctx context.Context, reqObj *TrustFrameworkPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TrustFrameworkPolicy
+func (r *TrustFrameworkPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkRequest.go
new file mode 100644
index 00000000..7f9c1226
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TrustFrameworkRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// TrustFrameworkRequestBuilder is request builder for TrustFramework
+type TrustFrameworkRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TrustFrameworkRequest
+func (b *TrustFrameworkRequestBuilder) Request() *TrustFrameworkRequest {
+ return &TrustFrameworkRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TrustFrameworkRequest is request for TrustFramework
+type TrustFrameworkRequest struct{ BaseRequest }
+
+// Get performs GET request for TrustFramework
+func (r *TrustFrameworkRequest) Get(ctx context.Context) (resObj *TrustFramework, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TrustFramework
+func (r *TrustFrameworkRequest) Update(ctx context.Context, reqObj *TrustFramework) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TrustFramework
+func (r *TrustFrameworkRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// KeySets returns request builder for TrustFrameworkKeySet collection
+func (b *TrustFrameworkRequestBuilder) KeySets() *TrustFrameworkKeySetsCollectionRequestBuilder {
+ bb := &TrustFrameworkKeySetsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/keySets"
+ return bb
+}
+
+// TrustFrameworkKeySetsCollectionRequestBuilder is request builder for TrustFrameworkKeySet collection
+type TrustFrameworkKeySetsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TrustFrameworkKeySet collection
+func (b *TrustFrameworkKeySetsCollectionRequestBuilder) Request() *TrustFrameworkKeySetsCollectionRequest {
+ return &TrustFrameworkKeySetsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TrustFrameworkKeySet item
+func (b *TrustFrameworkKeySetsCollectionRequestBuilder) ID(id string) *TrustFrameworkKeySetRequestBuilder {
+ bb := &TrustFrameworkKeySetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TrustFrameworkKeySetsCollectionRequest is request for TrustFrameworkKeySet collection
+type TrustFrameworkKeySetsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TrustFrameworkKeySet collection
+func (r *TrustFrameworkKeySetsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TrustFrameworkKeySet, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TrustFrameworkKeySet
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TrustFrameworkKeySet
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TrustFrameworkKeySet collection
+func (r *TrustFrameworkKeySetsCollectionRequest) Get(ctx context.Context) ([]TrustFrameworkKeySet, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TrustFrameworkKeySet collection
+func (r *TrustFrameworkKeySetsCollectionRequest) Add(ctx context.Context, reqObj *TrustFrameworkKeySet) (resObj *TrustFrameworkKeySet, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Policies returns request builder for TrustFrameworkPolicy collection
+func (b *TrustFrameworkRequestBuilder) Policies() *TrustFrameworkPoliciesCollectionRequestBuilder {
+ bb := &TrustFrameworkPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policies"
+ return bb
+}
+
+// TrustFrameworkPoliciesCollectionRequestBuilder is request builder for TrustFrameworkPolicy collection
+type TrustFrameworkPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TrustFrameworkPolicy collection
+func (b *TrustFrameworkPoliciesCollectionRequestBuilder) Request() *TrustFrameworkPoliciesCollectionRequest {
+ return &TrustFrameworkPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TrustFrameworkPolicy item
+func (b *TrustFrameworkPoliciesCollectionRequestBuilder) ID(id string) *TrustFrameworkPolicyRequestBuilder {
+ bb := &TrustFrameworkPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TrustFrameworkPoliciesCollectionRequest is request for TrustFrameworkPolicy collection
+type TrustFrameworkPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TrustFrameworkPolicy collection
+func (r *TrustFrameworkPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TrustFrameworkPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TrustFrameworkPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TrustFrameworkPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TrustFrameworkPolicy collection
+func (r *TrustFrameworkPoliciesCollectionRequest) Get(ctx context.Context) ([]TrustFrameworkPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TrustFrameworkPolicy collection
+func (r *TrustFrameworkPoliciesCollectionRequest) Add(ctx context.Context, reqObj *TrustFrameworkPolicy) (resObj *TrustFrameworkPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/TypedEmailAddressModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/TypedEmailAddressModel.go
new file mode 100644
index 00000000..f930901b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/TypedEmailAddressModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TypedEmailAddress undocumented
+type TypedEmailAddress struct {
+ // EmailAddress is the base model of TypedEmailAddress
+ EmailAddress
+ // Type undocumented
+ Type *EmailType `json:"type,omitempty"`
+ // OtherLabel undocumented
+ OtherLabel *string `json:"otherLabel,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/URLAssessmentRequestObjectModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/URLAssessmentRequestObjectModel.go
new file mode 100644
index 00000000..9a15fed9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/URLAssessmentRequestObjectModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// URLAssessmentRequestObject undocumented
+type URLAssessmentRequestObject struct {
+ // ThreatAssessmentRequestObject is the base model of URLAssessmentRequestObject
+ ThreatAssessmentRequestObject
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UnaryManagementConditionExpressionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UnaryManagementConditionExpressionModel.go
new file mode 100644
index 00000000..1f7494f3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UnaryManagementConditionExpressionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UnaryManagementConditionExpression undocumented
+type UnaryManagementConditionExpression struct {
+ // ManagementConditionExpressionModel is the base model of UnaryManagementConditionExpression
+ ManagementConditionExpressionModel
+ // Operator The operator used in the evaluation of the unary operation.
+ Operator *UnaryManagementConditionExpressionOperatorType `json:"operator,omitempty"`
+ // Operand The operand of the unary operation.
+ Operand *ManagementConditionExpressionModel `json:"operand,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UnaryManagementConditionExpressionOperatorTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/UnaryManagementConditionExpressionOperatorTypeEnum.go
new file mode 100644
index 00000000..bc2d162d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UnaryManagementConditionExpressionOperatorTypeEnum.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UnaryManagementConditionExpressionOperatorType undocumented
+type UnaryManagementConditionExpressionOperatorType int
+
+const (
+ // UnaryManagementConditionExpressionOperatorTypeVNot undocumented
+ UnaryManagementConditionExpressionOperatorTypeVNot UnaryManagementConditionExpressionOperatorType = 0
+)
+
+// UnaryManagementConditionExpressionOperatorTypePNot returns a pointer to UnaryManagementConditionExpressionOperatorTypeVNot
+func UnaryManagementConditionExpressionOperatorTypePNot() *UnaryManagementConditionExpressionOperatorType {
+ v := UnaryManagementConditionExpressionOperatorTypeVNot
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UnfamiliarLocationRiskEventModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UnfamiliarLocationRiskEventModel.go
new file mode 100644
index 00000000..09bca98a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UnfamiliarLocationRiskEventModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UnfamiliarLocationRiskEvent undocumented
+type UnfamiliarLocationRiskEvent struct {
+ // LocatedRiskEvent is the base model of UnfamiliarLocationRiskEvent
+ LocatedRiskEvent
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UnfamiliarLocationRiskEventRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UnfamiliarLocationRiskEventRequest.go
new file mode 100644
index 00000000..52cea47e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UnfamiliarLocationRiskEventRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UnfamiliarLocationRiskEventRequestBuilder is request builder for UnfamiliarLocationRiskEvent
+type UnfamiliarLocationRiskEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UnfamiliarLocationRiskEventRequest
+func (b *UnfamiliarLocationRiskEventRequestBuilder) Request() *UnfamiliarLocationRiskEventRequest {
+ return &UnfamiliarLocationRiskEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UnfamiliarLocationRiskEventRequest is request for UnfamiliarLocationRiskEvent
+type UnfamiliarLocationRiskEventRequest struct{ BaseRequest }
+
+// Get performs GET request for UnfamiliarLocationRiskEvent
+func (r *UnfamiliarLocationRiskEventRequest) Get(ctx context.Context) (resObj *UnfamiliarLocationRiskEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UnfamiliarLocationRiskEvent
+func (r *UnfamiliarLocationRiskEventRequest) Update(ctx context.Context, reqObj *UnfamiliarLocationRiskEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UnfamiliarLocationRiskEvent
+func (r *UnfamiliarLocationRiskEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UnifiedRoleAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UnifiedRoleAssignmentModel.go
new file mode 100644
index 00000000..14306bb9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UnifiedRoleAssignmentModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UnifiedRoleAssignment undocumented
+type UnifiedRoleAssignment struct {
+ // Entity is the base model of UnifiedRoleAssignment
+ Entity
+ // PrincipalID undocumented
+ PrincipalID *string `json:"principalId,omitempty"`
+ // ResourceScope undocumented
+ ResourceScope *string `json:"resourceScope,omitempty"`
+ // RoleDefinitionID undocumented
+ RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
+ // Principal undocumented
+ Principal *DirectoryObject `json:"principal,omitempty"`
+ // RoleDefinition undocumented
+ RoleDefinition *UnifiedRoleDefinition `json:"roleDefinition,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UnifiedRoleAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UnifiedRoleAssignmentRequest.go
new file mode 100644
index 00000000..53b3576d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UnifiedRoleAssignmentRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UnifiedRoleAssignmentRequestBuilder is request builder for UnifiedRoleAssignment
+type UnifiedRoleAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UnifiedRoleAssignmentRequest
+func (b *UnifiedRoleAssignmentRequestBuilder) Request() *UnifiedRoleAssignmentRequest {
+ return &UnifiedRoleAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UnifiedRoleAssignmentRequest is request for UnifiedRoleAssignment
+type UnifiedRoleAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for UnifiedRoleAssignment
+func (r *UnifiedRoleAssignmentRequest) Get(ctx context.Context) (resObj *UnifiedRoleAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UnifiedRoleAssignment
+func (r *UnifiedRoleAssignmentRequest) Update(ctx context.Context, reqObj *UnifiedRoleAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UnifiedRoleAssignment
+func (r *UnifiedRoleAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Principal is navigation property
+func (b *UnifiedRoleAssignmentRequestBuilder) Principal() *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/principal"
+ return bb
+}
+
+// RoleDefinition is navigation property
+func (b *UnifiedRoleAssignmentRequestBuilder) RoleDefinition() *UnifiedRoleDefinitionRequestBuilder {
+ bb := &UnifiedRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinition"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UnifiedRoleDefinitionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UnifiedRoleDefinitionModel.go
new file mode 100644
index 00000000..22d03a8f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UnifiedRoleDefinitionModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UnifiedRoleDefinition undocumented
+type UnifiedRoleDefinition struct {
+ // Entity is the base model of UnifiedRoleDefinition
+ Entity
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsBuiltIn undocumented
+ IsBuiltIn *bool `json:"isBuiltIn,omitempty"`
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // ResourceScopes undocumented
+ ResourceScopes []string `json:"resourceScopes,omitempty"`
+ // RolePermissions undocumented
+ RolePermissions []UnifiedRolePermission `json:"rolePermissions,omitempty"`
+ // TemplateID undocumented
+ TemplateID *string `json:"templateId,omitempty"`
+ // Version undocumented
+ Version *string `json:"version,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UnifiedRoleDefinitionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UnifiedRoleDefinitionRequest.go
new file mode 100644
index 00000000..ae46286c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UnifiedRoleDefinitionRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UnifiedRoleDefinitionRequestBuilder is request builder for UnifiedRoleDefinition
+type UnifiedRoleDefinitionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UnifiedRoleDefinitionRequest
+func (b *UnifiedRoleDefinitionRequestBuilder) Request() *UnifiedRoleDefinitionRequest {
+ return &UnifiedRoleDefinitionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UnifiedRoleDefinitionRequest is request for UnifiedRoleDefinition
+type UnifiedRoleDefinitionRequest struct{ BaseRequest }
+
+// Get performs GET request for UnifiedRoleDefinition
+func (r *UnifiedRoleDefinitionRequest) Get(ctx context.Context) (resObj *UnifiedRoleDefinition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UnifiedRoleDefinition
+func (r *UnifiedRoleDefinitionRequest) Update(ctx context.Context, reqObj *UnifiedRoleDefinition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UnifiedRoleDefinition
+func (r *UnifiedRoleDefinitionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UnifiedRolePermissionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UnifiedRolePermissionModel.go
new file mode 100644
index 00000000..e5f5b58b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UnifiedRolePermissionModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UnifiedRolePermission undocumented
+type UnifiedRolePermission struct {
+ // Object is the base model of UnifiedRolePermission
+ Object
+ // AllowedResourceActions undocumented
+ AllowedResourceActions []string `json:"allowedResourceActions,omitempty"`
+ // Condition undocumented
+ Condition *string `json:"condition,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UnitOfMeasureModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UnitOfMeasureModel.go
new file mode 100644
index 00000000..c55d760b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UnitOfMeasureModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// UnitOfMeasure undocumented
+type UnitOfMeasure struct {
+ // Entity is the base model of UnitOfMeasure
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // InternationalStandardCode undocumented
+ InternationalStandardCode *string `json:"internationalStandardCode,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UnitOfMeasureRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UnitOfMeasureRequest.go
new file mode 100644
index 00000000..1cbf4f70
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UnitOfMeasureRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UnitOfMeasureRequestBuilder is request builder for UnitOfMeasure
+type UnitOfMeasureRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UnitOfMeasureRequest
+func (b *UnitOfMeasureRequestBuilder) Request() *UnitOfMeasureRequest {
+ return &UnitOfMeasureRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UnitOfMeasureRequest is request for UnitOfMeasure
+type UnitOfMeasureRequest struct{ BaseRequest }
+
+// Get performs GET request for UnitOfMeasure
+func (r *UnitOfMeasureRequest) Get(ctx context.Context) (resObj *UnitOfMeasure, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UnitOfMeasure
+func (r *UnitOfMeasureRequest) Update(ctx context.Context, reqObj *UnitOfMeasure) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UnitOfMeasure
+func (r *UnitOfMeasureRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UnmuteParticipantOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UnmuteParticipantOperationModel.go
new file mode 100644
index 00000000..d37eaf01
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UnmuteParticipantOperationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UnmuteParticipantOperation undocumented
+type UnmuteParticipantOperation struct {
+ // CommsOperation is the base model of UnmuteParticipantOperation
+ CommsOperation
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UnsupportedDeviceConfigurationDetailModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UnsupportedDeviceConfigurationDetailModel.go
new file mode 100644
index 00000000..b4952488
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UnsupportedDeviceConfigurationDetailModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UnsupportedDeviceConfigurationDetail undocumented
+type UnsupportedDeviceConfigurationDetail struct {
+ // Object is the base model of UnsupportedDeviceConfigurationDetail
+ Object
+ // Message A message explaining why an entity is unsupported.
+ Message *string `json:"message,omitempty"`
+ // PropertyName If message is related to a specific property in the original entity, then the name of that property.
+ PropertyName *string `json:"propertyName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UnsupportedDeviceConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UnsupportedDeviceConfigurationModel.go
new file mode 100644
index 00000000..8d8b1041
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UnsupportedDeviceConfigurationModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UnsupportedDeviceConfiguration UnsupportedDeviceConfiguration is used when an entity cannot be mapped to another model-compliant subtype of deviceConfiguration.
+type UnsupportedDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of UnsupportedDeviceConfiguration
+ DeviceConfiguration
+ // OriginalEntityTypeName The type of entity that would be returned otherwise.
+ OriginalEntityTypeName *string `json:"originalEntityTypeName,omitempty"`
+ // Details Details describing why the entity is unsupported. This collection can contain a maximum of 1000 elements.
+ Details []UnsupportedDeviceConfigurationDetail `json:"details,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UpdateClassificationEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/UpdateClassificationEnum.go
new file mode 100644
index 00000000..623db438
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UpdateClassificationEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UpdateClassification undocumented
+type UpdateClassification int
+
+const (
+ // UpdateClassificationVUserDefined undocumented
+ UpdateClassificationVUserDefined UpdateClassification = 0
+ // UpdateClassificationVRecommendedAndImportant undocumented
+ UpdateClassificationVRecommendedAndImportant UpdateClassification = 1
+ // UpdateClassificationVImportant undocumented
+ UpdateClassificationVImportant UpdateClassification = 2
+ // UpdateClassificationVNone undocumented
+ UpdateClassificationVNone UpdateClassification = 3
+)
+
+// UpdateClassificationPUserDefined returns a pointer to UpdateClassificationVUserDefined
+func UpdateClassificationPUserDefined() *UpdateClassification {
+ v := UpdateClassificationVUserDefined
+ return &v
+}
+
+// UpdateClassificationPRecommendedAndImportant returns a pointer to UpdateClassificationVRecommendedAndImportant
+func UpdateClassificationPRecommendedAndImportant() *UpdateClassification {
+ v := UpdateClassificationVRecommendedAndImportant
+ return &v
+}
+
+// UpdateClassificationPImportant returns a pointer to UpdateClassificationVImportant
+func UpdateClassificationPImportant() *UpdateClassification {
+ v := UpdateClassificationVImportant
+ return &v
+}
+
+// UpdateClassificationPNone returns a pointer to UpdateClassificationVNone
+func UpdateClassificationPNone() *UpdateClassification {
+ v := UpdateClassificationVNone
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UpdateRecordingStatusOperationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UpdateRecordingStatusOperationModel.go
new file mode 100644
index 00000000..59a98b50
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UpdateRecordingStatusOperationModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UpdateRecordingStatusOperation undocumented
+type UpdateRecordingStatusOperation struct {
+ // CommsOperation is the base model of UpdateRecordingStatusOperation
+ CommsOperation
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UpdateWindowModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UpdateWindowModel.go
new file mode 100644
index 00000000..14ea4577
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UpdateWindowModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// UpdateWindow undocumented
+type UpdateWindow struct {
+ // Object is the base model of UpdateWindow
+ Object
+ // UpdateWindowStartTime undocumented
+ UpdateWindowStartTime *time.Time `json:"updateWindowStartTime,omitempty"`
+ // UpdateWindowEndTime undocumented
+ UpdateWindowEndTime *time.Time `json:"updateWindowEndTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UpdateWindowsDeviceAccountActionParameterModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UpdateWindowsDeviceAccountActionParameterModel.go
new file mode 100644
index 00000000..d4fad2c2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UpdateWindowsDeviceAccountActionParameterModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UpdateWindowsDeviceAccountActionParameter undocumented
+type UpdateWindowsDeviceAccountActionParameter struct {
+ // Object is the base model of UpdateWindowsDeviceAccountActionParameter
+ Object
+ // DeviceAccount undocumented
+ DeviceAccount *WindowsDeviceAccount `json:"deviceAccount,omitempty"`
+ // PasswordRotationEnabled undocumented
+ PasswordRotationEnabled *bool `json:"passwordRotationEnabled,omitempty"`
+ // CalendarSyncEnabled undocumented
+ CalendarSyncEnabled *bool `json:"calendarSyncEnabled,omitempty"`
+ // DeviceAccountEmail undocumented
+ DeviceAccountEmail *string `json:"deviceAccountEmail,omitempty"`
+ // ExchangeServer undocumented
+ ExchangeServer *string `json:"exchangeServer,omitempty"`
+ // SessionInitiationProtocalAddress undocumented
+ SessionInitiationProtocalAddress *string `json:"sessionInitiationProtocalAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UploadSessionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UploadSessionModel.go
new file mode 100644
index 00000000..dfb43012
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UploadSessionModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// UploadSession undocumented
+type UploadSession struct {
+ // Object is the base model of UploadSession
+ Object
+ // UploadURL undocumented
+ UploadURL *string `json:"uploadUrl,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // NextExpectedRanges undocumented
+ NextExpectedRanges []string `json:"nextExpectedRanges,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UsageAuthMethodEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/UsageAuthMethodEnum.go
new file mode 100644
index 00000000..1a5d212e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UsageAuthMethodEnum.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UsageAuthMethod undocumented
+type UsageAuthMethod int
+
+const (
+ // UsageAuthMethodVEmail undocumented
+ UsageAuthMethodVEmail UsageAuthMethod = 0
+ // UsageAuthMethodVMobileSMS undocumented
+ UsageAuthMethodVMobileSMS UsageAuthMethod = 1
+ // UsageAuthMethodVMobileCall undocumented
+ UsageAuthMethodVMobileCall UsageAuthMethod = 2
+ // UsageAuthMethodVOfficePhone undocumented
+ UsageAuthMethodVOfficePhone UsageAuthMethod = 3
+ // UsageAuthMethodVSecurityQuestion undocumented
+ UsageAuthMethodVSecurityQuestion UsageAuthMethod = 4
+ // UsageAuthMethodVAppNotification undocumented
+ UsageAuthMethodVAppNotification UsageAuthMethod = 5
+ // UsageAuthMethodVAppCode undocumented
+ UsageAuthMethodVAppCode UsageAuthMethod = 6
+ // UsageAuthMethodVAlternateMobileCall undocumented
+ UsageAuthMethodVAlternateMobileCall UsageAuthMethod = 7
+ // UsageAuthMethodVFido undocumented
+ UsageAuthMethodVFido UsageAuthMethod = 8
+ // UsageAuthMethodVAppPassword undocumented
+ UsageAuthMethodVAppPassword UsageAuthMethod = 9
+ // UsageAuthMethodVUnknownFutureValue undocumented
+ UsageAuthMethodVUnknownFutureValue UsageAuthMethod = 10
+)
+
+// UsageAuthMethodPEmail returns a pointer to UsageAuthMethodVEmail
+func UsageAuthMethodPEmail() *UsageAuthMethod {
+ v := UsageAuthMethodVEmail
+ return &v
+}
+
+// UsageAuthMethodPMobileSMS returns a pointer to UsageAuthMethodVMobileSMS
+func UsageAuthMethodPMobileSMS() *UsageAuthMethod {
+ v := UsageAuthMethodVMobileSMS
+ return &v
+}
+
+// UsageAuthMethodPMobileCall returns a pointer to UsageAuthMethodVMobileCall
+func UsageAuthMethodPMobileCall() *UsageAuthMethod {
+ v := UsageAuthMethodVMobileCall
+ return &v
+}
+
+// UsageAuthMethodPOfficePhone returns a pointer to UsageAuthMethodVOfficePhone
+func UsageAuthMethodPOfficePhone() *UsageAuthMethod {
+ v := UsageAuthMethodVOfficePhone
+ return &v
+}
+
+// UsageAuthMethodPSecurityQuestion returns a pointer to UsageAuthMethodVSecurityQuestion
+func UsageAuthMethodPSecurityQuestion() *UsageAuthMethod {
+ v := UsageAuthMethodVSecurityQuestion
+ return &v
+}
+
+// UsageAuthMethodPAppNotification returns a pointer to UsageAuthMethodVAppNotification
+func UsageAuthMethodPAppNotification() *UsageAuthMethod {
+ v := UsageAuthMethodVAppNotification
+ return &v
+}
+
+// UsageAuthMethodPAppCode returns a pointer to UsageAuthMethodVAppCode
+func UsageAuthMethodPAppCode() *UsageAuthMethod {
+ v := UsageAuthMethodVAppCode
+ return &v
+}
+
+// UsageAuthMethodPAlternateMobileCall returns a pointer to UsageAuthMethodVAlternateMobileCall
+func UsageAuthMethodPAlternateMobileCall() *UsageAuthMethod {
+ v := UsageAuthMethodVAlternateMobileCall
+ return &v
+}
+
+// UsageAuthMethodPFido returns a pointer to UsageAuthMethodVFido
+func UsageAuthMethodPFido() *UsageAuthMethod {
+ v := UsageAuthMethodVFido
+ return &v
+}
+
+// UsageAuthMethodPAppPassword returns a pointer to UsageAuthMethodVAppPassword
+func UsageAuthMethodPAppPassword() *UsageAuthMethod {
+ v := UsageAuthMethodVAppPassword
+ return &v
+}
+
+// UsageAuthMethodPUnknownFutureValue returns a pointer to UsageAuthMethodVUnknownFutureValue
+func UsageAuthMethodPUnknownFutureValue() *UsageAuthMethod {
+ v := UsageAuthMethodVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UsageDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UsageDetailsModel.go
new file mode 100644
index 00000000..5cecac71
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UsageDetailsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// UsageDetails undocumented
+type UsageDetails struct {
+ // Object is the base model of UsageDetails
+ Object
+ // LastAccessedDateTime undocumented
+ LastAccessedDateTime *time.Time `json:"lastAccessedDateTime,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UsedInsightModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UsedInsightModel.go
new file mode 100644
index 00000000..98e415b6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UsedInsightModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UsedInsight undocumented
+type UsedInsight struct {
+ // Entity is the base model of UsedInsight
+ Entity
+ // LastUsed undocumented
+ LastUsed *UsageDetails `json:"lastUsed,omitempty"`
+ // ResourceVisualization undocumented
+ ResourceVisualization *ResourceVisualization `json:"resourceVisualization,omitempty"`
+ // ResourceReference undocumented
+ ResourceReference *ResourceReference `json:"resourceReference,omitempty"`
+ // Resource undocumented
+ Resource *Entity `json:"resource,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UsedInsightRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UsedInsightRequest.go
new file mode 100644
index 00000000..c9967c4c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UsedInsightRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UsedInsightRequestBuilder is request builder for UsedInsight
+type UsedInsightRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UsedInsightRequest
+func (b *UsedInsightRequestBuilder) Request() *UsedInsightRequest {
+ return &UsedInsightRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UsedInsightRequest is request for UsedInsight
+type UsedInsightRequest struct{ BaseRequest }
+
+// Get performs GET request for UsedInsight
+func (r *UsedInsightRequest) Get(ctx context.Context) (resObj *UsedInsight, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UsedInsight
+func (r *UsedInsightRequest) Update(ctx context.Context, reqObj *UsedInsight) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UsedInsight
+func (r *UsedInsightRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Resource is navigation property
+func (b *UsedInsightRequestBuilder) Resource() *EntityRequestBuilder {
+ bb := &EntityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resource"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserAccountInformationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserAccountInformationModel.go
new file mode 100644
index 00000000..ee564f11
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserAccountInformationModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserAccountInformation undocumented
+type UserAccountInformation struct {
+ // ItemFacet is the base model of UserAccountInformation
+ ItemFacet
+ // AgeGroup undocumented
+ AgeGroup *string `json:"ageGroup,omitempty"`
+ // CountryCode undocumented
+ CountryCode *string `json:"countryCode,omitempty"`
+ // PreferredLanguageTag undocumented
+ PreferredLanguageTag *LocaleInfo `json:"preferredLanguageTag,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserAccountInformationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserAccountInformationRequest.go
new file mode 100644
index 00000000..31a5de92
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserAccountInformationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UserAccountInformationRequestBuilder is request builder for UserAccountInformation
+type UserAccountInformationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserAccountInformationRequest
+func (b *UserAccountInformationRequestBuilder) Request() *UserAccountInformationRequest {
+ return &UserAccountInformationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserAccountInformationRequest is request for UserAccountInformation
+type UserAccountInformationRequest struct{ BaseRequest }
+
+// Get performs GET request for UserAccountInformation
+func (r *UserAccountInformationRequest) Get(ctx context.Context) (resObj *UserAccountInformation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserAccountInformation
+func (r *UserAccountInformationRequest) Update(ctx context.Context, reqObj *UserAccountInformation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserAccountInformation
+func (r *UserAccountInformationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserAccountModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserAccountModel.go
new file mode 100644
index 00000000..660b0756
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserAccountModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// UserAccount undocumented
+type UserAccount struct {
+ // Object is the base model of UserAccount
+ Object
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastSeenDateTime undocumented
+ LastSeenDateTime *time.Time `json:"lastSeenDateTime,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // Service undocumented
+ Service *string `json:"service,omitempty"`
+ // SigninName undocumented
+ SigninName *string `json:"signinName,omitempty"`
+ // Status undocumented
+ Status *AccountStatus `json:"status,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserAccountSecurityTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserAccountSecurityTypeEnum.go
new file mode 100644
index 00000000..53c210a1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserAccountSecurityTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserAccountSecurityType undocumented
+type UserAccountSecurityType int
+
+const (
+ // UserAccountSecurityTypeVUnknown undocumented
+ UserAccountSecurityTypeVUnknown UserAccountSecurityType = 0
+ // UserAccountSecurityTypeVStandard undocumented
+ UserAccountSecurityTypeVStandard UserAccountSecurityType = 1
+ // UserAccountSecurityTypeVPower undocumented
+ UserAccountSecurityTypeVPower UserAccountSecurityType = 2
+ // UserAccountSecurityTypeVAdministrator undocumented
+ UserAccountSecurityTypeVAdministrator UserAccountSecurityType = 3
+ // UserAccountSecurityTypeVUnknownFutureValue undocumented
+ UserAccountSecurityTypeVUnknownFutureValue UserAccountSecurityType = 127
+)
+
+// UserAccountSecurityTypePUnknown returns a pointer to UserAccountSecurityTypeVUnknown
+func UserAccountSecurityTypePUnknown() *UserAccountSecurityType {
+ v := UserAccountSecurityTypeVUnknown
+ return &v
+}
+
+// UserAccountSecurityTypePStandard returns a pointer to UserAccountSecurityTypeVStandard
+func UserAccountSecurityTypePStandard() *UserAccountSecurityType {
+ v := UserAccountSecurityTypeVStandard
+ return &v
+}
+
+// UserAccountSecurityTypePPower returns a pointer to UserAccountSecurityTypeVPower
+func UserAccountSecurityTypePPower() *UserAccountSecurityType {
+ v := UserAccountSecurityTypeVPower
+ return &v
+}
+
+// UserAccountSecurityTypePAdministrator returns a pointer to UserAccountSecurityTypeVAdministrator
+func UserAccountSecurityTypePAdministrator() *UserAccountSecurityType {
+ v := UserAccountSecurityTypeVAdministrator
+ return &v
+}
+
+// UserAccountSecurityTypePUnknownFutureValue returns a pointer to UserAccountSecurityTypeVUnknownFutureValue
+func UserAccountSecurityTypePUnknownFutureValue() *UserAccountSecurityType {
+ v := UserAccountSecurityTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserAction.go
new file mode 100644
index 00000000..e298aa25
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserAction.go
@@ -0,0 +1,564 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+ "time"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// UserAssignLicenseRequestParameter undocumented
+type UserAssignLicenseRequestParameter struct {
+ // AddLicenses undocumented
+ AddLicenses []AssignedLicense `json:"addLicenses,omitempty"`
+ // RemoveLicenses undocumented
+ RemoveLicenses []UUID `json:"removeLicenses,omitempty"`
+}
+
+// UserChangePasswordRequestParameter undocumented
+type UserChangePasswordRequestParameter struct {
+ // CurrentPassword undocumented
+ CurrentPassword *string `json:"currentPassword,omitempty"`
+ // NewPassword undocumented
+ NewPassword *string `json:"newPassword,omitempty"`
+}
+
+// UserInvalidateAllRefreshTokensRequestParameter undocumented
+type UserInvalidateAllRefreshTokensRequestParameter struct {
+}
+
+// UserRevokeSignInSessionsRequestParameter undocumented
+type UserRevokeSignInSessionsRequestParameter struct {
+}
+
+// UserReprocessLicenseAssignmentRequestParameter undocumented
+type UserReprocessLicenseAssignmentRequestParameter struct {
+}
+
+// UserFindMeetingTimesRequestParameter undocumented
+type UserFindMeetingTimesRequestParameter struct {
+ // Attendees undocumented
+ Attendees []AttendeeBase `json:"attendees,omitempty"`
+ // LocationConstraint undocumented
+ LocationConstraint *LocationConstraint `json:"locationConstraint,omitempty"`
+ // TimeConstraint undocumented
+ TimeConstraint *TimeConstraint `json:"timeConstraint,omitempty"`
+ // MeetingDuration undocumented
+ MeetingDuration *time.Duration `json:"meetingDuration,omitempty"`
+ // MaxCandidates undocumented
+ MaxCandidates *int `json:"maxCandidates,omitempty"`
+ // IsOrganizerOptional undocumented
+ IsOrganizerOptional *bool `json:"isOrganizerOptional,omitempty"`
+ // ReturnSuggestionReasons undocumented
+ ReturnSuggestionReasons *bool `json:"returnSuggestionReasons,omitempty"`
+ // MinimumAttendeePercentage undocumented
+ MinimumAttendeePercentage *float64 `json:"minimumAttendeePercentage,omitempty"`
+}
+
+// UserSendMailRequestParameter undocumented
+type UserSendMailRequestParameter struct {
+ // Message undocumented
+ Message *Message `json:"Message,omitempty"`
+ // SaveToSentItems undocumented
+ SaveToSentItems *bool `json:"SaveToSentItems,omitempty"`
+}
+
+// UserGetMailTipsRequestParameter undocumented
+type UserGetMailTipsRequestParameter struct {
+ // EmailAddresses undocumented
+ EmailAddresses []string `json:"EmailAddresses,omitempty"`
+ // MailTipsOptions undocumented
+ MailTipsOptions *MailTipsType `json:"MailTipsOptions,omitempty"`
+}
+
+// UserTranslateExchangeIDsRequestParameter undocumented
+type UserTranslateExchangeIDsRequestParameter struct {
+ // InputIDs undocumented
+ InputIDs []string `json:"InputIds,omitempty"`
+ // TargetIDType undocumented
+ TargetIDType *ExchangeIDFormat `json:"TargetIdType,omitempty"`
+ // SourceIDType undocumented
+ SourceIDType *ExchangeIDFormat `json:"SourceIdType,omitempty"`
+}
+
+// UserRemoveAllDevicesFromManagementRequestParameter undocumented
+type UserRemoveAllDevicesFromManagementRequestParameter struct {
+}
+
+// UserWipeManagedAppRegistrationByDeviceTagRequestParameter undocumented
+type UserWipeManagedAppRegistrationByDeviceTagRequestParameter struct {
+ // DeviceTag undocumented
+ DeviceTag *string `json:"deviceTag,omitempty"`
+}
+
+// UserWipeManagedAppRegistrationsByDeviceTagRequestParameter undocumented
+type UserWipeManagedAppRegistrationsByDeviceTagRequestParameter struct {
+ // DeviceTag undocumented
+ DeviceTag *string `json:"deviceTag,omitempty"`
+}
+
+// UserExportPersonalDataRequestParameter undocumented
+type UserExportPersonalDataRequestParameter struct {
+ // StorageLocation undocumented
+ StorageLocation *string `json:"storageLocation,omitempty"`
+}
+
+//
+type UserAssignLicenseRequestBuilder struct{ BaseRequestBuilder }
+
+// AssignLicense action undocumented
+func (b *UserRequestBuilder) AssignLicense(reqObj *UserAssignLicenseRequestParameter) *UserAssignLicenseRequestBuilder {
+ bb := &UserAssignLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assignLicense"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserAssignLicenseRequest struct{ BaseRequest }
+
+//
+func (b *UserAssignLicenseRequestBuilder) Request() *UserAssignLicenseRequest {
+ return &UserAssignLicenseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserAssignLicenseRequest) Post(ctx context.Context) (resObj *User, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type UserChangePasswordRequestBuilder struct{ BaseRequestBuilder }
+
+// ChangePassword action undocumented
+func (b *UserRequestBuilder) ChangePassword(reqObj *UserChangePasswordRequestParameter) *UserChangePasswordRequestBuilder {
+ bb := &UserChangePasswordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/changePassword"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserChangePasswordRequest struct{ BaseRequest }
+
+//
+func (b *UserChangePasswordRequestBuilder) Request() *UserChangePasswordRequest {
+ return &UserChangePasswordRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserChangePasswordRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type UserInvalidateAllRefreshTokensRequestBuilder struct{ BaseRequestBuilder }
+
+// InvalidateAllRefreshTokens action undocumented
+func (b *UserRequestBuilder) InvalidateAllRefreshTokens(reqObj *UserInvalidateAllRefreshTokensRequestParameter) *UserInvalidateAllRefreshTokensRequestBuilder {
+ bb := &UserInvalidateAllRefreshTokensRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/invalidateAllRefreshTokens"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserInvalidateAllRefreshTokensRequest struct{ BaseRequest }
+
+//
+func (b *UserInvalidateAllRefreshTokensRequestBuilder) Request() *UserInvalidateAllRefreshTokensRequest {
+ return &UserInvalidateAllRefreshTokensRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserInvalidateAllRefreshTokensRequest) Post(ctx context.Context) (resObj *bool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type UserRevokeSignInSessionsRequestBuilder struct{ BaseRequestBuilder }
+
+// RevokeSignInSessions action undocumented
+func (b *UserRequestBuilder) RevokeSignInSessions(reqObj *UserRevokeSignInSessionsRequestParameter) *UserRevokeSignInSessionsRequestBuilder {
+ bb := &UserRevokeSignInSessionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/revokeSignInSessions"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserRevokeSignInSessionsRequest struct{ BaseRequest }
+
+//
+func (b *UserRevokeSignInSessionsRequestBuilder) Request() *UserRevokeSignInSessionsRequest {
+ return &UserRevokeSignInSessionsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserRevokeSignInSessionsRequest) Post(ctx context.Context) (resObj *bool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type UserReprocessLicenseAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// ReprocessLicenseAssignment action undocumented
+func (b *UserRequestBuilder) ReprocessLicenseAssignment(reqObj *UserReprocessLicenseAssignmentRequestParameter) *UserReprocessLicenseAssignmentRequestBuilder {
+ bb := &UserReprocessLicenseAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/reprocessLicenseAssignment"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserReprocessLicenseAssignmentRequest struct{ BaseRequest }
+
+//
+func (b *UserReprocessLicenseAssignmentRequestBuilder) Request() *UserReprocessLicenseAssignmentRequest {
+ return &UserReprocessLicenseAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserReprocessLicenseAssignmentRequest) Post(ctx context.Context) (resObj *User, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type UserFindMeetingTimesRequestBuilder struct{ BaseRequestBuilder }
+
+// FindMeetingTimes action undocumented
+func (b *UserRequestBuilder) FindMeetingTimes(reqObj *UserFindMeetingTimesRequestParameter) *UserFindMeetingTimesRequestBuilder {
+ bb := &UserFindMeetingTimesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/findMeetingTimes"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserFindMeetingTimesRequest struct{ BaseRequest }
+
+//
+func (b *UserFindMeetingTimesRequestBuilder) Request() *UserFindMeetingTimesRequest {
+ return &UserFindMeetingTimesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserFindMeetingTimesRequest) Post(ctx context.Context) (resObj *MeetingTimeSuggestionsResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type UserSendMailRequestBuilder struct{ BaseRequestBuilder }
+
+// SendMail action undocumented
+func (b *UserRequestBuilder) SendMail(reqObj *UserSendMailRequestParameter) *UserSendMailRequestBuilder {
+ bb := &UserSendMailRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sendMail"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserSendMailRequest struct{ BaseRequest }
+
+//
+func (b *UserSendMailRequestBuilder) Request() *UserSendMailRequest {
+ return &UserSendMailRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserSendMailRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type UserGetMailTipsRequestBuilder struct{ BaseRequestBuilder }
+
+// GetMailTips action undocumented
+func (b *UserRequestBuilder) GetMailTips(reqObj *UserGetMailTipsRequestParameter) *UserGetMailTipsRequestBuilder {
+ bb := &UserGetMailTipsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getMailTips"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserGetMailTipsRequest struct{ BaseRequest }
+
+//
+func (b *UserGetMailTipsRequestBuilder) Request() *UserGetMailTipsRequest {
+ return &UserGetMailTipsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserGetMailTipsRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]MailTips, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]MailTips
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]MailTips
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *UserGetMailTipsRequest) Get(ctx context.Context) ([][]MailTips, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type UserTranslateExchangeIDsRequestBuilder struct{ BaseRequestBuilder }
+
+// TranslateExchangeIDs action undocumented
+func (b *UserRequestBuilder) TranslateExchangeIDs(reqObj *UserTranslateExchangeIDsRequestParameter) *UserTranslateExchangeIDsRequestBuilder {
+ bb := &UserTranslateExchangeIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/translateExchangeIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserTranslateExchangeIDsRequest struct{ BaseRequest }
+
+//
+func (b *UserTranslateExchangeIDsRequestBuilder) Request() *UserTranslateExchangeIDsRequest {
+ return &UserTranslateExchangeIDsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserTranslateExchangeIDsRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]ConvertIDResult, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]ConvertIDResult
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]ConvertIDResult
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *UserTranslateExchangeIDsRequest) Get(ctx context.Context) ([][]ConvertIDResult, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type UserRemoveAllDevicesFromManagementRequestBuilder struct{ BaseRequestBuilder }
+
+// RemoveAllDevicesFromManagement action undocumented
+func (b *UserRequestBuilder) RemoveAllDevicesFromManagement(reqObj *UserRemoveAllDevicesFromManagementRequestParameter) *UserRemoveAllDevicesFromManagementRequestBuilder {
+ bb := &UserRemoveAllDevicesFromManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/removeAllDevicesFromManagement"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserRemoveAllDevicesFromManagementRequest struct{ BaseRequest }
+
+//
+func (b *UserRemoveAllDevicesFromManagementRequestBuilder) Request() *UserRemoveAllDevicesFromManagementRequest {
+ return &UserRemoveAllDevicesFromManagementRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserRemoveAllDevicesFromManagementRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type UserWipeManagedAppRegistrationByDeviceTagRequestBuilder struct{ BaseRequestBuilder }
+
+// WipeManagedAppRegistrationByDeviceTag action undocumented
+func (b *UserRequestBuilder) WipeManagedAppRegistrationByDeviceTag(reqObj *UserWipeManagedAppRegistrationByDeviceTagRequestParameter) *UserWipeManagedAppRegistrationByDeviceTagRequestBuilder {
+ bb := &UserWipeManagedAppRegistrationByDeviceTagRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/wipeManagedAppRegistrationByDeviceTag"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserWipeManagedAppRegistrationByDeviceTagRequest struct{ BaseRequest }
+
+//
+func (b *UserWipeManagedAppRegistrationByDeviceTagRequestBuilder) Request() *UserWipeManagedAppRegistrationByDeviceTagRequest {
+ return &UserWipeManagedAppRegistrationByDeviceTagRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserWipeManagedAppRegistrationByDeviceTagRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type UserWipeManagedAppRegistrationsByDeviceTagRequestBuilder struct{ BaseRequestBuilder }
+
+// WipeManagedAppRegistrationsByDeviceTag action undocumented
+func (b *UserRequestBuilder) WipeManagedAppRegistrationsByDeviceTag(reqObj *UserWipeManagedAppRegistrationsByDeviceTagRequestParameter) *UserWipeManagedAppRegistrationsByDeviceTagRequestBuilder {
+ bb := &UserWipeManagedAppRegistrationsByDeviceTagRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/wipeManagedAppRegistrationsByDeviceTag"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserWipeManagedAppRegistrationsByDeviceTagRequest struct{ BaseRequest }
+
+//
+func (b *UserWipeManagedAppRegistrationsByDeviceTagRequestBuilder) Request() *UserWipeManagedAppRegistrationsByDeviceTagRequest {
+ return &UserWipeManagedAppRegistrationsByDeviceTagRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserWipeManagedAppRegistrationsByDeviceTagRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type UserExportPersonalDataRequestBuilder struct{ BaseRequestBuilder }
+
+// ExportPersonalData action undocumented
+func (b *UserRequestBuilder) ExportPersonalData(reqObj *UserExportPersonalDataRequestParameter) *UserExportPersonalDataRequestBuilder {
+ bb := &UserExportPersonalDataRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/exportPersonalData"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserExportPersonalDataRequest struct{ BaseRequest }
+
+//
+func (b *UserExportPersonalDataRequestBuilder) Request() *UserExportPersonalDataRequest {
+ return &UserExportPersonalDataRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserExportPersonalDataRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserActivationCountsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserActivationCountsModel.go
new file mode 100644
index 00000000..25396b57
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserActivationCountsModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// UserActivationCounts undocumented
+type UserActivationCounts struct {
+ // Object is the base model of UserActivationCounts
+ Object
+ // ProductType undocumented
+ ProductType *string `json:"productType,omitempty"`
+ // LastActivatedDate undocumented
+ LastActivatedDate *time.Time `json:"lastActivatedDate,omitempty"`
+ // Windows undocumented
+ Windows *int `json:"windows,omitempty"`
+ // Mac undocumented
+ Mac *int `json:"mac,omitempty"`
+ // Windows10Mobile undocumented
+ Windows10Mobile *int `json:"windows10Mobile,omitempty"`
+ // IOS undocumented
+ IOS *int `json:"ios,omitempty"`
+ // Android undocumented
+ Android *int `json:"android,omitempty"`
+ // ActivatedOnSharedComputer undocumented
+ ActivatedOnSharedComputer *bool `json:"activatedOnSharedComputer,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserActivityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserActivityModel.go
new file mode 100644
index 00000000..be1deda2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserActivityModel.go
@@ -0,0 +1,42 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "encoding/json"
+ "time"
+)
+
+// UserActivity undocumented
+type UserActivity struct {
+ // Entity is the base model of UserActivity
+ Entity
+ // VisualElements undocumented
+ VisualElements *VisualInfo `json:"visualElements,omitempty"`
+ // ActivitySourceHost undocumented
+ ActivitySourceHost *string `json:"activitySourceHost,omitempty"`
+ // ActivationURL undocumented
+ ActivationURL *string `json:"activationUrl,omitempty"`
+ // AppActivityID undocumented
+ AppActivityID *string `json:"appActivityId,omitempty"`
+ // AppDisplayName undocumented
+ AppDisplayName *string `json:"appDisplayName,omitempty"`
+ // ContentURL undocumented
+ ContentURL *string `json:"contentUrl,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // FallbackURL undocumented
+ FallbackURL *string `json:"fallbackUrl,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // UserTimezone undocumented
+ UserTimezone *string `json:"userTimezone,omitempty"`
+ // ContentInfo undocumented
+ ContentInfo json.RawMessage `json:"contentInfo,omitempty"`
+ // Status undocumented
+ Status *Status `json:"status,omitempty"`
+ // HistoryItems undocumented
+ HistoryItems []ActivityHistoryItem `json:"historyItems,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserActivityRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserActivityRequest.go
new file mode 100644
index 00000000..9e862398
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserActivityRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// UserActivityRequestBuilder is request builder for UserActivity
+type UserActivityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserActivityRequest
+func (b *UserActivityRequestBuilder) Request() *UserActivityRequest {
+ return &UserActivityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserActivityRequest is request for UserActivity
+type UserActivityRequest struct{ BaseRequest }
+
+// Get performs GET request for UserActivity
+func (r *UserActivityRequest) Get(ctx context.Context) (resObj *UserActivity, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserActivity
+func (r *UserActivityRequest) Update(ctx context.Context, reqObj *UserActivity) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserActivity
+func (r *UserActivityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// HistoryItems returns request builder for ActivityHistoryItem collection
+func (b *UserActivityRequestBuilder) HistoryItems() *UserActivityHistoryItemsCollectionRequestBuilder {
+ bb := &UserActivityHistoryItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/historyItems"
+ return bb
+}
+
+// UserActivityHistoryItemsCollectionRequestBuilder is request builder for ActivityHistoryItem collection
+type UserActivityHistoryItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ActivityHistoryItem collection
+func (b *UserActivityHistoryItemsCollectionRequestBuilder) Request() *UserActivityHistoryItemsCollectionRequest {
+ return &UserActivityHistoryItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ActivityHistoryItem item
+func (b *UserActivityHistoryItemsCollectionRequestBuilder) ID(id string) *ActivityHistoryItemRequestBuilder {
+ bb := &ActivityHistoryItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserActivityHistoryItemsCollectionRequest is request for ActivityHistoryItem collection
+type UserActivityHistoryItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ActivityHistoryItem collection
+func (r *UserActivityHistoryItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ActivityHistoryItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ActivityHistoryItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ActivityHistoryItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ActivityHistoryItem collection
+func (r *UserActivityHistoryItemsCollectionRequest) Get(ctx context.Context) ([]ActivityHistoryItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ActivityHistoryItem collection
+func (r *UserActivityHistoryItemsCollectionRequest) Add(ctx context.Context, reqObj *ActivityHistoryItem) (resObj *ActivityHistoryItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserAnalyticsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserAnalyticsModel.go
new file mode 100644
index 00000000..3cbdd322
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserAnalyticsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserAnalytics undocumented
+type UserAnalytics struct {
+ // Entity is the base model of UserAnalytics
+ Entity
+ // Settings undocumented
+ Settings *Settings `json:"settings,omitempty"`
+ // ActivityStatistics undocumented
+ ActivityStatistics []ActivityStatistics `json:"activityStatistics,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserAnalyticsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserAnalyticsRequest.go
new file mode 100644
index 00000000..001394ab
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserAnalyticsRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// UserAnalyticsRequestBuilder is request builder for UserAnalytics
+type UserAnalyticsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserAnalyticsRequest
+func (b *UserAnalyticsRequestBuilder) Request() *UserAnalyticsRequest {
+ return &UserAnalyticsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserAnalyticsRequest is request for UserAnalytics
+type UserAnalyticsRequest struct{ BaseRequest }
+
+// Get performs GET request for UserAnalytics
+func (r *UserAnalyticsRequest) Get(ctx context.Context) (resObj *UserAnalytics, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserAnalytics
+func (r *UserAnalyticsRequest) Update(ctx context.Context, reqObj *UserAnalytics) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserAnalytics
+func (r *UserAnalyticsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ActivityStatistics returns request builder for ActivityStatistics collection
+func (b *UserAnalyticsRequestBuilder) ActivityStatistics() *UserAnalyticsActivityStatisticsCollectionRequestBuilder {
+ bb := &UserAnalyticsActivityStatisticsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activityStatistics"
+ return bb
+}
+
+// UserAnalyticsActivityStatisticsCollectionRequestBuilder is request builder for ActivityStatistics collection
+type UserAnalyticsActivityStatisticsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ActivityStatistics collection
+func (b *UserAnalyticsActivityStatisticsCollectionRequestBuilder) Request() *UserAnalyticsActivityStatisticsCollectionRequest {
+ return &UserAnalyticsActivityStatisticsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ActivityStatistics item
+func (b *UserAnalyticsActivityStatisticsCollectionRequestBuilder) ID(id string) *ActivityStatisticsRequestBuilder {
+ bb := &ActivityStatisticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserAnalyticsActivityStatisticsCollectionRequest is request for ActivityStatistics collection
+type UserAnalyticsActivityStatisticsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ActivityStatistics collection
+func (r *UserAnalyticsActivityStatisticsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ActivityStatistics, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ActivityStatistics
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ActivityStatistics
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ActivityStatistics collection
+func (r *UserAnalyticsActivityStatisticsCollectionRequest) Get(ctx context.Context) ([]ActivityStatistics, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ActivityStatistics collection
+func (r *UserAnalyticsActivityStatisticsCollectionRequest) Add(ctx context.Context, reqObj *ActivityStatistics) (resObj *ActivityStatistics, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserAppInstallStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserAppInstallStatusModel.go
new file mode 100644
index 00000000..24ccb4b8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserAppInstallStatusModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserAppInstallStatus Contains properties for the installation status for a user.
+type UserAppInstallStatus struct {
+ // Entity is the base model of UserAppInstallStatus
+ Entity
+ // UserName User name.
+ UserName *string `json:"userName,omitempty"`
+ // UserPrincipalName User Principal Name.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // InstalledDeviceCount Installed Device Count.
+ InstalledDeviceCount *int `json:"installedDeviceCount,omitempty"`
+ // FailedDeviceCount Failed Device Count.
+ FailedDeviceCount *int `json:"failedDeviceCount,omitempty"`
+ // NotInstalledDeviceCount Not installed device count.
+ NotInstalledDeviceCount *int `json:"notInstalledDeviceCount,omitempty"`
+ // App undocumented
+ App *MobileApp `json:"app,omitempty"`
+ // DeviceStatuses undocumented
+ DeviceStatuses []MobileAppInstallStatus `json:"deviceStatuses,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserAppInstallStatusRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserAppInstallStatusRequest.go
new file mode 100644
index 00000000..db850297
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserAppInstallStatusRequest.go
@@ -0,0 +1,146 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// UserAppInstallStatusRequestBuilder is request builder for UserAppInstallStatus
+type UserAppInstallStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserAppInstallStatusRequest
+func (b *UserAppInstallStatusRequestBuilder) Request() *UserAppInstallStatusRequest {
+ return &UserAppInstallStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserAppInstallStatusRequest is request for UserAppInstallStatus
+type UserAppInstallStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for UserAppInstallStatus
+func (r *UserAppInstallStatusRequest) Get(ctx context.Context) (resObj *UserAppInstallStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserAppInstallStatus
+func (r *UserAppInstallStatusRequest) Update(ctx context.Context, reqObj *UserAppInstallStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserAppInstallStatus
+func (r *UserAppInstallStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// App is navigation property
+func (b *UserAppInstallStatusRequestBuilder) App() *MobileAppRequestBuilder {
+ bb := &MobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/app"
+ return bb
+}
+
+// DeviceStatuses returns request builder for MobileAppInstallStatus collection
+func (b *UserAppInstallStatusRequestBuilder) DeviceStatuses() *UserAppInstallStatusDeviceStatusesCollectionRequestBuilder {
+ bb := &UserAppInstallStatusDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatuses"
+ return bb
+}
+
+// UserAppInstallStatusDeviceStatusesCollectionRequestBuilder is request builder for MobileAppInstallStatus collection
+type UserAppInstallStatusDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppInstallStatus collection
+func (b *UserAppInstallStatusDeviceStatusesCollectionRequestBuilder) Request() *UserAppInstallStatusDeviceStatusesCollectionRequest {
+ return &UserAppInstallStatusDeviceStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppInstallStatus item
+func (b *UserAppInstallStatusDeviceStatusesCollectionRequestBuilder) ID(id string) *MobileAppInstallStatusRequestBuilder {
+ bb := &MobileAppInstallStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserAppInstallStatusDeviceStatusesCollectionRequest is request for MobileAppInstallStatus collection
+type UserAppInstallStatusDeviceStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppInstallStatus collection
+func (r *UserAppInstallStatusDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MobileAppInstallStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppInstallStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppInstallStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppInstallStatus collection
+func (r *UserAppInstallStatusDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]MobileAppInstallStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MobileAppInstallStatus collection
+func (r *UserAppInstallStatusDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppInstallStatus) (resObj *MobileAppInstallStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserConfigurationModel.go
new file mode 100644
index 00000000..9e089df4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserConfiguration undocumented
+type UserConfiguration struct {
+ // Entity is the base model of UserConfiguration
+ Entity
+ // BinaryData undocumented
+ BinaryData *Binary `json:"binaryData,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserConfigurationRequest.go
new file mode 100644
index 00000000..6f321ffe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserConfigurationRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UserConfigurationRequestBuilder is request builder for UserConfiguration
+type UserConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserConfigurationRequest
+func (b *UserConfigurationRequestBuilder) Request() *UserConfigurationRequest {
+ return &UserConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserConfigurationRequest is request for UserConfiguration
+type UserConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for UserConfiguration
+func (r *UserConfigurationRequest) Get(ctx context.Context) (resObj *UserConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserConfiguration
+func (r *UserConfigurationRequest) Update(ctx context.Context, reqObj *UserConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserConfiguration
+func (r *UserConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserCredentialUsageDetailsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserCredentialUsageDetailsModel.go
new file mode 100644
index 00000000..7eb87d0f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserCredentialUsageDetailsModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// UserCredentialUsageDetails undocumented
+type UserCredentialUsageDetails struct {
+ // Entity is the base model of UserCredentialUsageDetails
+ Entity
+ // Feature undocumented
+ Feature *FeatureType `json:"feature,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // UserDisplayName undocumented
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // IsSuccess undocumented
+ IsSuccess *bool `json:"isSuccess,omitempty"`
+ // AuthMethod undocumented
+ AuthMethod *UsageAuthMethod `json:"authMethod,omitempty"`
+ // FailureReason undocumented
+ FailureReason *string `json:"failureReason,omitempty"`
+ // EventDateTime undocumented
+ EventDateTime *time.Time `json:"eventDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserCredentialUsageDetailsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserCredentialUsageDetailsRequest.go
new file mode 100644
index 00000000..dbe65ec4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserCredentialUsageDetailsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UserCredentialUsageDetailsRequestBuilder is request builder for UserCredentialUsageDetails
+type UserCredentialUsageDetailsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserCredentialUsageDetailsRequest
+func (b *UserCredentialUsageDetailsRequestBuilder) Request() *UserCredentialUsageDetailsRequest {
+ return &UserCredentialUsageDetailsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserCredentialUsageDetailsRequest is request for UserCredentialUsageDetails
+type UserCredentialUsageDetailsRequest struct{ BaseRequest }
+
+// Get performs GET request for UserCredentialUsageDetails
+func (r *UserCredentialUsageDetailsRequest) Get(ctx context.Context) (resObj *UserCredentialUsageDetails, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserCredentialUsageDetails
+func (r *UserCredentialUsageDetailsRequest) Update(ctx context.Context, reqObj *UserCredentialUsageDetails) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserCredentialUsageDetails
+func (r *UserCredentialUsageDetailsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserEmailSourceEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserEmailSourceEnum.go
new file mode 100644
index 00000000..0763aa18
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserEmailSourceEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserEmailSource undocumented
+type UserEmailSource int
+
+const (
+ // UserEmailSourceVUserPrincipalName undocumented
+ UserEmailSourceVUserPrincipalName UserEmailSource = 0
+ // UserEmailSourceVPrimarySMTPAddress undocumented
+ UserEmailSourceVPrimarySMTPAddress UserEmailSource = 1
+)
+
+// UserEmailSourcePUserPrincipalName returns a pointer to UserEmailSourceVUserPrincipalName
+func UserEmailSourcePUserPrincipalName() *UserEmailSource {
+ v := UserEmailSourceVUserPrincipalName
+ return &v
+}
+
+// UserEmailSourcePPrimarySMTPAddress returns a pointer to UserEmailSourceVPrimarySMTPAddress
+func UserEmailSourcePPrimarySMTPAddress() *UserEmailSource {
+ v := UserEmailSourceVPrimarySMTPAddress
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsBaselineModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsBaselineModel.go
new file mode 100644
index 00000000..04fb4838
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsBaselineModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// UserExperienceAnalyticsBaseline The user experience analytics baseline entity contains baseline values against which to compare the user experience analytics scores.
+type UserExperienceAnalyticsBaseline struct {
+ // Entity is the base model of UserExperienceAnalyticsBaseline
+ Entity
+ // DisplayName The name of the user experience analytics baseline.
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsBuiltIn Signifies if the current baseline is the commercial median baseline or a custom baseline.
+ IsBuiltIn *bool `json:"isBuiltIn,omitempty"`
+ // CreatedDateTime The date the custom baseline was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DeviceBootPerformanceMetrics undocumented
+ DeviceBootPerformanceMetrics *UserExperienceAnalyticsCategory `json:"deviceBootPerformanceMetrics,omitempty"`
+ // BestPracticesMetrics undocumented
+ BestPracticesMetrics *UserExperienceAnalyticsCategory `json:"bestPracticesMetrics,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsBaselineRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsBaselineRequest.go
new file mode 100644
index 00000000..1cf023e5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsBaselineRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UserExperienceAnalyticsBaselineRequestBuilder is request builder for UserExperienceAnalyticsBaseline
+type UserExperienceAnalyticsBaselineRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserExperienceAnalyticsBaselineRequest
+func (b *UserExperienceAnalyticsBaselineRequestBuilder) Request() *UserExperienceAnalyticsBaselineRequest {
+ return &UserExperienceAnalyticsBaselineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserExperienceAnalyticsBaselineRequest is request for UserExperienceAnalyticsBaseline
+type UserExperienceAnalyticsBaselineRequest struct{ BaseRequest }
+
+// Get performs GET request for UserExperienceAnalyticsBaseline
+func (r *UserExperienceAnalyticsBaselineRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsBaseline, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserExperienceAnalyticsBaseline
+func (r *UserExperienceAnalyticsBaselineRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsBaseline) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserExperienceAnalyticsBaseline
+func (r *UserExperienceAnalyticsBaselineRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// BestPracticesMetrics is navigation property
+func (b *UserExperienceAnalyticsBaselineRequestBuilder) BestPracticesMetrics() *UserExperienceAnalyticsCategoryRequestBuilder {
+ bb := &UserExperienceAnalyticsCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/bestPracticesMetrics"
+ return bb
+}
+
+// DeviceBootPerformanceMetrics is navigation property
+func (b *UserExperienceAnalyticsBaselineRequestBuilder) DeviceBootPerformanceMetrics() *UserExperienceAnalyticsCategoryRequestBuilder {
+ bb := &UserExperienceAnalyticsCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceBootPerformanceMetrics"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsCategoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsCategoryModel.go
new file mode 100644
index 00000000..b9eacdd1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsCategoryModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserExperienceAnalyticsCategory The user experience analytics category entity contains the scores and insights for the various metrics of a category.
+type UserExperienceAnalyticsCategory struct {
+ // Entity is the base model of UserExperienceAnalyticsCategory
+ Entity
+ // Insights The insights for the user experience analytics category.
+ Insights []UserExperienceAnalyticsInsight `json:"insights,omitempty"`
+ // MetricValues undocumented
+ MetricValues []UserExperienceAnalyticsMetric `json:"metricValues,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsCategoryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsCategoryRequest.go
new file mode 100644
index 00000000..e8604f9b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsCategoryRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// UserExperienceAnalyticsCategoryRequestBuilder is request builder for UserExperienceAnalyticsCategory
+type UserExperienceAnalyticsCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserExperienceAnalyticsCategoryRequest
+func (b *UserExperienceAnalyticsCategoryRequestBuilder) Request() *UserExperienceAnalyticsCategoryRequest {
+ return &UserExperienceAnalyticsCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserExperienceAnalyticsCategoryRequest is request for UserExperienceAnalyticsCategory
+type UserExperienceAnalyticsCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for UserExperienceAnalyticsCategory
+func (r *UserExperienceAnalyticsCategoryRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserExperienceAnalyticsCategory
+func (r *UserExperienceAnalyticsCategoryRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserExperienceAnalyticsCategory
+func (r *UserExperienceAnalyticsCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MetricValues returns request builder for UserExperienceAnalyticsMetric collection
+func (b *UserExperienceAnalyticsCategoryRequestBuilder) MetricValues() *UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder {
+ bb := &UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/metricValues"
+ return bb
+}
+
+// UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder is request builder for UserExperienceAnalyticsMetric collection
+type UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserExperienceAnalyticsMetric collection
+func (b *UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder) Request() *UserExperienceAnalyticsCategoryMetricValuesCollectionRequest {
+ return &UserExperienceAnalyticsCategoryMetricValuesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserExperienceAnalyticsMetric item
+func (b *UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsMetricRequestBuilder {
+ bb := &UserExperienceAnalyticsMetricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserExperienceAnalyticsCategoryMetricValuesCollectionRequest is request for UserExperienceAnalyticsMetric collection
+type UserExperienceAnalyticsCategoryMetricValuesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsCategoryMetricValuesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UserExperienceAnalyticsMetric, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserExperienceAnalyticsMetric
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserExperienceAnalyticsMetric
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsCategoryMetricValuesCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsMetric, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsCategoryMetricValuesCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsMetric) (resObj *UserExperienceAnalyticsMetric, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceModel.go
new file mode 100644
index 00000000..a540b6b0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserExperienceAnalyticsDevicePerformance The user experience analytics device performance entity contains device boot performance details.
+type UserExperienceAnalyticsDevicePerformance struct {
+ // Entity is the base model of UserExperienceAnalyticsDevicePerformance
+ Entity
+ // DeviceName The user experience analytics device name.
+ DeviceName *string `json:"deviceName,omitempty"`
+ // Model The user experience analytics device model.
+ Model *string `json:"model,omitempty"`
+ // Manufacturer The user experience analytics device manufacturer.
+ Manufacturer *string `json:"manufacturer,omitempty"`
+ // DiskType The user experience analytics device disk type.
+ DiskType *DiskType `json:"diskType,omitempty"`
+ // OperatingSystemVersion The user experience analytics device Operating System version.
+ OperatingSystemVersion *string `json:"operatingSystemVersion,omitempty"`
+ // BootScore The user experience analytics device boot score.
+ BootScore *int `json:"bootScore,omitempty"`
+ // CoreBootTimeInMs The user experience analytics device core boot time in milliseconds.
+ CoreBootTimeInMs *int `json:"coreBootTimeInMs,omitempty"`
+ // GroupPolicyBootTimeInMs The user experience analytics device group policy boot time in milliseconds.
+ GroupPolicyBootTimeInMs *int `json:"groupPolicyBootTimeInMs,omitempty"`
+ // HealthStatus The health state of the user experience analytics device.
+ HealthStatus *UserExperienceAnalyticsHealthState `json:"healthStatus,omitempty"`
+ // LoginScore The user experience analytics device login score.
+ LoginScore *int `json:"loginScore,omitempty"`
+ // CoreLoginTimeInMs The user experience analytics device core login time in milliseconds.
+ CoreLoginTimeInMs *int `json:"coreLoginTimeInMs,omitempty"`
+ // GroupPolicyLoginTimeInMs The user experience analytics device group policy login time in milliseconds.
+ GroupPolicyLoginTimeInMs *int `json:"groupPolicyLoginTimeInMs,omitempty"`
+ // DeviceCount User experience analytics summarized device count.
+ DeviceCount *int `json:"deviceCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceRequest.go
new file mode 100644
index 00000000..570333c3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsDevicePerformanceRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UserExperienceAnalyticsDevicePerformanceRequestBuilder is request builder for UserExperienceAnalyticsDevicePerformance
+type UserExperienceAnalyticsDevicePerformanceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserExperienceAnalyticsDevicePerformanceRequest
+func (b *UserExperienceAnalyticsDevicePerformanceRequestBuilder) Request() *UserExperienceAnalyticsDevicePerformanceRequest {
+ return &UserExperienceAnalyticsDevicePerformanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserExperienceAnalyticsDevicePerformanceRequest is request for UserExperienceAnalyticsDevicePerformance
+type UserExperienceAnalyticsDevicePerformanceRequest struct{ BaseRequest }
+
+// Get performs GET request for UserExperienceAnalyticsDevicePerformance
+func (r *UserExperienceAnalyticsDevicePerformanceRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsDevicePerformance, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserExperienceAnalyticsDevicePerformance
+func (r *UserExperienceAnalyticsDevicePerformanceRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsDevicePerformance) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserExperienceAnalyticsDevicePerformance
+func (r *UserExperienceAnalyticsDevicePerformanceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryModel.go
new file mode 100644
index 00000000..bd5438cd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// UserExperienceAnalyticsDeviceStartupHistory The user experience analytics device startup history entity contains device boot performance history details.
+type UserExperienceAnalyticsDeviceStartupHistory struct {
+ // Entity is the base model of UserExperienceAnalyticsDeviceStartupHistory
+ Entity
+ // DeviceID The user experience analytics device id.
+ DeviceID *string `json:"deviceId,omitempty"`
+ // StartTime The user experience analytics device boot start time.
+ StartTime *time.Time `json:"startTime,omitempty"`
+ // CoreBootTimeInMs The user experience analytics device core boot time in milliseconds.
+ CoreBootTimeInMs *int `json:"coreBootTimeInMs,omitempty"`
+ // GroupPolicyBootTimeInMs The User experience analytics Device group policy boot time in milliseconds.
+ GroupPolicyBootTimeInMs *int `json:"groupPolicyBootTimeInMs,omitempty"`
+ // FeatureUpdateBootTimeInMs The user experience analytics device feature update time in milliseconds.
+ FeatureUpdateBootTimeInMs *int `json:"featureUpdateBootTimeInMs,omitempty"`
+ // TotalBootTimeInMs The user experience analytics device total boot time in milliseconds.
+ TotalBootTimeInMs *int `json:"totalBootTimeInMs,omitempty"`
+ // GroupPolicyLoginTimeInMs The User experience analytics Device group policy login time in milliseconds.
+ GroupPolicyLoginTimeInMs *int `json:"groupPolicyLoginTimeInMs,omitempty"`
+ // CoreLoginTimeInMs The user experience analytics device core login time in milliseconds.
+ CoreLoginTimeInMs *int `json:"coreLoginTimeInMs,omitempty"`
+ // TotalLoginTimeInMs The user experience analytics device total login time in milliseconds.
+ TotalLoginTimeInMs *int `json:"totalLoginTimeInMs,omitempty"`
+ // IsFirstLogin The user experience analytics device first login.
+ IsFirstLogin *bool `json:"isFirstLogin,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryRequest.go
new file mode 100644
index 00000000..4c54dad1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsDeviceStartupHistoryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder is request builder for UserExperienceAnalyticsDeviceStartupHistory
+type UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserExperienceAnalyticsDeviceStartupHistoryRequest
+func (b *UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder) Request() *UserExperienceAnalyticsDeviceStartupHistoryRequest {
+ return &UserExperienceAnalyticsDeviceStartupHistoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserExperienceAnalyticsDeviceStartupHistoryRequest is request for UserExperienceAnalyticsDeviceStartupHistory
+type UserExperienceAnalyticsDeviceStartupHistoryRequest struct{ BaseRequest }
+
+// Get performs GET request for UserExperienceAnalyticsDeviceStartupHistory
+func (r *UserExperienceAnalyticsDeviceStartupHistoryRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsDeviceStartupHistory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserExperienceAnalyticsDeviceStartupHistory
+func (r *UserExperienceAnalyticsDeviceStartupHistoryRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsDeviceStartupHistory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserExperienceAnalyticsDeviceStartupHistory
+func (r *UserExperienceAnalyticsDeviceStartupHistoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsHealthStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsHealthStateEnum.go
new file mode 100644
index 00000000..f48586c3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsHealthStateEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserExperienceAnalyticsHealthState undocumented
+type UserExperienceAnalyticsHealthState int
+
+const (
+ // UserExperienceAnalyticsHealthStateVUnknown undocumented
+ UserExperienceAnalyticsHealthStateVUnknown UserExperienceAnalyticsHealthState = 0
+ // UserExperienceAnalyticsHealthStateVInsufficientData undocumented
+ UserExperienceAnalyticsHealthStateVInsufficientData UserExperienceAnalyticsHealthState = 1
+ // UserExperienceAnalyticsHealthStateVNeedsAttention undocumented
+ UserExperienceAnalyticsHealthStateVNeedsAttention UserExperienceAnalyticsHealthState = 2
+ // UserExperienceAnalyticsHealthStateVMeetingGoals undocumented
+ UserExperienceAnalyticsHealthStateVMeetingGoals UserExperienceAnalyticsHealthState = 3
+)
+
+// UserExperienceAnalyticsHealthStatePUnknown returns a pointer to UserExperienceAnalyticsHealthStateVUnknown
+func UserExperienceAnalyticsHealthStatePUnknown() *UserExperienceAnalyticsHealthState {
+ v := UserExperienceAnalyticsHealthStateVUnknown
+ return &v
+}
+
+// UserExperienceAnalyticsHealthStatePInsufficientData returns a pointer to UserExperienceAnalyticsHealthStateVInsufficientData
+func UserExperienceAnalyticsHealthStatePInsufficientData() *UserExperienceAnalyticsHealthState {
+ v := UserExperienceAnalyticsHealthStateVInsufficientData
+ return &v
+}
+
+// UserExperienceAnalyticsHealthStatePNeedsAttention returns a pointer to UserExperienceAnalyticsHealthStateVNeedsAttention
+func UserExperienceAnalyticsHealthStatePNeedsAttention() *UserExperienceAnalyticsHealthState {
+ v := UserExperienceAnalyticsHealthStateVNeedsAttention
+ return &v
+}
+
+// UserExperienceAnalyticsHealthStatePMeetingGoals returns a pointer to UserExperienceAnalyticsHealthStateVMeetingGoals
+func UserExperienceAnalyticsHealthStatePMeetingGoals() *UserExperienceAnalyticsHealthState {
+ v := UserExperienceAnalyticsHealthStateVMeetingGoals
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsInsightModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsInsightModel.go
new file mode 100644
index 00000000..6c9657fc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsInsightModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserExperienceAnalyticsInsight undocumented
+type UserExperienceAnalyticsInsight struct {
+ // Object is the base model of UserExperienceAnalyticsInsight
+ Object
+ // UserExperienceAnalyticsMetricID The unique identifier of the user experience analytics insight.
+ UserExperienceAnalyticsMetricID *string `json:"userExperienceAnalyticsMetricId,omitempty"`
+ // InsightID The unique identifier of the user experience analytics insight.
+ InsightID *string `json:"insightId,omitempty"`
+ // Values The value of the user experience analytics insight.
+ Values []UserExperienceAnalyticsInsightValue `json:"values,omitempty"`
+ // Severity The value of the user experience analytics insight.
+ Severity *UserExperienceAnalyticsInsightSeverity `json:"severity,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsInsightSeverityEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsInsightSeverityEnum.go
new file mode 100644
index 00000000..b6bc5962
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsInsightSeverityEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserExperienceAnalyticsInsightSeverity undocumented
+type UserExperienceAnalyticsInsightSeverity int
+
+const (
+ // UserExperienceAnalyticsInsightSeverityVNone undocumented
+ UserExperienceAnalyticsInsightSeverityVNone UserExperienceAnalyticsInsightSeverity = 0
+ // UserExperienceAnalyticsInsightSeverityVInformational undocumented
+ UserExperienceAnalyticsInsightSeverityVInformational UserExperienceAnalyticsInsightSeverity = 1
+ // UserExperienceAnalyticsInsightSeverityVWarning undocumented
+ UserExperienceAnalyticsInsightSeverityVWarning UserExperienceAnalyticsInsightSeverity = 2
+ // UserExperienceAnalyticsInsightSeverityVError undocumented
+ UserExperienceAnalyticsInsightSeverityVError UserExperienceAnalyticsInsightSeverity = 3
+)
+
+// UserExperienceAnalyticsInsightSeverityPNone returns a pointer to UserExperienceAnalyticsInsightSeverityVNone
+func UserExperienceAnalyticsInsightSeverityPNone() *UserExperienceAnalyticsInsightSeverity {
+ v := UserExperienceAnalyticsInsightSeverityVNone
+ return &v
+}
+
+// UserExperienceAnalyticsInsightSeverityPInformational returns a pointer to UserExperienceAnalyticsInsightSeverityVInformational
+func UserExperienceAnalyticsInsightSeverityPInformational() *UserExperienceAnalyticsInsightSeverity {
+ v := UserExperienceAnalyticsInsightSeverityVInformational
+ return &v
+}
+
+// UserExperienceAnalyticsInsightSeverityPWarning returns a pointer to UserExperienceAnalyticsInsightSeverityVWarning
+func UserExperienceAnalyticsInsightSeverityPWarning() *UserExperienceAnalyticsInsightSeverity {
+ v := UserExperienceAnalyticsInsightSeverityVWarning
+ return &v
+}
+
+// UserExperienceAnalyticsInsightSeverityPError returns a pointer to UserExperienceAnalyticsInsightSeverityVError
+func UserExperienceAnalyticsInsightSeverityPError() *UserExperienceAnalyticsInsightSeverity {
+ v := UserExperienceAnalyticsInsightSeverityVError
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsInsightValueModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsInsightValueModel.go
new file mode 100644
index 00000000..9e5ce7de
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsInsightValueModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserExperienceAnalyticsInsightValue undocumented
+type UserExperienceAnalyticsInsightValue struct {
+ // Object is the base model of UserExperienceAnalyticsInsightValue
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsMetricModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsMetricModel.go
new file mode 100644
index 00000000..3d975361
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsMetricModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserExperienceAnalyticsMetric The user experience analytics metric contains the score and units of a metric of a user experience anlaytics category.
+type UserExperienceAnalyticsMetric struct {
+ // Entity is the base model of UserExperienceAnalyticsMetric
+ Entity
+ // Value The value of the user experience analytics metric.
+ Value *float64 `json:"value,omitempty"`
+ // Unit The unit of the user experience analytics metric.
+ Unit *string `json:"unit,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsMetricRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsMetricRequest.go
new file mode 100644
index 00000000..1859d91b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsMetricRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UserExperienceAnalyticsMetricRequestBuilder is request builder for UserExperienceAnalyticsMetric
+type UserExperienceAnalyticsMetricRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserExperienceAnalyticsMetricRequest
+func (b *UserExperienceAnalyticsMetricRequestBuilder) Request() *UserExperienceAnalyticsMetricRequest {
+ return &UserExperienceAnalyticsMetricRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserExperienceAnalyticsMetricRequest is request for UserExperienceAnalyticsMetric
+type UserExperienceAnalyticsMetricRequest struct{ BaseRequest }
+
+// Get performs GET request for UserExperienceAnalyticsMetric
+func (r *UserExperienceAnalyticsMetricRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsMetric, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserExperienceAnalyticsMetric
+func (r *UserExperienceAnalyticsMetricRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsMetric) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserExperienceAnalyticsMetric
+func (r *UserExperienceAnalyticsMetricRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsOverviewModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsOverviewModel.go
new file mode 100644
index 00000000..2975d1c4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsOverviewModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserExperienceAnalyticsOverview The user experience analytics overview entity contains the overall score and the scores and insights of every metric of all categories.
+type UserExperienceAnalyticsOverview struct {
+ // Entity is the base model of UserExperienceAnalyticsOverview
+ Entity
+ // Insights The user experience analytics insights.
+ Insights []UserExperienceAnalyticsInsight `json:"insights,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsOverviewRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsOverviewRequest.go
new file mode 100644
index 00000000..feb52084
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsOverviewRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UserExperienceAnalyticsOverviewRequestBuilder is request builder for UserExperienceAnalyticsOverview
+type UserExperienceAnalyticsOverviewRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserExperienceAnalyticsOverviewRequest
+func (b *UserExperienceAnalyticsOverviewRequestBuilder) Request() *UserExperienceAnalyticsOverviewRequest {
+ return &UserExperienceAnalyticsOverviewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserExperienceAnalyticsOverviewRequest is request for UserExperienceAnalyticsOverview
+type UserExperienceAnalyticsOverviewRequest struct{ BaseRequest }
+
+// Get performs GET request for UserExperienceAnalyticsOverview
+func (r *UserExperienceAnalyticsOverviewRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsOverview, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserExperienceAnalyticsOverview
+func (r *UserExperienceAnalyticsOverviewRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsOverview) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserExperienceAnalyticsOverview
+func (r *UserExperienceAnalyticsOverviewRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryModel.go
new file mode 100644
index 00000000..bb589447
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserExperienceAnalyticsRegressionSummary The user experience analytics Regression Summary.
+type UserExperienceAnalyticsRegressionSummary struct {
+ // Entity is the base model of UserExperienceAnalyticsRegressionSummary
+ Entity
+ // ModelRegression undocumented
+ ModelRegression []UserExperienceAnalyticsMetric `json:"modelRegression,omitempty"`
+ // ManufacturerRegression undocumented
+ ManufacturerRegression []UserExperienceAnalyticsMetric `json:"manufacturerRegression,omitempty"`
+ // OperatingSystemRegression undocumented
+ OperatingSystemRegression []UserExperienceAnalyticsMetric `json:"operatingSystemRegression,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryRequest.go
new file mode 100644
index 00000000..06e43df9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsRegressionSummaryRequest.go
@@ -0,0 +1,327 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// UserExperienceAnalyticsRegressionSummaryRequestBuilder is request builder for UserExperienceAnalyticsRegressionSummary
+type UserExperienceAnalyticsRegressionSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserExperienceAnalyticsRegressionSummaryRequest
+func (b *UserExperienceAnalyticsRegressionSummaryRequestBuilder) Request() *UserExperienceAnalyticsRegressionSummaryRequest {
+ return &UserExperienceAnalyticsRegressionSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserExperienceAnalyticsRegressionSummaryRequest is request for UserExperienceAnalyticsRegressionSummary
+type UserExperienceAnalyticsRegressionSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for UserExperienceAnalyticsRegressionSummary
+func (r *UserExperienceAnalyticsRegressionSummaryRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsRegressionSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserExperienceAnalyticsRegressionSummary
+func (r *UserExperienceAnalyticsRegressionSummaryRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsRegressionSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserExperienceAnalyticsRegressionSummary
+func (r *UserExperienceAnalyticsRegressionSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManufacturerRegression returns request builder for UserExperienceAnalyticsMetric collection
+func (b *UserExperienceAnalyticsRegressionSummaryRequestBuilder) ManufacturerRegression() *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder {
+ bb := &UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/manufacturerRegression"
+ return bb
+}
+
+// UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder is request builder for UserExperienceAnalyticsMetric collection
+type UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserExperienceAnalyticsMetric collection
+func (b *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder) Request() *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest {
+ return &UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserExperienceAnalyticsMetric item
+func (b *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsMetricRequestBuilder {
+ bb := &UserExperienceAnalyticsMetricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest is request for UserExperienceAnalyticsMetric collection
+type UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UserExperienceAnalyticsMetric, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserExperienceAnalyticsMetric
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserExperienceAnalyticsMetric
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsMetric, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsMetric) (resObj *UserExperienceAnalyticsMetric, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ModelRegression returns request builder for UserExperienceAnalyticsMetric collection
+func (b *UserExperienceAnalyticsRegressionSummaryRequestBuilder) ModelRegression() *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder {
+ bb := &UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/modelRegression"
+ return bb
+}
+
+// UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder is request builder for UserExperienceAnalyticsMetric collection
+type UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserExperienceAnalyticsMetric collection
+func (b *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder) Request() *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest {
+ return &UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserExperienceAnalyticsMetric item
+func (b *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsMetricRequestBuilder {
+ bb := &UserExperienceAnalyticsMetricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest is request for UserExperienceAnalyticsMetric collection
+type UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UserExperienceAnalyticsMetric, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserExperienceAnalyticsMetric
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserExperienceAnalyticsMetric
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsMetric, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsMetric) (resObj *UserExperienceAnalyticsMetric, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// OperatingSystemRegression returns request builder for UserExperienceAnalyticsMetric collection
+func (b *UserExperienceAnalyticsRegressionSummaryRequestBuilder) OperatingSystemRegression() *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder {
+ bb := &UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/operatingSystemRegression"
+ return bb
+}
+
+// UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder is request builder for UserExperienceAnalyticsMetric collection
+type UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserExperienceAnalyticsMetric collection
+func (b *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder) Request() *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest {
+ return &UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserExperienceAnalyticsMetric item
+func (b *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsMetricRequestBuilder {
+ bb := &UserExperienceAnalyticsMetricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest is request for UserExperienceAnalyticsMetric collection
+type UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UserExperienceAnalyticsMetric, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserExperienceAnalyticsMetric
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserExperienceAnalyticsMetric
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsMetric, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsMetric) (resObj *UserExperienceAnalyticsMetric, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsSummarizedByEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsSummarizedByEnum.go
new file mode 100644
index 00000000..8ecb5586
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserExperienceAnalyticsSummarizedByEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserExperienceAnalyticsSummarizedBy undocumented
+type UserExperienceAnalyticsSummarizedBy int
+
+const (
+ // UserExperienceAnalyticsSummarizedByVNone undocumented
+ UserExperienceAnalyticsSummarizedByVNone UserExperienceAnalyticsSummarizedBy = 0
+ // UserExperienceAnalyticsSummarizedByVModel undocumented
+ UserExperienceAnalyticsSummarizedByVModel UserExperienceAnalyticsSummarizedBy = 1
+ // UserExperienceAnalyticsSummarizedByVAllRegressions undocumented
+ UserExperienceAnalyticsSummarizedByVAllRegressions UserExperienceAnalyticsSummarizedBy = 3
+ // UserExperienceAnalyticsSummarizedByVModelRegression undocumented
+ UserExperienceAnalyticsSummarizedByVModelRegression UserExperienceAnalyticsSummarizedBy = 4
+ // UserExperienceAnalyticsSummarizedByVManufacturerRegression undocumented
+ UserExperienceAnalyticsSummarizedByVManufacturerRegression UserExperienceAnalyticsSummarizedBy = 5
+ // UserExperienceAnalyticsSummarizedByVOperatingSystemVersionRegression undocumented
+ UserExperienceAnalyticsSummarizedByVOperatingSystemVersionRegression UserExperienceAnalyticsSummarizedBy = 6
+)
+
+// UserExperienceAnalyticsSummarizedByPNone returns a pointer to UserExperienceAnalyticsSummarizedByVNone
+func UserExperienceAnalyticsSummarizedByPNone() *UserExperienceAnalyticsSummarizedBy {
+ v := UserExperienceAnalyticsSummarizedByVNone
+ return &v
+}
+
+// UserExperienceAnalyticsSummarizedByPModel returns a pointer to UserExperienceAnalyticsSummarizedByVModel
+func UserExperienceAnalyticsSummarizedByPModel() *UserExperienceAnalyticsSummarizedBy {
+ v := UserExperienceAnalyticsSummarizedByVModel
+ return &v
+}
+
+// UserExperienceAnalyticsSummarizedByPAllRegressions returns a pointer to UserExperienceAnalyticsSummarizedByVAllRegressions
+func UserExperienceAnalyticsSummarizedByPAllRegressions() *UserExperienceAnalyticsSummarizedBy {
+ v := UserExperienceAnalyticsSummarizedByVAllRegressions
+ return &v
+}
+
+// UserExperienceAnalyticsSummarizedByPModelRegression returns a pointer to UserExperienceAnalyticsSummarizedByVModelRegression
+func UserExperienceAnalyticsSummarizedByPModelRegression() *UserExperienceAnalyticsSummarizedBy {
+ v := UserExperienceAnalyticsSummarizedByVModelRegression
+ return &v
+}
+
+// UserExperienceAnalyticsSummarizedByPManufacturerRegression returns a pointer to UserExperienceAnalyticsSummarizedByVManufacturerRegression
+func UserExperienceAnalyticsSummarizedByPManufacturerRegression() *UserExperienceAnalyticsSummarizedBy {
+ v := UserExperienceAnalyticsSummarizedByVManufacturerRegression
+ return &v
+}
+
+// UserExperienceAnalyticsSummarizedByPOperatingSystemVersionRegression returns a pointer to UserExperienceAnalyticsSummarizedByVOperatingSystemVersionRegression
+func UserExperienceAnalyticsSummarizedByPOperatingSystemVersionRegression() *UserExperienceAnalyticsSummarizedBy {
+ v := UserExperienceAnalyticsSummarizedByVOperatingSystemVersionRegression
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserFlowTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserFlowTypeEnum.go
new file mode 100644
index 00000000..a0e6efb8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserFlowTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserFlowType undocumented
+type UserFlowType int
+
+const (
+ // UserFlowTypeVSignUp undocumented
+ UserFlowTypeVSignUp UserFlowType = 1
+ // UserFlowTypeVSignIn undocumented
+ UserFlowTypeVSignIn UserFlowType = 2
+ // UserFlowTypeVSignUpOrSignIn undocumented
+ UserFlowTypeVSignUpOrSignIn UserFlowType = 3
+ // UserFlowTypeVPasswordReset undocumented
+ UserFlowTypeVPasswordReset UserFlowType = 4
+ // UserFlowTypeVProfileUpdate undocumented
+ UserFlowTypeVProfileUpdate UserFlowType = 5
+ // UserFlowTypeVResourceOwner undocumented
+ UserFlowTypeVResourceOwner UserFlowType = 6
+ // UserFlowTypeVUnknownFutureValue undocumented
+ UserFlowTypeVUnknownFutureValue UserFlowType = 7
+)
+
+// UserFlowTypePSignUp returns a pointer to UserFlowTypeVSignUp
+func UserFlowTypePSignUp() *UserFlowType {
+ v := UserFlowTypeVSignUp
+ return &v
+}
+
+// UserFlowTypePSignIn returns a pointer to UserFlowTypeVSignIn
+func UserFlowTypePSignIn() *UserFlowType {
+ v := UserFlowTypeVSignIn
+ return &v
+}
+
+// UserFlowTypePSignUpOrSignIn returns a pointer to UserFlowTypeVSignUpOrSignIn
+func UserFlowTypePSignUpOrSignIn() *UserFlowType {
+ v := UserFlowTypeVSignUpOrSignIn
+ return &v
+}
+
+// UserFlowTypePPasswordReset returns a pointer to UserFlowTypeVPasswordReset
+func UserFlowTypePPasswordReset() *UserFlowType {
+ v := UserFlowTypeVPasswordReset
+ return &v
+}
+
+// UserFlowTypePProfileUpdate returns a pointer to UserFlowTypeVProfileUpdate
+func UserFlowTypePProfileUpdate() *UserFlowType {
+ v := UserFlowTypeVProfileUpdate
+ return &v
+}
+
+// UserFlowTypePResourceOwner returns a pointer to UserFlowTypeVResourceOwner
+func UserFlowTypePResourceOwner() *UserFlowType {
+ v := UserFlowTypeVResourceOwner
+ return &v
+}
+
+// UserFlowTypePUnknownFutureValue returns a pointer to UserFlowTypeVUnknownFutureValue
+func UserFlowTypePUnknownFutureValue() *UserFlowType {
+ v := UserFlowTypeVUnknownFutureValue
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserGovernanceCriteriaModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserGovernanceCriteriaModel.go
new file mode 100644
index 00000000..22f227eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserGovernanceCriteriaModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserGovernanceCriteria undocumented
+type UserGovernanceCriteria struct {
+ // GovernanceCriteria is the base model of UserGovernanceCriteria
+ GovernanceCriteria
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserIdentityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserIdentityModel.go
new file mode 100644
index 00000000..3c72aa4f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserIdentityModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserIdentity undocumented
+type UserIdentity struct {
+ // Object is the base model of UserIdentity
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IPAddress undocumented
+ IPAddress *string `json:"ipAddress,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserIdentityTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserIdentityTypeEnum.go
new file mode 100644
index 00000000..da42f5e3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserIdentityTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserIdentityType undocumented
+type UserIdentityType int
+
+const (
+ // UserIdentityTypeVAadUser undocumented
+ UserIdentityTypeVAadUser UserIdentityType = 0
+ // UserIdentityTypeVOnPremiseAadUser undocumented
+ UserIdentityTypeVOnPremiseAadUser UserIdentityType = 1
+ // UserIdentityTypeVAnonymousGuest undocumented
+ UserIdentityTypeVAnonymousGuest UserIdentityType = 2
+ // UserIdentityTypeVFederatedUser undocumented
+ UserIdentityTypeVFederatedUser UserIdentityType = 3
+)
+
+// UserIdentityTypePAadUser returns a pointer to UserIdentityTypeVAadUser
+func UserIdentityTypePAadUser() *UserIdentityType {
+ v := UserIdentityTypeVAadUser
+ return &v
+}
+
+// UserIdentityTypePOnPremiseAadUser returns a pointer to UserIdentityTypeVOnPremiseAadUser
+func UserIdentityTypePOnPremiseAadUser() *UserIdentityType {
+ v := UserIdentityTypeVOnPremiseAadUser
+ return &v
+}
+
+// UserIdentityTypePAnonymousGuest returns a pointer to UserIdentityTypeVAnonymousGuest
+func UserIdentityTypePAnonymousGuest() *UserIdentityType {
+ v := UserIdentityTypeVAnonymousGuest
+ return &v
+}
+
+// UserIdentityTypePFederatedUser returns a pointer to UserIdentityTypeVFederatedUser
+func UserIdentityTypePFederatedUser() *UserIdentityType {
+ v := UserIdentityTypeVFederatedUser
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserInstallStateSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserInstallStateSummaryModel.go
new file mode 100644
index 00000000..1af64d51
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserInstallStateSummaryModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserInstallStateSummary Contains properties for the installation state summary for a user.
+type UserInstallStateSummary struct {
+ // Entity is the base model of UserInstallStateSummary
+ Entity
+ // UserName User name.
+ UserName *string `json:"userName,omitempty"`
+ // InstalledDeviceCount Installed Device Count.
+ InstalledDeviceCount *int `json:"installedDeviceCount,omitempty"`
+ // FailedDeviceCount Failed Device Count.
+ FailedDeviceCount *int `json:"failedDeviceCount,omitempty"`
+ // NotInstalledDeviceCount Not installed device count.
+ NotInstalledDeviceCount *int `json:"notInstalledDeviceCount,omitempty"`
+ // DeviceStates undocumented
+ DeviceStates []DeviceInstallState `json:"deviceStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserInstallStateSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserInstallStateSummaryRequest.go
new file mode 100644
index 00000000..f384ee69
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserInstallStateSummaryRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// UserInstallStateSummaryRequestBuilder is request builder for UserInstallStateSummary
+type UserInstallStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserInstallStateSummaryRequest
+func (b *UserInstallStateSummaryRequestBuilder) Request() *UserInstallStateSummaryRequest {
+ return &UserInstallStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserInstallStateSummaryRequest is request for UserInstallStateSummary
+type UserInstallStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for UserInstallStateSummary
+func (r *UserInstallStateSummaryRequest) Get(ctx context.Context) (resObj *UserInstallStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserInstallStateSummary
+func (r *UserInstallStateSummaryRequest) Update(ctx context.Context, reqObj *UserInstallStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserInstallStateSummary
+func (r *UserInstallStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceStates returns request builder for DeviceInstallState collection
+func (b *UserInstallStateSummaryRequestBuilder) DeviceStates() *UserInstallStateSummaryDeviceStatesCollectionRequestBuilder {
+ bb := &UserInstallStateSummaryDeviceStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStates"
+ return bb
+}
+
+// UserInstallStateSummaryDeviceStatesCollectionRequestBuilder is request builder for DeviceInstallState collection
+type UserInstallStateSummaryDeviceStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceInstallState collection
+func (b *UserInstallStateSummaryDeviceStatesCollectionRequestBuilder) Request() *UserInstallStateSummaryDeviceStatesCollectionRequest {
+ return &UserInstallStateSummaryDeviceStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceInstallState item
+func (b *UserInstallStateSummaryDeviceStatesCollectionRequestBuilder) ID(id string) *DeviceInstallStateRequestBuilder {
+ bb := &DeviceInstallStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserInstallStateSummaryDeviceStatesCollectionRequest is request for DeviceInstallState collection
+type UserInstallStateSummaryDeviceStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceInstallState collection
+func (r *UserInstallStateSummaryDeviceStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceInstallState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceInstallState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceInstallState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceInstallState collection
+func (r *UserInstallStateSummaryDeviceStatesCollectionRequest) Get(ctx context.Context) ([]DeviceInstallState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceInstallState collection
+func (r *UserInstallStateSummaryDeviceStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceInstallState) (resObj *DeviceInstallState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserModel.go
new file mode 100644
index 00000000..794f09bb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserModel.go
@@ -0,0 +1,259 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// User Represents an Azure Active Directory user object.
+type User struct {
+ // DirectoryObject is the base model of User
+ DirectoryObject
+ // SignInActivity undocumented
+ SignInActivity *SignInActivity `json:"signInActivity,omitempty"`
+ // AccountEnabled undocumented
+ AccountEnabled *bool `json:"accountEnabled,omitempty"`
+ // AgeGroup undocumented
+ AgeGroup *string `json:"ageGroup,omitempty"`
+ // AssignedLicenses undocumented
+ AssignedLicenses []AssignedLicense `json:"assignedLicenses,omitempty"`
+ // AssignedPlans undocumented
+ AssignedPlans []AssignedPlan `json:"assignedPlans,omitempty"`
+ // BusinessPhones undocumented
+ BusinessPhones []string `json:"businessPhones,omitempty"`
+ // City undocumented
+ City *string `json:"city,omitempty"`
+ // CompanyName undocumented
+ CompanyName *string `json:"companyName,omitempty"`
+ // ConsentProvidedForMinor undocumented
+ ConsentProvidedForMinor *string `json:"consentProvidedForMinor,omitempty"`
+ // Country undocumented
+ Country *string `json:"country,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // CreationType undocumented
+ CreationType *string `json:"creationType,omitempty"`
+ // Department undocumented
+ Department *string `json:"department,omitempty"`
+ // DeviceKeys undocumented
+ DeviceKeys []DeviceKey `json:"deviceKeys,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // EmployeeID undocumented
+ EmployeeID *string `json:"employeeId,omitempty"`
+ // FaxNumber undocumented
+ FaxNumber *string `json:"faxNumber,omitempty"`
+ // GivenName undocumented
+ GivenName *string `json:"givenName,omitempty"`
+ // Identities undocumented
+ Identities []ObjectIdentity `json:"identities,omitempty"`
+ // ImAddresses undocumented
+ ImAddresses []string `json:"imAddresses,omitempty"`
+ // IsResourceAccount undocumented
+ IsResourceAccount *bool `json:"isResourceAccount,omitempty"`
+ // JobTitle undocumented
+ JobTitle *string `json:"jobTitle,omitempty"`
+ // LastPasswordChangeDateTime undocumented
+ LastPasswordChangeDateTime *time.Time `json:"lastPasswordChangeDateTime,omitempty"`
+ // LegalAgeGroupClassification undocumented
+ LegalAgeGroupClassification *string `json:"legalAgeGroupClassification,omitempty"`
+ // LicenseAssignmentStates undocumented
+ LicenseAssignmentStates []LicenseAssignmentState `json:"licenseAssignmentStates,omitempty"`
+ // Mail undocumented
+ Mail *string `json:"mail,omitempty"`
+ // MailNickname undocumented
+ MailNickname *string `json:"mailNickname,omitempty"`
+ // MobilePhone undocumented
+ MobilePhone *string `json:"mobilePhone,omitempty"`
+ // OnPremisesDistinguishedName undocumented
+ OnPremisesDistinguishedName *string `json:"onPremisesDistinguishedName,omitempty"`
+ // OnPremisesExtensionAttributes undocumented
+ OnPremisesExtensionAttributes *OnPremisesExtensionAttributes `json:"onPremisesExtensionAttributes,omitempty"`
+ // OnPremisesImmutableID undocumented
+ OnPremisesImmutableID *string `json:"onPremisesImmutableId,omitempty"`
+ // OnPremisesLastSyncDateTime undocumented
+ OnPremisesLastSyncDateTime *time.Time `json:"onPremisesLastSyncDateTime,omitempty"`
+ // OnPremisesProvisioningErrors undocumented
+ OnPremisesProvisioningErrors []OnPremisesProvisioningError `json:"onPremisesProvisioningErrors,omitempty"`
+ // OnPremisesSecurityIdentifier undocumented
+ OnPremisesSecurityIdentifier *string `json:"onPremisesSecurityIdentifier,omitempty"`
+ // OnPremisesSyncEnabled undocumented
+ OnPremisesSyncEnabled *bool `json:"onPremisesSyncEnabled,omitempty"`
+ // OnPremisesDomainName undocumented
+ OnPremisesDomainName *string `json:"onPremisesDomainName,omitempty"`
+ // OnPremisesSamAccountName undocumented
+ OnPremisesSamAccountName *string `json:"onPremisesSamAccountName,omitempty"`
+ // OnPremisesUserPrincipalName undocumented
+ OnPremisesUserPrincipalName *string `json:"onPremisesUserPrincipalName,omitempty"`
+ // OtherMails undocumented
+ OtherMails []string `json:"otherMails,omitempty"`
+ // PasswordPolicies undocumented
+ PasswordPolicies *string `json:"passwordPolicies,omitempty"`
+ // PasswordProfile undocumented
+ PasswordProfile *PasswordProfile `json:"passwordProfile,omitempty"`
+ // OfficeLocation undocumented
+ OfficeLocation *string `json:"officeLocation,omitempty"`
+ // PostalCode undocumented
+ PostalCode *string `json:"postalCode,omitempty"`
+ // PreferredDataLocation undocumented
+ PreferredDataLocation *string `json:"preferredDataLocation,omitempty"`
+ // PreferredLanguage undocumented
+ PreferredLanguage *string `json:"preferredLanguage,omitempty"`
+ // ProvisionedPlans undocumented
+ ProvisionedPlans []ProvisionedPlan `json:"provisionedPlans,omitempty"`
+ // ProxyAddresses undocumented
+ ProxyAddresses []string `json:"proxyAddresses,omitempty"`
+ // RefreshTokensValidFromDateTime undocumented
+ RefreshTokensValidFromDateTime *time.Time `json:"refreshTokensValidFromDateTime,omitempty"`
+ // ShowInAddressList undocumented
+ ShowInAddressList *bool `json:"showInAddressList,omitempty"`
+ // SignInSessionsValidFromDateTime undocumented
+ SignInSessionsValidFromDateTime *time.Time `json:"signInSessionsValidFromDateTime,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // StreetAddress undocumented
+ StreetAddress *string `json:"streetAddress,omitempty"`
+ // Surname undocumented
+ Surname *string `json:"surname,omitempty"`
+ // UsageLocation undocumented
+ UsageLocation *string `json:"usageLocation,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // ExternalUserState undocumented
+ ExternalUserState *string `json:"externalUserState,omitempty"`
+ // ExternalUserStateChangeDateTime undocumented
+ ExternalUserStateChangeDateTime *string `json:"externalUserStateChangeDateTime,omitempty"`
+ // UserType undocumented
+ UserType *string `json:"userType,omitempty"`
+ // MailboxSettings undocumented
+ MailboxSettings *MailboxSettings `json:"mailboxSettings,omitempty"`
+ // IdentityUserRisk undocumented
+ IdentityUserRisk *IdentityUserRisk `json:"identityUserRisk,omitempty"`
+ // DeviceEnrollmentLimit The limit on the maximum number of devices that the user is permitted to enroll. Allowed values are 5 or 1000.
+ DeviceEnrollmentLimit *int `json:"deviceEnrollmentLimit,omitempty"`
+ // AboutMe undocumented
+ AboutMe *string `json:"aboutMe,omitempty"`
+ // Birthday undocumented
+ Birthday *time.Time `json:"birthday,omitempty"`
+ // HireDate undocumented
+ HireDate *time.Time `json:"hireDate,omitempty"`
+ // Interests undocumented
+ Interests []string `json:"interests,omitempty"`
+ // MySite undocumented
+ MySite *string `json:"mySite,omitempty"`
+ // PastProjects undocumented
+ PastProjects []string `json:"pastProjects,omitempty"`
+ // PreferredName undocumented
+ PreferredName *string `json:"preferredName,omitempty"`
+ // Responsibilities undocumented
+ Responsibilities []string `json:"responsibilities,omitempty"`
+ // Schools undocumented
+ Schools []string `json:"schools,omitempty"`
+ // Skills undocumented
+ Skills []string `json:"skills,omitempty"`
+ // Analytics undocumented
+ Analytics *UserAnalytics `json:"analytics,omitempty"`
+ // InformationProtection undocumented
+ InformationProtection *InformationProtection `json:"informationProtection,omitempty"`
+ // AppRoleAssignments undocumented
+ AppRoleAssignments []AppRoleAssignment `json:"appRoleAssignments,omitempty"`
+ // CreatedObjects undocumented
+ CreatedObjects []DirectoryObject `json:"createdObjects,omitempty"`
+ // DirectReports undocumented
+ DirectReports []DirectoryObject `json:"directReports,omitempty"`
+ // LicenseDetails undocumented
+ LicenseDetails []LicenseDetails `json:"licenseDetails,omitempty"`
+ // Manager undocumented
+ Manager *DirectoryObject `json:"manager,omitempty"`
+ // MemberOf undocumented
+ MemberOf []DirectoryObject `json:"memberOf,omitempty"`
+ // OwnedDevices undocumented
+ OwnedDevices []DirectoryObject `json:"ownedDevices,omitempty"`
+ // OwnedObjects undocumented
+ OwnedObjects []DirectoryObject `json:"ownedObjects,omitempty"`
+ // RegisteredDevices undocumented
+ RegisteredDevices []DirectoryObject `json:"registeredDevices,omitempty"`
+ // ScopedRoleMemberOf undocumented
+ ScopedRoleMemberOf []ScopedRoleMembership `json:"scopedRoleMemberOf,omitempty"`
+ // TransitiveMemberOf undocumented
+ TransitiveMemberOf []DirectoryObject `json:"transitiveMemberOf,omitempty"`
+ // Outlook undocumented
+ Outlook *OutlookUser `json:"outlook,omitempty"`
+ // Messages undocumented
+ Messages []Message `json:"messages,omitempty"`
+ // JoinedGroups undocumented
+ JoinedGroups []Group `json:"joinedGroups,omitempty"`
+ // MailFolders undocumented
+ MailFolders []MailFolder `json:"mailFolders,omitempty"`
+ // Calendar undocumented
+ Calendar *Calendar `json:"calendar,omitempty"`
+ // Calendars undocumented
+ Calendars []Calendar `json:"calendars,omitempty"`
+ // CalendarGroups undocumented
+ CalendarGroups []CalendarGroup `json:"calendarGroups,omitempty"`
+ // CalendarView undocumented
+ CalendarView []Event `json:"calendarView,omitempty"`
+ // Events undocumented
+ Events []Event `json:"events,omitempty"`
+ // People undocumented
+ People []Person `json:"people,omitempty"`
+ // Contacts undocumented
+ Contacts []Contact `json:"contacts,omitempty"`
+ // ContactFolders undocumented
+ ContactFolders []ContactFolder `json:"contactFolders,omitempty"`
+ // InferenceClassification undocumented
+ InferenceClassification *InferenceClassification `json:"inferenceClassification,omitempty"`
+ // Photo undocumented
+ Photo *ProfilePhoto `json:"photo,omitempty"`
+ // Photos undocumented
+ Photos []ProfilePhoto `json:"photos,omitempty"`
+ // Drive undocumented
+ Drive *Drive `json:"drive,omitempty"`
+ // Drives undocumented
+ Drives []Drive `json:"drives,omitempty"`
+ // FollowedSites undocumented
+ FollowedSites []Site `json:"followedSites,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+ // AgreementAcceptances undocumented
+ AgreementAcceptances []AgreementAcceptance `json:"agreementAcceptances,omitempty"`
+ // DeviceEnrollmentConfigurations undocumented
+ DeviceEnrollmentConfigurations []DeviceEnrollmentConfiguration `json:"deviceEnrollmentConfigurations,omitempty"`
+ // ManagedDevices undocumented
+ ManagedDevices []ManagedDevice `json:"managedDevices,omitempty"`
+ // ManagedAppRegistrations undocumented
+ ManagedAppRegistrations []ManagedAppRegistration `json:"managedAppRegistrations,omitempty"`
+ // WindowsInformationProtectionDeviceRegistrations undocumented
+ WindowsInformationProtectionDeviceRegistrations []WindowsInformationProtectionDeviceRegistration `json:"windowsInformationProtectionDeviceRegistrations,omitempty"`
+ // DeviceManagementTroubleshootingEvents undocumented
+ DeviceManagementTroubleshootingEvents []DeviceManagementTroubleshootingEvent `json:"deviceManagementTroubleshootingEvents,omitempty"`
+ // MobileAppIntentAndStates undocumented
+ MobileAppIntentAndStates []MobileAppIntentAndState `json:"mobileAppIntentAndStates,omitempty"`
+ // MobileAppTroubleshootingEvents undocumented
+ MobileAppTroubleshootingEvents []MobileAppTroubleshootingEvent `json:"mobileAppTroubleshootingEvents,omitempty"`
+ // Notifications undocumented
+ Notifications []Notification `json:"notifications,omitempty"`
+ // Planner undocumented
+ Planner *PlannerUser `json:"planner,omitempty"`
+ // Insights undocumented
+ Insights *OfficeGraphInsights `json:"insights,omitempty"`
+ // Settings undocumented
+ Settings *UserSettings `json:"settings,omitempty"`
+ // Onenote undocumented
+ Onenote *Onenote `json:"onenote,omitempty"`
+ // Profile undocumented
+ Profile *Profile `json:"profile,omitempty"`
+ // Activities undocumented
+ Activities []UserActivity `json:"activities,omitempty"`
+ // Devices undocumented
+ Devices []Device `json:"devices,omitempty"`
+ // OnlineMeetings undocumented
+ OnlineMeetings []OnlineMeeting `json:"onlineMeetings,omitempty"`
+ // Presence undocumented
+ Presence *Presence `json:"presence,omitempty"`
+ // Chats undocumented
+ Chats []Chat `json:"chats,omitempty"`
+ // JoinedTeams undocumented
+ JoinedTeams []Team `json:"joinedTeams,omitempty"`
+ // Teamwork undocumented
+ Teamwork *UserTeamwork `json:"teamwork,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserPFXCertificateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserPFXCertificateModel.go
new file mode 100644
index 00000000..0c86a981
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserPFXCertificateModel.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// UserPFXCertificate Entity that encapsulates all information required for a user's PFX certificates.
+type UserPFXCertificate struct {
+ // Entity is the base model of UserPFXCertificate
+ Entity
+ // Thumbprint SHA-1 thumbprint of the PFX certificate.
+ Thumbprint *string `json:"thumbprint,omitempty"`
+ // IntendedPurpose Certificate's intended purpose from the point-of-view of deployment.
+ IntendedPurpose *UserPfxIntendedPurpose `json:"intendedPurpose,omitempty"`
+ // UserPrincipalName User Principal Name of the PFX certificate.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // StartDateTime Certificate's validity start date/time.
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // ExpirationDateTime Certificate's validity expiration date/time.
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // ProviderName Crypto provider used to encrypt this blob.
+ ProviderName *string `json:"providerName,omitempty"`
+ // KeyName Name of the key (within the provider) used to encrypt the blob.
+ KeyName *string `json:"keyName,omitempty"`
+ // PaddingScheme Padding scheme used by the provider during encryption/decryption.
+ PaddingScheme *UserPfxPaddingScheme `json:"paddingScheme,omitempty"`
+ // EncryptedPfxBlob Encrypted PFX blob.
+ EncryptedPfxBlob *Binary `json:"encryptedPfxBlob,omitempty"`
+ // EncryptedPfxPassword Encrypted PFX password.
+ EncryptedPfxPassword *string `json:"encryptedPfxPassword,omitempty"`
+ // CreatedDateTime Date/time when this PFX certificate was imported.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Date/time when this PFX certificate was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserPFXCertificateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserPFXCertificateRequest.go
new file mode 100644
index 00000000..708c2d72
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserPFXCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UserPFXCertificateRequestBuilder is request builder for UserPFXCertificate
+type UserPFXCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserPFXCertificateRequest
+func (b *UserPFXCertificateRequestBuilder) Request() *UserPFXCertificateRequest {
+ return &UserPFXCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserPFXCertificateRequest is request for UserPFXCertificate
+type UserPFXCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for UserPFXCertificate
+func (r *UserPFXCertificateRequest) Get(ctx context.Context) (resObj *UserPFXCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserPFXCertificate
+func (r *UserPFXCertificateRequest) Update(ctx context.Context, reqObj *UserPFXCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserPFXCertificate
+func (r *UserPFXCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserPfxIntendedPurposeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserPfxIntendedPurposeEnum.go
new file mode 100644
index 00000000..6d2515cb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserPfxIntendedPurposeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserPfxIntendedPurpose undocumented
+type UserPfxIntendedPurpose int
+
+const (
+ // UserPfxIntendedPurposeVUnassigned undocumented
+ UserPfxIntendedPurposeVUnassigned UserPfxIntendedPurpose = 0
+ // UserPfxIntendedPurposeVSmimeEncryption undocumented
+ UserPfxIntendedPurposeVSmimeEncryption UserPfxIntendedPurpose = 1
+ // UserPfxIntendedPurposeVSmimeSigning undocumented
+ UserPfxIntendedPurposeVSmimeSigning UserPfxIntendedPurpose = 2
+ // UserPfxIntendedPurposeVVpn undocumented
+ UserPfxIntendedPurposeVVpn UserPfxIntendedPurpose = 4
+ // UserPfxIntendedPurposeVWifi undocumented
+ UserPfxIntendedPurposeVWifi UserPfxIntendedPurpose = 8
+)
+
+// UserPfxIntendedPurposePUnassigned returns a pointer to UserPfxIntendedPurposeVUnassigned
+func UserPfxIntendedPurposePUnassigned() *UserPfxIntendedPurpose {
+ v := UserPfxIntendedPurposeVUnassigned
+ return &v
+}
+
+// UserPfxIntendedPurposePSmimeEncryption returns a pointer to UserPfxIntendedPurposeVSmimeEncryption
+func UserPfxIntendedPurposePSmimeEncryption() *UserPfxIntendedPurpose {
+ v := UserPfxIntendedPurposeVSmimeEncryption
+ return &v
+}
+
+// UserPfxIntendedPurposePSmimeSigning returns a pointer to UserPfxIntendedPurposeVSmimeSigning
+func UserPfxIntendedPurposePSmimeSigning() *UserPfxIntendedPurpose {
+ v := UserPfxIntendedPurposeVSmimeSigning
+ return &v
+}
+
+// UserPfxIntendedPurposePVpn returns a pointer to UserPfxIntendedPurposeVVpn
+func UserPfxIntendedPurposePVpn() *UserPfxIntendedPurpose {
+ v := UserPfxIntendedPurposeVVpn
+ return &v
+}
+
+// UserPfxIntendedPurposePWifi returns a pointer to UserPfxIntendedPurposeVWifi
+func UserPfxIntendedPurposePWifi() *UserPfxIntendedPurpose {
+ v := UserPfxIntendedPurposeVWifi
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserPfxPaddingSchemeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserPfxPaddingSchemeEnum.go
new file mode 100644
index 00000000..4e135367
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserPfxPaddingSchemeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserPfxPaddingScheme undocumented
+type UserPfxPaddingScheme int
+
+const (
+ // UserPfxPaddingSchemeVNone undocumented
+ UserPfxPaddingSchemeVNone UserPfxPaddingScheme = 0
+ // UserPfxPaddingSchemeVPkcs1 undocumented
+ UserPfxPaddingSchemeVPkcs1 UserPfxPaddingScheme = 1
+ // UserPfxPaddingSchemeVOaepSha1 undocumented
+ UserPfxPaddingSchemeVOaepSha1 UserPfxPaddingScheme = 2
+ // UserPfxPaddingSchemeVOaepSha256 undocumented
+ UserPfxPaddingSchemeVOaepSha256 UserPfxPaddingScheme = 3
+ // UserPfxPaddingSchemeVOaepSha384 undocumented
+ UserPfxPaddingSchemeVOaepSha384 UserPfxPaddingScheme = 4
+ // UserPfxPaddingSchemeVOaepSha512 undocumented
+ UserPfxPaddingSchemeVOaepSha512 UserPfxPaddingScheme = 5
+)
+
+// UserPfxPaddingSchemePNone returns a pointer to UserPfxPaddingSchemeVNone
+func UserPfxPaddingSchemePNone() *UserPfxPaddingScheme {
+ v := UserPfxPaddingSchemeVNone
+ return &v
+}
+
+// UserPfxPaddingSchemePPkcs1 returns a pointer to UserPfxPaddingSchemeVPkcs1
+func UserPfxPaddingSchemePPkcs1() *UserPfxPaddingScheme {
+ v := UserPfxPaddingSchemeVPkcs1
+ return &v
+}
+
+// UserPfxPaddingSchemePOaepSha1 returns a pointer to UserPfxPaddingSchemeVOaepSha1
+func UserPfxPaddingSchemePOaepSha1() *UserPfxPaddingScheme {
+ v := UserPfxPaddingSchemeVOaepSha1
+ return &v
+}
+
+// UserPfxPaddingSchemePOaepSha256 returns a pointer to UserPfxPaddingSchemeVOaepSha256
+func UserPfxPaddingSchemePOaepSha256() *UserPfxPaddingScheme {
+ v := UserPfxPaddingSchemeVOaepSha256
+ return &v
+}
+
+// UserPfxPaddingSchemePOaepSha384 returns a pointer to UserPfxPaddingSchemeVOaepSha384
+func UserPfxPaddingSchemePOaepSha384() *UserPfxPaddingScheme {
+ v := UserPfxPaddingSchemeVOaepSha384
+ return &v
+}
+
+// UserPfxPaddingSchemePOaepSha512 returns a pointer to UserPfxPaddingSchemeVOaepSha512
+func UserPfxPaddingSchemePOaepSha512() *UserPfxPaddingScheme {
+ v := UserPfxPaddingSchemeVOaepSha512
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserRegistrationCountModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserRegistrationCountModel.go
new file mode 100644
index 00000000..84463e1b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserRegistrationCountModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserRegistrationCount undocumented
+type UserRegistrationCount struct {
+ // Object is the base model of UserRegistrationCount
+ Object
+ // RegistrationStatus undocumented
+ RegistrationStatus *RegistrationStatusType `json:"registrationStatus,omitempty"`
+ // RegistrationCount undocumented
+ RegistrationCount *int `json:"registrationCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserRequest.go
new file mode 100644
index 00000000..ba990a44
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserRequest.go
@@ -0,0 +1,3722 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// UserRequestBuilder is request builder for User
+type UserRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserRequest
+func (b *UserRequestBuilder) Request() *UserRequest {
+ return &UserRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserRequest is request for User
+type UserRequest struct{ BaseRequest }
+
+// Get performs GET request for User
+func (r *UserRequest) Get(ctx context.Context) (resObj *User, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for User
+func (r *UserRequest) Update(ctx context.Context, reqObj *User) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for User
+func (r *UserRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Activities returns request builder for UserActivity collection
+func (b *UserRequestBuilder) Activities() *UserActivitiesCollectionRequestBuilder {
+ bb := &UserActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activities"
+ return bb
+}
+
+// UserActivitiesCollectionRequestBuilder is request builder for UserActivity collection
+type UserActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserActivity collection
+func (b *UserActivitiesCollectionRequestBuilder) Request() *UserActivitiesCollectionRequest {
+ return &UserActivitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserActivity item
+func (b *UserActivitiesCollectionRequestBuilder) ID(id string) *UserActivityRequestBuilder {
+ bb := &UserActivityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserActivitiesCollectionRequest is request for UserActivity collection
+type UserActivitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserActivity collection
+func (r *UserActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]UserActivity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserActivity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserActivity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for UserActivity collection
+func (r *UserActivitiesCollectionRequest) Get(ctx context.Context) ([]UserActivity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for UserActivity collection
+func (r *UserActivitiesCollectionRequest) Add(ctx context.Context, reqObj *UserActivity) (resObj *UserActivity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AgreementAcceptances returns request builder for AgreementAcceptance collection
+func (b *UserRequestBuilder) AgreementAcceptances() *UserAgreementAcceptancesCollectionRequestBuilder {
+ bb := &UserAgreementAcceptancesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agreementAcceptances"
+ return bb
+}
+
+// UserAgreementAcceptancesCollectionRequestBuilder is request builder for AgreementAcceptance collection
+type UserAgreementAcceptancesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AgreementAcceptance collection
+func (b *UserAgreementAcceptancesCollectionRequestBuilder) Request() *UserAgreementAcceptancesCollectionRequest {
+ return &UserAgreementAcceptancesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AgreementAcceptance item
+func (b *UserAgreementAcceptancesCollectionRequestBuilder) ID(id string) *AgreementAcceptanceRequestBuilder {
+ bb := &AgreementAcceptanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserAgreementAcceptancesCollectionRequest is request for AgreementAcceptance collection
+type UserAgreementAcceptancesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AgreementAcceptance collection
+func (r *UserAgreementAcceptancesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AgreementAcceptance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AgreementAcceptance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AgreementAcceptance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AgreementAcceptance collection
+func (r *UserAgreementAcceptancesCollectionRequest) Get(ctx context.Context) ([]AgreementAcceptance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AgreementAcceptance collection
+func (r *UserAgreementAcceptancesCollectionRequest) Add(ctx context.Context, reqObj *AgreementAcceptance) (resObj *AgreementAcceptance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Analytics is navigation property
+func (b *UserRequestBuilder) Analytics() *UserAnalyticsRequestBuilder {
+ bb := &UserAnalyticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/analytics"
+ return bb
+}
+
+// AppRoleAssignments returns request builder for AppRoleAssignment collection
+func (b *UserRequestBuilder) AppRoleAssignments() *UserAppRoleAssignmentsCollectionRequestBuilder {
+ bb := &UserAppRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appRoleAssignments"
+ return bb
+}
+
+// UserAppRoleAssignmentsCollectionRequestBuilder is request builder for AppRoleAssignment collection
+type UserAppRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppRoleAssignment collection
+func (b *UserAppRoleAssignmentsCollectionRequestBuilder) Request() *UserAppRoleAssignmentsCollectionRequest {
+ return &UserAppRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppRoleAssignment item
+func (b *UserAppRoleAssignmentsCollectionRequestBuilder) ID(id string) *AppRoleAssignmentRequestBuilder {
+ bb := &AppRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserAppRoleAssignmentsCollectionRequest is request for AppRoleAssignment collection
+type UserAppRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppRoleAssignment collection
+func (r *UserAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AppRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for AppRoleAssignment collection
+func (r *UserAppRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for AppRoleAssignment collection
+func (r *UserAppRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AppRoleAssignment) (resObj *AppRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Calendar is navigation property
+func (b *UserRequestBuilder) Calendar() *CalendarRequestBuilder {
+ bb := &CalendarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendar"
+ return bb
+}
+
+// CalendarGroups returns request builder for CalendarGroup collection
+func (b *UserRequestBuilder) CalendarGroups() *UserCalendarGroupsCollectionRequestBuilder {
+ bb := &UserCalendarGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendarGroups"
+ return bb
+}
+
+// UserCalendarGroupsCollectionRequestBuilder is request builder for CalendarGroup collection
+type UserCalendarGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CalendarGroup collection
+func (b *UserCalendarGroupsCollectionRequestBuilder) Request() *UserCalendarGroupsCollectionRequest {
+ return &UserCalendarGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CalendarGroup item
+func (b *UserCalendarGroupsCollectionRequestBuilder) ID(id string) *CalendarGroupRequestBuilder {
+ bb := &CalendarGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserCalendarGroupsCollectionRequest is request for CalendarGroup collection
+type UserCalendarGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CalendarGroup collection
+func (r *UserCalendarGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]CalendarGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CalendarGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CalendarGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for CalendarGroup collection
+func (r *UserCalendarGroupsCollectionRequest) Get(ctx context.Context) ([]CalendarGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for CalendarGroup collection
+func (r *UserCalendarGroupsCollectionRequest) Add(ctx context.Context, reqObj *CalendarGroup) (resObj *CalendarGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CalendarView returns request builder for Event collection
+func (b *UserRequestBuilder) CalendarView() *UserCalendarViewCollectionRequestBuilder {
+ bb := &UserCalendarViewCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendarView"
+ return bb
+}
+
+// UserCalendarViewCollectionRequestBuilder is request builder for Event collection
+type UserCalendarViewCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Event collection
+func (b *UserCalendarViewCollectionRequestBuilder) Request() *UserCalendarViewCollectionRequest {
+ return &UserCalendarViewCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Event item
+func (b *UserCalendarViewCollectionRequestBuilder) ID(id string) *EventRequestBuilder {
+ bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserCalendarViewCollectionRequest is request for Event collection
+type UserCalendarViewCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Event collection
+func (r *UserCalendarViewCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Event, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Event
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Event
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Event collection
+func (r *UserCalendarViewCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Event collection
+func (r *UserCalendarViewCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Calendars returns request builder for Calendar collection
+func (b *UserRequestBuilder) Calendars() *UserCalendarsCollectionRequestBuilder {
+ bb := &UserCalendarsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendars"
+ return bb
+}
+
+// UserCalendarsCollectionRequestBuilder is request builder for Calendar collection
+type UserCalendarsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Calendar collection
+func (b *UserCalendarsCollectionRequestBuilder) Request() *UserCalendarsCollectionRequest {
+ return &UserCalendarsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Calendar item
+func (b *UserCalendarsCollectionRequestBuilder) ID(id string) *CalendarRequestBuilder {
+ bb := &CalendarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserCalendarsCollectionRequest is request for Calendar collection
+type UserCalendarsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Calendar collection
+func (r *UserCalendarsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Calendar, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Calendar
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Calendar
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Calendar collection
+func (r *UserCalendarsCollectionRequest) Get(ctx context.Context) ([]Calendar, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Calendar collection
+func (r *UserCalendarsCollectionRequest) Add(ctx context.Context, reqObj *Calendar) (resObj *Calendar, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Chats returns request builder for Chat collection
+func (b *UserRequestBuilder) Chats() *UserChatsCollectionRequestBuilder {
+ bb := &UserChatsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/chats"
+ return bb
+}
+
+// UserChatsCollectionRequestBuilder is request builder for Chat collection
+type UserChatsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Chat collection
+func (b *UserChatsCollectionRequestBuilder) Request() *UserChatsCollectionRequest {
+ return &UserChatsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Chat item
+func (b *UserChatsCollectionRequestBuilder) ID(id string) *ChatRequestBuilder {
+ bb := &ChatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserChatsCollectionRequest is request for Chat collection
+type UserChatsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Chat collection
+func (r *UserChatsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Chat, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Chat
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Chat
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Chat collection
+func (r *UserChatsCollectionRequest) Get(ctx context.Context) ([]Chat, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Chat collection
+func (r *UserChatsCollectionRequest) Add(ctx context.Context, reqObj *Chat) (resObj *Chat, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ContactFolders returns request builder for ContactFolder collection
+func (b *UserRequestBuilder) ContactFolders() *UserContactFoldersCollectionRequestBuilder {
+ bb := &UserContactFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contactFolders"
+ return bb
+}
+
+// UserContactFoldersCollectionRequestBuilder is request builder for ContactFolder collection
+type UserContactFoldersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ContactFolder collection
+func (b *UserContactFoldersCollectionRequestBuilder) Request() *UserContactFoldersCollectionRequest {
+ return &UserContactFoldersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ContactFolder item
+func (b *UserContactFoldersCollectionRequestBuilder) ID(id string) *ContactFolderRequestBuilder {
+ bb := &ContactFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserContactFoldersCollectionRequest is request for ContactFolder collection
+type UserContactFoldersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ContactFolder collection
+func (r *UserContactFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ContactFolder, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ContactFolder
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ContactFolder
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ContactFolder collection
+func (r *UserContactFoldersCollectionRequest) Get(ctx context.Context) ([]ContactFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ContactFolder collection
+func (r *UserContactFoldersCollectionRequest) Add(ctx context.Context, reqObj *ContactFolder) (resObj *ContactFolder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Contacts returns request builder for Contact collection
+func (b *UserRequestBuilder) Contacts() *UserContactsCollectionRequestBuilder {
+ bb := &UserContactsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contacts"
+ return bb
+}
+
+// UserContactsCollectionRequestBuilder is request builder for Contact collection
+type UserContactsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Contact collection
+func (b *UserContactsCollectionRequestBuilder) Request() *UserContactsCollectionRequest {
+ return &UserContactsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Contact item
+func (b *UserContactsCollectionRequestBuilder) ID(id string) *ContactRequestBuilder {
+ bb := &ContactRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserContactsCollectionRequest is request for Contact collection
+type UserContactsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Contact collection
+func (r *UserContactsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Contact, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Contact
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Contact
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Contact collection
+func (r *UserContactsCollectionRequest) Get(ctx context.Context) ([]Contact, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Contact collection
+func (r *UserContactsCollectionRequest) Add(ctx context.Context, reqObj *Contact) (resObj *Contact, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CreatedObjects returns request builder for DirectoryObject collection
+func (b *UserRequestBuilder) CreatedObjects() *UserCreatedObjectsCollectionRequestBuilder {
+ bb := &UserCreatedObjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/createdObjects"
+ return bb
+}
+
+// UserCreatedObjectsCollectionRequestBuilder is request builder for DirectoryObject collection
+type UserCreatedObjectsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *UserCreatedObjectsCollectionRequestBuilder) Request() *UserCreatedObjectsCollectionRequest {
+ return &UserCreatedObjectsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *UserCreatedObjectsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserCreatedObjectsCollectionRequest is request for DirectoryObject collection
+type UserCreatedObjectsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *UserCreatedObjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserCreatedObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *UserCreatedObjectsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceEnrollmentConfigurations returns request builder for DeviceEnrollmentConfiguration collection
+func (b *UserRequestBuilder) DeviceEnrollmentConfigurations() *UserDeviceEnrollmentConfigurationsCollectionRequestBuilder {
+ bb := &UserDeviceEnrollmentConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceEnrollmentConfigurations"
+ return bb
+}
+
+// UserDeviceEnrollmentConfigurationsCollectionRequestBuilder is request builder for DeviceEnrollmentConfiguration collection
+type UserDeviceEnrollmentConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceEnrollmentConfiguration collection
+func (b *UserDeviceEnrollmentConfigurationsCollectionRequestBuilder) Request() *UserDeviceEnrollmentConfigurationsCollectionRequest {
+ return &UserDeviceEnrollmentConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceEnrollmentConfiguration item
+func (b *UserDeviceEnrollmentConfigurationsCollectionRequestBuilder) ID(id string) *DeviceEnrollmentConfigurationRequestBuilder {
+ bb := &DeviceEnrollmentConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserDeviceEnrollmentConfigurationsCollectionRequest is request for DeviceEnrollmentConfiguration collection
+type UserDeviceEnrollmentConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceEnrollmentConfiguration collection
+func (r *UserDeviceEnrollmentConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceEnrollmentConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceEnrollmentConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceEnrollmentConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceEnrollmentConfiguration collection
+func (r *UserDeviceEnrollmentConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceEnrollmentConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceEnrollmentConfiguration collection
+func (r *UserDeviceEnrollmentConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceEnrollmentConfiguration) (resObj *DeviceEnrollmentConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceManagementTroubleshootingEvents returns request builder for DeviceManagementTroubleshootingEvent collection
+func (b *UserRequestBuilder) DeviceManagementTroubleshootingEvents() *UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder {
+ bb := &UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceManagementTroubleshootingEvents"
+ return bb
+}
+
+// UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder is request builder for DeviceManagementTroubleshootingEvent collection
+type UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementTroubleshootingEvent collection
+func (b *UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder) Request() *UserDeviceManagementTroubleshootingEventsCollectionRequest {
+ return &UserDeviceManagementTroubleshootingEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementTroubleshootingEvent item
+func (b *UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder) ID(id string) *DeviceManagementTroubleshootingEventRequestBuilder {
+ bb := &DeviceManagementTroubleshootingEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserDeviceManagementTroubleshootingEventsCollectionRequest is request for DeviceManagementTroubleshootingEvent collection
+type UserDeviceManagementTroubleshootingEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementTroubleshootingEvent collection
+func (r *UserDeviceManagementTroubleshootingEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceManagementTroubleshootingEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementTroubleshootingEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementTroubleshootingEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceManagementTroubleshootingEvent collection
+func (r *UserDeviceManagementTroubleshootingEventsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTroubleshootingEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceManagementTroubleshootingEvent collection
+func (r *UserDeviceManagementTroubleshootingEventsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementTroubleshootingEvent) (resObj *DeviceManagementTroubleshootingEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Devices returns request builder for Device collection
+func (b *UserRequestBuilder) Devices() *UserDevicesCollectionRequestBuilder {
+ bb := &UserDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/devices"
+ return bb
+}
+
+// UserDevicesCollectionRequestBuilder is request builder for Device collection
+type UserDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Device collection
+func (b *UserDevicesCollectionRequestBuilder) Request() *UserDevicesCollectionRequest {
+ return &UserDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Device item
+func (b *UserDevicesCollectionRequestBuilder) ID(id string) *DeviceRequestBuilder {
+ bb := &DeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserDevicesCollectionRequest is request for Device collection
+type UserDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Device collection
+func (r *UserDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Device, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Device
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Device
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Device collection
+func (r *UserDevicesCollectionRequest) Get(ctx context.Context) ([]Device, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Device collection
+func (r *UserDevicesCollectionRequest) Add(ctx context.Context, reqObj *Device) (resObj *Device, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DirectReports returns request builder for DirectoryObject collection
+func (b *UserRequestBuilder) DirectReports() *UserDirectReportsCollectionRequestBuilder {
+ bb := &UserDirectReportsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directReports"
+ return bb
+}
+
+// UserDirectReportsCollectionRequestBuilder is request builder for DirectoryObject collection
+type UserDirectReportsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *UserDirectReportsCollectionRequestBuilder) Request() *UserDirectReportsCollectionRequest {
+ return &UserDirectReportsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *UserDirectReportsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserDirectReportsCollectionRequest is request for DirectoryObject collection
+type UserDirectReportsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *UserDirectReportsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserDirectReportsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *UserDirectReportsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Drive is navigation property
+func (b *UserRequestBuilder) Drive() *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drive"
+ return bb
+}
+
+// Drives returns request builder for Drive collection
+func (b *UserRequestBuilder) Drives() *UserDrivesCollectionRequestBuilder {
+ bb := &UserDrivesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drives"
+ return bb
+}
+
+// UserDrivesCollectionRequestBuilder is request builder for Drive collection
+type UserDrivesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Drive collection
+func (b *UserDrivesCollectionRequestBuilder) Request() *UserDrivesCollectionRequest {
+ return &UserDrivesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Drive item
+func (b *UserDrivesCollectionRequestBuilder) ID(id string) *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserDrivesCollectionRequest is request for Drive collection
+type UserDrivesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Drive collection
+func (r *UserDrivesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Drive, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Drive
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Drive
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Drive collection
+func (r *UserDrivesCollectionRequest) Get(ctx context.Context) ([]Drive, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Drive collection
+func (r *UserDrivesCollectionRequest) Add(ctx context.Context, reqObj *Drive) (resObj *Drive, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Events returns request builder for Event collection
+func (b *UserRequestBuilder) Events() *UserEventsCollectionRequestBuilder {
+ bb := &UserEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/events"
+ return bb
+}
+
+// UserEventsCollectionRequestBuilder is request builder for Event collection
+type UserEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Event collection
+func (b *UserEventsCollectionRequestBuilder) Request() *UserEventsCollectionRequest {
+ return &UserEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Event item
+func (b *UserEventsCollectionRequestBuilder) ID(id string) *EventRequestBuilder {
+ bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserEventsCollectionRequest is request for Event collection
+type UserEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Event collection
+func (r *UserEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Event, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Event
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Event
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Event collection
+func (r *UserEventsCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Event collection
+func (r *UserEventsCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Extensions returns request builder for Extension collection
+func (b *UserRequestBuilder) Extensions() *UserExtensionsCollectionRequestBuilder {
+ bb := &UserExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// UserExtensionsCollectionRequestBuilder is request builder for Extension collection
+type UserExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *UserExtensionsCollectionRequestBuilder) Request() *UserExtensionsCollectionRequest {
+ return &UserExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *UserExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserExtensionsCollectionRequest is request for Extension collection
+type UserExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *UserExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Extension collection
+func (r *UserExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Extension collection
+func (r *UserExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// FollowedSites returns request builder for Site collection
+func (b *UserRequestBuilder) FollowedSites() *UserFollowedSitesCollectionRequestBuilder {
+ bb := &UserFollowedSitesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/followedSites"
+ return bb
+}
+
+// UserFollowedSitesCollectionRequestBuilder is request builder for Site collection
+type UserFollowedSitesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Site collection
+func (b *UserFollowedSitesCollectionRequestBuilder) Request() *UserFollowedSitesCollectionRequest {
+ return &UserFollowedSitesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Site item
+func (b *UserFollowedSitesCollectionRequestBuilder) ID(id string) *SiteRequestBuilder {
+ bb := &SiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserFollowedSitesCollectionRequest is request for Site collection
+type UserFollowedSitesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Site collection
+func (r *UserFollowedSitesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Site, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Site
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Site
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Site collection
+func (r *UserFollowedSitesCollectionRequest) Get(ctx context.Context) ([]Site, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Site collection
+func (r *UserFollowedSitesCollectionRequest) Add(ctx context.Context, reqObj *Site) (resObj *Site, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// InferenceClassification is navigation property
+func (b *UserRequestBuilder) InferenceClassification() *InferenceClassificationRequestBuilder {
+ bb := &InferenceClassificationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/inferenceClassification"
+ return bb
+}
+
+// InformationProtection is navigation property
+func (b *UserRequestBuilder) InformationProtection() *InformationProtectionRequestBuilder {
+ bb := &InformationProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/informationProtection"
+ return bb
+}
+
+// Insights is navigation property
+func (b *UserRequestBuilder) Insights() *OfficeGraphInsightsRequestBuilder {
+ bb := &OfficeGraphInsightsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/insights"
+ return bb
+}
+
+// JoinedGroups returns request builder for Group collection
+func (b *UserRequestBuilder) JoinedGroups() *UserJoinedGroupsCollectionRequestBuilder {
+ bb := &UserJoinedGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/joinedGroups"
+ return bb
+}
+
+// UserJoinedGroupsCollectionRequestBuilder is request builder for Group collection
+type UserJoinedGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Group collection
+func (b *UserJoinedGroupsCollectionRequestBuilder) Request() *UserJoinedGroupsCollectionRequest {
+ return &UserJoinedGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Group item
+func (b *UserJoinedGroupsCollectionRequestBuilder) ID(id string) *GroupRequestBuilder {
+ bb := &GroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserJoinedGroupsCollectionRequest is request for Group collection
+type UserJoinedGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Group collection
+func (r *UserJoinedGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Group, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Group
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Group
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Group collection
+func (r *UserJoinedGroupsCollectionRequest) Get(ctx context.Context) ([]Group, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Group collection
+func (r *UserJoinedGroupsCollectionRequest) Add(ctx context.Context, reqObj *Group) (resObj *Group, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// JoinedTeams returns request builder for Team collection
+func (b *UserRequestBuilder) JoinedTeams() *UserJoinedTeamsCollectionRequestBuilder {
+ bb := &UserJoinedTeamsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/joinedTeams"
+ return bb
+}
+
+// UserJoinedTeamsCollectionRequestBuilder is request builder for Team collection
+type UserJoinedTeamsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Team collection
+func (b *UserJoinedTeamsCollectionRequestBuilder) Request() *UserJoinedTeamsCollectionRequest {
+ return &UserJoinedTeamsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Team item
+func (b *UserJoinedTeamsCollectionRequestBuilder) ID(id string) *TeamRequestBuilder {
+ bb := &TeamRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserJoinedTeamsCollectionRequest is request for Team collection
+type UserJoinedTeamsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Team collection
+func (r *UserJoinedTeamsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Team, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Team
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Team
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Team collection
+func (r *UserJoinedTeamsCollectionRequest) Get(ctx context.Context) ([]Team, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Team collection
+func (r *UserJoinedTeamsCollectionRequest) Add(ctx context.Context, reqObj *Team) (resObj *Team, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// LicenseDetails returns request builder for LicenseDetails collection
+func (b *UserRequestBuilder) LicenseDetails() *UserLicenseDetailsCollectionRequestBuilder {
+ bb := &UserLicenseDetailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/licenseDetails"
+ return bb
+}
+
+// UserLicenseDetailsCollectionRequestBuilder is request builder for LicenseDetails collection
+type UserLicenseDetailsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for LicenseDetails collection
+func (b *UserLicenseDetailsCollectionRequestBuilder) Request() *UserLicenseDetailsCollectionRequest {
+ return &UserLicenseDetailsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for LicenseDetails item
+func (b *UserLicenseDetailsCollectionRequestBuilder) ID(id string) *LicenseDetailsRequestBuilder {
+ bb := &LicenseDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserLicenseDetailsCollectionRequest is request for LicenseDetails collection
+type UserLicenseDetailsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for LicenseDetails collection
+func (r *UserLicenseDetailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]LicenseDetails, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []LicenseDetails
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []LicenseDetails
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for LicenseDetails collection
+func (r *UserLicenseDetailsCollectionRequest) Get(ctx context.Context) ([]LicenseDetails, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for LicenseDetails collection
+func (r *UserLicenseDetailsCollectionRequest) Add(ctx context.Context, reqObj *LicenseDetails) (resObj *LicenseDetails, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MailFolders returns request builder for MailFolder collection
+func (b *UserRequestBuilder) MailFolders() *UserMailFoldersCollectionRequestBuilder {
+ bb := &UserMailFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mailFolders"
+ return bb
+}
+
+// UserMailFoldersCollectionRequestBuilder is request builder for MailFolder collection
+type UserMailFoldersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MailFolder collection
+func (b *UserMailFoldersCollectionRequestBuilder) Request() *UserMailFoldersCollectionRequest {
+ return &UserMailFoldersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MailFolder item
+func (b *UserMailFoldersCollectionRequestBuilder) ID(id string) *MailFolderRequestBuilder {
+ bb := &MailFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserMailFoldersCollectionRequest is request for MailFolder collection
+type UserMailFoldersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MailFolder collection
+func (r *UserMailFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MailFolder, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MailFolder
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MailFolder
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MailFolder collection
+func (r *UserMailFoldersCollectionRequest) Get(ctx context.Context) ([]MailFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MailFolder collection
+func (r *UserMailFoldersCollectionRequest) Add(ctx context.Context, reqObj *MailFolder) (resObj *MailFolder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedAppRegistrations returns request builder for ManagedAppRegistration collection
+func (b *UserRequestBuilder) ManagedAppRegistrations() *UserManagedAppRegistrationsCollectionRequestBuilder {
+ bb := &UserManagedAppRegistrationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedAppRegistrations"
+ return bb
+}
+
+// UserManagedAppRegistrationsCollectionRequestBuilder is request builder for ManagedAppRegistration collection
+type UserManagedAppRegistrationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedAppRegistration collection
+func (b *UserManagedAppRegistrationsCollectionRequestBuilder) Request() *UserManagedAppRegistrationsCollectionRequest {
+ return &UserManagedAppRegistrationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedAppRegistration item
+func (b *UserManagedAppRegistrationsCollectionRequestBuilder) ID(id string) *ManagedAppRegistrationRequestBuilder {
+ bb := &ManagedAppRegistrationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserManagedAppRegistrationsCollectionRequest is request for ManagedAppRegistration collection
+type UserManagedAppRegistrationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedAppRegistration collection
+func (r *UserManagedAppRegistrationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedAppRegistration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedAppRegistration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedAppRegistration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedAppRegistration collection
+func (r *UserManagedAppRegistrationsCollectionRequest) Get(ctx context.Context) ([]ManagedAppRegistration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedAppRegistration collection
+func (r *UserManagedAppRegistrationsCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppRegistration) (resObj *ManagedAppRegistration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDevices returns request builder for ManagedDevice collection
+func (b *UserRequestBuilder) ManagedDevices() *UserManagedDevicesCollectionRequestBuilder {
+ bb := &UserManagedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDevices"
+ return bb
+}
+
+// UserManagedDevicesCollectionRequestBuilder is request builder for ManagedDevice collection
+type UserManagedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDevice collection
+func (b *UserManagedDevicesCollectionRequestBuilder) Request() *UserManagedDevicesCollectionRequest {
+ return &UserManagedDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDevice item
+func (b *UserManagedDevicesCollectionRequestBuilder) ID(id string) *ManagedDeviceRequestBuilder {
+ bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserManagedDevicesCollectionRequest is request for ManagedDevice collection
+type UserManagedDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDevice collection
+func (r *UserManagedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDevice, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDevice
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDevice
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDevice collection
+func (r *UserManagedDevicesCollectionRequest) Get(ctx context.Context) ([]ManagedDevice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDevice collection
+func (r *UserManagedDevicesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDevice) (resObj *ManagedDevice, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Manager is navigation property
+func (b *UserRequestBuilder) Manager() *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/manager"
+ return bb
+}
+
+// MemberOf returns request builder for DirectoryObject collection
+func (b *UserRequestBuilder) MemberOf() *UserMemberOfCollectionRequestBuilder {
+ bb := &UserMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/memberOf"
+ return bb
+}
+
+// UserMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type UserMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *UserMemberOfCollectionRequestBuilder) Request() *UserMemberOfCollectionRequest {
+ return &UserMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *UserMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserMemberOfCollectionRequest is request for DirectoryObject collection
+type UserMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *UserMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *UserMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Messages returns request builder for Message collection
+func (b *UserRequestBuilder) Messages() *UserMessagesCollectionRequestBuilder {
+ bb := &UserMessagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/messages"
+ return bb
+}
+
+// UserMessagesCollectionRequestBuilder is request builder for Message collection
+type UserMessagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Message collection
+func (b *UserMessagesCollectionRequestBuilder) Request() *UserMessagesCollectionRequest {
+ return &UserMessagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Message item
+func (b *UserMessagesCollectionRequestBuilder) ID(id string) *MessageRequestBuilder {
+ bb := &MessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserMessagesCollectionRequest is request for Message collection
+type UserMessagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Message collection
+func (r *UserMessagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Message, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Message
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Message
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Message collection
+func (r *UserMessagesCollectionRequest) Get(ctx context.Context) ([]Message, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Message collection
+func (r *UserMessagesCollectionRequest) Add(ctx context.Context, reqObj *Message) (resObj *Message, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MobileAppIntentAndStates returns request builder for MobileAppIntentAndState collection
+func (b *UserRequestBuilder) MobileAppIntentAndStates() *UserMobileAppIntentAndStatesCollectionRequestBuilder {
+ bb := &UserMobileAppIntentAndStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mobileAppIntentAndStates"
+ return bb
+}
+
+// UserMobileAppIntentAndStatesCollectionRequestBuilder is request builder for MobileAppIntentAndState collection
+type UserMobileAppIntentAndStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppIntentAndState collection
+func (b *UserMobileAppIntentAndStatesCollectionRequestBuilder) Request() *UserMobileAppIntentAndStatesCollectionRequest {
+ return &UserMobileAppIntentAndStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppIntentAndState item
+func (b *UserMobileAppIntentAndStatesCollectionRequestBuilder) ID(id string) *MobileAppIntentAndStateRequestBuilder {
+ bb := &MobileAppIntentAndStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserMobileAppIntentAndStatesCollectionRequest is request for MobileAppIntentAndState collection
+type UserMobileAppIntentAndStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppIntentAndState collection
+func (r *UserMobileAppIntentAndStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MobileAppIntentAndState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppIntentAndState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppIntentAndState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppIntentAndState collection
+func (r *UserMobileAppIntentAndStatesCollectionRequest) Get(ctx context.Context) ([]MobileAppIntentAndState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MobileAppIntentAndState collection
+func (r *UserMobileAppIntentAndStatesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppIntentAndState) (resObj *MobileAppIntentAndState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MobileAppTroubleshootingEvents returns request builder for MobileAppTroubleshootingEvent collection
+func (b *UserRequestBuilder) MobileAppTroubleshootingEvents() *UserMobileAppTroubleshootingEventsCollectionRequestBuilder {
+ bb := &UserMobileAppTroubleshootingEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mobileAppTroubleshootingEvents"
+ return bb
+}
+
+// UserMobileAppTroubleshootingEventsCollectionRequestBuilder is request builder for MobileAppTroubleshootingEvent collection
+type UserMobileAppTroubleshootingEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppTroubleshootingEvent collection
+func (b *UserMobileAppTroubleshootingEventsCollectionRequestBuilder) Request() *UserMobileAppTroubleshootingEventsCollectionRequest {
+ return &UserMobileAppTroubleshootingEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppTroubleshootingEvent item
+func (b *UserMobileAppTroubleshootingEventsCollectionRequestBuilder) ID(id string) *MobileAppTroubleshootingEventRequestBuilder {
+ bb := &MobileAppTroubleshootingEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserMobileAppTroubleshootingEventsCollectionRequest is request for MobileAppTroubleshootingEvent collection
+type UserMobileAppTroubleshootingEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppTroubleshootingEvent collection
+func (r *UserMobileAppTroubleshootingEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]MobileAppTroubleshootingEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppTroubleshootingEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppTroubleshootingEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for MobileAppTroubleshootingEvent collection
+func (r *UserMobileAppTroubleshootingEventsCollectionRequest) Get(ctx context.Context) ([]MobileAppTroubleshootingEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for MobileAppTroubleshootingEvent collection
+func (r *UserMobileAppTroubleshootingEventsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppTroubleshootingEvent) (resObj *MobileAppTroubleshootingEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Notifications returns request builder for Notification collection
+func (b *UserRequestBuilder) Notifications() *UserNotificationsCollectionRequestBuilder {
+ bb := &UserNotificationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/notifications"
+ return bb
+}
+
+// UserNotificationsCollectionRequestBuilder is request builder for Notification collection
+type UserNotificationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Notification collection
+func (b *UserNotificationsCollectionRequestBuilder) Request() *UserNotificationsCollectionRequest {
+ return &UserNotificationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Notification item
+func (b *UserNotificationsCollectionRequestBuilder) ID(id string) *NotificationRequestBuilder {
+ bb := &NotificationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserNotificationsCollectionRequest is request for Notification collection
+type UserNotificationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Notification collection
+func (r *UserNotificationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Notification, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Notification
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Notification
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Notification collection
+func (r *UserNotificationsCollectionRequest) Get(ctx context.Context) ([]Notification, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Notification collection
+func (r *UserNotificationsCollectionRequest) Add(ctx context.Context, reqObj *Notification) (resObj *Notification, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Onenote is navigation property
+func (b *UserRequestBuilder) Onenote() *OnenoteRequestBuilder {
+ bb := &OnenoteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/onenote"
+ return bb
+}
+
+// OnlineMeetings returns request builder for OnlineMeeting collection
+func (b *UserRequestBuilder) OnlineMeetings() *UserOnlineMeetingsCollectionRequestBuilder {
+ bb := &UserOnlineMeetingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/onlineMeetings"
+ return bb
+}
+
+// UserOnlineMeetingsCollectionRequestBuilder is request builder for OnlineMeeting collection
+type UserOnlineMeetingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnlineMeeting collection
+func (b *UserOnlineMeetingsCollectionRequestBuilder) Request() *UserOnlineMeetingsCollectionRequest {
+ return &UserOnlineMeetingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnlineMeeting item
+func (b *UserOnlineMeetingsCollectionRequestBuilder) ID(id string) *OnlineMeetingRequestBuilder {
+ bb := &OnlineMeetingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserOnlineMeetingsCollectionRequest is request for OnlineMeeting collection
+type UserOnlineMeetingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnlineMeeting collection
+func (r *UserOnlineMeetingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]OnlineMeeting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnlineMeeting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnlineMeeting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for OnlineMeeting collection
+func (r *UserOnlineMeetingsCollectionRequest) Get(ctx context.Context) ([]OnlineMeeting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for OnlineMeeting collection
+func (r *UserOnlineMeetingsCollectionRequest) Add(ctx context.Context, reqObj *OnlineMeeting) (resObj *OnlineMeeting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Outlook is navigation property
+func (b *UserRequestBuilder) Outlook() *OutlookUserRequestBuilder {
+ bb := &OutlookUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/outlook"
+ return bb
+}
+
+// OwnedDevices returns request builder for DirectoryObject collection
+func (b *UserRequestBuilder) OwnedDevices() *UserOwnedDevicesCollectionRequestBuilder {
+ bb := &UserOwnedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/ownedDevices"
+ return bb
+}
+
+// UserOwnedDevicesCollectionRequestBuilder is request builder for DirectoryObject collection
+type UserOwnedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *UserOwnedDevicesCollectionRequestBuilder) Request() *UserOwnedDevicesCollectionRequest {
+ return &UserOwnedDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *UserOwnedDevicesCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserOwnedDevicesCollectionRequest is request for DirectoryObject collection
+type UserOwnedDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *UserOwnedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserOwnedDevicesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *UserOwnedDevicesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// OwnedObjects returns request builder for DirectoryObject collection
+func (b *UserRequestBuilder) OwnedObjects() *UserOwnedObjectsCollectionRequestBuilder {
+ bb := &UserOwnedObjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/ownedObjects"
+ return bb
+}
+
+// UserOwnedObjectsCollectionRequestBuilder is request builder for DirectoryObject collection
+type UserOwnedObjectsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *UserOwnedObjectsCollectionRequestBuilder) Request() *UserOwnedObjectsCollectionRequest {
+ return &UserOwnedObjectsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *UserOwnedObjectsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserOwnedObjectsCollectionRequest is request for DirectoryObject collection
+type UserOwnedObjectsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *UserOwnedObjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserOwnedObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *UserOwnedObjectsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// People returns request builder for Person collection
+func (b *UserRequestBuilder) People() *UserPeopleCollectionRequestBuilder {
+ bb := &UserPeopleCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/people"
+ return bb
+}
+
+// UserPeopleCollectionRequestBuilder is request builder for Person collection
+type UserPeopleCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Person collection
+func (b *UserPeopleCollectionRequestBuilder) Request() *UserPeopleCollectionRequest {
+ return &UserPeopleCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Person item
+func (b *UserPeopleCollectionRequestBuilder) ID(id string) *PersonRequestBuilder {
+ bb := &PersonRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserPeopleCollectionRequest is request for Person collection
+type UserPeopleCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Person collection
+func (r *UserPeopleCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Person, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Person
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Person
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Person collection
+func (r *UserPeopleCollectionRequest) Get(ctx context.Context) ([]Person, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Person collection
+func (r *UserPeopleCollectionRequest) Add(ctx context.Context, reqObj *Person) (resObj *Person, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Photo is navigation property
+func (b *UserRequestBuilder) Photo() *ProfilePhotoRequestBuilder {
+ bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/photo"
+ return bb
+}
+
+// Photos returns request builder for ProfilePhoto collection
+func (b *UserRequestBuilder) Photos() *UserPhotosCollectionRequestBuilder {
+ bb := &UserPhotosCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/photos"
+ return bb
+}
+
+// UserPhotosCollectionRequestBuilder is request builder for ProfilePhoto collection
+type UserPhotosCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProfilePhoto collection
+func (b *UserPhotosCollectionRequestBuilder) Request() *UserPhotosCollectionRequest {
+ return &UserPhotosCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProfilePhoto item
+func (b *UserPhotosCollectionRequestBuilder) ID(id string) *ProfilePhotoRequestBuilder {
+ bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserPhotosCollectionRequest is request for ProfilePhoto collection
+type UserPhotosCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProfilePhoto collection
+func (r *UserPhotosCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ProfilePhoto, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProfilePhoto
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProfilePhoto
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ProfilePhoto collection
+func (r *UserPhotosCollectionRequest) Get(ctx context.Context) ([]ProfilePhoto, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ProfilePhoto collection
+func (r *UserPhotosCollectionRequest) Add(ctx context.Context, reqObj *ProfilePhoto) (resObj *ProfilePhoto, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Planner is navigation property
+func (b *UserRequestBuilder) Planner() *PlannerUserRequestBuilder {
+ bb := &PlannerUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/planner"
+ return bb
+}
+
+// Presence is navigation property
+func (b *UserRequestBuilder) Presence() *PresenceRequestBuilder {
+ bb := &PresenceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/presence"
+ return bb
+}
+
+// Profile is navigation property
+func (b *UserRequestBuilder) Profile() *ProfileRequestBuilder {
+ bb := &ProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/profile"
+ return bb
+}
+
+// RegisteredDevices returns request builder for DirectoryObject collection
+func (b *UserRequestBuilder) RegisteredDevices() *UserRegisteredDevicesCollectionRequestBuilder {
+ bb := &UserRegisteredDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/registeredDevices"
+ return bb
+}
+
+// UserRegisteredDevicesCollectionRequestBuilder is request builder for DirectoryObject collection
+type UserRegisteredDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *UserRegisteredDevicesCollectionRequestBuilder) Request() *UserRegisteredDevicesCollectionRequest {
+ return &UserRegisteredDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *UserRegisteredDevicesCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserRegisteredDevicesCollectionRequest is request for DirectoryObject collection
+type UserRegisteredDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *UserRegisteredDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserRegisteredDevicesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *UserRegisteredDevicesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ScopedRoleMemberOf returns request builder for ScopedRoleMembership collection
+func (b *UserRequestBuilder) ScopedRoleMemberOf() *UserScopedRoleMemberOfCollectionRequestBuilder {
+ bb := &UserScopedRoleMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/scopedRoleMemberOf"
+ return bb
+}
+
+// UserScopedRoleMemberOfCollectionRequestBuilder is request builder for ScopedRoleMembership collection
+type UserScopedRoleMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ScopedRoleMembership collection
+func (b *UserScopedRoleMemberOfCollectionRequestBuilder) Request() *UserScopedRoleMemberOfCollectionRequest {
+ return &UserScopedRoleMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ScopedRoleMembership item
+func (b *UserScopedRoleMemberOfCollectionRequestBuilder) ID(id string) *ScopedRoleMembershipRequestBuilder {
+ bb := &ScopedRoleMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserScopedRoleMemberOfCollectionRequest is request for ScopedRoleMembership collection
+type UserScopedRoleMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ScopedRoleMembership collection
+func (r *UserScopedRoleMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ScopedRoleMembership, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ScopedRoleMembership
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ScopedRoleMembership
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ScopedRoleMembership collection
+func (r *UserScopedRoleMemberOfCollectionRequest) Get(ctx context.Context) ([]ScopedRoleMembership, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ScopedRoleMembership collection
+func (r *UserScopedRoleMemberOfCollectionRequest) Add(ctx context.Context, reqObj *ScopedRoleMembership) (resObj *ScopedRoleMembership, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Settings is navigation property
+func (b *UserRequestBuilder) Settings() *UserSettingsRequestBuilder {
+ bb := &UserSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settings"
+ return bb
+}
+
+// Teamwork is navigation property
+func (b *UserRequestBuilder) Teamwork() *UserTeamworkRequestBuilder {
+ bb := &UserTeamworkRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teamwork"
+ return bb
+}
+
+// TransitiveMemberOf returns request builder for DirectoryObject collection
+func (b *UserRequestBuilder) TransitiveMemberOf() *UserTransitiveMemberOfCollectionRequestBuilder {
+ bb := &UserTransitiveMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/transitiveMemberOf"
+ return bb
+}
+
+// UserTransitiveMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type UserTransitiveMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *UserTransitiveMemberOfCollectionRequestBuilder) Request() *UserTransitiveMemberOfCollectionRequest {
+ return &UserTransitiveMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *UserTransitiveMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserTransitiveMemberOfCollectionRequest is request for DirectoryObject collection
+type UserTransitiveMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *UserTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *UserTransitiveMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsInformationProtectionDeviceRegistrations returns request builder for WindowsInformationProtectionDeviceRegistration collection
+func (b *UserRequestBuilder) WindowsInformationProtectionDeviceRegistrations() *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder {
+ bb := &UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsInformationProtectionDeviceRegistrations"
+ return bb
+}
+
+// UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder is request builder for WindowsInformationProtectionDeviceRegistration collection
+type UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsInformationProtectionDeviceRegistration collection
+func (b *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder) Request() *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest {
+ return &UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsInformationProtectionDeviceRegistration item
+func (b *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionDeviceRegistrationRequestBuilder {
+ bb := &WindowsInformationProtectionDeviceRegistrationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest is request for WindowsInformationProtectionDeviceRegistration collection
+type UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsInformationProtectionDeviceRegistration collection
+func (r *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsInformationProtectionDeviceRegistration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsInformationProtectionDeviceRegistration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsInformationProtectionDeviceRegistration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsInformationProtectionDeviceRegistration collection
+func (r *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionDeviceRegistration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsInformationProtectionDeviceRegistration collection
+func (r *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionDeviceRegistration) (resObj *WindowsInformationProtectionDeviceRegistration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserRiskLevelEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserRiskLevelEnum.go
new file mode 100644
index 00000000..d0ea360a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserRiskLevelEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserRiskLevel undocumented
+type UserRiskLevel int
+
+const (
+ // UserRiskLevelVUnknown undocumented
+ UserRiskLevelVUnknown UserRiskLevel = 0
+ // UserRiskLevelVNone undocumented
+ UserRiskLevelVNone UserRiskLevel = 1
+ // UserRiskLevelVLow undocumented
+ UserRiskLevelVLow UserRiskLevel = 2
+ // UserRiskLevelVMedium undocumented
+ UserRiskLevelVMedium UserRiskLevel = 3
+ // UserRiskLevelVHigh undocumented
+ UserRiskLevelVHigh UserRiskLevel = 4
+)
+
+// UserRiskLevelPUnknown returns a pointer to UserRiskLevelVUnknown
+func UserRiskLevelPUnknown() *UserRiskLevel {
+ v := UserRiskLevelVUnknown
+ return &v
+}
+
+// UserRiskLevelPNone returns a pointer to UserRiskLevelVNone
+func UserRiskLevelPNone() *UserRiskLevel {
+ v := UserRiskLevelVNone
+ return &v
+}
+
+// UserRiskLevelPLow returns a pointer to UserRiskLevelVLow
+func UserRiskLevelPLow() *UserRiskLevel {
+ v := UserRiskLevelVLow
+ return &v
+}
+
+// UserRiskLevelPMedium returns a pointer to UserRiskLevelVMedium
+func UserRiskLevelPMedium() *UserRiskLevel {
+ v := UserRiskLevelVMedium
+ return &v
+}
+
+// UserRiskLevelPHigh returns a pointer to UserRiskLevelVHigh
+func UserRiskLevelPHigh() *UserRiskLevel {
+ v := UserRiskLevelVHigh
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserSecurityProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserSecurityProfileModel.go
new file mode 100644
index 00000000..6c31a390
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserSecurityProfileModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// UserSecurityProfile undocumented
+type UserSecurityProfile struct {
+ // Entity is the base model of UserSecurityProfile
+ Entity
+ // Accounts undocumented
+ Accounts []UserAccount `json:"accounts,omitempty"`
+ // AzureSubscriptionID undocumented
+ AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserSecurityProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserSecurityProfileRequest.go
new file mode 100644
index 00000000..d0e2f3d9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserSecurityProfileRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UserSecurityProfileRequestBuilder is request builder for UserSecurityProfile
+type UserSecurityProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserSecurityProfileRequest
+func (b *UserSecurityProfileRequestBuilder) Request() *UserSecurityProfileRequest {
+ return &UserSecurityProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserSecurityProfileRequest is request for UserSecurityProfile
+type UserSecurityProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for UserSecurityProfile
+func (r *UserSecurityProfileRequest) Get(ctx context.Context) (resObj *UserSecurityProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserSecurityProfile
+func (r *UserSecurityProfileRequest) Update(ctx context.Context, reqObj *UserSecurityProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserSecurityProfile
+func (r *UserSecurityProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserSecurityStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserSecurityStateModel.go
new file mode 100644
index 00000000..130563b5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserSecurityStateModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// UserSecurityState undocumented
+type UserSecurityState struct {
+ // Object is the base model of UserSecurityState
+ Object
+ // AadUserID undocumented
+ AadUserID *string `json:"aadUserId,omitempty"`
+ // AccountName undocumented
+ AccountName *string `json:"accountName,omitempty"`
+ // DomainName undocumented
+ DomainName *string `json:"domainName,omitempty"`
+ // EmailRole undocumented
+ EmailRole *EmailRole `json:"emailRole,omitempty"`
+ // IsVpn undocumented
+ IsVpn *bool `json:"isVpn,omitempty"`
+ // LogonDateTime undocumented
+ LogonDateTime *time.Time `json:"logonDateTime,omitempty"`
+ // LogonID undocumented
+ LogonID *string `json:"logonId,omitempty"`
+ // LogonIP undocumented
+ LogonIP *string `json:"logonIp,omitempty"`
+ // LogonLocation undocumented
+ LogonLocation *string `json:"logonLocation,omitempty"`
+ // LogonType undocumented
+ LogonType *LogonType `json:"logonType,omitempty"`
+ // OnPremisesSecurityIdentifier undocumented
+ OnPremisesSecurityIdentifier *string `json:"onPremisesSecurityIdentifier,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // UserAccountType undocumented
+ UserAccountType *UserAccountSecurityType `json:"userAccountType,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserSettingsModel.go
new file mode 100644
index 00000000..3c9fdfee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserSettingsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserSettings undocumented
+type UserSettings struct {
+ // Entity is the base model of UserSettings
+ Entity
+ // ContributionToContentDiscoveryDisabled undocumented
+ ContributionToContentDiscoveryDisabled *bool `json:"contributionToContentDiscoveryDisabled,omitempty"`
+ // ContributionToContentDiscoveryAsOrganizationDisabled undocumented
+ ContributionToContentDiscoveryAsOrganizationDisabled *bool `json:"contributionToContentDiscoveryAsOrganizationDisabled,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserSettingsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserSettingsRequest.go
new file mode 100644
index 00000000..6c587857
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserSettingsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UserSettingsRequestBuilder is request builder for UserSettings
+type UserSettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserSettingsRequest
+func (b *UserSettingsRequestBuilder) Request() *UserSettingsRequest {
+ return &UserSettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserSettingsRequest is request for UserSettings
+type UserSettingsRequest struct{ BaseRequest }
+
+// Get performs GET request for UserSettings
+func (r *UserSettingsRequest) Get(ctx context.Context) (resObj *UserSettings, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserSettings
+func (r *UserSettingsRequest) Update(ctx context.Context, reqObj *UserSettings) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserSettings
+func (r *UserSettingsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserTeamworkModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserTeamworkModel.go
new file mode 100644
index 00000000..aefba4a3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserTeamworkModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserTeamwork undocumented
+type UserTeamwork struct {
+ // Entity is the base model of UserTeamwork
+ Entity
+ // InstalledApps undocumented
+ InstalledApps []TeamsAppInstallation `json:"installedApps,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UserTeamworkRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/UserTeamworkRequest.go
new file mode 100644
index 00000000..fa919386
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UserTeamworkRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// UserTeamworkRequestBuilder is request builder for UserTeamwork
+type UserTeamworkRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserTeamworkRequest
+func (b *UserTeamworkRequestBuilder) Request() *UserTeamworkRequest {
+ return &UserTeamworkRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserTeamworkRequest is request for UserTeamwork
+type UserTeamworkRequest struct{ BaseRequest }
+
+// Get performs GET request for UserTeamwork
+func (r *UserTeamworkRequest) Get(ctx context.Context) (resObj *UserTeamwork, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserTeamwork
+func (r *UserTeamworkRequest) Update(ctx context.Context, reqObj *UserTeamwork) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserTeamwork
+func (r *UserTeamworkRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// InstalledApps returns request builder for TeamsAppInstallation collection
+func (b *UserTeamworkRequestBuilder) InstalledApps() *UserTeamworkInstalledAppsCollectionRequestBuilder {
+ bb := &UserTeamworkInstalledAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/installedApps"
+ return bb
+}
+
+// UserTeamworkInstalledAppsCollectionRequestBuilder is request builder for TeamsAppInstallation collection
+type UserTeamworkInstalledAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsAppInstallation collection
+func (b *UserTeamworkInstalledAppsCollectionRequestBuilder) Request() *UserTeamworkInstalledAppsCollectionRequest {
+ return &UserTeamworkInstalledAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsAppInstallation item
+func (b *UserTeamworkInstalledAppsCollectionRequestBuilder) ID(id string) *TeamsAppInstallationRequestBuilder {
+ bb := &TeamsAppInstallationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserTeamworkInstalledAppsCollectionRequest is request for TeamsAppInstallation collection
+type UserTeamworkInstalledAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsAppInstallation collection
+func (r *UserTeamworkInstalledAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]TeamsAppInstallation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsAppInstallation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsAppInstallation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for TeamsAppInstallation collection
+func (r *UserTeamworkInstalledAppsCollectionRequest) Get(ctx context.Context) ([]TeamsAppInstallation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for TeamsAppInstallation collection
+func (r *UserTeamworkInstalledAppsCollectionRequest) Add(ctx context.Context, reqObj *TeamsAppInstallation) (resObj *TeamsAppInstallation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/UsernameSourceEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/UsernameSourceEnum.go
new file mode 100644
index 00000000..5b6f6520
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/UsernameSourceEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UsernameSource undocumented
+type UsernameSource int
+
+const (
+ // UsernameSourceVUserPrincipalName undocumented
+ UsernameSourceVUserPrincipalName UsernameSource = 0
+ // UsernameSourceVPrimarySMTPAddress undocumented
+ UsernameSourceVPrimarySMTPAddress UsernameSource = 1
+ // UsernameSourceVSamAccountName undocumented
+ UsernameSourceVSamAccountName UsernameSource = 2
+)
+
+// UsernameSourcePUserPrincipalName returns a pointer to UsernameSourceVUserPrincipalName
+func UsernameSourcePUserPrincipalName() *UsernameSource {
+ v := UsernameSourceVUserPrincipalName
+ return &v
+}
+
+// UsernameSourcePPrimarySMTPAddress returns a pointer to UsernameSourceVPrimarySMTPAddress
+func UsernameSourcePPrimarySMTPAddress() *UsernameSource {
+ v := UsernameSourceVPrimarySMTPAddress
+ return &v
+}
+
+// UsernameSourcePSamAccountName returns a pointer to UsernameSourceVSamAccountName
+func UsernameSourcePSamAccountName() *UsernameSource {
+ v := UsernameSourceVSamAccountName
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VariableManagementConditionExpressionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VariableManagementConditionExpressionModel.go
new file mode 100644
index 00000000..375fd930
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VariableManagementConditionExpressionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VariableManagementConditionExpression undocumented
+type VariableManagementConditionExpression struct {
+ // ManagementConditionExpressionModel is the base model of VariableManagementConditionExpression
+ ManagementConditionExpressionModel
+ // ManagementConditionID The management condition id that is used to evaluate the expression.
+ ManagementConditionID *string `json:"managementConditionId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VendorModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VendorModel.go
new file mode 100644
index 00000000..e5789555
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VendorModel.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Vendor undocumented
+type Vendor struct {
+ // Entity is the base model of Vendor
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Address undocumented
+ Address *PostalAddressType `json:"address,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // Website undocumented
+ Website *string `json:"website,omitempty"`
+ // TaxRegistrationNumber undocumented
+ TaxRegistrationNumber *string `json:"taxRegistrationNumber,omitempty"`
+ // CurrencyID undocumented
+ CurrencyID *UUID `json:"currencyId,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // PaymentTermsID undocumented
+ PaymentTermsID *UUID `json:"paymentTermsId,omitempty"`
+ // PaymentMethodID undocumented
+ PaymentMethodID *UUID `json:"paymentMethodId,omitempty"`
+ // TaxLiable undocumented
+ TaxLiable *bool `json:"taxLiable,omitempty"`
+ // Blocked undocumented
+ Blocked *string `json:"blocked,omitempty"`
+ // Balance undocumented
+ Balance *int `json:"balance,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Picture undocumented
+ Picture []Picture `json:"picture,omitempty"`
+ // Currency undocumented
+ Currency *Currency `json:"currency,omitempty"`
+ // PaymentTerm undocumented
+ PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"`
+ // PaymentMethod undocumented
+ PaymentMethod *PaymentMethod `json:"paymentMethod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VendorRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/VendorRequest.go
new file mode 100644
index 00000000..3c556485
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VendorRequest.go
@@ -0,0 +1,160 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// VendorRequestBuilder is request builder for Vendor
+type VendorRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns VendorRequest
+func (b *VendorRequestBuilder) Request() *VendorRequest {
+ return &VendorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// VendorRequest is request for Vendor
+type VendorRequest struct{ BaseRequest }
+
+// Get performs GET request for Vendor
+func (r *VendorRequest) Get(ctx context.Context) (resObj *Vendor, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Vendor
+func (r *VendorRequest) Update(ctx context.Context, reqObj *Vendor) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Vendor
+func (r *VendorRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Currency is navigation property
+func (b *VendorRequestBuilder) Currency() *CurrencyRequestBuilder {
+ bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/currency"
+ return bb
+}
+
+// PaymentMethod is navigation property
+func (b *VendorRequestBuilder) PaymentMethod() *PaymentMethodRequestBuilder {
+ bb := &PaymentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentMethod"
+ return bb
+}
+
+// PaymentTerm is navigation property
+func (b *VendorRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder {
+ bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentTerm"
+ return bb
+}
+
+// Picture returns request builder for Picture collection
+func (b *VendorRequestBuilder) Picture() *VendorPictureCollectionRequestBuilder {
+ bb := &VendorPictureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/picture"
+ return bb
+}
+
+// VendorPictureCollectionRequestBuilder is request builder for Picture collection
+type VendorPictureCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Picture collection
+func (b *VendorPictureCollectionRequestBuilder) Request() *VendorPictureCollectionRequest {
+ return &VendorPictureCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Picture item
+func (b *VendorPictureCollectionRequestBuilder) ID(id string) *PictureRequestBuilder {
+ bb := &PictureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// VendorPictureCollectionRequest is request for Picture collection
+type VendorPictureCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Picture collection
+func (r *VendorPictureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Picture, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Picture
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Picture
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for Picture collection
+func (r *VendorPictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for Picture collection
+func (r *VendorPictureCollectionRequest) Add(ctx context.Context, reqObj *Picture) (resObj *Picture, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VerifiedDomainModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VerifiedDomainModel.go
new file mode 100644
index 00000000..dca1549e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VerifiedDomainModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VerifiedDomain undocumented
+type VerifiedDomain struct {
+ // Object is the base model of VerifiedDomain
+ Object
+ // Capabilities undocumented
+ Capabilities *string `json:"capabilities,omitempty"`
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // IsInitial undocumented
+ IsInitial *bool `json:"isInitial,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VersionActionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VersionActionModel.go
new file mode 100644
index 00000000..7cbb8695
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VersionActionModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VersionAction undocumented
+type VersionAction struct {
+ // Object is the base model of VersionAction
+ Object
+ // NewVersion undocumented
+ NewVersion *string `json:"newVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VideoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VideoModel.go
new file mode 100644
index 00000000..ffebe388
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VideoModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Video undocumented
+type Video struct {
+ // Object is the base model of Video
+ Object
+ // AudioBitsPerSample undocumented
+ AudioBitsPerSample *int `json:"audioBitsPerSample,omitempty"`
+ // AudioChannels undocumented
+ AudioChannels *int `json:"audioChannels,omitempty"`
+ // AudioFormat undocumented
+ AudioFormat *string `json:"audioFormat,omitempty"`
+ // AudioSamplesPerSecond undocumented
+ AudioSamplesPerSecond *int `json:"audioSamplesPerSecond,omitempty"`
+ // Bitrate undocumented
+ Bitrate *int `json:"bitrate,omitempty"`
+ // Duration undocumented
+ Duration *int `json:"duration,omitempty"`
+ // FourCC undocumented
+ FourCC *string `json:"fourCC,omitempty"`
+ // FrameRate undocumented
+ FrameRate *float64 `json:"frameRate,omitempty"`
+ // Height undocumented
+ Height *int `json:"height,omitempty"`
+ // Width undocumented
+ Width *int `json:"width,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VisibilitySettingEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/VisibilitySettingEnum.go
new file mode 100644
index 00000000..924cd51b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VisibilitySettingEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VisibilitySetting undocumented
+type VisibilitySetting int
+
+const (
+ // VisibilitySettingVNotConfigured undocumented
+ VisibilitySettingVNotConfigured VisibilitySetting = 0
+ // VisibilitySettingVHide undocumented
+ VisibilitySettingVHide VisibilitySetting = 1
+ // VisibilitySettingVShow undocumented
+ VisibilitySettingVShow VisibilitySetting = 2
+)
+
+// VisibilitySettingPNotConfigured returns a pointer to VisibilitySettingVNotConfigured
+func VisibilitySettingPNotConfigured() *VisibilitySetting {
+ v := VisibilitySettingVNotConfigured
+ return &v
+}
+
+// VisibilitySettingPHide returns a pointer to VisibilitySettingVHide
+func VisibilitySettingPHide() *VisibilitySetting {
+ v := VisibilitySettingVHide
+ return &v
+}
+
+// VisibilitySettingPShow returns a pointer to VisibilitySettingVShow
+func VisibilitySettingPShow() *VisibilitySetting {
+ v := VisibilitySettingVShow
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VisualInfoModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VisualInfoModel.go
new file mode 100644
index 00000000..a299cc86
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VisualInfoModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "encoding/json"
+
+// VisualInfo undocumented
+type VisualInfo struct {
+ // Object is the base model of VisualInfo
+ Object
+ // Attribution undocumented
+ Attribution *ImageInfo `json:"attribution,omitempty"`
+ // BackgroundColor undocumented
+ BackgroundColor *string `json:"backgroundColor,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayText undocumented
+ DisplayText *string `json:"displayText,omitempty"`
+ // Content undocumented
+ Content json.RawMessage `json:"content,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VisualPropertiesModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VisualPropertiesModel.go
new file mode 100644
index 00000000..262acf40
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VisualPropertiesModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VisualProperties undocumented
+type VisualProperties struct {
+ // Object is the base model of VisualProperties
+ Object
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // Body undocumented
+ Body *string `json:"body,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnAuthenticationMethodEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnAuthenticationMethodEnum.go
new file mode 100644
index 00000000..6334ed63
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnAuthenticationMethodEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnAuthenticationMethod undocumented
+type VpnAuthenticationMethod int
+
+const (
+ // VpnAuthenticationMethodVCertificate undocumented
+ VpnAuthenticationMethodVCertificate VpnAuthenticationMethod = 0
+ // VpnAuthenticationMethodVUsernameAndPassword undocumented
+ VpnAuthenticationMethodVUsernameAndPassword VpnAuthenticationMethod = 1
+ // VpnAuthenticationMethodVSharedSecret undocumented
+ VpnAuthenticationMethodVSharedSecret VpnAuthenticationMethod = 2
+ // VpnAuthenticationMethodVDerivedCredential undocumented
+ VpnAuthenticationMethodVDerivedCredential VpnAuthenticationMethod = 3
+)
+
+// VpnAuthenticationMethodPCertificate returns a pointer to VpnAuthenticationMethodVCertificate
+func VpnAuthenticationMethodPCertificate() *VpnAuthenticationMethod {
+ v := VpnAuthenticationMethodVCertificate
+ return &v
+}
+
+// VpnAuthenticationMethodPUsernameAndPassword returns a pointer to VpnAuthenticationMethodVUsernameAndPassword
+func VpnAuthenticationMethodPUsernameAndPassword() *VpnAuthenticationMethod {
+ v := VpnAuthenticationMethodVUsernameAndPassword
+ return &v
+}
+
+// VpnAuthenticationMethodPSharedSecret returns a pointer to VpnAuthenticationMethodVSharedSecret
+func VpnAuthenticationMethodPSharedSecret() *VpnAuthenticationMethod {
+ v := VpnAuthenticationMethodVSharedSecret
+ return &v
+}
+
+// VpnAuthenticationMethodPDerivedCredential returns a pointer to VpnAuthenticationMethodVDerivedCredential
+func VpnAuthenticationMethodPDerivedCredential() *VpnAuthenticationMethod {
+ v := VpnAuthenticationMethodVDerivedCredential
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnClientAuthenticationTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnClientAuthenticationTypeEnum.go
new file mode 100644
index 00000000..60304699
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnClientAuthenticationTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnClientAuthenticationType undocumented
+type VpnClientAuthenticationType int
+
+const (
+ // VpnClientAuthenticationTypeVUserAuthentication undocumented
+ VpnClientAuthenticationTypeVUserAuthentication VpnClientAuthenticationType = 0
+ // VpnClientAuthenticationTypeVDeviceAuthentication undocumented
+ VpnClientAuthenticationTypeVDeviceAuthentication VpnClientAuthenticationType = 1
+)
+
+// VpnClientAuthenticationTypePUserAuthentication returns a pointer to VpnClientAuthenticationTypeVUserAuthentication
+func VpnClientAuthenticationTypePUserAuthentication() *VpnClientAuthenticationType {
+ v := VpnClientAuthenticationTypeVUserAuthentication
+ return &v
+}
+
+// VpnClientAuthenticationTypePDeviceAuthentication returns a pointer to VpnClientAuthenticationTypeVDeviceAuthentication
+func VpnClientAuthenticationTypePDeviceAuthentication() *VpnClientAuthenticationType {
+ v := VpnClientAuthenticationTypeVDeviceAuthentication
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnConfigurationModel.go
new file mode 100644
index 00000000..97fec24d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnConfigurationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnConfiguration Base VPN Configuration profile.
+type VpnConfiguration struct {
+ // DeviceConfiguration is the base model of VpnConfiguration
+ DeviceConfiguration
+ // AuthenticationMethod Authentication method.
+ AuthenticationMethod *VpnAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // ConnectionName Connection name displayed to the user.
+ ConnectionName *string `json:"connectionName,omitempty"`
+ // Role Role when connection type is set to Pulse Secure.
+ Role *string `json:"role,omitempty"`
+ // Realm Realm when connection type is set to Pulse Secure.
+ Realm *string `json:"realm,omitempty"`
+ // Servers List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements.
+ Servers []VpnServer `json:"servers,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnDNSRuleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnDNSRuleModel.go
new file mode 100644
index 00000000..553aac66
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnDNSRuleModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnDNSRule undocumented
+type VpnDNSRule struct {
+ // Object is the base model of VpnDNSRule
+ Object
+ // Name Name.
+ Name *string `json:"name,omitempty"`
+ // Servers Servers.
+ Servers []string `json:"servers,omitempty"`
+ // ProxyServerURI Proxy Server Uri.
+ ProxyServerURI *string `json:"proxyServerUri,omitempty"`
+ // AutoTrigger Automatically connect to the VPN when the device connects to this domain: Default False.
+ AutoTrigger *bool `json:"autoTrigger,omitempty"`
+ // Persistent Keep this rule active even when the VPN is not connected: Default False
+ Persistent *bool `json:"persistent,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnDeadPeerDetectionRateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnDeadPeerDetectionRateEnum.go
new file mode 100644
index 00000000..62a5a302
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnDeadPeerDetectionRateEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnDeadPeerDetectionRate undocumented
+type VpnDeadPeerDetectionRate int
+
+const (
+ // VpnDeadPeerDetectionRateVMedium undocumented
+ VpnDeadPeerDetectionRateVMedium VpnDeadPeerDetectionRate = 0
+ // VpnDeadPeerDetectionRateVNone undocumented
+ VpnDeadPeerDetectionRateVNone VpnDeadPeerDetectionRate = 1
+ // VpnDeadPeerDetectionRateVLow undocumented
+ VpnDeadPeerDetectionRateVLow VpnDeadPeerDetectionRate = 2
+ // VpnDeadPeerDetectionRateVHigh undocumented
+ VpnDeadPeerDetectionRateVHigh VpnDeadPeerDetectionRate = 3
+)
+
+// VpnDeadPeerDetectionRatePMedium returns a pointer to VpnDeadPeerDetectionRateVMedium
+func VpnDeadPeerDetectionRatePMedium() *VpnDeadPeerDetectionRate {
+ v := VpnDeadPeerDetectionRateVMedium
+ return &v
+}
+
+// VpnDeadPeerDetectionRatePNone returns a pointer to VpnDeadPeerDetectionRateVNone
+func VpnDeadPeerDetectionRatePNone() *VpnDeadPeerDetectionRate {
+ v := VpnDeadPeerDetectionRateVNone
+ return &v
+}
+
+// VpnDeadPeerDetectionRatePLow returns a pointer to VpnDeadPeerDetectionRateVLow
+func VpnDeadPeerDetectionRatePLow() *VpnDeadPeerDetectionRate {
+ v := VpnDeadPeerDetectionRateVLow
+ return &v
+}
+
+// VpnDeadPeerDetectionRatePHigh returns a pointer to VpnDeadPeerDetectionRateVHigh
+func VpnDeadPeerDetectionRatePHigh() *VpnDeadPeerDetectionRate {
+ v := VpnDeadPeerDetectionRateVHigh
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnEncryptionAlgorithmTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnEncryptionAlgorithmTypeEnum.go
new file mode 100644
index 00000000..7b373238
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnEncryptionAlgorithmTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnEncryptionAlgorithmType undocumented
+type VpnEncryptionAlgorithmType int
+
+const (
+ // VpnEncryptionAlgorithmTypeVAes256 undocumented
+ VpnEncryptionAlgorithmTypeVAes256 VpnEncryptionAlgorithmType = 0
+ // VpnEncryptionAlgorithmTypeVDes undocumented
+ VpnEncryptionAlgorithmTypeVDes VpnEncryptionAlgorithmType = 1
+ // VpnEncryptionAlgorithmTypeVTripleDes undocumented
+ VpnEncryptionAlgorithmTypeVTripleDes VpnEncryptionAlgorithmType = 2
+ // VpnEncryptionAlgorithmTypeVAes128 undocumented
+ VpnEncryptionAlgorithmTypeVAes128 VpnEncryptionAlgorithmType = 3
+ // VpnEncryptionAlgorithmTypeVAes128Gcm undocumented
+ VpnEncryptionAlgorithmTypeVAes128Gcm VpnEncryptionAlgorithmType = 4
+ // VpnEncryptionAlgorithmTypeVAes256Gcm undocumented
+ VpnEncryptionAlgorithmTypeVAes256Gcm VpnEncryptionAlgorithmType = 5
+)
+
+// VpnEncryptionAlgorithmTypePAes256 returns a pointer to VpnEncryptionAlgorithmTypeVAes256
+func VpnEncryptionAlgorithmTypePAes256() *VpnEncryptionAlgorithmType {
+ v := VpnEncryptionAlgorithmTypeVAes256
+ return &v
+}
+
+// VpnEncryptionAlgorithmTypePDes returns a pointer to VpnEncryptionAlgorithmTypeVDes
+func VpnEncryptionAlgorithmTypePDes() *VpnEncryptionAlgorithmType {
+ v := VpnEncryptionAlgorithmTypeVDes
+ return &v
+}
+
+// VpnEncryptionAlgorithmTypePTripleDes returns a pointer to VpnEncryptionAlgorithmTypeVTripleDes
+func VpnEncryptionAlgorithmTypePTripleDes() *VpnEncryptionAlgorithmType {
+ v := VpnEncryptionAlgorithmTypeVTripleDes
+ return &v
+}
+
+// VpnEncryptionAlgorithmTypePAes128 returns a pointer to VpnEncryptionAlgorithmTypeVAes128
+func VpnEncryptionAlgorithmTypePAes128() *VpnEncryptionAlgorithmType {
+ v := VpnEncryptionAlgorithmTypeVAes128
+ return &v
+}
+
+// VpnEncryptionAlgorithmTypePAes128Gcm returns a pointer to VpnEncryptionAlgorithmTypeVAes128Gcm
+func VpnEncryptionAlgorithmTypePAes128Gcm() *VpnEncryptionAlgorithmType {
+ v := VpnEncryptionAlgorithmTypeVAes128Gcm
+ return &v
+}
+
+// VpnEncryptionAlgorithmTypePAes256Gcm returns a pointer to VpnEncryptionAlgorithmTypeVAes256Gcm
+func VpnEncryptionAlgorithmTypePAes256Gcm() *VpnEncryptionAlgorithmType {
+ v := VpnEncryptionAlgorithmTypeVAes256Gcm
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnIntegrityAlgorithmTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnIntegrityAlgorithmTypeEnum.go
new file mode 100644
index 00000000..6b023123
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnIntegrityAlgorithmTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnIntegrityAlgorithmType undocumented
+type VpnIntegrityAlgorithmType int
+
+const (
+ // VpnIntegrityAlgorithmTypeVSha2_256 undocumented
+ VpnIntegrityAlgorithmTypeVSha2_256 VpnIntegrityAlgorithmType = 0
+ // VpnIntegrityAlgorithmTypeVSha1_96 undocumented
+ VpnIntegrityAlgorithmTypeVSha1_96 VpnIntegrityAlgorithmType = 1
+ // VpnIntegrityAlgorithmTypeVSha1_160 undocumented
+ VpnIntegrityAlgorithmTypeVSha1_160 VpnIntegrityAlgorithmType = 2
+ // VpnIntegrityAlgorithmTypeVSha2_384 undocumented
+ VpnIntegrityAlgorithmTypeVSha2_384 VpnIntegrityAlgorithmType = 3
+ // VpnIntegrityAlgorithmTypeVSha2_512 undocumented
+ VpnIntegrityAlgorithmTypeVSha2_512 VpnIntegrityAlgorithmType = 4
+)
+
+// VpnIntegrityAlgorithmTypePSha2_256 returns a pointer to VpnIntegrityAlgorithmTypeVSha2_256
+func VpnIntegrityAlgorithmTypePSha2_256() *VpnIntegrityAlgorithmType {
+ v := VpnIntegrityAlgorithmTypeVSha2_256
+ return &v
+}
+
+// VpnIntegrityAlgorithmTypePSha1_96 returns a pointer to VpnIntegrityAlgorithmTypeVSha1_96
+func VpnIntegrityAlgorithmTypePSha1_96() *VpnIntegrityAlgorithmType {
+ v := VpnIntegrityAlgorithmTypeVSha1_96
+ return &v
+}
+
+// VpnIntegrityAlgorithmTypePSha1_160 returns a pointer to VpnIntegrityAlgorithmTypeVSha1_160
+func VpnIntegrityAlgorithmTypePSha1_160() *VpnIntegrityAlgorithmType {
+ v := VpnIntegrityAlgorithmTypeVSha1_160
+ return &v
+}
+
+// VpnIntegrityAlgorithmTypePSha2_384 returns a pointer to VpnIntegrityAlgorithmTypeVSha2_384
+func VpnIntegrityAlgorithmTypePSha2_384() *VpnIntegrityAlgorithmType {
+ v := VpnIntegrityAlgorithmTypeVSha2_384
+ return &v
+}
+
+// VpnIntegrityAlgorithmTypePSha2_512 returns a pointer to VpnIntegrityAlgorithmTypeVSha2_512
+func VpnIntegrityAlgorithmTypePSha2_512() *VpnIntegrityAlgorithmType {
+ v := VpnIntegrityAlgorithmTypeVSha2_512
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnLocalIdentifierEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnLocalIdentifierEnum.go
new file mode 100644
index 00000000..5225519f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnLocalIdentifierEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnLocalIdentifier undocumented
+type VpnLocalIdentifier int
+
+const (
+ // VpnLocalIdentifierVDeviceFQDN undocumented
+ VpnLocalIdentifierVDeviceFQDN VpnLocalIdentifier = 0
+ // VpnLocalIdentifierVEmpty undocumented
+ VpnLocalIdentifierVEmpty VpnLocalIdentifier = 1
+ // VpnLocalIdentifierVClientCertificateSubjectName undocumented
+ VpnLocalIdentifierVClientCertificateSubjectName VpnLocalIdentifier = 2
+)
+
+// VpnLocalIdentifierPDeviceFQDN returns a pointer to VpnLocalIdentifierVDeviceFQDN
+func VpnLocalIdentifierPDeviceFQDN() *VpnLocalIdentifier {
+ v := VpnLocalIdentifierVDeviceFQDN
+ return &v
+}
+
+// VpnLocalIdentifierPEmpty returns a pointer to VpnLocalIdentifierVEmpty
+func VpnLocalIdentifierPEmpty() *VpnLocalIdentifier {
+ v := VpnLocalIdentifierVEmpty
+ return &v
+}
+
+// VpnLocalIdentifierPClientCertificateSubjectName returns a pointer to VpnLocalIdentifierVClientCertificateSubjectName
+func VpnLocalIdentifierPClientCertificateSubjectName() *VpnLocalIdentifier {
+ v := VpnLocalIdentifierVClientCertificateSubjectName
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnOnDemandRuleConnectionActionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnOnDemandRuleConnectionActionEnum.go
new file mode 100644
index 00000000..b6e1d2a5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnOnDemandRuleConnectionActionEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnOnDemandRuleConnectionAction undocumented
+type VpnOnDemandRuleConnectionAction int
+
+const (
+ // VpnOnDemandRuleConnectionActionVConnect undocumented
+ VpnOnDemandRuleConnectionActionVConnect VpnOnDemandRuleConnectionAction = 0
+ // VpnOnDemandRuleConnectionActionVEvaluateConnection undocumented
+ VpnOnDemandRuleConnectionActionVEvaluateConnection VpnOnDemandRuleConnectionAction = 1
+ // VpnOnDemandRuleConnectionActionVIgnore undocumented
+ VpnOnDemandRuleConnectionActionVIgnore VpnOnDemandRuleConnectionAction = 2
+ // VpnOnDemandRuleConnectionActionVDisconnect undocumented
+ VpnOnDemandRuleConnectionActionVDisconnect VpnOnDemandRuleConnectionAction = 3
+)
+
+// VpnOnDemandRuleConnectionActionPConnect returns a pointer to VpnOnDemandRuleConnectionActionVConnect
+func VpnOnDemandRuleConnectionActionPConnect() *VpnOnDemandRuleConnectionAction {
+ v := VpnOnDemandRuleConnectionActionVConnect
+ return &v
+}
+
+// VpnOnDemandRuleConnectionActionPEvaluateConnection returns a pointer to VpnOnDemandRuleConnectionActionVEvaluateConnection
+func VpnOnDemandRuleConnectionActionPEvaluateConnection() *VpnOnDemandRuleConnectionAction {
+ v := VpnOnDemandRuleConnectionActionVEvaluateConnection
+ return &v
+}
+
+// VpnOnDemandRuleConnectionActionPIgnore returns a pointer to VpnOnDemandRuleConnectionActionVIgnore
+func VpnOnDemandRuleConnectionActionPIgnore() *VpnOnDemandRuleConnectionAction {
+ v := VpnOnDemandRuleConnectionActionVIgnore
+ return &v
+}
+
+// VpnOnDemandRuleConnectionActionPDisconnect returns a pointer to VpnOnDemandRuleConnectionActionVDisconnect
+func VpnOnDemandRuleConnectionActionPDisconnect() *VpnOnDemandRuleConnectionAction {
+ v := VpnOnDemandRuleConnectionActionVDisconnect
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnOnDemandRuleConnectionDomainActionEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnOnDemandRuleConnectionDomainActionEnum.go
new file mode 100644
index 00000000..3edeba99
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnOnDemandRuleConnectionDomainActionEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnOnDemandRuleConnectionDomainAction undocumented
+type VpnOnDemandRuleConnectionDomainAction int
+
+const (
+ // VpnOnDemandRuleConnectionDomainActionVConnectIfNeeded undocumented
+ VpnOnDemandRuleConnectionDomainActionVConnectIfNeeded VpnOnDemandRuleConnectionDomainAction = 0
+ // VpnOnDemandRuleConnectionDomainActionVNeverConnect undocumented
+ VpnOnDemandRuleConnectionDomainActionVNeverConnect VpnOnDemandRuleConnectionDomainAction = 1
+)
+
+// VpnOnDemandRuleConnectionDomainActionPConnectIfNeeded returns a pointer to VpnOnDemandRuleConnectionDomainActionVConnectIfNeeded
+func VpnOnDemandRuleConnectionDomainActionPConnectIfNeeded() *VpnOnDemandRuleConnectionDomainAction {
+ v := VpnOnDemandRuleConnectionDomainActionVConnectIfNeeded
+ return &v
+}
+
+// VpnOnDemandRuleConnectionDomainActionPNeverConnect returns a pointer to VpnOnDemandRuleConnectionDomainActionVNeverConnect
+func VpnOnDemandRuleConnectionDomainActionPNeverConnect() *VpnOnDemandRuleConnectionDomainAction {
+ v := VpnOnDemandRuleConnectionDomainActionVNeverConnect
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnOnDemandRuleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnOnDemandRuleModel.go
new file mode 100644
index 00000000..278ab256
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnOnDemandRuleModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnOnDemandRule undocumented
+type VpnOnDemandRule struct {
+ // Object is the base model of VpnOnDemandRule
+ Object
+ // Ssids Network Service Set Identifiers (SSIDs).
+ Ssids []string `json:"ssids,omitempty"`
+ // DNSSearchDomains DNS Search Domains.
+ DNSSearchDomains []string `json:"dnsSearchDomains,omitempty"`
+ // ProbeURL A URL to probe. If this URL is successfully fetched (returning a 200 HTTP status code) without redirection, this rule matches.
+ ProbeURL *string `json:"probeUrl,omitempty"`
+ // Action Action.
+ Action *VpnOnDemandRuleConnectionAction `json:"action,omitempty"`
+ // DomainAction Domain Action (Only applicable when Action is evaluate connection).
+ DomainAction *VpnOnDemandRuleConnectionDomainAction `json:"domainAction,omitempty"`
+ // Domains Domains (Only applicable when Action is evaluate connection).
+ Domains []string `json:"domains,omitempty"`
+ // ProbeRequiredURL Probe Required Url (Only applicable when Action is evaluate connection and DomainAction is connect if needed).
+ ProbeRequiredURL *string `json:"probeRequiredUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnProviderTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnProviderTypeEnum.go
new file mode 100644
index 00000000..7d2602ec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnProviderTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnProviderType undocumented
+type VpnProviderType int
+
+const (
+ // VpnProviderTypeVNotConfigured undocumented
+ VpnProviderTypeVNotConfigured VpnProviderType = 0
+ // VpnProviderTypeVAppProxy undocumented
+ VpnProviderTypeVAppProxy VpnProviderType = 1
+ // VpnProviderTypeVPacketTunnel undocumented
+ VpnProviderTypeVPacketTunnel VpnProviderType = 2
+)
+
+// VpnProviderTypePNotConfigured returns a pointer to VpnProviderTypeVNotConfigured
+func VpnProviderTypePNotConfigured() *VpnProviderType {
+ v := VpnProviderTypeVNotConfigured
+ return &v
+}
+
+// VpnProviderTypePAppProxy returns a pointer to VpnProviderTypeVAppProxy
+func VpnProviderTypePAppProxy() *VpnProviderType {
+ v := VpnProviderTypeVAppProxy
+ return &v
+}
+
+// VpnProviderTypePPacketTunnel returns a pointer to VpnProviderTypeVPacketTunnel
+func VpnProviderTypePPacketTunnel() *VpnProviderType {
+ v := VpnProviderTypeVPacketTunnel
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnProxyServerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnProxyServerModel.go
new file mode 100644
index 00000000..d0d38510
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnProxyServerModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnProxyServer undocumented
+type VpnProxyServer struct {
+ // Object is the base model of VpnProxyServer
+ Object
+ // AutomaticConfigurationScriptURL Proxy's automatic configuration script url.
+ AutomaticConfigurationScriptURL *string `json:"automaticConfigurationScriptUrl,omitempty"`
+ // Address Address.
+ Address *string `json:"address,omitempty"`
+ // Port Port. Valid values 0 to 65535
+ Port *int `json:"port,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnRouteModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnRouteModel.go
new file mode 100644
index 00000000..592f4245
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnRouteModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnRoute undocumented
+type VpnRoute struct {
+ // Object is the base model of VpnRoute
+ Object
+ // DestinationPrefix Destination prefix (IPv4/v6 address).
+ DestinationPrefix *string `json:"destinationPrefix,omitempty"`
+ // PrefixSize Prefix size. (1-32). Valid values 1 to 32
+ PrefixSize *int `json:"prefixSize,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnServerCertificateTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnServerCertificateTypeEnum.go
new file mode 100644
index 00000000..8c83565a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnServerCertificateTypeEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnServerCertificateType undocumented
+type VpnServerCertificateType int
+
+const (
+ // VpnServerCertificateTypeVRsa undocumented
+ VpnServerCertificateTypeVRsa VpnServerCertificateType = 0
+ // VpnServerCertificateTypeVEcdsa256 undocumented
+ VpnServerCertificateTypeVEcdsa256 VpnServerCertificateType = 1
+ // VpnServerCertificateTypeVEcdsa384 undocumented
+ VpnServerCertificateTypeVEcdsa384 VpnServerCertificateType = 2
+ // VpnServerCertificateTypeVEcdsa521 undocumented
+ VpnServerCertificateTypeVEcdsa521 VpnServerCertificateType = 3
+)
+
+// VpnServerCertificateTypePRsa returns a pointer to VpnServerCertificateTypeVRsa
+func VpnServerCertificateTypePRsa() *VpnServerCertificateType {
+ v := VpnServerCertificateTypeVRsa
+ return &v
+}
+
+// VpnServerCertificateTypePEcdsa256 returns a pointer to VpnServerCertificateTypeVEcdsa256
+func VpnServerCertificateTypePEcdsa256() *VpnServerCertificateType {
+ v := VpnServerCertificateTypeVEcdsa256
+ return &v
+}
+
+// VpnServerCertificateTypePEcdsa384 returns a pointer to VpnServerCertificateTypeVEcdsa384
+func VpnServerCertificateTypePEcdsa384() *VpnServerCertificateType {
+ v := VpnServerCertificateTypeVEcdsa384
+ return &v
+}
+
+// VpnServerCertificateTypePEcdsa521 returns a pointer to VpnServerCertificateTypeVEcdsa521
+func VpnServerCertificateTypePEcdsa521() *VpnServerCertificateType {
+ v := VpnServerCertificateTypeVEcdsa521
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnServerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnServerModel.go
new file mode 100644
index 00000000..1490f3ef
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnServerModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnServer undocumented
+type VpnServer struct {
+ // Object is the base model of VpnServer
+ Object
+ // Description Description.
+ Description *string `json:"description,omitempty"`
+ // Address Address (IP address, FQDN or URL)
+ Address *string `json:"address,omitempty"`
+ // IsDefaultServer Default server.
+ IsDefaultServer *bool `json:"isDefaultServer,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnTrafficRuleAppTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnTrafficRuleAppTypeEnum.go
new file mode 100644
index 00000000..81362a51
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnTrafficRuleAppTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnTrafficRuleAppType undocumented
+type VpnTrafficRuleAppType int
+
+const (
+ // VpnTrafficRuleAppTypeVNone undocumented
+ VpnTrafficRuleAppTypeVNone VpnTrafficRuleAppType = 0
+ // VpnTrafficRuleAppTypeVDesktop undocumented
+ VpnTrafficRuleAppTypeVDesktop VpnTrafficRuleAppType = 1
+ // VpnTrafficRuleAppTypeVUniversal undocumented
+ VpnTrafficRuleAppTypeVUniversal VpnTrafficRuleAppType = 2
+)
+
+// VpnTrafficRuleAppTypePNone returns a pointer to VpnTrafficRuleAppTypeVNone
+func VpnTrafficRuleAppTypePNone() *VpnTrafficRuleAppType {
+ v := VpnTrafficRuleAppTypeVNone
+ return &v
+}
+
+// VpnTrafficRuleAppTypePDesktop returns a pointer to VpnTrafficRuleAppTypeVDesktop
+func VpnTrafficRuleAppTypePDesktop() *VpnTrafficRuleAppType {
+ v := VpnTrafficRuleAppTypeVDesktop
+ return &v
+}
+
+// VpnTrafficRuleAppTypePUniversal returns a pointer to VpnTrafficRuleAppTypeVUniversal
+func VpnTrafficRuleAppTypePUniversal() *VpnTrafficRuleAppType {
+ v := VpnTrafficRuleAppTypeVUniversal
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnTrafficRuleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnTrafficRuleModel.go
new file mode 100644
index 00000000..7eff2928
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnTrafficRuleModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnTrafficRule undocumented
+type VpnTrafficRule struct {
+ // Object is the base model of VpnTrafficRule
+ Object
+ // Name Name.
+ Name *string `json:"name,omitempty"`
+ // Protocols Protocols (0-255). Valid values 0 to 255
+ Protocols *int `json:"protocols,omitempty"`
+ // LocalPortRanges Local port range can be set only when protocol is either TCP or UDP (6 or 17). This collection can contain a maximum of 500 elements.
+ LocalPortRanges []NumberRange `json:"localPortRanges,omitempty"`
+ // RemotePortRanges Remote port range can be set only when protocol is either TCP or UDP (6 or 17). This collection can contain a maximum of 500 elements.
+ RemotePortRanges []NumberRange `json:"remotePortRanges,omitempty"`
+ // LocalAddressRanges Local address range. This collection can contain a maximum of 500 elements.
+ LocalAddressRanges []IPv4Range `json:"localAddressRanges,omitempty"`
+ // RemoteAddressRanges Remote address range. This collection can contain a maximum of 500 elements.
+ RemoteAddressRanges []IPv4Range `json:"remoteAddressRanges,omitempty"`
+ // AppID App identifier, if this traffic rule is triggered by an app.
+ AppID *string `json:"appId,omitempty"`
+ // AppType App type, if this traffic rule is triggered by an app.
+ AppType *VpnTrafficRuleAppType `json:"appType,omitempty"`
+ // RoutingPolicyType When app triggered, indicates whether to enable split tunneling along this route.
+ RoutingPolicyType *VpnTrafficRuleRoutingPolicyType `json:"routingPolicyType,omitempty"`
+ // Claims Claims associated with this traffic rule.
+ Claims *string `json:"claims,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VpnTrafficRuleRoutingPolicyTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/VpnTrafficRuleRoutingPolicyTypeEnum.go
new file mode 100644
index 00000000..3619d052
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VpnTrafficRuleRoutingPolicyTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VpnTrafficRuleRoutingPolicyType undocumented
+type VpnTrafficRuleRoutingPolicyType int
+
+const (
+ // VpnTrafficRuleRoutingPolicyTypeVNone undocumented
+ VpnTrafficRuleRoutingPolicyTypeVNone VpnTrafficRuleRoutingPolicyType = 0
+ // VpnTrafficRuleRoutingPolicyTypeVSplitTunnel undocumented
+ VpnTrafficRuleRoutingPolicyTypeVSplitTunnel VpnTrafficRuleRoutingPolicyType = 1
+ // VpnTrafficRuleRoutingPolicyTypeVForceTunnel undocumented
+ VpnTrafficRuleRoutingPolicyTypeVForceTunnel VpnTrafficRuleRoutingPolicyType = 2
+)
+
+// VpnTrafficRuleRoutingPolicyTypePNone returns a pointer to VpnTrafficRuleRoutingPolicyTypeVNone
+func VpnTrafficRuleRoutingPolicyTypePNone() *VpnTrafficRuleRoutingPolicyType {
+ v := VpnTrafficRuleRoutingPolicyTypeVNone
+ return &v
+}
+
+// VpnTrafficRuleRoutingPolicyTypePSplitTunnel returns a pointer to VpnTrafficRuleRoutingPolicyTypeVSplitTunnel
+func VpnTrafficRuleRoutingPolicyTypePSplitTunnel() *VpnTrafficRuleRoutingPolicyType {
+ v := VpnTrafficRuleRoutingPolicyTypeVSplitTunnel
+ return &v
+}
+
+// VpnTrafficRuleRoutingPolicyTypePForceTunnel returns a pointer to VpnTrafficRuleRoutingPolicyTypeVForceTunnel
+func VpnTrafficRuleRoutingPolicyTypePForceTunnel() *VpnTrafficRuleRoutingPolicyType {
+ v := VpnTrafficRuleRoutingPolicyTypeVForceTunnel
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VppLicensingTypeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VppLicensingTypeModel.go
new file mode 100644
index 00000000..87012462
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VppLicensingTypeModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VppLicensingType undocumented
+type VppLicensingType struct {
+ // Object is the base model of VppLicensingType
+ Object
+ // SupportUserLicensing Whether the program supports the user licensing type.
+ SupportUserLicensing *bool `json:"supportUserLicensing,omitempty"`
+ // SupportDeviceLicensing Whether the program supports the device licensing type.
+ SupportDeviceLicensing *bool `json:"supportDeviceLicensing,omitempty"`
+ // SupportsUserLicensing Whether the program supports the user licensing type.
+ SupportsUserLicensing *bool `json:"supportsUserLicensing,omitempty"`
+ // SupportsDeviceLicensing Whether the program supports the device licensing type.
+ SupportsDeviceLicensing *bool `json:"supportsDeviceLicensing,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenAccountTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenAccountTypeEnum.go
new file mode 100644
index 00000000..90861c08
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenAccountTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VppTokenAccountType undocumented
+type VppTokenAccountType int
+
+const (
+ // VppTokenAccountTypeVBusiness undocumented
+ VppTokenAccountTypeVBusiness VppTokenAccountType = 0
+ // VppTokenAccountTypeVEducation undocumented
+ VppTokenAccountTypeVEducation VppTokenAccountType = 1
+)
+
+// VppTokenAccountTypePBusiness returns a pointer to VppTokenAccountTypeVBusiness
+func VppTokenAccountTypePBusiness() *VppTokenAccountType {
+ v := VppTokenAccountTypeVBusiness
+ return &v
+}
+
+// VppTokenAccountTypePEducation returns a pointer to VppTokenAccountTypeVEducation
+func VppTokenAccountTypePEducation() *VppTokenAccountType {
+ v := VppTokenAccountTypeVEducation
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenAction.go
new file mode 100644
index 00000000..3b9090c7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenAction.go
@@ -0,0 +1,68 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// VppTokenSyncLicensesRequestParameter undocumented
+type VppTokenSyncLicensesRequestParameter struct {
+}
+
+// VppTokenRevokeLicensesRequestParameter undocumented
+type VppTokenRevokeLicensesRequestParameter struct {
+ // NotifyManagedDevices undocumented
+ NotifyManagedDevices *bool `json:"notifyManagedDevices,omitempty"`
+}
+
+//
+type VppTokenSyncLicensesRequestBuilder struct{ BaseRequestBuilder }
+
+// SyncLicenses action undocumented
+func (b *VppTokenRequestBuilder) SyncLicenses(reqObj *VppTokenSyncLicensesRequestParameter) *VppTokenSyncLicensesRequestBuilder {
+ bb := &VppTokenSyncLicensesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/syncLicenses"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type VppTokenSyncLicensesRequest struct{ BaseRequest }
+
+//
+func (b *VppTokenSyncLicensesRequestBuilder) Request() *VppTokenSyncLicensesRequest {
+ return &VppTokenSyncLicensesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *VppTokenSyncLicensesRequest) Post(ctx context.Context) (resObj *VppToken, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type VppTokenRevokeLicensesRequestBuilder struct{ BaseRequestBuilder }
+
+// RevokeLicenses action undocumented
+func (b *VppTokenRequestBuilder) RevokeLicenses(reqObj *VppTokenRevokeLicensesRequestParameter) *VppTokenRevokeLicensesRequestBuilder {
+ bb := &VppTokenRevokeLicensesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/revokeLicenses"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type VppTokenRevokeLicensesRequest struct{ BaseRequest }
+
+//
+func (b *VppTokenRevokeLicensesRequestBuilder) Request() *VppTokenRevokeLicensesRequest {
+ return &VppTokenRevokeLicensesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *VppTokenRevokeLicensesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenActionFailureReasonEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenActionFailureReasonEnum.go
new file mode 100644
index 00000000..d895a369
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenActionFailureReasonEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VppTokenActionFailureReason undocumented
+type VppTokenActionFailureReason int
+
+const (
+ // VppTokenActionFailureReasonVNone undocumented
+ VppTokenActionFailureReasonVNone VppTokenActionFailureReason = 0
+ // VppTokenActionFailureReasonVAppleFailure undocumented
+ VppTokenActionFailureReasonVAppleFailure VppTokenActionFailureReason = 1
+ // VppTokenActionFailureReasonVInternalError undocumented
+ VppTokenActionFailureReasonVInternalError VppTokenActionFailureReason = 2
+ // VppTokenActionFailureReasonVExpiredVppToken undocumented
+ VppTokenActionFailureReasonVExpiredVppToken VppTokenActionFailureReason = 3
+ // VppTokenActionFailureReasonVExpiredApplePushNotificationCertificate undocumented
+ VppTokenActionFailureReasonVExpiredApplePushNotificationCertificate VppTokenActionFailureReason = 4
+)
+
+// VppTokenActionFailureReasonPNone returns a pointer to VppTokenActionFailureReasonVNone
+func VppTokenActionFailureReasonPNone() *VppTokenActionFailureReason {
+ v := VppTokenActionFailureReasonVNone
+ return &v
+}
+
+// VppTokenActionFailureReasonPAppleFailure returns a pointer to VppTokenActionFailureReasonVAppleFailure
+func VppTokenActionFailureReasonPAppleFailure() *VppTokenActionFailureReason {
+ v := VppTokenActionFailureReasonVAppleFailure
+ return &v
+}
+
+// VppTokenActionFailureReasonPInternalError returns a pointer to VppTokenActionFailureReasonVInternalError
+func VppTokenActionFailureReasonPInternalError() *VppTokenActionFailureReason {
+ v := VppTokenActionFailureReasonVInternalError
+ return &v
+}
+
+// VppTokenActionFailureReasonPExpiredVppToken returns a pointer to VppTokenActionFailureReasonVExpiredVppToken
+func VppTokenActionFailureReasonPExpiredVppToken() *VppTokenActionFailureReason {
+ v := VppTokenActionFailureReasonVExpiredVppToken
+ return &v
+}
+
+// VppTokenActionFailureReasonPExpiredApplePushNotificationCertificate returns a pointer to VppTokenActionFailureReasonVExpiredApplePushNotificationCertificate
+func VppTokenActionFailureReasonPExpiredApplePushNotificationCertificate() *VppTokenActionFailureReason {
+ v := VppTokenActionFailureReasonVExpiredApplePushNotificationCertificate
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenActionResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenActionResultModel.go
new file mode 100644
index 00000000..c70460a7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenActionResultModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// VppTokenActionResult undocumented
+type VppTokenActionResult struct {
+ // Object is the base model of VppTokenActionResult
+ Object
+ // ActionName Action name
+ ActionName *string `json:"actionName,omitempty"`
+ // ActionState State of the action
+ ActionState *ActionState `json:"actionState,omitempty"`
+ // StartDateTime Time the action was initiated
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // LastUpdatedDateTime Time the action state was last updated
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenLicenseSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenLicenseSummaryModel.go
new file mode 100644
index 00000000..383e2f37
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenLicenseSummaryModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VppTokenLicenseSummary undocumented
+type VppTokenLicenseSummary struct {
+ // Object is the base model of VppTokenLicenseSummary
+ Object
+ // VppTokenID Identifier of the VPP token.
+ VppTokenID *string `json:"vppTokenId,omitempty"`
+ // AppleID The Apple Id associated with the given Apple Volume Purchase Program Token.
+ AppleID *string `json:"appleId,omitempty"`
+ // OrganizationName The organization associated with the Apple Volume Purchase Program Token.
+ OrganizationName *string `json:"organizationName,omitempty"`
+ // AvailableLicenseCount The number of VPP licenses available.
+ AvailableLicenseCount *int `json:"availableLicenseCount,omitempty"`
+ // UsedLicenseCount The number of VPP licenses in use.
+ UsedLicenseCount *int `json:"usedLicenseCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenModel.go
new file mode 100644
index 00000000..37eac0da
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenModel.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// VppToken You purchase multiple licenses for iOS apps through the Apple Volume Purchase Program for Business or Education. This involves setting up an Apple VPP account from the Apple website and uploading the Apple VPP Business or Education token to Intune. You can then synchronize your volume purchase information with Intune and track your volume-purchased app use. You can upload multiple Apple VPP Business or Education tokens.
+type VppToken struct {
+ // Entity is the base model of VppToken
+ Entity
+ // OrganizationName The organization associated with the Apple Volume Purchase Program Token
+ OrganizationName *string `json:"organizationName,omitempty"`
+ // VppTokenAccountType The type of volume purchase program which the given Apple Volume Purchase Program Token is associated with. Possible values are: `business`, `education`.
+ VppTokenAccountType *VppTokenAccountType `json:"vppTokenAccountType,omitempty"`
+ // AppleID The apple Id associated with the given Apple Volume Purchase Program Token.
+ AppleID *string `json:"appleId,omitempty"`
+ // ExpirationDateTime The expiration date time of the Apple Volume Purchase Program Token.
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // LastSyncDateTime The last time when an application sync was done with the Apple volume purchase program service using the the Apple Volume Purchase Program Token.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // Token The Apple Volume Purchase Program Token string downloaded from the Apple Volume Purchase Program.
+ Token *string `json:"token,omitempty"`
+ // LastModifiedDateTime Last modification date time associated with the Apple Volume Purchase Program Token.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // State Current state of the Apple Volume Purchase Program Token. Possible values are: `unknown`, `valid`, `expired`, `invalid`, `assignedToExternalMDM`.
+ State *VppTokenState `json:"state,omitempty"`
+ // TokenActionResults The collection of statuses of the actions performed on the Apple Volume Purchase Program Token.
+ TokenActionResults []VppTokenActionResult `json:"tokenActionResults,omitempty"`
+ // LastSyncStatus Current sync status of the last application sync which was triggered using the Apple Volume Purchase Program Token. Possible values are: `none`, `inProgress`, `completed`, `failed`.
+ LastSyncStatus *VppTokenSyncStatus `json:"lastSyncStatus,omitempty"`
+ // AutomaticallyUpdateApps Whether or not apps for the VPP token will be automatically updated.
+ AutomaticallyUpdateApps *bool `json:"automaticallyUpdateApps,omitempty"`
+ // CountryOrRegion Whether or not apps for the VPP token will be automatically updated.
+ CountryOrRegion *string `json:"countryOrRegion,omitempty"`
+ // DataSharingConsentGranted Consent granted for data sharing with the Apple Volume Purchase Program.
+ DataSharingConsentGranted *bool `json:"dataSharingConsentGranted,omitempty"`
+ // DisplayName An admin specified token friendly name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // LocationName Token location returned from Apple VPP.
+ LocationName *string `json:"locationName,omitempty"`
+ // ClaimTokenManagementFromExternalMdm Admin consent to allow claiming token management from external MDM.
+ ClaimTokenManagementFromExternalMdm *bool `json:"claimTokenManagementFromExternalMdm,omitempty"`
+ // RoleScopeTagIDs Role Scope Tags IDs assigned to this entity.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenRequest.go
new file mode 100644
index 00000000..31577ff9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// VppTokenRequestBuilder is request builder for VppToken
+type VppTokenRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns VppTokenRequest
+func (b *VppTokenRequestBuilder) Request() *VppTokenRequest {
+ return &VppTokenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// VppTokenRequest is request for VppToken
+type VppTokenRequest struct{ BaseRequest }
+
+// Get performs GET request for VppToken
+func (r *VppTokenRequest) Get(ctx context.Context) (resObj *VppToken, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for VppToken
+func (r *VppTokenRequest) Update(ctx context.Context, reqObj *VppToken) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for VppToken
+func (r *VppTokenRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenRevokeLicensesActionResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenRevokeLicensesActionResultModel.go
new file mode 100644
index 00000000..6b9c454f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenRevokeLicensesActionResultModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VppTokenRevokeLicensesActionResult undocumented
+type VppTokenRevokeLicensesActionResult struct {
+ // VppTokenActionResult is the base model of VppTokenRevokeLicensesActionResult
+ VppTokenActionResult
+ // TotalLicensesCount A count of the number of licenses that were attempted to revoke.
+ TotalLicensesCount *int `json:"totalLicensesCount,omitempty"`
+ // FailedLicensesCount A count of the number of licenses that failed to revoke.
+ FailedLicensesCount *int `json:"failedLicensesCount,omitempty"`
+ // ActionFailureReason The reason for the revoke licenses action failure.
+ ActionFailureReason *VppTokenActionFailureReason `json:"actionFailureReason,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenStateEnum.go
new file mode 100644
index 00000000..fbcfe115
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenStateEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VppTokenState undocumented
+type VppTokenState int
+
+const (
+ // VppTokenStateVUnknown undocumented
+ VppTokenStateVUnknown VppTokenState = 0
+ // VppTokenStateVValid undocumented
+ VppTokenStateVValid VppTokenState = 1
+ // VppTokenStateVExpired undocumented
+ VppTokenStateVExpired VppTokenState = 2
+ // VppTokenStateVInvalid undocumented
+ VppTokenStateVInvalid VppTokenState = 3
+ // VppTokenStateVAssignedToExternalMDM undocumented
+ VppTokenStateVAssignedToExternalMDM VppTokenState = 4
+)
+
+// VppTokenStatePUnknown returns a pointer to VppTokenStateVUnknown
+func VppTokenStatePUnknown() *VppTokenState {
+ v := VppTokenStateVUnknown
+ return &v
+}
+
+// VppTokenStatePValid returns a pointer to VppTokenStateVValid
+func VppTokenStatePValid() *VppTokenState {
+ v := VppTokenStateVValid
+ return &v
+}
+
+// VppTokenStatePExpired returns a pointer to VppTokenStateVExpired
+func VppTokenStatePExpired() *VppTokenState {
+ v := VppTokenStateVExpired
+ return &v
+}
+
+// VppTokenStatePInvalid returns a pointer to VppTokenStateVInvalid
+func VppTokenStatePInvalid() *VppTokenState {
+ v := VppTokenStateVInvalid
+ return &v
+}
+
+// VppTokenStatePAssignedToExternalMDM returns a pointer to VppTokenStateVAssignedToExternalMDM
+func VppTokenStatePAssignedToExternalMDM() *VppTokenState {
+ v := VppTokenStateVAssignedToExternalMDM
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenSyncStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenSyncStatusEnum.go
new file mode 100644
index 00000000..a2cdf4d9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VppTokenSyncStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VppTokenSyncStatus undocumented
+type VppTokenSyncStatus int
+
+const (
+ // VppTokenSyncStatusVNone undocumented
+ VppTokenSyncStatusVNone VppTokenSyncStatus = 0
+ // VppTokenSyncStatusVInProgress undocumented
+ VppTokenSyncStatusVInProgress VppTokenSyncStatus = 1
+ // VppTokenSyncStatusVCompleted undocumented
+ VppTokenSyncStatusVCompleted VppTokenSyncStatus = 2
+ // VppTokenSyncStatusVFailed undocumented
+ VppTokenSyncStatusVFailed VppTokenSyncStatus = 3
+)
+
+// VppTokenSyncStatusPNone returns a pointer to VppTokenSyncStatusVNone
+func VppTokenSyncStatusPNone() *VppTokenSyncStatus {
+ v := VppTokenSyncStatusVNone
+ return &v
+}
+
+// VppTokenSyncStatusPInProgress returns a pointer to VppTokenSyncStatusVInProgress
+func VppTokenSyncStatusPInProgress() *VppTokenSyncStatus {
+ v := VppTokenSyncStatusVInProgress
+ return &v
+}
+
+// VppTokenSyncStatusPCompleted returns a pointer to VppTokenSyncStatusVCompleted
+func VppTokenSyncStatusPCompleted() *VppTokenSyncStatus {
+ v := VppTokenSyncStatusVCompleted
+ return &v
+}
+
+// VppTokenSyncStatusPFailed returns a pointer to VppTokenSyncStatusVFailed
+func VppTokenSyncStatusPFailed() *VppTokenSyncStatus {
+ v := VppTokenSyncStatusVFailed
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/VulnerabilityStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/VulnerabilityStateModel.go
new file mode 100644
index 00000000..efa57bbe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/VulnerabilityStateModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VulnerabilityState undocumented
+type VulnerabilityState struct {
+ // Object is the base model of VulnerabilityState
+ Object
+ // Cve undocumented
+ Cve *string `json:"cve,omitempty"`
+ // Severity undocumented
+ Severity *string `json:"severity,omitempty"`
+ // WasRunning undocumented
+ WasRunning *bool `json:"wasRunning,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WatermarkLayoutEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WatermarkLayoutEnum.go
new file mode 100644
index 00000000..611e9fe5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WatermarkLayoutEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WatermarkLayout undocumented
+type WatermarkLayout int
+
+const (
+ // WatermarkLayoutVHorizontal undocumented
+ WatermarkLayoutVHorizontal WatermarkLayout = 0
+ // WatermarkLayoutVDiagonal undocumented
+ WatermarkLayoutVDiagonal WatermarkLayout = 1
+)
+
+// WatermarkLayoutPHorizontal returns a pointer to WatermarkLayoutVHorizontal
+func WatermarkLayoutPHorizontal() *WatermarkLayout {
+ v := WatermarkLayoutVHorizontal
+ return &v
+}
+
+// WatermarkLayoutPDiagonal returns a pointer to WatermarkLayoutVDiagonal
+func WatermarkLayoutPDiagonal() *WatermarkLayout {
+ v := WatermarkLayoutVDiagonal
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WebAccountModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WebAccountModel.go
new file mode 100644
index 00000000..1b9dfa43
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WebAccountModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WebAccount undocumented
+type WebAccount struct {
+ // ItemFacet is the base model of WebAccount
+ ItemFacet
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // Service undocumented
+ Service *ServiceInformation `json:"service,omitempty"`
+ // StatusMessage undocumented
+ StatusMessage *string `json:"statusMessage,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WebAccountRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/WebAccountRequest.go
new file mode 100644
index 00000000..11b2d481
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WebAccountRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WebAccountRequestBuilder is request builder for WebAccount
+type WebAccountRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WebAccountRequest
+func (b *WebAccountRequestBuilder) Request() *WebAccountRequest {
+ return &WebAccountRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WebAccountRequest is request for WebAccount
+type WebAccountRequest struct{ BaseRequest }
+
+// Get performs GET request for WebAccount
+func (r *WebAccountRequest) Get(ctx context.Context) (resObj *WebAccount, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WebAccount
+func (r *WebAccountRequest) Update(ctx context.Context, reqObj *WebAccount) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WebAccount
+func (r *WebAccountRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WebAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WebAppModel.go
new file mode 100644
index 00000000..f394abf0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WebAppModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WebApp Contains properties and inherited properties for web apps.
+type WebApp struct {
+ // MobileApp is the base model of WebApp
+ MobileApp
+ // AppURL The web app URL.
+ AppURL *string `json:"appUrl,omitempty"`
+ // UseManagedBrowser Whether or not to use managed browser. This property is only applicable for Android and IOS.
+ UseManagedBrowser *bool `json:"useManagedBrowser,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WebApplicationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WebApplicationModel.go
new file mode 100644
index 00000000..df993dbf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WebApplicationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WebApplication undocumented
+type WebApplication struct {
+ // Object is the base model of WebApplication
+ Object
+ // HomePageURL undocumented
+ HomePageURL *string `json:"homePageUrl,omitempty"`
+ // RedirectUris undocumented
+ RedirectUris []string `json:"redirectUris,omitempty"`
+ // Oauth2AllowImplicitFlow undocumented
+ Oauth2AllowImplicitFlow *bool `json:"oauth2AllowImplicitFlow,omitempty"`
+ // LogoutURL undocumented
+ LogoutURL *string `json:"logoutUrl,omitempty"`
+ // ImplicitGrantSettings undocumented
+ ImplicitGrantSettings *ImplicitGrantSettings `json:"implicitGrantSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WebBrowserCookieSettingsEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WebBrowserCookieSettingsEnum.go
new file mode 100644
index 00000000..af397fbe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WebBrowserCookieSettingsEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WebBrowserCookieSettings undocumented
+type WebBrowserCookieSettings int
+
+const (
+ // WebBrowserCookieSettingsVBrowserDefault undocumented
+ WebBrowserCookieSettingsVBrowserDefault WebBrowserCookieSettings = 0
+ // WebBrowserCookieSettingsVBlockAlways undocumented
+ WebBrowserCookieSettingsVBlockAlways WebBrowserCookieSettings = 1
+ // WebBrowserCookieSettingsVAllowCurrentWebSite undocumented
+ WebBrowserCookieSettingsVAllowCurrentWebSite WebBrowserCookieSettings = 2
+ // WebBrowserCookieSettingsVAllowFromWebsitesVisited undocumented
+ WebBrowserCookieSettingsVAllowFromWebsitesVisited WebBrowserCookieSettings = 3
+ // WebBrowserCookieSettingsVAllowAlways undocumented
+ WebBrowserCookieSettingsVAllowAlways WebBrowserCookieSettings = 4
+)
+
+// WebBrowserCookieSettingsPBrowserDefault returns a pointer to WebBrowserCookieSettingsVBrowserDefault
+func WebBrowserCookieSettingsPBrowserDefault() *WebBrowserCookieSettings {
+ v := WebBrowserCookieSettingsVBrowserDefault
+ return &v
+}
+
+// WebBrowserCookieSettingsPBlockAlways returns a pointer to WebBrowserCookieSettingsVBlockAlways
+func WebBrowserCookieSettingsPBlockAlways() *WebBrowserCookieSettings {
+ v := WebBrowserCookieSettingsVBlockAlways
+ return &v
+}
+
+// WebBrowserCookieSettingsPAllowCurrentWebSite returns a pointer to WebBrowserCookieSettingsVAllowCurrentWebSite
+func WebBrowserCookieSettingsPAllowCurrentWebSite() *WebBrowserCookieSettings {
+ v := WebBrowserCookieSettingsVAllowCurrentWebSite
+ return &v
+}
+
+// WebBrowserCookieSettingsPAllowFromWebsitesVisited returns a pointer to WebBrowserCookieSettingsVAllowFromWebsitesVisited
+func WebBrowserCookieSettingsPAllowFromWebsitesVisited() *WebBrowserCookieSettings {
+ v := WebBrowserCookieSettingsVAllowFromWebsitesVisited
+ return &v
+}
+
+// WebBrowserCookieSettingsPAllowAlways returns a pointer to WebBrowserCookieSettingsVAllowAlways
+func WebBrowserCookieSettingsPAllowAlways() *WebBrowserCookieSettings {
+ v := WebBrowserCookieSettingsVAllowAlways
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WebPartModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WebPartModel.go
new file mode 100644
index 00000000..f982cc0b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WebPartModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WebPart undocumented
+type WebPart struct {
+ // Object is the base model of WebPart
+ Object
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Data undocumented
+ Data *SitePageData `json:"data,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WebsiteModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WebsiteModel.go
new file mode 100644
index 00000000..86c680d5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WebsiteModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Website undocumented
+type Website struct {
+ // Object is the base model of Website
+ Object
+ // Type undocumented
+ Type *WebsiteType `json:"type,omitempty"`
+ // Address undocumented
+ Address *string `json:"address,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WebsiteTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WebsiteTypeEnum.go
new file mode 100644
index 00000000..a3b4031c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WebsiteTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WebsiteType undocumented
+type WebsiteType int
+
+const (
+ // WebsiteTypeVOther undocumented
+ WebsiteTypeVOther WebsiteType = 0
+ // WebsiteTypeVHome undocumented
+ WebsiteTypeVHome WebsiteType = 1
+ // WebsiteTypeVWork undocumented
+ WebsiteTypeVWork WebsiteType = 2
+ // WebsiteTypeVBlog undocumented
+ WebsiteTypeVBlog WebsiteType = 3
+ // WebsiteTypeVProfile undocumented
+ WebsiteTypeVProfile WebsiteType = 4
+)
+
+// WebsiteTypePOther returns a pointer to WebsiteTypeVOther
+func WebsiteTypePOther() *WebsiteType {
+ v := WebsiteTypeVOther
+ return &v
+}
+
+// WebsiteTypePHome returns a pointer to WebsiteTypeVHome
+func WebsiteTypePHome() *WebsiteType {
+ v := WebsiteTypeVHome
+ return &v
+}
+
+// WebsiteTypePWork returns a pointer to WebsiteTypeVWork
+func WebsiteTypePWork() *WebsiteType {
+ v := WebsiteTypeVWork
+ return &v
+}
+
+// WebsiteTypePBlog returns a pointer to WebsiteTypeVBlog
+func WebsiteTypePBlog() *WebsiteType {
+ v := WebsiteTypeVBlog
+ return &v
+}
+
+// WebsiteTypePProfile returns a pointer to WebsiteTypeVProfile
+func WebsiteTypePProfile() *WebsiteType {
+ v := WebsiteTypeVProfile
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WeekIndexEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WeekIndexEnum.go
new file mode 100644
index 00000000..a2ef1b2e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WeekIndexEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WeekIndex undocumented
+type WeekIndex int
+
+const (
+ // WeekIndexVFirst undocumented
+ WeekIndexVFirst WeekIndex = 0
+ // WeekIndexVSecond undocumented
+ WeekIndexVSecond WeekIndex = 1
+ // WeekIndexVThird undocumented
+ WeekIndexVThird WeekIndex = 2
+ // WeekIndexVFourth undocumented
+ WeekIndexVFourth WeekIndex = 3
+ // WeekIndexVLast undocumented
+ WeekIndexVLast WeekIndex = 4
+)
+
+// WeekIndexPFirst returns a pointer to WeekIndexVFirst
+func WeekIndexPFirst() *WeekIndex {
+ v := WeekIndexVFirst
+ return &v
+}
+
+// WeekIndexPSecond returns a pointer to WeekIndexVSecond
+func WeekIndexPSecond() *WeekIndex {
+ v := WeekIndexVSecond
+ return &v
+}
+
+// WeekIndexPThird returns a pointer to WeekIndexVThird
+func WeekIndexPThird() *WeekIndex {
+ v := WeekIndexVThird
+ return &v
+}
+
+// WeekIndexPFourth returns a pointer to WeekIndexVFourth
+func WeekIndexPFourth() *WeekIndex {
+ v := WeekIndexVFourth
+ return &v
+}
+
+// WeekIndexPLast returns a pointer to WeekIndexVLast
+func WeekIndexPLast() *WeekIndex {
+ v := WeekIndexVLast
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WeeklyScheduleEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WeeklyScheduleEnum.go
new file mode 100644
index 00000000..bca8ce54
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WeeklyScheduleEnum.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WeeklySchedule undocumented
+type WeeklySchedule int
+
+const (
+ // WeeklyScheduleVUserDefined undocumented
+ WeeklyScheduleVUserDefined WeeklySchedule = 0
+ // WeeklyScheduleVEveryday undocumented
+ WeeklyScheduleVEveryday WeeklySchedule = 1
+ // WeeklyScheduleVSunday undocumented
+ WeeklyScheduleVSunday WeeklySchedule = 2
+ // WeeklyScheduleVMonday undocumented
+ WeeklyScheduleVMonday WeeklySchedule = 3
+ // WeeklyScheduleVTuesday undocumented
+ WeeklyScheduleVTuesday WeeklySchedule = 4
+ // WeeklyScheduleVWednesday undocumented
+ WeeklyScheduleVWednesday WeeklySchedule = 5
+ // WeeklyScheduleVThursday undocumented
+ WeeklyScheduleVThursday WeeklySchedule = 6
+ // WeeklyScheduleVFriday undocumented
+ WeeklyScheduleVFriday WeeklySchedule = 7
+ // WeeklyScheduleVSaturday undocumented
+ WeeklyScheduleVSaturday WeeklySchedule = 8
+ // WeeklyScheduleVNoScheduledScan undocumented
+ WeeklyScheduleVNoScheduledScan WeeklySchedule = 9
+)
+
+// WeeklySchedulePUserDefined returns a pointer to WeeklyScheduleVUserDefined
+func WeeklySchedulePUserDefined() *WeeklySchedule {
+ v := WeeklyScheduleVUserDefined
+ return &v
+}
+
+// WeeklySchedulePEveryday returns a pointer to WeeklyScheduleVEveryday
+func WeeklySchedulePEveryday() *WeeklySchedule {
+ v := WeeklyScheduleVEveryday
+ return &v
+}
+
+// WeeklySchedulePSunday returns a pointer to WeeklyScheduleVSunday
+func WeeklySchedulePSunday() *WeeklySchedule {
+ v := WeeklyScheduleVSunday
+ return &v
+}
+
+// WeeklySchedulePMonday returns a pointer to WeeklyScheduleVMonday
+func WeeklySchedulePMonday() *WeeklySchedule {
+ v := WeeklyScheduleVMonday
+ return &v
+}
+
+// WeeklySchedulePTuesday returns a pointer to WeeklyScheduleVTuesday
+func WeeklySchedulePTuesday() *WeeklySchedule {
+ v := WeeklyScheduleVTuesday
+ return &v
+}
+
+// WeeklySchedulePWednesday returns a pointer to WeeklyScheduleVWednesday
+func WeeklySchedulePWednesday() *WeeklySchedule {
+ v := WeeklyScheduleVWednesday
+ return &v
+}
+
+// WeeklySchedulePThursday returns a pointer to WeeklyScheduleVThursday
+func WeeklySchedulePThursday() *WeeklySchedule {
+ v := WeeklyScheduleVThursday
+ return &v
+}
+
+// WeeklySchedulePFriday returns a pointer to WeeklyScheduleVFriday
+func WeeklySchedulePFriday() *WeeklySchedule {
+ v := WeeklyScheduleVFriday
+ return &v
+}
+
+// WeeklySchedulePSaturday returns a pointer to WeeklyScheduleVSaturday
+func WeeklySchedulePSaturday() *WeeklySchedule {
+ v := WeeklyScheduleVSaturday
+ return &v
+}
+
+// WeeklySchedulePNoScheduledScan returns a pointer to WeeklyScheduleVNoScheduledScan
+func WeeklySchedulePNoScheduledScan() *WeeklySchedule {
+ v := WeeklyScheduleVNoScheduledScan
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WelcomeScreenMeetingInformationEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WelcomeScreenMeetingInformationEnum.go
new file mode 100644
index 00000000..f9f944d9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WelcomeScreenMeetingInformationEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WelcomeScreenMeetingInformation undocumented
+type WelcomeScreenMeetingInformation int
+
+const (
+ // WelcomeScreenMeetingInformationVUserDefined undocumented
+ WelcomeScreenMeetingInformationVUserDefined WelcomeScreenMeetingInformation = 0
+ // WelcomeScreenMeetingInformationVShowOrganizerAndTimeOnly undocumented
+ WelcomeScreenMeetingInformationVShowOrganizerAndTimeOnly WelcomeScreenMeetingInformation = 1
+ // WelcomeScreenMeetingInformationVShowOrganizerAndTimeAndSubject undocumented
+ WelcomeScreenMeetingInformationVShowOrganizerAndTimeAndSubject WelcomeScreenMeetingInformation = 2
+)
+
+// WelcomeScreenMeetingInformationPUserDefined returns a pointer to WelcomeScreenMeetingInformationVUserDefined
+func WelcomeScreenMeetingInformationPUserDefined() *WelcomeScreenMeetingInformation {
+ v := WelcomeScreenMeetingInformationVUserDefined
+ return &v
+}
+
+// WelcomeScreenMeetingInformationPShowOrganizerAndTimeOnly returns a pointer to WelcomeScreenMeetingInformationVShowOrganizerAndTimeOnly
+func WelcomeScreenMeetingInformationPShowOrganizerAndTimeOnly() *WelcomeScreenMeetingInformation {
+ v := WelcomeScreenMeetingInformationVShowOrganizerAndTimeOnly
+ return &v
+}
+
+// WelcomeScreenMeetingInformationPShowOrganizerAndTimeAndSubject returns a pointer to WelcomeScreenMeetingInformationVShowOrganizerAndTimeAndSubject
+func WelcomeScreenMeetingInformationPShowOrganizerAndTimeAndSubject() *WelcomeScreenMeetingInformation {
+ v := WelcomeScreenMeetingInformationVShowOrganizerAndTimeAndSubject
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WiFiAuthenticationMethodEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WiFiAuthenticationMethodEnum.go
new file mode 100644
index 00000000..fe442f4b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WiFiAuthenticationMethodEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WiFiAuthenticationMethod undocumented
+type WiFiAuthenticationMethod int
+
+const (
+ // WiFiAuthenticationMethodVCertificate undocumented
+ WiFiAuthenticationMethodVCertificate WiFiAuthenticationMethod = 0
+ // WiFiAuthenticationMethodVUsernameAndPassword undocumented
+ WiFiAuthenticationMethodVUsernameAndPassword WiFiAuthenticationMethod = 1
+ // WiFiAuthenticationMethodVDerivedCredential undocumented
+ WiFiAuthenticationMethodVDerivedCredential WiFiAuthenticationMethod = 2
+)
+
+// WiFiAuthenticationMethodPCertificate returns a pointer to WiFiAuthenticationMethodVCertificate
+func WiFiAuthenticationMethodPCertificate() *WiFiAuthenticationMethod {
+ v := WiFiAuthenticationMethodVCertificate
+ return &v
+}
+
+// WiFiAuthenticationMethodPUsernameAndPassword returns a pointer to WiFiAuthenticationMethodVUsernameAndPassword
+func WiFiAuthenticationMethodPUsernameAndPassword() *WiFiAuthenticationMethod {
+ v := WiFiAuthenticationMethodVUsernameAndPassword
+ return &v
+}
+
+// WiFiAuthenticationMethodPDerivedCredential returns a pointer to WiFiAuthenticationMethodVDerivedCredential
+func WiFiAuthenticationMethodPDerivedCredential() *WiFiAuthenticationMethod {
+ v := WiFiAuthenticationMethodVDerivedCredential
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WiFiProxySettingEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WiFiProxySettingEnum.go
new file mode 100644
index 00000000..80095ffa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WiFiProxySettingEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WiFiProxySetting undocumented
+type WiFiProxySetting int
+
+const (
+ // WiFiProxySettingVNone undocumented
+ WiFiProxySettingVNone WiFiProxySetting = 0
+ // WiFiProxySettingVManual undocumented
+ WiFiProxySettingVManual WiFiProxySetting = 1
+ // WiFiProxySettingVAutomatic undocumented
+ WiFiProxySettingVAutomatic WiFiProxySetting = 2
+)
+
+// WiFiProxySettingPNone returns a pointer to WiFiProxySettingVNone
+func WiFiProxySettingPNone() *WiFiProxySetting {
+ v := WiFiProxySettingVNone
+ return &v
+}
+
+// WiFiProxySettingPManual returns a pointer to WiFiProxySettingVManual
+func WiFiProxySettingPManual() *WiFiProxySetting {
+ v := WiFiProxySettingVManual
+ return &v
+}
+
+// WiFiProxySettingPAutomatic returns a pointer to WiFiProxySettingVAutomatic
+func WiFiProxySettingPAutomatic() *WiFiProxySetting {
+ v := WiFiProxySettingVAutomatic
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WiFiSecurityTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WiFiSecurityTypeEnum.go
new file mode 100644
index 00000000..326c5b4e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WiFiSecurityTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WiFiSecurityType undocumented
+type WiFiSecurityType int
+
+const (
+ // WiFiSecurityTypeVOpen undocumented
+ WiFiSecurityTypeVOpen WiFiSecurityType = 0
+ // WiFiSecurityTypeVWpaPersonal undocumented
+ WiFiSecurityTypeVWpaPersonal WiFiSecurityType = 1
+ // WiFiSecurityTypeVWpaEnterprise undocumented
+ WiFiSecurityTypeVWpaEnterprise WiFiSecurityType = 2
+ // WiFiSecurityTypeVWep undocumented
+ WiFiSecurityTypeVWep WiFiSecurityType = 3
+ // WiFiSecurityTypeVWpa2Personal undocumented
+ WiFiSecurityTypeVWpa2Personal WiFiSecurityType = 4
+ // WiFiSecurityTypeVWpa2Enterprise undocumented
+ WiFiSecurityTypeVWpa2Enterprise WiFiSecurityType = 5
+)
+
+// WiFiSecurityTypePOpen returns a pointer to WiFiSecurityTypeVOpen
+func WiFiSecurityTypePOpen() *WiFiSecurityType {
+ v := WiFiSecurityTypeVOpen
+ return &v
+}
+
+// WiFiSecurityTypePWpaPersonal returns a pointer to WiFiSecurityTypeVWpaPersonal
+func WiFiSecurityTypePWpaPersonal() *WiFiSecurityType {
+ v := WiFiSecurityTypeVWpaPersonal
+ return &v
+}
+
+// WiFiSecurityTypePWpaEnterprise returns a pointer to WiFiSecurityTypeVWpaEnterprise
+func WiFiSecurityTypePWpaEnterprise() *WiFiSecurityType {
+ v := WiFiSecurityTypeVWpaEnterprise
+ return &v
+}
+
+// WiFiSecurityTypePWep returns a pointer to WiFiSecurityTypeVWep
+func WiFiSecurityTypePWep() *WiFiSecurityType {
+ v := WiFiSecurityTypeVWep
+ return &v
+}
+
+// WiFiSecurityTypePWpa2Personal returns a pointer to WiFiSecurityTypeVWpa2Personal
+func WiFiSecurityTypePWpa2Personal() *WiFiSecurityType {
+ v := WiFiSecurityTypeVWpa2Personal
+ return &v
+}
+
+// WiFiSecurityTypePWpa2Enterprise returns a pointer to WiFiSecurityTypeVWpa2Enterprise
+func WiFiSecurityTypePWpa2Enterprise() *WiFiSecurityType {
+ v := WiFiSecurityTypeVWpa2Enterprise
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppAssignmentSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppAssignmentSettingsModel.go
new file mode 100644
index 00000000..34c2b332
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppAssignmentSettingsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppAssignmentSettings undocumented
+type Win32LobAppAssignmentSettings struct {
+ // MobileAppAssignmentSettings is the base model of Win32LobAppAssignmentSettings
+ MobileAppAssignmentSettings
+ // Notifications The notification status for this app assignment.
+ Notifications *Win32LobAppNotification `json:"notifications,omitempty"`
+ // RestartSettings The reboot settings to apply for this app assignment.
+ RestartSettings *Win32LobAppRestartSettings `json:"restartSettings,omitempty"`
+ // InstallTimeSettings The install time settings to apply for this app assignment.
+ InstallTimeSettings *MobileAppInstallTimeSettings `json:"installTimeSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppDetectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppDetectionModel.go
new file mode 100644
index 00000000..50c140cb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppDetectionModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppDetection undocumented
+type Win32LobAppDetection struct {
+ // Object is the base model of Win32LobAppDetection
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppDetectionOperatorEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppDetectionOperatorEnum.go
new file mode 100644
index 00000000..0748dfe1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppDetectionOperatorEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppDetectionOperator undocumented
+type Win32LobAppDetectionOperator int
+
+const (
+ // Win32LobAppDetectionOperatorVNotConfigured undocumented
+ Win32LobAppDetectionOperatorVNotConfigured Win32LobAppDetectionOperator = 0
+ // Win32LobAppDetectionOperatorVEqual undocumented
+ Win32LobAppDetectionOperatorVEqual Win32LobAppDetectionOperator = 1
+ // Win32LobAppDetectionOperatorVNotEqual undocumented
+ Win32LobAppDetectionOperatorVNotEqual Win32LobAppDetectionOperator = 2
+ // Win32LobAppDetectionOperatorVGreaterThan undocumented
+ Win32LobAppDetectionOperatorVGreaterThan Win32LobAppDetectionOperator = 4
+ // Win32LobAppDetectionOperatorVGreaterThanOrEqual undocumented
+ Win32LobAppDetectionOperatorVGreaterThanOrEqual Win32LobAppDetectionOperator = 5
+ // Win32LobAppDetectionOperatorVLessThan undocumented
+ Win32LobAppDetectionOperatorVLessThan Win32LobAppDetectionOperator = 8
+ // Win32LobAppDetectionOperatorVLessThanOrEqual undocumented
+ Win32LobAppDetectionOperatorVLessThanOrEqual Win32LobAppDetectionOperator = 9
+)
+
+// Win32LobAppDetectionOperatorPNotConfigured returns a pointer to Win32LobAppDetectionOperatorVNotConfigured
+func Win32LobAppDetectionOperatorPNotConfigured() *Win32LobAppDetectionOperator {
+ v := Win32LobAppDetectionOperatorVNotConfigured
+ return &v
+}
+
+// Win32LobAppDetectionOperatorPEqual returns a pointer to Win32LobAppDetectionOperatorVEqual
+func Win32LobAppDetectionOperatorPEqual() *Win32LobAppDetectionOperator {
+ v := Win32LobAppDetectionOperatorVEqual
+ return &v
+}
+
+// Win32LobAppDetectionOperatorPNotEqual returns a pointer to Win32LobAppDetectionOperatorVNotEqual
+func Win32LobAppDetectionOperatorPNotEqual() *Win32LobAppDetectionOperator {
+ v := Win32LobAppDetectionOperatorVNotEqual
+ return &v
+}
+
+// Win32LobAppDetectionOperatorPGreaterThan returns a pointer to Win32LobAppDetectionOperatorVGreaterThan
+func Win32LobAppDetectionOperatorPGreaterThan() *Win32LobAppDetectionOperator {
+ v := Win32LobAppDetectionOperatorVGreaterThan
+ return &v
+}
+
+// Win32LobAppDetectionOperatorPGreaterThanOrEqual returns a pointer to Win32LobAppDetectionOperatorVGreaterThanOrEqual
+func Win32LobAppDetectionOperatorPGreaterThanOrEqual() *Win32LobAppDetectionOperator {
+ v := Win32LobAppDetectionOperatorVGreaterThanOrEqual
+ return &v
+}
+
+// Win32LobAppDetectionOperatorPLessThan returns a pointer to Win32LobAppDetectionOperatorVLessThan
+func Win32LobAppDetectionOperatorPLessThan() *Win32LobAppDetectionOperator {
+ v := Win32LobAppDetectionOperatorVLessThan
+ return &v
+}
+
+// Win32LobAppDetectionOperatorPLessThanOrEqual returns a pointer to Win32LobAppDetectionOperatorVLessThanOrEqual
+func Win32LobAppDetectionOperatorPLessThanOrEqual() *Win32LobAppDetectionOperator {
+ v := Win32LobAppDetectionOperatorVLessThanOrEqual
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppFileSystemDetectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppFileSystemDetectionModel.go
new file mode 100644
index 00000000..e6c676d8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppFileSystemDetectionModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppFileSystemDetection undocumented
+type Win32LobAppFileSystemDetection struct {
+ // Win32LobAppDetection is the base model of Win32LobAppFileSystemDetection
+ Win32LobAppDetection
+ // Path The file or folder path to detect Win32 Line of Business (LoB) app
+ Path *string `json:"path,omitempty"`
+ // FileOrFolderName The file or folder name to detect Win32 Line of Business (LoB) app
+ FileOrFolderName *string `json:"fileOrFolderName,omitempty"`
+ // Check32BitOn64System A value indicating whether this file or folder is for checking 32-bit app on 64-bit system
+ Check32BitOn64System *bool `json:"check32BitOn64System,omitempty"`
+ // DetectionType The file system detection type
+ DetectionType *Win32LobAppFileSystemDetectionType `json:"detectionType,omitempty"`
+ // Operator The operator for file or folder detection
+ Operator *Win32LobAppDetectionOperator `json:"operator,omitempty"`
+ // DetectionValue The file or folder detection value
+ DetectionValue *string `json:"detectionValue,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppFileSystemDetectionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppFileSystemDetectionTypeEnum.go
new file mode 100644
index 00000000..afbc368b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppFileSystemDetectionTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppFileSystemDetectionType undocumented
+type Win32LobAppFileSystemDetectionType int
+
+const (
+ // Win32LobAppFileSystemDetectionTypeVNotConfigured undocumented
+ Win32LobAppFileSystemDetectionTypeVNotConfigured Win32LobAppFileSystemDetectionType = 0
+ // Win32LobAppFileSystemDetectionTypeVExists undocumented
+ Win32LobAppFileSystemDetectionTypeVExists Win32LobAppFileSystemDetectionType = 1
+ // Win32LobAppFileSystemDetectionTypeVModifiedDate undocumented
+ Win32LobAppFileSystemDetectionTypeVModifiedDate Win32LobAppFileSystemDetectionType = 2
+ // Win32LobAppFileSystemDetectionTypeVCreatedDate undocumented
+ Win32LobAppFileSystemDetectionTypeVCreatedDate Win32LobAppFileSystemDetectionType = 3
+ // Win32LobAppFileSystemDetectionTypeVVersion undocumented
+ Win32LobAppFileSystemDetectionTypeVVersion Win32LobAppFileSystemDetectionType = 4
+ // Win32LobAppFileSystemDetectionTypeVSizeInMB undocumented
+ Win32LobAppFileSystemDetectionTypeVSizeInMB Win32LobAppFileSystemDetectionType = 5
+ // Win32LobAppFileSystemDetectionTypeVDoesNotExist undocumented
+ Win32LobAppFileSystemDetectionTypeVDoesNotExist Win32LobAppFileSystemDetectionType = 6
+)
+
+// Win32LobAppFileSystemDetectionTypePNotConfigured returns a pointer to Win32LobAppFileSystemDetectionTypeVNotConfigured
+func Win32LobAppFileSystemDetectionTypePNotConfigured() *Win32LobAppFileSystemDetectionType {
+ v := Win32LobAppFileSystemDetectionTypeVNotConfigured
+ return &v
+}
+
+// Win32LobAppFileSystemDetectionTypePExists returns a pointer to Win32LobAppFileSystemDetectionTypeVExists
+func Win32LobAppFileSystemDetectionTypePExists() *Win32LobAppFileSystemDetectionType {
+ v := Win32LobAppFileSystemDetectionTypeVExists
+ return &v
+}
+
+// Win32LobAppFileSystemDetectionTypePModifiedDate returns a pointer to Win32LobAppFileSystemDetectionTypeVModifiedDate
+func Win32LobAppFileSystemDetectionTypePModifiedDate() *Win32LobAppFileSystemDetectionType {
+ v := Win32LobAppFileSystemDetectionTypeVModifiedDate
+ return &v
+}
+
+// Win32LobAppFileSystemDetectionTypePCreatedDate returns a pointer to Win32LobAppFileSystemDetectionTypeVCreatedDate
+func Win32LobAppFileSystemDetectionTypePCreatedDate() *Win32LobAppFileSystemDetectionType {
+ v := Win32LobAppFileSystemDetectionTypeVCreatedDate
+ return &v
+}
+
+// Win32LobAppFileSystemDetectionTypePVersion returns a pointer to Win32LobAppFileSystemDetectionTypeVVersion
+func Win32LobAppFileSystemDetectionTypePVersion() *Win32LobAppFileSystemDetectionType {
+ v := Win32LobAppFileSystemDetectionTypeVVersion
+ return &v
+}
+
+// Win32LobAppFileSystemDetectionTypePSizeInMB returns a pointer to Win32LobAppFileSystemDetectionTypeVSizeInMB
+func Win32LobAppFileSystemDetectionTypePSizeInMB() *Win32LobAppFileSystemDetectionType {
+ v := Win32LobAppFileSystemDetectionTypeVSizeInMB
+ return &v
+}
+
+// Win32LobAppFileSystemDetectionTypePDoesNotExist returns a pointer to Win32LobAppFileSystemDetectionTypeVDoesNotExist
+func Win32LobAppFileSystemDetectionTypePDoesNotExist() *Win32LobAppFileSystemDetectionType {
+ v := Win32LobAppFileSystemDetectionTypeVDoesNotExist
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppFileSystemRequirementModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppFileSystemRequirementModel.go
new file mode 100644
index 00000000..1f257d99
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppFileSystemRequirementModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppFileSystemRequirement undocumented
+type Win32LobAppFileSystemRequirement struct {
+ // Win32LobAppRequirement is the base model of Win32LobAppFileSystemRequirement
+ Win32LobAppRequirement
+ // Path The file or folder path to detect Win32 Line of Business (LoB) app
+ Path *string `json:"path,omitempty"`
+ // FileOrFolderName The file or folder name to detect Win32 Line of Business (LoB) app
+ FileOrFolderName *string `json:"fileOrFolderName,omitempty"`
+ // Check32BitOn64System A value indicating whether this file or folder is for checking 32-bit app on 64-bit system
+ Check32BitOn64System *bool `json:"check32BitOn64System,omitempty"`
+ // DetectionType The file system detection type
+ DetectionType *Win32LobAppFileSystemDetectionType `json:"detectionType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppInstallExperienceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppInstallExperienceModel.go
new file mode 100644
index 00000000..0e00a6ca
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppInstallExperienceModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppInstallExperience undocumented
+type Win32LobAppInstallExperience struct {
+ // Object is the base model of Win32LobAppInstallExperience
+ Object
+ // RunAsAccount Indicates the type of execution context the app runs in.
+ RunAsAccount *RunAsAccountType `json:"runAsAccount,omitempty"`
+ // DeviceRestartBehavior Device restart behavior.
+ DeviceRestartBehavior *Win32LobAppRestartBehavior `json:"deviceRestartBehavior,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppModel.go
new file mode 100644
index 00000000..45c04807
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppModel.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobApp Contains properties and inherited properties for Win32 apps.
+type Win32LobApp struct {
+ // MobileLobApp is the base model of Win32LobApp
+ MobileLobApp
+ // InstallCommandLine The command line to install this app
+ InstallCommandLine *string `json:"installCommandLine,omitempty"`
+ // UninstallCommandLine The command line to uninstall this app
+ UninstallCommandLine *string `json:"uninstallCommandLine,omitempty"`
+ // ApplicableArchitectures The Windows architecture(s) for which this app can run on.
+ ApplicableArchitectures *WindowsArchitecture `json:"applicableArchitectures,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *WindowsMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+ // MinimumFreeDiskSpaceInMB The value for the minimum free disk space which is required to install this app.
+ MinimumFreeDiskSpaceInMB *int `json:"minimumFreeDiskSpaceInMB,omitempty"`
+ // MinimumMemoryInMB The value for the minimum physical memory which is required to install this app.
+ MinimumMemoryInMB *int `json:"minimumMemoryInMB,omitempty"`
+ // MinimumNumberOfProcessors The value for the minimum number of processors which is required to install this app.
+ MinimumNumberOfProcessors *int `json:"minimumNumberOfProcessors,omitempty"`
+ // MinimumCPUSpeedInMHz The value for the minimum CPU speed which is required to install this app.
+ MinimumCPUSpeedInMHz *int `json:"minimumCpuSpeedInMHz,omitempty"`
+ // DetectionRules The detection rules to detect Win32 Line of Business (LoB) app.
+ DetectionRules []Win32LobAppDetection `json:"detectionRules,omitempty"`
+ // RequirementRules The requirement rules to detect Win32 Line of Business (LoB) app.
+ RequirementRules []Win32LobAppRequirement `json:"requirementRules,omitempty"`
+ // InstallExperience The install experience for this app.
+ InstallExperience *Win32LobAppInstallExperience `json:"installExperience,omitempty"`
+ // ReturnCodes The return codes for post installation behavior.
+ ReturnCodes []Win32LobAppReturnCode `json:"returnCodes,omitempty"`
+ // MsiInformation The MSI details if this Win32 app is an MSI app.
+ MsiInformation *Win32LobAppMsiInformation `json:"msiInformation,omitempty"`
+ // SetupFilePath The relative path of the setup file in the encrypted Win32LobApp package.
+ SetupFilePath *string `json:"setupFilePath,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppMsiInformationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppMsiInformationModel.go
new file mode 100644
index 00000000..3d131494
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppMsiInformationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppMsiInformation undocumented
+type Win32LobAppMsiInformation struct {
+ // Object is the base model of Win32LobAppMsiInformation
+ Object
+ // ProductCode The MSI product code.
+ ProductCode *string `json:"productCode,omitempty"`
+ // ProductVersion The MSI product version.
+ ProductVersion *string `json:"productVersion,omitempty"`
+ // UpgradeCode The MSI upgrade code.
+ UpgradeCode *string `json:"upgradeCode,omitempty"`
+ // RequiresReboot Whether the MSI app requires the machine to reboot to complete installation.
+ RequiresReboot *bool `json:"requiresReboot,omitempty"`
+ // PackageType The MSI package type.
+ PackageType *Win32LobAppMsiPackageType `json:"packageType,omitempty"`
+ // ProductName The MSI product name.
+ ProductName *string `json:"productName,omitempty"`
+ // Publisher The MSI publisher.
+ Publisher *string `json:"publisher,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppMsiPackageTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppMsiPackageTypeEnum.go
new file mode 100644
index 00000000..f7659882
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppMsiPackageTypeEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppMsiPackageType undocumented
+type Win32LobAppMsiPackageType int
+
+const (
+ // Win32LobAppMsiPackageTypeVPerMachine undocumented
+ Win32LobAppMsiPackageTypeVPerMachine Win32LobAppMsiPackageType = 0
+ // Win32LobAppMsiPackageTypeVPerUser undocumented
+ Win32LobAppMsiPackageTypeVPerUser Win32LobAppMsiPackageType = 1
+ // Win32LobAppMsiPackageTypeVDualPurpose undocumented
+ Win32LobAppMsiPackageTypeVDualPurpose Win32LobAppMsiPackageType = 2
+)
+
+// Win32LobAppMsiPackageTypePPerMachine returns a pointer to Win32LobAppMsiPackageTypeVPerMachine
+func Win32LobAppMsiPackageTypePPerMachine() *Win32LobAppMsiPackageType {
+ v := Win32LobAppMsiPackageTypeVPerMachine
+ return &v
+}
+
+// Win32LobAppMsiPackageTypePPerUser returns a pointer to Win32LobAppMsiPackageTypeVPerUser
+func Win32LobAppMsiPackageTypePPerUser() *Win32LobAppMsiPackageType {
+ v := Win32LobAppMsiPackageTypeVPerUser
+ return &v
+}
+
+// Win32LobAppMsiPackageTypePDualPurpose returns a pointer to Win32LobAppMsiPackageTypeVDualPurpose
+func Win32LobAppMsiPackageTypePDualPurpose() *Win32LobAppMsiPackageType {
+ v := Win32LobAppMsiPackageTypeVDualPurpose
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppNotificationEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppNotificationEnum.go
new file mode 100644
index 00000000..518a7c30
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppNotificationEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppNotification undocumented
+type Win32LobAppNotification int
+
+const (
+ // Win32LobAppNotificationVShowAll undocumented
+ Win32LobAppNotificationVShowAll Win32LobAppNotification = 0
+ // Win32LobAppNotificationVShowReboot undocumented
+ Win32LobAppNotificationVShowReboot Win32LobAppNotification = 1
+ // Win32LobAppNotificationVHideAll undocumented
+ Win32LobAppNotificationVHideAll Win32LobAppNotification = 2
+)
+
+// Win32LobAppNotificationPShowAll returns a pointer to Win32LobAppNotificationVShowAll
+func Win32LobAppNotificationPShowAll() *Win32LobAppNotification {
+ v := Win32LobAppNotificationVShowAll
+ return &v
+}
+
+// Win32LobAppNotificationPShowReboot returns a pointer to Win32LobAppNotificationVShowReboot
+func Win32LobAppNotificationPShowReboot() *Win32LobAppNotification {
+ v := Win32LobAppNotificationVShowReboot
+ return &v
+}
+
+// Win32LobAppNotificationPHideAll returns a pointer to Win32LobAppNotificationVHideAll
+func Win32LobAppNotificationPHideAll() *Win32LobAppNotification {
+ v := Win32LobAppNotificationVHideAll
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionModel.go
new file mode 100644
index 00000000..acd74644
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppPowerShellScriptDetection undocumented
+type Win32LobAppPowerShellScriptDetection struct {
+ // Win32LobAppDetection is the base model of Win32LobAppPowerShellScriptDetection
+ Win32LobAppDetection
+ // EnforceSignatureCheck A value indicating whether signature check is enforced
+ EnforceSignatureCheck *bool `json:"enforceSignatureCheck,omitempty"`
+ // RunAs32Bit A value indicating whether this script should run as 32-bit
+ RunAs32Bit *bool `json:"runAs32Bit,omitempty"`
+ // ScriptContent The base64 encoded script content to detect Win32 Line of Business (LoB) app
+ ScriptContent *string `json:"scriptContent,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionTypeEnum.go
new file mode 100644
index 00000000..eb775d39
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppPowerShellScriptDetectionTypeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppPowerShellScriptDetectionType undocumented
+type Win32LobAppPowerShellScriptDetectionType int
+
+const (
+ // Win32LobAppPowerShellScriptDetectionTypeVNotConfigured undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVNotConfigured Win32LobAppPowerShellScriptDetectionType = 0
+ // Win32LobAppPowerShellScriptDetectionTypeVString undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVString Win32LobAppPowerShellScriptDetectionType = 1
+ // Win32LobAppPowerShellScriptDetectionTypeVDateTime undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVDateTime Win32LobAppPowerShellScriptDetectionType = 2
+ // Win32LobAppPowerShellScriptDetectionTypeVInteger undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVInteger Win32LobAppPowerShellScriptDetectionType = 3
+ // Win32LobAppPowerShellScriptDetectionTypeVFloat undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVFloat Win32LobAppPowerShellScriptDetectionType = 4
+ // Win32LobAppPowerShellScriptDetectionTypeVVersion undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVVersion Win32LobAppPowerShellScriptDetectionType = 5
+ // Win32LobAppPowerShellScriptDetectionTypeVBoolean undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVBoolean Win32LobAppPowerShellScriptDetectionType = 6
+)
+
+// Win32LobAppPowerShellScriptDetectionTypePNotConfigured returns a pointer to Win32LobAppPowerShellScriptDetectionTypeVNotConfigured
+func Win32LobAppPowerShellScriptDetectionTypePNotConfigured() *Win32LobAppPowerShellScriptDetectionType {
+ v := Win32LobAppPowerShellScriptDetectionTypeVNotConfigured
+ return &v
+}
+
+// Win32LobAppPowerShellScriptDetectionTypePString returns a pointer to Win32LobAppPowerShellScriptDetectionTypeVString
+func Win32LobAppPowerShellScriptDetectionTypePString() *Win32LobAppPowerShellScriptDetectionType {
+ v := Win32LobAppPowerShellScriptDetectionTypeVString
+ return &v
+}
+
+// Win32LobAppPowerShellScriptDetectionTypePDateTime returns a pointer to Win32LobAppPowerShellScriptDetectionTypeVDateTime
+func Win32LobAppPowerShellScriptDetectionTypePDateTime() *Win32LobAppPowerShellScriptDetectionType {
+ v := Win32LobAppPowerShellScriptDetectionTypeVDateTime
+ return &v
+}
+
+// Win32LobAppPowerShellScriptDetectionTypePInteger returns a pointer to Win32LobAppPowerShellScriptDetectionTypeVInteger
+func Win32LobAppPowerShellScriptDetectionTypePInteger() *Win32LobAppPowerShellScriptDetectionType {
+ v := Win32LobAppPowerShellScriptDetectionTypeVInteger
+ return &v
+}
+
+// Win32LobAppPowerShellScriptDetectionTypePFloat returns a pointer to Win32LobAppPowerShellScriptDetectionTypeVFloat
+func Win32LobAppPowerShellScriptDetectionTypePFloat() *Win32LobAppPowerShellScriptDetectionType {
+ v := Win32LobAppPowerShellScriptDetectionTypeVFloat
+ return &v
+}
+
+// Win32LobAppPowerShellScriptDetectionTypePVersion returns a pointer to Win32LobAppPowerShellScriptDetectionTypeVVersion
+func Win32LobAppPowerShellScriptDetectionTypePVersion() *Win32LobAppPowerShellScriptDetectionType {
+ v := Win32LobAppPowerShellScriptDetectionTypeVVersion
+ return &v
+}
+
+// Win32LobAppPowerShellScriptDetectionTypePBoolean returns a pointer to Win32LobAppPowerShellScriptDetectionTypeVBoolean
+func Win32LobAppPowerShellScriptDetectionTypePBoolean() *Win32LobAppPowerShellScriptDetectionType {
+ v := Win32LobAppPowerShellScriptDetectionTypeVBoolean
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppPowerShellScriptRequirementModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppPowerShellScriptRequirementModel.go
new file mode 100644
index 00000000..4eff638b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppPowerShellScriptRequirementModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppPowerShellScriptRequirement undocumented
+type Win32LobAppPowerShellScriptRequirement struct {
+ // Win32LobAppRequirement is the base model of Win32LobAppPowerShellScriptRequirement
+ Win32LobAppRequirement
+ // DisplayName The unique display name for this rule
+ DisplayName *string `json:"displayName,omitempty"`
+ // EnforceSignatureCheck A value indicating whether signature check is enforced
+ EnforceSignatureCheck *bool `json:"enforceSignatureCheck,omitempty"`
+ // RunAs32Bit A value indicating whether this script should run as 32-bit
+ RunAs32Bit *bool `json:"runAs32Bit,omitempty"`
+ // RunAsAccount Indicates the type of execution context the script runs in.
+ RunAsAccount *RunAsAccountType `json:"runAsAccount,omitempty"`
+ // ScriptContent The base64 encoded script content to detect Win32 Line of Business (LoB) app
+ ScriptContent *string `json:"scriptContent,omitempty"`
+ // DetectionType The detection type for script output
+ DetectionType *Win32LobAppPowerShellScriptDetectionType `json:"detectionType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppProductCodeDetectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppProductCodeDetectionModel.go
new file mode 100644
index 00000000..f385f93a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppProductCodeDetectionModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppProductCodeDetection undocumented
+type Win32LobAppProductCodeDetection struct {
+ // Win32LobAppDetection is the base model of Win32LobAppProductCodeDetection
+ Win32LobAppDetection
+ // ProductCode The product code of Win32 Line of Business (LoB) app.
+ ProductCode *string `json:"productCode,omitempty"`
+ // ProductVersionOperator The operator to detect product version.
+ ProductVersionOperator *Win32LobAppDetectionOperator `json:"productVersionOperator,omitempty"`
+ // ProductVersion The product version of Win32 Line of Business (LoB) app.
+ ProductVersion *string `json:"productVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRegistryDetectionModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRegistryDetectionModel.go
new file mode 100644
index 00000000..d17304db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRegistryDetectionModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppRegistryDetection undocumented
+type Win32LobAppRegistryDetection struct {
+ // Win32LobAppDetection is the base model of Win32LobAppRegistryDetection
+ Win32LobAppDetection
+ // Check32BitOn64System A value indicating whether this registry path is for checking 32-bit app on 64-bit system
+ Check32BitOn64System *bool `json:"check32BitOn64System,omitempty"`
+ // KeyPath The registry key path to detect Win32 Line of Business (LoB) app
+ KeyPath *string `json:"keyPath,omitempty"`
+ // ValueName The registry value name
+ ValueName *string `json:"valueName,omitempty"`
+ // DetectionType The registry data detection type
+ DetectionType *Win32LobAppRegistryDetectionType `json:"detectionType,omitempty"`
+ // Operator The operator for registry data detection
+ Operator *Win32LobAppDetectionOperator `json:"operator,omitempty"`
+ // DetectionValue The registry detection value
+ DetectionValue *string `json:"detectionValue,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRegistryDetectionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRegistryDetectionTypeEnum.go
new file mode 100644
index 00000000..0a7256aa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRegistryDetectionTypeEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppRegistryDetectionType undocumented
+type Win32LobAppRegistryDetectionType int
+
+const (
+ // Win32LobAppRegistryDetectionTypeVNotConfigured undocumented
+ Win32LobAppRegistryDetectionTypeVNotConfigured Win32LobAppRegistryDetectionType = 0
+ // Win32LobAppRegistryDetectionTypeVExists undocumented
+ Win32LobAppRegistryDetectionTypeVExists Win32LobAppRegistryDetectionType = 1
+ // Win32LobAppRegistryDetectionTypeVDoesNotExist undocumented
+ Win32LobAppRegistryDetectionTypeVDoesNotExist Win32LobAppRegistryDetectionType = 2
+ // Win32LobAppRegistryDetectionTypeVString undocumented
+ Win32LobAppRegistryDetectionTypeVString Win32LobAppRegistryDetectionType = 3
+ // Win32LobAppRegistryDetectionTypeVInteger undocumented
+ Win32LobAppRegistryDetectionTypeVInteger Win32LobAppRegistryDetectionType = 4
+ // Win32LobAppRegistryDetectionTypeVVersion undocumented
+ Win32LobAppRegistryDetectionTypeVVersion Win32LobAppRegistryDetectionType = 5
+)
+
+// Win32LobAppRegistryDetectionTypePNotConfigured returns a pointer to Win32LobAppRegistryDetectionTypeVNotConfigured
+func Win32LobAppRegistryDetectionTypePNotConfigured() *Win32LobAppRegistryDetectionType {
+ v := Win32LobAppRegistryDetectionTypeVNotConfigured
+ return &v
+}
+
+// Win32LobAppRegistryDetectionTypePExists returns a pointer to Win32LobAppRegistryDetectionTypeVExists
+func Win32LobAppRegistryDetectionTypePExists() *Win32LobAppRegistryDetectionType {
+ v := Win32LobAppRegistryDetectionTypeVExists
+ return &v
+}
+
+// Win32LobAppRegistryDetectionTypePDoesNotExist returns a pointer to Win32LobAppRegistryDetectionTypeVDoesNotExist
+func Win32LobAppRegistryDetectionTypePDoesNotExist() *Win32LobAppRegistryDetectionType {
+ v := Win32LobAppRegistryDetectionTypeVDoesNotExist
+ return &v
+}
+
+// Win32LobAppRegistryDetectionTypePString returns a pointer to Win32LobAppRegistryDetectionTypeVString
+func Win32LobAppRegistryDetectionTypePString() *Win32LobAppRegistryDetectionType {
+ v := Win32LobAppRegistryDetectionTypeVString
+ return &v
+}
+
+// Win32LobAppRegistryDetectionTypePInteger returns a pointer to Win32LobAppRegistryDetectionTypeVInteger
+func Win32LobAppRegistryDetectionTypePInteger() *Win32LobAppRegistryDetectionType {
+ v := Win32LobAppRegistryDetectionTypeVInteger
+ return &v
+}
+
+// Win32LobAppRegistryDetectionTypePVersion returns a pointer to Win32LobAppRegistryDetectionTypeVVersion
+func Win32LobAppRegistryDetectionTypePVersion() *Win32LobAppRegistryDetectionType {
+ v := Win32LobAppRegistryDetectionTypeVVersion
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRegistryRequirementModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRegistryRequirementModel.go
new file mode 100644
index 00000000..2fd4f450
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRegistryRequirementModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppRegistryRequirement undocumented
+type Win32LobAppRegistryRequirement struct {
+ // Win32LobAppRequirement is the base model of Win32LobAppRegistryRequirement
+ Win32LobAppRequirement
+ // Check32BitOn64System A value indicating whether this registry path is for checking 32-bit app on 64-bit system
+ Check32BitOn64System *bool `json:"check32BitOn64System,omitempty"`
+ // KeyPath The registry key path to detect Win32 Line of Business (LoB) app
+ KeyPath *string `json:"keyPath,omitempty"`
+ // ValueName The registry value name
+ ValueName *string `json:"valueName,omitempty"`
+ // DetectionType The registry data detection type
+ DetectionType *Win32LobAppRegistryDetectionType `json:"detectionType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRequirementModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRequirementModel.go
new file mode 100644
index 00000000..cc786285
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRequirementModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppRequirement undocumented
+type Win32LobAppRequirement struct {
+ // Object is the base model of Win32LobAppRequirement
+ Object
+ // Operator The operator for detection
+ Operator *Win32LobAppDetectionOperator `json:"operator,omitempty"`
+ // DetectionValue The detection value
+ DetectionValue *string `json:"detectionValue,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRestartBehaviorEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRestartBehaviorEnum.go
new file mode 100644
index 00000000..02d83512
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRestartBehaviorEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppRestartBehavior undocumented
+type Win32LobAppRestartBehavior int
+
+const (
+ // Win32LobAppRestartBehaviorVBasedOnReturnCode undocumented
+ Win32LobAppRestartBehaviorVBasedOnReturnCode Win32LobAppRestartBehavior = 0
+ // Win32LobAppRestartBehaviorVAllow undocumented
+ Win32LobAppRestartBehaviorVAllow Win32LobAppRestartBehavior = 1
+ // Win32LobAppRestartBehaviorVSuppress undocumented
+ Win32LobAppRestartBehaviorVSuppress Win32LobAppRestartBehavior = 2
+ // Win32LobAppRestartBehaviorVForce undocumented
+ Win32LobAppRestartBehaviorVForce Win32LobAppRestartBehavior = 3
+)
+
+// Win32LobAppRestartBehaviorPBasedOnReturnCode returns a pointer to Win32LobAppRestartBehaviorVBasedOnReturnCode
+func Win32LobAppRestartBehaviorPBasedOnReturnCode() *Win32LobAppRestartBehavior {
+ v := Win32LobAppRestartBehaviorVBasedOnReturnCode
+ return &v
+}
+
+// Win32LobAppRestartBehaviorPAllow returns a pointer to Win32LobAppRestartBehaviorVAllow
+func Win32LobAppRestartBehaviorPAllow() *Win32LobAppRestartBehavior {
+ v := Win32LobAppRestartBehaviorVAllow
+ return &v
+}
+
+// Win32LobAppRestartBehaviorPSuppress returns a pointer to Win32LobAppRestartBehaviorVSuppress
+func Win32LobAppRestartBehaviorPSuppress() *Win32LobAppRestartBehavior {
+ v := Win32LobAppRestartBehaviorVSuppress
+ return &v
+}
+
+// Win32LobAppRestartBehaviorPForce returns a pointer to Win32LobAppRestartBehaviorVForce
+func Win32LobAppRestartBehaviorPForce() *Win32LobAppRestartBehavior {
+ v := Win32LobAppRestartBehaviorVForce
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRestartSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRestartSettingsModel.go
new file mode 100644
index 00000000..75460735
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppRestartSettingsModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppRestartSettings undocumented
+type Win32LobAppRestartSettings struct {
+ // Object is the base model of Win32LobAppRestartSettings
+ Object
+ // GracePeriodInMinutes The number of minutes to wait before restarting the device after an app installation.
+ GracePeriodInMinutes *int `json:"gracePeriodInMinutes,omitempty"`
+ // CountdownDisplayBeforeRestartInMinutes The number of minutes before the restart time to display the countdown dialog for pending restarts.
+ CountdownDisplayBeforeRestartInMinutes *int `json:"countdownDisplayBeforeRestartInMinutes,omitempty"`
+ // RestartNotificationSnoozeDurationInMinutes The number of minutes to snooze the restart notification dialog when the snooze button is selected.
+ RestartNotificationSnoozeDurationInMinutes *int `json:"restartNotificationSnoozeDurationInMinutes,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppReturnCodeModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppReturnCodeModel.go
new file mode 100644
index 00000000..d49ebc33
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppReturnCodeModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppReturnCode undocumented
+type Win32LobAppReturnCode struct {
+ // Object is the base model of Win32LobAppReturnCode
+ Object
+ // ReturnCode Return code.
+ ReturnCode *int `json:"returnCode,omitempty"`
+ // Type The type of return code.
+ Type *Win32LobAppReturnCodeType `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppReturnCodeTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppReturnCodeTypeEnum.go
new file mode 100644
index 00000000..bbd5b18e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Win32LobAppReturnCodeTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppReturnCodeType undocumented
+type Win32LobAppReturnCodeType int
+
+const (
+ // Win32LobAppReturnCodeTypeVFailed undocumented
+ Win32LobAppReturnCodeTypeVFailed Win32LobAppReturnCodeType = 0
+ // Win32LobAppReturnCodeTypeVSuccess undocumented
+ Win32LobAppReturnCodeTypeVSuccess Win32LobAppReturnCodeType = 1
+ // Win32LobAppReturnCodeTypeVSoftReboot undocumented
+ Win32LobAppReturnCodeTypeVSoftReboot Win32LobAppReturnCodeType = 2
+ // Win32LobAppReturnCodeTypeVHardReboot undocumented
+ Win32LobAppReturnCodeTypeVHardReboot Win32LobAppReturnCodeType = 3
+ // Win32LobAppReturnCodeTypeVRetry undocumented
+ Win32LobAppReturnCodeTypeVRetry Win32LobAppReturnCodeType = 4
+)
+
+// Win32LobAppReturnCodeTypePFailed returns a pointer to Win32LobAppReturnCodeTypeVFailed
+func Win32LobAppReturnCodeTypePFailed() *Win32LobAppReturnCodeType {
+ v := Win32LobAppReturnCodeTypeVFailed
+ return &v
+}
+
+// Win32LobAppReturnCodeTypePSuccess returns a pointer to Win32LobAppReturnCodeTypeVSuccess
+func Win32LobAppReturnCodeTypePSuccess() *Win32LobAppReturnCodeType {
+ v := Win32LobAppReturnCodeTypeVSuccess
+ return &v
+}
+
+// Win32LobAppReturnCodeTypePSoftReboot returns a pointer to Win32LobAppReturnCodeTypeVSoftReboot
+func Win32LobAppReturnCodeTypePSoftReboot() *Win32LobAppReturnCodeType {
+ v := Win32LobAppReturnCodeTypeVSoftReboot
+ return &v
+}
+
+// Win32LobAppReturnCodeTypePHardReboot returns a pointer to Win32LobAppReturnCodeTypeVHardReboot
+func Win32LobAppReturnCodeTypePHardReboot() *Win32LobAppReturnCodeType {
+ v := Win32LobAppReturnCodeTypeVHardReboot
+ return &v
+}
+
+// Win32LobAppReturnCodeTypePRetry returns a pointer to Win32LobAppReturnCodeTypeVRetry
+func Win32LobAppReturnCodeTypePRetry() *Win32LobAppReturnCodeType {
+ v := Win32LobAppReturnCodeTypeVRetry
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10AppTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10AppTypeEnum.go
new file mode 100644
index 00000000..405a390b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10AppTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10AppType undocumented
+type Windows10AppType int
+
+const (
+ // Windows10AppTypeVDesktop undocumented
+ Windows10AppTypeVDesktop Windows10AppType = 0
+ // Windows10AppTypeVUniversal undocumented
+ Windows10AppTypeVUniversal Windows10AppType = 1
+)
+
+// Windows10AppTypePDesktop returns a pointer to Windows10AppTypeVDesktop
+func Windows10AppTypePDesktop() *Windows10AppType {
+ v := Windows10AppTypeVDesktop
+ return &v
+}
+
+// Windows10AppTypePUniversal returns a pointer to Windows10AppTypeVUniversal
+func Windows10AppTypePUniversal() *Windows10AppType {
+ v := Windows10AppTypeVUniversal
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10AppsForceUpdateScheduleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10AppsForceUpdateScheduleModel.go
new file mode 100644
index 00000000..c4e2ef99
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10AppsForceUpdateScheduleModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Windows10AppsForceUpdateSchedule undocumented
+type Windows10AppsForceUpdateSchedule struct {
+ // Object is the base model of Windows10AppsForceUpdateSchedule
+ Object
+ // StartDateTime The start time for the force restart.
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // Recurrence Recurrence schedule.
+ Recurrence *Windows10AppsUpdateRecurrence `json:"recurrence,omitempty"`
+ // RunImmediatelyIfAfterStartDateTime If true, runs the task immediately if StartDateTime is in the past, else, runs at the next recurrence.
+ RunImmediatelyIfAfterStartDateTime *bool `json:"runImmediatelyIfAfterStartDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10AppsUpdateRecurrenceEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10AppsUpdateRecurrenceEnum.go
new file mode 100644
index 00000000..3c930ef3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10AppsUpdateRecurrenceEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10AppsUpdateRecurrence undocumented
+type Windows10AppsUpdateRecurrence int
+
+const (
+ // Windows10AppsUpdateRecurrenceVNone undocumented
+ Windows10AppsUpdateRecurrenceVNone Windows10AppsUpdateRecurrence = 0
+ // Windows10AppsUpdateRecurrenceVDaily undocumented
+ Windows10AppsUpdateRecurrenceVDaily Windows10AppsUpdateRecurrence = 1
+ // Windows10AppsUpdateRecurrenceVWeekly undocumented
+ Windows10AppsUpdateRecurrenceVWeekly Windows10AppsUpdateRecurrence = 2
+ // Windows10AppsUpdateRecurrenceVMonthly undocumented
+ Windows10AppsUpdateRecurrenceVMonthly Windows10AppsUpdateRecurrence = 3
+)
+
+// Windows10AppsUpdateRecurrencePNone returns a pointer to Windows10AppsUpdateRecurrenceVNone
+func Windows10AppsUpdateRecurrencePNone() *Windows10AppsUpdateRecurrence {
+ v := Windows10AppsUpdateRecurrenceVNone
+ return &v
+}
+
+// Windows10AppsUpdateRecurrencePDaily returns a pointer to Windows10AppsUpdateRecurrenceVDaily
+func Windows10AppsUpdateRecurrencePDaily() *Windows10AppsUpdateRecurrence {
+ v := Windows10AppsUpdateRecurrenceVDaily
+ return &v
+}
+
+// Windows10AppsUpdateRecurrencePWeekly returns a pointer to Windows10AppsUpdateRecurrenceVWeekly
+func Windows10AppsUpdateRecurrencePWeekly() *Windows10AppsUpdateRecurrence {
+ v := Windows10AppsUpdateRecurrenceVWeekly
+ return &v
+}
+
+// Windows10AppsUpdateRecurrencePMonthly returns a pointer to Windows10AppsUpdateRecurrenceVMonthly
+func Windows10AppsUpdateRecurrencePMonthly() *Windows10AppsUpdateRecurrence {
+ v := Windows10AppsUpdateRecurrenceVMonthly
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10AssociatedAppsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10AssociatedAppsModel.go
new file mode 100644
index 00000000..2d24a658
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10AssociatedAppsModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10AssociatedApps undocumented
+type Windows10AssociatedApps struct {
+ // Object is the base model of Windows10AssociatedApps
+ Object
+ // AppType Application type.
+ AppType *Windows10AppType `json:"appType,omitempty"`
+ // Identifier Identifier.
+ Identifier *string `json:"identifier,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10CertificateProfileBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10CertificateProfileBaseModel.go
new file mode 100644
index 00000000..e7440ddb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10CertificateProfileBaseModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10CertificateProfileBase Base class for Windows 10 certificate profile.
+type Windows10CertificateProfileBase struct {
+ // WindowsCertificateProfileBase is the base model of Windows10CertificateProfileBase
+ WindowsCertificateProfileBase
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10CompliancePolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10CompliancePolicyModel.go
new file mode 100644
index 00000000..04b9cb8c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10CompliancePolicyModel.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10CompliancePolicy This class contains compliance settings for Windows 10.
+type Windows10CompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of Windows10CompliancePolicy
+ DeviceCompliancePolicy
+ // PasswordRequired Require a password to unlock Windows device.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordBlockSimple Indicates whether or not to block simple password.
+ PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"`
+ // PasswordRequiredToUnlockFromIdle Require a password to unlock an idle device.
+ PasswordRequiredToUnlockFromIdle *bool `json:"passwordRequiredToUnlockFromIdle,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordExpirationDays The password expiration in days.
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength The minimum password length.
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinimumCharacterSetCount The number of character sets required in the password.
+ PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"`
+ // PasswordRequiredType The required password type.
+ PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordPreviousPasswordBlockCount The number of previous passwords to prevent re-use of.
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // RequireHealthyDeviceReport Require devices to be reported as healthy by Windows Device Health Attestation.
+ RequireHealthyDeviceReport *bool `json:"requireHealthyDeviceReport,omitempty"`
+ // OsMinimumVersion Minimum Windows 10 version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum Windows 10 version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // MobileOsMinimumVersion Minimum Windows Phone version.
+ MobileOsMinimumVersion *string `json:"mobileOsMinimumVersion,omitempty"`
+ // MobileOsMaximumVersion Maximum Windows Phone version.
+ MobileOsMaximumVersion *string `json:"mobileOsMaximumVersion,omitempty"`
+ // EarlyLaunchAntiMalwareDriverEnabled Require devices to be reported as healthy by Windows Device Health Attestation - early launch antimalware driver is enabled.
+ EarlyLaunchAntiMalwareDriverEnabled *bool `json:"earlyLaunchAntiMalwareDriverEnabled,omitempty"`
+ // BitLockerEnabled Require devices to be reported healthy by Windows Device Health Attestation - bit locker is enabled
+ BitLockerEnabled *bool `json:"bitLockerEnabled,omitempty"`
+ // SecureBootEnabled Require devices to be reported as healthy by Windows Device Health Attestation - secure boot is enabled.
+ SecureBootEnabled *bool `json:"secureBootEnabled,omitempty"`
+ // CodeIntegrityEnabled Require devices to be reported as healthy by Windows Device Health Attestation.
+ CodeIntegrityEnabled *bool `json:"codeIntegrityEnabled,omitempty"`
+ // StorageRequireEncryption Require encryption on windows devices.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+ // ActiveFirewallRequired Require active firewall on Windows devices.
+ ActiveFirewallRequired *bool `json:"activeFirewallRequired,omitempty"`
+ // DefenderEnabled Require Windows Defender Antimalware on Windows devices.
+ DefenderEnabled *bool `json:"defenderEnabled,omitempty"`
+ // DefenderVersion Require Windows Defender Antimalware minimum version on Windows devices.
+ DefenderVersion *string `json:"defenderVersion,omitempty"`
+ // SignatureOutOfDate Require Windows Defender Antimalware Signature to be up to date on Windows devices.
+ SignatureOutOfDate *bool `json:"signatureOutOfDate,omitempty"`
+ // RtpEnabled Require Windows Defender Antimalware Real-Time Protection on Windows devices.
+ RtpEnabled *bool `json:"rtpEnabled,omitempty"`
+ // AntivirusRequired Require any Antivirus solution registered with Windows Decurity Center to be on and monitoring (e.g. Symantec, Windows Defender).
+ AntivirusRequired *bool `json:"antivirusRequired,omitempty"`
+ // AntiSpywareRequired Require any AntiSpyware solution registered with Windows Decurity Center to be on and monitoring (e.g. Symantec, Windows Defender).
+ AntiSpywareRequired *bool `json:"antiSpywareRequired,omitempty"`
+ // ValidOperatingSystemBuildRanges The valid operating system build ranges on Windows devices. This collection can contain a maximum of 10000 elements.
+ ValidOperatingSystemBuildRanges []OperatingSystemVersionRange `json:"validOperatingSystemBuildRanges,omitempty"`
+ // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection.
+ DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"`
+ // DeviceThreatProtectionRequiredSecurityLevel Require Device Threat Protection minimum risk level to report noncompliance.
+ DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"`
+ // ConfigurationManagerComplianceRequired Require to consider SCCM Compliance state into consideration for Intune Compliance State.
+ ConfigurationManagerComplianceRequired *bool `json:"configurationManagerComplianceRequired,omitempty"`
+ // TpmRequired Require Trusted Platform Module(TPM) to be present.
+ TpmRequired *bool `json:"tpmRequired,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10CustomConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10CustomConfigurationModel.go
new file mode 100644
index 00000000..34bc2c72
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10CustomConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10CustomConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the windows10CustomConfiguration resource.
+type Windows10CustomConfiguration struct {
+ // DeviceConfiguration is the base model of Windows10CustomConfiguration
+ DeviceConfiguration
+ // OMASettings OMA settings. This collection can contain a maximum of 1000 elements.
+ OMASettings []OMASetting `json:"omaSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10DeviceFirmwareConfigurationInterfaceModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10DeviceFirmwareConfigurationInterfaceModel.go
new file mode 100644
index 00000000..713e6777
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10DeviceFirmwareConfigurationInterfaceModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10DeviceFirmwareConfigurationInterface Graph properties for Device Firmware Configuration Interface
+type Windows10DeviceFirmwareConfigurationInterface struct {
+ // DeviceConfiguration is the base model of Windows10DeviceFirmwareConfigurationInterface
+ DeviceConfiguration
+ // ChangeUefiSettingsPermission Defines the permission level granted to users to change UEFI settings.
+ ChangeUefiSettingsPermission *ChangeUefiSettingsPermission `json:"changeUefiSettingsPermission,omitempty"`
+ // VirtualizationOfCPUAndIO Defines whether CPU and IO virtualization is enabled.
+ VirtualizationOfCPUAndIO *Enablement `json:"virtualizationOfCpuAndIO,omitempty"`
+ // Cameras Defines whether built-in cameras are enabled.
+ Cameras *Enablement `json:"cameras,omitempty"`
+ // MicrophonesAndSpeakers Defines whether built-in microphones or speakers are enabled.
+ MicrophonesAndSpeakers *Enablement `json:"microphonesAndSpeakers,omitempty"`
+ // Radios Defines whether built-in radios e.g. WIFI, NFC, Bluetooth, are enabled.
+ Radios *Enablement `json:"radios,omitempty"`
+ // BootFromExternalMedia Defines whether a user is allowed to boot from external media.
+ BootFromExternalMedia *Enablement `json:"bootFromExternalMedia,omitempty"`
+ // BootFromBuiltInNetworkAdapters Defines whether a user is allowed to boot from built-in network adapters.
+ BootFromBuiltInNetworkAdapters *Enablement `json:"bootFromBuiltInNetworkAdapters,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10DeviceModeTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10DeviceModeTypeEnum.go
new file mode 100644
index 00000000..a7f29e41
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10DeviceModeTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10DeviceModeType undocumented
+type Windows10DeviceModeType int
+
+const (
+ // Windows10DeviceModeTypeVStandardConfiguration undocumented
+ Windows10DeviceModeTypeVStandardConfiguration Windows10DeviceModeType = 0
+ // Windows10DeviceModeTypeVSModeConfiguration undocumented
+ Windows10DeviceModeTypeVSModeConfiguration Windows10DeviceModeType = 1
+)
+
+// Windows10DeviceModeTypePStandardConfiguration returns a pointer to Windows10DeviceModeTypeVStandardConfiguration
+func Windows10DeviceModeTypePStandardConfiguration() *Windows10DeviceModeType {
+ v := Windows10DeviceModeTypeVStandardConfiguration
+ return &v
+}
+
+// Windows10DeviceModeTypePSModeConfiguration returns a pointer to Windows10DeviceModeTypeVSModeConfiguration
+func Windows10DeviceModeTypePSModeConfiguration() *Windows10DeviceModeType {
+ v := Windows10DeviceModeTypeVSModeConfiguration
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EasEmailProfileConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EasEmailProfileConfigurationModel.go
new file mode 100644
index 00000000..39400da1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EasEmailProfileConfigurationModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10EasEmailProfileConfiguration By providing configurations in this profile you can instruct the native email client (Outlook) on Windows 10 devices to communicate with an Exchange server and get email, contacts, calendar, and tasks. Furthermore, you can also specify how much email to sync and how often the device should sync.
+type Windows10EasEmailProfileConfiguration struct {
+ // EasEmailProfileConfigurationBase is the base model of Windows10EasEmailProfileConfiguration
+ EasEmailProfileConfigurationBase
+ // AccountName Account name.
+ AccountName *string `json:"accountName,omitempty"`
+ // SyncCalendar Whether or not to sync the calendar.
+ SyncCalendar *bool `json:"syncCalendar,omitempty"`
+ // SyncContacts Whether or not to sync contacts.
+ SyncContacts *bool `json:"syncContacts,omitempty"`
+ // SyncTasks Whether or not to sync tasks.
+ SyncTasks *bool `json:"syncTasks,omitempty"`
+ // DurationOfEmailToSync Duration of email to sync.
+ DurationOfEmailToSync *EmailSyncDuration `json:"durationOfEmailToSync,omitempty"`
+ // EmailAddressSource Email attribute that is picked from AAD and injected into this profile before installing on the device.
+ EmailAddressSource *UserEmailSource `json:"emailAddressSource,omitempty"`
+ // EmailSyncSchedule Email sync schedule.
+ EmailSyncSchedule *EmailSyncSchedule `json:"emailSyncSchedule,omitempty"`
+ // HostName Exchange location that (URL) that the native mail app connects to.
+ HostName *string `json:"hostName,omitempty"`
+ // RequireSsl Indicates whether or not to use SSL.
+ RequireSsl *bool `json:"requireSsl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EditionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EditionTypeEnum.go
new file mode 100644
index 00000000..b928218f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EditionTypeEnum.go
@@ -0,0 +1,169 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10EditionType undocumented
+type Windows10EditionType int
+
+const (
+ // Windows10EditionTypeVWindows10Enterprise undocumented
+ Windows10EditionTypeVWindows10Enterprise Windows10EditionType = 0
+ // Windows10EditionTypeVWindows10EnterpriseN undocumented
+ Windows10EditionTypeVWindows10EnterpriseN Windows10EditionType = 1
+ // Windows10EditionTypeVWindows10Education undocumented
+ Windows10EditionTypeVWindows10Education Windows10EditionType = 2
+ // Windows10EditionTypeVWindows10EducationN undocumented
+ Windows10EditionTypeVWindows10EducationN Windows10EditionType = 3
+ // Windows10EditionTypeVWindows10MobileEnterprise undocumented
+ Windows10EditionTypeVWindows10MobileEnterprise Windows10EditionType = 4
+ // Windows10EditionTypeVWindows10HolographicEnterprise undocumented
+ Windows10EditionTypeVWindows10HolographicEnterprise Windows10EditionType = 5
+ // Windows10EditionTypeVWindows10Professional undocumented
+ Windows10EditionTypeVWindows10Professional Windows10EditionType = 6
+ // Windows10EditionTypeVWindows10ProfessionalN undocumented
+ Windows10EditionTypeVWindows10ProfessionalN Windows10EditionType = 7
+ // Windows10EditionTypeVWindows10ProfessionalEducation undocumented
+ Windows10EditionTypeVWindows10ProfessionalEducation Windows10EditionType = 8
+ // Windows10EditionTypeVWindows10ProfessionalEducationN undocumented
+ Windows10EditionTypeVWindows10ProfessionalEducationN Windows10EditionType = 9
+ // Windows10EditionTypeVWindows10ProfessionalWorkstation undocumented
+ Windows10EditionTypeVWindows10ProfessionalWorkstation Windows10EditionType = 10
+ // Windows10EditionTypeVWindows10ProfessionalWorkstationN undocumented
+ Windows10EditionTypeVWindows10ProfessionalWorkstationN Windows10EditionType = 11
+ // Windows10EditionTypeVNotConfigured undocumented
+ Windows10EditionTypeVNotConfigured Windows10EditionType = 12
+ // Windows10EditionTypeVWindows10Home undocumented
+ Windows10EditionTypeVWindows10Home Windows10EditionType = 13
+ // Windows10EditionTypeVWindows10HomeChina undocumented
+ Windows10EditionTypeVWindows10HomeChina Windows10EditionType = 14
+ // Windows10EditionTypeVWindows10HomeN undocumented
+ Windows10EditionTypeVWindows10HomeN Windows10EditionType = 15
+ // Windows10EditionTypeVWindows10HomeSingleLanguage undocumented
+ Windows10EditionTypeVWindows10HomeSingleLanguage Windows10EditionType = 16
+ // Windows10EditionTypeVWindows10Mobile undocumented
+ Windows10EditionTypeVWindows10Mobile Windows10EditionType = 17
+ // Windows10EditionTypeVWindows10IoTCore undocumented
+ Windows10EditionTypeVWindows10IoTCore Windows10EditionType = 18
+ // Windows10EditionTypeVWindows10IoTCoreCommercial undocumented
+ Windows10EditionTypeVWindows10IoTCoreCommercial Windows10EditionType = 19
+)
+
+// Windows10EditionTypePWindows10Enterprise returns a pointer to Windows10EditionTypeVWindows10Enterprise
+func Windows10EditionTypePWindows10Enterprise() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10Enterprise
+ return &v
+}
+
+// Windows10EditionTypePWindows10EnterpriseN returns a pointer to Windows10EditionTypeVWindows10EnterpriseN
+func Windows10EditionTypePWindows10EnterpriseN() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10EnterpriseN
+ return &v
+}
+
+// Windows10EditionTypePWindows10Education returns a pointer to Windows10EditionTypeVWindows10Education
+func Windows10EditionTypePWindows10Education() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10Education
+ return &v
+}
+
+// Windows10EditionTypePWindows10EducationN returns a pointer to Windows10EditionTypeVWindows10EducationN
+func Windows10EditionTypePWindows10EducationN() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10EducationN
+ return &v
+}
+
+// Windows10EditionTypePWindows10MobileEnterprise returns a pointer to Windows10EditionTypeVWindows10MobileEnterprise
+func Windows10EditionTypePWindows10MobileEnterprise() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10MobileEnterprise
+ return &v
+}
+
+// Windows10EditionTypePWindows10HolographicEnterprise returns a pointer to Windows10EditionTypeVWindows10HolographicEnterprise
+func Windows10EditionTypePWindows10HolographicEnterprise() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10HolographicEnterprise
+ return &v
+}
+
+// Windows10EditionTypePWindows10Professional returns a pointer to Windows10EditionTypeVWindows10Professional
+func Windows10EditionTypePWindows10Professional() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10Professional
+ return &v
+}
+
+// Windows10EditionTypePWindows10ProfessionalN returns a pointer to Windows10EditionTypeVWindows10ProfessionalN
+func Windows10EditionTypePWindows10ProfessionalN() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10ProfessionalN
+ return &v
+}
+
+// Windows10EditionTypePWindows10ProfessionalEducation returns a pointer to Windows10EditionTypeVWindows10ProfessionalEducation
+func Windows10EditionTypePWindows10ProfessionalEducation() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10ProfessionalEducation
+ return &v
+}
+
+// Windows10EditionTypePWindows10ProfessionalEducationN returns a pointer to Windows10EditionTypeVWindows10ProfessionalEducationN
+func Windows10EditionTypePWindows10ProfessionalEducationN() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10ProfessionalEducationN
+ return &v
+}
+
+// Windows10EditionTypePWindows10ProfessionalWorkstation returns a pointer to Windows10EditionTypeVWindows10ProfessionalWorkstation
+func Windows10EditionTypePWindows10ProfessionalWorkstation() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10ProfessionalWorkstation
+ return &v
+}
+
+// Windows10EditionTypePWindows10ProfessionalWorkstationN returns a pointer to Windows10EditionTypeVWindows10ProfessionalWorkstationN
+func Windows10EditionTypePWindows10ProfessionalWorkstationN() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10ProfessionalWorkstationN
+ return &v
+}
+
+// Windows10EditionTypePNotConfigured returns a pointer to Windows10EditionTypeVNotConfigured
+func Windows10EditionTypePNotConfigured() *Windows10EditionType {
+ v := Windows10EditionTypeVNotConfigured
+ return &v
+}
+
+// Windows10EditionTypePWindows10Home returns a pointer to Windows10EditionTypeVWindows10Home
+func Windows10EditionTypePWindows10Home() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10Home
+ return &v
+}
+
+// Windows10EditionTypePWindows10HomeChina returns a pointer to Windows10EditionTypeVWindows10HomeChina
+func Windows10EditionTypePWindows10HomeChina() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10HomeChina
+ return &v
+}
+
+// Windows10EditionTypePWindows10HomeN returns a pointer to Windows10EditionTypeVWindows10HomeN
+func Windows10EditionTypePWindows10HomeN() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10HomeN
+ return &v
+}
+
+// Windows10EditionTypePWindows10HomeSingleLanguage returns a pointer to Windows10EditionTypeVWindows10HomeSingleLanguage
+func Windows10EditionTypePWindows10HomeSingleLanguage() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10HomeSingleLanguage
+ return &v
+}
+
+// Windows10EditionTypePWindows10Mobile returns a pointer to Windows10EditionTypeVWindows10Mobile
+func Windows10EditionTypePWindows10Mobile() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10Mobile
+ return &v
+}
+
+// Windows10EditionTypePWindows10IoTCore returns a pointer to Windows10EditionTypeVWindows10IoTCore
+func Windows10EditionTypePWindows10IoTCore() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10IoTCore
+ return &v
+}
+
+// Windows10EditionTypePWindows10IoTCoreCommercial returns a pointer to Windows10EditionTypeVWindows10IoTCoreCommercial
+func Windows10EditionTypePWindows10IoTCoreCommercial() *Windows10EditionType {
+ v := Windows10EditionTypeVWindows10IoTCoreCommercial
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EndpointProtectionConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EndpointProtectionConfigurationModel.go
new file mode 100644
index 00000000..37f97ebc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EndpointProtectionConfigurationModel.go
@@ -0,0 +1,365 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10EndpointProtectionConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the Windows10EndpointProtectionConfiguration resource.
+type Windows10EndpointProtectionConfiguration struct {
+ // DeviceConfiguration is the base model of Windows10EndpointProtectionConfiguration
+ DeviceConfiguration
+ // DmaGuardDeviceEnumerationPolicy undocumented
+ DmaGuardDeviceEnumerationPolicy *DmaGuardDeviceEnumerationPolicyType `json:"dmaGuardDeviceEnumerationPolicy,omitempty"`
+ // FirewallRules Configures the firewall rule settings. This collection can contain a maximum of 150 elements.
+ FirewallRules []WindowsFirewallRule `json:"firewallRules,omitempty"`
+ // UserRightsAccessCredentialManagerAsTrustedCaller This user right is used by Credential Manager during Backup/Restore. Users' saved credentials might be compromised if this privilege is given to other entities. Only states NotConfigured and Allowed are supported
+ UserRightsAccessCredentialManagerAsTrustedCaller *DeviceManagementUserRightsSetting `json:"userRightsAccessCredentialManagerAsTrustedCaller,omitempty"`
+ // UserRightsAllowAccessFromNetwork This user right determines which users and groups are allowed to connect to the computer over the network. State Allowed is supported.
+ UserRightsAllowAccessFromNetwork *DeviceManagementUserRightsSetting `json:"userRightsAllowAccessFromNetwork,omitempty"`
+ // UserRightsBlockAccessFromNetwork This user right determines which users and groups are block from connecting to the computer over the network. State Block is supported.
+ UserRightsBlockAccessFromNetwork *DeviceManagementUserRightsSetting `json:"userRightsBlockAccessFromNetwork,omitempty"`
+ // UserRightsActAsPartOfTheOperatingSystem This user right allows a process to impersonate any user without authentication. The process can therefore gain access to the same local resources as that user. Only states NotConfigured and Allowed are supported
+ UserRightsActAsPartOfTheOperatingSystem *DeviceManagementUserRightsSetting `json:"userRightsActAsPartOfTheOperatingSystem,omitempty"`
+ // UserRightsLocalLogOn This user right determines which users can log on to the computer. States NotConfigured, Allowed are supported
+ UserRightsLocalLogOn *DeviceManagementUserRightsSetting `json:"userRightsLocalLogOn,omitempty"`
+ // UserRightsDenyLocalLogOn This user right determines which users cannot log on to the computer. States NotConfigured, Blocked are supported
+ UserRightsDenyLocalLogOn *DeviceManagementUserRightsSetting `json:"userRightsDenyLocalLogOn,omitempty"`
+ // UserRightsBackupData This user right determines which users can bypass file, directory, registry, and other persistent objects permissions when backing up files and directories. Only states NotConfigured and Allowed are supported
+ UserRightsBackupData *DeviceManagementUserRightsSetting `json:"userRightsBackupData,omitempty"`
+ // UserRightsChangeSystemTime This user right determines which users and groups can change the time and date on the internal clock of the computer. Only states NotConfigured and Allowed are supported
+ UserRightsChangeSystemTime *DeviceManagementUserRightsSetting `json:"userRightsChangeSystemTime,omitempty"`
+ // UserRightsCreateGlobalObjects This security setting determines whether users can create global objects that are available to all sessions. Users who can create global objects could affect processes that run under other users' sessions, which could lead to application failure or data corruption. Only states NotConfigured and Allowed are supported
+ UserRightsCreateGlobalObjects *DeviceManagementUserRightsSetting `json:"userRightsCreateGlobalObjects,omitempty"`
+ // UserRightsCreatePageFile This user right determines which users and groups can call an internal API to create and change the size of a page file. Only states NotConfigured and Allowed are supported
+ UserRightsCreatePageFile *DeviceManagementUserRightsSetting `json:"userRightsCreatePageFile,omitempty"`
+ // UserRightsCreatePermanentSharedObjects This user right determines which accounts can be used by processes to create a directory object using the object manager. Only states NotConfigured and Allowed are supported
+ UserRightsCreatePermanentSharedObjects *DeviceManagementUserRightsSetting `json:"userRightsCreatePermanentSharedObjects,omitempty"`
+ // UserRightsCreateSymbolicLinks This user right determines if the user can create a symbolic link from the computer to which they are logged on. Only states NotConfigured and Allowed are supported
+ UserRightsCreateSymbolicLinks *DeviceManagementUserRightsSetting `json:"userRightsCreateSymbolicLinks,omitempty"`
+ // UserRightsCreateToken This user right determines which users/groups can be used by processes to create a token that can then be used to get access to any local resources when the process uses an internal API to create an access token. Only states NotConfigured and Allowed are supported
+ UserRightsCreateToken *DeviceManagementUserRightsSetting `json:"userRightsCreateToken,omitempty"`
+ // UserRightsDebugPrograms This user right determines which users can attach a debugger to any process or to the kernel. Only states NotConfigured and Allowed are supported
+ UserRightsDebugPrograms *DeviceManagementUserRightsSetting `json:"userRightsDebugPrograms,omitempty"`
+ // UserRightsRemoteDesktopServicesLogOn This user right determines which users and groups are prohibited from logging on as a Remote Desktop Services client. Only states NotConfigured and Blocked are supported
+ UserRightsRemoteDesktopServicesLogOn *DeviceManagementUserRightsSetting `json:"userRightsRemoteDesktopServicesLogOn,omitempty"`
+ // UserRightsDelegation This user right determines which users can set the Trusted for Delegation setting on a user or computer object. Only states NotConfigured and Allowed are supported.
+ UserRightsDelegation *DeviceManagementUserRightsSetting `json:"userRightsDelegation,omitempty"`
+ // UserRightsGenerateSecurityAudits This user right determines which accounts can be used by a process to add entries to the security log. The security log is used to trace unauthorized system access. Only states NotConfigured and Allowed are supported.
+ UserRightsGenerateSecurityAudits *DeviceManagementUserRightsSetting `json:"userRightsGenerateSecurityAudits,omitempty"`
+ // UserRightsImpersonateClient Assigning this user right to a user allows programs running on behalf of that user to impersonate a client. Requiring this user right for this kind of impersonation prevents an unauthorized user from convincing a client to connect to a service that they have created and then impersonating that client, which can elevate the unauthorized user's permissions to administrative or system levels. Only states NotConfigured and Allowed are supported.
+ UserRightsImpersonateClient *DeviceManagementUserRightsSetting `json:"userRightsImpersonateClient,omitempty"`
+ // UserRightsIncreaseSchedulingPriority This user right determines which accounts can use a process with Write Property access to another process to increase the execution priority assigned to the other process. Only states NotConfigured and Allowed are supported.
+ UserRightsIncreaseSchedulingPriority *DeviceManagementUserRightsSetting `json:"userRightsIncreaseSchedulingPriority,omitempty"`
+ // UserRightsLoadUnloadDrivers This user right determines which users can dynamically load and unload device drivers or other code in to kernel mode. Only states NotConfigured and Allowed are supported.
+ UserRightsLoadUnloadDrivers *DeviceManagementUserRightsSetting `json:"userRightsLoadUnloadDrivers,omitempty"`
+ // UserRightsLockMemory This user right determines which accounts can use a process to keep data in physical memory, which prevents the system from paging the data to virtual memory on disk. Only states NotConfigured and Allowed are supported.
+ UserRightsLockMemory *DeviceManagementUserRightsSetting `json:"userRightsLockMemory,omitempty"`
+ // UserRightsManageAuditingAndSecurityLogs This user right determines which users can specify object access auditing options for individual resources, such as files, Active Directory objects, and registry keys. Only states NotConfigured and Allowed are supported.
+ UserRightsManageAuditingAndSecurityLogs *DeviceManagementUserRightsSetting `json:"userRightsManageAuditingAndSecurityLogs,omitempty"`
+ // UserRightsManageVolumes This user right determines which users and groups can run maintenance tasks on a volume, such as remote defragmentation. Only states NotConfigured and Allowed are supported.
+ UserRightsManageVolumes *DeviceManagementUserRightsSetting `json:"userRightsManageVolumes,omitempty"`
+ // UserRightsModifyFirmwareEnvironment This user right determines who can modify firmware environment values. Only states NotConfigured and Allowed are supported.
+ UserRightsModifyFirmwareEnvironment *DeviceManagementUserRightsSetting `json:"userRightsModifyFirmwareEnvironment,omitempty"`
+ // UserRightsModifyObjectLabels This user right determines which user accounts can modify the integrity label of objects, such as files, registry keys, or processes owned by other users. Only states NotConfigured and Allowed are supported.
+ UserRightsModifyObjectLabels *DeviceManagementUserRightsSetting `json:"userRightsModifyObjectLabels,omitempty"`
+ // UserRightsProfileSingleProcess This user right determines which users can use performance monitoring tools to monitor the performance of system processes. Only states NotConfigured and Allowed are supported.
+ UserRightsProfileSingleProcess *DeviceManagementUserRightsSetting `json:"userRightsProfileSingleProcess,omitempty"`
+ // UserRightsRemoteShutdown This user right determines which users are allowed to shut down a computer from a remote location on the network. Misuse of this user right can result in a denial of service. Only states NotConfigured and Allowed are supported.
+ UserRightsRemoteShutdown *DeviceManagementUserRightsSetting `json:"userRightsRemoteShutdown,omitempty"`
+ // UserRightsRestoreData This user right determines which users can bypass file, directory, registry, and other persistent objects permissions when restoring backed up files and directories, and determines which users can set any valid security principal as the owner of an object. Only states NotConfigured and Allowed are supported.
+ UserRightsRestoreData *DeviceManagementUserRightsSetting `json:"userRightsRestoreData,omitempty"`
+ // UserRightsTakeOwnership This user right determines which users can take ownership of any securable object in the system, including Active Directory objects, files and folders, printers, registry keys, processes, and threads. Only states NotConfigured and Allowed are supported.
+ UserRightsTakeOwnership *DeviceManagementUserRightsSetting `json:"userRightsTakeOwnership,omitempty"`
+ // XboxServicesEnableXboxGameSaveTask This setting determines whether xbox game save is enabled (1) or disabled (0).
+ XboxServicesEnableXboxGameSaveTask *bool `json:"xboxServicesEnableXboxGameSaveTask,omitempty"`
+ // XboxServicesAccessoryManagementServiceStartupMode This setting determines whether the Accessory management service's start type is Automatic(2), Manual(3), Disabled(4). Default: Manual.
+ XboxServicesAccessoryManagementServiceStartupMode *ServiceStartType `json:"xboxServicesAccessoryManagementServiceStartupMode,omitempty"`
+ // XboxServicesLiveAuthManagerServiceStartupMode This setting determines whether Live Auth Manager service's start type is Automatic(2), Manual(3), Disabled(4). Default: Manual.
+ XboxServicesLiveAuthManagerServiceStartupMode *ServiceStartType `json:"xboxServicesLiveAuthManagerServiceStartupMode,omitempty"`
+ // XboxServicesLiveGameSaveServiceStartupMode This setting determines whether Live Game save service's start type is Automatic(2), Manual(3), Disabled(4). Default: Manual.
+ XboxServicesLiveGameSaveServiceStartupMode *ServiceStartType `json:"xboxServicesLiveGameSaveServiceStartupMode,omitempty"`
+ // XboxServicesLiveNetworkingServiceStartupMode This setting determines whether Networking service's start type is Automatic(2), Manual(3), Disabled(4). Default: Manual.
+ XboxServicesLiveNetworkingServiceStartupMode *ServiceStartType `json:"xboxServicesLiveNetworkingServiceStartupMode,omitempty"`
+ // LocalSecurityOptionsBlockMicrosoftAccounts Prevent users from adding new Microsoft accounts to this computer.
+ LocalSecurityOptionsBlockMicrosoftAccounts *bool `json:"localSecurityOptionsBlockMicrosoftAccounts,omitempty"`
+ // LocalSecurityOptionsBlockRemoteLogonWithBlankPassword Enable Local accounts that are not password protected to log on from locations other than the physical device.Default is enabled
+ LocalSecurityOptionsBlockRemoteLogonWithBlankPassword *bool `json:"localSecurityOptionsBlockRemoteLogonWithBlankPassword,omitempty"`
+ // LocalSecurityOptionsDisableAdministratorAccount Determines whether the Local Administrator account is enabled or disabled.
+ LocalSecurityOptionsDisableAdministratorAccount *bool `json:"localSecurityOptionsDisableAdministratorAccount,omitempty"`
+ // LocalSecurityOptionsAdministratorAccountName Define a different account name to be associated with the security identifier (SID) for the account “Administrator”.
+ LocalSecurityOptionsAdministratorAccountName *string `json:"localSecurityOptionsAdministratorAccountName,omitempty"`
+ // LocalSecurityOptionsDisableGuestAccount Determines if the Guest account is enabled or disabled.
+ LocalSecurityOptionsDisableGuestAccount *bool `json:"localSecurityOptionsDisableGuestAccount,omitempty"`
+ // LocalSecurityOptionsGuestAccountName Define a different account name to be associated with the security identifier (SID) for the account “Guest”.
+ LocalSecurityOptionsGuestAccountName *string `json:"localSecurityOptionsGuestAccountName,omitempty"`
+ // LocalSecurityOptionsAllowUndockWithoutHavingToLogon Prevent a portable computer from being undocked without having to log in.
+ LocalSecurityOptionsAllowUndockWithoutHavingToLogon *bool `json:"localSecurityOptionsAllowUndockWithoutHavingToLogon,omitempty"`
+ // LocalSecurityOptionsBlockUsersInstallingPrinterDrivers Restrict installing printer drivers as part of connecting to a shared printer to admins only.
+ LocalSecurityOptionsBlockUsersInstallingPrinterDrivers *bool `json:"localSecurityOptionsBlockUsersInstallingPrinterDrivers,omitempty"`
+ // LocalSecurityOptionsBlockRemoteOpticalDriveAccess Enabling this settings allows only interactively logged on user to access CD-ROM media.
+ LocalSecurityOptionsBlockRemoteOpticalDriveAccess *bool `json:"localSecurityOptionsBlockRemoteOpticalDriveAccess,omitempty"`
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUser Define who is allowed to format and eject removable NTFS media.
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUser *LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType `json:"localSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUser,omitempty"`
+ // LocalSecurityOptionsMachineInactivityLimit Define maximum minutes of inactivity on the interactive desktop’s login screen until the screen saver runs. Valid values 0 to 9999
+ LocalSecurityOptionsMachineInactivityLimit *int `json:"localSecurityOptionsMachineInactivityLimit,omitempty"`
+ // LocalSecurityOptionsMachineInactivityLimitInMinutes Define maximum minutes of inactivity on the interactive desktop’s login screen until the screen saver runs. Valid values 0 to 9999
+ LocalSecurityOptionsMachineInactivityLimitInMinutes *int `json:"localSecurityOptionsMachineInactivityLimitInMinutes,omitempty"`
+ // LocalSecurityOptionsDoNotRequireCtrlAltDel Require CTRL+ALT+DEL to be pressed before a user can log on.
+ LocalSecurityOptionsDoNotRequireCtrlAltDel *bool `json:"localSecurityOptionsDoNotRequireCtrlAltDel,omitempty"`
+ // LocalSecurityOptionsHideLastSignedInUser Do not display the username of the last person who signed in on this device.
+ LocalSecurityOptionsHideLastSignedInUser *bool `json:"localSecurityOptionsHideLastSignedInUser,omitempty"`
+ // LocalSecurityOptionsHideUsernameAtSignIn Do not display the username of the person signing in to this device after credentials are entered and before the device’s desktop is shown.
+ LocalSecurityOptionsHideUsernameAtSignIn *bool `json:"localSecurityOptionsHideUsernameAtSignIn,omitempty"`
+ // LocalSecurityOptionsLogOnMessageTitle Set message title for users attempting to log in.
+ LocalSecurityOptionsLogOnMessageTitle *string `json:"localSecurityOptionsLogOnMessageTitle,omitempty"`
+ // LocalSecurityOptionsLogOnMessageText Set message text for users attempting to log in.
+ LocalSecurityOptionsLogOnMessageText *string `json:"localSecurityOptionsLogOnMessageText,omitempty"`
+ // LocalSecurityOptionsAllowPKU2UAuthenticationRequests Block PKU2U authentication requests to this device to use online identities.
+ LocalSecurityOptionsAllowPKU2UAuthenticationRequests *bool `json:"localSecurityOptionsAllowPKU2UAuthenticationRequests,omitempty"`
+ // LocalSecurityOptionsAllowRemoteCallsToSecurityAccountsManagerHelperBool UI helper boolean for LocalSecurityOptionsAllowRemoteCallsToSecurityAccountsManager entity
+ LocalSecurityOptionsAllowRemoteCallsToSecurityAccountsManagerHelperBool *bool `json:"localSecurityOptionsAllowRemoteCallsToSecurityAccountsManagerHelperBool,omitempty"`
+ // LocalSecurityOptionsAllowRemoteCallsToSecurityAccountsManager Edit the default Security Descriptor Definition Language string to allow or deny users and groups to make remote calls to the SAM.
+ LocalSecurityOptionsAllowRemoteCallsToSecurityAccountsManager *string `json:"localSecurityOptionsAllowRemoteCallsToSecurityAccountsManager,omitempty"`
+ // LocalSecurityOptionsMinimumSessionSecurityForNtlmSspBasedClients This security setting allows a client to require the negotiation of 128-bit encryption and/or NTLMv2 session security.
+ LocalSecurityOptionsMinimumSessionSecurityForNtlmSspBasedClients *LocalSecurityOptionsMinimumSessionSecurity `json:"localSecurityOptionsMinimumSessionSecurityForNtlmSspBasedClients,omitempty"`
+ // LocalSecurityOptionsMinimumSessionSecurityForNtlmSspBasedServers This security setting allows a server to require the negotiation of 128-bit encryption and/or NTLMv2 session security.
+ LocalSecurityOptionsMinimumSessionSecurityForNtlmSspBasedServers *LocalSecurityOptionsMinimumSessionSecurity `json:"localSecurityOptionsMinimumSessionSecurityForNtlmSspBasedServers,omitempty"`
+ // LanManagerAuthenticationLevel This security setting determines which challenge/response authentication protocol is used for network logons.
+ LanManagerAuthenticationLevel *LanManagerAuthenticationLevel `json:"lanManagerAuthenticationLevel,omitempty"`
+ // LanManagerWorkstationDisableInsecureGuestLogons If enabled,the SMB client will allow insecure guest logons. If not configured, the SMB client will reject insecure guest logons.
+ LanManagerWorkstationDisableInsecureGuestLogons *bool `json:"lanManagerWorkstationDisableInsecureGuestLogons,omitempty"`
+ // LocalSecurityOptionsClearVirtualMemoryPageFile This security setting determines whether the virtual memory pagefile is cleared when the system is shut down.
+ LocalSecurityOptionsClearVirtualMemoryPageFile *bool `json:"localSecurityOptionsClearVirtualMemoryPageFile,omitempty"`
+ // LocalSecurityOptionsAllowSystemToBeShutDownWithoutHavingToLogOn This security setting determines whether a computer can be shut down without having to log on to Windows.
+ LocalSecurityOptionsAllowSystemToBeShutDownWithoutHavingToLogOn *bool `json:"localSecurityOptionsAllowSystemToBeShutDownWithoutHavingToLogOn,omitempty"`
+ // LocalSecurityOptionsAllowUIAccessApplicationElevation Allow UIAccess apps to prompt for elevation without using the secure desktop.
+ LocalSecurityOptionsAllowUIAccessApplicationElevation *bool `json:"localSecurityOptionsAllowUIAccessApplicationElevation,omitempty"`
+ // LocalSecurityOptionsVirtualizeFileAndRegistryWriteFailuresToPerUserLocations Virtualize file and registry write failures to per user locations
+ LocalSecurityOptionsVirtualizeFileAndRegistryWriteFailuresToPerUserLocations *bool `json:"localSecurityOptionsVirtualizeFileAndRegistryWriteFailuresToPerUserLocations,omitempty"`
+ // LocalSecurityOptionsOnlyElevateSignedExecutables Enforce PKI certification path validation for a given executable file before it is permitted to run.
+ LocalSecurityOptionsOnlyElevateSignedExecutables *bool `json:"localSecurityOptionsOnlyElevateSignedExecutables,omitempty"`
+ // LocalSecurityOptionsAdministratorElevationPromptBehavior Define the behavior of the elevation prompt for admins in Admin Approval Mode.
+ LocalSecurityOptionsAdministratorElevationPromptBehavior *LocalSecurityOptionsAdministratorElevationPromptBehaviorType `json:"localSecurityOptionsAdministratorElevationPromptBehavior,omitempty"`
+ // LocalSecurityOptionsStandardUserElevationPromptBehavior Define the behavior of the elevation prompt for standard users.
+ LocalSecurityOptionsStandardUserElevationPromptBehavior *LocalSecurityOptionsStandardUserElevationPromptBehaviorType `json:"localSecurityOptionsStandardUserElevationPromptBehavior,omitempty"`
+ // LocalSecurityOptionsSwitchToSecureDesktopWhenPromptingForElevation Enable all elevation requests to go to the interactive user's desktop rather than the secure desktop. Prompt behavior policy settings for admins and standard users are used.
+ LocalSecurityOptionsSwitchToSecureDesktopWhenPromptingForElevation *bool `json:"localSecurityOptionsSwitchToSecureDesktopWhenPromptingForElevation,omitempty"`
+ // LocalSecurityOptionsDetectApplicationInstallationsAndPromptForElevation App installations requiring elevated privileges will prompt for admin credentials.Default is enabled
+ LocalSecurityOptionsDetectApplicationInstallationsAndPromptForElevation *bool `json:"localSecurityOptionsDetectApplicationInstallationsAndPromptForElevation,omitempty"`
+ // LocalSecurityOptionsAllowUIAccessApplicationsForSecureLocations Allow UIAccess apps to prompt for elevation without using the secure desktop.Default is enabled
+ LocalSecurityOptionsAllowUIAccessApplicationsForSecureLocations *bool `json:"localSecurityOptionsAllowUIAccessApplicationsForSecureLocations,omitempty"`
+ // LocalSecurityOptionsUseAdminApprovalMode Defines whether the built-in admin account uses Admin Approval Mode or runs all apps with full admin privileges.Default is enabled
+ LocalSecurityOptionsUseAdminApprovalMode *bool `json:"localSecurityOptionsUseAdminApprovalMode,omitempty"`
+ // LocalSecurityOptionsUseAdminApprovalModeForAdministrators Define whether Admin Approval Mode and all UAC policy settings are enabled, default is enabled
+ LocalSecurityOptionsUseAdminApprovalModeForAdministrators *bool `json:"localSecurityOptionsUseAdminApprovalModeForAdministrators,omitempty"`
+ // LocalSecurityOptionsInformationShownOnLockScreen Configure the user information that is displayed when the session is locked. If not configured, user display name, domain and username are shown
+ LocalSecurityOptionsInformationShownOnLockScreen *LocalSecurityOptionsInformationShownOnLockScreenType `json:"localSecurityOptionsInformationShownOnLockScreen,omitempty"`
+ // LocalSecurityOptionsInformationDisplayedOnLockScreen Configure the user information that is displayed when the session is locked. If not configured, user display name, domain and username are shown
+ LocalSecurityOptionsInformationDisplayedOnLockScreen *LocalSecurityOptionsInformationDisplayedOnLockScreenType `json:"localSecurityOptionsInformationDisplayedOnLockScreen,omitempty"`
+ // LocalSecurityOptionsDisableClientDigitallySignCommunicationsIfServerAgrees This security setting determines whether the SMB client attempts to negotiate SMB packet signing.
+ LocalSecurityOptionsDisableClientDigitallySignCommunicationsIfServerAgrees *bool `json:"localSecurityOptionsDisableClientDigitallySignCommunicationsIfServerAgrees,omitempty"`
+ // LocalSecurityOptionsClientDigitallySignCommunicationsAlways This security setting determines whether packet signing is required by the SMB client component.
+ LocalSecurityOptionsClientDigitallySignCommunicationsAlways *bool `json:"localSecurityOptionsClientDigitallySignCommunicationsAlways,omitempty"`
+ // LocalSecurityOptionsClientSendUnencryptedPasswordToThirdPartySMBServers If this security setting is enabled, the Server Message Block (SMB) redirector is allowed to send plaintext passwords to non-Microsoft SMB servers that do not support password encryption during authentication.
+ LocalSecurityOptionsClientSendUnencryptedPasswordToThirdPartySMBServers *bool `json:"localSecurityOptionsClientSendUnencryptedPasswordToThirdPartySMBServers,omitempty"`
+ // LocalSecurityOptionsDisableServerDigitallySignCommunicationsAlways This security setting determines whether packet signing is required by the SMB server component.
+ LocalSecurityOptionsDisableServerDigitallySignCommunicationsAlways *bool `json:"localSecurityOptionsDisableServerDigitallySignCommunicationsAlways,omitempty"`
+ // LocalSecurityOptionsDisableServerDigitallySignCommunicationsIfClientAgrees This security setting determines whether the SMB server will negotiate SMB packet signing with clients that request it.
+ LocalSecurityOptionsDisableServerDigitallySignCommunicationsIfClientAgrees *bool `json:"localSecurityOptionsDisableServerDigitallySignCommunicationsIfClientAgrees,omitempty"`
+ // LocalSecurityOptionsRestrictAnonymousAccessToNamedPipesAndShares By default, this security setting restricts anonymous access to shares and pipes to the settings for named pipes that can be accessed anonymously and Shares that can be accessed anonymously
+ LocalSecurityOptionsRestrictAnonymousAccessToNamedPipesAndShares *bool `json:"localSecurityOptionsRestrictAnonymousAccessToNamedPipesAndShares,omitempty"`
+ // LocalSecurityOptionsDoNotAllowAnonymousEnumerationOfSAMAccounts This security setting determines what additional permissions will be granted for anonymous connections to the computer.
+ LocalSecurityOptionsDoNotAllowAnonymousEnumerationOfSAMAccounts *bool `json:"localSecurityOptionsDoNotAllowAnonymousEnumerationOfSAMAccounts,omitempty"`
+ // LocalSecurityOptionsAllowAnonymousEnumerationOfSAMAccountsAndShares This security setting determines whether to allows anonymous users to perform certain activities, such as enumerating the names of domain accounts and network shares.
+ LocalSecurityOptionsAllowAnonymousEnumerationOfSAMAccountsAndShares *bool `json:"localSecurityOptionsAllowAnonymousEnumerationOfSAMAccountsAndShares,omitempty"`
+ // LocalSecurityOptionsDoNotStoreLANManagerHashValueOnNextPasswordChange This security setting determines if, at the next password change, the LAN Manager (LM) hash value for the new password is stored. It’s not stored by default.
+ LocalSecurityOptionsDoNotStoreLANManagerHashValueOnNextPasswordChange *bool `json:"localSecurityOptionsDoNotStoreLANManagerHashValueOnNextPasswordChange,omitempty"`
+ // LocalSecurityOptionsSmartCardRemovalBehavior This security setting determines what happens when the smart card for a logged-on user is removed from the smart card reader.
+ LocalSecurityOptionsSmartCardRemovalBehavior *LocalSecurityOptionsSmartCardRemovalBehaviorType `json:"localSecurityOptionsSmartCardRemovalBehavior,omitempty"`
+ // DefenderSecurityCenterDisableAppBrowserUI Used to disable the display of the app and browser protection area.
+ DefenderSecurityCenterDisableAppBrowserUI *bool `json:"defenderSecurityCenterDisableAppBrowserUI,omitempty"`
+ // DefenderSecurityCenterDisableFamilyUI Used to disable the display of the family options area.
+ DefenderSecurityCenterDisableFamilyUI *bool `json:"defenderSecurityCenterDisableFamilyUI,omitempty"`
+ // DefenderSecurityCenterDisableHealthUI Used to disable the display of the device performance and health area.
+ DefenderSecurityCenterDisableHealthUI *bool `json:"defenderSecurityCenterDisableHealthUI,omitempty"`
+ // DefenderSecurityCenterDisableNetworkUI Used to disable the display of the firewall and network protection area.
+ DefenderSecurityCenterDisableNetworkUI *bool `json:"defenderSecurityCenterDisableNetworkUI,omitempty"`
+ // DefenderSecurityCenterDisableVirusUI Used to disable the display of the virus and threat protection area.
+ DefenderSecurityCenterDisableVirusUI *bool `json:"defenderSecurityCenterDisableVirusUI,omitempty"`
+ // DefenderSecurityCenterDisableAccountUI Used to disable the display of the account protection area.
+ DefenderSecurityCenterDisableAccountUI *bool `json:"defenderSecurityCenterDisableAccountUI,omitempty"`
+ // DefenderSecurityCenterDisableClearTpmUI Used to disable the display of the Clear TPM button.
+ DefenderSecurityCenterDisableClearTpmUI *bool `json:"defenderSecurityCenterDisableClearTpmUI,omitempty"`
+ // DefenderSecurityCenterDisableHardwareUI Used to disable the display of the hardware protection area.
+ DefenderSecurityCenterDisableHardwareUI *bool `json:"defenderSecurityCenterDisableHardwareUI,omitempty"`
+ // DefenderSecurityCenterDisableNotificationAreaUI Used to disable the display of the notification area control. The user needs to either sign out and sign in or reboot the computer for this setting to take effect.
+ DefenderSecurityCenterDisableNotificationAreaUI *bool `json:"defenderSecurityCenterDisableNotificationAreaUI,omitempty"`
+ // DefenderSecurityCenterDisableRansomwareUI Used to disable the display of the ransomware protection area.
+ DefenderSecurityCenterDisableRansomwareUI *bool `json:"defenderSecurityCenterDisableRansomwareUI,omitempty"`
+ // DefenderSecurityCenterDisableSecureBootUI Used to disable the display of the secure boot area under Device security.
+ DefenderSecurityCenterDisableSecureBootUI *bool `json:"defenderSecurityCenterDisableSecureBootUI,omitempty"`
+ // DefenderSecurityCenterDisableTroubleshootingUI Used to disable the display of the security process troubleshooting under Device security.
+ DefenderSecurityCenterDisableTroubleshootingUI *bool `json:"defenderSecurityCenterDisableTroubleshootingUI,omitempty"`
+ // DefenderSecurityCenterDisableVulnerableTpmFirmwareUpdateUI Used to disable the display of update TPM Firmware when a vulnerable firmware is detected.
+ DefenderSecurityCenterDisableVulnerableTpmFirmwareUpdateUI *bool `json:"defenderSecurityCenterDisableVulnerableTpmFirmwareUpdateUI,omitempty"`
+ // DefenderSecurityCenterOrganizationDisplayName The company name that is displayed to the users.
+ DefenderSecurityCenterOrganizationDisplayName *string `json:"defenderSecurityCenterOrganizationDisplayName,omitempty"`
+ // DefenderSecurityCenterHelpEmail The email address that is displayed to users.
+ DefenderSecurityCenterHelpEmail *string `json:"defenderSecurityCenterHelpEmail,omitempty"`
+ // DefenderSecurityCenterHelpPhone The phone number or Skype ID that is displayed to users.
+ DefenderSecurityCenterHelpPhone *string `json:"defenderSecurityCenterHelpPhone,omitempty"`
+ // DefenderSecurityCenterHelpURL The help portal URL this is displayed to users.
+ DefenderSecurityCenterHelpURL *string `json:"defenderSecurityCenterHelpURL,omitempty"`
+ // DefenderSecurityCenterNotificationsFromApp Notifications to show from the displayed areas of app
+ DefenderSecurityCenterNotificationsFromApp *DefenderSecurityCenterNotificationsFromAppType `json:"defenderSecurityCenterNotificationsFromApp,omitempty"`
+ // DefenderSecurityCenterITContactDisplay Configure where to display IT contact information to end users.
+ DefenderSecurityCenterITContactDisplay *DefenderSecurityCenterITContactDisplayType `json:"defenderSecurityCenterITContactDisplay,omitempty"`
+ // WindowsDefenderTamperProtection Configure windows defender TamperProtection settings
+ WindowsDefenderTamperProtection *WindowsDefenderTamperProtectionOptions `json:"windowsDefenderTamperProtection,omitempty"`
+ // FirewallBlockStatefulFTP Blocks stateful FTP connections to the device
+ FirewallBlockStatefulFTP *bool `json:"firewallBlockStatefulFTP,omitempty"`
+ // FirewallIdleTimeoutForSecurityAssociationInSeconds Configures the idle timeout for security associations, in seconds, from 300 to 3600 inclusive. This is the period after which security associations will expire and be deleted. Valid values 300 to 3600
+ FirewallIdleTimeoutForSecurityAssociationInSeconds *int `json:"firewallIdleTimeoutForSecurityAssociationInSeconds,omitempty"`
+ // FirewallPreSharedKeyEncodingMethod Select the preshared key encoding to be used
+ FirewallPreSharedKeyEncodingMethod *FirewallPreSharedKeyEncodingMethodType `json:"firewallPreSharedKeyEncodingMethod,omitempty"`
+ // FirewallIPSecExemptionsAllowNeighborDiscovery Configures IPSec exemptions to allow neighbor discovery IPv6 ICMP type-codes
+ FirewallIPSecExemptionsAllowNeighborDiscovery *bool `json:"firewallIPSecExemptionsAllowNeighborDiscovery,omitempty"`
+ // FirewallIPSecExemptionsAllowICMP Configures IPSec exemptions to allow ICMP
+ FirewallIPSecExemptionsAllowICMP *bool `json:"firewallIPSecExemptionsAllowICMP,omitempty"`
+ // FirewallIPSecExemptionsAllowRouterDiscovery Configures IPSec exemptions to allow router discovery IPv6 ICMP type-codes
+ FirewallIPSecExemptionsAllowRouterDiscovery *bool `json:"firewallIPSecExemptionsAllowRouterDiscovery,omitempty"`
+ // FirewallIPSecExemptionsAllowDHCP Configures IPSec exemptions to allow both IPv4 and IPv6 DHCP traffic
+ FirewallIPSecExemptionsAllowDHCP *bool `json:"firewallIPSecExemptionsAllowDHCP,omitempty"`
+ // FirewallCertificateRevocationListCheckMethod Specify how the certificate revocation list is to be enforced
+ FirewallCertificateRevocationListCheckMethod *FirewallCertificateRevocationListCheckMethodType `json:"firewallCertificateRevocationListCheckMethod,omitempty"`
+ // FirewallMergeKeyingModuleSettings If an authentication set is not fully supported by a keying module, direct the module to ignore only unsupported authentication suites rather than the entire set
+ FirewallMergeKeyingModuleSettings *bool `json:"firewallMergeKeyingModuleSettings,omitempty"`
+ // FirewallPacketQueueingMethod Configures how packet queueing should be applied in the tunnel gateway scenario
+ FirewallPacketQueueingMethod *FirewallPacketQueueingMethodType `json:"firewallPacketQueueingMethod,omitempty"`
+ // FirewallProfileDomain Configures the firewall profile settings for domain networks
+ FirewallProfileDomain *WindowsFirewallNetworkProfile `json:"firewallProfileDomain,omitempty"`
+ // FirewallProfilePublic Configures the firewall profile settings for public networks
+ FirewallProfilePublic *WindowsFirewallNetworkProfile `json:"firewallProfilePublic,omitempty"`
+ // FirewallProfilePrivate Configures the firewall profile settings for private networks
+ FirewallProfilePrivate *WindowsFirewallNetworkProfile `json:"firewallProfilePrivate,omitempty"`
+ // DefenderAdobeReaderLaunchChildProcess Value indicating the behavior of Adobe Reader from creating child processes
+ DefenderAdobeReaderLaunchChildProcess *DefenderProtectionType `json:"defenderAdobeReaderLaunchChildProcess,omitempty"`
+ // DefenderAttackSurfaceReductionExcludedPaths List of exe files and folders to be excluded from attack surface reduction rules
+ DefenderAttackSurfaceReductionExcludedPaths []string `json:"defenderAttackSurfaceReductionExcludedPaths,omitempty"`
+ // DefenderOfficeAppsOtherProcessInjectionType Value indicating the behavior of Office applications injecting into other processes
+ DefenderOfficeAppsOtherProcessInjectionType *DefenderAttackSurfaceType `json:"defenderOfficeAppsOtherProcessInjectionType,omitempty"`
+ // DefenderOfficeAppsOtherProcessInjection Value indicating the behavior of Office applications injecting into other processes
+ DefenderOfficeAppsOtherProcessInjection *DefenderProtectionType `json:"defenderOfficeAppsOtherProcessInjection,omitempty"`
+ // DefenderOfficeCommunicationAppsLaunchChildProcess Value indicating the behavior of Office communication applications, including Microsoft Outlook, from creating child processes
+ DefenderOfficeCommunicationAppsLaunchChildProcess *DefenderProtectionType `json:"defenderOfficeCommunicationAppsLaunchChildProcess,omitempty"`
+ // DefenderOfficeAppsExecutableContentCreationOrLaunchType Value indicating the behavior of Office applications/macros creating or launching executable content
+ DefenderOfficeAppsExecutableContentCreationOrLaunchType *DefenderAttackSurfaceType `json:"defenderOfficeAppsExecutableContentCreationOrLaunchType,omitempty"`
+ // DefenderOfficeAppsExecutableContentCreationOrLaunch Value indicating the behavior of Office applications/macros creating or launching executable content
+ DefenderOfficeAppsExecutableContentCreationOrLaunch *DefenderProtectionType `json:"defenderOfficeAppsExecutableContentCreationOrLaunch,omitempty"`
+ // DefenderOfficeAppsLaunchChildProcessType Value indicating the behavior of Office application launching child processes
+ DefenderOfficeAppsLaunchChildProcessType *DefenderAttackSurfaceType `json:"defenderOfficeAppsLaunchChildProcessType,omitempty"`
+ // DefenderOfficeAppsLaunchChildProcess Value indicating the behavior of Office application launching child processes
+ DefenderOfficeAppsLaunchChildProcess *DefenderProtectionType `json:"defenderOfficeAppsLaunchChildProcess,omitempty"`
+ // DefenderOfficeMacroCodeAllowWin32ImportsType Value indicating the behavior of Win32 imports from Macro code in Office
+ DefenderOfficeMacroCodeAllowWin32ImportsType *DefenderAttackSurfaceType `json:"defenderOfficeMacroCodeAllowWin32ImportsType,omitempty"`
+ // DefenderOfficeMacroCodeAllowWin32Imports Value indicating the behavior of Win32 imports from Macro code in Office
+ DefenderOfficeMacroCodeAllowWin32Imports *DefenderProtectionType `json:"defenderOfficeMacroCodeAllowWin32Imports,omitempty"`
+ // DefenderScriptObfuscatedMacroCodeType Value indicating the behavior of obfuscated js/vbs/ps/macro code
+ DefenderScriptObfuscatedMacroCodeType *DefenderAttackSurfaceType `json:"defenderScriptObfuscatedMacroCodeType,omitempty"`
+ // DefenderScriptObfuscatedMacroCode Value indicating the behavior of obfuscated js/vbs/ps/macro code
+ DefenderScriptObfuscatedMacroCode *DefenderProtectionType `json:"defenderScriptObfuscatedMacroCode,omitempty"`
+ // DefenderScriptDownloadedPayloadExecutionType Value indicating the behavior of js/vbs executing payload downloaded from Internet
+ DefenderScriptDownloadedPayloadExecutionType *DefenderAttackSurfaceType `json:"defenderScriptDownloadedPayloadExecutionType,omitempty"`
+ // DefenderScriptDownloadedPayloadExecution Value indicating the behavior of js/vbs executing payload downloaded from Internet
+ DefenderScriptDownloadedPayloadExecution *DefenderProtectionType `json:"defenderScriptDownloadedPayloadExecution,omitempty"`
+ // DefenderPreventCredentialStealingType Value indicating if credential stealing from the Windows local security authority subsystem is permitted
+ DefenderPreventCredentialStealingType *DefenderProtectionType `json:"defenderPreventCredentialStealingType,omitempty"`
+ // DefenderProcessCreationType Value indicating response to process creations originating from PSExec and WMI commands
+ DefenderProcessCreationType *DefenderAttackSurfaceType `json:"defenderProcessCreationType,omitempty"`
+ // DefenderProcessCreation Value indicating response to process creations originating from PSExec and WMI commands
+ DefenderProcessCreation *DefenderProtectionType `json:"defenderProcessCreation,omitempty"`
+ // DefenderUntrustedUSBProcessType Value indicating response to untrusted and unsigned processes that run from USB
+ DefenderUntrustedUSBProcessType *DefenderAttackSurfaceType `json:"defenderUntrustedUSBProcessType,omitempty"`
+ // DefenderUntrustedUSBProcess Value indicating response to untrusted and unsigned processes that run from USB
+ DefenderUntrustedUSBProcess *DefenderProtectionType `json:"defenderUntrustedUSBProcess,omitempty"`
+ // DefenderUntrustedExecutableType Value indicating response to executables that don't meet a prevalence, age, or trusted list criteria
+ DefenderUntrustedExecutableType *DefenderAttackSurfaceType `json:"defenderUntrustedExecutableType,omitempty"`
+ // DefenderUntrustedExecutable Value indicating response to executables that don't meet a prevalence, age, or trusted list criteria
+ DefenderUntrustedExecutable *DefenderProtectionType `json:"defenderUntrustedExecutable,omitempty"`
+ // DefenderEmailContentExecutionType Value indicating if execution of executable content (exe, dll, ps, js, vbs, etc) should be dropped from email (webmail/mail-client)
+ DefenderEmailContentExecutionType *DefenderAttackSurfaceType `json:"defenderEmailContentExecutionType,omitempty"`
+ // DefenderEmailContentExecution Value indicating if execution of executable content (exe, dll, ps, js, vbs, etc) should be dropped from email (webmail/mail-client)
+ DefenderEmailContentExecution *DefenderProtectionType `json:"defenderEmailContentExecution,omitempty"`
+ // DefenderAdvancedRansomewareProtectionType Value indicating use of advanced protection against ransomeware
+ DefenderAdvancedRansomewareProtectionType *DefenderProtectionType `json:"defenderAdvancedRansomewareProtectionType,omitempty"`
+ // DefenderGuardMyFoldersType Value indicating the behavior of protected folders
+ DefenderGuardMyFoldersType *FolderProtectionType `json:"defenderGuardMyFoldersType,omitempty"`
+ // DefenderGuardedFoldersAllowedAppPaths List of paths to exe that are allowed to access protected folders
+ DefenderGuardedFoldersAllowedAppPaths []string `json:"defenderGuardedFoldersAllowedAppPaths,omitempty"`
+ // DefenderAdditionalGuardedFolders List of folder paths to be added to the list of protected folders
+ DefenderAdditionalGuardedFolders []string `json:"defenderAdditionalGuardedFolders,omitempty"`
+ // DefenderNetworkProtectionType Value indicating the behavior of NetworkProtection
+ DefenderNetworkProtectionType *DefenderProtectionType `json:"defenderNetworkProtectionType,omitempty"`
+ // DefenderExploitProtectionXML Xml content containing information regarding exploit protection details.
+ DefenderExploitProtectionXML *Binary `json:"defenderExploitProtectionXml,omitempty"`
+ // DefenderExploitProtectionXMLFileName Name of the file from which DefenderExploitProtectionXml was obtained.
+ DefenderExploitProtectionXMLFileName *string `json:"defenderExploitProtectionXmlFileName,omitempty"`
+ // DefenderSecurityCenterBlockExploitProtectionOverride Indicates whether or not to block user from overriding Exploit Protection settings.
+ DefenderSecurityCenterBlockExploitProtectionOverride *bool `json:"defenderSecurityCenterBlockExploitProtectionOverride,omitempty"`
+ // AppLockerApplicationControl Enables the Admin to choose what types of app to allow on devices.
+ AppLockerApplicationControl *AppLockerApplicationControlType `json:"appLockerApplicationControl,omitempty"`
+ // DeviceGuardLocalSystemAuthorityCredentialGuardSettings Turn on Credential Guard when Platform Security Level with Secure Boot and Virtualization Based Security are both enabled.
+ DeviceGuardLocalSystemAuthorityCredentialGuardSettings *DeviceGuardLocalSystemAuthorityCredentialGuardType `json:"deviceGuardLocalSystemAuthorityCredentialGuardSettings,omitempty"`
+ // DeviceGuardEnableVirtualizationBasedSecurity Turns On Virtualization Based Security(VBS).
+ DeviceGuardEnableVirtualizationBasedSecurity *bool `json:"deviceGuardEnableVirtualizationBasedSecurity,omitempty"`
+ // DeviceGuardEnableSecureBootWithDMA This property will be deprecated in May 2019 and will be replaced with property DeviceGuardSecureBootWithDMA. Specifies whether Platform Security Level is enabled at next reboot.
+ DeviceGuardEnableSecureBootWithDMA *bool `json:"deviceGuardEnableSecureBootWithDMA,omitempty"`
+ // DeviceGuardSecureBootWithDMA Specifies whether Platform Security Level is enabled at next reboot.
+ DeviceGuardSecureBootWithDMA *SecureBootWithDMAType `json:"deviceGuardSecureBootWithDMA,omitempty"`
+ // DeviceGuardLaunchSystemGuard Allows the IT admin to configure the launch of System Guard.
+ DeviceGuardLaunchSystemGuard *Enablement `json:"deviceGuardLaunchSystemGuard,omitempty"`
+ // SmartScreenEnableInShell Allows IT Admins to configure SmartScreen for Windows.
+ SmartScreenEnableInShell *bool `json:"smartScreenEnableInShell,omitempty"`
+ // SmartScreenBlockOverrideForFiles Allows IT Admins to control whether users can can ignore SmartScreen warnings and run malicious files.
+ SmartScreenBlockOverrideForFiles *bool `json:"smartScreenBlockOverrideForFiles,omitempty"`
+ // ApplicationGuardEnabled Enable Windows Defender Application Guard
+ ApplicationGuardEnabled *bool `json:"applicationGuardEnabled,omitempty"`
+ // ApplicationGuardEnabledOptions Enable Windows Defender Application Guard for newer Windows builds
+ ApplicationGuardEnabledOptions *ApplicationGuardEnabledOptions `json:"applicationGuardEnabledOptions,omitempty"`
+ // ApplicationGuardBlockFileTransfer Block clipboard to transfer image file, text file or neither of them
+ ApplicationGuardBlockFileTransfer *ApplicationGuardBlockFileTransferType `json:"applicationGuardBlockFileTransfer,omitempty"`
+ // ApplicationGuardBlockNonEnterpriseContent Block enterprise sites to load non-enterprise content, such as third party plug-ins
+ ApplicationGuardBlockNonEnterpriseContent *bool `json:"applicationGuardBlockNonEnterpriseContent,omitempty"`
+ // ApplicationGuardAllowPersistence Allow persisting user generated data inside the App Guard Containter (favorites, cookies, web passwords, etc.)
+ ApplicationGuardAllowPersistence *bool `json:"applicationGuardAllowPersistence,omitempty"`
+ // ApplicationGuardForceAuditing Force auditing will persist Windows logs and events to meet security/compliance criteria (sample events are user login-logoff, use of privilege rights, software installation, system changes, etc.)
+ ApplicationGuardForceAuditing *bool `json:"applicationGuardForceAuditing,omitempty"`
+ // ApplicationGuardBlockClipboardSharing Block clipboard to share data from Host to Container, or from Container to Host, or both ways, or neither ways.
+ ApplicationGuardBlockClipboardSharing *ApplicationGuardBlockClipboardSharingType `json:"applicationGuardBlockClipboardSharing,omitempty"`
+ // ApplicationGuardAllowPrintToPDF Allow printing to PDF from Container
+ ApplicationGuardAllowPrintToPDF *bool `json:"applicationGuardAllowPrintToPDF,omitempty"`
+ // ApplicationGuardAllowPrintToXPS Allow printing to XPS from Container
+ ApplicationGuardAllowPrintToXPS *bool `json:"applicationGuardAllowPrintToXPS,omitempty"`
+ // ApplicationGuardAllowPrintToLocalPrinters Allow printing to Local Printers from Container
+ ApplicationGuardAllowPrintToLocalPrinters *bool `json:"applicationGuardAllowPrintToLocalPrinters,omitempty"`
+ // ApplicationGuardAllowPrintToNetworkPrinters Allow printing to Network Printers from Container
+ ApplicationGuardAllowPrintToNetworkPrinters *bool `json:"applicationGuardAllowPrintToNetworkPrinters,omitempty"`
+ // ApplicationGuardAllowVirtualGPU Allow application guard to use virtual GPU
+ ApplicationGuardAllowVirtualGPU *bool `json:"applicationGuardAllowVirtualGPU,omitempty"`
+ // ApplicationGuardAllowFileSaveOnHost Allow users to download files from Edge in the application guard container and save them on the host file system
+ ApplicationGuardAllowFileSaveOnHost *bool `json:"applicationGuardAllowFileSaveOnHost,omitempty"`
+ // BitLockerAllowStandardUserEncryption Allows the admin to allow standard users to enable encrpytion during Azure AD Join.
+ BitLockerAllowStandardUserEncryption *bool `json:"bitLockerAllowStandardUserEncryption,omitempty"`
+ // BitLockerDisableWarningForOtherDiskEncryption Allows the Admin to disable the warning prompt for other disk encryption on the user machines.
+ BitLockerDisableWarningForOtherDiskEncryption *bool `json:"bitLockerDisableWarningForOtherDiskEncryption,omitempty"`
+ // BitLockerEnableStorageCardEncryptionOnMobile Allows the admin to require encryption to be turned on using BitLocker. This policy is valid only for a mobile SKU.
+ BitLockerEnableStorageCardEncryptionOnMobile *bool `json:"bitLockerEnableStorageCardEncryptionOnMobile,omitempty"`
+ // BitLockerEncryptDevice Allows the admin to require encryption to be turned on using BitLocker.
+ BitLockerEncryptDevice *bool `json:"bitLockerEncryptDevice,omitempty"`
+ // BitLockerSystemDrivePolicy BitLocker System Drive Policy.
+ BitLockerSystemDrivePolicy *BitLockerSystemDrivePolicy `json:"bitLockerSystemDrivePolicy,omitempty"`
+ // BitLockerFixedDrivePolicy BitLocker Fixed Drive Policy.
+ BitLockerFixedDrivePolicy *BitLockerFixedDrivePolicy `json:"bitLockerFixedDrivePolicy,omitempty"`
+ // BitLockerRemovableDrivePolicy BitLocker Removable Drive Policy.
+ BitLockerRemovableDrivePolicy *BitLockerRemovableDrivePolicy `json:"bitLockerRemovableDrivePolicy,omitempty"`
+ // BitLockerRecoveryPasswordRotation This setting initiates a client-driven recovery password rotation after an OS drive recovery (either by using bootmgr or WinRE).
+ BitLockerRecoveryPasswordRotation *BitLockerRecoveryPasswordRotationType `json:"bitLockerRecoveryPasswordRotation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationModel.go
new file mode 100644
index 00000000..c0238ffe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationModel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10EnrollmentCompletionPageConfiguration Windows 10 Enrollment Status Page Configuration
+type Windows10EnrollmentCompletionPageConfiguration struct {
+ // DeviceEnrollmentConfiguration is the base model of Windows10EnrollmentCompletionPageConfiguration
+ DeviceEnrollmentConfiguration
+ // ShowInstallationProgress Show or hide installation progress to user
+ ShowInstallationProgress *bool `json:"showInstallationProgress,omitempty"`
+ // BlockDeviceSetupRetryByUser Allow the user to retry the setup on installation failure
+ BlockDeviceSetupRetryByUser *bool `json:"blockDeviceSetupRetryByUser,omitempty"`
+ // AllowDeviceResetOnInstallFailure Allow or block device reset on installation failure
+ AllowDeviceResetOnInstallFailure *bool `json:"allowDeviceResetOnInstallFailure,omitempty"`
+ // AllowLogCollectionOnInstallFailure Allow or block log collection on installation failure
+ AllowLogCollectionOnInstallFailure *bool `json:"allowLogCollectionOnInstallFailure,omitempty"`
+ // CustomErrorMessage Set custom error message to show upon installation failure
+ CustomErrorMessage *string `json:"customErrorMessage,omitempty"`
+ // InstallProgressTimeoutInMinutes Set installation progress timeout in minutes
+ InstallProgressTimeoutInMinutes *int `json:"installProgressTimeoutInMinutes,omitempty"`
+ // AllowDeviceUseOnInstallFailure Allow the user to continue using the device on installation failure
+ AllowDeviceUseOnInstallFailure *bool `json:"allowDeviceUseOnInstallFailure,omitempty"`
+ // SelectedMobileAppIDs Selected applications to track the installation status
+ SelectedMobileAppIDs []string `json:"selectedMobileAppIds,omitempty"`
+ // TrackInstallProgressForAutopilotOnly Only show installation progress for Autopilot enrollment scenarios
+ TrackInstallProgressForAutopilotOnly *bool `json:"trackInstallProgressForAutopilotOnly,omitempty"`
+ // DisableUserStatusTrackingAfterFirstUser Only show installation progress for first user post enrollment
+ DisableUserStatusTrackingAfterFirstUser *bool `json:"disableUserStatusTrackingAfterFirstUser,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationPolicySetItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationPolicySetItemModel.go
new file mode 100644
index 00000000..e24be4a1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EnrollmentCompletionPageConfigurationPolicySetItemModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10EnrollmentCompletionPageConfigurationPolicySetItem A class containing the properties used for Windows10EnrollmentCompletionPageConfiguration PolicySetItem.
+type Windows10EnrollmentCompletionPageConfigurationPolicySetItem struct {
+ // PolicySetItem is the base model of Windows10EnrollmentCompletionPageConfigurationPolicySetItem
+ PolicySetItem
+ // Priority Priority of the Windows10EnrollmentCompletionPageConfigurationPolicySetItem.
+ Priority *int `json:"priority,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EnterpriseModernAppManagementConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EnterpriseModernAppManagementConfigurationModel.go
new file mode 100644
index 00000000..555e3697
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10EnterpriseModernAppManagementConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10EnterpriseModernAppManagementConfiguration Windows10 Enterprise Modern App Management Configuration.
+type Windows10EnterpriseModernAppManagementConfiguration struct {
+ // DeviceConfiguration is the base model of Windows10EnterpriseModernAppManagementConfiguration
+ DeviceConfiguration
+ // UninstallBuiltInApps Indicates whether or not to uninstall a fixed list of built-in Windows apps.
+ UninstallBuiltInApps *bool `json:"uninstallBuiltInApps,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10GeneralConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10GeneralConfigurationModel.go
new file mode 100644
index 00000000..0312f9c6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10GeneralConfigurationModel.go
@@ -0,0 +1,569 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Windows10GeneralConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the windows10GeneralConfiguration resource.
+type Windows10GeneralConfiguration struct {
+ // DeviceConfiguration is the base model of Windows10GeneralConfiguration
+ DeviceConfiguration
+ // TaskManagerBlockEndTask Specify whether non-administrators can use Task Manager to end tasks.
+ TaskManagerBlockEndTask *bool `json:"taskManagerBlockEndTask,omitempty"`
+ // EnergySaverOnBatteryThresholdPercentage This setting allows you to specify battery charge level at which Energy Saver is turned on. While on battery, Energy Saver is automatically turned on at (and below) the specified battery charge level. Valid input range (0-100). Valid values 0 to 100
+ EnergySaverOnBatteryThresholdPercentage *int `json:"energySaverOnBatteryThresholdPercentage,omitempty"`
+ // EnergySaverPluggedInThresholdPercentage This setting allows you to specify battery charge level at which Energy Saver is turned on. While plugged in, Energy Saver is automatically turned on at (and below) the specified battery charge level. Valid input range (0-100). Valid values 0 to 100
+ EnergySaverPluggedInThresholdPercentage *int `json:"energySaverPluggedInThresholdPercentage,omitempty"`
+ // PowerLidCloseActionOnBattery This setting specifies the action that Windows takes when a user closes the lid on a mobile PC while on battery.
+ PowerLidCloseActionOnBattery *PowerActionType `json:"powerLidCloseActionOnBattery,omitempty"`
+ // PowerLidCloseActionPluggedIn This setting specifies the action that Windows takes when a user closes the lid on a mobile PC while plugged in.
+ PowerLidCloseActionPluggedIn *PowerActionType `json:"powerLidCloseActionPluggedIn,omitempty"`
+ // PowerButtonActionOnBattery This setting specifies the action that Windows takes when a user presses the Power button while on battery.
+ PowerButtonActionOnBattery *PowerActionType `json:"powerButtonActionOnBattery,omitempty"`
+ // PowerButtonActionPluggedIn This setting specifies the action that Windows takes when a user presses the Power button while plugged in.
+ PowerButtonActionPluggedIn *PowerActionType `json:"powerButtonActionPluggedIn,omitempty"`
+ // PowerSleepButtonActionOnBattery This setting specifies the action that Windows takes when a user presses the Sleep button while on battery.
+ PowerSleepButtonActionOnBattery *PowerActionType `json:"powerSleepButtonActionOnBattery,omitempty"`
+ // PowerSleepButtonActionPluggedIn This setting specifies the action that Windows takes when a user presses the Sleep button while plugged in.
+ PowerSleepButtonActionPluggedIn *PowerActionType `json:"powerSleepButtonActionPluggedIn,omitempty"`
+ // PowerHybridSleepOnBattery This setting allows you to turn off hybrid sleep while on battery. If you set this setting to disable, a hiberfile is not generated when the system transitions to sleep (Stand By). If you set this setting to enable or do not configure this policy setting, users control this setting.
+ PowerHybridSleepOnBattery *Enablement `json:"powerHybridSleepOnBattery,omitempty"`
+ // PowerHybridSleepPluggedIn This setting allows you to turn off hybrid sleep while plugged in. If you set this setting to disable, a hiberfile is not generated when the system transitions to sleep (Stand By). If you set this setting to enable or do not configure this policy setting, users control this setting.
+ PowerHybridSleepPluggedIn *Enablement `json:"powerHybridSleepPluggedIn,omitempty"`
+ // Windows10AppsForceUpdateSchedule Windows 10 force update schedule for Apps.
+ Windows10AppsForceUpdateSchedule *Windows10AppsForceUpdateSchedule `json:"windows10AppsForceUpdateSchedule,omitempty"`
+ // EnableAutomaticRedeployment Allow users with administrative rights to delete all user data and settings using CTRL + Win + R at the device lock screen so that the device can be automatically re-configured and re-enrolled into management.
+ EnableAutomaticRedeployment *bool `json:"enableAutomaticRedeployment,omitempty"`
+ // MicrosoftAccountSignInAssistantSettings Controls the Microsoft Account Sign-In Assistant (wlidsvc) NT service.
+ MicrosoftAccountSignInAssistantSettings *SignInAssistantOptions `json:"microsoftAccountSignInAssistantSettings,omitempty"`
+ // AuthenticationAllowSecondaryDevice Allows secondary authentication devices to work with Windows.
+ AuthenticationAllowSecondaryDevice *bool `json:"authenticationAllowSecondaryDevice,omitempty"`
+ // AuthenticationWebSignIn Indicates whether or not Web Credential Provider will be enabled.
+ AuthenticationWebSignIn *Enablement `json:"authenticationWebSignIn,omitempty"`
+ // AuthenticationPreferredAzureADTenantDomainName Specifies the preferred domain among available domains in the Azure AD tenant.
+ AuthenticationPreferredAzureADTenantDomainName *string `json:"authenticationPreferredAzureADTenantDomainName,omitempty"`
+ // CryptographyAllowFipsAlgorithmPolicy Specify whether to allow or disallow the Federal Information Processing Standard (FIPS) policy.
+ CryptographyAllowFipsAlgorithmPolicy *bool `json:"cryptographyAllowFipsAlgorithmPolicy,omitempty"`
+ // DisplayAppListWithGdiDPIScalingTurnedOn List of legacy applications that have GDI DPI Scaling turned on.
+ DisplayAppListWithGdiDPIScalingTurnedOn []string `json:"displayAppListWithGdiDPIScalingTurnedOn,omitempty"`
+ // DisplayAppListWithGdiDPIScalingTurnedOff List of legacy applications that have GDI DPI Scaling turned off.
+ DisplayAppListWithGdiDPIScalingTurnedOff []string `json:"displayAppListWithGdiDPIScalingTurnedOff,omitempty"`
+ // EnterpriseCloudPrintDiscoveryEndPoint Endpoint for discovering cloud printers.
+ EnterpriseCloudPrintDiscoveryEndPoint *string `json:"enterpriseCloudPrintDiscoveryEndPoint,omitempty"`
+ // EnterpriseCloudPrintOAuthAuthority Authentication endpoint for acquiring OAuth tokens.
+ EnterpriseCloudPrintOAuthAuthority *string `json:"enterpriseCloudPrintOAuthAuthority,omitempty"`
+ // EnterpriseCloudPrintOAuthClientIdentifier GUID of a client application authorized to retrieve OAuth tokens from the OAuth Authority.
+ EnterpriseCloudPrintOAuthClientIdentifier *string `json:"enterpriseCloudPrintOAuthClientIdentifier,omitempty"`
+ // EnterpriseCloudPrintResourceIdentifier OAuth resource URI for print service as configured in the Azure portal.
+ EnterpriseCloudPrintResourceIdentifier *string `json:"enterpriseCloudPrintResourceIdentifier,omitempty"`
+ // EnterpriseCloudPrintDiscoveryMaxLimit Maximum number of printers that should be queried from a discovery endpoint. This is a mobile only setting. Valid values 1 to 65535
+ EnterpriseCloudPrintDiscoveryMaxLimit *int `json:"enterpriseCloudPrintDiscoveryMaxLimit,omitempty"`
+ // EnterpriseCloudPrintMopriaDiscoveryResourceIdentifier OAuth resource URI for printer discovery service as configured in Azure portal.
+ EnterpriseCloudPrintMopriaDiscoveryResourceIdentifier *string `json:"enterpriseCloudPrintMopriaDiscoveryResourceIdentifier,omitempty"`
+ // ExperienceDoNotSyncBrowserSettings Allow or prevent the syncing of Microsoft Edge Browser settings. Option for IT admins to prevent syncing across devices, but allow user override.
+ ExperienceDoNotSyncBrowserSettings *BrowserSyncSetting `json:"experienceDoNotSyncBrowserSettings,omitempty"`
+ // MessagingBlockSync Indicates whether or not to block text message back up and restore and Messaging Everywhere.
+ MessagingBlockSync *bool `json:"messagingBlockSync,omitempty"`
+ // MessagingBlockMMS Indicates whether or not to block the MMS send/receive functionality on the device.
+ MessagingBlockMMS *bool `json:"messagingBlockMMS,omitempty"`
+ // MessagingBlockRichCommunicationServices Indicates whether or not to block the RCS send/receive functionality on the device.
+ MessagingBlockRichCommunicationServices *bool `json:"messagingBlockRichCommunicationServices,omitempty"`
+ // PrinterNames Automatically provision printers based on their names (network host names).
+ PrinterNames []string `json:"printerNames,omitempty"`
+ // PrinterDefaultName Name (network host name) of an installed printer.
+ PrinterDefaultName *string `json:"printerDefaultName,omitempty"`
+ // PrinterBlockAddition Prevent user installation of additional printers from printers settings.
+ PrinterBlockAddition *bool `json:"printerBlockAddition,omitempty"`
+ // SearchBlockDiacritics Specifies if search can use diacritics.
+ SearchBlockDiacritics *bool `json:"searchBlockDiacritics,omitempty"`
+ // SearchDisableAutoLanguageDetection Specifies whether to use automatic language detection when indexing content and properties.
+ SearchDisableAutoLanguageDetection *bool `json:"searchDisableAutoLanguageDetection,omitempty"`
+ // SearchDisableIndexingEncryptedItems Indicates whether or not to block indexing of WIP-protected items to prevent them from appearing in search results for Cortana or Explorer.
+ SearchDisableIndexingEncryptedItems *bool `json:"searchDisableIndexingEncryptedItems,omitempty"`
+ // SearchEnableRemoteQueries Indicates whether or not to block remote queries of this computer’s index.
+ SearchEnableRemoteQueries *bool `json:"searchEnableRemoteQueries,omitempty"`
+ // SearchDisableUseLocation Specifies if search can use location information.
+ SearchDisableUseLocation *bool `json:"searchDisableUseLocation,omitempty"`
+ // SearchDisableLocation Specifies if search can use location information.
+ SearchDisableLocation *bool `json:"searchDisableLocation,omitempty"`
+ // SearchDisableIndexerBackoff Indicates whether or not to disable the search indexer backoff feature.
+ SearchDisableIndexerBackoff *bool `json:"searchDisableIndexerBackoff,omitempty"`
+ // SearchDisableIndexingRemovableDrive Indicates whether or not to allow users to add locations on removable drives to libraries and to be indexed.
+ SearchDisableIndexingRemovableDrive *bool `json:"searchDisableIndexingRemovableDrive,omitempty"`
+ // SearchEnableAutomaticIndexSizeManangement Specifies minimum amount of hard drive space on the same drive as the index location before indexing stops.
+ SearchEnableAutomaticIndexSizeManangement *bool `json:"searchEnableAutomaticIndexSizeManangement,omitempty"`
+ // SearchBlockWebResults Indicates whether or not to block the web search.
+ SearchBlockWebResults *bool `json:"searchBlockWebResults,omitempty"`
+ // SecurityBlockAzureADJoinedDevicesAutoEncryption Specify whether to allow automatic device encryption during OOBE when the device is Azure AD joined (desktop only).
+ SecurityBlockAzureADJoinedDevicesAutoEncryption *bool `json:"securityBlockAzureADJoinedDevicesAutoEncryption,omitempty"`
+ // DiagnosticsDataSubmissionMode Gets or sets a value allowing the device to send diagnostic and usage telemetry data, such as Watson.
+ DiagnosticsDataSubmissionMode *DiagnosticDataSubmissionMode `json:"diagnosticsDataSubmissionMode,omitempty"`
+ // OneDriveDisableFileSync Gets or sets a value allowing IT admins to prevent apps and features from working with files on OneDrive.
+ OneDriveDisableFileSync *bool `json:"oneDriveDisableFileSync,omitempty"`
+ // SystemTelemetryProxyServer Gets or sets the fully qualified domain name (FQDN) or IP address of a proxy server to forward Connected User Experiences and Telemetry requests.
+ SystemTelemetryProxyServer *string `json:"systemTelemetryProxyServer,omitempty"`
+ // EdgeTelemetryForMicrosoft365Analytics Specifies what type of telemetry data (none, intranet, internet, both) is sent to Microsoft 365 Analytics
+ EdgeTelemetryForMicrosoft365Analytics *EdgeTelemetryMode `json:"edgeTelemetryForMicrosoft365Analytics,omitempty"`
+ // InkWorkspaceAccess Controls the user access to the ink workspace, from the desktop and from above the lock screen.
+ InkWorkspaceAccess *InkAccessSetting `json:"inkWorkspaceAccess,omitempty"`
+ // InkWorkspaceAccessState Controls the user access to the ink workspace, from the desktop and from above the lock screen.
+ InkWorkspaceAccessState *StateManagementSetting `json:"inkWorkspaceAccessState,omitempty"`
+ // InkWorkspaceBlockSuggestedApps Specify whether to show recommended app suggestions in the ink workspace.
+ InkWorkspaceBlockSuggestedApps *bool `json:"inkWorkspaceBlockSuggestedApps,omitempty"`
+ // SmartScreenEnableAppInstallControl This property will be deprecated in July 2019 and will be replaced by property SmartScreenAppInstallControl. Allows IT Admins to control whether users are allowed to install apps from places other than the Store.
+ SmartScreenEnableAppInstallControl *bool `json:"smartScreenEnableAppInstallControl,omitempty"`
+ // SmartScreenAppInstallControl Added in Windows 10, version 1703. Allows IT Admins to control whether users are allowed to install apps from places other than the Store.
+ SmartScreenAppInstallControl *AppInstallControlType `json:"smartScreenAppInstallControl,omitempty"`
+ // PersonalizationDesktopImageURL A http or https Url to a jpg, jpeg or png image that needs to be downloaded and used as the Desktop Image or a file Url to a local image on the file system that needs to used as the Desktop Image.
+ PersonalizationDesktopImageURL *string `json:"personalizationDesktopImageUrl,omitempty"`
+ // PersonalizationLockScreenImageURL A http or https Url to a jpg, jpeg or png image that neeeds to be downloaded and used as the Lock Screen Image or a file Url to a local image on the file system that needs to be used as the Lock Screen Image.
+ PersonalizationLockScreenImageURL *string `json:"personalizationLockScreenImageUrl,omitempty"`
+ // BluetoothAllowedServices Specify a list of allowed Bluetooth services and profiles in hex formatted strings.
+ BluetoothAllowedServices []string `json:"bluetoothAllowedServices,omitempty"`
+ // BluetoothBlockAdvertising Whether or not to Block the user from using bluetooth advertising.
+ BluetoothBlockAdvertising *bool `json:"bluetoothBlockAdvertising,omitempty"`
+ // BluetoothBlockPromptedProximalConnections Whether or not to block the users from using Swift Pair and other proximity based scenarios.
+ BluetoothBlockPromptedProximalConnections *bool `json:"bluetoothBlockPromptedProximalConnections,omitempty"`
+ // BluetoothBlockDiscoverableMode Whether or not to Block the user from using bluetooth discoverable mode.
+ BluetoothBlockDiscoverableMode *bool `json:"bluetoothBlockDiscoverableMode,omitempty"`
+ // BluetoothBlockPrePairing Whether or not to block specific bundled Bluetooth peripherals to automatically pair with the host device.
+ BluetoothBlockPrePairing *bool `json:"bluetoothBlockPrePairing,omitempty"`
+ // EdgeBlockAutofill Indicates whether or not to block auto fill.
+ EdgeBlockAutofill *bool `json:"edgeBlockAutofill,omitempty"`
+ // EdgeBlocked Indicates whether or not to Block the user from using the Edge browser.
+ EdgeBlocked *bool `json:"edgeBlocked,omitempty"`
+ // EdgeCookiePolicy Indicates which cookies to block in the Edge browser.
+ EdgeCookiePolicy *EdgeCookiePolicy `json:"edgeCookiePolicy,omitempty"`
+ // EdgeBlockDeveloperTools Indicates whether or not to block developer tools in the Edge browser.
+ EdgeBlockDeveloperTools *bool `json:"edgeBlockDeveloperTools,omitempty"`
+ // EdgeBlockSendingDoNotTrackHeader Indicates whether or not to Block the user from sending the do not track header.
+ EdgeBlockSendingDoNotTrackHeader *bool `json:"edgeBlockSendingDoNotTrackHeader,omitempty"`
+ // EdgeBlockExtensions Indicates whether or not to block extensions in the Edge browser.
+ EdgeBlockExtensions *bool `json:"edgeBlockExtensions,omitempty"`
+ // EdgeBlockInPrivateBrowsing Indicates whether or not to block InPrivate browsing on corporate networks, in the Edge browser.
+ EdgeBlockInPrivateBrowsing *bool `json:"edgeBlockInPrivateBrowsing,omitempty"`
+ // EdgeBlockJavaScript Indicates whether or not to Block the user from using JavaScript.
+ EdgeBlockJavaScript *bool `json:"edgeBlockJavaScript,omitempty"`
+ // EdgeBlockPasswordManager Indicates whether or not to Block password manager.
+ EdgeBlockPasswordManager *bool `json:"edgeBlockPasswordManager,omitempty"`
+ // EdgeBlockAddressBarDropdown Block the address bar dropdown functionality in Microsoft Edge. Disable this settings to minimize network connections from Microsoft Edge to Microsoft services.
+ EdgeBlockAddressBarDropdown *bool `json:"edgeBlockAddressBarDropdown,omitempty"`
+ // EdgeBlockCompatibilityList Block Microsoft compatibility list in Microsoft Edge. This list from Microsoft helps Edge properly display sites with known compatibility issues.
+ EdgeBlockCompatibilityList *bool `json:"edgeBlockCompatibilityList,omitempty"`
+ // EdgeClearBrowsingDataOnExit Clear browsing data on exiting Microsoft Edge.
+ EdgeClearBrowsingDataOnExit *bool `json:"edgeClearBrowsingDataOnExit,omitempty"`
+ // EdgeAllowStartPagesModification Allow users to change Start pages on Edge. Use the EdgeHomepageUrls to specify the Start pages that the user would see by default when they open Edge.
+ EdgeAllowStartPagesModification *bool `json:"edgeAllowStartPagesModification,omitempty"`
+ // EdgeDisableFirstRunPage Block the Microsoft web page that opens on the first use of Microsoft Edge. This policy allows enterprises, like those enrolled in zero emissions configurations, to block this page.
+ EdgeDisableFirstRunPage *bool `json:"edgeDisableFirstRunPage,omitempty"`
+ // EdgeBlockLiveTileDataCollection Block the collection of information by Microsoft for live tile creation when users pin a site to Start from Microsoft Edge.
+ EdgeBlockLiveTileDataCollection *bool `json:"edgeBlockLiveTileDataCollection,omitempty"`
+ // EdgeSyncFavoritesWithInternetExplorer Enable favorites sync between Internet Explorer and Microsoft Edge. Additions, deletions, modifications and order changes to favorites are shared between browsers.
+ EdgeSyncFavoritesWithInternetExplorer *bool `json:"edgeSyncFavoritesWithInternetExplorer,omitempty"`
+ // EdgeFavoritesListLocation The location of the favorites list to provision. Could be a local file, local network or http location.
+ EdgeFavoritesListLocation *string `json:"edgeFavoritesListLocation,omitempty"`
+ // EdgeBlockEditFavorites Indicates whether or not to Block the user from making changes to Favorites.
+ EdgeBlockEditFavorites *bool `json:"edgeBlockEditFavorites,omitempty"`
+ // EdgeNewTabPageURL Specify the page opened when new tabs are created.
+ EdgeNewTabPageURL *string `json:"edgeNewTabPageURL,omitempty"`
+ // EdgeHomeButtonConfiguration Causes the Home button to either hide, load the default Start page, load a New tab page, or a custom URL
+ EdgeHomeButtonConfiguration *EdgeHomeButtonConfiguration `json:"edgeHomeButtonConfiguration,omitempty"`
+ // EdgeHomeButtonConfigurationEnabled Enable the Home button configuration.
+ EdgeHomeButtonConfigurationEnabled *bool `json:"edgeHomeButtonConfigurationEnabled,omitempty"`
+ // EdgeOpensWith Specify what kind of pages are open at start.
+ EdgeOpensWith *EdgeOpenOptions `json:"edgeOpensWith,omitempty"`
+ // EdgeBlockSideloadingExtensions Indicates whether the user can sideload extensions.
+ EdgeBlockSideloadingExtensions *bool `json:"edgeBlockSideloadingExtensions,omitempty"`
+ // EdgeRequiredExtensionPackageFamilyNames Specify the list of package family names of browser extensions that are required and cannot be turned off by the user.
+ EdgeRequiredExtensionPackageFamilyNames []string `json:"edgeRequiredExtensionPackageFamilyNames,omitempty"`
+ // EdgeBlockPrinting Configure Edge to allow or block printing.
+ EdgeBlockPrinting *bool `json:"edgeBlockPrinting,omitempty"`
+ // EdgeFavoritesBarVisibility Get or set a value that specifies whether to set the favorites bar to always be visible or hidden on any page.
+ EdgeFavoritesBarVisibility *VisibilitySetting `json:"edgeFavoritesBarVisibility,omitempty"`
+ // EdgeBlockSavingHistory Configure Edge to allow browsing history to be saved or to never save browsing history.
+ EdgeBlockSavingHistory *bool `json:"edgeBlockSavingHistory,omitempty"`
+ // EdgeBlockFullScreenMode Allow or prevent Edge from entering the full screen mode.
+ EdgeBlockFullScreenMode *bool `json:"edgeBlockFullScreenMode,omitempty"`
+ // EdgeBlockWebContentOnNewTabPage Configure to load a blank page in Edge instead of the default New tab page and prevent users from changing it.
+ EdgeBlockWebContentOnNewTabPage *bool `json:"edgeBlockWebContentOnNewTabPage,omitempty"`
+ // EdgeBlockTabPreloading Configure whether Edge preloads the new tab page at Windows startup.
+ EdgeBlockTabPreloading *bool `json:"edgeBlockTabPreloading,omitempty"`
+ // EdgeBlockPrelaunch Decide whether Microsoft Edge is prelaunched at Windows startup.
+ EdgeBlockPrelaunch *bool `json:"edgeBlockPrelaunch,omitempty"`
+ // EdgeShowMessageWhenOpeningInternetExplorerSites Controls the message displayed by Edge before switching to Internet Explorer.
+ EdgeShowMessageWhenOpeningInternetExplorerSites *InternetExplorerMessageSetting `json:"edgeShowMessageWhenOpeningInternetExplorerSites,omitempty"`
+ // EdgePreventCertificateErrorOverride Allow or prevent users from overriding certificate errors.
+ EdgePreventCertificateErrorOverride *bool `json:"edgePreventCertificateErrorOverride,omitempty"`
+ // EdgeKioskModeRestriction Controls how the Microsoft Edge settings are restricted based on the configure kiosk mode.
+ EdgeKioskModeRestriction *EdgeKioskModeRestrictionType `json:"edgeKioskModeRestriction,omitempty"`
+ // EdgeKioskResetAfterIdleTimeInMinutes Specifies the time in minutes from the last user activity before Microsoft Edge kiosk resets. Valid values are 0-1440. The default is 5. 0 indicates no reset. Valid values 0 to 1440
+ EdgeKioskResetAfterIdleTimeInMinutes *int `json:"edgeKioskResetAfterIdleTimeInMinutes,omitempty"`
+ // CellularBlockDataWhenRoaming Whether or not to Block the user from using data over cellular while roaming.
+ CellularBlockDataWhenRoaming *bool `json:"cellularBlockDataWhenRoaming,omitempty"`
+ // CellularBlockVpn Whether or not to Block the user from using VPN over cellular.
+ CellularBlockVpn *bool `json:"cellularBlockVpn,omitempty"`
+ // CellularBlockVpnWhenRoaming Whether or not to Block the user from using VPN when roaming over cellular.
+ CellularBlockVpnWhenRoaming *bool `json:"cellularBlockVpnWhenRoaming,omitempty"`
+ // CellularData Whether or not to allow the cellular data channel on the device. If not configured, the cellular data channel is allowed and the user can turn it off.
+ CellularData *ConfigurationUsage `json:"cellularData,omitempty"`
+ // DefenderBlockEndUserAccess Whether or not to block end user access to Defender.
+ DefenderBlockEndUserAccess *bool `json:"defenderBlockEndUserAccess,omitempty"`
+ // DefenderDaysBeforeDeletingQuarantinedMalware Number of days before deleting quarantined malware. Valid values 0 to 90
+ DefenderDaysBeforeDeletingQuarantinedMalware *int `json:"defenderDaysBeforeDeletingQuarantinedMalware,omitempty"`
+ // DefenderDetectedMalwareActions Gets or sets Defender’s actions to take on detected Malware per threat level.
+ DefenderDetectedMalwareActions *DefenderDetectedMalwareActions `json:"defenderDetectedMalwareActions,omitempty"`
+ // DefenderSystemScanSchedule Defender day of the week for the system scan.
+ DefenderSystemScanSchedule *WeeklySchedule `json:"defenderSystemScanSchedule,omitempty"`
+ // DefenderFilesAndFoldersToExclude Files and folder to exclude from scans and real time protection.
+ DefenderFilesAndFoldersToExclude []string `json:"defenderFilesAndFoldersToExclude,omitempty"`
+ // DefenderFileExtensionsToExclude File extensions to exclude from scans and real time protection.
+ DefenderFileExtensionsToExclude []string `json:"defenderFileExtensionsToExclude,omitempty"`
+ // DefenderScanMaxCPU Max CPU usage percentage during scan. Valid values 0 to 100
+ DefenderScanMaxCPU *int `json:"defenderScanMaxCpu,omitempty"`
+ // DefenderMonitorFileActivity Value for monitoring file activity.
+ DefenderMonitorFileActivity *DefenderMonitorFileActivity `json:"defenderMonitorFileActivity,omitempty"`
+ // DefenderPotentiallyUnwantedAppAction Gets or sets Defender’s action to take on Potentially Unwanted Application (PUA), which includes software with behaviors of ad-injection, software bundling, persistent solicitation for payment or subscription, etc. Defender alerts user when PUA is being downloaded or attempts to install itself. Added in Windows 10 for desktop.
+ DefenderPotentiallyUnwantedAppAction *DefenderPotentiallyUnwantedAppAction `json:"defenderPotentiallyUnwantedAppAction,omitempty"`
+ // DefenderPotentiallyUnwantedAppActionSetting Gets or sets Defender’s action to take on Potentially Unwanted Application (PUA), which includes software with behaviors of ad-injection, software bundling, persistent solicitation for payment or subscription, etc. Defender alerts user when PUA is being downloaded or attempts to install itself. Added in Windows 10 for desktop.
+ DefenderPotentiallyUnwantedAppActionSetting *DefenderProtectionType `json:"defenderPotentiallyUnwantedAppActionSetting,omitempty"`
+ // DefenderProcessesToExclude Processes to exclude from scans and real time protection.
+ DefenderProcessesToExclude []string `json:"defenderProcessesToExclude,omitempty"`
+ // DefenderPromptForSampleSubmission The configuration for how to prompt user for sample submission.
+ DefenderPromptForSampleSubmission *DefenderPromptForSampleSubmission `json:"defenderPromptForSampleSubmission,omitempty"`
+ // DefenderRequireBehaviorMonitoring Indicates whether or not to require behavior monitoring.
+ DefenderRequireBehaviorMonitoring *bool `json:"defenderRequireBehaviorMonitoring,omitempty"`
+ // DefenderRequireCloudProtection Indicates whether or not to require cloud protection.
+ DefenderRequireCloudProtection *bool `json:"defenderRequireCloudProtection,omitempty"`
+ // DefenderRequireNetworkInspectionSystem Indicates whether or not to require network inspection system.
+ DefenderRequireNetworkInspectionSystem *bool `json:"defenderRequireNetworkInspectionSystem,omitempty"`
+ // DefenderRequireRealTimeMonitoring Indicates whether or not to require real time monitoring.
+ DefenderRequireRealTimeMonitoring *bool `json:"defenderRequireRealTimeMonitoring,omitempty"`
+ // DefenderScanArchiveFiles Indicates whether or not to scan archive files.
+ DefenderScanArchiveFiles *bool `json:"defenderScanArchiveFiles,omitempty"`
+ // DefenderScanDownloads Indicates whether or not to scan downloads.
+ DefenderScanDownloads *bool `json:"defenderScanDownloads,omitempty"`
+ // DefenderScheduleScanEnableLowCPUPriority When enabled, low CPU priority will be used during scheduled scans.
+ DefenderScheduleScanEnableLowCPUPriority *bool `json:"defenderScheduleScanEnableLowCpuPriority,omitempty"`
+ // DefenderDisableCatchupQuickScan When blocked, catch-up scans for scheduled quick scans will be turned off.
+ DefenderDisableCatchupQuickScan *bool `json:"defenderDisableCatchupQuickScan,omitempty"`
+ // DefenderDisableCatchupFullScan When blocked, catch-up scans for scheduled full scans will be turned off.
+ DefenderDisableCatchupFullScan *bool `json:"defenderDisableCatchupFullScan,omitempty"`
+ // DefenderScanNetworkFiles Indicates whether or not to scan files opened from a network folder.
+ DefenderScanNetworkFiles *bool `json:"defenderScanNetworkFiles,omitempty"`
+ // DefenderScanIncomingMail Indicates whether or not to scan incoming mail messages.
+ DefenderScanIncomingMail *bool `json:"defenderScanIncomingMail,omitempty"`
+ // DefenderScanMappedNetworkDrivesDuringFullScan Indicates whether or not to scan mapped network drives during full scan.
+ DefenderScanMappedNetworkDrivesDuringFullScan *bool `json:"defenderScanMappedNetworkDrivesDuringFullScan,omitempty"`
+ // DefenderScanRemovableDrivesDuringFullScan Indicates whether or not to scan removable drives during full scan.
+ DefenderScanRemovableDrivesDuringFullScan *bool `json:"defenderScanRemovableDrivesDuringFullScan,omitempty"`
+ // DefenderScanScriptsLoadedInInternetExplorer Indicates whether or not to scan scripts loaded in Internet Explorer browser.
+ DefenderScanScriptsLoadedInInternetExplorer *bool `json:"defenderScanScriptsLoadedInInternetExplorer,omitempty"`
+ // DefenderSignatureUpdateIntervalInHours The signature update interval in hours. Specify 0 not to check. Valid values 0 to 24
+ DefenderSignatureUpdateIntervalInHours *int `json:"defenderSignatureUpdateIntervalInHours,omitempty"`
+ // DefenderScanType The defender system scan type.
+ DefenderScanType *DefenderScanType `json:"defenderScanType,omitempty"`
+ // DefenderScheduledScanTime The defender time for the system scan.
+ DefenderScheduledScanTime *time.Time `json:"defenderScheduledScanTime,omitempty"`
+ // DefenderScheduledQuickScanTime The time to perform a daily quick scan.
+ DefenderScheduledQuickScanTime *time.Time `json:"defenderScheduledQuickScanTime,omitempty"`
+ // DefenderCloudBlockLevel Specifies the level of cloud-delivered protection.
+ DefenderCloudBlockLevel *DefenderCloudBlockLevelType `json:"defenderCloudBlockLevel,omitempty"`
+ // DefenderCloudExtendedTimeout Timeout extension for file scanning by the cloud. Valid values 0 to 50
+ DefenderCloudExtendedTimeout *int `json:"defenderCloudExtendedTimeout,omitempty"`
+ // DefenderCloudExtendedTimeoutInSeconds Timeout extension for file scanning by the cloud. Valid values 0 to 50
+ DefenderCloudExtendedTimeoutInSeconds *int `json:"defenderCloudExtendedTimeoutInSeconds,omitempty"`
+ // DefenderBlockOnAccessProtection Allows or disallows Windows Defender On Access Protection functionality.
+ DefenderBlockOnAccessProtection *bool `json:"defenderBlockOnAccessProtection,omitempty"`
+ // DefenderSubmitSamplesConsentType Checks for the user consent level in Windows Defender to send data.
+ DefenderSubmitSamplesConsentType *DefenderSubmitSamplesConsentType `json:"defenderSubmitSamplesConsentType,omitempty"`
+ // LockScreenAllowTimeoutConfiguration Specify whether to show a user-configurable setting to control the screen timeout while on the lock screen of Windows 10 Mobile devices. If this policy is set to Allow, the value set by lockScreenTimeoutInSeconds is ignored.
+ LockScreenAllowTimeoutConfiguration *bool `json:"lockScreenAllowTimeoutConfiguration,omitempty"`
+ // LockScreenBlockActionCenterNotifications Indicates whether or not to block action center notifications over lock screen.
+ LockScreenBlockActionCenterNotifications *bool `json:"lockScreenBlockActionCenterNotifications,omitempty"`
+ // LockScreenBlockCortana Indicates whether or not the user can interact with Cortana using speech while the system is locked.
+ LockScreenBlockCortana *bool `json:"lockScreenBlockCortana,omitempty"`
+ // LockScreenBlockToastNotifications Indicates whether to allow toast notifications above the device lock screen.
+ LockScreenBlockToastNotifications *bool `json:"lockScreenBlockToastNotifications,omitempty"`
+ // LockScreenTimeoutInSeconds Set the duration (in seconds) from the screen locking to the screen turning off for Windows 10 Mobile devices. Supported values are 11-1800. Valid values 11 to 1800
+ LockScreenTimeoutInSeconds *int `json:"lockScreenTimeoutInSeconds,omitempty"`
+ // LockScreenActivateAppsWithVoice This policy setting specifies whether Windows apps can be activated by voice while the system is locked.
+ LockScreenActivateAppsWithVoice *Enablement `json:"lockScreenActivateAppsWithVoice,omitempty"`
+ // PasswordBlockSimple Specify whether PINs or passwords such as "1111" or "1234" are allowed. For Windows 10 desktops, it also controls the use of picture passwords.
+ PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"`
+ // PasswordExpirationDays The password expiration in days. Valid values 0 to 730
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength The minimum password length. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeScreenTimeout The minutes of inactivity before the screen times out.
+ PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasswordMinimumCharacterSetCount The number of character sets required in the password.
+ PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"`
+ // PasswordPreviousPasswordBlockCount The number of previous passwords to prevent reuse of. Valid values 0 to 50
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordRequired Indicates whether or not to require the user to have a password.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordRequireWhenResumeFromIdleState Indicates whether or not to require a password upon resuming from an idle state.
+ PasswordRequireWhenResumeFromIdleState *bool `json:"passwordRequireWhenResumeFromIdleState,omitempty"`
+ // PasswordRequiredType The required password type.
+ PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset The number of sign in failures before factory reset. Valid values 0 to 999
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // PasswordMinimumAgeInDays This security setting determines the period of time (in days) that a password must be used before the user can change it. Valid values 0 to 998
+ PasswordMinimumAgeInDays *int `json:"passwordMinimumAgeInDays,omitempty"`
+ // PrivacyAdvertisingID Enables or disables the use of advertising ID. Added in Windows 10, version 1607.
+ PrivacyAdvertisingID *StateManagementSetting `json:"privacyAdvertisingId,omitempty"`
+ // PrivacyAutoAcceptPairingAndConsentPrompts Indicates whether or not to allow the automatic acceptance of the pairing and privacy user consent dialog when launching apps.
+ PrivacyAutoAcceptPairingAndConsentPrompts *bool `json:"privacyAutoAcceptPairingAndConsentPrompts,omitempty"`
+ // PrivacyDisableLaunchExperience This policy prevents the privacy experience from launching during user logon for new and upgraded users.
+ PrivacyDisableLaunchExperience *bool `json:"privacyDisableLaunchExperience,omitempty"`
+ // PrivacyBlockInputPersonalization Indicates whether or not to block the usage of cloud based speech services for Cortana, Dictation, or Store applications.
+ PrivacyBlockInputPersonalization *bool `json:"privacyBlockInputPersonalization,omitempty"`
+ // PrivacyBlockPublishUserActivities Blocks the shared experiences/discovery of recently used resources in task switcher etc.
+ PrivacyBlockPublishUserActivities *bool `json:"privacyBlockPublishUserActivities,omitempty"`
+ // PrivacyBlockActivityFeed Blocks the usage of cloud based speech services for Cortana, Dictation, or Store applications.
+ PrivacyBlockActivityFeed *bool `json:"privacyBlockActivityFeed,omitempty"`
+ // StartBlockUnpinningAppsFromTaskbar Indicates whether or not to block the user from unpinning apps from taskbar.
+ StartBlockUnpinningAppsFromTaskbar *bool `json:"startBlockUnpinningAppsFromTaskbar,omitempty"`
+ // StartMenuAppListVisibility Setting the value of this collapses the app list, removes the app list entirely, or disables the corresponding toggle in the Settings app.
+ StartMenuAppListVisibility *WindowsStartMenuAppListVisibilityType `json:"startMenuAppListVisibility,omitempty"`
+ // StartMenuHideChangeAccountSettings Enabling this policy hides the change account setting from appearing in the user tile in the start menu.
+ StartMenuHideChangeAccountSettings *bool `json:"startMenuHideChangeAccountSettings,omitempty"`
+ // StartMenuHideFrequentlyUsedApps Enabling this policy hides the most used apps from appearing on the start menu and disables the corresponding toggle in the Settings app.
+ StartMenuHideFrequentlyUsedApps *bool `json:"startMenuHideFrequentlyUsedApps,omitempty"`
+ // StartMenuHideHibernate Enabling this policy hides hibernate from appearing in the power button in the start menu.
+ StartMenuHideHibernate *bool `json:"startMenuHideHibernate,omitempty"`
+ // StartMenuHideLock Enabling this policy hides lock from appearing in the user tile in the start menu.
+ StartMenuHideLock *bool `json:"startMenuHideLock,omitempty"`
+ // StartMenuHidePowerButton Enabling this policy hides the power button from appearing in the start menu.
+ StartMenuHidePowerButton *bool `json:"startMenuHidePowerButton,omitempty"`
+ // StartMenuHideRecentJumpLists Enabling this policy hides recent jump lists from appearing on the start menu/taskbar and disables the corresponding toggle in the Settings app.
+ StartMenuHideRecentJumpLists *bool `json:"startMenuHideRecentJumpLists,omitempty"`
+ // StartMenuHideRecentlyAddedApps Enabling this policy hides recently added apps from appearing on the start menu and disables the corresponding toggle in the Settings app.
+ StartMenuHideRecentlyAddedApps *bool `json:"startMenuHideRecentlyAddedApps,omitempty"`
+ // StartMenuHideRestartOptions Enabling this policy hides “Restart/Update and Restart” from appearing in the power button in the start menu.
+ StartMenuHideRestartOptions *bool `json:"startMenuHideRestartOptions,omitempty"`
+ // StartMenuHideShutDown Enabling this policy hides shut down/update and shut down from appearing in the power button in the start menu.
+ StartMenuHideShutDown *bool `json:"startMenuHideShutDown,omitempty"`
+ // StartMenuHideSignOut Enabling this policy hides sign out from appearing in the user tile in the start menu.
+ StartMenuHideSignOut *bool `json:"startMenuHideSignOut,omitempty"`
+ // StartMenuHideSleep Enabling this policy hides sleep from appearing in the power button in the start menu.
+ StartMenuHideSleep *bool `json:"startMenuHideSleep,omitempty"`
+ // StartMenuHideSwitchAccount Enabling this policy hides switch account from appearing in the user tile in the start menu.
+ StartMenuHideSwitchAccount *bool `json:"startMenuHideSwitchAccount,omitempty"`
+ // StartMenuHideUserTile Enabling this policy hides the user tile from appearing in the start menu.
+ StartMenuHideUserTile *bool `json:"startMenuHideUserTile,omitempty"`
+ // StartMenuLayoutEdgeAssetsXML This policy setting allows you to import Edge assets to be used with startMenuLayoutXml policy. Start layout can contain secondary tile from Edge app which looks for Edge local asset file. Edge local asset would not exist and cause Edge secondary tile to appear empty in this case. This policy only gets applied when startMenuLayoutXml policy is modified. The value should be a UTF-8 Base64 encoded byte array.
+ StartMenuLayoutEdgeAssetsXML *Binary `json:"startMenuLayoutEdgeAssetsXml,omitempty"`
+ // StartMenuLayoutXML Allows admins to override the default Start menu layout and prevents the user from changing it. The layout is modified by specifying an XML file based on a layout modification schema. XML needs to be in a UTF8 encoded byte array format.
+ StartMenuLayoutXML *Binary `json:"startMenuLayoutXml,omitempty"`
+ // StartMenuMode Allows admins to decide how the Start menu is displayed.
+ StartMenuMode *WindowsStartMenuModeType `json:"startMenuMode,omitempty"`
+ // StartMenuPinnedFolderDocuments Enforces the visibility (Show/Hide) of the Documents folder shortcut on the Start menu.
+ StartMenuPinnedFolderDocuments *VisibilitySetting `json:"startMenuPinnedFolderDocuments,omitempty"`
+ // StartMenuPinnedFolderDownloads Enforces the visibility (Show/Hide) of the Downloads folder shortcut on the Start menu.
+ StartMenuPinnedFolderDownloads *VisibilitySetting `json:"startMenuPinnedFolderDownloads,omitempty"`
+ // StartMenuPinnedFolderFileExplorer Enforces the visibility (Show/Hide) of the FileExplorer shortcut on the Start menu.
+ StartMenuPinnedFolderFileExplorer *VisibilitySetting `json:"startMenuPinnedFolderFileExplorer,omitempty"`
+ // StartMenuPinnedFolderHomeGroup Enforces the visibility (Show/Hide) of the HomeGroup folder shortcut on the Start menu.
+ StartMenuPinnedFolderHomeGroup *VisibilitySetting `json:"startMenuPinnedFolderHomeGroup,omitempty"`
+ // StartMenuPinnedFolderMusic Enforces the visibility (Show/Hide) of the Music folder shortcut on the Start menu.
+ StartMenuPinnedFolderMusic *VisibilitySetting `json:"startMenuPinnedFolderMusic,omitempty"`
+ // StartMenuPinnedFolderNetwork Enforces the visibility (Show/Hide) of the Network folder shortcut on the Start menu.
+ StartMenuPinnedFolderNetwork *VisibilitySetting `json:"startMenuPinnedFolderNetwork,omitempty"`
+ // StartMenuPinnedFolderPersonalFolder Enforces the visibility (Show/Hide) of the PersonalFolder shortcut on the Start menu.
+ StartMenuPinnedFolderPersonalFolder *VisibilitySetting `json:"startMenuPinnedFolderPersonalFolder,omitempty"`
+ // StartMenuPinnedFolderPictures Enforces the visibility (Show/Hide) of the Pictures folder shortcut on the Start menu.
+ StartMenuPinnedFolderPictures *VisibilitySetting `json:"startMenuPinnedFolderPictures,omitempty"`
+ // StartMenuPinnedFolderSettings Enforces the visibility (Show/Hide) of the Settings folder shortcut on the Start menu.
+ StartMenuPinnedFolderSettings *VisibilitySetting `json:"startMenuPinnedFolderSettings,omitempty"`
+ // StartMenuPinnedFolderVideos Enforces the visibility (Show/Hide) of the Videos folder shortcut on the Start menu.
+ StartMenuPinnedFolderVideos *VisibilitySetting `json:"startMenuPinnedFolderVideos,omitempty"`
+ // SettingsBlockSettingsApp Indicates whether or not to block access to Settings app.
+ SettingsBlockSettingsApp *bool `json:"settingsBlockSettingsApp,omitempty"`
+ // SettingsBlockSystemPage Indicates whether or not to block access to System in Settings app.
+ SettingsBlockSystemPage *bool `json:"settingsBlockSystemPage,omitempty"`
+ // SettingsBlockDevicesPage Indicates whether or not to block access to Devices in Settings app.
+ SettingsBlockDevicesPage *bool `json:"settingsBlockDevicesPage,omitempty"`
+ // SettingsBlockNetworkInternetPage Indicates whether or not to block access to Network & Internet in Settings app.
+ SettingsBlockNetworkInternetPage *bool `json:"settingsBlockNetworkInternetPage,omitempty"`
+ // SettingsBlockPersonalizationPage Indicates whether or not to block access to Personalization in Settings app.
+ SettingsBlockPersonalizationPage *bool `json:"settingsBlockPersonalizationPage,omitempty"`
+ // SettingsBlockAccountsPage Indicates whether or not to block access to Accounts in Settings app.
+ SettingsBlockAccountsPage *bool `json:"settingsBlockAccountsPage,omitempty"`
+ // SettingsBlockTimeLanguagePage Indicates whether or not to block access to Time & Language in Settings app.
+ SettingsBlockTimeLanguagePage *bool `json:"settingsBlockTimeLanguagePage,omitempty"`
+ // SettingsBlockEaseOfAccessPage Indicates whether or not to block access to Ease of Access in Settings app.
+ SettingsBlockEaseOfAccessPage *bool `json:"settingsBlockEaseOfAccessPage,omitempty"`
+ // SettingsBlockPrivacyPage Indicates whether or not to block access to Privacy in Settings app.
+ SettingsBlockPrivacyPage *bool `json:"settingsBlockPrivacyPage,omitempty"`
+ // SettingsBlockUpdateSecurityPage Indicates whether or not to block access to Update & Security in Settings app.
+ SettingsBlockUpdateSecurityPage *bool `json:"settingsBlockUpdateSecurityPage,omitempty"`
+ // SettingsBlockAppsPage Indicates whether or not to block access to Apps in Settings app.
+ SettingsBlockAppsPage *bool `json:"settingsBlockAppsPage,omitempty"`
+ // SettingsBlockGamingPage Indicates whether or not to block access to Gaming in Settings app.
+ SettingsBlockGamingPage *bool `json:"settingsBlockGamingPage,omitempty"`
+ // WindowsSpotlightBlockConsumerSpecificFeatures Allows IT admins to block experiences that are typically for consumers only, such as Start suggestions, Membership notifications, Post-OOBE app install and redirect tiles.
+ WindowsSpotlightBlockConsumerSpecificFeatures *bool `json:"windowsSpotlightBlockConsumerSpecificFeatures,omitempty"`
+ // WindowsSpotlightBlocked Allows IT admins to turn off all Windows Spotlight features
+ WindowsSpotlightBlocked *bool `json:"windowsSpotlightBlocked,omitempty"`
+ // WindowsSpotlightBlockOnActionCenter Block suggestions from Microsoft that show after each OS clean install, upgrade or in an on-going basis to introduce users to what is new or changed
+ WindowsSpotlightBlockOnActionCenter *bool `json:"windowsSpotlightBlockOnActionCenter,omitempty"`
+ // WindowsSpotlightBlockTailoredExperiences Block personalized content in Windows spotlight based on user’s device usage.
+ WindowsSpotlightBlockTailoredExperiences *bool `json:"windowsSpotlightBlockTailoredExperiences,omitempty"`
+ // WindowsSpotlightBlockThirdPartyNotifications Block third party content delivered via Windows Spotlight
+ WindowsSpotlightBlockThirdPartyNotifications *bool `json:"windowsSpotlightBlockThirdPartyNotifications,omitempty"`
+ // WindowsSpotlightBlockWelcomeExperience Block Windows Spotlight Windows welcome experience
+ WindowsSpotlightBlockWelcomeExperience *bool `json:"windowsSpotlightBlockWelcomeExperience,omitempty"`
+ // WindowsSpotlightBlockWindowsTips Allows IT admins to turn off the popup of Windows Tips.
+ WindowsSpotlightBlockWindowsTips *bool `json:"windowsSpotlightBlockWindowsTips,omitempty"`
+ // WindowsSpotlightConfigureOnLockScreen Specifies the type of Spotlight
+ WindowsSpotlightConfigureOnLockScreen *WindowsSpotlightEnablementSettings `json:"windowsSpotlightConfigureOnLockScreen,omitempty"`
+ // NetworkProxyApplySettingsDeviceWide If set, proxy settings will be applied to all processes and accounts in the device. Otherwise, it will be applied to the user account that’s enrolled into MDM.
+ NetworkProxyApplySettingsDeviceWide *bool `json:"networkProxyApplySettingsDeviceWide,omitempty"`
+ // NetworkProxyDisableAutoDetect Disable automatic detection of settings. If enabled, the system will try to find the path to a proxy auto-config (PAC) script.
+ NetworkProxyDisableAutoDetect *bool `json:"networkProxyDisableAutoDetect,omitempty"`
+ // NetworkProxyAutomaticConfigurationURL Address to the proxy auto-config (PAC) script you want to use.
+ NetworkProxyAutomaticConfigurationURL *string `json:"networkProxyAutomaticConfigurationUrl,omitempty"`
+ // NetworkProxyServer Specifies manual proxy server settings.
+ NetworkProxyServer *Windows10NetworkProxyServer `json:"networkProxyServer,omitempty"`
+ // AccountsBlockAddingNonMicrosoftAccountEmail Indicates whether or not to Block the user from adding email accounts to the device that are not associated with a Microsoft account.
+ AccountsBlockAddingNonMicrosoftAccountEmail *bool `json:"accountsBlockAddingNonMicrosoftAccountEmail,omitempty"`
+ // AntiTheftModeBlocked Indicates whether or not to block the user from selecting an AntiTheft mode preference (Windows 10 Mobile only).
+ AntiTheftModeBlocked *bool `json:"antiTheftModeBlocked,omitempty"`
+ // BluetoothBlocked Whether or not to Block the user from using bluetooth.
+ BluetoothBlocked *bool `json:"bluetoothBlocked,omitempty"`
+ // CameraBlocked Whether or not to Block the user from accessing the camera of the device.
+ CameraBlocked *bool `json:"cameraBlocked,omitempty"`
+ // ConnectedDevicesServiceBlocked Whether or not to block Connected Devices Service which enables discovery and connection to other devices, remote messaging, remote app sessions and other cross-device experiences.
+ ConnectedDevicesServiceBlocked *bool `json:"connectedDevicesServiceBlocked,omitempty"`
+ // CertificatesBlockManualRootCertificateInstallation Whether or not to Block the user from doing manual root certificate installation.
+ CertificatesBlockManualRootCertificateInstallation *bool `json:"certificatesBlockManualRootCertificateInstallation,omitempty"`
+ // CopyPasteBlocked Whether or not to Block the user from using copy paste.
+ CopyPasteBlocked *bool `json:"copyPasteBlocked,omitempty"`
+ // CortanaBlocked Whether or not to Block the user from using Cortana.
+ CortanaBlocked *bool `json:"cortanaBlocked,omitempty"`
+ // DeviceManagementBlockFactoryResetOnMobile Indicates whether or not to Block the user from resetting their phone.
+ DeviceManagementBlockFactoryResetOnMobile *bool `json:"deviceManagementBlockFactoryResetOnMobile,omitempty"`
+ // DeviceManagementBlockManualUnenroll Indicates whether or not to Block the user from doing manual un-enrollment from device management.
+ DeviceManagementBlockManualUnenroll *bool `json:"deviceManagementBlockManualUnenroll,omitempty"`
+ // SafeSearchFilter Specifies what filter level of safe search is required.
+ SafeSearchFilter *SafeSearchFilterType `json:"safeSearchFilter,omitempty"`
+ // EdgeBlockPopups Indicates whether or not to block popups.
+ EdgeBlockPopups *bool `json:"edgeBlockPopups,omitempty"`
+ // EdgeBlockSearchSuggestions Indicates whether or not to block the user from using the search suggestions in the address bar.
+ EdgeBlockSearchSuggestions *bool `json:"edgeBlockSearchSuggestions,omitempty"`
+ // EdgeBlockSearchEngineCustomization Indicates whether or not to block the user from adding new search engine or changing the default search engine.
+ EdgeBlockSearchEngineCustomization *bool `json:"edgeBlockSearchEngineCustomization,omitempty"`
+ // EdgeBlockSendingIntranetTrafficToInternetExplorer Indicates whether or not to switch the intranet traffic from Edge to Internet Explorer. Note: the name of this property is misleading; the property is obsolete, use EdgeSendIntranetTrafficToInternetExplorer instead.
+ EdgeBlockSendingIntranetTrafficToInternetExplorer *bool `json:"edgeBlockSendingIntranetTrafficToInternetExplorer,omitempty"`
+ // EdgeSendIntranetTrafficToInternetExplorer Indicates whether or not to switch the intranet traffic from Edge to Internet Explorer.
+ EdgeSendIntranetTrafficToInternetExplorer *bool `json:"edgeSendIntranetTrafficToInternetExplorer,omitempty"`
+ // EdgeRequireSmartScreen Indicates whether or not to Require the user to use the smart screen filter.
+ EdgeRequireSmartScreen *bool `json:"edgeRequireSmartScreen,omitempty"`
+ // EdgeEnterpriseModeSiteListLocation Indicates the enterprise mode site list location. Could be a local file, local network or http location.
+ EdgeEnterpriseModeSiteListLocation *string `json:"edgeEnterpriseModeSiteListLocation,omitempty"`
+ // EdgeFirstRunURL The first run URL for when Edge browser is opened for the first time.
+ EdgeFirstRunURL *string `json:"edgeFirstRunUrl,omitempty"`
+ // EdgeSearchEngine Allows IT admins to set a default search engine for MDM-Controlled devices. Users can override this and change their default search engine provided the AllowSearchEngineCustomization policy is not set.
+ EdgeSearchEngine *EdgeSearchEngineBase `json:"edgeSearchEngine,omitempty"`
+ // EdgeHomepageUrls The list of URLs for homepages shodwn on MDM-enrolled devices on Edge browser.
+ EdgeHomepageUrls []string `json:"edgeHomepageUrls,omitempty"`
+ // EdgeBlockAccessToAboutFlags Indicates whether or not to prevent access to about flags on Edge browser.
+ EdgeBlockAccessToAboutFlags *bool `json:"edgeBlockAccessToAboutFlags,omitempty"`
+ // SmartScreenBlockPromptOverride Indicates whether or not users can override SmartScreen Filter warnings about potentially malicious websites.
+ SmartScreenBlockPromptOverride *bool `json:"smartScreenBlockPromptOverride,omitempty"`
+ // SmartScreenBlockPromptOverrideForFiles Indicates whether or not users can override the SmartScreen Filter warnings about downloading unverified files
+ SmartScreenBlockPromptOverrideForFiles *bool `json:"smartScreenBlockPromptOverrideForFiles,omitempty"`
+ // WebRtcBlockLocalhostIPAddress Indicates whether or not user's localhost IP address is displayed while making phone calls using the WebRTC
+ WebRtcBlockLocalhostIPAddress *bool `json:"webRtcBlockLocalhostIpAddress,omitempty"`
+ // InternetSharingBlocked Indicates whether or not to Block the user from using internet sharing.
+ InternetSharingBlocked *bool `json:"internetSharingBlocked,omitempty"`
+ // SettingsBlockAddProvisioningPackage Indicates whether or not to block the user from installing provisioning packages.
+ SettingsBlockAddProvisioningPackage *bool `json:"settingsBlockAddProvisioningPackage,omitempty"`
+ // SettingsBlockRemoveProvisioningPackage Indicates whether or not to block the runtime configuration agent from removing provisioning packages.
+ SettingsBlockRemoveProvisioningPackage *bool `json:"settingsBlockRemoveProvisioningPackage,omitempty"`
+ // SettingsBlockChangeSystemTime Indicates whether or not to block the user from changing date and time settings.
+ SettingsBlockChangeSystemTime *bool `json:"settingsBlockChangeSystemTime,omitempty"`
+ // SettingsBlockEditDeviceName Indicates whether or not to block the user from editing the device name.
+ SettingsBlockEditDeviceName *bool `json:"settingsBlockEditDeviceName,omitempty"`
+ // SettingsBlockChangeRegion Indicates whether or not to block the user from changing the region settings.
+ SettingsBlockChangeRegion *bool `json:"settingsBlockChangeRegion,omitempty"`
+ // SettingsBlockChangeLanguage Indicates whether or not to block the user from changing the language settings.
+ SettingsBlockChangeLanguage *bool `json:"settingsBlockChangeLanguage,omitempty"`
+ // SettingsBlockChangePowerSleep Indicates whether or not to block the user from changing power and sleep settings.
+ SettingsBlockChangePowerSleep *bool `json:"settingsBlockChangePowerSleep,omitempty"`
+ // LocationServicesBlocked Indicates whether or not to Block the user from location services.
+ LocationServicesBlocked *bool `json:"locationServicesBlocked,omitempty"`
+ // MicrosoftAccountBlocked Indicates whether or not to Block a Microsoft account.
+ MicrosoftAccountBlocked *bool `json:"microsoftAccountBlocked,omitempty"`
+ // MicrosoftAccountBlockSettingsSync Indicates whether or not to Block Microsoft account settings sync.
+ MicrosoftAccountBlockSettingsSync *bool `json:"microsoftAccountBlockSettingsSync,omitempty"`
+ // NfcBlocked Indicates whether or not to Block the user from using near field communication.
+ NfcBlocked *bool `json:"nfcBlocked,omitempty"`
+ // ResetProtectionModeBlocked Indicates whether or not to Block the user from reset protection mode.
+ ResetProtectionModeBlocked *bool `json:"resetProtectionModeBlocked,omitempty"`
+ // ScreenCaptureBlocked Indicates whether or not to Block the user from taking Screenshots.
+ ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"`
+ // StorageBlockRemovableStorage Indicates whether or not to Block the user from using removable storage.
+ StorageBlockRemovableStorage *bool `json:"storageBlockRemovableStorage,omitempty"`
+ // StorageRequireMobileDeviceEncryption Indicating whether or not to require encryption on a mobile device.
+ StorageRequireMobileDeviceEncryption *bool `json:"storageRequireMobileDeviceEncryption,omitempty"`
+ // UsbBlocked Indicates whether or not to Block the user from USB connection.
+ UsbBlocked *bool `json:"usbBlocked,omitempty"`
+ // VoiceRecordingBlocked Indicates whether or not to Block the user from voice recording.
+ VoiceRecordingBlocked *bool `json:"voiceRecordingBlocked,omitempty"`
+ // WiFiBlockAutomaticConnectHotspots Indicating whether or not to block automatically connecting to Wi-Fi hotspots. Has no impact if Wi-Fi is blocked.
+ WiFiBlockAutomaticConnectHotspots *bool `json:"wiFiBlockAutomaticConnectHotspots,omitempty"`
+ // WiFiBlocked Indicates whether or not to Block the user from using Wi-Fi.
+ WiFiBlocked *bool `json:"wiFiBlocked,omitempty"`
+ // WiFiBlockManualConfiguration Indicates whether or not to Block the user from using Wi-Fi manual configuration.
+ WiFiBlockManualConfiguration *bool `json:"wiFiBlockManualConfiguration,omitempty"`
+ // WiFiScanInterval Specify how often devices scan for Wi-Fi networks. Supported values are 1-500, where 100 = default, and 500 = low frequency. Valid values 1 to 500
+ WiFiScanInterval *int `json:"wiFiScanInterval,omitempty"`
+ // WirelessDisplayBlockProjectionToThisDevice Indicates whether or not to allow other devices from discovering this PC for projection.
+ WirelessDisplayBlockProjectionToThisDevice *bool `json:"wirelessDisplayBlockProjectionToThisDevice,omitempty"`
+ // WirelessDisplayBlockUserInputFromReceiver Indicates whether or not to allow user input from wireless display receiver.
+ WirelessDisplayBlockUserInputFromReceiver *bool `json:"wirelessDisplayBlockUserInputFromReceiver,omitempty"`
+ // WirelessDisplayRequirePinForPairing Indicates whether or not to require a PIN for new devices to initiate pairing.
+ WirelessDisplayRequirePinForPairing *bool `json:"wirelessDisplayRequirePinForPairing,omitempty"`
+ // WindowsStoreBlocked Indicates whether or not to Block the user from using the Windows store.
+ WindowsStoreBlocked *bool `json:"windowsStoreBlocked,omitempty"`
+ // AppsAllowTrustedAppsSideloading Indicates whether apps from AppX packages signed with a trusted certificate can be side loaded.
+ AppsAllowTrustedAppsSideloading *StateManagementSetting `json:"appsAllowTrustedAppsSideloading,omitempty"`
+ // WindowsStoreBlockAutoUpdate Indicates whether or not to block automatic update of apps from Windows Store.
+ WindowsStoreBlockAutoUpdate *bool `json:"windowsStoreBlockAutoUpdate,omitempty"`
+ // DeveloperUnlockSetting Indicates whether or not to allow developer unlock.
+ DeveloperUnlockSetting *StateManagementSetting `json:"developerUnlockSetting,omitempty"`
+ // SharedUserAppDataAllowed Indicates whether or not to block multiple users of the same app to share data.
+ SharedUserAppDataAllowed *bool `json:"sharedUserAppDataAllowed,omitempty"`
+ // AppsBlockWindowsStoreOriginatedApps Indicates whether or not to disable the launch of all apps from Windows Store that came pre-installed or were downloaded.
+ AppsBlockWindowsStoreOriginatedApps *bool `json:"appsBlockWindowsStoreOriginatedApps,omitempty"`
+ // WindowsStoreEnablePrivateStoreOnly Indicates whether or not to enable Private Store Only.
+ WindowsStoreEnablePrivateStoreOnly *bool `json:"windowsStoreEnablePrivateStoreOnly,omitempty"`
+ // StorageRestrictAppDataToSystemVolume Indicates whether application data is restricted to the system drive.
+ StorageRestrictAppDataToSystemVolume *bool `json:"storageRestrictAppDataToSystemVolume,omitempty"`
+ // StorageRestrictAppInstallToSystemVolume Indicates whether the installation of applications is restricted to the system drive.
+ StorageRestrictAppInstallToSystemVolume *bool `json:"storageRestrictAppInstallToSystemVolume,omitempty"`
+ // GameDvrBlocked Indicates whether or not to block DVR and broadcasting.
+ GameDvrBlocked *bool `json:"gameDvrBlocked,omitempty"`
+ // ExperienceBlockDeviceDiscovery Indicates whether or not to enable device discovery UX.
+ ExperienceBlockDeviceDiscovery *bool `json:"experienceBlockDeviceDiscovery,omitempty"`
+ // ExperienceBlockErrorDialogWhenNoSIM Indicates whether or not to allow the error dialog from displaying if no SIM card is detected.
+ ExperienceBlockErrorDialogWhenNoSIM *bool `json:"experienceBlockErrorDialogWhenNoSIM,omitempty"`
+ // ExperienceBlockTaskSwitcher Indicates whether or not to enable task switching on the device.
+ ExperienceBlockTaskSwitcher *bool `json:"experienceBlockTaskSwitcher,omitempty"`
+ // LogonBlockFastUserSwitching Disables the ability to quickly switch between users that are logged on simultaneously without logging off.
+ LogonBlockFastUserSwitching *bool `json:"logonBlockFastUserSwitching,omitempty"`
+ // TenantLockdownRequireNetworkDuringOutOfBoxExperience Whether the device is required to connect to the network.
+ TenantLockdownRequireNetworkDuringOutOfBoxExperience *bool `json:"tenantLockdownRequireNetworkDuringOutOfBoxExperience,omitempty"`
+ // AppManagementMSIAllowUserControlOverInstall This policy setting permits users to change installation options that typically are available only to system administrators.
+ AppManagementMSIAllowUserControlOverInstall *bool `json:"appManagementMSIAllowUserControlOverInstall,omitempty"`
+ // AppManagementMSIAlwaysInstallWithElevatedPrivileges This policy setting directs Windows Installer to use elevated permissions when it installs any program on the system.
+ AppManagementMSIAlwaysInstallWithElevatedPrivileges *bool `json:"appManagementMSIAlwaysInstallWithElevatedPrivileges,omitempty"`
+ // DataProtectionBlockDirectMemoryAccess This policy setting allows you to block direct memory access (DMA) for all hot pluggable PCI downstream ports until a user logs into Windows.
+ DataProtectionBlockDirectMemoryAccess *bool `json:"dataProtectionBlockDirectMemoryAccess,omitempty"`
+ // AppManagementPackageFamilyNamesToLaunchAfterLogOn List of semi-colon delimited Package Family Names of Windows apps. Listed Windows apps are to be launched after logon.
+ AppManagementPackageFamilyNamesToLaunchAfterLogOn []string `json:"appManagementPackageFamilyNamesToLaunchAfterLogOn,omitempty"`
+ // PrivacyAccessControls undocumented
+ PrivacyAccessControls []WindowsPrivacyDataAccessControlItem `json:"privacyAccessControls,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10GeneralConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10GeneralConfigurationRequest.go
new file mode 100644
index 00000000..ea127ce9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10GeneralConfigurationRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Windows10GeneralConfigurationRequestBuilder is request builder for Windows10GeneralConfiguration
+type Windows10GeneralConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns Windows10GeneralConfigurationRequest
+func (b *Windows10GeneralConfigurationRequestBuilder) Request() *Windows10GeneralConfigurationRequest {
+ return &Windows10GeneralConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// Windows10GeneralConfigurationRequest is request for Windows10GeneralConfiguration
+type Windows10GeneralConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for Windows10GeneralConfiguration
+func (r *Windows10GeneralConfigurationRequest) Get(ctx context.Context) (resObj *Windows10GeneralConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Windows10GeneralConfiguration
+func (r *Windows10GeneralConfigurationRequest) Update(ctx context.Context, reqObj *Windows10GeneralConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Windows10GeneralConfiguration
+func (r *Windows10GeneralConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PrivacyAccessControls returns request builder for WindowsPrivacyDataAccessControlItem collection
+func (b *Windows10GeneralConfigurationRequestBuilder) PrivacyAccessControls() *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder {
+ bb := &Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/privacyAccessControls"
+ return bb
+}
+
+// Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder is request builder for WindowsPrivacyDataAccessControlItem collection
+type Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsPrivacyDataAccessControlItem collection
+func (b *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder) Request() *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest {
+ return &Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsPrivacyDataAccessControlItem item
+func (b *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder) ID(id string) *WindowsPrivacyDataAccessControlItemRequestBuilder {
+ bb := &WindowsPrivacyDataAccessControlItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest is request for WindowsPrivacyDataAccessControlItem collection
+type Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsPrivacyDataAccessControlItem collection
+func (r *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsPrivacyDataAccessControlItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsPrivacyDataAccessControlItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsPrivacyDataAccessControlItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsPrivacyDataAccessControlItem collection
+func (r *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest) Get(ctx context.Context) ([]WindowsPrivacyDataAccessControlItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsPrivacyDataAccessControlItem collection
+func (r *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest) Add(ctx context.Context, reqObj *WindowsPrivacyDataAccessControlItem) (resObj *WindowsPrivacyDataAccessControlItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10ImportedPFXCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10ImportedPFXCertificateProfileModel.go
new file mode 100644
index 00000000..24ce8545
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10ImportedPFXCertificateProfileModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10ImportedPFXCertificateProfile Windows 10 Desktop and Mobile PFX Import certificate profile
+type Windows10ImportedPFXCertificateProfile struct {
+ // WindowsCertificateProfileBase is the base model of Windows10ImportedPFXCertificateProfile
+ WindowsCertificateProfileBase
+ // IntendedPurpose Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc.
+ IntendedPurpose *IntendedPurpose `json:"intendedPurpose,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10ImportedPFXCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10ImportedPFXCertificateProfileRequest.go
new file mode 100644
index 00000000..e147476d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10ImportedPFXCertificateProfileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Windows10ImportedPFXCertificateProfileRequestBuilder is request builder for Windows10ImportedPFXCertificateProfile
+type Windows10ImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns Windows10ImportedPFXCertificateProfileRequest
+func (b *Windows10ImportedPFXCertificateProfileRequestBuilder) Request() *Windows10ImportedPFXCertificateProfileRequest {
+ return &Windows10ImportedPFXCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// Windows10ImportedPFXCertificateProfileRequest is request for Windows10ImportedPFXCertificateProfile
+type Windows10ImportedPFXCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for Windows10ImportedPFXCertificateProfile
+func (r *Windows10ImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *Windows10ImportedPFXCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Windows10ImportedPFXCertificateProfile
+func (r *Windows10ImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *Windows10ImportedPFXCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Windows10ImportedPFXCertificateProfile
+func (r *Windows10ImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *Windows10ImportedPFXCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10MobileCompliancePolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10MobileCompliancePolicyModel.go
new file mode 100644
index 00000000..09f34b27
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10MobileCompliancePolicyModel.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10MobileCompliancePolicy This class contains compliance settings for Windows 10 Mobile.
+type Windows10MobileCompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of Windows10MobileCompliancePolicy
+ DeviceCompliancePolicy
+ // PasswordRequired Require a password to unlock Windows Phone device.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordBlockSimple Whether or not to block syncing the calendar.
+ PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"`
+ // PasswordMinimumLength Minimum password length. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinimumCharacterSetCount The number of character sets required in the password.
+ PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"`
+ // PasswordRequiredType The required password type.
+ PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordPreviousPasswordBlockCount The number of previous passwords to prevent re-use of.
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordExpirationDays Number of days before password expiration. Valid values 1 to 255
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordRequireToUnlockFromIdle Require a password to unlock an idle device.
+ PasswordRequireToUnlockFromIdle *bool `json:"passwordRequireToUnlockFromIdle,omitempty"`
+ // OsMinimumVersion Minimum Windows Phone version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum Windows Phone version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // EarlyLaunchAntiMalwareDriverEnabled Require devices to be reported as healthy by Windows Device Health Attestation - early launch antimalware driver is enabled.
+ EarlyLaunchAntiMalwareDriverEnabled *bool `json:"earlyLaunchAntiMalwareDriverEnabled,omitempty"`
+ // BitLockerEnabled Require devices to be reported healthy by Windows Device Health Attestation - bit locker is enabled
+ BitLockerEnabled *bool `json:"bitLockerEnabled,omitempty"`
+ // SecureBootEnabled Require devices to be reported as healthy by Windows Device Health Attestation - secure boot is enabled.
+ SecureBootEnabled *bool `json:"secureBootEnabled,omitempty"`
+ // CodeIntegrityEnabled Require devices to be reported as healthy by Windows Device Health Attestation.
+ CodeIntegrityEnabled *bool `json:"codeIntegrityEnabled,omitempty"`
+ // StorageRequireEncryption Require encryption on windows devices.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+ // ActiveFirewallRequired Require active firewall on Windows devices.
+ ActiveFirewallRequired *bool `json:"activeFirewallRequired,omitempty"`
+ // ValidOperatingSystemBuildRanges The valid operating system build ranges on Windows devices. This collection can contain a maximum of 10000 elements.
+ ValidOperatingSystemBuildRanges []OperatingSystemVersionRange `json:"validOperatingSystemBuildRanges,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10NetworkBoundaryConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10NetworkBoundaryConfigurationModel.go
new file mode 100644
index 00000000..be92cb68
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10NetworkBoundaryConfigurationModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10NetworkBoundaryConfiguration Windows10 Network Boundary Configuration
+type Windows10NetworkBoundaryConfiguration struct {
+ // DeviceConfiguration is the base model of Windows10NetworkBoundaryConfiguration
+ DeviceConfiguration
+ // WindowsNetworkIsolationPolicy Windows Network Isolation Policy
+ WindowsNetworkIsolationPolicy *WindowsNetworkIsolationPolicy `json:"windowsNetworkIsolationPolicy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10NetworkProxyServerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10NetworkProxyServerModel.go
new file mode 100644
index 00000000..f5998218
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10NetworkProxyServerModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10NetworkProxyServer undocumented
+type Windows10NetworkProxyServer struct {
+ // Object is the base model of Windows10NetworkProxyServer
+ Object
+ // Address Address to the proxy server. Specify an address in the format [“:”]
+ Address *string `json:"address,omitempty"`
+ // Exceptions Addresses that should not use the proxy server. The system will not use the proxy server for addresses beginning with what is specified in this node.
+ Exceptions []string `json:"exceptions,omitempty"`
+ // UseForLocalAddresses Specifies whether the proxy server should be used for local (intranet) addresses.
+ UseForLocalAddresses *bool `json:"useForLocalAddresses,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10PFXImportCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10PFXImportCertificateProfileModel.go
new file mode 100644
index 00000000..5f7b25bd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10PFXImportCertificateProfileModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10PFXImportCertificateProfile Deprecated
+type Windows10PFXImportCertificateProfile struct {
+ // DeviceConfiguration is the base model of Windows10PFXImportCertificateProfile
+ DeviceConfiguration
+ // KeyStorageProvider undocumented
+ KeyStorageProvider *KeyStorageProviderOption `json:"keyStorageProvider,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10PkcsCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10PkcsCertificateProfileModel.go
new file mode 100644
index 00000000..de0ae75c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10PkcsCertificateProfileModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10PkcsCertificateProfile Windows 10 Desktop and Mobile PKCS certificate profile
+type Windows10PkcsCertificateProfile struct {
+ // Windows10CertificateProfileBase is the base model of Windows10PkcsCertificateProfile
+ Windows10CertificateProfileBase
+ // CertificationAuthority PKCS Certification Authority
+ CertificationAuthority *string `json:"certificationAuthority,omitempty"`
+ // CertificationAuthorityName PKCS Certification Authority Name
+ CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"`
+ // CertificateTemplateName PKCS Certificate Template Name
+ CertificateTemplateName *string `json:"certificateTemplateName,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
+ ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10PkcsCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10PkcsCertificateProfileRequest.go
new file mode 100644
index 00000000..2cfb9fef
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10PkcsCertificateProfileRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Windows10PkcsCertificateProfileRequestBuilder is request builder for Windows10PkcsCertificateProfile
+type Windows10PkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns Windows10PkcsCertificateProfileRequest
+func (b *Windows10PkcsCertificateProfileRequestBuilder) Request() *Windows10PkcsCertificateProfileRequest {
+ return &Windows10PkcsCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// Windows10PkcsCertificateProfileRequest is request for Windows10PkcsCertificateProfile
+type Windows10PkcsCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for Windows10PkcsCertificateProfile
+func (r *Windows10PkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *Windows10PkcsCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Windows10PkcsCertificateProfile
+func (r *Windows10PkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *Windows10PkcsCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Windows10PkcsCertificateProfile
+func (r *Windows10PkcsCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *Windows10PkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10SecureAssessmentConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10SecureAssessmentConfigurationModel.go
new file mode 100644
index 00000000..52c87b88
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10SecureAssessmentConfigurationModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10SecureAssessmentConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the secureAssessment resource.
+type Windows10SecureAssessmentConfiguration struct {
+ // DeviceConfiguration is the base model of Windows10SecureAssessmentConfiguration
+ DeviceConfiguration
+ // LaunchURI Url link to an assessment that's automatically loaded when the secure assessment browser is launched. It has to be a valid Url (http[s]://msdn.microsoft.com/).
+ LaunchURI *string `json:"launchUri,omitempty"`
+ // ConfigurationAccount The account used to configure the Windows device for taking the test. The user can be a domain account (domain\user), an AAD account (username@tenant.com) or a local account (username).
+ ConfigurationAccount *string `json:"configurationAccount,omitempty"`
+ // ConfigurationAccountType The account type used to by ConfigurationAccount.
+ ConfigurationAccountType *SecureAssessmentAccountType `json:"configurationAccountType,omitempty"`
+ // AllowPrinting Indicates whether or not to allow the app from printing during the test.
+ AllowPrinting *bool `json:"allowPrinting,omitempty"`
+ // AllowScreenCapture Indicates whether or not to allow screen capture capability during a test.
+ AllowScreenCapture *bool `json:"allowScreenCapture,omitempty"`
+ // AllowTextSuggestion Indicates whether or not to allow text suggestions during the test.
+ AllowTextSuggestion *bool `json:"allowTextSuggestion,omitempty"`
+ // LocalGuestAccountName Specifies the display text for the local guest account shown on the sign-in screen. Typically is the name of an assessment. When the user clicks the local guest account on the sign-in screen, an assessment app is launched with a specified assessment URL. Secure assessments can only be configured with local guest account sign-in on devices running Windows 10, version 1903 or later. Important notice: this property must be set with assessmentAppUserModelID in order to make the local guest account sign-in experience work properly for secure assessments.
+ LocalGuestAccountName *string `json:"localGuestAccountName,omitempty"`
+ // AssessmentAppUserModelID Specifies the application user model ID of the assessment app launched when a user signs in to a secure assessment with a local guest account. Important notice: this property must be set with localGuestAccountName in order to make the local guest account sign-in experience work properly for secure assessments.
+ AssessmentAppUserModelID *string `json:"assessmentAppUserModelId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10TeamGeneralConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10TeamGeneralConfigurationModel.go
new file mode 100644
index 00000000..6a276d89
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10TeamGeneralConfigurationModel.go
@@ -0,0 +1,51 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Windows10TeamGeneralConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the windows10TeamGeneralConfiguration resource.
+type Windows10TeamGeneralConfiguration struct {
+ // DeviceConfiguration is the base model of Windows10TeamGeneralConfiguration
+ DeviceConfiguration
+ // AzureOperationalInsightsBlockTelemetry Indicates whether or not to Block Azure Operational Insights.
+ AzureOperationalInsightsBlockTelemetry *bool `json:"azureOperationalInsightsBlockTelemetry,omitempty"`
+ // AzureOperationalInsightsWorkspaceID The Azure Operational Insights workspace id.
+ AzureOperationalInsightsWorkspaceID *string `json:"azureOperationalInsightsWorkspaceId,omitempty"`
+ // AzureOperationalInsightsWorkspaceKey The Azure Operational Insights Workspace key.
+ AzureOperationalInsightsWorkspaceKey *string `json:"azureOperationalInsightsWorkspaceKey,omitempty"`
+ // ConnectAppBlockAutoLaunch Specifies whether to automatically launch the Connect app whenever a projection is initiated.
+ ConnectAppBlockAutoLaunch *bool `json:"connectAppBlockAutoLaunch,omitempty"`
+ // MaintenanceWindowBlocked Indicates whether or not to Block setting a maintenance window for device updates.
+ MaintenanceWindowBlocked *bool `json:"maintenanceWindowBlocked,omitempty"`
+ // MaintenanceWindowDurationInHours Maintenance window duration for device updates. Valid values 0 to 5
+ MaintenanceWindowDurationInHours *int `json:"maintenanceWindowDurationInHours,omitempty"`
+ // MaintenanceWindowStartTime Maintenance window start time for device updates.
+ MaintenanceWindowStartTime *time.Time `json:"maintenanceWindowStartTime,omitempty"`
+ // MiracastChannel The channel.
+ MiracastChannel *MiracastChannel `json:"miracastChannel,omitempty"`
+ // MiracastBlocked Indicates whether or not to Block wireless projection.
+ MiracastBlocked *bool `json:"miracastBlocked,omitempty"`
+ // MiracastRequirePin Indicates whether or not to require a pin for wireless projection.
+ MiracastRequirePin *bool `json:"miracastRequirePin,omitempty"`
+ // SettingsBlockMyMeetingsAndFiles Specifies whether to disable the "My meetings and files" feature in the Start menu, which shows the signed-in user's meetings and files from Office 365.
+ SettingsBlockMyMeetingsAndFiles *bool `json:"settingsBlockMyMeetingsAndFiles,omitempty"`
+ // SettingsBlockSessionResume Specifies whether to allow the ability to resume a session when the session times out.
+ SettingsBlockSessionResume *bool `json:"settingsBlockSessionResume,omitempty"`
+ // SettingsBlockSigninSuggestions Specifies whether to disable auto-populating of the sign-in dialog with invitees from scheduled meetings.
+ SettingsBlockSigninSuggestions *bool `json:"settingsBlockSigninSuggestions,omitempty"`
+ // SettingsDefaultVolume Specifies the default volume value for a new session. Permitted values are 0-100. The default is 45. Valid values 0 to 100
+ SettingsDefaultVolume *int `json:"settingsDefaultVolume,omitempty"`
+ // SettingsScreenTimeoutInMinutes Specifies the number of minutes until the Hub screen turns off.
+ SettingsScreenTimeoutInMinutes *int `json:"settingsScreenTimeoutInMinutes,omitempty"`
+ // SettingsSessionTimeoutInMinutes Specifies the number of minutes until the session times out.
+ SettingsSessionTimeoutInMinutes *int `json:"settingsSessionTimeoutInMinutes,omitempty"`
+ // SettingsSleepTimeoutInMinutes Specifies the number of minutes until the Hub enters sleep mode.
+ SettingsSleepTimeoutInMinutes *int `json:"settingsSleepTimeoutInMinutes,omitempty"`
+ // WelcomeScreenBlockAutomaticWakeUp Indicates whether or not to Block the welcome screen from waking up automatically when someone enters the room.
+ WelcomeScreenBlockAutomaticWakeUp *bool `json:"welcomeScreenBlockAutomaticWakeUp,omitempty"`
+ // WelcomeScreenBackgroundImageURL The welcome screen background image URL. The URL must use the HTTPS protocol and return a PNG image.
+ WelcomeScreenBackgroundImageURL *string `json:"welcomeScreenBackgroundImageUrl,omitempty"`
+ // WelcomeScreenMeetingInformation The welcome screen meeting information shown.
+ WelcomeScreenMeetingInformation *WelcomeScreenMeetingInformation `json:"welcomeScreenMeetingInformation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnAuthenticationMethodEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnAuthenticationMethodEnum.go
new file mode 100644
index 00000000..83ef1230
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnAuthenticationMethodEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10VpnAuthenticationMethod undocumented
+type Windows10VpnAuthenticationMethod int
+
+const (
+ // Windows10VpnAuthenticationMethodVCertificate undocumented
+ Windows10VpnAuthenticationMethodVCertificate Windows10VpnAuthenticationMethod = 0
+ // Windows10VpnAuthenticationMethodVUsernameAndPassword undocumented
+ Windows10VpnAuthenticationMethodVUsernameAndPassword Windows10VpnAuthenticationMethod = 1
+ // Windows10VpnAuthenticationMethodVCustomEapXML undocumented
+ Windows10VpnAuthenticationMethodVCustomEapXML Windows10VpnAuthenticationMethod = 2
+)
+
+// Windows10VpnAuthenticationMethodPCertificate returns a pointer to Windows10VpnAuthenticationMethodVCertificate
+func Windows10VpnAuthenticationMethodPCertificate() *Windows10VpnAuthenticationMethod {
+ v := Windows10VpnAuthenticationMethodVCertificate
+ return &v
+}
+
+// Windows10VpnAuthenticationMethodPUsernameAndPassword returns a pointer to Windows10VpnAuthenticationMethodVUsernameAndPassword
+func Windows10VpnAuthenticationMethodPUsernameAndPassword() *Windows10VpnAuthenticationMethod {
+ v := Windows10VpnAuthenticationMethodVUsernameAndPassword
+ return &v
+}
+
+// Windows10VpnAuthenticationMethodPCustomEapXML returns a pointer to Windows10VpnAuthenticationMethodVCustomEapXML
+func Windows10VpnAuthenticationMethodPCustomEapXML() *Windows10VpnAuthenticationMethod {
+ v := Windows10VpnAuthenticationMethodVCustomEapXML
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnConfigurationModel.go
new file mode 100644
index 00000000..6a889b17
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnConfigurationModel.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10VpnConfiguration By providing the configurations in this profile you can instruct the Windows 10 device (desktop or mobile) to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.
+type Windows10VpnConfiguration struct {
+ // WindowsVpnConfiguration is the base model of Windows10VpnConfiguration
+ WindowsVpnConfiguration
+ // ProfileTarget Profile target type.
+ ProfileTarget *Windows10VpnProfileTarget `json:"profileTarget,omitempty"`
+ // ConnectionType Connection type.
+ ConnectionType *Windows10VpnConnectionType `json:"connectionType,omitempty"`
+ // EnableSplitTunneling Enable split tunneling.
+ EnableSplitTunneling *bool `json:"enableSplitTunneling,omitempty"`
+ // EnableAlwaysOn Enable Always On mode.
+ EnableAlwaysOn *bool `json:"enableAlwaysOn,omitempty"`
+ // EnableDeviceTunnel Enable device tunnel.
+ EnableDeviceTunnel *bool `json:"enableDeviceTunnel,omitempty"`
+ // EnableDNSRegistration Enable IP address registration with internal DNS.
+ EnableDNSRegistration *bool `json:"enableDnsRegistration,omitempty"`
+ // DNSSuffixes Specify DNS suffixes to add to the DNS search list to properly route short names.
+ DNSSuffixes []string `json:"dnsSuffixes,omitempty"`
+ // AuthenticationMethod Authentication method.
+ AuthenticationMethod *Windows10VpnAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // RememberUserCredentials Remember user credentials.
+ RememberUserCredentials *bool `json:"rememberUserCredentials,omitempty"`
+ // EnableConditionalAccess Enable conditional access.
+ EnableConditionalAccess *bool `json:"enableConditionalAccess,omitempty"`
+ // EnableSingleSignOnWithAlternateCertificate Enable single sign-on (SSO) with alternate certificate.
+ EnableSingleSignOnWithAlternateCertificate *bool `json:"enableSingleSignOnWithAlternateCertificate,omitempty"`
+ // SingleSignOnEku Single sign-on Extended Key Usage (EKU).
+ SingleSignOnEku *ExtendedKeyUsage `json:"singleSignOnEku,omitempty"`
+ // SingleSignOnIssuerHash Single sign-on issuer hash.
+ SingleSignOnIssuerHash *string `json:"singleSignOnIssuerHash,omitempty"`
+ // EapXML Extensible Authentication Protocol (EAP) XML. (UTF8 encoded byte array)
+ EapXML *Binary `json:"eapXml,omitempty"`
+ // ProxyServer Proxy Server.
+ ProxyServer *Windows10VpnProxyServer `json:"proxyServer,omitempty"`
+ // AssociatedApps Associated Apps. This collection can contain a maximum of 10000 elements.
+ AssociatedApps []Windows10AssociatedApps `json:"associatedApps,omitempty"`
+ // OnlyAssociatedAppsCanUseConnection Only associated Apps can use connection (per-app VPN).
+ OnlyAssociatedAppsCanUseConnection *bool `json:"onlyAssociatedAppsCanUseConnection,omitempty"`
+ // WindowsInformationProtectionDomain Windows Information Protection (WIP) domain to associate with this connection.
+ WindowsInformationProtectionDomain *string `json:"windowsInformationProtectionDomain,omitempty"`
+ // TrafficRules Traffic rules. This collection can contain a maximum of 1000 elements.
+ TrafficRules []VpnTrafficRule `json:"trafficRules,omitempty"`
+ // Routes Routes (optional for third-party providers). This collection can contain a maximum of 1000 elements.
+ Routes []VpnRoute `json:"routes,omitempty"`
+ // DNSRules DNS rules. This collection can contain a maximum of 1000 elements.
+ DNSRules []VpnDNSRule `json:"dnsRules,omitempty"`
+ // TrustedNetworkDomains Trusted Network Domains
+ TrustedNetworkDomains []string `json:"trustedNetworkDomains,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *WindowsCertificateProfileBase `json:"identityCertificate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnConfigurationRequest.go
new file mode 100644
index 00000000..10394f7e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnConfigurationRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// Windows10VpnConfigurationRequestBuilder is request builder for Windows10VpnConfiguration
+type Windows10VpnConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns Windows10VpnConfigurationRequest
+func (b *Windows10VpnConfigurationRequestBuilder) Request() *Windows10VpnConfigurationRequest {
+ return &Windows10VpnConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// Windows10VpnConfigurationRequest is request for Windows10VpnConfiguration
+type Windows10VpnConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for Windows10VpnConfiguration
+func (r *Windows10VpnConfigurationRequest) Get(ctx context.Context) (resObj *Windows10VpnConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Windows10VpnConfiguration
+func (r *Windows10VpnConfigurationRequest) Update(ctx context.Context, reqObj *Windows10VpnConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Windows10VpnConfiguration
+func (r *Windows10VpnConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityCertificate is navigation property
+func (b *Windows10VpnConfigurationRequestBuilder) IdentityCertificate() *WindowsCertificateProfileBaseRequestBuilder {
+ bb := &WindowsCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnConnectionTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnConnectionTypeEnum.go
new file mode 100644
index 00000000..c3c4666f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnConnectionTypeEnum.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10VpnConnectionType undocumented
+type Windows10VpnConnectionType int
+
+const (
+ // Windows10VpnConnectionTypeVPulseSecure undocumented
+ Windows10VpnConnectionTypeVPulseSecure Windows10VpnConnectionType = 0
+ // Windows10VpnConnectionTypeVF5EdgeClient undocumented
+ Windows10VpnConnectionTypeVF5EdgeClient Windows10VpnConnectionType = 1
+ // Windows10VpnConnectionTypeVDellSonicWallMobileConnect undocumented
+ Windows10VpnConnectionTypeVDellSonicWallMobileConnect Windows10VpnConnectionType = 2
+ // Windows10VpnConnectionTypeVCheckPointCapsuleVpn undocumented
+ Windows10VpnConnectionTypeVCheckPointCapsuleVpn Windows10VpnConnectionType = 3
+ // Windows10VpnConnectionTypeVAutomatic undocumented
+ Windows10VpnConnectionTypeVAutomatic Windows10VpnConnectionType = 4
+ // Windows10VpnConnectionTypeVIkEv2 undocumented
+ Windows10VpnConnectionTypeVIkEv2 Windows10VpnConnectionType = 5
+ // Windows10VpnConnectionTypeVL2tp undocumented
+ Windows10VpnConnectionTypeVL2tp Windows10VpnConnectionType = 6
+ // Windows10VpnConnectionTypeVPptp undocumented
+ Windows10VpnConnectionTypeVPptp Windows10VpnConnectionType = 7
+ // Windows10VpnConnectionTypeVCitrix undocumented
+ Windows10VpnConnectionTypeVCitrix Windows10VpnConnectionType = 8
+ // Windows10VpnConnectionTypeVPaloAltoGlobalProtect undocumented
+ Windows10VpnConnectionTypeVPaloAltoGlobalProtect Windows10VpnConnectionType = 9
+)
+
+// Windows10VpnConnectionTypePPulseSecure returns a pointer to Windows10VpnConnectionTypeVPulseSecure
+func Windows10VpnConnectionTypePPulseSecure() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVPulseSecure
+ return &v
+}
+
+// Windows10VpnConnectionTypePF5EdgeClient returns a pointer to Windows10VpnConnectionTypeVF5EdgeClient
+func Windows10VpnConnectionTypePF5EdgeClient() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVF5EdgeClient
+ return &v
+}
+
+// Windows10VpnConnectionTypePDellSonicWallMobileConnect returns a pointer to Windows10VpnConnectionTypeVDellSonicWallMobileConnect
+func Windows10VpnConnectionTypePDellSonicWallMobileConnect() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVDellSonicWallMobileConnect
+ return &v
+}
+
+// Windows10VpnConnectionTypePCheckPointCapsuleVpn returns a pointer to Windows10VpnConnectionTypeVCheckPointCapsuleVpn
+func Windows10VpnConnectionTypePCheckPointCapsuleVpn() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVCheckPointCapsuleVpn
+ return &v
+}
+
+// Windows10VpnConnectionTypePAutomatic returns a pointer to Windows10VpnConnectionTypeVAutomatic
+func Windows10VpnConnectionTypePAutomatic() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVAutomatic
+ return &v
+}
+
+// Windows10VpnConnectionTypePIkEv2 returns a pointer to Windows10VpnConnectionTypeVIkEv2
+func Windows10VpnConnectionTypePIkEv2() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVIkEv2
+ return &v
+}
+
+// Windows10VpnConnectionTypePL2tp returns a pointer to Windows10VpnConnectionTypeVL2tp
+func Windows10VpnConnectionTypePL2tp() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVL2tp
+ return &v
+}
+
+// Windows10VpnConnectionTypePPptp returns a pointer to Windows10VpnConnectionTypeVPptp
+func Windows10VpnConnectionTypePPptp() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVPptp
+ return &v
+}
+
+// Windows10VpnConnectionTypePCitrix returns a pointer to Windows10VpnConnectionTypeVCitrix
+func Windows10VpnConnectionTypePCitrix() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVCitrix
+ return &v
+}
+
+// Windows10VpnConnectionTypePPaloAltoGlobalProtect returns a pointer to Windows10VpnConnectionTypeVPaloAltoGlobalProtect
+func Windows10VpnConnectionTypePPaloAltoGlobalProtect() *Windows10VpnConnectionType {
+ v := Windows10VpnConnectionTypeVPaloAltoGlobalProtect
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnProfileTargetEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnProfileTargetEnum.go
new file mode 100644
index 00000000..18f4f3eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnProfileTargetEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10VpnProfileTarget undocumented
+type Windows10VpnProfileTarget int
+
+const (
+ // Windows10VpnProfileTargetVUser undocumented
+ Windows10VpnProfileTargetVUser Windows10VpnProfileTarget = 0
+ // Windows10VpnProfileTargetVDevice undocumented
+ Windows10VpnProfileTargetVDevice Windows10VpnProfileTarget = 1
+ // Windows10VpnProfileTargetVAutoPilotDevice undocumented
+ Windows10VpnProfileTargetVAutoPilotDevice Windows10VpnProfileTarget = 2
+)
+
+// Windows10VpnProfileTargetPUser returns a pointer to Windows10VpnProfileTargetVUser
+func Windows10VpnProfileTargetPUser() *Windows10VpnProfileTarget {
+ v := Windows10VpnProfileTargetVUser
+ return &v
+}
+
+// Windows10VpnProfileTargetPDevice returns a pointer to Windows10VpnProfileTargetVDevice
+func Windows10VpnProfileTargetPDevice() *Windows10VpnProfileTarget {
+ v := Windows10VpnProfileTargetVDevice
+ return &v
+}
+
+// Windows10VpnProfileTargetPAutoPilotDevice returns a pointer to Windows10VpnProfileTargetVAutoPilotDevice
+func Windows10VpnProfileTargetPAutoPilotDevice() *Windows10VpnProfileTarget {
+ v := Windows10VpnProfileTargetVAutoPilotDevice
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnProxyServerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnProxyServerModel.go
new file mode 100644
index 00000000..78a9a3fa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows10VpnProxyServerModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10VpnProxyServer undocumented
+type Windows10VpnProxyServer struct {
+ // VpnProxyServer is the base model of Windows10VpnProxyServer
+ VpnProxyServer
+ // BypassProxyServerForLocalAddress Bypass proxy server for local address.
+ BypassProxyServerForLocalAddress *bool `json:"bypassProxyServerForLocalAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows81CertificateProfileBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81CertificateProfileBaseModel.go
new file mode 100644
index 00000000..6e112de2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81CertificateProfileBaseModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows81CertificateProfileBase Device Configuration.
+type Windows81CertificateProfileBase struct {
+ // WindowsCertificateProfileBase is the base model of Windows81CertificateProfileBase
+ WindowsCertificateProfileBase
+ // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
+ ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
+ // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.
+ CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows81CompliancePolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81CompliancePolicyModel.go
new file mode 100644
index 00000000..6c81b9ec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81CompliancePolicyModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows81CompliancePolicy This class contains compliance settings for Windows 8.1.
+type Windows81CompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of Windows81CompliancePolicy
+ DeviceCompliancePolicy
+ // PasswordRequired Require a password to unlock Windows device.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordBlockSimple Indicates whether or not to block simple password.
+ PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"`
+ // PasswordExpirationDays Password expiration in days.
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength The minimum password length.
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordMinimumCharacterSetCount The number of character sets required in the password.
+ PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"`
+ // PasswordRequiredType The required password type.
+ PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordPreviousPasswordBlockCount The number of previous passwords to prevent re-use of. Valid values 0 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // OsMinimumVersion Minimum Windows 8.1 version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum Windows 8.1 version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // StorageRequireEncryption Indicates whether or not to require encryption on a windows 8.1 device.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows81GeneralConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81GeneralConfigurationModel.go
new file mode 100644
index 00000000..37af954b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81GeneralConfigurationModel.go
@@ -0,0 +1,79 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows81GeneralConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the windows81GeneralConfiguration resource.
+type Windows81GeneralConfiguration struct {
+ // DeviceConfiguration is the base model of Windows81GeneralConfiguration
+ DeviceConfiguration
+ // AccountsBlockAddingNonMicrosoftAccountEmail Indicates whether or not to Block the user from adding email accounts to the device that are not associated with a Microsoft account.
+ AccountsBlockAddingNonMicrosoftAccountEmail *bool `json:"accountsBlockAddingNonMicrosoftAccountEmail,omitempty"`
+ // ApplyOnlyToWindows81 Value indicating whether this policy only applies to Windows 8.1. This property is read-only.
+ ApplyOnlyToWindows81 *bool `json:"applyOnlyToWindows81,omitempty"`
+ // BrowserBlockAutofill Indicates whether or not to block auto fill.
+ BrowserBlockAutofill *bool `json:"browserBlockAutofill,omitempty"`
+ // BrowserBlockAutomaticDetectionOfIntranetSites Indicates whether or not to block automatic detection of Intranet sites.
+ BrowserBlockAutomaticDetectionOfIntranetSites *bool `json:"browserBlockAutomaticDetectionOfIntranetSites,omitempty"`
+ // BrowserBlockEnterpriseModeAccess Indicates whether or not to block enterprise mode access.
+ BrowserBlockEnterpriseModeAccess *bool `json:"browserBlockEnterpriseModeAccess,omitempty"`
+ // BrowserBlockJavaScript Indicates whether or not to Block the user from using JavaScript.
+ BrowserBlockJavaScript *bool `json:"browserBlockJavaScript,omitempty"`
+ // BrowserBlockPlugins Indicates whether or not to block plug-ins.
+ BrowserBlockPlugins *bool `json:"browserBlockPlugins,omitempty"`
+ // BrowserBlockPopups Indicates whether or not to block popups.
+ BrowserBlockPopups *bool `json:"browserBlockPopups,omitempty"`
+ // BrowserBlockSendingDoNotTrackHeader Indicates whether or not to Block the user from sending the do not track header.
+ BrowserBlockSendingDoNotTrackHeader *bool `json:"browserBlockSendingDoNotTrackHeader,omitempty"`
+ // BrowserBlockSingleWordEntryOnIntranetSites Indicates whether or not to block a single word entry on Intranet sites.
+ BrowserBlockSingleWordEntryOnIntranetSites *bool `json:"browserBlockSingleWordEntryOnIntranetSites,omitempty"`
+ // BrowserRequireSmartScreen Indicates whether or not to require the user to use the smart screen filter.
+ BrowserRequireSmartScreen *bool `json:"browserRequireSmartScreen,omitempty"`
+ // BrowserEnterpriseModeSiteListLocation The enterprise mode site list location. Could be a local file, local network or http location.
+ BrowserEnterpriseModeSiteListLocation *string `json:"browserEnterpriseModeSiteListLocation,omitempty"`
+ // BrowserInternetSecurityLevel The internet security level.
+ BrowserInternetSecurityLevel *InternetSiteSecurityLevel `json:"browserInternetSecurityLevel,omitempty"`
+ // BrowserIntranetSecurityLevel The Intranet security level.
+ BrowserIntranetSecurityLevel *SiteSecurityLevel `json:"browserIntranetSecurityLevel,omitempty"`
+ // BrowserLoggingReportLocation The logging report location.
+ BrowserLoggingReportLocation *string `json:"browserLoggingReportLocation,omitempty"`
+ // BrowserRequireHighSecurityForRestrictedSites Indicates whether or not to require high security for restricted sites.
+ BrowserRequireHighSecurityForRestrictedSites *bool `json:"browserRequireHighSecurityForRestrictedSites,omitempty"`
+ // BrowserRequireFirewall Indicates whether or not to require a firewall.
+ BrowserRequireFirewall *bool `json:"browserRequireFirewall,omitempty"`
+ // BrowserRequireFraudWarning Indicates whether or not to require fraud warning.
+ BrowserRequireFraudWarning *bool `json:"browserRequireFraudWarning,omitempty"`
+ // BrowserTrustedSitesSecurityLevel The trusted sites security level.
+ BrowserTrustedSitesSecurityLevel *SiteSecurityLevel `json:"browserTrustedSitesSecurityLevel,omitempty"`
+ // CellularBlockDataRoaming Indicates whether or not to block data roaming.
+ CellularBlockDataRoaming *bool `json:"cellularBlockDataRoaming,omitempty"`
+ // DiagnosticsBlockDataSubmission Indicates whether or not to block diagnostic data submission.
+ DiagnosticsBlockDataSubmission *bool `json:"diagnosticsBlockDataSubmission,omitempty"`
+ // PasswordBlockPicturePasswordAndPin Indicates whether or not to Block the user from using a pictures password and pin.
+ PasswordBlockPicturePasswordAndPin *bool `json:"passwordBlockPicturePasswordAndPin,omitempty"`
+ // PasswordExpirationDays Password expiration in days.
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength The minimum password length.
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeScreenTimeout The minutes of inactivity before the screen times out.
+ PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasswordMinimumCharacterSetCount The number of character sets required in the password.
+ PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"`
+ // PasswordPreviousPasswordBlockCount The number of previous passwords to prevent re-use of. Valid values 0 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordRequiredType The required password type.
+ PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset The number of sign in failures before factory reset.
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // StorageRequireDeviceEncryption Indicates whether or not to require encryption on a mobile device.
+ StorageRequireDeviceEncryption *bool `json:"storageRequireDeviceEncryption,omitempty"`
+ // MinimumAutoInstallClassification The minimum update classification to install automatically.
+ MinimumAutoInstallClassification *UpdateClassification `json:"minimumAutoInstallClassification,omitempty"`
+ // UpdatesMinimumAutoInstallClassification The minimum update classification to install automatically.
+ UpdatesMinimumAutoInstallClassification *UpdateClassification `json:"updatesMinimumAutoInstallClassification,omitempty"`
+ // UpdatesRequireAutomaticUpdates Indicates whether or not to require automatic updates.
+ UpdatesRequireAutomaticUpdates *bool `json:"updatesRequireAutomaticUpdates,omitempty"`
+ // UserAccountControlSettings The user account control settings.
+ UserAccountControlSettings *WindowsUserAccountControlSettings `json:"userAccountControlSettings,omitempty"`
+ // WorkFoldersURL The work folders url.
+ WorkFoldersURL *string `json:"workFoldersUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows81SCEPCertificateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81SCEPCertificateProfileModel.go
new file mode 100644
index 00000000..63da2caa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81SCEPCertificateProfileModel.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows81SCEPCertificateProfile Windows 8.1+ SCEP certificate profile
+type Windows81SCEPCertificateProfile struct {
+ // Windows81CertificateProfileBase is the base model of Windows81SCEPCertificateProfile
+ Windows81CertificateProfileBase
+ // ScepServerUrls SCEP Server Url(s).
+ ScepServerUrls []string `json:"scepServerUrls,omitempty"`
+ // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
+ SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"`
+ // KeyUsage SCEP Key Usage.
+ KeyUsage *KeyUsages `json:"keyUsage,omitempty"`
+ // KeySize SCEP Key Size.
+ KeySize *KeySize `json:"keySize,omitempty"`
+ // HashAlgorithm SCEP Hash Algorithm.
+ HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // CertificateStore Target store certificate
+ CertificateStore *CertificateStore `json:"certificateStore,omitempty"`
+ // RootCertificate undocumented
+ RootCertificate *Windows81TrustedRootCertificate `json:"rootCertificate,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows81SCEPCertificateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81SCEPCertificateProfileRequest.go
new file mode 100644
index 00000000..966b28bd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81SCEPCertificateProfileRequest.go
@@ -0,0 +1,146 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Windows81SCEPCertificateProfileRequestBuilder is request builder for Windows81SCEPCertificateProfile
+type Windows81SCEPCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns Windows81SCEPCertificateProfileRequest
+func (b *Windows81SCEPCertificateProfileRequestBuilder) Request() *Windows81SCEPCertificateProfileRequest {
+ return &Windows81SCEPCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// Windows81SCEPCertificateProfileRequest is request for Windows81SCEPCertificateProfile
+type Windows81SCEPCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for Windows81SCEPCertificateProfile
+func (r *Windows81SCEPCertificateProfileRequest) Get(ctx context.Context) (resObj *Windows81SCEPCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Windows81SCEPCertificateProfile
+func (r *Windows81SCEPCertificateProfileRequest) Update(ctx context.Context, reqObj *Windows81SCEPCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Windows81SCEPCertificateProfile
+func (r *Windows81SCEPCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *Windows81SCEPCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RootCertificate is navigation property
+func (b *Windows81SCEPCertificateProfileRequestBuilder) RootCertificate() *Windows81TrustedRootCertificateRequestBuilder {
+ bb := &Windows81TrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows81TrustedRootCertificateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81TrustedRootCertificateModel.go
new file mode 100644
index 00000000..4c661bb3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81TrustedRootCertificateModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows81TrustedRootCertificate Windows 8.1 Trusted Certificate configuration profile
+type Windows81TrustedRootCertificate struct {
+ // DeviceConfiguration is the base model of Windows81TrustedRootCertificate
+ DeviceConfiguration
+ // TrustedRootCertificate Trusted Root Certificate
+ TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"`
+ // CertFileName File name to display in UI.
+ CertFileName *string `json:"certFileName,omitempty"`
+ // DestinationStore Destination store location for the Trusted Root Certificate.
+ DestinationStore *CertificateDestinationStore `json:"destinationStore,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows81TrustedRootCertificateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81TrustedRootCertificateRequest.go
new file mode 100644
index 00000000..33fefe81
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81TrustedRootCertificateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// Windows81TrustedRootCertificateRequestBuilder is request builder for Windows81TrustedRootCertificate
+type Windows81TrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns Windows81TrustedRootCertificateRequest
+func (b *Windows81TrustedRootCertificateRequestBuilder) Request() *Windows81TrustedRootCertificateRequest {
+ return &Windows81TrustedRootCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// Windows81TrustedRootCertificateRequest is request for Windows81TrustedRootCertificate
+type Windows81TrustedRootCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for Windows81TrustedRootCertificate
+func (r *Windows81TrustedRootCertificateRequest) Get(ctx context.Context) (resObj *Windows81TrustedRootCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Windows81TrustedRootCertificate
+func (r *Windows81TrustedRootCertificateRequest) Update(ctx context.Context, reqObj *Windows81TrustedRootCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Windows81TrustedRootCertificate
+func (r *Windows81TrustedRootCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows81VpnConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81VpnConfigurationModel.go
new file mode 100644
index 00000000..993abb49
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81VpnConfigurationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows81VpnConfiguration By providing the configurations in this profile you can instruct the Windows 8.1 (and later) devices to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.
+type Windows81VpnConfiguration struct {
+ // WindowsVpnConfiguration is the base model of Windows81VpnConfiguration
+ WindowsVpnConfiguration
+ // ApplyOnlyToWindows81 Value indicating whether this policy only applies to Windows 8.1. This property is read-only.
+ ApplyOnlyToWindows81 *bool `json:"applyOnlyToWindows81,omitempty"`
+ // ConnectionType Connection type.
+ ConnectionType *WindowsVpnConnectionType `json:"connectionType,omitempty"`
+ // LoginGroupOrDomain Login group or domain when connection type is set to Dell SonicWALL Mobile Connection.
+ LoginGroupOrDomain *string `json:"loginGroupOrDomain,omitempty"`
+ // EnableSplitTunneling Enable split tunneling for the VPN.
+ EnableSplitTunneling *bool `json:"enableSplitTunneling,omitempty"`
+ // ProxyServer Proxy Server.
+ ProxyServer *Windows81VpnProxyServer `json:"proxyServer,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows81VpnProxyServerModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81VpnProxyServerModel.go
new file mode 100644
index 00000000..f2e34c15
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81VpnProxyServerModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows81VpnProxyServer undocumented
+type Windows81VpnProxyServer struct {
+ // VpnProxyServer is the base model of Windows81VpnProxyServer
+ VpnProxyServer
+ // AutomaticallyDetectProxySettings Automatically detect proxy settings.
+ AutomaticallyDetectProxySettings *bool `json:"automaticallyDetectProxySettings,omitempty"`
+ // BypassProxyServerForLocalAddress Bypass proxy server for local address.
+ BypassProxyServerForLocalAddress *bool `json:"bypassProxyServerForLocalAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/Windows81WifiImportConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81WifiImportConfigurationModel.go
new file mode 100644
index 00000000..9baea10f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/Windows81WifiImportConfigurationModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows81WifiImportConfiguration Windows 8.1+ Wi-Fi import configuration. By configuring this profile you can instruct Windows 8.1 (and later) devices to connect to desired Wi-Fi endpoint. Connect a Windows 8.1 device to the desired Wi-Fi network and extract the XML from that device to later embed into this Wi-Fi profile.
+type Windows81WifiImportConfiguration struct {
+ // DeviceConfiguration is the base model of Windows81WifiImportConfiguration
+ DeviceConfiguration
+ // PayloadFileName Payload file name (*.xml).
+ PayloadFileName *string `json:"payloadFileName,omitempty"`
+ // ProfileName Profile name displayed in the UI.
+ ProfileName *string `json:"profileName,omitempty"`
+ // Payload Payload. (UTF8 encoded byte array). This is the XML file saved on the device you used to connect to the Wi-Fi endpoint.
+ Payload *Binary `json:"payload,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAppStartLayoutTileSizeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAppStartLayoutTileSizeEnum.go
new file mode 100644
index 00000000..f6274a3c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAppStartLayoutTileSizeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAppStartLayoutTileSize undocumented
+type WindowsAppStartLayoutTileSize int
+
+const (
+ // WindowsAppStartLayoutTileSizeVHidden undocumented
+ WindowsAppStartLayoutTileSizeVHidden WindowsAppStartLayoutTileSize = 0
+ // WindowsAppStartLayoutTileSizeVSmall undocumented
+ WindowsAppStartLayoutTileSizeVSmall WindowsAppStartLayoutTileSize = 1
+ // WindowsAppStartLayoutTileSizeVMedium undocumented
+ WindowsAppStartLayoutTileSizeVMedium WindowsAppStartLayoutTileSize = 2
+ // WindowsAppStartLayoutTileSizeVWide undocumented
+ WindowsAppStartLayoutTileSizeVWide WindowsAppStartLayoutTileSize = 3
+ // WindowsAppStartLayoutTileSizeVLarge undocumented
+ WindowsAppStartLayoutTileSizeVLarge WindowsAppStartLayoutTileSize = 4
+)
+
+// WindowsAppStartLayoutTileSizePHidden returns a pointer to WindowsAppStartLayoutTileSizeVHidden
+func WindowsAppStartLayoutTileSizePHidden() *WindowsAppStartLayoutTileSize {
+ v := WindowsAppStartLayoutTileSizeVHidden
+ return &v
+}
+
+// WindowsAppStartLayoutTileSizePSmall returns a pointer to WindowsAppStartLayoutTileSizeVSmall
+func WindowsAppStartLayoutTileSizePSmall() *WindowsAppStartLayoutTileSize {
+ v := WindowsAppStartLayoutTileSizeVSmall
+ return &v
+}
+
+// WindowsAppStartLayoutTileSizePMedium returns a pointer to WindowsAppStartLayoutTileSizeVMedium
+func WindowsAppStartLayoutTileSizePMedium() *WindowsAppStartLayoutTileSize {
+ v := WindowsAppStartLayoutTileSizeVMedium
+ return &v
+}
+
+// WindowsAppStartLayoutTileSizePWide returns a pointer to WindowsAppStartLayoutTileSizeVWide
+func WindowsAppStartLayoutTileSizePWide() *WindowsAppStartLayoutTileSize {
+ v := WindowsAppStartLayoutTileSizeVWide
+ return &v
+}
+
+// WindowsAppStartLayoutTileSizePLarge returns a pointer to WindowsAppStartLayoutTileSizeVLarge
+func WindowsAppStartLayoutTileSizePLarge() *WindowsAppStartLayoutTileSize {
+ v := WindowsAppStartLayoutTileSizeVLarge
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAppXAppAssignmentSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAppXAppAssignmentSettingsModel.go
new file mode 100644
index 00000000..30d54d0d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAppXAppAssignmentSettingsModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAppXAppAssignmentSettings undocumented
+type WindowsAppXAppAssignmentSettings struct {
+ // MobileAppAssignmentSettings is the base model of WindowsAppXAppAssignmentSettings
+ MobileAppAssignmentSettings
+ // UseDeviceContext Whether or not to use device execution context for Windows AppX mobile app.
+ UseDeviceContext *bool `json:"useDeviceContext,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAppXModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAppXModel.go
new file mode 100644
index 00000000..17d108c7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAppXModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAppX Contains properties and inherited properties for Windows AppX Line Of Business apps.
+type WindowsAppX struct {
+ // MobileLobApp is the base model of WindowsAppX
+ MobileLobApp
+ // ApplicableArchitectures The Windows architecture(s) for which this app can run on.
+ ApplicableArchitectures *WindowsArchitecture `json:"applicableArchitectures,omitempty"`
+ // IdentityName The Identity Name.
+ IdentityName *string `json:"identityName,omitempty"`
+ // IdentityPublisherHash The Identity Publisher Hash.
+ IdentityPublisherHash *string `json:"identityPublisherHash,omitempty"`
+ // IdentityResourceIdentifier The Identity Resource Identifier.
+ IdentityResourceIdentifier *string `json:"identityResourceIdentifier,omitempty"`
+ // IsBundle Whether or not the app is a bundle.
+ IsBundle *bool `json:"isBundle,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *WindowsMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+ // IdentityVersion The identity version.
+ IdentityVersion *string `json:"identityVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsArchitectureEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsArchitectureEnum.go
new file mode 100644
index 00000000..bccbebd0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsArchitectureEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsArchitecture undocumented
+type WindowsArchitecture int
+
+const (
+ // WindowsArchitectureVNone undocumented
+ WindowsArchitectureVNone WindowsArchitecture = 0
+ // WindowsArchitectureVX86 undocumented
+ WindowsArchitectureVX86 WindowsArchitecture = 1
+ // WindowsArchitectureVX64 undocumented
+ WindowsArchitectureVX64 WindowsArchitecture = 2
+ // WindowsArchitectureVArm undocumented
+ WindowsArchitectureVArm WindowsArchitecture = 4
+ // WindowsArchitectureVNeutral undocumented
+ WindowsArchitectureVNeutral WindowsArchitecture = 8
+ // WindowsArchitectureVArm64 undocumented
+ WindowsArchitectureVArm64 WindowsArchitecture = 16
+)
+
+// WindowsArchitecturePNone returns a pointer to WindowsArchitectureVNone
+func WindowsArchitecturePNone() *WindowsArchitecture {
+ v := WindowsArchitectureVNone
+ return &v
+}
+
+// WindowsArchitecturePX86 returns a pointer to WindowsArchitectureVX86
+func WindowsArchitecturePX86() *WindowsArchitecture {
+ v := WindowsArchitectureVX86
+ return &v
+}
+
+// WindowsArchitecturePX64 returns a pointer to WindowsArchitectureVX64
+func WindowsArchitecturePX64() *WindowsArchitecture {
+ v := WindowsArchitectureVX64
+ return &v
+}
+
+// WindowsArchitecturePArm returns a pointer to WindowsArchitectureVArm
+func WindowsArchitecturePArm() *WindowsArchitecture {
+ v := WindowsArchitectureVArm
+ return &v
+}
+
+// WindowsArchitecturePNeutral returns a pointer to WindowsArchitectureVNeutral
+func WindowsArchitecturePNeutral() *WindowsArchitecture {
+ v := WindowsArchitectureVNeutral
+ return &v
+}
+
+// WindowsArchitecturePArm64 returns a pointer to WindowsArchitectureVArm64
+func WindowsArchitecturePArm64() *WindowsArchitecture {
+ v := WindowsArchitectureVArm64
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAssignedAccessProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAssignedAccessProfileModel.go
new file mode 100644
index 00000000..f8288fb1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAssignedAccessProfileModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAssignedAccessProfile Assigned Access profile for Windows.
+type WindowsAssignedAccessProfile struct {
+ // Entity is the base model of WindowsAssignedAccessProfile
+ Entity
+ // ProfileName This is a friendly name used to identify a group of applications, the layout of these apps on the start menu and the users to whom this kiosk configuration is assigned.
+ ProfileName *string `json:"profileName,omitempty"`
+ // ShowTaskBar This setting allows the admin to specify whether the Task Bar is shown or not.
+ ShowTaskBar *bool `json:"showTaskBar,omitempty"`
+ // AppUserModelIDs These are the only Windows Store Apps that will be available to launch from the Start menu.
+ AppUserModelIDs []string `json:"appUserModelIds,omitempty"`
+ // DesktopAppPaths These are the paths of the Desktop Apps that will be available on the Start menu and the only apps the user will be able to launch.
+ DesktopAppPaths []string `json:"desktopAppPaths,omitempty"`
+ // UserAccounts The user accounts that will be locked to this kiosk configuration.
+ UserAccounts []string `json:"userAccounts,omitempty"`
+ // StartMenuLayoutXML Allows admins to override the default Start layout and prevents the user from changing it. The layout is modified by specifying an XML file based on a layout modification schema. XML needs to be in Binary format.
+ StartMenuLayoutXML *Binary `json:"startMenuLayoutXml,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfileAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfileAction.go
new file mode 100644
index 00000000..01cde736
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfileAction.go
@@ -0,0 +1,132 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestParameter undocumented
+type WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// WindowsAutopilotDeploymentProfileAssignRequestParameter undocumented
+type WindowsAutopilotDeploymentProfileAssignRequestParameter struct {
+ // DeviceIDs undocumented
+ DeviceIDs []string `json:"deviceIds,omitempty"`
+}
+
+//
+type WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder) HasPayloadLinks(reqObj *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestParameter) *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestBuilder {
+ bb := &WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestBuilder) Request() *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequest {
+ return &WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values [][]HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value [][]HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequest) Get(ctx context.Context) ([][]HasPayloadLinkResultItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+//
+type WindowsAutopilotDeploymentProfileAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *WindowsAutopilotDeploymentProfileRequestBuilder) Assign(reqObj *WindowsAutopilotDeploymentProfileAssignRequestParameter) *WindowsAutopilotDeploymentProfileAssignRequestBuilder {
+ bb := &WindowsAutopilotDeploymentProfileAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsAutopilotDeploymentProfileAssignRequest struct{ BaseRequest }
+
+//
+func (b *WindowsAutopilotDeploymentProfileAssignRequestBuilder) Request() *WindowsAutopilotDeploymentProfileAssignRequest {
+ return &WindowsAutopilotDeploymentProfileAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsAutopilotDeploymentProfileAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentModel.go
new file mode 100644
index 00000000..2c022070
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentModel.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAutopilotDeploymentProfileAssignment An assignment of a Windows Autopilot deployment profile to an AAD group.
+type WindowsAutopilotDeploymentProfileAssignment struct {
+ // Entity is the base model of WindowsAutopilotDeploymentProfileAssignment
+ Entity
+ // Target The assignment target for the Windows Autopilot deployment profile.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+ // Source Type of resource used for deployment to a group, direct or parcel/policySet
+ Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"`
+ // SourceID Identifier for resource used for deployment to a group
+ SourceID *string `json:"sourceId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentRequest.go
new file mode 100644
index 00000000..2754f1c6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfileAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsAutopilotDeploymentProfileAssignmentRequestBuilder is request builder for WindowsAutopilotDeploymentProfileAssignment
+type WindowsAutopilotDeploymentProfileAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsAutopilotDeploymentProfileAssignmentRequest
+func (b *WindowsAutopilotDeploymentProfileAssignmentRequestBuilder) Request() *WindowsAutopilotDeploymentProfileAssignmentRequest {
+ return &WindowsAutopilotDeploymentProfileAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsAutopilotDeploymentProfileAssignmentRequest is request for WindowsAutopilotDeploymentProfileAssignment
+type WindowsAutopilotDeploymentProfileAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsAutopilotDeploymentProfileAssignment
+func (r *WindowsAutopilotDeploymentProfileAssignmentRequest) Get(ctx context.Context) (resObj *WindowsAutopilotDeploymentProfileAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsAutopilotDeploymentProfileAssignment
+func (r *WindowsAutopilotDeploymentProfileAssignmentRequest) Update(ctx context.Context, reqObj *WindowsAutopilotDeploymentProfileAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsAutopilotDeploymentProfileAssignment
+func (r *WindowsAutopilotDeploymentProfileAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfileModel.go
new file mode 100644
index 00000000..c1ffaa35
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfileModel.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// WindowsAutopilotDeploymentProfile Windows Autopilot Deployment Profile
+type WindowsAutopilotDeploymentProfile struct {
+ // Entity is the base model of WindowsAutopilotDeploymentProfile
+ Entity
+ // DisplayName Name of the profile
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of the profile
+ Description *string `json:"description,omitempty"`
+ // Language Language configured on the device
+ Language *string `json:"language,omitempty"`
+ // CreatedDateTime Profile creation time
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Profile last modified time
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // OutOfBoxExperienceSettings Out of box experience setting
+ OutOfBoxExperienceSettings *OutOfBoxExperienceSettings `json:"outOfBoxExperienceSettings,omitempty"`
+ // EnrollmentStatusScreenSettings Enrollment status screen setting
+ EnrollmentStatusScreenSettings *WindowsEnrollmentStatusScreenSettings `json:"enrollmentStatusScreenSettings,omitempty"`
+ // ExtractHardwareHash HardwareHash Extraction for the profile
+ ExtractHardwareHash *bool `json:"extractHardwareHash,omitempty"`
+ // DeviceNameTemplate The template used to name the AutoPilot Device. This can be a custom text and can also contain either the serial number of the device, or a randomly generated number. The total length of the text generated by the template can be no more than 15 characters.
+ DeviceNameTemplate *string `json:"deviceNameTemplate,omitempty"`
+ // DeviceType The AutoPilot device type that this profile is applicable to.
+ DeviceType *WindowsAutopilotDeviceType `json:"deviceType,omitempty"`
+ // EnableWhiteGlove Enable Autopilot White Glove for the profile.
+ EnableWhiteGlove *bool `json:"enableWhiteGlove,omitempty"`
+ // RoleScopeTagIDs Scope tags for the profile.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // AssignedDevices undocumented
+ AssignedDevices []WindowsAutopilotDeviceIdentity `json:"assignedDevices,omitempty"`
+ // Assignments undocumented
+ Assignments []WindowsAutopilotDeploymentProfileAssignment `json:"assignments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfilePolicySetItemModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfilePolicySetItemModel.go
new file mode 100644
index 00000000..dd68ba58
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfilePolicySetItemModel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAutopilotDeploymentProfilePolicySetItem A class containing the properties used for windows autopilot deployment profile PolicySetItem.
+type WindowsAutopilotDeploymentProfilePolicySetItem struct {
+ // PolicySetItem is the base model of WindowsAutopilotDeploymentProfilePolicySetItem
+ PolicySetItem
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfileRequest.go
new file mode 100644
index 00000000..20ae3e48
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentProfileRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// WindowsAutopilotDeploymentProfileRequestBuilder is request builder for WindowsAutopilotDeploymentProfile
+type WindowsAutopilotDeploymentProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsAutopilotDeploymentProfileRequest
+func (b *WindowsAutopilotDeploymentProfileRequestBuilder) Request() *WindowsAutopilotDeploymentProfileRequest {
+ return &WindowsAutopilotDeploymentProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsAutopilotDeploymentProfileRequest is request for WindowsAutopilotDeploymentProfile
+type WindowsAutopilotDeploymentProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsAutopilotDeploymentProfile
+func (r *WindowsAutopilotDeploymentProfileRequest) Get(ctx context.Context) (resObj *WindowsAutopilotDeploymentProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsAutopilotDeploymentProfile
+func (r *WindowsAutopilotDeploymentProfileRequest) Update(ctx context.Context, reqObj *WindowsAutopilotDeploymentProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsAutopilotDeploymentProfile
+func (r *WindowsAutopilotDeploymentProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AssignedDevices returns request builder for WindowsAutopilotDeviceIdentity collection
+func (b *WindowsAutopilotDeploymentProfileRequestBuilder) AssignedDevices() *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder {
+ bb := &WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignedDevices"
+ return bb
+}
+
+// WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder is request builder for WindowsAutopilotDeviceIdentity collection
+type WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsAutopilotDeviceIdentity collection
+func (b *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder) Request() *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest {
+ return &WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsAutopilotDeviceIdentity item
+func (b *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder) ID(id string) *WindowsAutopilotDeviceIdentityRequestBuilder {
+ bb := &WindowsAutopilotDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest is request for WindowsAutopilotDeviceIdentity collection
+type WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsAutopilotDeviceIdentity collection
+func (r *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsAutopilotDeviceIdentity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsAutopilotDeviceIdentity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsAutopilotDeviceIdentity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsAutopilotDeviceIdentity collection
+func (r *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest) Get(ctx context.Context) ([]WindowsAutopilotDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsAutopilotDeviceIdentity collection
+func (r *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest) Add(ctx context.Context, reqObj *WindowsAutopilotDeviceIdentity) (resObj *WindowsAutopilotDeviceIdentity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Assignments returns request builder for WindowsAutopilotDeploymentProfileAssignment collection
+func (b *WindowsAutopilotDeploymentProfileRequestBuilder) Assignments() *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder {
+ bb := &WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder is request builder for WindowsAutopilotDeploymentProfileAssignment collection
+type WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsAutopilotDeploymentProfileAssignment collection
+func (b *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder) Request() *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest {
+ return &WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsAutopilotDeploymentProfileAssignment item
+func (b *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder) ID(id string) *WindowsAutopilotDeploymentProfileAssignmentRequestBuilder {
+ bb := &WindowsAutopilotDeploymentProfileAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest is request for WindowsAutopilotDeploymentProfileAssignment collection
+type WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsAutopilotDeploymentProfileAssignment collection
+func (r *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsAutopilotDeploymentProfileAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsAutopilotDeploymentProfileAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsAutopilotDeploymentProfileAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsAutopilotDeploymentProfileAssignment collection
+func (r *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest) Get(ctx context.Context) ([]WindowsAutopilotDeploymentProfileAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsAutopilotDeploymentProfileAssignment collection
+func (r *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *WindowsAutopilotDeploymentProfileAssignment) (resObj *WindowsAutopilotDeploymentProfileAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentStateEnum.go
new file mode 100644
index 00000000..1326caf1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeploymentStateEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAutopilotDeploymentState undocumented
+type WindowsAutopilotDeploymentState int
+
+const (
+ // WindowsAutopilotDeploymentStateVUnknown undocumented
+ WindowsAutopilotDeploymentStateVUnknown WindowsAutopilotDeploymentState = 0
+ // WindowsAutopilotDeploymentStateVSuccess undocumented
+ WindowsAutopilotDeploymentStateVSuccess WindowsAutopilotDeploymentState = 1
+ // WindowsAutopilotDeploymentStateVInProgress undocumented
+ WindowsAutopilotDeploymentStateVInProgress WindowsAutopilotDeploymentState = 2
+ // WindowsAutopilotDeploymentStateVFailure undocumented
+ WindowsAutopilotDeploymentStateVFailure WindowsAutopilotDeploymentState = 3
+ // WindowsAutopilotDeploymentStateVSuccessWithTimeout undocumented
+ WindowsAutopilotDeploymentStateVSuccessWithTimeout WindowsAutopilotDeploymentState = 4
+)
+
+// WindowsAutopilotDeploymentStatePUnknown returns a pointer to WindowsAutopilotDeploymentStateVUnknown
+func WindowsAutopilotDeploymentStatePUnknown() *WindowsAutopilotDeploymentState {
+ v := WindowsAutopilotDeploymentStateVUnknown
+ return &v
+}
+
+// WindowsAutopilotDeploymentStatePSuccess returns a pointer to WindowsAutopilotDeploymentStateVSuccess
+func WindowsAutopilotDeploymentStatePSuccess() *WindowsAutopilotDeploymentState {
+ v := WindowsAutopilotDeploymentStateVSuccess
+ return &v
+}
+
+// WindowsAutopilotDeploymentStatePInProgress returns a pointer to WindowsAutopilotDeploymentStateVInProgress
+func WindowsAutopilotDeploymentStatePInProgress() *WindowsAutopilotDeploymentState {
+ v := WindowsAutopilotDeploymentStateVInProgress
+ return &v
+}
+
+// WindowsAutopilotDeploymentStatePFailure returns a pointer to WindowsAutopilotDeploymentStateVFailure
+func WindowsAutopilotDeploymentStatePFailure() *WindowsAutopilotDeploymentState {
+ v := WindowsAutopilotDeploymentStateVFailure
+ return &v
+}
+
+// WindowsAutopilotDeploymentStatePSuccessWithTimeout returns a pointer to WindowsAutopilotDeploymentStateVSuccessWithTimeout
+func WindowsAutopilotDeploymentStatePSuccessWithTimeout() *WindowsAutopilotDeploymentState {
+ v := WindowsAutopilotDeploymentStateVSuccessWithTimeout
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeviceIdentityAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeviceIdentityAction.go
new file mode 100644
index 00000000..543a5196
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeviceIdentityAction.go
@@ -0,0 +1,173 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestParameter undocumented
+type WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestParameter struct {
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // AddressableUserName undocumented
+ AddressableUserName *string `json:"addressableUserName,omitempty"`
+}
+
+// WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestParameter undocumented
+type WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestParameter struct {
+}
+
+// WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestParameter undocumented
+type WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestParameter struct {
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // AddressableUserName undocumented
+ AddressableUserName *string `json:"addressableUserName,omitempty"`
+ // GroupTag undocumented
+ GroupTag *string `json:"groupTag,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestParameter undocumented
+type WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestParameter struct {
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // AddressableUserName undocumented
+ AddressableUserName *string `json:"addressableUserName,omitempty"`
+ // ResourceAccountName undocumented
+ ResourceAccountName *string `json:"resourceAccountName,omitempty"`
+}
+
+// WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestParameter undocumented
+type WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestParameter struct {
+}
+
+//
+type WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// AssignUserToDevice action undocumented
+func (b *WindowsAutopilotDeviceIdentityRequestBuilder) AssignUserToDevice(reqObj *WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestParameter) *WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestBuilder {
+ bb := &WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assignUserToDevice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsAutopilotDeviceIdentityAssignUserToDeviceRequest struct{ BaseRequest }
+
+//
+func (b *WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestBuilder) Request() *WindowsAutopilotDeviceIdentityAssignUserToDeviceRequest {
+ return &WindowsAutopilotDeviceIdentityAssignUserToDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsAutopilotDeviceIdentityAssignUserToDeviceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// UnassignUserFromDevice action undocumented
+func (b *WindowsAutopilotDeviceIdentityRequestBuilder) UnassignUserFromDevice(reqObj *WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestParameter) *WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestBuilder {
+ bb := &WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unassignUserFromDevice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequest struct{ BaseRequest }
+
+//
+func (b *WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestBuilder) Request() *WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequest {
+ return &WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateDeviceProperties action undocumented
+func (b *WindowsAutopilotDeviceIdentityRequestBuilder) UpdateDeviceProperties(reqObj *WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestParameter) *WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestBuilder {
+ bb := &WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateDeviceProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequest struct{ BaseRequest }
+
+//
+func (b *WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestBuilder) Request() *WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequest {
+ return &WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// AssignResourceAccountToDevice action undocumented
+func (b *WindowsAutopilotDeviceIdentityRequestBuilder) AssignResourceAccountToDevice(reqObj *WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestParameter) *WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestBuilder {
+ bb := &WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assignResourceAccountToDevice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequest struct{ BaseRequest }
+
+//
+func (b *WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestBuilder) Request() *WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequest {
+ return &WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// UnassignResourceAccountFromDevice action undocumented
+func (b *WindowsAutopilotDeviceIdentityRequestBuilder) UnassignResourceAccountFromDevice(reqObj *WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestParameter) *WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestBuilder {
+ bb := &WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unassignResourceAccountFromDevice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequest struct{ BaseRequest }
+
+//
+func (b *WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestBuilder) Request() *WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequest {
+ return &WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeviceIdentityModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeviceIdentityModel.go
new file mode 100644
index 00000000..025e9656
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeviceIdentityModel.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// WindowsAutopilotDeviceIdentity The windowsAutopilotDeviceIdentity resource represents a Windows Autopilot Device.
+type WindowsAutopilotDeviceIdentity struct {
+ // Entity is the base model of WindowsAutopilotDeviceIdentity
+ Entity
+ // DeploymentProfileAssignmentStatus Profile assignment status of the Windows autopilot device.
+ DeploymentProfileAssignmentStatus *WindowsAutopilotProfileAssignmentStatus `json:"deploymentProfileAssignmentStatus,omitempty"`
+ // DeploymentProfileAssignmentDetailedStatus Profile assignment detailed status of the Windows autopilot device.
+ DeploymentProfileAssignmentDetailedStatus *WindowsAutopilotProfileAssignmentDetailedStatus `json:"deploymentProfileAssignmentDetailedStatus,omitempty"`
+ // DeploymentProfileAssignedDateTime Profile set time of the Windows autopilot device.
+ DeploymentProfileAssignedDateTime *time.Time `json:"deploymentProfileAssignedDateTime,omitempty"`
+ // OrderIdentifier Order Identifier of the Windows autopilot device - Deprecated
+ OrderIdentifier *string `json:"orderIdentifier,omitempty"`
+ // GroupTag Group Tag of the Windows autopilot device.
+ GroupTag *string `json:"groupTag,omitempty"`
+ // PurchaseOrderIdentifier Purchase Order Identifier of the Windows autopilot device.
+ PurchaseOrderIdentifier *string `json:"purchaseOrderIdentifier,omitempty"`
+ // SerialNumber Serial number of the Windows autopilot device.
+ SerialNumber *string `json:"serialNumber,omitempty"`
+ // ProductKey Product Key of the Windows autopilot device.
+ ProductKey *string `json:"productKey,omitempty"`
+ // Manufacturer Oem manufacturer of the Windows autopilot device.
+ Manufacturer *string `json:"manufacturer,omitempty"`
+ // Model Model name of the Windows autopilot device.
+ Model *string `json:"model,omitempty"`
+ // EnrollmentState Intune enrollment state of the Windows autopilot device.
+ EnrollmentState *EnrollmentState `json:"enrollmentState,omitempty"`
+ // LastContactedDateTime Intune Last Contacted Date Time of the Windows autopilot device.
+ LastContactedDateTime *time.Time `json:"lastContactedDateTime,omitempty"`
+ // AddressableUserName Addressable user name.
+ AddressableUserName *string `json:"addressableUserName,omitempty"`
+ // UserPrincipalName User Principal Name.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // ResourceName Resource Name.
+ ResourceName *string `json:"resourceName,omitempty"`
+ // SKUNumber SKU Number
+ SKUNumber *string `json:"skuNumber,omitempty"`
+ // SystemFamily System Family
+ SystemFamily *string `json:"systemFamily,omitempty"`
+ // AzureActiveDirectoryDeviceID AAD Device ID
+ AzureActiveDirectoryDeviceID *string `json:"azureActiveDirectoryDeviceId,omitempty"`
+ // ManagedDeviceID Managed Device ID
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // DisplayName Display Name
+ DisplayName *string `json:"displayName,omitempty"`
+ // DeploymentProfile undocumented
+ DeploymentProfile *WindowsAutopilotDeploymentProfile `json:"deploymentProfile,omitempty"`
+ // IntendedDeploymentProfile undocumented
+ IntendedDeploymentProfile *WindowsAutopilotDeploymentProfile `json:"intendedDeploymentProfile,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeviceIdentityRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeviceIdentityRequest.go
new file mode 100644
index 00000000..d7b1d5fd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeviceIdentityRequest.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsAutopilotDeviceIdentityRequestBuilder is request builder for WindowsAutopilotDeviceIdentity
+type WindowsAutopilotDeviceIdentityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsAutopilotDeviceIdentityRequest
+func (b *WindowsAutopilotDeviceIdentityRequestBuilder) Request() *WindowsAutopilotDeviceIdentityRequest {
+ return &WindowsAutopilotDeviceIdentityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsAutopilotDeviceIdentityRequest is request for WindowsAutopilotDeviceIdentity
+type WindowsAutopilotDeviceIdentityRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsAutopilotDeviceIdentity
+func (r *WindowsAutopilotDeviceIdentityRequest) Get(ctx context.Context) (resObj *WindowsAutopilotDeviceIdentity, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsAutopilotDeviceIdentity
+func (r *WindowsAutopilotDeviceIdentityRequest) Update(ctx context.Context, reqObj *WindowsAutopilotDeviceIdentity) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsAutopilotDeviceIdentity
+func (r *WindowsAutopilotDeviceIdentityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeploymentProfile is navigation property
+func (b *WindowsAutopilotDeviceIdentityRequestBuilder) DeploymentProfile() *WindowsAutopilotDeploymentProfileRequestBuilder {
+ bb := &WindowsAutopilotDeploymentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deploymentProfile"
+ return bb
+}
+
+// IntendedDeploymentProfile is navigation property
+func (b *WindowsAutopilotDeviceIdentityRequestBuilder) IntendedDeploymentProfile() *WindowsAutopilotDeploymentProfileRequestBuilder {
+ bb := &WindowsAutopilotDeploymentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/intendedDeploymentProfile"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeviceTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeviceTypeEnum.go
new file mode 100644
index 00000000..53c72303
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotDeviceTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAutopilotDeviceType undocumented
+type WindowsAutopilotDeviceType int
+
+const (
+ // WindowsAutopilotDeviceTypeVWindowsPc undocumented
+ WindowsAutopilotDeviceTypeVWindowsPc WindowsAutopilotDeviceType = 0
+ // WindowsAutopilotDeviceTypeVSurfaceHub2 undocumented
+ WindowsAutopilotDeviceTypeVSurfaceHub2 WindowsAutopilotDeviceType = 1
+)
+
+// WindowsAutopilotDeviceTypePWindowsPc returns a pointer to WindowsAutopilotDeviceTypeVWindowsPc
+func WindowsAutopilotDeviceTypePWindowsPc() *WindowsAutopilotDeviceType {
+ v := WindowsAutopilotDeviceTypeVWindowsPc
+ return &v
+}
+
+// WindowsAutopilotDeviceTypePSurfaceHub2 returns a pointer to WindowsAutopilotDeviceTypeVSurfaceHub2
+func WindowsAutopilotDeviceTypePSurfaceHub2() *WindowsAutopilotDeviceType {
+ v := WindowsAutopilotDeviceTypeVSurfaceHub2
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotEnrollmentTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotEnrollmentTypeEnum.go
new file mode 100644
index 00000000..a5ffe76a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotEnrollmentTypeEnum.go
@@ -0,0 +1,81 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAutopilotEnrollmentType undocumented
+type WindowsAutopilotEnrollmentType int
+
+const (
+ // WindowsAutopilotEnrollmentTypeVUnknown undocumented
+ WindowsAutopilotEnrollmentTypeVUnknown WindowsAutopilotEnrollmentType = 0
+ // WindowsAutopilotEnrollmentTypeVAzureADJoinedWithAutopilotProfile undocumented
+ WindowsAutopilotEnrollmentTypeVAzureADJoinedWithAutopilotProfile WindowsAutopilotEnrollmentType = 1
+ // WindowsAutopilotEnrollmentTypeVOfflineDomainJoined undocumented
+ WindowsAutopilotEnrollmentTypeVOfflineDomainJoined WindowsAutopilotEnrollmentType = 2
+ // WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithAutopilotProfile undocumented
+ WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithAutopilotProfile WindowsAutopilotEnrollmentType = 3
+ // WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile undocumented
+ WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile WindowsAutopilotEnrollmentType = 4
+ // WindowsAutopilotEnrollmentTypeVAzureADJoinedWithOfflineAutopilotProfile undocumented
+ WindowsAutopilotEnrollmentTypeVAzureADJoinedWithOfflineAutopilotProfile WindowsAutopilotEnrollmentType = 5
+ // WindowsAutopilotEnrollmentTypeVAzureADJoinedWithWhiteGlove undocumented
+ WindowsAutopilotEnrollmentTypeVAzureADJoinedWithWhiteGlove WindowsAutopilotEnrollmentType = 6
+ // WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithWhiteGlove undocumented
+ WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithWhiteGlove WindowsAutopilotEnrollmentType = 7
+ // WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithOfflineAutopilotProfile undocumented
+ WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithOfflineAutopilotProfile WindowsAutopilotEnrollmentType = 8
+)
+
+// WindowsAutopilotEnrollmentTypePUnknown returns a pointer to WindowsAutopilotEnrollmentTypeVUnknown
+func WindowsAutopilotEnrollmentTypePUnknown() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVUnknown
+ return &v
+}
+
+// WindowsAutopilotEnrollmentTypePAzureADJoinedWithAutopilotProfile returns a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedWithAutopilotProfile
+func WindowsAutopilotEnrollmentTypePAzureADJoinedWithAutopilotProfile() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVAzureADJoinedWithAutopilotProfile
+ return &v
+}
+
+// WindowsAutopilotEnrollmentTypePOfflineDomainJoined returns a pointer to WindowsAutopilotEnrollmentTypeVOfflineDomainJoined
+func WindowsAutopilotEnrollmentTypePOfflineDomainJoined() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVOfflineDomainJoined
+ return &v
+}
+
+// WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithAutopilotProfile returns a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithAutopilotProfile
+func WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithAutopilotProfile() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithAutopilotProfile
+ return &v
+}
+
+// WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile returns a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile
+func WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile
+ return &v
+}
+
+// WindowsAutopilotEnrollmentTypePAzureADJoinedWithOfflineAutopilotProfile returns a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedWithOfflineAutopilotProfile
+func WindowsAutopilotEnrollmentTypePAzureADJoinedWithOfflineAutopilotProfile() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVAzureADJoinedWithOfflineAutopilotProfile
+ return &v
+}
+
+// WindowsAutopilotEnrollmentTypePAzureADJoinedWithWhiteGlove returns a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedWithWhiteGlove
+func WindowsAutopilotEnrollmentTypePAzureADJoinedWithWhiteGlove() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVAzureADJoinedWithWhiteGlove
+ return &v
+}
+
+// WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithWhiteGlove returns a pointer to WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithWhiteGlove
+func WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithWhiteGlove() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithWhiteGlove
+ return &v
+}
+
+// WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithOfflineAutopilotProfile returns a pointer to WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithOfflineAutopilotProfile
+func WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithOfflineAutopilotProfile() *WindowsAutopilotEnrollmentType {
+ v := WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithOfflineAutopilotProfile
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotProfileAssignmentDetailedStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotProfileAssignmentDetailedStatusEnum.go
new file mode 100644
index 00000000..f3548a43
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotProfileAssignmentDetailedStatusEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAutopilotProfileAssignmentDetailedStatus undocumented
+type WindowsAutopilotProfileAssignmentDetailedStatus int
+
+const (
+ // WindowsAutopilotProfileAssignmentDetailedStatusVNone undocumented
+ WindowsAutopilotProfileAssignmentDetailedStatusVNone WindowsAutopilotProfileAssignmentDetailedStatus = 0
+ // WindowsAutopilotProfileAssignmentDetailedStatusVHardwareRequirementsNotMet undocumented
+ WindowsAutopilotProfileAssignmentDetailedStatusVHardwareRequirementsNotMet WindowsAutopilotProfileAssignmentDetailedStatus = 1
+)
+
+// WindowsAutopilotProfileAssignmentDetailedStatusPNone returns a pointer to WindowsAutopilotProfileAssignmentDetailedStatusVNone
+func WindowsAutopilotProfileAssignmentDetailedStatusPNone() *WindowsAutopilotProfileAssignmentDetailedStatus {
+ v := WindowsAutopilotProfileAssignmentDetailedStatusVNone
+ return &v
+}
+
+// WindowsAutopilotProfileAssignmentDetailedStatusPHardwareRequirementsNotMet returns a pointer to WindowsAutopilotProfileAssignmentDetailedStatusVHardwareRequirementsNotMet
+func WindowsAutopilotProfileAssignmentDetailedStatusPHardwareRequirementsNotMet() *WindowsAutopilotProfileAssignmentDetailedStatus {
+ v := WindowsAutopilotProfileAssignmentDetailedStatusVHardwareRequirementsNotMet
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotProfileAssignmentStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotProfileAssignmentStatusEnum.go
new file mode 100644
index 00000000..b227e4fc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotProfileAssignmentStatusEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAutopilotProfileAssignmentStatus undocumented
+type WindowsAutopilotProfileAssignmentStatus int
+
+const (
+ // WindowsAutopilotProfileAssignmentStatusVUnknown undocumented
+ WindowsAutopilotProfileAssignmentStatusVUnknown WindowsAutopilotProfileAssignmentStatus = 0
+ // WindowsAutopilotProfileAssignmentStatusVAssignedInSync undocumented
+ WindowsAutopilotProfileAssignmentStatusVAssignedInSync WindowsAutopilotProfileAssignmentStatus = 1
+ // WindowsAutopilotProfileAssignmentStatusVAssignedOutOfSync undocumented
+ WindowsAutopilotProfileAssignmentStatusVAssignedOutOfSync WindowsAutopilotProfileAssignmentStatus = 2
+ // WindowsAutopilotProfileAssignmentStatusVAssignedUnkownSyncState undocumented
+ WindowsAutopilotProfileAssignmentStatusVAssignedUnkownSyncState WindowsAutopilotProfileAssignmentStatus = 3
+ // WindowsAutopilotProfileAssignmentStatusVNotAssigned undocumented
+ WindowsAutopilotProfileAssignmentStatusVNotAssigned WindowsAutopilotProfileAssignmentStatus = 4
+ // WindowsAutopilotProfileAssignmentStatusVPending undocumented
+ WindowsAutopilotProfileAssignmentStatusVPending WindowsAutopilotProfileAssignmentStatus = 5
+ // WindowsAutopilotProfileAssignmentStatusVFailed undocumented
+ WindowsAutopilotProfileAssignmentStatusVFailed WindowsAutopilotProfileAssignmentStatus = 6
+)
+
+// WindowsAutopilotProfileAssignmentStatusPUnknown returns a pointer to WindowsAutopilotProfileAssignmentStatusVUnknown
+func WindowsAutopilotProfileAssignmentStatusPUnknown() *WindowsAutopilotProfileAssignmentStatus {
+ v := WindowsAutopilotProfileAssignmentStatusVUnknown
+ return &v
+}
+
+// WindowsAutopilotProfileAssignmentStatusPAssignedInSync returns a pointer to WindowsAutopilotProfileAssignmentStatusVAssignedInSync
+func WindowsAutopilotProfileAssignmentStatusPAssignedInSync() *WindowsAutopilotProfileAssignmentStatus {
+ v := WindowsAutopilotProfileAssignmentStatusVAssignedInSync
+ return &v
+}
+
+// WindowsAutopilotProfileAssignmentStatusPAssignedOutOfSync returns a pointer to WindowsAutopilotProfileAssignmentStatusVAssignedOutOfSync
+func WindowsAutopilotProfileAssignmentStatusPAssignedOutOfSync() *WindowsAutopilotProfileAssignmentStatus {
+ v := WindowsAutopilotProfileAssignmentStatusVAssignedOutOfSync
+ return &v
+}
+
+// WindowsAutopilotProfileAssignmentStatusPAssignedUnkownSyncState returns a pointer to WindowsAutopilotProfileAssignmentStatusVAssignedUnkownSyncState
+func WindowsAutopilotProfileAssignmentStatusPAssignedUnkownSyncState() *WindowsAutopilotProfileAssignmentStatus {
+ v := WindowsAutopilotProfileAssignmentStatusVAssignedUnkownSyncState
+ return &v
+}
+
+// WindowsAutopilotProfileAssignmentStatusPNotAssigned returns a pointer to WindowsAutopilotProfileAssignmentStatusVNotAssigned
+func WindowsAutopilotProfileAssignmentStatusPNotAssigned() *WindowsAutopilotProfileAssignmentStatus {
+ v := WindowsAutopilotProfileAssignmentStatusVNotAssigned
+ return &v
+}
+
+// WindowsAutopilotProfileAssignmentStatusPPending returns a pointer to WindowsAutopilotProfileAssignmentStatusVPending
+func WindowsAutopilotProfileAssignmentStatusPPending() *WindowsAutopilotProfileAssignmentStatus {
+ v := WindowsAutopilotProfileAssignmentStatusVPending
+ return &v
+}
+
+// WindowsAutopilotProfileAssignmentStatusPFailed returns a pointer to WindowsAutopilotProfileAssignmentStatusVFailed
+func WindowsAutopilotProfileAssignmentStatusPFailed() *WindowsAutopilotProfileAssignmentStatus {
+ v := WindowsAutopilotProfileAssignmentStatusVFailed
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotSettingsAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotSettingsAction.go
new file mode 100644
index 00000000..bbc90da4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotSettingsAction.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsAutopilotSettingsSyncRequestParameter undocumented
+type WindowsAutopilotSettingsSyncRequestParameter struct {
+}
+
+//
+type WindowsAutopilotSettingsSyncRequestBuilder struct{ BaseRequestBuilder }
+
+// Sync action undocumented
+func (b *WindowsAutopilotSettingsRequestBuilder) Sync(reqObj *WindowsAutopilotSettingsSyncRequestParameter) *WindowsAutopilotSettingsSyncRequestBuilder {
+ bb := &WindowsAutopilotSettingsSyncRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sync"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsAutopilotSettingsSyncRequest struct{ BaseRequest }
+
+//
+func (b *WindowsAutopilotSettingsSyncRequestBuilder) Request() *WindowsAutopilotSettingsSyncRequest {
+ return &WindowsAutopilotSettingsSyncRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsAutopilotSettingsSyncRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotSettingsModel.go
new file mode 100644
index 00000000..fc8b6147
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotSettingsModel.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// WindowsAutopilotSettings The windowsAutopilotSettings resource represents a Windows Autopilot Account to sync data with Windows device data sync service.
+type WindowsAutopilotSettings struct {
+ // Entity is the base model of WindowsAutopilotSettings
+ Entity
+ // LastSyncDateTime Last data sync date time with DDS service.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // LastManualSyncTriggerDateTime Last data sync date time with DDS service.
+ LastManualSyncTriggerDateTime *time.Time `json:"lastManualSyncTriggerDateTime,omitempty"`
+ // SyncStatus Indicates the status of sync with Device data sync (DDS) service.
+ SyncStatus *WindowsAutopilotSyncStatus `json:"syncStatus,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotSettingsRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotSettingsRequest.go
new file mode 100644
index 00000000..8b6d9a74
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotSettingsRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsAutopilotSettingsRequestBuilder is request builder for WindowsAutopilotSettings
+type WindowsAutopilotSettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsAutopilotSettingsRequest
+func (b *WindowsAutopilotSettingsRequestBuilder) Request() *WindowsAutopilotSettingsRequest {
+ return &WindowsAutopilotSettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsAutopilotSettingsRequest is request for WindowsAutopilotSettings
+type WindowsAutopilotSettingsRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsAutopilotSettings
+func (r *WindowsAutopilotSettingsRequest) Get(ctx context.Context) (resObj *WindowsAutopilotSettings, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsAutopilotSettings
+func (r *WindowsAutopilotSettingsRequest) Update(ctx context.Context, reqObj *WindowsAutopilotSettings) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsAutopilotSettings
+func (r *WindowsAutopilotSettingsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotSyncStatusEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotSyncStatusEnum.go
new file mode 100644
index 00000000..13e8bd63
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsAutopilotSyncStatusEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAutopilotSyncStatus undocumented
+type WindowsAutopilotSyncStatus int
+
+const (
+ // WindowsAutopilotSyncStatusVUnknown undocumented
+ WindowsAutopilotSyncStatusVUnknown WindowsAutopilotSyncStatus = 0
+ // WindowsAutopilotSyncStatusVInProgress undocumented
+ WindowsAutopilotSyncStatusVInProgress WindowsAutopilotSyncStatus = 1
+ // WindowsAutopilotSyncStatusVCompleted undocumented
+ WindowsAutopilotSyncStatusVCompleted WindowsAutopilotSyncStatus = 2
+ // WindowsAutopilotSyncStatusVFailed undocumented
+ WindowsAutopilotSyncStatusVFailed WindowsAutopilotSyncStatus = 3
+)
+
+// WindowsAutopilotSyncStatusPUnknown returns a pointer to WindowsAutopilotSyncStatusVUnknown
+func WindowsAutopilotSyncStatusPUnknown() *WindowsAutopilotSyncStatus {
+ v := WindowsAutopilotSyncStatusVUnknown
+ return &v
+}
+
+// WindowsAutopilotSyncStatusPInProgress returns a pointer to WindowsAutopilotSyncStatusVInProgress
+func WindowsAutopilotSyncStatusPInProgress() *WindowsAutopilotSyncStatus {
+ v := WindowsAutopilotSyncStatusVInProgress
+ return &v
+}
+
+// WindowsAutopilotSyncStatusPCompleted returns a pointer to WindowsAutopilotSyncStatusVCompleted
+func WindowsAutopilotSyncStatusPCompleted() *WindowsAutopilotSyncStatus {
+ v := WindowsAutopilotSyncStatusVCompleted
+ return &v
+}
+
+// WindowsAutopilotSyncStatusPFailed returns a pointer to WindowsAutopilotSyncStatusVFailed
+func WindowsAutopilotSyncStatusPFailed() *WindowsAutopilotSyncStatus {
+ v := WindowsAutopilotSyncStatusVFailed
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsCertificateProfileBaseModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsCertificateProfileBaseModel.go
new file mode 100644
index 00000000..8e179650
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsCertificateProfileBaseModel.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsCertificateProfileBase Device Configuration.
+type WindowsCertificateProfileBase struct {
+ // DeviceConfiguration is the base model of WindowsCertificateProfileBase
+ DeviceConfiguration
+ // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99
+ RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
+ // KeyStorageProvider Key Storage Provider (KSP)
+ KeyStorageProvider *KeyStorageProviderOption `json:"keyStorageProvider,omitempty"`
+ // SubjectNameFormat Certificate Subject Name Format
+ SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"`
+ // SubjectAlternativeNameType Certificate Subject Alternative Name Type
+ SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"`
+ // CertificateValidityPeriodValue Value for the Certificate Validity Period
+ CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
+ // CertificateValidityPeriodScale Scale for the Certificate Validity Period
+ CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsCertificateProfileBaseRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsCertificateProfileBaseRequest.go
new file mode 100644
index 00000000..5d2297a9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsCertificateProfileBaseRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsCertificateProfileBaseRequestBuilder is request builder for WindowsCertificateProfileBase
+type WindowsCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsCertificateProfileBaseRequest
+func (b *WindowsCertificateProfileBaseRequestBuilder) Request() *WindowsCertificateProfileBaseRequest {
+ return &WindowsCertificateProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsCertificateProfileBaseRequest is request for WindowsCertificateProfileBase
+type WindowsCertificateProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsCertificateProfileBase
+func (r *WindowsCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *WindowsCertificateProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsCertificateProfileBase
+func (r *WindowsCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *WindowsCertificateProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsCertificateProfileBase
+func (r *WindowsCertificateProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderAdvancedThreatProtectionConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderAdvancedThreatProtectionConfigurationModel.go
new file mode 100644
index 00000000..cecbe4c8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderAdvancedThreatProtectionConfigurationModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDefenderAdvancedThreatProtectionConfiguration Windows Defender AdvancedThreatProtection Configuration.
+type WindowsDefenderAdvancedThreatProtectionConfiguration struct {
+ // DeviceConfiguration is the base model of WindowsDefenderAdvancedThreatProtectionConfiguration
+ DeviceConfiguration
+ // AdvancedThreatProtectionOnboardingBlob Windows Defender AdvancedThreatProtection Onboarding Blob.
+ AdvancedThreatProtectionOnboardingBlob *string `json:"advancedThreatProtectionOnboardingBlob,omitempty"`
+ // AdvancedThreatProtectionOnboardingFilename Name of the file from which AdvancedThreatProtectionOnboardingBlob was obtained.
+ AdvancedThreatProtectionOnboardingFilename *string `json:"advancedThreatProtectionOnboardingFilename,omitempty"`
+ // AdvancedThreatProtectionAutoPopulateOnboardingBlob Auto populate onboarding blob programmatically from Advanced Threat protection service
+ AdvancedThreatProtectionAutoPopulateOnboardingBlob *bool `json:"advancedThreatProtectionAutoPopulateOnboardingBlob,omitempty"`
+ // AllowSampleSharing Windows Defender AdvancedThreatProtection "Allow Sample Sharing" Rule
+ AllowSampleSharing *bool `json:"allowSampleSharing,omitempty"`
+ // EnableExpeditedTelemetryReporting Expedite Windows Defender Advanced Threat Protection telemetry reporting frequency.
+ EnableExpeditedTelemetryReporting *bool `json:"enableExpeditedTelemetryReporting,omitempty"`
+ // AdvancedThreatProtectionOffboardingBlob Windows Defender AdvancedThreatProtection Offboarding Blob.
+ AdvancedThreatProtectionOffboardingBlob *string `json:"advancedThreatProtectionOffboardingBlob,omitempty"`
+ // AdvancedThreatProtectionOffboardingFilename Name of the file from which AdvancedThreatProtectionOffboardingBlob was obtained.
+ AdvancedThreatProtectionOffboardingFilename *string `json:"advancedThreatProtectionOffboardingFilename,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAction.go
new file mode 100644
index 00000000..73300e1e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsDefenderApplicationControlSupplementalPolicyAssignRequestParameter undocumented
+type WindowsDefenderApplicationControlSupplementalPolicyAssignRequestParameter struct {
+ // WdacPolicyAssignments undocumented
+ WdacPolicyAssignments []WindowsDefenderApplicationControlSupplementalPolicyAssignment `json:"wdacPolicyAssignments,omitempty"`
+}
+
+//
+type WindowsDefenderApplicationControlSupplementalPolicyAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder) Assign(reqObj *WindowsDefenderApplicationControlSupplementalPolicyAssignRequestParameter) *WindowsDefenderApplicationControlSupplementalPolicyAssignRequestBuilder {
+ bb := &WindowsDefenderApplicationControlSupplementalPolicyAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsDefenderApplicationControlSupplementalPolicyAssignRequest struct{ BaseRequest }
+
+//
+func (b *WindowsDefenderApplicationControlSupplementalPolicyAssignRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyAssignRequest {
+ return &WindowsDefenderApplicationControlSupplementalPolicyAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentModel.go
new file mode 100644
index 00000000..b101bb76
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDefenderApplicationControlSupplementalPolicyAssignment A class containing the properties used for assignment of a WindowsDefenderApplicationControl supplemental policy to a group.
+type WindowsDefenderApplicationControlSupplementalPolicyAssignment struct {
+ // Entity is the base model of WindowsDefenderApplicationControlSupplementalPolicyAssignment
+ Entity
+ // Target The target group assignment defined by the admin.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest.go
new file mode 100644
index 00000000..363d787a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicyAssignment
+type WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest
+func (b *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest {
+ return &WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest is request for WindowsDefenderApplicationControlSupplementalPolicyAssignment
+type WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicyAssignment
+func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest) Get(ctx context.Context) (resObj *WindowsDefenderApplicationControlSupplementalPolicyAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsDefenderApplicationControlSupplementalPolicyAssignment
+func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest) Update(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicyAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsDefenderApplicationControlSupplementalPolicyAssignment
+func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusModel.go
new file mode 100644
index 00000000..fc6ebb09
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusModel.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus Contains properties for the deployment state of a WindowsDefenderApplicationControl supplemental policy for a device.
+type WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus struct {
+ // Entity is the base model of WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus
+ Entity
+ // DeviceName Device name.
+ DeviceName *string `json:"deviceName,omitempty"`
+ // DeviceID Device ID.
+ DeviceID *string `json:"deviceId,omitempty"`
+ // LastSyncDateTime Last sync date time.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // OsVersion Windows OS Version.
+ OsVersion *string `json:"osVersion,omitempty"`
+ // OsDescription Windows OS Version Description.
+ OsDescription *string `json:"osDescription,omitempty"`
+ // DeploymentStatus The deployment state of the policy.
+ DeploymentStatus *WindowsDefenderApplicationControlSupplementalPolicyStatuses `json:"deploymentStatus,omitempty"`
+ // UserName The name of the user of this device.
+ UserName *string `json:"userName,omitempty"`
+ // UserPrincipalName User Principal Name.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // PolicyVersion Human readable version of the WindowsDefenderApplicationControl supplemental policy.
+ PolicyVersion *string `json:"policyVersion,omitempty"`
+ // Policy undocumented
+ Policy *WindowsDefenderApplicationControlSupplementalPolicy `json:"policy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest.go
new file mode 100644
index 00000000..8efa95fd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus
+type WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest
+func (b *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest {
+ return &WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest is request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus
+type WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest) Get(ctx context.Context) (resObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest) Update(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Policy is navigation property
+func (b *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder) Policy() *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder {
+ bb := &WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policy"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryModel.go
new file mode 100644
index 00000000..ec2ef953
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary Contains properties for the deployment summary of a WindowsDefenderApplicationControl supplemental policy.
+type WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary struct {
+ // Entity is the base model of WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary
+ Entity
+ // DeployedDeviceCount Number of Devices that have successfully deployed this WindowsDefenderApplicationControl supplemental policy.
+ DeployedDeviceCount *int `json:"deployedDeviceCount,omitempty"`
+ // FailedDeviceCount Number of Devices that have failed to deploy this WindowsDefenderApplicationControl supplemental policy.
+ FailedDeviceCount *int `json:"failedDeviceCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest.go
new file mode 100644
index 00000000..6401b50d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary
+type WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest
+func (b *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest {
+ return &WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest is request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary
+type WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest) Get(ctx context.Context) (resObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest) Update(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyModel.go
new file mode 100644
index 00000000..55b64856
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// WindowsDefenderApplicationControlSupplementalPolicy undocumented
+type WindowsDefenderApplicationControlSupplementalPolicy struct {
+ // Entity is the base model of WindowsDefenderApplicationControlSupplementalPolicy
+ Entity
+ // DisplayName The display name of WindowsDefenderApplicationControl supplemental policy.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The description of WindowsDefenderApplicationControl supplemental policy.
+ Description *string `json:"description,omitempty"`
+ // Content The WindowsDefenderApplicationControl supplemental policy content in byte array format.
+ Content *Binary `json:"content,omitempty"`
+ // ContentFileName The WindowsDefenderApplicationControl supplemental policy content's file name.
+ ContentFileName *string `json:"contentFileName,omitempty"`
+ // Version The WindowsDefenderApplicationControl supplemental policy's version.
+ Version *string `json:"version,omitempty"`
+ // CreationDateTime The date and time when the WindowsDefenderApplicationControl supplemental policy was uploaded.
+ CreationDateTime *time.Time `json:"creationDateTime,omitempty"`
+ // LastModifiedDateTime The date and time when the WindowsDefenderApplicationControl supplemental policy was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this WindowsDefenderApplicationControl supplemental policy entity.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // Assignments undocumented
+ Assignments []WindowsDefenderApplicationControlSupplementalPolicyAssignment `json:"assignments,omitempty"`
+ // DeploySummary undocumented
+ DeploySummary *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary `json:"deploySummary,omitempty"`
+ // DeviceStatuses undocumented
+ DeviceStatuses []WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus `json:"deviceStatuses,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyRequest.go
new file mode 100644
index 00000000..708ed80d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyRequest.go
@@ -0,0 +1,240 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicy
+type WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsDefenderApplicationControlSupplementalPolicyRequest
+func (b *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyRequest {
+ return &WindowsDefenderApplicationControlSupplementalPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyRequest is request for WindowsDefenderApplicationControlSupplementalPolicy
+type WindowsDefenderApplicationControlSupplementalPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicy
+func (r *WindowsDefenderApplicationControlSupplementalPolicyRequest) Get(ctx context.Context) (resObj *WindowsDefenderApplicationControlSupplementalPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsDefenderApplicationControlSupplementalPolicy
+func (r *WindowsDefenderApplicationControlSupplementalPolicyRequest) Update(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsDefenderApplicationControlSupplementalPolicy
+func (r *WindowsDefenderApplicationControlSupplementalPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection
+func (b *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder) Assignments() *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder {
+ bb := &WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection
+type WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection
+func (b *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest {
+ return &WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsDefenderApplicationControlSupplementalPolicyAssignment item
+func (b *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder) ID(id string) *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequestBuilder {
+ bb := &WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest is request for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection
+type WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection
+func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsDefenderApplicationControlSupplementalPolicyAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsDefenderApplicationControlSupplementalPolicyAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsDefenderApplicationControlSupplementalPolicyAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection
+func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest) Get(ctx context.Context) ([]WindowsDefenderApplicationControlSupplementalPolicyAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection
+func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicyAssignment) (resObj *WindowsDefenderApplicationControlSupplementalPolicyAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeploySummary is navigation property
+func (b *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder) DeploySummary() *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequestBuilder {
+ bb := &WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deploySummary"
+ return bb
+}
+
+// DeviceStatuses returns request builder for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection
+func (b *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder) DeviceStatuses() *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder {
+ bb := &WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatuses"
+ return bb
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection
+type WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection
+func (b *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest {
+ return &WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus item
+func (b *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder) ID(id string) *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder {
+ bb := &WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest is request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection
+type WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus) (resObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyStatusesEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyStatusesEnum.go
new file mode 100644
index 00000000..80d73cbe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderApplicationControlSupplementalPolicyStatusesEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDefenderApplicationControlSupplementalPolicyStatuses undocumented
+type WindowsDefenderApplicationControlSupplementalPolicyStatuses int
+
+const (
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesVUnknown undocumented
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesVUnknown WindowsDefenderApplicationControlSupplementalPolicyStatuses = 0
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesVSuccess undocumented
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesVSuccess WindowsDefenderApplicationControlSupplementalPolicyStatuses = 1
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesVTokenError undocumented
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesVTokenError WindowsDefenderApplicationControlSupplementalPolicyStatuses = 2
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesVNotAuthorizedByToken undocumented
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesVNotAuthorizedByToken WindowsDefenderApplicationControlSupplementalPolicyStatuses = 3
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesVPolicyNotFound undocumented
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesVPolicyNotFound WindowsDefenderApplicationControlSupplementalPolicyStatuses = 4
+)
+
+// WindowsDefenderApplicationControlSupplementalPolicyStatusesPUnknown returns a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVUnknown
+func WindowsDefenderApplicationControlSupplementalPolicyStatusesPUnknown() *WindowsDefenderApplicationControlSupplementalPolicyStatuses {
+ v := WindowsDefenderApplicationControlSupplementalPolicyStatusesVUnknown
+ return &v
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyStatusesPSuccess returns a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVSuccess
+func WindowsDefenderApplicationControlSupplementalPolicyStatusesPSuccess() *WindowsDefenderApplicationControlSupplementalPolicyStatuses {
+ v := WindowsDefenderApplicationControlSupplementalPolicyStatusesVSuccess
+ return &v
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyStatusesPTokenError returns a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVTokenError
+func WindowsDefenderApplicationControlSupplementalPolicyStatusesPTokenError() *WindowsDefenderApplicationControlSupplementalPolicyStatuses {
+ v := WindowsDefenderApplicationControlSupplementalPolicyStatusesVTokenError
+ return &v
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyStatusesPNotAuthorizedByToken returns a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVNotAuthorizedByToken
+func WindowsDefenderApplicationControlSupplementalPolicyStatusesPNotAuthorizedByToken() *WindowsDefenderApplicationControlSupplementalPolicyStatuses {
+ v := WindowsDefenderApplicationControlSupplementalPolicyStatusesVNotAuthorizedByToken
+ return &v
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyStatusesPPolicyNotFound returns a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVPolicyNotFound
+func WindowsDefenderApplicationControlSupplementalPolicyStatusesPPolicyNotFound() *WindowsDefenderApplicationControlSupplementalPolicyStatuses {
+ v := WindowsDefenderApplicationControlSupplementalPolicyStatusesVPolicyNotFound
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderScanActionResultModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderScanActionResultModel.go
new file mode 100644
index 00000000..977c5ab2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderScanActionResultModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDefenderScanActionResult undocumented
+type WindowsDefenderScanActionResult struct {
+ // DeviceActionResult is the base model of WindowsDefenderScanActionResult
+ DeviceActionResult
+ // ScanType Scan type either full scan or quick scan
+ ScanType *string `json:"scanType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderTamperProtectionOptionsEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderTamperProtectionOptionsEnum.go
new file mode 100644
index 00000000..e9b8d7f9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDefenderTamperProtectionOptionsEnum.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDefenderTamperProtectionOptions undocumented
+type WindowsDefenderTamperProtectionOptions int
+
+const (
+ // WindowsDefenderTamperProtectionOptionsVNotConfigured undocumented
+ WindowsDefenderTamperProtectionOptionsVNotConfigured WindowsDefenderTamperProtectionOptions = 0
+ // WindowsDefenderTamperProtectionOptionsVEnable undocumented
+ WindowsDefenderTamperProtectionOptionsVEnable WindowsDefenderTamperProtectionOptions = 1
+ // WindowsDefenderTamperProtectionOptionsVDisable undocumented
+ WindowsDefenderTamperProtectionOptionsVDisable WindowsDefenderTamperProtectionOptions = 2
+)
+
+// WindowsDefenderTamperProtectionOptionsPNotConfigured returns a pointer to WindowsDefenderTamperProtectionOptionsVNotConfigured
+func WindowsDefenderTamperProtectionOptionsPNotConfigured() *WindowsDefenderTamperProtectionOptions {
+ v := WindowsDefenderTamperProtectionOptionsVNotConfigured
+ return &v
+}
+
+// WindowsDefenderTamperProtectionOptionsPEnable returns a pointer to WindowsDefenderTamperProtectionOptionsVEnable
+func WindowsDefenderTamperProtectionOptionsPEnable() *WindowsDefenderTamperProtectionOptions {
+ v := WindowsDefenderTamperProtectionOptionsVEnable
+ return &v
+}
+
+// WindowsDefenderTamperProtectionOptionsPDisable returns a pointer to WindowsDefenderTamperProtectionOptionsVDisable
+func WindowsDefenderTamperProtectionOptionsPDisable() *WindowsDefenderTamperProtectionOptions {
+ v := WindowsDefenderTamperProtectionOptionsVDisable
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeliveryOptimizationConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeliveryOptimizationConfigurationModel.go
new file mode 100644
index 00000000..797b7571
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeliveryOptimizationConfigurationModel.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDeliveryOptimizationConfiguration Windows Delivery Optimization configuration
+type WindowsDeliveryOptimizationConfiguration struct {
+ // DeviceConfiguration is the base model of WindowsDeliveryOptimizationConfiguration
+ DeviceConfiguration
+ // DeliveryOptimizationMode Specifies the download method that delivery optimization can use to manage network bandwidth consumption for large content distribution scenarios.
+ DeliveryOptimizationMode *WindowsDeliveryOptimizationMode `json:"deliveryOptimizationMode,omitempty"`
+ // RestrictPeerSelectionBy Specifies to restrict peer selection via selected option.
+ RestrictPeerSelectionBy *DeliveryOptimizationRestrictPeerSelectionByOptions `json:"restrictPeerSelectionBy,omitempty"`
+ // GroupIDSource Specifies to restrict peer selection to a specfic source.
+ GroupIDSource *DeliveryOptimizationGroupIDSource `json:"groupIdSource,omitempty"`
+ // BandwidthMode Specifies foreground and background bandwidth usage using percentages, absolutes, or hours.
+ BandwidthMode *DeliveryOptimizationBandwidth `json:"bandwidthMode,omitempty"`
+ // BackgroundDownloadFromHTTPDelayInSeconds Specifies number of seconds to delay an HTTP source in a background download that is allowed to use peer-to-peer. Valid values 0 to 4294967295
+ BackgroundDownloadFromHTTPDelayInSeconds *int `json:"backgroundDownloadFromHttpDelayInSeconds,omitempty"`
+ // ForegroundDownloadFromHTTPDelayInSeconds Specifies number of seconds to delay an HTTP source in a foreground download that is allowed to use peer-to-peer (0-86400). Valid values 0 to 86400
+ ForegroundDownloadFromHTTPDelayInSeconds *int `json:"foregroundDownloadFromHttpDelayInSeconds,omitempty"`
+ // MinimumRAMAllowedToPeerInGigabytes Specifies the minimum RAM size in GB to use Peer Caching (1-100000). Valid values 1 to 100000
+ MinimumRAMAllowedToPeerInGigabytes *int `json:"minimumRamAllowedToPeerInGigabytes,omitempty"`
+ // MinimumDiskSizeAllowedToPeerInGigabytes Specifies the minimum disk size in GB to use Peer Caching (1-100000). Valid values 1 to 100000
+ MinimumDiskSizeAllowedToPeerInGigabytes *int `json:"minimumDiskSizeAllowedToPeerInGigabytes,omitempty"`
+ // MinimumFileSizeToCacheInMegabytes Specifies the minimum content file size in MB enabled to use Peer Caching (1-100000). Valid values 1 to 100000
+ MinimumFileSizeToCacheInMegabytes *int `json:"minimumFileSizeToCacheInMegabytes,omitempty"`
+ // MinimumBatteryPercentageAllowedToUpload Specifies the minimum battery percentage to allow the device to upload data (0-100). Valid values 0 to 100
+ MinimumBatteryPercentageAllowedToUpload *int `json:"minimumBatteryPercentageAllowedToUpload,omitempty"`
+ // ModifyCacheLocation Specifies the drive that Delivery Optimization should use for its cache.
+ ModifyCacheLocation *string `json:"modifyCacheLocation,omitempty"`
+ // MaximumCacheAgeInDays Specifies the maximum time in days that each file is held in the Delivery Optimization cache after downloading successfully (0-3650). Valid values 0 to 3650
+ MaximumCacheAgeInDays *int `json:"maximumCacheAgeInDays,omitempty"`
+ // MaximumCacheSize Specifies the maximum cache size that Delivery Optimization either as a percentage or in GB.
+ MaximumCacheSize *DeliveryOptimizationMaxCacheSize `json:"maximumCacheSize,omitempty"`
+ // VpnPeerCaching Specifies whether the device is allowed to participate in Peer Caching while connected via VPN to the domain network.
+ VpnPeerCaching *Enablement `json:"vpnPeerCaching,omitempty"`
+ // CacheServerHostNames Specifies cache servers host names.
+ CacheServerHostNames []string `json:"cacheServerHostNames,omitempty"`
+ // CacheServerForegroundDownloadFallbackToHTTPDelayInSeconds Specifies number of seconds to delay a fall back from cache servers to an HTTP source for a foreground download. Valid values 0 to 2592000.
+ CacheServerForegroundDownloadFallbackToHTTPDelayInSeconds *int `json:"cacheServerForegroundDownloadFallbackToHttpDelayInSeconds,omitempty"`
+ // CacheServerBackgroundDownloadFallbackToHTTPDelayInSeconds Specifies number of seconds to delay a fall back from cache servers to an HTTP source for a background download. Valid values 0 to 2592000.
+ CacheServerBackgroundDownloadFallbackToHTTPDelayInSeconds *int `json:"cacheServerBackgroundDownloadFallbackToHttpDelayInSeconds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeliveryOptimizationModeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeliveryOptimizationModeEnum.go
new file mode 100644
index 00000000..5609257f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeliveryOptimizationModeEnum.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDeliveryOptimizationMode undocumented
+type WindowsDeliveryOptimizationMode int
+
+const (
+ // WindowsDeliveryOptimizationModeVUserDefined undocumented
+ WindowsDeliveryOptimizationModeVUserDefined WindowsDeliveryOptimizationMode = 0
+ // WindowsDeliveryOptimizationModeVHTTPOnly undocumented
+ WindowsDeliveryOptimizationModeVHTTPOnly WindowsDeliveryOptimizationMode = 1
+ // WindowsDeliveryOptimizationModeVHTTPWithPeeringNat undocumented
+ WindowsDeliveryOptimizationModeVHTTPWithPeeringNat WindowsDeliveryOptimizationMode = 2
+ // WindowsDeliveryOptimizationModeVHTTPWithPeeringPrivateGroup undocumented
+ WindowsDeliveryOptimizationModeVHTTPWithPeeringPrivateGroup WindowsDeliveryOptimizationMode = 3
+ // WindowsDeliveryOptimizationModeVHTTPWithInternetPeering undocumented
+ WindowsDeliveryOptimizationModeVHTTPWithInternetPeering WindowsDeliveryOptimizationMode = 4
+ // WindowsDeliveryOptimizationModeVSimpleDownload undocumented
+ WindowsDeliveryOptimizationModeVSimpleDownload WindowsDeliveryOptimizationMode = 99
+ // WindowsDeliveryOptimizationModeVBypassMode undocumented
+ WindowsDeliveryOptimizationModeVBypassMode WindowsDeliveryOptimizationMode = 100
+)
+
+// WindowsDeliveryOptimizationModePUserDefined returns a pointer to WindowsDeliveryOptimizationModeVUserDefined
+func WindowsDeliveryOptimizationModePUserDefined() *WindowsDeliveryOptimizationMode {
+ v := WindowsDeliveryOptimizationModeVUserDefined
+ return &v
+}
+
+// WindowsDeliveryOptimizationModePHTTPOnly returns a pointer to WindowsDeliveryOptimizationModeVHTTPOnly
+func WindowsDeliveryOptimizationModePHTTPOnly() *WindowsDeliveryOptimizationMode {
+ v := WindowsDeliveryOptimizationModeVHTTPOnly
+ return &v
+}
+
+// WindowsDeliveryOptimizationModePHTTPWithPeeringNat returns a pointer to WindowsDeliveryOptimizationModeVHTTPWithPeeringNat
+func WindowsDeliveryOptimizationModePHTTPWithPeeringNat() *WindowsDeliveryOptimizationMode {
+ v := WindowsDeliveryOptimizationModeVHTTPWithPeeringNat
+ return &v
+}
+
+// WindowsDeliveryOptimizationModePHTTPWithPeeringPrivateGroup returns a pointer to WindowsDeliveryOptimizationModeVHTTPWithPeeringPrivateGroup
+func WindowsDeliveryOptimizationModePHTTPWithPeeringPrivateGroup() *WindowsDeliveryOptimizationMode {
+ v := WindowsDeliveryOptimizationModeVHTTPWithPeeringPrivateGroup
+ return &v
+}
+
+// WindowsDeliveryOptimizationModePHTTPWithInternetPeering returns a pointer to WindowsDeliveryOptimizationModeVHTTPWithInternetPeering
+func WindowsDeliveryOptimizationModePHTTPWithInternetPeering() *WindowsDeliveryOptimizationMode {
+ v := WindowsDeliveryOptimizationModeVHTTPWithInternetPeering
+ return &v
+}
+
+// WindowsDeliveryOptimizationModePSimpleDownload returns a pointer to WindowsDeliveryOptimizationModeVSimpleDownload
+func WindowsDeliveryOptimizationModePSimpleDownload() *WindowsDeliveryOptimizationMode {
+ v := WindowsDeliveryOptimizationModeVSimpleDownload
+ return &v
+}
+
+// WindowsDeliveryOptimizationModePBypassMode returns a pointer to WindowsDeliveryOptimizationModeVBypassMode
+func WindowsDeliveryOptimizationModePBypassMode() *WindowsDeliveryOptimizationMode {
+ v := WindowsDeliveryOptimizationModeVBypassMode
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceADAccountModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceADAccountModel.go
new file mode 100644
index 00000000..560e20c6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceADAccountModel.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDeviceADAccount undocumented
+type WindowsDeviceADAccount struct {
+ // WindowsDeviceAccount is the base model of WindowsDeviceADAccount
+ WindowsDeviceAccount
+ // DomainName undocumented
+ DomainName *string `json:"domainName,omitempty"`
+ // UserName undocumented
+ UserName *string `json:"userName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceAccountModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceAccountModel.go
new file mode 100644
index 00000000..0783b85b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceAccountModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDeviceAccount undocumented
+type WindowsDeviceAccount struct {
+ // Object is the base model of WindowsDeviceAccount
+ Object
+ // Password undocumented
+ Password *string `json:"password,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceAzureADAccountModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceAzureADAccountModel.go
new file mode 100644
index 00000000..e0510423
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceAzureADAccountModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDeviceAzureADAccount undocumented
+type WindowsDeviceAzureADAccount struct {
+ // WindowsDeviceAccount is the base model of WindowsDeviceAzureADAccount
+ WindowsDeviceAccount
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceHealthStateEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceHealthStateEnum.go
new file mode 100644
index 00000000..c40cac11
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceHealthStateEnum.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDeviceHealthState undocumented
+type WindowsDeviceHealthState int
+
+const (
+ // WindowsDeviceHealthStateVClean undocumented
+ WindowsDeviceHealthStateVClean WindowsDeviceHealthState = 0
+ // WindowsDeviceHealthStateVFullScanPending undocumented
+ WindowsDeviceHealthStateVFullScanPending WindowsDeviceHealthState = 1
+ // WindowsDeviceHealthStateVRebootPending undocumented
+ WindowsDeviceHealthStateVRebootPending WindowsDeviceHealthState = 2
+ // WindowsDeviceHealthStateVManualStepsPending undocumented
+ WindowsDeviceHealthStateVManualStepsPending WindowsDeviceHealthState = 4
+ // WindowsDeviceHealthStateVOfflineScanPending undocumented
+ WindowsDeviceHealthStateVOfflineScanPending WindowsDeviceHealthState = 8
+ // WindowsDeviceHealthStateVCritical undocumented
+ WindowsDeviceHealthStateVCritical WindowsDeviceHealthState = 16
+)
+
+// WindowsDeviceHealthStatePClean returns a pointer to WindowsDeviceHealthStateVClean
+func WindowsDeviceHealthStatePClean() *WindowsDeviceHealthState {
+ v := WindowsDeviceHealthStateVClean
+ return &v
+}
+
+// WindowsDeviceHealthStatePFullScanPending returns a pointer to WindowsDeviceHealthStateVFullScanPending
+func WindowsDeviceHealthStatePFullScanPending() *WindowsDeviceHealthState {
+ v := WindowsDeviceHealthStateVFullScanPending
+ return &v
+}
+
+// WindowsDeviceHealthStatePRebootPending returns a pointer to WindowsDeviceHealthStateVRebootPending
+func WindowsDeviceHealthStatePRebootPending() *WindowsDeviceHealthState {
+ v := WindowsDeviceHealthStateVRebootPending
+ return &v
+}
+
+// WindowsDeviceHealthStatePManualStepsPending returns a pointer to WindowsDeviceHealthStateVManualStepsPending
+func WindowsDeviceHealthStatePManualStepsPending() *WindowsDeviceHealthState {
+ v := WindowsDeviceHealthStateVManualStepsPending
+ return &v
+}
+
+// WindowsDeviceHealthStatePOfflineScanPending returns a pointer to WindowsDeviceHealthStateVOfflineScanPending
+func WindowsDeviceHealthStatePOfflineScanPending() *WindowsDeviceHealthState {
+ v := WindowsDeviceHealthStateVOfflineScanPending
+ return &v
+}
+
+// WindowsDeviceHealthStatePCritical returns a pointer to WindowsDeviceHealthStateVCritical
+func WindowsDeviceHealthStatePCritical() *WindowsDeviceHealthState {
+ v := WindowsDeviceHealthStateVCritical
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceMalwareStateModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceMalwareStateModel.go
new file mode 100644
index 00000000..ec8b2dbd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceMalwareStateModel.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// WindowsDeviceMalwareState Malware detection entity.
+type WindowsDeviceMalwareState struct {
+ // Entity is the base model of WindowsDeviceMalwareState
+ Entity
+ // DisplayName Malware name
+ DisplayName *string `json:"displayName,omitempty"`
+ // AdditionalInformationURL Information URL to learn more about the malware
+ AdditionalInformationURL *string `json:"additionalInformationUrl,omitempty"`
+ // Severity Severity of the malware
+ Severity *WindowsMalwareSeverity `json:"severity,omitempty"`
+ // Catetgory Category of the malware
+ Catetgory *WindowsMalwareCategory `json:"catetgory,omitempty"`
+ // ExecutionState Execution status of the malware like blocked/executing etc
+ ExecutionState *WindowsMalwareExecutionState `json:"executionState,omitempty"`
+ // State Current status of the malware like cleaned/quarantined/allowed etc
+ State *WindowsMalwareState `json:"state,omitempty"`
+ // ThreatState Current status of the malware like cleaned/quarantined/allowed etc
+ ThreatState *WindowsMalwareThreatState `json:"threatState,omitempty"`
+ // InitialDetectionDateTime Initial detection datetime of the malware
+ InitialDetectionDateTime *time.Time `json:"initialDetectionDateTime,omitempty"`
+ // LastStateChangeDateTime The last time this particular threat was changed
+ LastStateChangeDateTime *time.Time `json:"lastStateChangeDateTime,omitempty"`
+ // DetectionCount Number of times the malware is detected
+ DetectionCount *int `json:"detectionCount,omitempty"`
+ // Category Category of the malware
+ Category *WindowsMalwareCategory `json:"category,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceMalwareStateRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceMalwareStateRequest.go
new file mode 100644
index 00000000..617c8206
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceMalwareStateRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsDeviceMalwareStateRequestBuilder is request builder for WindowsDeviceMalwareState
+type WindowsDeviceMalwareStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsDeviceMalwareStateRequest
+func (b *WindowsDeviceMalwareStateRequestBuilder) Request() *WindowsDeviceMalwareStateRequest {
+ return &WindowsDeviceMalwareStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsDeviceMalwareStateRequest is request for WindowsDeviceMalwareState
+type WindowsDeviceMalwareStateRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsDeviceMalwareState
+func (r *WindowsDeviceMalwareStateRequest) Get(ctx context.Context) (resObj *WindowsDeviceMalwareState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsDeviceMalwareState
+func (r *WindowsDeviceMalwareStateRequest) Update(ctx context.Context, reqObj *WindowsDeviceMalwareState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsDeviceMalwareState
+func (r *WindowsDeviceMalwareStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceTypeEnum.go
new file mode 100644
index 00000000..9bb6952c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceTypeEnum.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDeviceType undocumented
+type WindowsDeviceType int
+
+const (
+ // WindowsDeviceTypeVNone undocumented
+ WindowsDeviceTypeVNone WindowsDeviceType = 0
+ // WindowsDeviceTypeVDesktop undocumented
+ WindowsDeviceTypeVDesktop WindowsDeviceType = 1
+ // WindowsDeviceTypeVMobile undocumented
+ WindowsDeviceTypeVMobile WindowsDeviceType = 2
+ // WindowsDeviceTypeVHolographic undocumented
+ WindowsDeviceTypeVHolographic WindowsDeviceType = 4
+ // WindowsDeviceTypeVTeam undocumented
+ WindowsDeviceTypeVTeam WindowsDeviceType = 8
+)
+
+// WindowsDeviceTypePNone returns a pointer to WindowsDeviceTypeVNone
+func WindowsDeviceTypePNone() *WindowsDeviceType {
+ v := WindowsDeviceTypeVNone
+ return &v
+}
+
+// WindowsDeviceTypePDesktop returns a pointer to WindowsDeviceTypeVDesktop
+func WindowsDeviceTypePDesktop() *WindowsDeviceType {
+ v := WindowsDeviceTypeVDesktop
+ return &v
+}
+
+// WindowsDeviceTypePMobile returns a pointer to WindowsDeviceTypeVMobile
+func WindowsDeviceTypePMobile() *WindowsDeviceType {
+ v := WindowsDeviceTypeVMobile
+ return &v
+}
+
+// WindowsDeviceTypePHolographic returns a pointer to WindowsDeviceTypeVHolographic
+func WindowsDeviceTypePHolographic() *WindowsDeviceType {
+ v := WindowsDeviceTypeVHolographic
+ return &v
+}
+
+// WindowsDeviceTypePTeam returns a pointer to WindowsDeviceTypeVTeam
+func WindowsDeviceTypePTeam() *WindowsDeviceType {
+ v := WindowsDeviceTypeVTeam
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceUsageTypeEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceUsageTypeEnum.go
new file mode 100644
index 00000000..c5646d5d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDeviceUsageTypeEnum.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDeviceUsageType undocumented
+type WindowsDeviceUsageType int
+
+const (
+ // WindowsDeviceUsageTypeVSingleUser undocumented
+ WindowsDeviceUsageTypeVSingleUser WindowsDeviceUsageType = 0
+ // WindowsDeviceUsageTypeVShared undocumented
+ WindowsDeviceUsageTypeVShared WindowsDeviceUsageType = 1
+)
+
+// WindowsDeviceUsageTypePSingleUser returns a pointer to WindowsDeviceUsageTypeVSingleUser
+func WindowsDeviceUsageTypePSingleUser() *WindowsDeviceUsageType {
+ v := WindowsDeviceUsageTypeVSingleUser
+ return &v
+}
+
+// WindowsDeviceUsageTypePShared returns a pointer to WindowsDeviceUsageTypeVShared
+func WindowsDeviceUsageTypePShared() *WindowsDeviceUsageType {
+ v := WindowsDeviceUsageTypeVShared
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDomainJoinConfigurationModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDomainJoinConfigurationModel.go
new file mode 100644
index 00000000..a8022d4e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDomainJoinConfigurationModel.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsDomainJoinConfiguration Windows Domain Join device configuration.
+type WindowsDomainJoinConfiguration struct {
+ // DeviceConfiguration is the base model of WindowsDomainJoinConfiguration
+ DeviceConfiguration
+ // ComputerNameStaticPrefix Fixed prefix to be used for computer name.
+ ComputerNameStaticPrefix *string `json:"computerNameStaticPrefix,omitempty"`
+ // ComputerNameSuffixRandomCharCount Dynamically generated characters used as suffix for computer name. Valid values 3 to 14
+ ComputerNameSuffixRandomCharCount *int `json:"computerNameSuffixRandomCharCount,omitempty"`
+ // ActiveDirectoryDomainName Active Directory domain name to join.
+ ActiveDirectoryDomainName *string `json:"activeDirectoryDomainName,omitempty"`
+ // OrganizationalUnit Organizational unit (OU) where the computer account will be created. If this parameter is NULL, the well known computer object container will be used as published in the domain.
+ OrganizationalUnit *string `json:"organizationalUnit,omitempty"`
+ // NetworkAccessConfigurations undocumented
+ NetworkAccessConfigurations []DeviceConfiguration `json:"networkAccessConfigurations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDomainJoinConfigurationRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDomainJoinConfigurationRequest.go
new file mode 100644
index 00000000..b8d38f31
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsDomainJoinConfigurationRequest.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// WindowsDomainJoinConfigurationRequestBuilder is request builder for WindowsDomainJoinConfiguration
+type WindowsDomainJoinConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsDomainJoinConfigurationRequest
+func (b *WindowsDomainJoinConfigurationRequestBuilder) Request() *WindowsDomainJoinConfigurationRequest {
+ return &WindowsDomainJoinConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsDomainJoinConfigurationRequest is request for WindowsDomainJoinConfiguration
+type WindowsDomainJoinConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsDomainJoinConfiguration
+func (r *WindowsDomainJoinConfigurationRequest) Get(ctx context.Context) (resObj *WindowsDomainJoinConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsDomainJoinConfiguration
+func (r *WindowsDomainJoinConfigurationRequest) Update(ctx context.Context, reqObj *WindowsDomainJoinConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsDomainJoinConfiguration
+func (r *WindowsDomainJoinConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// NetworkAccessConfigurations returns request builder for DeviceConfiguration collection
+func (b *WindowsDomainJoinConfigurationRequestBuilder) NetworkAccessConfigurations() *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder {
+ bb := &WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/networkAccessConfigurations"
+ return bb
+}
+
+// WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder is request builder for DeviceConfiguration collection
+type WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceConfiguration collection
+func (b *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder) Request() *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest {
+ return &WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceConfiguration item
+func (b *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder) ID(id string) *DeviceConfigurationRequestBuilder {
+ bb := &DeviceConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest is request for DeviceConfiguration collection
+type WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceConfiguration collection
+func (r *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DeviceConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for DeviceConfiguration collection
+func (r *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for DeviceConfiguration collection
+func (r *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfiguration) (resObj *DeviceConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsEnrollmentStatusScreenSettingsModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsEnrollmentStatusScreenSettingsModel.go
new file mode 100644
index 00000000..28eb4ff0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsEnrollmentStatusScreenSettingsModel.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsEnrollmentStatusScreenSettings undocumented
+type WindowsEnrollmentStatusScreenSettings struct {
+ // Object is the base model of WindowsEnrollmentStatusScreenSettings
+ Object
+ // HideInstallationProgress Show or hide installation progress to user
+ HideInstallationProgress *bool `json:"hideInstallationProgress,omitempty"`
+ // AllowDeviceUseBeforeProfileAndAppInstallComplete Allow or block user to use device before profile and app installation complete
+ AllowDeviceUseBeforeProfileAndAppInstallComplete *bool `json:"allowDeviceUseBeforeProfileAndAppInstallComplete,omitempty"`
+ // BlockDeviceSetupRetryByUser Allow the user to retry the setup on installation failure
+ BlockDeviceSetupRetryByUser *bool `json:"blockDeviceSetupRetryByUser,omitempty"`
+ // AllowLogCollectionOnInstallFailure Allow or block log collection on installation failure
+ AllowLogCollectionOnInstallFailure *bool `json:"allowLogCollectionOnInstallFailure,omitempty"`
+ // CustomErrorMessage Set custom error message to show upon installation failure
+ CustomErrorMessage *string `json:"customErrorMessage,omitempty"`
+ // InstallProgressTimeoutInMinutes Set installation progress timeout in minutes
+ InstallProgressTimeoutInMinutes *int `json:"installProgressTimeoutInMinutes,omitempty"`
+ // AllowDeviceUseOnInstallFailure Allow the user to continue using the device on installation failure
+ AllowDeviceUseOnInstallFailure *bool `json:"allowDeviceUseOnInstallFailure,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFeatureUpdateProfileAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFeatureUpdateProfileAction.go
new file mode 100644
index 00000000..972e706d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFeatureUpdateProfileAction.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsFeatureUpdateProfileAssignRequestParameter undocumented
+type WindowsFeatureUpdateProfileAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []WindowsFeatureUpdateProfileAssignment `json:"assignments,omitempty"`
+}
+
+//
+type WindowsFeatureUpdateProfileAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *WindowsFeatureUpdateProfileRequestBuilder) Assign(reqObj *WindowsFeatureUpdateProfileAssignRequestParameter) *WindowsFeatureUpdateProfileAssignRequestBuilder {
+ bb := &WindowsFeatureUpdateProfileAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsFeatureUpdateProfileAssignRequest struct{ BaseRequest }
+
+//
+func (b *WindowsFeatureUpdateProfileAssignRequestBuilder) Request() *WindowsFeatureUpdateProfileAssignRequest {
+ return &WindowsFeatureUpdateProfileAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsFeatureUpdateProfileAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentModel.go
new file mode 100644
index 00000000..5b2de77c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentModel.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsFeatureUpdateProfileAssignment This entity contains the properties used to assign a windows feature update profile to a group.
+type WindowsFeatureUpdateProfileAssignment struct {
+ // Entity is the base model of WindowsFeatureUpdateProfileAssignment
+ Entity
+ // Target The assignment target that the feature update profile is assigned to.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentRequest.go
new file mode 100644
index 00000000..176e015a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFeatureUpdateProfileAssignmentRequest.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WindowsFeatureUpdateProfileAssignmentRequestBuilder is request builder for WindowsFeatureUpdateProfileAssignment
+type WindowsFeatureUpdateProfileAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsFeatureUpdateProfileAssignmentRequest
+func (b *WindowsFeatureUpdateProfileAssignmentRequestBuilder) Request() *WindowsFeatureUpdateProfileAssignmentRequest {
+ return &WindowsFeatureUpdateProfileAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsFeatureUpdateProfileAssignmentRequest is request for WindowsFeatureUpdateProfileAssignment
+type WindowsFeatureUpdateProfileAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsFeatureUpdateProfileAssignment
+func (r *WindowsFeatureUpdateProfileAssignmentRequest) Get(ctx context.Context) (resObj *WindowsFeatureUpdateProfileAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsFeatureUpdateProfileAssignment
+func (r *WindowsFeatureUpdateProfileAssignmentRequest) Update(ctx context.Context, reqObj *WindowsFeatureUpdateProfileAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsFeatureUpdateProfileAssignment
+func (r *WindowsFeatureUpdateProfileAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFeatureUpdateProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFeatureUpdateProfileModel.go
new file mode 100644
index 00000000..8cbe30bd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFeatureUpdateProfileModel.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// WindowsFeatureUpdateProfile Windows Feature Update Profile
+type WindowsFeatureUpdateProfile struct {
+ // Entity is the base model of WindowsFeatureUpdateProfile
+ Entity
+ // DisplayName The display name of the profile.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The description of the profile which is specified by the user.
+ Description *string `json:"description,omitempty"`
+ // FeatureUpdateVersion The feature update version that will be deployed to the devices targeted by this profile. The version could be any supported version for example 1709, 1803 or 1809 and so on.
+ FeatureUpdateVersion *string `json:"featureUpdateVersion,omitempty"`
+ // CreatedDateTime The date time that the profile was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime The date time that the profile was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Assignments undocumented
+ Assignments []WindowsFeatureUpdateProfileAssignment `json:"assignments,omitempty"`
+ // DeviceUpdateStates undocumented
+ DeviceUpdateStates []WindowsUpdateState `json:"deviceUpdateStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFeatureUpdateProfileRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFeatureUpdateProfileRequest.go
new file mode 100644
index 00000000..4fd83e35
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFeatureUpdateProfileRequest.go
@@ -0,0 +1,233 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// WindowsFeatureUpdateProfileRequestBuilder is request builder for WindowsFeatureUpdateProfile
+type WindowsFeatureUpdateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsFeatureUpdateProfileRequest
+func (b *WindowsFeatureUpdateProfileRequestBuilder) Request() *WindowsFeatureUpdateProfileRequest {
+ return &WindowsFeatureUpdateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsFeatureUpdateProfileRequest is request for WindowsFeatureUpdateProfile
+type WindowsFeatureUpdateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsFeatureUpdateProfile
+func (r *WindowsFeatureUpdateProfileRequest) Get(ctx context.Context) (resObj *WindowsFeatureUpdateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsFeatureUpdateProfile
+func (r *WindowsFeatureUpdateProfileRequest) Update(ctx context.Context, reqObj *WindowsFeatureUpdateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsFeatureUpdateProfile
+func (r *WindowsFeatureUpdateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Assignments returns request builder for WindowsFeatureUpdateProfileAssignment collection
+func (b *WindowsFeatureUpdateProfileRequestBuilder) Assignments() *WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder {
+ bb := &WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder is request builder for WindowsFeatureUpdateProfileAssignment collection
+type WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsFeatureUpdateProfileAssignment collection
+func (b *WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder) Request() *WindowsFeatureUpdateProfileAssignmentsCollectionRequest {
+ return &WindowsFeatureUpdateProfileAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsFeatureUpdateProfileAssignment item
+func (b *WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder) ID(id string) *WindowsFeatureUpdateProfileAssignmentRequestBuilder {
+ bb := &WindowsFeatureUpdateProfileAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsFeatureUpdateProfileAssignmentsCollectionRequest is request for WindowsFeatureUpdateProfileAssignment collection
+type WindowsFeatureUpdateProfileAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsFeatureUpdateProfileAssignment collection
+func (r *WindowsFeatureUpdateProfileAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsFeatureUpdateProfileAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsFeatureUpdateProfileAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsFeatureUpdateProfileAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsFeatureUpdateProfileAssignment collection
+func (r *WindowsFeatureUpdateProfileAssignmentsCollectionRequest) Get(ctx context.Context) ([]WindowsFeatureUpdateProfileAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsFeatureUpdateProfileAssignment collection
+func (r *WindowsFeatureUpdateProfileAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *WindowsFeatureUpdateProfileAssignment) (resObj *WindowsFeatureUpdateProfileAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceUpdateStates returns request builder for WindowsUpdateState collection
+func (b *WindowsFeatureUpdateProfileRequestBuilder) DeviceUpdateStates() *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder {
+ bb := &WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceUpdateStates"
+ return bb
+}
+
+// WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder is request builder for WindowsUpdateState collection
+type WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsUpdateState collection
+func (b *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder) Request() *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest {
+ return &WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsUpdateState item
+func (b *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder) ID(id string) *WindowsUpdateStateRequestBuilder {
+ bb := &WindowsUpdateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest is request for WindowsUpdateState collection
+type WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsUpdateState collection
+func (r *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]WindowsUpdateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsUpdateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsUpdateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// Get performs GET request for WindowsUpdateState collection
+func (r *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest) Get(ctx context.Context) ([]WindowsUpdateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil)
+}
+
+// Add performs POST request for WindowsUpdateState collection
+func (r *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest) Add(ctx context.Context, reqObj *WindowsUpdateState) (resObj *WindowsUpdateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFirewallNetworkProfileModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFirewallNetworkProfileModel.go
new file mode 100644
index 00000000..0202693c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFirewallNetworkProfileModel.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsFirewallNetworkProfile undocumented
+type WindowsFirewallNetworkProfile struct {
+ // Object is the base model of WindowsFirewallNetworkProfile
+ Object
+ // FirewallEnabled Configures the host device to allow or block the firewall and advanced security enforcement for the network profile.
+ FirewallEnabled *StateManagementSetting `json:"firewallEnabled,omitempty"`
+ // StealthModeRequired Allow the server to operate in stealth mode. When StealthModeRequired and StealthModeBlocked are both true, StealthModeBlocked takes priority.
+ StealthModeRequired *bool `json:"stealthModeRequired,omitempty"`
+ // StealthModeBlocked Prevent the server from operating in stealth mode. When StealthModeRequired and StealthModeBlocked are both true, StealthModeBlocked takes priority.
+ StealthModeBlocked *bool `json:"stealthModeBlocked,omitempty"`
+ // IncomingTrafficRequired Configures the firewall to allow incoming traffic pursuant to other policy settings. When IncomingTrafficRequired and IncomingTrafficBlocked are both true, IncomingTrafficBlocked takes priority.
+ IncomingTrafficRequired *bool `json:"incomingTrafficRequired,omitempty"`
+ // IncomingTrafficBlocked Configures the firewall to block all incoming traffic regardless of other policy settings. When IncomingTrafficRequired and IncomingTrafficBlocked are both true, IncomingTrafficBlocked takes priority.
+ IncomingTrafficBlocked *bool `json:"incomingTrafficBlocked,omitempty"`
+ // UnicastResponsesToMulticastBroadcastsRequired Configures the firewall to allow unicast responses to multicast broadcast traffic. When UnicastResponsesToMulticastBroadcastsRequired and UnicastResponsesToMulticastBroadcastsBlocked are both true, UnicastResponsesToMulticastBroadcastsBlocked takes priority.
+ UnicastResponsesToMulticastBroadcastsRequired *bool `json:"unicastResponsesToMulticastBroadcastsRequired,omitempty"`
+ // UnicastResponsesToMulticastBroadcastsBlocked Configures the firewall to block unicast responses to multicast broadcast traffic. When UnicastResponsesToMulticastBroadcastsRequired and UnicastResponsesToMulticastBroadcastsBlocked are both true, UnicastResponsesToMulticastBroadcastsBlocked takes priority.
+ UnicastResponsesToMulticastBroadcastsBlocked *bool `json:"unicastResponsesToMulticastBroadcastsBlocked,omitempty"`
+ // InboundNotificationsRequired Allows the firewall to display notifications when an application is blocked from listening on a port. When InboundNotificationsRequired and InboundNotificationsBlocked are both true, InboundNotificationsBlocked takes priority.
+ InboundNotificationsRequired *bool `json:"inboundNotificationsRequired,omitempty"`
+ // InboundNotificationsBlocked Prevents the firewall from displaying notifications when an application is blocked from listening on a port. When InboundNotificationsRequired and InboundNotificationsBlocked are both true, InboundNotificationsBlocked takes priority.
+ InboundNotificationsBlocked *bool `json:"inboundNotificationsBlocked,omitempty"`
+ // AuthorizedApplicationRulesFromGroupPolicyMerged Configures the firewall to merge authorized application rules from group policy with those from local store instead of ignoring the local store rules. When AuthorizedApplicationRulesFromGroupPolicyNotMerged and AuthorizedApplicationRulesFromGroupPolicyMerged are both true, AuthorizedApplicationRulesFromGroupPolicyMerged takes priority.
+ AuthorizedApplicationRulesFromGroupPolicyMerged *bool `json:"authorizedApplicationRulesFromGroupPolicyMerged,omitempty"`
+ // AuthorizedApplicationRulesFromGroupPolicyNotMerged Configures the firewall to prevent merging authorized application rules from group policy with those from local store instead of ignoring the local store rules. When AuthorizedApplicationRulesFromGroupPolicyNotMerged and AuthorizedApplicationRulesFromGroupPolicyMerged are both true, AuthorizedApplicationRulesFromGroupPolicyMerged takes priority.
+ AuthorizedApplicationRulesFromGroupPolicyNotMerged *bool `json:"authorizedApplicationRulesFromGroupPolicyNotMerged,omitempty"`
+ // GlobalPortRulesFromGroupPolicyMerged Configures the firewall to merge global port rules from group policy with those from local store instead of ignoring the local store rules. When GlobalPortRulesFromGroupPolicyNotMerged and GlobalPortRulesFromGroupPolicyMerged are both true, GlobalPortRulesFromGroupPolicyMerged takes priority.
+ GlobalPortRulesFromGroupPolicyMerged *bool `json:"globalPortRulesFromGroupPolicyMerged,omitempty"`
+ // GlobalPortRulesFromGroupPolicyNotMerged Configures the firewall to prevent merging global port rules from group policy with those from local store instead of ignoring the local store rules. When GlobalPortRulesFromGroupPolicyNotMerged and GlobalPortRulesFromGroupPolicyMerged are both true, GlobalPortRulesFromGroupPolicyMerged takes priority.
+ GlobalPortRulesFromGroupPolicyNotMerged *bool `json:"globalPortRulesFromGroupPolicyNotMerged,omitempty"`
+ // ConnectionSecurityRulesFromGroupPolicyMerged Configures the firewall to merge connection security rules from group policy with those from local store instead of ignoring the local store rules. When ConnectionSecurityRulesFromGroupPolicyNotMerged and ConnectionSecurityRulesFromGroupPolicyMerged are both true, ConnectionSecurityRulesFromGroupPolicyMerged takes priority.
+ ConnectionSecurityRulesFromGroupPolicyMerged *bool `json:"connectionSecurityRulesFromGroupPolicyMerged,omitempty"`
+ // ConnectionSecurityRulesFromGroupPolicyNotMerged Configures the firewall to prevent merging connection security rules from group policy with those from local store instead of ignoring the local store rules. When ConnectionSecurityRulesFromGroupPolicyNotMerged and ConnectionSecurityRulesFromGroupPolicyMerged are both true, ConnectionSecurityRulesFromGroupPolicyMerged takes priority.
+ ConnectionSecurityRulesFromGroupPolicyNotMerged *bool `json:"connectionSecurityRulesFromGroupPolicyNotMerged,omitempty"`
+ // OutboundConnectionsRequired Configures the firewall to allow all outgoing connections by default. When OutboundConnectionsRequired and OutboundConnectionsBlocked are both true, OutboundConnectionsBlocked takes priority. This setting will get applied to Windows releases version 1809 and above.
+ OutboundConnectionsRequired *bool `json:"outboundConnectionsRequired,omitempty"`
+ // OutboundConnectionsBlocked Configures the firewall to block all outgoing connections by default. When OutboundConnectionsRequired and OutboundConnectionsBlocked are both true, OutboundConnectionsBlocked takes priority. This setting will get applied to Windows releases version 1809 and above.
+ OutboundConnectionsBlocked *bool `json:"outboundConnectionsBlocked,omitempty"`
+ // InboundConnectionsRequired Configures the firewall to allow all incoming connections by default. When InboundConnectionsRequired and InboundConnectionsBlocked are both true, InboundConnectionsBlocked takes priority.
+ InboundConnectionsRequired *bool `json:"inboundConnectionsRequired,omitempty"`
+ // InboundConnectionsBlocked Configures the firewall to block all incoming connections by default. When InboundConnectionsRequired and InboundConnectionsBlocked are both true, InboundConnectionsBlocked takes priority.
+ InboundConnectionsBlocked *bool `json:"inboundConnectionsBlocked,omitempty"`
+ // SecuredPacketExemptionAllowed Configures the firewall to allow the host computer to respond to unsolicited network traffic of that traffic is secured by IPSec even when stealthModeBlocked is set to true. When SecuredPacketExemptionBlocked and SecuredPacketExemptionAllowed are both true, SecuredPacketExemptionAllowed takes priority.
+ SecuredPacketExemptionAllowed *bool `json:"securedPacketExemptionAllowed,omitempty"`
+ // SecuredPacketExemptionBlocked Configures the firewall to block the host computer to respond to unsolicited network traffic of that traffic is secured by IPSec even when stealthModeBlocked is set to true. When SecuredPacketExemptionBlocked and SecuredPacketExemptionAllowed are both true, SecuredPacketExemptionAllowed takes priority.
+ SecuredPacketExemptionBlocked *bool `json:"securedPacketExemptionBlocked,omitempty"`
+ // PolicyRulesFromGroupPolicyMerged Configures the firewall to merge Firewall Rule policies from group policy with those from local store instead of ignoring the local store rules. When PolicyRulesFromGroupPolicyNotMerged and PolicyRulesFromGroupPolicyMerged are both true, PolicyRulesFromGroupPolicyMerged takes priority.
+ PolicyRulesFromGroupPolicyMerged *bool `json:"policyRulesFromGroupPolicyMerged,omitempty"`
+ // PolicyRulesFromGroupPolicyNotMerged Configures the firewall to prevent merging Firewall Rule policies from group policy with those from local store instead of ignoring the local store rules. When PolicyRulesFromGroupPolicyNotMerged and PolicyRulesFromGroupPolicyMerged are both true, PolicyRulesFromGroupPolicyMerged takes priority.
+ PolicyRulesFromGroupPolicyNotMerged *bool `json:"policyRulesFromGroupPolicyNotMerged,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFirewallRuleInterfaceTypesEnum.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFirewallRuleInterfaceTypesEnum.go
new file mode 100644
index 00000000..936af125
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFirewallRuleInterfaceTypesEnum.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsFirewallRuleInterfaceTypes undocumented
+type WindowsFirewallRuleInterfaceTypes int
+
+const (
+ // WindowsFirewallRuleInterfaceTypesVNotConfigured undocumented
+ WindowsFirewallRuleInterfaceTypesVNotConfigured WindowsFirewallRuleInterfaceTypes = 0
+ // WindowsFirewallRuleInterfaceTypesVRemoteAccess undocumented
+ WindowsFirewallRuleInterfaceTypesVRemoteAccess WindowsFirewallRuleInterfaceTypes = 1
+ // WindowsFirewallRuleInterfaceTypesVWireless undocumented
+ WindowsFirewallRuleInterfaceTypesVWireless WindowsFirewallRuleInterfaceTypes = 2
+ // WindowsFirewallRuleInterfaceTypesVLan undocumented
+ WindowsFirewallRuleInterfaceTypesVLan WindowsFirewallRuleInterfaceTypes = 4
+)
+
+// WindowsFirewallRuleInterfaceTypesPNotConfigured returns a pointer to WindowsFirewallRuleInterfaceTypesVNotConfigured
+func WindowsFirewallRuleInterfaceTypesPNotConfigured() *WindowsFirewallRuleInterfaceTypes {
+ v := WindowsFirewallRuleInterfaceTypesVNotConfigured
+ return &v
+}
+
+// WindowsFirewallRuleInterfaceTypesPRemoteAccess returns a pointer to WindowsFirewallRuleInterfaceTypesVRemoteAccess
+func WindowsFirewallRuleInterfaceTypesPRemoteAccess() *WindowsFirewallRuleInterfaceTypes {
+ v := WindowsFirewallRuleInterfaceTypesVRemoteAccess
+ return &v
+}
+
+// WindowsFirewallRuleInterfaceTypesPWireless returns a pointer to WindowsFirewallRuleInterfaceTypesVWireless
+func WindowsFirewallRuleInterfaceTypesPWireless() *WindowsFirewallRuleInterfaceTypes {
+ v := WindowsFirewallRuleInterfaceTypesVWireless
+ return &v
+}
+
+// WindowsFirewallRuleInterfaceTypesPLan returns a pointer to WindowsFirewallRuleInterfaceTypesVLan
+func WindowsFirewallRuleInterfaceTypesPLan() *WindowsFirewallRuleInterfaceTypes {
+ v := WindowsFirewallRuleInterfaceTypesVLan
+ return &v
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFirewallRuleModel.go b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFirewallRuleModel.go
new file mode 100644
index 00000000..fe6a9a17
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/WindowsFirewallRuleModel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsFirewallRule undocumented
+type WindowsFirewallRule struct {
+ // Object is the base model of WindowsFirewallRule
+ Object
+ // DisplayName The display name of the rule. Does not need to be unique.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The description of the rule.
+ Description *string `json:"description,omitempty"`
+ // PackageFamilyName The package family name of a Microsoft Store application that's affected by the firewall rule.
+ PackageFamilyName *string `json:"packageFamilyName,omitempty"`
+ // FilePath The full file path of an app that's affected by the firewall rule.
+ FilePath *string `json:"filePath,omitempty"`
+ // ServiceName The name used in cases when a service, not an application, is sending or receiving traffic.
+ ServiceName *string `json:"serviceName,omitempty"`
+ // Protocol 0-255 number representing the IP protocol (TCP = 6, UDP = 17). If not specified, the default is All. Valid values 0 to 255
+ Protocol *int `json:"protocol,omitempty"`
+ // LocalPortRanges List of local port ranges. For example, "100-120", "200", "300-320". If not specified, the default is All.
+ LocalPortRanges []string `json:"localPortRanges,omitempty"`
+ // RemotePortRanges List of remote port ranges. For example, "100-120", "200", "300-320". If not specified, the default is All.
+ RemotePortRanges []string `json:"remotePortRanges,omitempty"`
+ // LocalAddressRanges List of local addresses covered by the rule. Default is any address. Valid tokens include:
"*" indicates any local address. If present, this must be the only token included.
A subnet can be specified using either the subnet mask or network prefix notation. If neither a subnet mask nor a network prefix is specified, the subnet mask defaults to 255.255.255.255.
A valid IPv6 address.
An IPv4 address range in the format of "start address - end address" with no spaces included.
An IPv6 address range in the format of "start address - end address" with no spaces included.
+ LocalAddressRanges []string `json:"localAddressRanges,omitempty"`
+ // RemoteAddressRanges List of tokens specifying the remote addresses covered by the rule. Tokens are case insensitive. Default is any address. Valid tokens include:
"*" indicates any remote address. If present, this must be the only token included.
"Defaultgateway"
"DHCP"
"DNS"
"WINS"
"Intranet" (supported on Windows versions 1809+)
"RmtIntranet" (supported on Windows versions 1809+)
"Internet" (supported on Windows versions 1809+)
"Ply2Renders" (supported on Windows versions 1809+)
"LocalSubnet" indicates any local address on the local subnet.
A subnet can be specified using either the subnet mask or network prefix notation. If neither a subnet mask nor a network prefix is specified, the subnet mask defaults to 255.255.255.255.
A valid IPv6 address.
An IPv4 address range in the format of "start address - end address" with no spaces included.
An IPv6 address range in the format of "start address - end address" with no spaces included.
" as text instead of an element.
+ // rawTag's contents are lower-cased.
+ rawTag string
+ // textIsRaw is whether the current text token's data is not escaped.
+ textIsRaw bool
+ // convertNUL is whether NUL bytes in the current token's data should
+ // be converted into \ufffd replacement characters.
+ convertNUL bool
+ // allowCDATA is whether CDATA sections are allowed in the current context.
+ allowCDATA bool
+}
+
+// AllowCDATA sets whether or not the tokenizer recognizes as
+// the text "foo". The default value is false, which means to recognize it as
+// a bogus comment "" instead.
+//
+// Strictly speaking, an HTML5 compliant tokenizer should allow CDATA if and
+// only if tokenizing foreign content, such as MathML and SVG. However,
+// tracking foreign-contentness is difficult to do purely in the tokenizer,
+// as opposed to the parser, due to HTML integration points: an