code
stringlengths 12
335k
| docstring
stringlengths 20
20.8k
| func_name
stringlengths 1
105
| language
stringclasses 1
value | repo
stringclasses 498
values | path
stringlengths 5
172
| url
stringlengths 43
235
| license
stringclasses 4
values |
---|---|---|---|---|---|---|---|
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
} | Get performs GET request for SoftwareUpdateStatusSummary | Get | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestSoftware.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestSoftware.go | Apache-2.0 |
func (r *SoftwareUpdateStatusSummaryRequest) Update(ctx context.Context, reqObj *SoftwareUpdateStatusSummary) error {
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
} | Update performs PATCH request for SoftwareUpdateStatusSummary | Update | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestSoftware.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestSoftware.go | Apache-2.0 |
func (r *SoftwareUpdateStatusSummaryRequest) Delete(ctx context.Context) error {
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
} | Delete performs DELETE request for SoftwareUpdateStatusSummary | Delete | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestSoftware.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestSoftware.go | Apache-2.0 |
func (b *WorkbookFunctionsRequestBuilder) Acot(reqObj *WorkbookFunctionsAcotRequestParameter) *WorkbookFunctionsAcotRequestBuilder {
bb := &WorkbookFunctionsAcotRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.BaseRequestBuilder.baseURL += "/acot"
bb.BaseRequestBuilder.requestObject = reqObj
return bb
} | Acot action undocumented | Acot | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcot.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcot.go | Apache-2.0 |
func (b *ManagementConditionRequestBuilder) Request() *ManagementConditionRequest {
return &ManagementConditionRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
} | Request returns ManagementConditionRequest | Request | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go | Apache-2.0 |
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
} | Get performs GET request for ManagementCondition | Get | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go | Apache-2.0 |
func (r *ManagementConditionRequest) Update(ctx context.Context, reqObj *ManagementCondition) error {
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
} | Update performs PATCH request for ManagementCondition | Update | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go | Apache-2.0 |
func (r *ManagementConditionRequest) Delete(ctx context.Context) error {
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
} | Delete performs DELETE request for ManagementCondition | Delete | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go | Apache-2.0 |
func (b *ManagementConditionStatementRequestBuilder) Request() *ManagementConditionStatementRequest {
return &ManagementConditionStatementRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
} | Request returns ManagementConditionStatementRequest | Request | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go | Apache-2.0 |
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
} | Get performs GET request for ManagementConditionStatement | Get | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go | Apache-2.0 |
func (r *ManagementConditionStatementRequest) Update(ctx context.Context, reqObj *ManagementConditionStatement) error {
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
} | Update performs PATCH request for ManagementConditionStatement | Update | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go | Apache-2.0 |
func (r *ManagementConditionStatementRequest) Delete(ctx context.Context) error {
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
} | Delete performs DELETE request for ManagementConditionStatement | Delete | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go | Apache-2.0 |
func (b *WorkbookFunctionsRequestBuilder) Mround(reqObj *WorkbookFunctionsMroundRequestParameter) *WorkbookFunctionsMroundRequestBuilder {
bb := &WorkbookFunctionsMroundRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.BaseRequestBuilder.baseURL += "/mround"
bb.BaseRequestBuilder.requestObject = reqObj
return bb
} | Mround action undocumented | Mround | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMround.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMround.go | Apache-2.0 |
func (b *WorkbookFunctionsRequestBuilder) BesselI(reqObj *WorkbookFunctionsBesselIRequestParameter) *WorkbookFunctionsBesselIRequestBuilder {
bb := &WorkbookFunctionsBesselIRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.BaseRequestBuilder.baseURL += "/besselI"
bb.BaseRequestBuilder.requestObject = reqObj
return bb
} | BesselI action undocumented | BesselI | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBessel.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBessel.go | Apache-2.0 |
func (b *WorkbookFunctionsRequestBuilder) BesselJ(reqObj *WorkbookFunctionsBesselJRequestParameter) *WorkbookFunctionsBesselJRequestBuilder {
bb := &WorkbookFunctionsBesselJRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.BaseRequestBuilder.baseURL += "/besselJ"
bb.BaseRequestBuilder.requestObject = reqObj
return bb
} | BesselJ action undocumented | BesselJ | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBessel.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBessel.go | Apache-2.0 |
func (b *WorkbookFunctionsRequestBuilder) BesselK(reqObj *WorkbookFunctionsBesselKRequestParameter) *WorkbookFunctionsBesselKRequestBuilder {
bb := &WorkbookFunctionsBesselKRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.BaseRequestBuilder.baseURL += "/besselK"
bb.BaseRequestBuilder.requestObject = reqObj
return bb
} | BesselK action undocumented | BesselK | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBessel.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBessel.go | Apache-2.0 |
func (b *WorkbookFunctionsRequestBuilder) BesselY(reqObj *WorkbookFunctionsBesselYRequestParameter) *WorkbookFunctionsBesselYRequestBuilder {
bb := &WorkbookFunctionsBesselYRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.BaseRequestBuilder.baseURL += "/besselY"
bb.BaseRequestBuilder.requestObject = reqObj
return bb
} | BesselY action undocumented | BesselY | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBessel.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBessel.go | Apache-2.0 |
func (b *WorkbookFunctionsRequestBuilder) Base(reqObj *WorkbookFunctionsBaseRequestParameter) *WorkbookFunctionsBaseRequestBuilder {
bb := &WorkbookFunctionsBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.BaseRequestBuilder.baseURL += "/base"
bb.BaseRequestBuilder.requestObject = reqObj
return bb
} | Base action undocumented | Base | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBase.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBase.go | Apache-2.0 |
func (b *DetectedAppRequestBuilder) ManagedDevices() *DetectedAppManagedDevicesCollectionRequestBuilder {
bb := &DetectedAppManagedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/managedDevices"
return bb
} | ManagedDevices returns request builder for ManagedDevice collection | ManagedDevices | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go | Apache-2.0 |
func (b *DetectedAppManagedDevicesCollectionRequestBuilder) Request() *DetectedAppManagedDevicesCollectionRequest {
return &DetectedAppManagedDevicesCollectionRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
} | Request returns request for ManagedDevice collection | Request | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go | Apache-2.0 |
func (b *DetectedAppManagedDevicesCollectionRequestBuilder) ID(id string) *ManagedDeviceRequestBuilder {
bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/" + id
return bb
} | ID returns request builder for ManagedDevice item | ID | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go | Apache-2.0 |
func (r *DetectedAppManagedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]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 {
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := 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)
res.Body.Close()
if err != nil {
return nil, err
}
err = jsonx.Unmarshal(paging.Value, &value)
if err != nil {
return nil, err
}
values = append(values, value...)
if n >= 0 {
n--
}
if n == 0 || len(paging.NextLink) == 0 {
return values, nil
}
req, err = http.NewRequest("GET", paging.NextLink, nil)
if ctx != nil {
req = req.WithContext(ctx)
}
res, err = r.client.Do(req)
if err != nil {
return nil, err
}
}
} | Paging perfoms paging operation for ManagedDevice collection | Paging | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go | Apache-2.0 |
func (r *DetectedAppManagedDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDevice, error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
return r.Paging(ctx, "GET", query, nil, n)
} | GetN performs GET request for ManagedDevice collection, max N pages | GetN | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go | Apache-2.0 |
func (r *DetectedAppManagedDevicesCollectionRequest) Get(ctx context.Context) ([]ManagedDevice, error) {
return r.GetN(ctx, 0)
} | Get performs GET request for ManagedDevice collection | Get | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go | Apache-2.0 |
func (r *DetectedAppManagedDevicesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDevice) (resObj *ManagedDevice, err error) {
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
return
} | Add performs POST request for ManagedDevice collection | Add | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go | Apache-2.0 |
func (b *WorkbookFunctionsRequestBuilder) Percentile_Exc(reqObj *WorkbookFunctionsPercentile_ExcRequestParameter) *WorkbookFunctionsPercentile_ExcRequestBuilder {
bb := &WorkbookFunctionsPercentile_ExcRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.BaseRequestBuilder.baseURL += "/percentile_Exc"
bb.BaseRequestBuilder.requestObject = reqObj
return bb
} | Percentile_Exc action undocumented | Percentile_Exc | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercentile_.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercentile_.go | Apache-2.0 |
func (b *WorkbookFunctionsRequestBuilder) Percentile_Inc(reqObj *WorkbookFunctionsPercentile_IncRequestParameter) *WorkbookFunctionsPercentile_IncRequestBuilder {
bb := &WorkbookFunctionsPercentile_IncRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.BaseRequestBuilder.baseURL += "/percentile_Inc"
bb.BaseRequestBuilder.requestObject = reqObj
return bb
} | Percentile_Inc action undocumented | Percentile_Inc | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercentile_.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercentile_.go | Apache-2.0 |
func (b *EducationAssignmentRequestBuilder) Categories() *EducationAssignmentCategoriesCollectionRequestBuilder {
bb := &EducationAssignmentCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/categories"
return bb
} | Categories returns request builder for EducationCategory collection | Categories | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationAssignmentCategoriesCollectionRequestBuilder) Request() *EducationAssignmentCategoriesCollectionRequest {
return &EducationAssignmentCategoriesCollectionRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
} | Request returns request for EducationCategory collection | Request | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationAssignmentCategoriesCollectionRequestBuilder) ID(id string) *EducationCategoryRequestBuilder {
bb := &EducationCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/" + id
return bb
} | ID returns request builder for EducationCategory item | ID | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationAssignmentCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]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 {
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := 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)
res.Body.Close()
if err != nil {
return nil, err
}
err = jsonx.Unmarshal(paging.Value, &value)
if err != nil {
return nil, err
}
values = append(values, value...)
if n >= 0 {
n--
}
if n == 0 || len(paging.NextLink) == 0 {
return values, nil
}
req, err = http.NewRequest("GET", paging.NextLink, nil)
if ctx != nil {
req = req.WithContext(ctx)
}
res, err = r.client.Do(req)
if err != nil {
return nil, err
}
}
} | Paging perfoms paging operation for EducationCategory collection | Paging | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationAssignmentCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationCategory, error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
return r.Paging(ctx, "GET", query, nil, n)
} | GetN performs GET request for EducationCategory collection, max N pages | GetN | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationAssignmentCategoriesCollectionRequest) Get(ctx context.Context) ([]EducationCategory, error) {
return r.GetN(ctx, 0)
} | Get performs GET request for EducationCategory collection | Get | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationAssignmentCategoriesCollectionRequest) Add(ctx context.Context, reqObj *EducationCategory) (resObj *EducationCategory, err error) {
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
return
} | Add performs POST request for EducationCategory collection | Add | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationAssignmentRequestBuilder) Resources() *EducationAssignmentResourcesCollectionRequestBuilder {
bb := &EducationAssignmentResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/resources"
return bb
} | Resources returns request builder for EducationAssignmentResource collection | Resources | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationAssignmentResourcesCollectionRequestBuilder) Request() *EducationAssignmentResourcesCollectionRequest {
return &EducationAssignmentResourcesCollectionRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
} | Request returns request for EducationAssignmentResource collection | Request | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationAssignmentResourcesCollectionRequestBuilder) ID(id string) *EducationAssignmentResourceRequestBuilder {
bb := &EducationAssignmentResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/" + id
return bb
} | ID returns request builder for EducationAssignmentResource item | ID | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationAssignmentResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]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 {
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := 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)
res.Body.Close()
if err != nil {
return nil, err
}
err = jsonx.Unmarshal(paging.Value, &value)
if err != nil {
return nil, err
}
values = append(values, value...)
if n >= 0 {
n--
}
if n == 0 || len(paging.NextLink) == 0 {
return values, nil
}
req, err = http.NewRequest("GET", paging.NextLink, nil)
if ctx != nil {
req = req.WithContext(ctx)
}
res, err = r.client.Do(req)
if err != nil {
return nil, err
}
}
} | Paging perfoms paging operation for EducationAssignmentResource collection | Paging | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationAssignmentResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationAssignmentResource, error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
return r.Paging(ctx, "GET", query, nil, n)
} | GetN performs GET request for EducationAssignmentResource collection, max N pages | GetN | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationAssignmentResourcesCollectionRequest) Get(ctx context.Context) ([]EducationAssignmentResource, error) {
return r.GetN(ctx, 0)
} | Get performs GET request for EducationAssignmentResource collection | Get | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationAssignmentResourcesCollectionRequest) Add(ctx context.Context, reqObj *EducationAssignmentResource) (resObj *EducationAssignmentResource, err error) {
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
return
} | Add performs POST request for EducationAssignmentResource collection | Add | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationAssignmentRequestBuilder) Rubric() *EducationRubricRequestBuilder {
bb := &EducationRubricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/rubric"
return bb
} | Rubric is navigation property | Rubric | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationAssignmentRequestBuilder) Submissions() *EducationAssignmentSubmissionsCollectionRequestBuilder {
bb := &EducationAssignmentSubmissionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/submissions"
return bb
} | Submissions returns request builder for EducationSubmission collection | Submissions | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationAssignmentSubmissionsCollectionRequestBuilder) Request() *EducationAssignmentSubmissionsCollectionRequest {
return &EducationAssignmentSubmissionsCollectionRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
} | Request returns request for EducationSubmission collection | Request | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationAssignmentSubmissionsCollectionRequestBuilder) ID(id string) *EducationSubmissionRequestBuilder {
bb := &EducationSubmissionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/" + id
return bb
} | ID returns request builder for EducationSubmission item | ID | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationAssignmentSubmissionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]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 {
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := 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)
res.Body.Close()
if err != nil {
return nil, err
}
err = jsonx.Unmarshal(paging.Value, &value)
if err != nil {
return nil, err
}
values = append(values, value...)
if n >= 0 {
n--
}
if n == 0 || len(paging.NextLink) == 0 {
return values, nil
}
req, err = http.NewRequest("GET", paging.NextLink, nil)
if ctx != nil {
req = req.WithContext(ctx)
}
res, err = r.client.Do(req)
if err != nil {
return nil, err
}
}
} | Paging perfoms paging operation for EducationSubmission collection | Paging | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationAssignmentSubmissionsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSubmission, error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
return r.Paging(ctx, "GET", query, nil, n)
} | GetN performs GET request for EducationSubmission collection, max N pages | GetN | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationAssignmentSubmissionsCollectionRequest) Get(ctx context.Context) ([]EducationSubmission, error) {
return r.GetN(ctx, 0)
} | Get performs GET request for EducationSubmission collection | Get | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationAssignmentSubmissionsCollectionRequest) Add(ctx context.Context, reqObj *EducationSubmission) (resObj *EducationSubmission, err error) {
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
return
} | Add performs POST request for EducationSubmission collection | Add | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationClassRequestBuilder) AssignmentCategories() *EducationClassAssignmentCategoriesCollectionRequestBuilder {
bb := &EducationClassAssignmentCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/assignmentCategories"
return bb
} | AssignmentCategories returns request builder for EducationCategory collection | AssignmentCategories | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationClassAssignmentCategoriesCollectionRequestBuilder) Request() *EducationClassAssignmentCategoriesCollectionRequest {
return &EducationClassAssignmentCategoriesCollectionRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
} | Request returns request for EducationCategory collection | Request | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationClassAssignmentCategoriesCollectionRequestBuilder) ID(id string) *EducationCategoryRequestBuilder {
bb := &EducationCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/" + id
return bb
} | ID returns request builder for EducationCategory item | ID | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassAssignmentCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]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 {
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := 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)
res.Body.Close()
if err != nil {
return nil, err
}
err = jsonx.Unmarshal(paging.Value, &value)
if err != nil {
return nil, err
}
values = append(values, value...)
if n >= 0 {
n--
}
if n == 0 || len(paging.NextLink) == 0 {
return values, nil
}
req, err = http.NewRequest("GET", paging.NextLink, nil)
if ctx != nil {
req = req.WithContext(ctx)
}
res, err = r.client.Do(req)
if err != nil {
return nil, err
}
}
} | Paging perfoms paging operation for EducationCategory collection | Paging | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassAssignmentCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationCategory, error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
return r.Paging(ctx, "GET", query, nil, n)
} | GetN performs GET request for EducationCategory collection, max N pages | GetN | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassAssignmentCategoriesCollectionRequest) Get(ctx context.Context) ([]EducationCategory, error) {
return r.GetN(ctx, 0)
} | Get performs GET request for EducationCategory collection | Get | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassAssignmentCategoriesCollectionRequest) Add(ctx context.Context, reqObj *EducationCategory) (resObj *EducationCategory, err error) {
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
return
} | Add performs POST request for EducationCategory collection | Add | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationClassRequestBuilder) Assignments() *EducationClassAssignmentsCollectionRequestBuilder {
bb := &EducationClassAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/assignments"
return bb
} | Assignments returns request builder for EducationAssignment collection | Assignments | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationClassAssignmentsCollectionRequestBuilder) Request() *EducationClassAssignmentsCollectionRequest {
return &EducationClassAssignmentsCollectionRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
} | Request returns request for EducationAssignment collection | Request | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationClassAssignmentsCollectionRequestBuilder) ID(id string) *EducationAssignmentRequestBuilder {
bb := &EducationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/" + id
return bb
} | ID returns request builder for EducationAssignment item | ID | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]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 {
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := 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)
res.Body.Close()
if err != nil {
return nil, err
}
err = jsonx.Unmarshal(paging.Value, &value)
if err != nil {
return nil, err
}
values = append(values, value...)
if n >= 0 {
n--
}
if n == 0 || len(paging.NextLink) == 0 {
return values, nil
}
req, err = http.NewRequest("GET", paging.NextLink, nil)
if ctx != nil {
req = req.WithContext(ctx)
}
res, err = r.client.Do(req)
if err != nil {
return nil, err
}
}
} | Paging perfoms paging operation for EducationAssignment collection | Paging | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationAssignment, error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
return r.Paging(ctx, "GET", query, nil, n)
} | GetN performs GET request for EducationAssignment collection, max N pages | GetN | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassAssignmentsCollectionRequest) Get(ctx context.Context) ([]EducationAssignment, error) {
return r.GetN(ctx, 0)
} | Get performs GET request for EducationAssignment collection | Get | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *EducationAssignment) (resObj *EducationAssignment, err error) {
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
return
} | Add performs POST request for EducationAssignment collection | Add | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationClassRequestBuilder) Group() *GroupRequestBuilder {
bb := &GroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/group"
return bb
} | Group is navigation property | Group | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationClassRequestBuilder) Members() *EducationClassMembersCollectionRequestBuilder {
bb := &EducationClassMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/members"
return bb
} | Members returns request builder for EducationUser collection | Members | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationClassMembersCollectionRequestBuilder) Request() *EducationClassMembersCollectionRequest {
return &EducationClassMembersCollectionRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
} | Request returns request for EducationUser collection | Request | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationClassMembersCollectionRequestBuilder) ID(id string) *EducationUserRequestBuilder {
bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/" + id
return bb
} | ID returns request builder for EducationUser item | ID | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]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 {
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := 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)
res.Body.Close()
if err != nil {
return nil, err
}
err = jsonx.Unmarshal(paging.Value, &value)
if err != nil {
return nil, err
}
values = append(values, value...)
if n >= 0 {
n--
}
if n == 0 || len(paging.NextLink) == 0 {
return values, nil
}
req, err = http.NewRequest("GET", paging.NextLink, nil)
if ctx != nil {
req = req.WithContext(ctx)
}
res, err = r.client.Do(req)
if err != nil {
return nil, err
}
}
} | Paging perfoms paging operation for EducationUser collection | Paging | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassMembersCollectionRequest) GetN(ctx context.Context, n int) ([]EducationUser, error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
return r.Paging(ctx, "GET", query, nil, n)
} | GetN performs GET request for EducationUser collection, max N pages | GetN | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassMembersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) {
return r.GetN(ctx, 0)
} | Get performs GET request for EducationUser collection | Get | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassMembersCollectionRequest) Add(ctx context.Context, reqObj *EducationUser) (resObj *EducationUser, err error) {
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
return
} | Add performs POST request for EducationUser collection | Add | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationClassRequestBuilder) Schools() *EducationClassSchoolsCollectionRequestBuilder {
bb := &EducationClassSchoolsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/schools"
return bb
} | Schools returns request builder for EducationSchool collection | Schools | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationClassSchoolsCollectionRequestBuilder) Request() *EducationClassSchoolsCollectionRequest {
return &EducationClassSchoolsCollectionRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
} | Request returns request for EducationSchool collection | Request | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationClassSchoolsCollectionRequestBuilder) ID(id string) *EducationSchoolRequestBuilder {
bb := &EducationSchoolRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/" + id
return bb
} | ID returns request builder for EducationSchool item | ID | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassSchoolsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]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 {
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := 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)
res.Body.Close()
if err != nil {
return nil, err
}
err = jsonx.Unmarshal(paging.Value, &value)
if err != nil {
return nil, err
}
values = append(values, value...)
if n >= 0 {
n--
}
if n == 0 || len(paging.NextLink) == 0 {
return values, nil
}
req, err = http.NewRequest("GET", paging.NextLink, nil)
if ctx != nil {
req = req.WithContext(ctx)
}
res, err = r.client.Do(req)
if err != nil {
return nil, err
}
}
} | Paging perfoms paging operation for EducationSchool collection | Paging | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassSchoolsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSchool, error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
return r.Paging(ctx, "GET", query, nil, n)
} | GetN performs GET request for EducationSchool collection, max N pages | GetN | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassSchoolsCollectionRequest) Get(ctx context.Context) ([]EducationSchool, error) {
return r.GetN(ctx, 0)
} | Get performs GET request for EducationSchool collection | Get | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassSchoolsCollectionRequest) Add(ctx context.Context, reqObj *EducationSchool) (resObj *EducationSchool, err error) {
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
return
} | Add performs POST request for EducationSchool collection | Add | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationClassRequestBuilder) Teachers() *EducationClassTeachersCollectionRequestBuilder {
bb := &EducationClassTeachersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/teachers"
return bb
} | Teachers returns request builder for EducationUser collection | Teachers | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationClassTeachersCollectionRequestBuilder) Request() *EducationClassTeachersCollectionRequest {
return &EducationClassTeachersCollectionRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
} | Request returns request for EducationUser collection | Request | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationClassTeachersCollectionRequestBuilder) ID(id string) *EducationUserRequestBuilder {
bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/" + id
return bb
} | ID returns request builder for EducationUser item | ID | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassTeachersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]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 {
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := 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)
res.Body.Close()
if err != nil {
return nil, err
}
err = jsonx.Unmarshal(paging.Value, &value)
if err != nil {
return nil, err
}
values = append(values, value...)
if n >= 0 {
n--
}
if n == 0 || len(paging.NextLink) == 0 {
return values, nil
}
req, err = http.NewRequest("GET", paging.NextLink, nil)
if ctx != nil {
req = req.WithContext(ctx)
}
res, err = r.client.Do(req)
if err != nil {
return nil, err
}
}
} | Paging perfoms paging operation for EducationUser collection | Paging | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassTeachersCollectionRequest) GetN(ctx context.Context, n int) ([]EducationUser, error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
return r.Paging(ctx, "GET", query, nil, n)
} | GetN performs GET request for EducationUser collection, max N pages | GetN | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassTeachersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) {
return r.GetN(ctx, 0)
} | Get performs GET request for EducationUser collection | Get | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationClassTeachersCollectionRequest) Add(ctx context.Context, reqObj *EducationUser) (resObj *EducationUser, err error) {
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
return
} | Add performs POST request for EducationUser collection | Add | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationRootRequestBuilder) Classes() *EducationRootClassesCollectionRequestBuilder {
bb := &EducationRootClassesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/classes"
return bb
} | Classes returns request builder for EducationClass collection | Classes | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationRootClassesCollectionRequestBuilder) Request() *EducationRootClassesCollectionRequest {
return &EducationRootClassesCollectionRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
} | Request returns request for EducationClass collection | Request | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationRootClassesCollectionRequestBuilder) ID(id string) *EducationClassRequestBuilder {
bb := &EducationClassRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/" + id
return bb
} | ID returns request builder for EducationClass item | ID | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationRootClassesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]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 {
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := 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)
res.Body.Close()
if err != nil {
return nil, err
}
err = jsonx.Unmarshal(paging.Value, &value)
if err != nil {
return nil, err
}
values = append(values, value...)
if n >= 0 {
n--
}
if n == 0 || len(paging.NextLink) == 0 {
return values, nil
}
req, err = http.NewRequest("GET", paging.NextLink, nil)
if ctx != nil {
req = req.WithContext(ctx)
}
res, err = r.client.Do(req)
if err != nil {
return nil, err
}
}
} | Paging perfoms paging operation for EducationClass collection | Paging | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationRootClassesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationClass, error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
return r.Paging(ctx, "GET", query, nil, n)
} | GetN performs GET request for EducationClass collection, max N pages | GetN | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationRootClassesCollectionRequest) Get(ctx context.Context) ([]EducationClass, error) {
return r.GetN(ctx, 0)
} | Get performs GET request for EducationClass collection | Get | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationRootClassesCollectionRequest) Add(ctx context.Context, reqObj *EducationClass) (resObj *EducationClass, err error) {
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
return
} | Add performs POST request for EducationClass collection | Add | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationRootRequestBuilder) Me() *EducationUserRequestBuilder {
bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/me"
return bb
} | Me is navigation property | Me | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationRootRequestBuilder) Schools() *EducationRootSchoolsCollectionRequestBuilder {
bb := &EducationRootSchoolsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/schools"
return bb
} | Schools returns request builder for EducationSchool collection | Schools | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationRootSchoolsCollectionRequestBuilder) Request() *EducationRootSchoolsCollectionRequest {
return &EducationRootSchoolsCollectionRequest{
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
}
} | Request returns request for EducationSchool collection | Request | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (b *EducationRootSchoolsCollectionRequestBuilder) ID(id string) *EducationSchoolRequestBuilder {
bb := &EducationSchoolRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
bb.baseURL += "/" + id
return bb
} | ID returns request builder for EducationSchool item | ID | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationRootSchoolsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]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 {
if res.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(res.Body)
res.Body.Close()
errRes := &ErrorResponse{Response: res}
err := 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)
res.Body.Close()
if err != nil {
return nil, err
}
err = jsonx.Unmarshal(paging.Value, &value)
if err != nil {
return nil, err
}
values = append(values, value...)
if n >= 0 {
n--
}
if n == 0 || len(paging.NextLink) == 0 {
return values, nil
}
req, err = http.NewRequest("GET", paging.NextLink, nil)
if ctx != nil {
req = req.WithContext(ctx)
}
res, err = r.client.Do(req)
if err != nil {
return nil, err
}
}
} | Paging perfoms paging operation for EducationSchool collection | Paging | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationRootSchoolsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSchool, error) {
var query string
if r.query != nil {
query = "?" + r.query.Encode()
}
return r.Paging(ctx, "GET", query, nil, n)
} | GetN performs GET request for EducationSchool collection, max N pages | GetN | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationRootSchoolsCollectionRequest) Get(ctx context.Context) ([]EducationSchool, error) {
return r.GetN(ctx, 0)
} | Get performs GET request for EducationSchool collection | Get | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
func (r *EducationRootSchoolsCollectionRequest) Add(ctx context.Context, reqObj *EducationSchool) (resObj *EducationSchool, err error) {
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
return
} | Add performs POST request for EducationSchool collection | Add | go | 42wim/matterbridge | vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | https://github.com/42wim/matterbridge/blob/master/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.