Skip to content
Merged
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
10 changes: 0 additions & 10 deletions mmv1/products/compute/NetworkEdgeSecurityService.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ name: 'NetworkEdgeSecurityService'
kind: 'compute#networkEdgeSecurityService'
description: |
Google Cloud Armor network edge security service resource.
min_version: 'beta'
references:
guides:
'Official Documentation': 'https://cloud.google.com/armor/docs/advanced-network-ddos'
Expand Down Expand Up @@ -63,7 +62,6 @@ parameters:
type: ResourceRef
description: |
The region of the gateway security policy.
min_version: 'beta'
url_param_only: true
required: false
immutable: true
Expand All @@ -74,49 +72,41 @@ properties:
type: String
description: |
Name of the resource. Provided by the client when the resource is created.
min_version: 'beta'
required: true
immutable: true
- name: 'description'
type: String
description: |
Free-text description of the resource.
min_version: 'beta'
- name: 'serviceId'
type: String
description: |
The unique identifier for the resource. This identifier is defined by the server.
api_name: id
min_version: 'beta'
output: true
- name: 'creationTimestamp'
type: String
description: |
Creation timestamp in RFC3339 text format.
min_version: 'beta'
output: true
- name: 'selfLink'
type: String
description: |
Server-defined URL for the resource.
min_version: 'beta'
output: true
- name: 'selfLinkWithServiceId'
type: String
description: |
Server-defined URL for this resource with the resource id.
api_name: selfLinkWithId
min_version: 'beta'
output: true
- name: 'fingerprint'
type: Fingerprint
description: |
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a NetworkEdgeSecurityService.
An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, otherwise the request will fail with error 412 conditionNotMet.
min_version: 'beta'
output: true
- name: 'securityPolicy'
type: String
description: |
The resource URL for the network edge security service associated with this network edge security service.
min_version: 'beta'
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
resource "google_compute_network_edge_security_service" "{{$.PrimaryResourceId}}" {
provider = google-beta

name = "{{index $.ResourceIdVars "resource_name"}}"
region = "{{index $.Vars "region"}}"
description = "My basic resource"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package compute
{{- if ne $.TargetVersionName "ga" }}

import (
"context"
"fmt"
"log"

"github.com/hashicorp/terraform-provider-google/google/sweeper"
transport_tpg "github.com/hashicorp/terraform-provider-google/google/transport"
"github.com/hashicorp/terraform-provider-google/google/tpgresource"
transport_tpg "github.com/hashicorp/terraform-provider-google/google/transport"
)

func init() {
Expand Down Expand Up @@ -94,4 +93,3 @@ func testSweepComputeNetworkEdgeSecurityService(region string) error {

return nil
}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package compute_test
{{- if ne $.TargetVersionName "ga" }}

import (
"fmt"
Expand Down Expand Up @@ -77,4 +76,3 @@ resource "google_compute_network_edge_security_service" "foobar" {
}
`, pName, nesName)
}
{{- end }}
Loading