public PSPrivateLinkResource GetPrivateLinkResource(string resourceGroupName, string serviceName, string name) { var privateLinkResource = BaseCmdlet.NetworkClient.SqlManagementClient.PrivateLinkResources.Get(resourceGroupName, serviceName, name); PSPrivateLinkResource psPlr = ToPsPrivateLinkResource(privateLinkResource); return(psPlr); }
private PSPrivateLinkResource ToPsPrivateLinkResource(PrivateLinkResource privateLinkResource) { PSPrivateLinkResource psPLR = new PSPrivateLinkResource { Name = privateLinkResource.Name, Id = privateLinkResource.Id, Type = privateLinkResource.Type, GroupId = privateLinkResource.Properties.GroupId }; psPLR.RequiredMembers = new List <string>(privateLinkResource.Properties.RequiredMembers); return(psPLR); }