VaporShell.CodeStar.Classes.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
using namespace System
using namespace System.Collections
using namespace System.Collections.Generic
using namespace System.IO
using namespace System.Management.Automation
[CmdletBinding()]
Param()

Write-Verbose "Importing class 'CodeStarGitHubRepositoryCode'"

class CodeStarGitHubRepositoryCode : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSCodeStarGitHubRepositoryCode'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codestar-githubrepository-code.html'

    hidden [object] $_s3

    [CodeStarGitHubRepositoryS3] $S3

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name S3 -Value {
            $this._s3
        } -SecondValue {
            param([ValidateType(([CodeStarGitHubRepositoryS3], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._s3 = $value
        }
    }

    CodeStarGitHubRepositoryCode() : base() {}
    CodeStarGitHubRepositoryCode([IDictionary] $props) : base($props) {}
    CodeStarGitHubRepositoryCode([psobject] $props) : base($props) {}
}

Write-Verbose "Importing class 'CodeStarGitHubRepositoryS3'"

class CodeStarGitHubRepositoryS3 : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSCodeStarGitHubRepositoryS3'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codestar-githubrepository-s3.html'

    hidden [object] $_objectVersion
    hidden [object] $_bucket
    hidden [object] $_key

    [string] $ObjectVersion
    [string] $Bucket
    [string] $Key

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name ObjectVersion -Value {
            $this._objectVersion
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._objectVersion = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Bucket -Value {
            $this._bucket
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._bucket = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Key -Value {
            $this._key
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._key = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
    }

    CodeStarGitHubRepositoryS3() : base() {}
    CodeStarGitHubRepositoryS3([IDictionary] $props) : base($props) {}
    CodeStarGitHubRepositoryS3([psobject] $props) : base($props) {}
}

Write-Verbose "Importing class 'CodeStarGitHubRepository'"

class CodeStarGitHubRepository : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSCodeStarGitHubRepository'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestar-githubrepository.html'

    hidden [object] $_condition

    [string] $Type = 'AWS::CodeStar::GitHubRepository'
    [bool] $EnableIssues
    [string] $ConnectionArn
    [string] $RepositoryName
    [string] $RepositoryAccessToken
    [string] $RepositoryOwner
    [bool] $IsPrivate
    [CodeStarGitHubRepositoryCode] $Code
    [string] $RepositoryDescription
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $this | Add-Member -Force -MemberType ScriptProperty -Name EnableIssues -Value {
            $this.Properties['EnableIssues']
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['EnableIssues'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ConnectionArn -Value {
            $this.Properties['ConnectionArn']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['ConnectionArn'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RepositoryName -Value {
            $this.Properties['RepositoryName']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['RepositoryName'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RepositoryAccessToken -Value {
            $this.Properties['RepositoryAccessToken']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['RepositoryAccessToken'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RepositoryOwner -Value {
            $this.Properties['RepositoryOwner']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['RepositoryOwner'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name IsPrivate -Value {
            $this.Properties['IsPrivate']
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['IsPrivate'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Code -Value {
            $this.Properties['Code']
        } -SecondValue {
            param([ValidateType(([CodeStarGitHubRepositoryCode], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Code'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RepositoryDescription -Value {
            $this.Properties['RepositoryDescription']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['RepositoryDescription'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Condition -Value {
            $this._condition
        } -SecondValue {
            param(
                [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object]
                $value
            )
            $this._condition = $value
        }
    }

    CodeStarGitHubRepository() : base() {}
    CodeStarGitHubRepository([IDictionary] $props) : base($props) {}
    CodeStarGitHubRepository([psobject] $props) : base($props) {}
}