|
181 | 181 | } |
182 | 182 | ] |
183 | 183 | } |
| 184 | + }, |
| 185 | + { |
| 186 | + "name": "repository", |
| 187 | + "schema": { |
| 188 | + "attributes": [ |
| 189 | + { |
| 190 | + "name": "description", |
| 191 | + "string": { |
| 192 | + "computed_optional_required": "computed_optional", |
| 193 | + "default" : { |
| 194 | + "static": "" |
| 195 | + }, |
| 196 | + "description": "Markdown description" |
| 197 | + } |
| 198 | + }, |
| 199 | + { |
| 200 | + "name": "name", |
| 201 | + "string": { |
| 202 | + "computed_optional_required": "required", |
| 203 | + "description": "Repository name", |
| 204 | + "plan_modifiers": [ |
| 205 | + { |
| 206 | + "custom": { |
| 207 | + "imports": [ |
| 208 | + { |
| 209 | + "path": "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" |
| 210 | + } |
| 211 | + ], |
| 212 | + "schema_definition": "stringplanmodifier.RequiresReplace()" |
| 213 | + } |
| 214 | + } |
| 215 | + ] |
| 216 | + } |
| 217 | + }, |
| 218 | + { |
| 219 | + "name": "namespace", |
| 220 | + "string": { |
| 221 | + "computed_optional_required": "required", |
| 222 | + "description": "Repository namespace. Should be an organization name or username", |
| 223 | + "plan_modifiers": [ |
| 224 | + { |
| 225 | + "custom": { |
| 226 | + "imports": [ |
| 227 | + { |
| 228 | + "path": "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" |
| 229 | + } |
| 230 | + ], |
| 231 | + "schema_definition": "stringplanmodifier.RequiresReplace()" |
| 232 | + } |
| 233 | + } |
| 234 | + ] |
| 235 | + } |
| 236 | + }, |
| 237 | + { |
| 238 | + "name": "visibility", |
| 239 | + "string": { |
| 240 | + "computed_optional_required": "computed_optional", |
| 241 | + "default" : { |
| 242 | + "static": "private" |
| 243 | + }, |
| 244 | + "description": "Repository visibility. Should be private or public. Defaults to private.", |
| 245 | + "validators": [ |
| 246 | + { |
| 247 | + "custom": { |
| 248 | + "imports": [ |
| 249 | + { |
| 250 | + "path": "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" |
| 251 | + } |
| 252 | + ], |
| 253 | + "schema_definition": "stringvalidator.OneOf([]string{\"private\", \"public\"}...)" |
| 254 | + } |
| 255 | + } |
| 256 | + ] |
| 257 | + } |
| 258 | + } |
| 259 | + ] |
| 260 | + } |
184 | 261 | } |
185 | 262 | ], |
186 | 263 | "datasources": [ |
|
204 | 281 | } |
205 | 282 | ] |
206 | 283 | } |
| 284 | + }, |
| 285 | + { |
| 286 | + "name": "repository", |
| 287 | + "schema": { |
| 288 | + "attributes": [ |
| 289 | + { |
| 290 | + "name": "description", |
| 291 | + "string": { |
| 292 | + "computed_optional_required": "computed", |
| 293 | + "description": "Markdown description" |
| 294 | + } |
| 295 | + }, |
| 296 | + { |
| 297 | + "name": "name", |
| 298 | + "string": { |
| 299 | + "computed_optional_required": "required", |
| 300 | + "description": "Repository name" |
| 301 | + } |
| 302 | + }, |
| 303 | + { |
| 304 | + "name": "namespace", |
| 305 | + "string": { |
| 306 | + "computed_optional_required": "required", |
| 307 | + "description": "Repository namespace. Should be an organization name or username" |
| 308 | + } |
| 309 | + }, |
| 310 | + { |
| 311 | + "name": "visibility", |
| 312 | + "string": { |
| 313 | + "computed_optional_required": "computed", |
| 314 | + "description": "Repository visibility. Should be private or public." |
| 315 | + } |
| 316 | + } |
| 317 | + ] |
| 318 | + } |
207 | 319 | } |
208 | 320 | ], |
209 | 321 | "version": "0.1" |
|
0 commit comments