File tree 7 files changed +379
-18
lines changed
examples/resources/organization_resource
7 files changed +379
-18
lines changed Original file line number Diff line number Diff line change @@ -25,21 +25,11 @@ go generate ./...
25
25
## Usage Example
26
26
27
27
``` hcl
28
- terraform {
29
- required_providers {
30
- terrakube = {
31
- source = "AzBuilder/terrakube"
32
- }
33
- }
34
- }
35
-
36
- provider "terrakube" {
37
- endpoint = "http://terrakube-api.minikube.net"
38
- token = "(PERSONAL ACCESS TOKEN OR TEAM TOKEN)"
39
- }
40
-
41
- data "terrakube_organization" "org" {
42
- name = "simple"
28
+ ººº
29
+ resource "terrakube_organization" "org_sample" {
30
+ name = "unique-org-name"
31
+ description = "my super descripton"
32
+ execution_mode = "local"
43
33
}
44
34
45
35
data "terrakube_vcs" "vcs" {
Original file line number Diff line number Diff line change
1
+ ---
2
+ # generated by https://github.com/hashicorp/terraform-plugin-docs
3
+ page_title : " terrakube_organization Resource - terraform-provider-terrakube"
4
+ subcategory : " "
5
+ description : |-
6
+
7
+ ---
8
+
9
+ # terrakube_organization (Resource)
10
+
11
+
12
+
13
+
14
+
15
+ <!-- schema generated by tfplugindocs -->
16
+ ## Schema
17
+
18
+ ### Required
19
+
20
+ - ` description ` (String) Organization description
21
+ - ` execution_mode ` (String) Select default execution mode for the organization (remote or local)
22
+ - ` name ` (String) Organization name
23
+
24
+ ### Read-Only
25
+
26
+ - ` id ` (String) Organization Id
Original file line number Diff line number Diff line change
1
+ resource "terrakube_organization" "organization" {
2
+ name = " sample-organization"
3
+ description = " sample organization description"
4
+ executionModule = " remote"
5
+ }
Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ import (
5
5
)
6
6
7
7
type OrganizationEntity struct {
8
- ID string `jsonapi:"primary,organization"`
9
- Name string `jsonapi:"attr,name"`
10
- Description string `jsonapi:"attr,description"`
8
+ ID string `jsonapi:"primary,organization"`
9
+ Name string `jsonapi:"attr,name"`
10
+ Description string `jsonapi:"attr,description"`
11
+ ExecutionMode string `jsonapi:"attr,executionMode"`
12
+ Disabled bool `jsonapi:"attr,disabled"`
11
13
}
12
14
13
15
type TeamEntity struct {
You can’t perform that action at this time.
0 commit comments