WorkspaceGit
Properties
| Property | Type | Attributes | Description |
|---|---|---|---|
gitCredentials | WorkspaceGitCredentials | Required | The Git credentials details |
gitProviderDetails | WorkspaceGitProviderDetails | Required | The Git provider details. Changing these forces the connection to be recreated. |
initializationStrategy | 'None' | 'PreferRemote' | 'PreferWorkspace' | Required | The strategy used to reconcile the workspace and the repository when the connection is initialized |
workspaceId | string | Required, Identifier | The Fabric workspace ID |
gitConnectionState | 'NotConnected' | 'Connected' | 'ConnectedAndInitialized' | Read-only | The Git connection state |
gitSyncDetails | WorkspaceGitSyncDetails | Read-only | Details of the last sync between the workspace and the repository |
options | WorkspaceGitOptions | Options applied to the initial sync from Git |
WorkspaceGitCredentials
| Property | Type | Attributes | Description |
|---|---|---|---|
source | 'Automatic' | 'ConfiguredConnection' | Required | The Git credentials source. 'Automatic' is only supported for Azure DevOps. |
connectionId | string | The connection used to authenticate to the Git provider. Required when 'source' is 'ConfiguredConnection'. |
WorkspaceGitProviderDetails
| Property | Type | Attributes | Description |
|---|---|---|---|
branchName | string | Required | The branch name |
directoryName | string | Required | The directory name. Must start with a forward slash. |
gitProviderType | 'AzureDevOps' | 'GitHub' | Required | The Git provider type. Changing this forces the connection to be recreated. |
repositoryName | string | Required | The repository name |
organizationName | string | The Azure DevOps organization name. Required when 'gitProviderType' is 'AzureDevOps'. | |
ownerName | string | The GitHub owner name. Required when 'gitProviderType' is 'GitHub'. | |
projectName | string | The Azure DevOps project name. Required when 'gitProviderType' is 'AzureDevOps'. |
WorkspaceGitSyncDetails
| Property | Type | Attributes | Description |
|---|---|---|---|
head | string | Read-only | The commit hash of the last sync |
lastSyncTime | string | Read-only | The date and time of the last sync |
WorkspaceGitOptions
| Property | Type | Attributes | Description |
|---|---|---|---|
allowOverrideItems | bool | Whether incoming items may override existing workspace items during the initial sync from Git |