code: public ApplicationSecurityGroupInner beginCreateOrUpdate(String resourceGroupName, String applicationSecurityGroupName, ApplicationSecurityGroupInner parameters) {
          return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, applicationSecurityGroupName, parameters).toBlocking().single().body();
      }
docs: Creates or updates an application security group.
  
  @param resourceGroupName The name of the resource group.
  @param applicationSecurityGroupName The name of the application security group.
  @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the ApplicationSecurityGroupInner object if successful.