Пример #1
0
        private OrganizationResource CreateResource(MockContext context, string rgName, string resourceName)
        {
            ConfluentManagementClient client = GetConfluentManagementClient(context);

            return(client.Organization.Create(
                       rgName,
                       resourceName,
                       new OrganizationResource(
                           name: resourceName,
                           type: "Microsoft.Confluent/organizations",
                           offerDetail: new OfferDetail(publisherId: "isvtestuklegacy", id: "liftr_cf_dev", planId: "payg", planName: "Pay as you go", termUnit: "P1M"),
                           userDetail: new UserDetail(firstName: "Srinivas", lastName: "Alluri", emailAddress: "*****@*****.**"),
                           location: "westus2"
                           )
                       ));
        }
Пример #2
0
        private IPage <OrganizationResource> ListResources(MockContext context, string rgName)
        {
            ConfluentManagementClient client = GetConfluentManagementClient(context);

            return(client.Organization.ListByResourceGroup(rgName));
        }
Пример #3
0
        private void DeleteResource(MockContext context, string rgName, string resourceName)
        {
            ConfluentManagementClient client = GetConfluentManagementClient(context);

            client.Organization.Delete(rgName, resourceName);
        }