Skip to content

Commit

Permalink
Add certificate map entries (#6203) (#4501)
Browse files Browse the repository at this point in the history
* Add CertificateMap resource

* Fix how fields made mutually exclusive

* Remove use of exactly_one_of

This wouldn't work as it cannot track indices.
Usually it's used with a list that's got max of 1 element

* added a certificate-map-resource

* fixed issues for certificate map entry rescource

* few modifications for comments and item type

* modify yaml files to include cert_name

* change ruby version

* corrected resource attributes

* change ruby version

* updated urls and objects

* updated my-map-entry to map

* fixing url errors

* fix errors

* Remove comments and update description of resource attribute

* remove extra line from managed_ssl_certificate_recreation file

* add comments to managed_ssl_certificate_recreation

Co-authored-by: Sarah French <sarah.french@hashicorp.com>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: Sarah French <sarah.french@hashicorp.com>
  • Loading branch information
modular-magician and SarahFrench authored Jul 19, 2022
1 parent da41f80 commit 1964cee
Show file tree
Hide file tree
Showing 13 changed files with 1,848 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changelog/6203.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
```release-note:new-resource
`google_certificate_map_entry`
```
```release-note:new-resource
`google_certificate_map`
```
2 changes: 1 addition & 1 deletion google-beta/common_diff_suppress.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func lastSlashDiffSuppress(_, old, new string, _ *schema.ResourceData) bool {

// Suppress diffs when the value read from api
// has the project number instead of the project name
func projectNumberDiffSupress(_, old, new string, _ *schema.ResourceData) bool {
func projectNumberDiffSuppress(_, old, new string, _ *schema.ResourceData) bool {
var a2, b2 string
reN := regexp.MustCompile("projects/\\d+")
re := regexp.MustCompile("projects/[^/]+")
Expand Down
6 changes: 4 additions & 2 deletions google-beta/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -936,9 +936,9 @@ func Provider() *schema.Provider {
return provider
}

// Generated resources: 253
// Generated resources: 255
// Generated IAM resources: 165
// Total generated resources: 418
// Total generated resources: 420
func ResourceMap() map[string]*schema.Resource {
resourceMap, _ := ResourceMapWithErrors()
return resourceMap
Expand Down Expand Up @@ -1018,6 +1018,8 @@ func ResourceMapWithErrors() (map[string]*schema.Resource, error) {
"google_binary_authorization_policy": resourceBinaryAuthorizationPolicy(),
"google_certificate_manager_dns_authorization": resourceCertificateManagerDnsAuthorization(),
"google_certificate_manager_certificate": resourceCertificateManagerCertificate(),
"google_certificate_manager_certificate_map": resourceCertificateManagerCertificateMap(),
"google_certificate_manager_certificate_map_entry": resourceCertificateManagerCertificateMapEntry(),
"google_cloud_asset_project_feed": resourceCloudAssetProjectFeed(),
"google_cloud_asset_folder_feed": resourceCloudAssetFolderFeed(),
"google_cloud_asset_organization_feed": resourceCloudAssetOrganizationFeed(),
Expand Down
Loading

0 comments on commit 1964cee

Please sign in to comment.