code: public Observable<SecurityRuleInner> beginCreateOrUpdateAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters) {
          return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, networkSecurityGroupName, securityRuleName, securityRuleParameters).map(new Func1<ServiceResponse<SecurityRuleInner>, SecurityRuleInner>() {
              @Override
              public SecurityRuleInner call(ServiceResponse<SecurityRuleInner> response) {
                  return response.body();
              }
          });
      }
docs: Creates or updates a security rule in the specified network security group.
  
  @param resourceGroupName The name of the resource group.
  @param networkSecurityGroupName The name of the network security group.
  @param securityRuleName The name of the security rule.
  @param securityRuleParameters Parameters supplied to the create or update network security rule operation.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the SecurityRuleInner object