-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from huhouhua/dev
defin reposone model for applicationset api
- Loading branch information
Showing
13 changed files
with
230 additions
and
2 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/ArgoCD.Client/Models/ApplicationSet/Reponses/V1JSON.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace ArgoCD.Client.Models.ApplicationSet.Reponses | ||
{ | ||
/// <summary> | ||
/// JSON represents any valid JSON value. | ||
/// These types are supported: bool, int64, float64, string, [] interface{ }, map[string] interface{ } | ||
/// and nil. | ||
/// </summary> | ||
public class V1JSON | ||
{ | ||
public V1JSON() { } | ||
|
||
public string Raw { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/ArgoCD.Client/Models/ApplicationSet/Reponses/V1alpha1ApplicationSetNestedGenerator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace ArgoCD.Client.Models.ApplicationSet.Reponses | ||
{ | ||
/// <summary> | ||
/// ApplicationSetNestedGenerator represents a generator nested within a combination-type generator(MatrixGenerator or MergeGenerator). | ||
/// </summary> | ||
public class V1alpha1ApplicationSetNestedGenerator | ||
{ | ||
public V1alpha1DuckTypeGenerator ClusterDecisionResource { get; set; } | ||
|
||
public V1alpha1ClusterGenerator Clusters { get; set; } | ||
|
||
public V1alpha1GitGenerator Git { get; set; } | ||
|
||
public V1alpha1ListGenerator List { get; set; } | ||
|
||
public V1JSON Matrix { get; set; } | ||
|
||
public V1JSON Merge { get; set; } | ||
|
||
public V1alpha1PluginGenerator Plugin { get; set; } | ||
|
||
public V1alpha1PullRequestGenerator PullRequest { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/ArgoCD.Client/Models/ApplicationSet/Reponses/V1alpha1ListGenerator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace ArgoCD.Client.Models.ApplicationSet.Reponses | ||
{ | ||
public class V1alpha1ListGenerator | ||
{ | ||
public V1alpha1ListGenerator() { } | ||
|
||
public V1JSON Elements { get; set; } | ||
|
||
public string ElementsYaml { get; set; } | ||
|
||
/// <summary> | ||
/// ApplicationSetTemplate represents argocd ApplicationSpec | ||
/// </summary> | ||
public V1alpha1ApplicationSetTemplate Template { get; set; } | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/ArgoCD.Client/Models/ApplicationSet/Reponses/V1alpha1MatrixGenerator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace ArgoCD.Client.Models.ApplicationSet.Reponses | ||
{ | ||
public class V1alpha1MatrixGenerator | ||
{ | ||
public V1alpha1MatrixGenerator() { } | ||
|
||
public string generators { get; set; } | ||
|
||
|
||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/ArgoCD.Client/Models/ApplicationSet/Reponses/V1alpha1PluginConfigMapRef.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace ArgoCD.Client.Models.ApplicationSet.Reponses | ||
{ | ||
public class V1alpha1PluginConfigMapRef | ||
{ | ||
/// <summary> | ||
/// Name of the ConfigMap | ||
/// </summary> | ||
public string Name { get; set; } | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/ArgoCD.Client/Models/ApplicationSet/Reponses/V1alpha1PluginGenerator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace ArgoCD.Client.Models.ApplicationSet.Reponses | ||
{ | ||
public class V1alpha1PluginGenerator | ||
{ | ||
public V1alpha1PluginGenerator() { } | ||
|
||
public V1alpha1PluginConfigMapRef ConfigMapRef { get; set; } | ||
|
||
public V1alpha1PluginInput Input { get; set; } | ||
|
||
/// <summary> | ||
/// RequeueAfterSeconds determines how long the ApplicationSet controller will wait before reconciling the ApplicationSet again. | ||
/// </summary> | ||
public string RequeueAfterSeconds { get; set; } | ||
|
||
public V1alpha1ApplicationSetTemplate Template { get; set; } | ||
|
||
public object Values { get; set; } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/ArgoCD.Client/Models/ApplicationSet/Reponses/V1alpha1PluginInput.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace ArgoCD.Client.Models.ApplicationSet.Reponses | ||
{ | ||
public class V1alpha1PluginInput | ||
{ | ||
public V1alpha1PluginInput() { } | ||
|
||
public object Parameters { get; set; } | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/ArgoCD.Client/Models/ApplicationSet/Reponses/V1alpha1PullRequestGenerator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace ArgoCD.Client.Models.ApplicationSet.Reponses | ||
{ | ||
/// <summary> | ||
/// PullRequestGenerator defines a generator that scrapes a PullRequest API to find candidate pull requests. | ||
/// </summary> | ||
public class V1alpha1PullRequestGenerator | ||
{ | ||
public V1alpha1PullRequestGenerator() { } | ||
|
||
|
||
public V1alpha1PullRequestGeneratorAzureDevOps Azuredevops { get; set; } | ||
|
||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
src/ArgoCD.Client/Models/ApplicationSet/Reponses/V1alpha1PullRequestGeneratorAzureDevOps.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace ArgoCD.Client.Models.ApplicationSet.Reponses | ||
{ | ||
/// <summary> | ||
/// PullRequestGeneratorAzureDevOps defines connection info specific to AzureDevOps. | ||
/// </summary> | ||
public class V1alpha1PullRequestGeneratorAzureDevOps | ||
{ | ||
/// <summary> | ||
/// The Azure DevOps API URL to talk to. If blank, use https://dev.azure.com/. | ||
/// </summary> | ||
public string Api { get; set; } | ||
|
||
/// <summary> | ||
/// Labels is used to filter the PRs that you want to target | ||
/// </summary> | ||
public string[] Labels { get; set; } | ||
|
||
/// <summary> | ||
/// Azure DevOps org to scan. Required. | ||
/// </summary> | ||
public string Organization { get; set; } | ||
|
||
|
||
/// <summary> | ||
/// Azure DevOps project name to scan. Required. | ||
/// </summary> | ||
public string Project { get; set; } | ||
|
||
/// <summary> | ||
/// Azure DevOps repo name to scan. Required | ||
/// </summary> | ||
public string Repo { get; set; } | ||
|
||
public V1alpha1SecretRef TokenRef { get; set; } | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/ArgoCD.Client/Models/ApplicationSet/Reponses/V1alpha1SecretRef.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace ArgoCD.Client.Models.ApplicationSet.Reponses | ||
{ | ||
/// <summary> | ||
/// Utility struct for a reference to a secret key. | ||
/// </summary> | ||
public class V1alpha1SecretRef | ||
{ | ||
public string Key { get; set; } | ||
|
||
public string SecretName { get; set; } | ||
} | ||
} |