• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java SqlFirewallRule类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.microsoft.azure.management.sql.SqlFirewallRule的典型用法代码示例。如果您正苦于以下问题:Java SqlFirewallRule类的具体用法?Java SqlFirewallRule怎么用?Java SqlFirewallRule使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

SqlFirewallRule类属于com.microsoft.azure.management.sql包,在下文中一共展示了SqlFirewallRule类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createOrUpdateFirewallRulesAsync

点赞 3

import com.microsoft.azure.management.sql.SqlFirewallRule; //导入依赖的package包/类
private Observable<Indexable> createOrUpdateFirewallRulesAsync() {
    final SqlServerImpl self = this;
    if (this.firewallRuleCreatableMap.size() > 0) {
        return Utils.rootResource(this.firewallRulesImpl
                .sqlFirewallRules()
                .createAsync(new ArrayList<Creatable<SqlFirewallRule>>(this.firewallRuleCreatableMap.values())))
                .map(new Func1<Indexable, Indexable>() {
                    @Override
                    public Indexable call(Indexable indexable) {
                        self.firewallRuleCreatableMap.clear();
                        return indexable;
                    }
                });
    }
    return Observable.empty();
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java
代码行数:17,
代码来源:SqlServerImpl.java

示例2: print

点赞 2

import com.microsoft.azure.management.sql.SqlFirewallRule; //导入依赖的package包/类
/**
 * Prints information for the passed firewall rule.
 * @param firewallRule firewall rule to be printed.
 */
public static void print(SqlFirewallRule firewallRule) {
    StringBuilder builder = new StringBuilder().append("Sql firewall rule: ").append(firewallRule.id())
            .append("Name: ").append(firewallRule.name())
            .append("\n\tResource group: ").append(firewallRule.resourceGroupName())
            .append("\n\tRegion: ").append(firewallRule.region())
            .append("\n\tSqlServer Name: ").append(firewallRule.sqlServerName())
            .append("\n\tStart IP Address of the firewall rule: ").append(firewallRule.startIPAddress())
            .append("\n\tEnd IP Address of the firewall rule: ").append(firewallRule.endIPAddress());

    System.out.println(builder.toString());
}
 

开发者ID:Azure-Samples,
项目名称:acr-java-manage-azure-container-registry,
代码行数:16,
代码来源:Utils.java

示例3: createChildResourceAsync

点赞 2

import com.microsoft.azure.management.sql.SqlFirewallRule; //导入依赖的package包/类
@Override
protected Observable<SqlFirewallRule> createChildResourceAsync() {
    final SqlFirewallRule self = this;

    return this.innerCollection.createOrUpdateFirewallRuleAsync(this.resourceGroupName(), this.sqlServerName(), this.name(), this.inner())
            .map(new Func1<ServerFirewallRuleInner, SqlFirewallRule>() {
        @Override
        public SqlFirewallRule call(ServerFirewallRuleInner serverFirewallRuleInner) {
            setInner(serverFirewallRuleInner);

            return self;
        }
    });
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java
代码行数:15,
代码来源:SqlFirewallRuleImpl.java

示例4: getByParentAsync

点赞 2

import com.microsoft.azure.management.sql.SqlFirewallRule; //导入依赖的package包/类
@Override
public Observable<SqlFirewallRule> getByParentAsync(String resourceGroup, String parentName, String name) {
    return this.innerCollection.getFirewallRuleAsync(resourceGroup, parentName, name).map(new Func1<ServerFirewallRuleInner, SqlFirewallRule>() {
        @Override
        public SqlFirewallRule call(ServerFirewallRuleInner serverFirewallRuleInner) {
            return wrapModel(serverFirewallRuleInner);
        }
    });
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java
代码行数:10,
代码来源:SqlFirewallRulesImpl.java

示例5: get

点赞 2

import com.microsoft.azure.management.sql.SqlFirewallRule; //导入依赖的package包/类
@Override
public SqlFirewallRule get(String firewallRuleName) {
    return this.sqlFirewallRules.getBySqlServer(this.resourceGroupName, this.sqlServerName, firewallRuleName);
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java
代码行数:5,
代码来源:FirewallRulesImpl.java

示例6: define

点赞 2

import com.microsoft.azure.management.sql.SqlFirewallRule; //导入依赖的package包/类
@Override
public SqlFirewallRule.DefinitionStages.Blank define(String firewallRuleName) {
    return this.sqlFirewallRules.definedWithSqlServer(this.resourceGroupName, this.sqlServerName, firewallRuleName);
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java
代码行数:5,
代码来源:FirewallRulesImpl.java

示例7: list

点赞 2

import com.microsoft.azure.management.sql.SqlFirewallRule; //导入依赖的package包/类
@Override
public List<SqlFirewallRule> list() {
    return this.sqlFirewallRules.listBySqlServer(this.resourceGroupName, this.sqlServerName);
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java,
代码行数:5,
代码来源:FirewallRulesImpl.java

示例8: listByParent

点赞 2

import com.microsoft.azure.management.sql.SqlFirewallRule; //导入依赖的package包/类
@Override
public PagedList<SqlFirewallRule> listByParent(String resourceGroupName, String parentName) {
    return wrapList(this.innerCollection.listFirewallRules(resourceGroupName, parentName));
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java,
代码行数:5,
代码来源:SqlFirewallRulesImpl.java

示例9: getBySqlServer

点赞 2

import com.microsoft.azure.management.sql.SqlFirewallRule; //导入依赖的package包/类
@Override
public SqlFirewallRule getBySqlServer(String resourceGroup, String sqlServerName, String name) {
    return this.getByParent(resourceGroup, sqlServerName, name);
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java,
代码行数:5,
代码来源:SqlFirewallRulesImpl.java

示例10: listBySqlServer

点赞 2

import com.microsoft.azure.management.sql.SqlFirewallRule; //导入依赖的package包/类
@Override
public List<SqlFirewallRule> listBySqlServer(String resourceGroupName, String sqlServerName) {
    return this.listByParent(resourceGroupName, sqlServerName);
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java,
代码行数:5,
代码来源:SqlFirewallRulesImpl.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)