You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Child resources, such as a ServerVolume or ImageMetadata often
need references back to the parent. It should always be protected
and only exposed through IChildResource. The ApiBuilder is responsible
for setting a parent reference or id.
The type should be reference, and then try casting to a full object
if additional functionality is needed. The child won't always have
a full object available, if it must have one, then the method
should be moved elsewhere.
/// <exception cref="InvalidOperationException">When this instance was not constructed by the <see cref="ComputeService"/>, as it is missing the appropriate internal state to execute service calls.</exception>
/// <exception cref="InvalidOperationException">When this instance was not constructed by the <see cref="ComputeService"/>, as it is missing the appropriate internal state to execute service calls.</exception>
/// <exception cref="InvalidOperationException">When this instance was not constructed by the <see cref="ComputeService"/>, as it is missing the appropriate internal state to execute service calls.</exception>
thrownewInvalidOperationException(string.Format($"{callerName} can only be used on instances which were constructed by the ComputeServer. Use ComputeService.{callerName} instead."));
0 commit comments