Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions resources/GitDsc/GitClone.dsc.adaptedResource.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"$schema": "https://aka.ms/dsc/schemas/v3/bundled/adaptedresource/manifest.json",
"type": "GitDsc/GitClone",
"kind": "resource",
"version": "0.1.0",
"capabilities": ["get", "test", "set"],
"description": "The `GitClone` DSC resource is used to clone a Git repository to a local directory.",
"author": "DscSamples",
"requireAdapter": "Microsoft.Adapter/PowerShell",
"path": "GitDsc.psd1",
"schema": {
"embedded": {
"description": "The `GitClone` DSC resource is used to clone a Git repository to a local directory.",
"type": "object",
"required": ["HttpsUrl", "RootDirectory"],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"Ensure": {
"type": "string",
"enum": ["Absent", "Present"],
"title": "Ensure",
"description": "Specifies whether the repository should be present or absent. Defaults to `Present`.\r\n Removing a cloned repository is not supported by this resource."
},
"HttpsUrl": {
"type": "string",
"title": "HttpsUrl",
"description": "The HTTPS URL of the Git repository to clone. This is a key property."
},
"RemoteName": {
"type": "string",
"title": "RemoteName",
"description": "The name of the remote. Defaults to `origin`."
},
"RootDirectory": {
"type": "string",
"title": "RootDirectory",
"description": "The root directory where the repository will be cloned into. This is a mandatory property."
},
"FolderName": {
"type": "string",
"title": "FolderName",
"description": "The folder name for the cloned repository. If not specified, it is derived from the HTTPS URL."
},
"ExtraArgs": {
"type": "string",
"title": "ExtraArgs",
"description": "Additional arguments to pass to `git clone`."
}
},
"title": "GitDsc/GitClone"
}
}
}
45 changes: 45 additions & 0 deletions resources/GitDsc/GitConfigUserEmail.dsc.adaptedResource.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$schema": "https://aka.ms/dsc/schemas/v3/bundled/adaptedresource/manifest.json",
"type": "GitDsc/GitConfigUserEmail",
"kind": "resource",
"version": "0.1.0",
"capabilities": ["get", "test", "set"],
"description": "The `GitConfigUserEmail` DSC resource is used to manage the Git user email configuration.",
"author": "DscSamples",
"requireAdapter": "Microsoft.Adapter/PowerShell",
"path": "GitDsc.psd1",
"schema": {
"embedded": {
"description": "The `GitConfigUserEmail` DSC resource is used to manage the Git user email configuration.",
"type": "object",
"required": ["UserEmail"],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"Ensure": {
"type": "string",
"enum": ["Absent", "Present"],
"title": "Ensure",
"description": "Specifies whether the user email should be present or absent. Defaults to `Present`."
},
"UserEmail": {
"type": "string",
"title": "UserEmail",
"description": "The Git user email to configure. This is a key property."
},
"ConfigLocation": {
"type": "string",
"enum": ["none", "global", "system", "worktree", "local"],
"title": "ConfigLocation",
"description": "The Git configuration scope to apply the setting to (e.g., `global`, `system`, `local`)."
},
"ProjectDirectory": {
"type": "string",
"title": "ProjectDirectory",
"description": "The path to the Git repository. Required for non-global and non-system configurations."
}
},
"title": "GitDsc/GitConfigUserEmail"
}
}
}
45 changes: 45 additions & 0 deletions resources/GitDsc/GitConfigUserName.dsc.adaptedResource.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$schema": "https://aka.ms/dsc/schemas/v3/bundled/adaptedresource/manifest.json",
"type": "GitDsc/GitConfigUserName",
"kind": "resource",
"version": "0.1.0",
"capabilities": ["get", "test", "set"],
"description": "The `GitConfigUserName` DSC resource is used to manage the Git user name configuration.",
"author": "DscSamples",
"requireAdapter": "Microsoft.Adapter/PowerShell",
"path": "GitDsc.psd1",
"schema": {
"embedded": {
"description": "The `GitConfigUserName` DSC resource is used to manage the Git user name configuration.",
"type": "object",
"required": ["UserName"],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"Ensure": {
"type": "string",
"enum": ["Absent", "Present"],
"title": "Ensure",
"description": "Specifies whether the user name should be present or absent. Defaults to `Present`."
},
"UserName": {
"type": "string",
"title": "UserName",
"description": "The Git user name to configure. This is a key property."
},
"ConfigLocation": {
"type": "string",
"enum": ["none", "global", "system", "worktree", "local"],
"title": "ConfigLocation",
"description": "The Git configuration scope to apply the setting to (e.g., `global`, `system`, `local`)."
},
"ProjectDirectory": {
"type": "string",
"title": "ProjectDirectory",
"description": "The path to the Git repository. Required for non-global and non-system configurations."
}
},
"title": "GitDsc/GitConfigUserName"
}
}
}
44 changes: 44 additions & 0 deletions resources/GitDsc/GitRemote.dsc.adaptedResource.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"$schema": "https://aka.ms/dsc/schemas/v3/bundled/adaptedresource/manifest.json",
"type": "GitDsc/GitRemote",
"kind": "resource",
"version": "0.1.0",
"capabilities": ["get", "test", "set"],
"description": "The `GitRemote` DSC resource is used to manage remote repository references in a Git project.",
"author": "DscSamples",
"requireAdapter": "Microsoft.Adapter/PowerShell",
"path": "GitDsc.psd1",
"schema": {
"embedded": {
"description": "The `GitRemote` DSC resource is used to manage remote repository references in a Git project.",
"type": "object",
"required": ["RemoteName", "RemoteUrl", "ProjectDirectory"],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"Ensure": {
"type": "string",
"enum": ["Absent", "Present"],
"title": "Ensure",
"description": "Specifies whether the remote should be present or absent. Defaults to `Present`."
},
"RemoteName": {
"type": "string",
"title": "RemoteName",
"description": "The name of the Git remote. This is a key property."
},
"RemoteUrl": {
"type": "string",
"title": "RemoteUrl",
"description": "The URL of the Git remote. This is a key property."
},
"ProjectDirectory": {
"type": "string",
"title": "ProjectDirectory",
"description": "The path to the local Git repository. This is a mandatory property."
}
},
"title": "GitDsc/GitRemote"
}
}
}
192 changes: 0 additions & 192 deletions resources/GitDsc/gitdsc.dsc.manifests.json

This file was deleted.

Loading
Loading