Skip to content

Instantly share code, notes, and snippets.

@bernerdschaefer
Created October 23, 2017 19:02

Revisions

  1. bernerdschaefer created this gist Oct 23, 2017.
    87 changes: 87 additions & 0 deletions schema.go
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,87 @@
    Schema: map[string]*schema.Schema{
    "addon": {
    Type: schema.TypeString,
    Required: true,
    ForceNew: true,
    },

    "app": {
    Type: schema.TypeString,
    Required: true,
    ForceNew: true,
    },

    "name": {
    Type: schema.TypeString,
    Optional: true,
    Computed: true,
    ForceNew: true,
    },

    "namespace": {
    Type: schema.TypeString,
    Optional: true,
    ForceNew: true,
    },

    "addon_id": {
    Type: schema.TypeString,
    Computed: true,
    },

    "addon_name": {
    Type: schema.TypeString,
    Computed: true,
    },

    "addon_app_id": {
    Type: schema.TypeString,
    Computed: true,
    },

    "addon_app_name": {
    Type: schema.TypeString,
    Computed: true,
    },

    "addon_plan_id": {
    Type: schema.TypeString,
    Computed: true,
    },

    "addon_plan_name": {
    Type: schema.TypeString,
    Computed: true,
    },

    "app_id": {
    Type: schema.TypeString,
    Computed: true,
    },

    "app_name": {
    Type: schema.TypeString,
    Computed: true,
    },

    "created_at": {
    Type: schema.TypeString,
    Computed: true,
    },

    "id": {
    Type: schema.TypeString,
    Computed: true,
    },

    "updated_at": {
    Type: schema.TypeString,
    Computed: true,
    },

    "web_url": {
    Type: schema.TypeString,
    Computed: true,
    },
    },
    // ...