// Create Allows you to grant Atlas access to the specified export job for exporting backup snapshots.
//
// See more: https://docs.atlas.mongodb.com/reference/api/cloud-backup/export/create-one-export-job/
Create Allows you to grant Atlas access to the specified export job for exporting backup snapshots.


// Create Allows you to grant Atlas access to the specified export job for exporting backup snapshots . // // See more : https : // docs . atlas . mongodb . com / reference / api / cloud - backup / export / create - one - export - job /
func (c CloudProviderSnapshotExportJobsServiceOp) Create(ctx context.Context, projectID, clusterName string, bucket *CloudProviderSnapshotExportJob) (*CloudProviderSnapshotExportJob, *Response, error) {
	if projectID == "" {
		return nil, nil, NewArgError("projectID", "must be set")
	}
	if clusterName == "" {
		return nil, nil, NewArgError("clusterName", "must be set")
	}
	path := fmt.Sprintf(cloudProviderSnapshotExportJobsPath, projectID, clusterName)
	req, err := c.Client.NewRequest(ctx, http.MethodPost, path, bucket)
	if err != nil {
		return nil, nil, err
	}
	root := new(CloudProviderSnapshotExportJob)
	resp, err := c.Client.Do(ctx, req, root)
	if err != nil {
		return nil, resp, err
	}
	return root, resp, err
}
func ( c CloudProviderSnapshotExportJobsServiceOp ) Create ( ctx context . Context , projectID , clusterName string , bucket * CloudProviderSnapshotExportJob ) ( * CloudProviderSnapshotExportJob , * Response , error ) { if projectID == " " { return nil , nil , NewArgError ( " " , " " ) } if clusterName == " " { return nil , nil , NewArgError ( " " , " " ) } path := fmt . Sprintf ( cloudProviderSnapshotExportJobsPath , projectID , clusterName ) req , err := c . Client . NewRequest ( ctx , http . MethodPost , path , bucket ) if err != nil { return nil , nil , err } root := new ( CloudProviderSnapshotExportJob ) resp , err := c . Client . Do ( ctx , req , root ) if err != nil { return nil , resp , err } return root , resp , err }
Create Allows you to grant Atlas access to the specified export job for exporting backup snapshots.
Create Allows you to grant Atlas access to the specified export job for exporting backup snapshots .