Skip to content

Commit

Permalink
fix api-gateway import tests (GoogleCloudPlatform#5104)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottSuarez authored and khajduczenia committed Oct 12, 2021
1 parent 1d82843 commit b2fcd19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mmv1/products/apigateway/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ objects:
base_url: projects/{{project}}/locations/global/apis
update_verb: :PATCH
update_mask: true
identity:
- apiId
description: |
A consumable API that can be used by multiple Gateways.
references: !ruby/object:Api::Resource::ReferenceLinks
Expand Down Expand Up @@ -96,6 +98,8 @@ objects:
update_mask: true
description: |
An API Configuration is an association of an API Controller Config and a Gateway Config
identity:
- apiConfigId
references: !ruby/object:Api::Resource::ReferenceLinks
guides:
'Official Documentation':
Expand Down Expand Up @@ -185,6 +189,8 @@ objects:
base_url: projects/{{project}}/locations/{{region}}/gateways
update_verb: :PATCH
update_mask: true
identity:
- gatewayId
description: |
A consumable API that can be used by multiple Gateways.
references: !ruby/object:Api::Resource::ReferenceLinks
Expand Down
2 changes: 2 additions & 0 deletions mmv1/products/apigateway/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ overrides: !ruby/object:Overrides::ResourceOverrides
method_name_separator: ':'
parent_resource_attribute: 'api'
base_url: projects/{{project}}/locations/global/apis/{{api}}
import_format: ["projects/{{project}}/locations/global/apis/{{api}}", "{{project}}/{{api}}", "{{api}}"]
examples:
- !ruby/object:Provider::Terraform::Examples
min_version: beta
Expand Down Expand Up @@ -99,6 +100,7 @@ overrides: !ruby/object:Overrides::ResourceOverrides
method_name_separator: ':'
parent_resource_attribute: 'gateway'
base_url: projects/{{project}}/locations/{{region}}/gateways/{{gateway}}
import_format: ["projects/{{project}}/locations/{{region}}/gateways/{{gateway}}", "{{project}}/{{region}}/{{gateway}}", "{{region}}/{{gateway}}", "{{gateway}}"]
examples:
- !ruby/object:Provider::Terraform::Examples
min_version: beta
Expand Down

0 comments on commit b2fcd19

Please sign in to comment.