From 7850bb97d87114b96dc145d1666b9d3006e7daa7 Mon Sep 17 00:00:00 2001 From: abhishek kumar tiwari Date: Thu, 2 Jan 2025 12:03:05 +0530 Subject: [PATCH 1/2] Update resource_apphub_service.go --- .../services/apphub/resource_apphub_service.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/google/services/apphub/resource_apphub_service.go b/google/services/apphub/resource_apphub_service.go index 0b3c3b63c64..c7e1578b709 100644 --- a/google/services/apphub/resource_apphub_service.go +++ b/google/services/apphub/resource_apphub_service.go @@ -59,7 +59,7 @@ func ResourceApphubService() *schema.Resource { Type: schema.TypeString, Required: true, ForceNew: true, - Description: `Part of 'parent'. Full resource name of a parent Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}`, + Description: `Part of 'parent'. Application Id of parent AppHub Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}`, }, "discovered_service": { Type: schema.TypeString, @@ -72,7 +72,14 @@ func ResourceApphubService() *schema.Resource { Type: schema.TypeString, Required: true, ForceNew: true, - Description: `Part of 'parent'. Full resource name of a parent Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}`, + Description: `Part of 'parent'. Location of parent AppHub Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}`, + }, + "project": { + Type: schema.TypeString, + Computed: true, + ForceNew: true, + Description: `Part of 'parent'. ProjectId of parent AppHub Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}` + }, "service_id": { Type: schema.TypeString, @@ -255,12 +262,6 @@ format.`, Computed: true, Description: `Output only. Update time.`, }, - "project": { - Type: schema.TypeString, - Optional: true, - Computed: true, - ForceNew: true, - }, }, UseJSONNumber: true, } From b786fc684f618c97c9398afdf531056a7dc1551a Mon Sep 17 00:00:00 2001 From: abhishek kumar tiwari Date: Thu, 2 Jan 2025 06:51:40 +0000 Subject: [PATCH 2/2] Update description for apphub service and workload resources --- .../services/apphub/resource_apphub_service.go | 6 +++--- .../services/apphub/resource_apphub_workload.go | 17 +++++++++-------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/google/services/apphub/resource_apphub_service.go b/google/services/apphub/resource_apphub_service.go index c7e1578b709..5b0a9364c99 100644 --- a/google/services/apphub/resource_apphub_service.go +++ b/google/services/apphub/resource_apphub_service.go @@ -59,7 +59,7 @@ func ResourceApphubService() *schema.Resource { Type: schema.TypeString, Required: true, ForceNew: true, - Description: `Part of 'parent'. Application Id of parent AppHub Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}`, + Description: `Part of 'parent'. ApplicationId of parent AppHub Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}`, }, "discovered_service": { Type: schema.TypeString, @@ -72,13 +72,13 @@ func ResourceApphubService() *schema.Resource { Type: schema.TypeString, Required: true, ForceNew: true, - Description: `Part of 'parent'. Location of parent AppHub Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}`, + Description: `Part of 'parent'. Location of parent AppHub Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}`, }, "project": { Type: schema.TypeString, Computed: true, ForceNew: true, - Description: `Part of 'parent'. ProjectId of parent AppHub Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}` + Description: `Part of 'parent'. ProjectId of parent AppHub Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}` }, "service_id": { diff --git a/google/services/apphub/resource_apphub_workload.go b/google/services/apphub/resource_apphub_workload.go index af1c1198a09..8df424c1cd0 100644 --- a/google/services/apphub/resource_apphub_workload.go +++ b/google/services/apphub/resource_apphub_workload.go @@ -59,7 +59,7 @@ func ResourceApphubWorkload() *schema.Resource { Type: schema.TypeString, Required: true, ForceNew: true, - Description: `Part of 'parent'. Full resource name of a parent Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}`, + Description: `Part of 'parent'. ApplicationId of parent AppHub Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}`, }, "discovered_workload": { Type: schema.TypeString, @@ -72,7 +72,14 @@ func ResourceApphubWorkload() *schema.Resource { Type: schema.TypeString, Required: true, ForceNew: true, - Description: `Part of 'parent'. Full resource name of a parent Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}`, + Description: `Part of 'parent'. Location of parent AppHub Application. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}`, + }, + "project": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + Description: `Part of 'parent'. ProjectId of parent AppHub Application.. Example: projects/{HOST_PROJECT_ID}/locations/{LOCATION}/applications/{APPLICATION_ID}`, }, "workload_id": { Type: schema.TypeString, @@ -252,12 +259,6 @@ func ResourceApphubWorkload() *schema.Resource { }, }, }, - "project": { - Type: schema.TypeString, - Optional: true, - Computed: true, - ForceNew: true, - }, }, UseJSONNumber: true, }