Skip to content

Commit 3a251ec

Browse files
modular-magicianavinash84
andauthored
Change to allow forward slash in Import Format (#5775) (#4109)
Co-authored-by: avinash84 <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: avinash84 <[email protected]>
1 parent 9a33ee0 commit 3a251ec

24 files changed

+26
-0
lines changed

.changelog/5775.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
Change to allow forward slash in Import Format
3+
```

google-beta/resource_assured_workloads_workload.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ func resourceAssuredWorkloadsWorkloadDelete(d *schema.ResourceData, meta interfa
436436

437437
func resourceAssuredWorkloadsWorkloadImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
438438
config := meta.(*Config)
439+
439440
if err := parseImportId([]string{
440441
"organizations/(?P<organization>[^/]+)/locations/(?P<location>[^/]+)/workloads/(?P<name>[^/]+)",
441442
"(?P<organization>[^/]+)/(?P<location>[^/]+)/(?P<name>[^/]+)",

google-beta/resource_bigquery_reservation_assignment.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ func resourceBigqueryReservationAssignmentDelete(d *schema.ResourceData, meta in
262262

263263
func resourceBigqueryReservationAssignmentImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
264264
config := meta.(*Config)
265+
265266
if err := parseImportId([]string{
266267
"projects/(?P<project>[^/]+)/locations/(?P<location>[^/]+)/reservations/(?P<reservation>[^/]+)/assignments/(?P<name>[^/]+)",
267268
"(?P<project>[^/]+)/(?P<location>[^/]+)/(?P<reservation>[^/]+)/(?P<name>[^/]+)",

google-beta/resource_cloudbuild_worker_pool.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ func resourceCloudbuildWorkerPoolDelete(d *schema.ResourceData, meta interface{}
396396

397397
func resourceCloudbuildWorkerPoolImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
398398
config := meta.(*Config)
399+
399400
if err := parseImportId([]string{
400401
"projects/(?P<project>[^/]+)/locations/(?P<location>[^/]+)/workerPools/(?P<name>[^/]+)",
401402
"(?P<project>[^/]+)/(?P<location>[^/]+)/(?P<name>[^/]+)",

google-beta/resource_compute_firewall_policy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ func resourceComputeFirewallPolicyDelete(d *schema.ResourceData, meta interface{
311311

312312
func resourceComputeFirewallPolicyImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
313313
config := meta.(*Config)
314+
314315
if err := parseImportId([]string{
315316
"locations/global/firewallPolicies/(?P<name>[^/]+)",
316317
"(?P<name>[^/]+)",

google-beta/resource_compute_firewall_policy_association.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ func resourceComputeFirewallPolicyAssociationDelete(d *schema.ResourceData, meta
204204

205205
func resourceComputeFirewallPolicyAssociationImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
206206
config := meta.(*Config)
207+
207208
if err := parseImportId([]string{
208209
"locations/global/firewallPolicies/(?P<firewall_policy>[^/]+)/associations/(?P<name>[^/]+)",
209210
"(?P<firewall_policy>[^/]+)/(?P<name>[^/]+)",

google-beta/resource_compute_firewall_policy_rule.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ func resourceComputeFirewallPolicyRuleDelete(d *schema.ResourceData, meta interf
395395

396396
func resourceComputeFirewallPolicyRuleImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
397397
config := meta.(*Config)
398+
398399
if err := parseImportId([]string{
399400
"locations/global/firewallPolicies/(?P<firewall_policy>[^/]+)/rules/(?P<priority>[^/]+)",
400401
"(?P<firewall_policy>[^/]+)/(?P<priority>[^/]+)",

google-beta/resource_compute_forwarding_rule.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ func resourceComputeForwardingRuleDelete(d *schema.ResourceData, meta interface{
546546

547547
func resourceComputeForwardingRuleImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
548548
config := meta.(*Config)
549+
549550
if err := parseImportId([]string{
550551
"projects/(?P<project>[^/]+)/regions/(?P<region>[^/]+)/forwardingRules/(?P<name>[^/]+)",
551552
"(?P<project>[^/]+)/(?P<region>[^/]+)/(?P<name>[^/]+)",

google-beta/resource_compute_global_forwarding_rule.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ func resourceComputeGlobalForwardingRuleDelete(d *schema.ResourceData, meta inte
449449

450450
func resourceComputeGlobalForwardingRuleImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
451451
config := meta.(*Config)
452+
452453
if err := parseImportId([]string{
453454
"projects/(?P<project>[^/]+)/global/forwardingRules/(?P<name>[^/]+)",
454455
"(?P<project>[^/]+)/(?P<name>[^/]+)",

google-beta/resource_container_aws_cluster.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,7 @@ func resourceContainerAwsClusterDelete(d *schema.ResourceData, meta interface{})
801801

802802
func resourceContainerAwsClusterImport(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) {
803803
config := meta.(*Config)
804+
804805
if err := parseImportId([]string{
805806
"projects/(?P<project>[^/]+)/locations/(?P<location>[^/]+)/awsClusters/(?P<name>[^/]+)",
806807
"(?P<project>[^/]+)/(?P<location>[^/]+)/(?P<name>[^/]+)",

0 commit comments

Comments
 (0)