Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions mmv1/products/apigee/EndpointAttachment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
---
name: 'EndpointAttachment'
description: |
Apigee Endpoint Attachment.
An `EndpointAttachment` in Apigee is a resource that facilitates private connectivity between Apigee and backend services using Private Service Connect (PSC).

For more information, see the [Apigee documentation](https://cloud.google.com/apigee/docs/api-platform/architecture/southbound-networking-patterns-psc).
references:
guides:
'Creating an environment': 'https://cloud.google.com/apigee/docs/api-platform/get-started/create-environment'
Expand Down Expand Up @@ -43,6 +45,11 @@ async:
custom_code:
custom_import: 'templates/terraform/custom_import/apigee_endpoint_attachment.go.tmpl'
exclude_sweeper: true
examples:
- name: 'apigee_endpoint_attachment_basic'
primary_resource_id: 'apigee_endpoint_attachment'
vars:
endpoint_attachment_id: "my-endpoint-attachment"
parameters:
- name: 'orgId'
type: String
Expand All @@ -69,7 +76,7 @@ properties:
- name: 'location'
type: String
description: |
Location of the endpoint attachment.
The location of the endpoint attachment.
required: true
- name: 'host'
type: String
Expand All @@ -79,10 +86,12 @@ properties:
- name: 'serviceAttachment'
type: String
description: |
Format: projects/*/regions/*/serviceAttachments/*
The resource URL of the service attachment in the format:
`projects/*/regions/*/serviceAttachments/*`.
required: true
- name: 'connectionState'
type: String
description: |
State of the endpoint attachment connection to the service attachment.
Possible values are: `CONNECTION_STATE_UNSPECIFIED`, `PENDING`, `ACCEPTED`, `REJECTED`, `CLOSED`.
output: true
2 changes: 2 additions & 0 deletions mmv1/products/apigee/Instance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
import_format:
- '{{org_id}}/instances/{{name}}'
- '{{org_id}}/{{name}}'
datasource:
generate: true
timeouts:
insert_minutes: 60
update_minutes: 20
Expand All @@ -54,7 +56,7 @@
vars:
instance_name: 'my-instance-name'
exclude_test: true
# This is a more verbose version of the above that creates all

Check warning on line 59 in mmv1/products/apigee/Instance.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

59:7 [comments-indentation] comment not indented like content
# the resources needed for the acceptance test.
- name: 'apigee_instance_basic_test'
primary_resource_id: 'apigee_instance'
Expand All @@ -62,14 +64,14 @@
org_id: 'ORG_ID'
billing_account: 'BILLING_ACCT'
exclude_docs: true
# Resource creation race

Check warning on line 67 in mmv1/products/apigee/Instance.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

67:7 [comments-indentation] comment not indented like content
skip_vcr: true
external_providers: ["time"]
- name: 'apigee_instance_cidr_range'
vars:
instance_name: 'my-instance-name'
exclude_test: true
# This is a more verbose version of the above that creates all

Check warning on line 74 in mmv1/products/apigee/Instance.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

74:7 [comments-indentation] comment not indented like content
# the resources needed for the acceptance test.
- name: 'apigee_instance_cidr_range_test'
primary_resource_id: 'apigee_instance'
Expand All @@ -77,14 +79,14 @@
org_id: 'ORG_ID'
billing_account: 'BILLING_ACCT'
exclude_docs: true
# Resource creation race

Check warning on line 82 in mmv1/products/apigee/Instance.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

82:7 [comments-indentation] comment not indented like content
skip_vcr: true
external_providers: ["time"]
- name: 'apigee_instance_ip_range'
vars:
instance_name: 'my-instance-name'
exclude_test: true
# This is a more verbose version of the above that creates all

Check warning on line 89 in mmv1/products/apigee/Instance.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

89:7 [comments-indentation] comment not indented like content
# the resources needed for the acceptance test.
- name: 'apigee_instance_ip_range_test'
primary_resource_id: 'apigee_instance'
Expand All @@ -92,14 +94,14 @@
org_id: 'ORG_ID'
billing_account: 'BILLING_ACCT'
exclude_docs: true
# Resource creation race

Check warning on line 97 in mmv1/products/apigee/Instance.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

97:7 [comments-indentation] comment not indented like content
skip_vcr: true
external_providers: ["time"]
- name: 'apigee_instance_full'
vars:
instance_name: 'my-instance-name'
exclude_test: true
# This is a more verbose version of the above that creates all

Check warning on line 104 in mmv1/products/apigee/Instance.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

104:7 [comments-indentation] comment not indented like content
# the resources needed for the acceptance test.
- name: 'apigee_instance_full_test'
primary_resource_id: 'apigee_instance'
Expand All @@ -108,7 +110,7 @@
org_id: 'ORG_ID'
billing_account: 'BILLING_ACCT'
exclude_docs: true
# Resource creation race

Check warning on line 113 in mmv1/products/apigee/Instance.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

113:7 [comments-indentation] comment not indented like content
skip_vcr: true
external_providers: ["time"]
- name: 'apigee_instance_service_attachment_basic_test'
Expand All @@ -117,7 +119,7 @@
org_id: 'ORG_ID'
billing_account: 'BILLING_ACCT'
exclude_docs: true
# Resource creation race

Check warning on line 122 in mmv1/products/apigee/Instance.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

122:7 [comments-indentation] comment not indented like content
skip_vcr: true
external_providers: ["time"]
parameters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestAccApigeeEndpointAttachment_apigeeEndpointAttachmentBasicTestExample(t
ExternalProviders: map[string]resource.ExternalProvider{
"time": {},
},
CheckDestroy: testAccCheckApigeeEndpointAttachmentDestroyProducer(t),
CheckDestroy: testAccCheckApigeeEndpointAttachmentDestroyDefaultProducer(t),
Steps: []resource.TestStep{
{
Config: testAccApigeeEndpointAttachment_apigeeEndpointAttachmentBasicTestExample(context),
Expand Down Expand Up @@ -216,7 +216,7 @@ resource "google_apigee_endpoint_attachment" "apigee_endpoint_attachment" {
`, context)
}

func testAccCheckApigeeEndpointAttachmentDestroyProducer(t *testing.T) func(s *terraform.State) error {
func testAccCheckApigeeEndpointAttachmentDestroyDefaultProducer(t *testing.T) func(s *terraform.State) error {
return func(s *terraform.State) error {
for name, rs := range s.RootModule().Resources {
if rs.Type != "google_apigee_endpoint_attachment" {
Expand Down
Loading