-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Filestore Instance. #2088
Implement Filestore Instance. #2088
Conversation
17d7e5c
to
98c7dd8
Compare
|
`, name) | ||
} | ||
|
||
func testAccFilestoreInstance_update2(name string) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not immediately seeing the difference between this func and the first update one, what's getting updated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The labels, if I had remembered to remove the labels so I could check that that worked. :)
google/resource_redis_instance.go
Outdated
func expandRedisInstanceRegion(v interface{}, d *schema.ResourceData, config *Config) (interface{}, error) { | ||
return v, nil | ||
} | ||
|
||
func resourceRedisInstanceEncoder(d *schema.ResourceData, meta interface{}, obj map[string]interface{}) (map[string]interface{}, error) { | ||
delete(obj, "region") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this custom encoder can probably be deleted now that we don't add it in the first place!
|
||
To get more information about Instance, see: | ||
|
||
* [API documentation](https://cloud.google.com/memorystore/docs/redis/reference/rest/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to be updated
## Example Usage | ||
|
||
### Basic Usage | ||
```hcl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fill in?
* `name` - | ||
(Required) | ||
The resource name of the instance, in the format | ||
`projects/{project_id}/locations/{locationId}/instances/{instanceId}`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this actually the case? I think we allow just {instanceId}, and if not, we should
A Google Cloud Filestore instance. | ||
--- | ||
|
||
# google\_file\_instance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kind of want this to be named google_filestore_instance
. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really do - what do we do to change the name away from the actual API name? I couldn't figure that one out just from looking, and I didn't spend more than a few minutes poking around.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's the prefix
field in api.yaml (or at least I hope that's all that field does).
Agh, I always forget about the autodocs. In progress. |
0367ee3
to
0de9138
Compare
@danawillow there we go! probably! :)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to also add an entry to the docs sidebar!
Oh also, put fixes #1774 somewhere :) |
Done! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
/cc @ndmckinley
Fixes #1774.