Skip to content

Commit

Permalink
Merge pull request #3 from DevotedHealth/official-go-sdk
Browse files Browse the repository at this point in the history
Move to official go sdk
  • Loading branch information
ajbosco authored Jun 11, 2021
2 parents 01ba569 + 68b4810 commit e9cf644
Show file tree
Hide file tree
Showing 61 changed files with 820 additions and 2,990 deletions.
18 changes: 11 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ help:

.PHONY: vendor
vendor: go.sum ## vendor dependencies
GO111MODULE=on go mod vendor
GO111MODULE=on go mod tidy
@GO111MODULE=on go mod vendor
@GO111MODULE=on go mod tidy

.PHONY: lint
lint: ## run linter
Expand All @@ -18,19 +18,23 @@ lint: ## run linter
test: ## run tests
@go test -v -cover -race $(shell go list ./... | grep -v vendor)

.PHONY: test-acceptance
test-acceptance: ## runs all tests, including the acceptance tests
@TF_ACC=1 $(go_test) go test -v -cover $(shell go list ./... | grep -v vendor)

.PHONY: build
build: ## build binary
go build -o build/$(BASE_BINARY_NAME) .
@go build -o build/$(BASE_BINARY_NAME) .

.PHONY: docs
docs: ## generate docs
go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
@go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs

.PHONY: check-docs
check-docs: docs ## check that docs have been generated
git diff --exit-code -- docs
@git diff --exit-code -- docs

.PHONY: check-mod
check-mod: ## check go.mod is up-to-date
go mod tidy
git diff --exit-code -- go.mod go.sum
@go mod tidy
@git diff --exit-code -- go.mod go.sum
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.2.0
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: Manage Looker with Terraform.
# Looker Provider

This is a terraform provider plugin for managing [Looker](https://www.looker.com/) accounts.
Coverage is focused on part of Looker related to access control.
Coverage is focused on the part of Looker related to access control.


## Example Provider Configuration
Expand Down
31 changes: 0 additions & 31 deletions docs/resources/child_space.md

This file was deleted.

54 changes: 0 additions & 54 deletions docs/resources/connection.md

This file was deleted.

40 changes: 0 additions & 40 deletions docs/resources/content_metadata_access.md

This file was deleted.

36 changes: 0 additions & 36 deletions docs/resources/git_deploy_key.md

This file was deleted.

5 changes: 2 additions & 3 deletions docs/resources/group.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ description: |-
## Example Usage

```terraform
resource "looker_role_groups" "embed_role_groups" {
role_id = looker_role.embed_role.id
group_ids = ["${looker_group.embed_group.id}"]
resource "looker_group" "group" {
name = "MyGroup"
}
```

Expand Down
42 changes: 0 additions & 42 deletions docs/resources/main_space.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs/resources/permission_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ description: |-
## Example Usage

```terraform
resource "looker_permission_set" "embed_permission_set" {
name = "Embed Permission Set"
resource "looker_permission_set" "permission_set" {
name = "Permission Set"
permissions = ["access_data", "download_with_limit", "schedule_look_emails", "schedule_external_look_emails", "see_user_dashboards"]
}
```
Expand Down
32 changes: 0 additions & 32 deletions docs/resources/project.md

This file was deleted.

27 changes: 0 additions & 27 deletions docs/resources/project_git_details.md

This file was deleted.

6 changes: 3 additions & 3 deletions docs/resources/role.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ description: |-
## Example Usage

```terraform
resource "looker_role" "embed_role" {
name = "Embed User Role"
permission_set_id = looker_permission_set.embed_permission_set.id
resource "looker_role" "role" {
name = "Role"
permission_set_id = looker_permission_set.permission_set.id
model_set_id = looker_model_set.model_set.id
}
```
Expand Down
7 changes: 3 additions & 4 deletions docs/resources/role_groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ description: |-
## Example Usage

```terraform
resource "looker_role" "embed_role" {
name = "Embed User Role"
permission_set_id = looker_permission_set.embed_permission_set.id
model_set_id = looker_model_set.model_set.id
resource "looker_role_groups" "role_groups" {
role_id = looker_role.role.id
group_ids = [looker_group.group.id]
}
```

Expand Down
5 changes: 5 additions & 0 deletions docs/resources/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ description: |-

```terraform
resource "looker_user" "user" {
email = "[email protected]"
first_name = "Reporting"
last_name = "API User"
}
Expand All @@ -22,6 +23,10 @@ resource "looker_user" "user" {
<!-- schema generated by tfplugindocs -->
## Schema

### Required

- **email** (String)

### Optional

- **first_name** (String)
Expand Down
Loading

0 comments on commit e9cf644

Please sign in to comment.