Skip to content

Commit

Permalink
update documentation and pointer utils
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhang3 committed Dec 18, 2024
1 parent 771f765 commit 8966fd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,17 +203,9 @@ func (r WorkspaceNetworkOutboundRulePrivateEndpoint) Read() sdk.ResourceFunc {
if model := resp.Model; model != nil {
if props := model.Properties; props != nil {
if prop, ok := props.(managednetwork.PrivateEndpointOutboundRule); ok && prop.Destination != nil {
if prop.Destination.SparkEnabled != nil {
state.SparkEnabled = *prop.Destination.SparkEnabled
}

if prop.Destination.SubresourceTarget != nil {
state.SubresourceTarget = *prop.Destination.SubresourceTarget
}

if prop.Destination.ServiceResourceId != nil {
state.ServiceResourceId = *prop.Destination.ServiceResourceId
}
state.SparkEnabled = pointer.From(prop.Destination.SparkEnabled)
state.SubresourceTarget = pointer.From(prop.Destination.SubresourceTarget)
state.ServiceResourceId = pointer.From(prop.Destination.ServiceResourceId)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ The `timeouts` block allows you to
specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions:

* `create` - (Defaults to 30 minutes) Used when creating the Machine Learning Workspace Network Outbound Rule Private Endpoint.
* `update` - (Defaults to 30 minutes) Used when updating the Machine Learning Workspace Network Outbound Rule Private Endpoint.
* `read` - (Defaults to 5 minutes) Used when retrieving the Machine Learning Workspace Network Outbound Rule Private Endpoint.
* `delete` - (Defaults to 30 minutes) Used when deleting the Machine Learning Workspace Network Outbound Rule Private Endpoint.

Expand Down

0 comments on commit 8966fd2

Please sign in to comment.