public async Task <Response <IotCentralPrivateLinkResourceData> > GetAsync(string subscriptionId, string resourceGroupName, string resourceName, string groupId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); Argument.AssertNotNullOrEmpty(groupId, nameof(groupId)); using var message = CreateGetRequest(subscriptionId, resourceGroupName, resourceName, groupId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { IotCentralPrivateLinkResourceData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); value = IotCentralPrivateLinkResourceData.DeserializeIotCentralPrivateLinkResourceData(document.RootElement); return(Response.FromValue(value, message.Response)); }
internal IotCentralPrivateLinkResource(ArmClient client, IotCentralPrivateLinkResourceData data) : this(client, data.Id) { HasData = true; _data = data; }