vishesh92 commented on code in PR #167:
URL: 
https://github.com/apache/cloudstack-terraform-provider/pull/167#discussion_r2315159567


##########
cloudstack/resource_cloudstack_project.go:
##########
@@ -0,0 +1,537 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+//
+
+package cloudstack
+
+import (
+       "context"
+       "fmt"
+       "log"
+       "strings"
+       "time"
+
+       "github.com/apache/cloudstack-go/v2/cloudstack"
+       "github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
+       "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
+)
+
+func resourceCloudStackProject() *schema.Resource {
+       return &schema.Resource{
+               Create: resourceCloudStackProjectCreate,
+               Read:   resourceCloudStackProjectRead,
+               Update: resourceCloudStackProjectUpdate,
+               Delete: resourceCloudStackProjectDelete,
+               Importer: &schema.ResourceImporter{
+                       State: importStatePassthrough,
+               },
+
+               Schema: map[string]*schema.Schema{
+                       "name": {
+                               Type:     schema.TypeString,
+                               Required: true,
+                       },
+
+                       "display_text": {
+                               Type:     schema.TypeString,
+                               Required: true, // Required for API version 
4.18 and lower. TODO: Make this optional when support for API versions older 
than 4.18 is dropped.
+                       },
+
+                       "domain": {
+                               Type:     schema.TypeString,
+                               Optional: true,
+                               Computed: true,
+                               ForceNew: true,
+                       },
+
+                       "account": {
+                               Type:     schema.TypeString,
+                               Optional: true,
+                       },
+
+                       "accountid": {
+                               Type:     schema.TypeString,
+                               Optional: true,

Review Comment:
   @ianc769 Let's remove this to keep it consistent with the rest of the code.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to