summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobAction.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobAction.go')
-rw-r--r--vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobAction.go239
1 files changed, 239 insertions, 0 deletions
diff --git a/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobAction.go b/vendor/github.com/matterbridge/msgraph.go/beta/SynchronizationJobAction.go
new file mode 100644
index 00000000..f9d36e41
--- /dev/null
+++ b/vendor/github.com/matterbridge/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)
+}